(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=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]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,r){return e.replace(t,r)}function l(e,t){return e.indexOf(t)}function c(e,t){return 0|e.charCodeAt(t)}function u(e,t,r){return e.slice(t,r)}function d(e){return e.length}function h(e,t){return t.push(e),e}var f=1,p=1,g=0,m=0,v=0,b="";function y(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:f,column:p,length:a,return:""}}function w(e,t){return a(y("",null,null,"",null,null,0),e,{length:-e.length},t)}function x(){return v=m<g?c(b,m++):0,p++,10===v&&(p=1,f++),v}function _(){return c(b,m)}function C(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 A(e){return f=p=1,g=d(b=e),m=0,[]}function k(e){var t,r;return(t=m-1,r=function e(t){for(;x();)switch(v){case t:return m;case 34:case 39:34!==t&&39!==t&&e(v);break;case 40:41===t&&e(t);break;case 92:x()}return m}(91===e?e+2:40===e?e+1:e),u(b,t,r)).trim()}var E="-ms-",S="-moz-",T="-webkit-",I="comm",P="rule",O="decl",R="@keyframes";function M(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function N(e,t,r,n){switch(e.type){case"@import":case O:return e.return=e.return||e.value;case I:return"";case R:return e.return=e.value+"{"+M(e.children,n)+"}";case P:e.value=e.props.join(",")}return d(r=M(e.children,n))?e.return=e.value+"{"+r+"}":""}function j(e,t,r,n,o,a,l,c,d,h,f){for(var p=o-1,g=0===o?a:[""],m=g.length,v=0,b=0,w=0;v<n;++v)for(var x=0,_=u(e,p+1,p=i(b=l[v])),C=e;x<m;++x)(C=(b>0?g[x]+" "+_:s(_,/&\f/g,g[x])).trim())&&(d[w++]=C);return y(e,t,r,0===o?P:c,d,h,f)}function D(e,t,r,n){return y(e,t,r,O,u(e,0,n),u(e,n+1,-1),n)}var B=function(e,t,r){for(var n=0,i=0;n=i,i=_(),38===n&&12===i&&(t[r]=1),!C(i);)x();return u(b,e,m)},L=function(e,t){var r=-1,n=44;do switch(C(n)){case 0:38===n&&12===_()&&(t[r]=1),e[r]+=B(m-1,t,r);break;case 2:e[r]+=k(n);break;case 4:if(44===n){e[++r]=58===_()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=x());return e},$=function(e,t){var r;return r=L(A(e),t),b="",r},U=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||U.get(r))&&!n){U.set(e,!0);for(var i=[],o=$(t,i),a=r.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]}}},F=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},q=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case O:e.return=function e(t,r){switch(45^c(t,0)?(((r<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return T+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return T+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return T+t+S+t+E+t+t;case 6828:case 4268:return T+t+E+t+t;case 6165:return T+t+E+"flex-"+t+t;case 5187:return T+t+s(t,/(\w+).+(:[^]+)/,T+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return T+t+E+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return T+t+E+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return T+t+E+s(t,"shrink","negative")+t;case 5292:return T+t+E+s(t,"basis","preferred-size")+t;case 6060:return T+"box-"+s(t,"-grow","")+T+t+E+s(t,"grow","positive")+t;case 4554:return T+s(t,/([^-])(transform)/g,"$1"+T+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,T+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(t)-1-r>6)switch(c(t,r+1)){case 109:if(45!==c(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+S+(108==c(t,r+3)?"$3":"$2-$3"))+t;case 115:return~l(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==c(t,r+1))break;case 6444:switch(c(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+T)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(45===c(t,14)?"inline-":"")+"box$3$1"+T+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(c(t,r+11)){case 114:return T+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return T+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return T+t+E+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return T+t+E+t+t}return t}(e.value,e.length);break;case R:return M([w(e,{value:s(e.value,"@","@"+T)})],n);case P:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return M([w(e,{props:[s(t,/:(read-\w+)/,":"+S+"$1")]})],n);case"::placeholder":return M([w(e,{props:[s(t,/:(plac\w+)/,":"+T+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+S+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,E+"input-$1")]})],n)}return""},i.map(o).join("")}}}],H=function(e){var t,r,i,a,g,w,E=e.key;if("css"===E){var S=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(S,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var T=e.stylisPlugins||q,P={},O=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+E+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)P[t[r]]=!0;O.push(e)});var R=(r=(t=[z,F].concat(T,[N,(i=function(e){w.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),B=function(e){var t,r;return M((r=function e(t,r,n,i,a,g,w,A,E){for(var S,T=0,P=0,O=w,R=0,M=0,N=0,B=1,L=1,$=1,U=0,z="",F=a,q=g,H=i,W=z;L;)switch(N=U,U=x()){case 40:if(108!=N&&58==c(W,O-1)){-1!=l(W+=s(k(U),"&","&\f"),"&\f")&&($=-1);break}case 34:case 39:case 91:W+=k(U);break;case 9:case 10:case 13:case 32:W+=function(e){for(;v=_();)if(v<33)x();else break;return C(e)>2||C(v)>3?"":" "}(N);break;case 92:W+=function(e,t){for(var r;--t&&x()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=m+(t<6&&32==_()&&32==x()),u(b,e,r)}(m-1,7);continue;case 47:switch(_()){case 42:case 47:h(y(S=function(e,t){for(;x();)if(e+v===57)break;else if(e+v===84&&47===_())break;return"/*"+u(b,t,m-1)+"*"+o(47===e?e:x())}(x(),m),r,n,I,o(v),u(S,2,-2),0),E);break;default:W+="/"}break;case 123*B:A[T++]=d(W)*$;case 125*B:case 59:case 0:switch(U){case 0:case 125:L=0;case 59+P:M>0&&d(W)-O&&h(M>32?D(W+";",i,n,O-1):D(s(W," ","")+";",i,n,O-2),E);break;case 59:W+=";";default:if(h(H=j(W,r,n,T,P,a,A,z,F=[],q=[],O),g),123===U){if(0===P)e(W,r,H,H,F,g,O,A,q);else switch(99===R&&110===c(W,3)?100:R){case 100:case 109:case 115:e(t,H,H,i&&h(j(t,H,H,0,0,a,A,z,a,F=[],O),q),a,q,O,A,i?F:q);break;default:e(W,H,H,H,[""],q,0,A,q)}}}T=P=M=0,B=$=1,z=W="",O=w;break;case 58:O=1+d(W),M=N;default:if(B<1){if(123==U)--B;else if(125==U&&0==B++&&125==(v=m>0?c(b,--m):0,p--,10===v&&(p=1,f--),v))continue}switch(W+=o(U),U*B){case 38:$=P>0?1:(W+="\f",-1);break;case 44:A[T++]=(d(W)-1)*$,$=1;break;case 64:45===_()&&(W+=k(x())),R=_(),P=O=d(z=W+=function(e){for(;!C(_());)x();return u(b,e,m)}(m)),U++;break;case 45:45===N&&2==d(W)&&(B=0)}}return g}("",null,null,null,[""],t=A(t=e),0,[0],t),b="",r),R)};g=function(e,t,r,n){w=r,B(e?e+"{"+t.styles+"}":t.styles),n&&(L.inserted[t.name]=!0)};var L={key:E,sheet:new n({key:E,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:g};return L.sheet.hydrate(O),L}},45042:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}},91683:function(e,t,r){"use strict";r.d(t,{E:function(){return y},T:function(){return f},a:function(){return g},c:function(){return v},h:function(){return u},w:function(){return h}});var n=r(67294),i=r(8417),o=r(87462),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},s=r(70444),l=r(48137),c=r(27278),u={}.hasOwnProperty,d=(0,n.createContext)("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);d.Provider;var h=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(d),r)})},f=(0,n.createContext)({}),p=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),g=function(e){var t=(0,n.useContext)(f);return e.theme!==t&&(t=p(t)(e.theme)),(0,n.createElement)(f.Provider,{value:t},e.children)},m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(e,t){var r={};for(var n in t)u.call(t,n)&&(r[n]=t[n]);return r[m]=e,r},b=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,s.hC)(t,r,n),(0,c.L)(function(){return(0,s.My)(t,r,n)}),null},y=h(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var o=e[m],a=[i],c="";"string"==typeof e.className?c=(0,s.fp)(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var d=(0,l.O)(a,void 0,(0,n.useContext)(f));c+=t.key+"-"+d.name;var h={};for(var p in e)u.call(e,p)&&"css"!==p&&p!==m&&(h[p]=e[p]);return h.ref=r,h.className=c,(0,n.createElement)(n.Fragment,null,(0,n.createElement)(b,{cache:t,serialized:d,isStringTag:"string"==typeof o}),(0,n.createElement)(o,h))})},70917:function(e,t,r){"use strict";r.d(t,{F4:function(){return d},iv:function(){return u},tZ:function(){return l},xB:function(){return c}});var n=r(67294);r(8417);var i=r(91683);r(8679);var o=r(70444),a=r(48137),s=r(27278),l=function(e,t){var r=arguments;if(null==t||!i.h.call(t,"css"))return n.createElement.apply(void 0,r);var o=r.length,a=Array(o);a[0]=i.E,a[1]=(0,i.c)(e,t);for(var s=2;s<o;s++)a[s]=r[s];return n.createElement.apply(null,a)},c=(0,i.w)(function(e,t){var r=e.styles,l=(0,a.O)([r],void 0,(0,n.useContext)(i.T)),c=(0,n.useRef)();return(0,s.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,n],function(){r.flush()}},[t]),(0,s.j)(function(){var e=c.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,o.My)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function u(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,a.O)(t)}var d=function(){var e=u.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_"}}}},48137:function(e,t,r){"use strict";r.d(t,{O:function(){return g}});var n,i=function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},o={animationIterationCount: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},a=r(45042),s=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.Z)(function(e){return c(e)?e:e.replace(s,"-$&").toLowerCase()}),h=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===o[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=f(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":u(a)&&(n+=d(o)+":"+h(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)u(a[s])&&(n+=d(o)+":"+h(o,a[s])+";");else{var l=f(e,t,a);switch(o){case"animation":case"animationName":n+=d(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,f(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var p=/label:\s*([^\s;\n{]+)\s*(;|$)/g,g=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o,a=!0,s="";n=void 0;var l=e[0];null==l||void 0===l.raw?(a=!1,s+=f(r,t,l)):s+=l[0];for(var c=1;c<e.length;c++)s+=f(r,t,e[c]),a&&(s+=l[c]);p.lastIndex=0;for(var u="";null!==(o=p.exec(s));)u+="-"+o[1];return{name:i(s)+u,styles:s,next:n}}},27278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,i=r(67294),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},70444:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return o},fp:function(){return n},hC:function(){return i}});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},81361:function(e,t,r){"use strict";r.d(t,{Gr:function(){return ew},Ny:function(){return ek},aS:function(){return eC},NQ:function(){return eA}});var n,i,o=/^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/,a={revert:function(){}},s=new Map,l=new Set;function c(e){var t=s.get(e);return t||(t={element:e,attributes:{}},s.set(e,t)),t}function u(e,t,r,n,i){var o=r(e),a={isDirty:!1,originalValue:o,virtualValue:o,mutations:[],el:e,_positionTimeout:null,observer:new MutationObserver(function(){if("position"!==t||!a._positionTimeout){"position"===t&&(a._positionTimeout=setTimeout(function(){a._positionTimeout=null},1e3));var n=r(e);("position"!==t||n.parentNode!==a.virtualValue.parentNode||n.insertBeforeNode!==a.virtualValue.insertBeforeNode)&&n!==a.virtualValue&&(a.originalValue=n,i(a))}}),mutationRunner:i,setValue:n,getCurrentValue:r};return"position"===t&&e.parentNode?a.observer.observe(e.parentNode,{childList:!0,subtree:!0,attributes:!1,characterData:!1}):a.observer.observe(e,"html"===t?{childList:!0,subtree:!0,attributes:!0,characterData:!0}:{childList:!1,subtree:!1,attributes:!0,attributeFilter:[t]}),a}function d(e,t){var r=t.getCurrentValue(t.el);t.virtualValue=e,e&&"string"!=typeof e?r&&e.parentNode===r.parentNode&&e.insertBeforeNode===r.insertBeforeNode||(t.isDirty=!0,T()):e!==r&&(t.isDirty=!0,T())}function h(e){var t,r=e.originalValue;e.mutations.forEach(function(e){return r=e.mutate(r)}),d((t=r,n||(n=document.createElement("div")),n.innerHTML=t,n.innerHTML),e)}function f(e){var t=new Set(e.originalValue.split(/\s+/).filter(Boolean));e.mutations.forEach(function(e){return e.mutate(t)}),d(Array.from(t).filter(Boolean).join(" "),e)}function p(e){var t=e.originalValue;e.mutations.forEach(function(e){return t=e.mutate(t)}),d(t,e)}function g(e){var t=e.originalValue;e.mutations.forEach(function(e){t=function(e){var t=e.parentSelector,r=e.insertBeforeSelector,n=document.querySelector(t);if(!n)return null;var i=r?document.querySelector(r):null;return r&&!i?null:{parentNode:n,insertBeforeNode:i}}(e.mutate())||t}),d(t,e)}var m=function(e){return e.innerHTML},v=function(e,t){return e.innerHTML=t};function b(e){var t=c(e);return t.html||(t.html=u(e,"html",m,v,h)),t.html}var y=function(e){return{parentNode:e.parentElement,insertBeforeNode:e.nextElementSibling}},w=function(e,t){(!t.insertBeforeNode||t.parentNode.contains(t.insertBeforeNode))&&t.parentNode.insertBefore(e,t.insertBeforeNode)};function x(e){var t=c(e);return t.position||(t.position=u(e,"position",y,w,g)),t.position}var _=function(e,t){return t?e.className=t:e.removeAttribute("class")},C=function(e){return e.className};function A(e){var t=c(e);return t.classes||(t.classes=u(e,"class",C,_,f)),t.classes}function k(e,t){var r=c(e);return r.attributes[t]||(r.attributes[t]=u(e,t,function(e){var r;return null!=(r=e.getAttribute(t))?r:null},function(e,r){return null!==r?e.setAttribute(t,r):e.removeAttribute(t)},p)),r.attributes[t]}function E(e,t,r){if(r.isDirty){r.isDirty=!1;var n,i,o,a,l,c,u,d,h,f,p=r.virtualValue;!r.mutations.length&&(f=s.get(e))&&("html"===t?(null==(n=f.html)||null==(i=n.observer)||i.disconnect(),delete f.html):"class"===t?(null==(o=f.classes)||null==(a=o.observer)||a.disconnect(),delete f.classes):"position"===t?(null==(l=f.position)||null==(c=l.observer)||c.disconnect(),delete f.position):(null==(u=f.attributes)||null==(d=u[t])||null==(h=d.observer)||h.disconnect(),delete f.attributes[t])),r.setValue(e,p)}}function S(e,t){e.html&&E(t,"html",e.html),e.classes&&E(t,"class",e.classes),e.position&&E(t,"position",e.position),Object.keys(e.attributes).forEach(function(r){E(t,r,e.attributes[r])})}function T(){s.forEach(S)}function I(e){if("position"!==e.kind||1!==e.elements.size){var t=new Set(e.elements);document.querySelectorAll(e.selector).forEach(function(r){if(!t.has(r)){var n;e.elements.add(r),n=null,"html"===e.kind?n=b(r):"class"===e.kind?n=A(r):"attribute"===e.kind?n=k(r,e.attribute):"position"===e.kind&&(n=x(r)),n&&(n.mutations.push(e),n.mutationRunner(n))}})}}function P(){l.forEach(I)}function O(e){return"undefined"==typeof document?a:(l.add(e),I(e),{revert:function(){e.elements.forEach(function(t){return function(e,t){var r=null;if("html"===e.kind?r=b(t):"class"===e.kind?r=A(t):"attribute"===e.kind?r=k(t,e.attribute):"position"===e.kind&&(r=x(t)),r){var n=r.mutations.indexOf(e);-1!==n&&r.mutations.splice(n,1),r.mutationRunner(r)}}(e,t)}),e.elements.clear(),l.delete(e)}})}function R(e,t){return O({kind:"html",elements:new Set,mutate:t,selector:e})}function M(e,t){return O({kind:"class",elements:new Set,mutate:t,selector:e})}function N(e,t,r){return o.test(t)?"class"===t||"className"===t?M(e,function(e){var t=r(Array.from(e).join(" "));e.clear(),t&&t.split(/\s+/g).filter(Boolean).forEach(function(t){return e.add(t)})}):O({kind:"attribute",attribute:t,elements:new Set,mutate:r,selector:e}):a}"undefined"!=typeof document&&(i||(i=new MutationObserver(function(){P()})),P(),i.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!1,characterData:!1}));var j={declarative:function(e){var t,r=e.selector,n=e.action,i=e.value,o=e.attribute,s=e.parentSelector,l=e.insertBeforeSelector;if("html"===o){if("append"===n)return R(r,function(e){return e+(null!=i?i:"")});if("set"===n)return R(r,function(){return null!=i?i:""})}else if("class"===o){if("append"===n)return M(r,function(e){i&&e.add(i)});if("remove"===n)return M(r,function(e){i&&e.delete(i)});if("set"===n)return M(r,function(e){e.clear(),i&&e.add(i)})}else if("position"===o){if("set"===n&&s)return t=function(){return{insertBeforeSelector:l,parentSelector:s}},O({kind:"position",elements:new Set,mutate:t,selector:r})}else{if("append"===n)return N(r,o,function(e){return null!==e?e+(null!=i?i:""):null!=i?i:""});if("set"===n)return N(r,o,function(){return null!=i?i:""});if("remove"===n)return N(r,o,function(){return null})}return a}};function D(e){let t=2166136261,r=e.length;for(let n=0;n<r;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return t>>>0}function B(e,t,r){return 2===r?D(D(e+t)+"")%1e4/1e4:1===r?D(t+e)%1e3/1e3:null}function L(e,t){return e>=t[0]&&e<t[1]}function $(e){try{let t=e.replace(/([^\\])\//g,"$1\\/");return new RegExp(t)}catch(e){console.error(e);return}}let U=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));async function z(e,t,r){if(t=t||"",!(r=r||globalThis.crypto&&globalThis.crypto.subtle))throw Error("No SubtleCrypto implementation found");try{let n=await r.importKey("raw",U(t),{name:"AES-CBC",length:128},!0,["encrypt","decrypt"]),[i,o]=e.split("."),a=await r.decrypt({name:"AES-CBC",iv:U(i)},n,U(o));return new TextDecoder().decode(a)}catch(e){throw Error("Failed to decrypt")}}function F(e){"number"==typeof e&&(e+=""),e&&"string"==typeof e||(e="0");let t=e.replace(/(^v|\+.*$)/g,"").split(/[-.]/);return 3===t.length&&t.push("~"),t.map(e=>e.match(/^[0-9]+$/)?e.padStart(5," "):e).join("-")}let q={};function H(e,t){if("$or"in t)return Z(e,t.$or);if("$nor"in t)return!Z(e,t.$nor);if("$and"in t)return function(e,t){for(let r=0;r<t.length;r++)if(!H(e,t[r]))return!1;return!0}(e,t.$and);if("$not"in t)return!H(e,t.$not);for(let[r,n]of Object.entries(t))if(!function e(t,r){if("string"==typeof t)return r+""===t;if("number"==typeof t)return 1*r===t;if("boolean"==typeof t)return!!r===t;if(null===t)return null===r;if(Array.isArray(t)||!W(t))return JSON.stringify(r)===JSON.stringify(t);for(let n in t)if(!function(t,r,n){switch(t){case"$veq":return F(r)===F(n);case"$vne":return F(r)!==F(n);case"$vgt":return F(r)>F(n);case"$vgte":return F(r)>=F(n);case"$vlt":return F(r)<F(n);case"$vlte":return F(r)<=F(n);case"$eq":return r===n;case"$ne":return r!==n;case"$lt":return r<n;case"$lte":return r<=n;case"$gt":return r>n;case"$gte":return r>=n;case"$exists":return n?null!=r:null==r;case"$in":if(!Array.isArray(n))return!1;return V(r,n);case"$nin":if(!Array.isArray(n))return!1;return!V(r,n);case"$not":return!e(n,r);case"$size":if(!Array.isArray(r))return!1;return e(n,r.length);case"$elemMatch":return function(t,r){if(!Array.isArray(t))return!1;let n=W(r)?t=>e(r,t):e=>H(e,r);for(let e=0;e<t.length;e++)if(t[e]&&n(t[e]))return!0;return!1}(r,n);case"$all":if(!Array.isArray(r))return!1;for(let t=0;t<n.length;t++){let i=!1;for(let o=0;o<r.length;o++)if(e(n[t],r[o])){i=!0;break}if(!i)return!1}return!0;case"$regex":try{return(q[n]||(q[n]=new RegExp(n.replace(/([^\\])\//g,"$1\\/"))),q[n]).test(r)}catch(e){return!1}case"$type":return function(e){if(null===e)return"null";if(Array.isArray(e))return"array";let t=typeof e;return["string","number","boolean","object","undefined"].includes(t)?t:"unknown"}(r)===n;default:return console.error("Unknown operator: "+t),!1}}(n,r,t[n]))return!1;return!0}(n,function(e,t){let r=t.split("."),n=e;for(let e=0;e<r.length;e++){if(!n||"object"!=typeof n||!(r[e]in n))return null;n=n[r[e]]}return n}(e,r)))return!1;return!0}function W(e){let t=Object.keys(e);return t.length>0&&t.filter(e=>"$"===e[0]).length===t.length}function V(e,t){return Array.isArray(e)?e.some(e=>t.includes(e)):t.includes(e)}function Z(e,t){if(!t.length)return!0;for(let r=0;r<t.length;r++)if(H(e,t[r]))return!0;return!1}let G={staleTTL:6e4,cacheKey:"gbFeaturesCache",backgroundSync:!0,maxEntries:10,disableIdleStreams:!1,idleStreamInterval:2e4},K={fetch:globalThis.fetch?globalThis.fetch.bind(globalThis):void 0,SubtleCrypto:globalThis.crypto?globalThis.crypto.subtle:void 0,EventSource:globalThis.EventSource},Y={fetchFeaturesCall:e=>{let{host:t,clientKey:r,headers:n}=e;return K.fetch("".concat(t,"/api/features/").concat(r),{headers:n})},fetchRemoteEvalCall:e=>{let{host:t,clientKey:r,payload:n,headers:i}=e,o={method:"POST",headers:{"Content-Type":"application/json",...i},body:JSON.stringify(n)};return K.fetch("".concat(t,"/api/eval/").concat(r),o)},eventSourceCall:e=>{let{host:t,clientKey:r,headers:n}=e;return n?new K.EventSource("".concat(t,"/sub/").concat(r),{headers:n}):new K.EventSource("".concat(t,"/sub/").concat(r))},startIdleListener:()=>{let e;if(!("undefined"!=typeof window&&"undefined"!=typeof document))return;let t=()=>{"visible"===document.visibilityState?(window.clearTimeout(e),et.forEach(e=>{e&&"idle"===e.state&&ev(e)})):"hidden"===document.visibilityState&&(e=window.setTimeout(ei,G.idleStreamInterval))};return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)},stopIdleListener:()=>{}};try{globalThis.localStorage&&(K.localStorage=globalThis.localStorage)}catch(e){}let Q=new Map,J=!1,X=new Map,ee=new Map,et=new Map,er=new Set;async function en(e,t,r,n,i,o){o||(G.backgroundSync=!1);let a=await ea(e,n,t,r);i&&a&&await eh(e,a)}function ei(){et.forEach(e=>{e&&(e.state="idle",em(e))})}async function eo(){try{if(!K.localStorage)return;await K.localStorage.setItem(G.cacheKey,JSON.stringify(Array.from(X.entries())))}catch(e){}}async function ea(e,t,r,n){var i;let o=es(e),a=el(e),s=new Date;await ec();let l=X.get(a);return l&&!n&&(t||l.staleAt>s)?(l.sse&&er.add(o),l.staleAt<s?ef(e):ep(e),l.data):await (i=ef(e),new Promise(e=>{let t,n=!1,o=r=>{n||(n=!0,t&&clearTimeout(t),e(r||null))};r&&(t=setTimeout(()=>o(),r)),i.then(e=>o(e)).catch(()=>o())}))}function es(e){let[t,r]=e.getApiInfo();return"".concat(t,"||").concat(r)}function el(e){let t=es(e);if(!e.isRemoteEval())return t;let r=e.getAttributes(),n=e.getCacheKeyAttributes()||Object.keys(e.getAttributes()),i={};n.forEach(e=>{i[e]=r[e]});let o=e.getForcedVariations(),a=e.getUrl();return"".concat(t,"||").concat(JSON.stringify({ca:i,fv:o,url:a}))}async function ec(){if(!J){J=!0;try{if(K.localStorage){let e=await K.localStorage.getItem(G.cacheKey);if(e){let t=JSON.parse(e);t&&Array.isArray(t)&&t.forEach(e=>{let[t,r]=e;X.set(t,{...r,staleAt:new Date(r.staleAt)})}),eu()}}}catch(e){}if(!G.disableIdleStreams){let e=Y.startIdleListener();e&&(Y.stopIdleListener=e)}}}function eu(){let e=Array.from(X.entries()).map(e=>{let[t,r]=e;return{key:t,staleAt:r.staleAt.getTime()}}).sort((e,t)=>e.staleAt-t.staleAt),t=Math.min(Math.max(0,X.size-G.maxEntries),X.size);for(let r=0;r<t;r++)X.delete(e[r].key)}function ed(e,t,r){let n=r.dateUpdated||"",i=new Date(Date.now()+G.staleTTL),o=X.get(t);if(o&&n&&o.version===n){o.staleAt=i,eo();return}X.set(t,{data:r,version:n,staleAt:i,sse:er.has(e)}),eu(),eo();let a=Q.get(e);a&&a.forEach(e=>eh(e,r))}async function eh(e,t){await (t.encryptedExperiments?e.setEncryptedExperiments(t.encryptedExperiments,void 0,K.SubtleCrypto):e.setExperiments(t.experiments||e.getExperiments())),await (t.encryptedFeatures?e.setEncryptedFeatures(t.encryptedFeatures,void 0,K.SubtleCrypto):e.setFeatures(t.features||e.getFeatures()))}async function ef(e){let{apiHost:t,apiRequestHeaders:r}=e.getApiHosts(),n=e.getClientKey(),i=e.isRemoteEval(),o=es(e),a=el(e),s=ee.get(a);return s||(s=(i?Y.fetchRemoteEvalCall({host:t,clientKey:n,payload:{attributes:e.getAttributes(),forcedVariations:e.getForcedVariations(),forcedFeatures:Array.from(e.getForcedFeatures().entries()),url:e.getUrl()},headers:r}):Y.fetchFeaturesCall({host:t,clientKey:n,headers:r})).then(e=>("enabled"===e.headers.get("x-sse-support")&&er.add(o),e.json())).then(t=>(ed(o,a,t),ep(e),ee.delete(a),t)).catch(e=>(ee.delete(a),Promise.resolve({}))),ee.set(a,s)),await s}function ep(e){let t=es(e),r=el(e),{streamingHost:n,streamingHostRequestHeaders:i}=e.getApiHosts(),o=e.getClientKey();if(G.backgroundSync&&er.has(t)&&K.EventSource){if(et.has(t))return;let e={src:null,host:n,clientKey:o,headers:i,cb:n=>{try{if("features-updated"===n.type){let e=Q.get(t);e&&e.forEach(e=>{ef(e)})}else if("features"===n.type){let e=JSON.parse(n.data);ed(t,r,e)}e.errors=0}catch(t){eg(e)}},errors:0,state:"active"};et.set(t,e),ev(e)}}function eg(e){if("idle"!==e.state&&(e.errors++,e.errors>3||e.src&&2===e.src.readyState)){let t=Math.pow(3,e.errors-3)*(1e3+1e3*Math.random());em(e),setTimeout(()=>{["idle","active"].includes(e.state)||ev(e)},Math.min(t,3e5))}}function em(e){e.src&&(e.src.onopen=null,e.src.onerror=null,e.src.close(),e.src=null,"active"===e.state&&(e.state="disabled"))}function ev(e){e.src=Y.eventSourceCall({host:e.host,clientKey:e.clientKey,headers:e.headers}),e.state="active",e.src.addEventListener("features",e.cb),e.src.addEventListener("features-updated",e.cb),e.src.onerror=()=>eg(e),e.src.onopen=()=>{e.errors=0}}let eb="undefined"!=typeof window&&"undefined"!=typeof document,ey=function(){let e;try{e="0.31.0"}catch(t){e=""}return e}();class ew{constructor(e){if(e=e||{},this.version=ey,this._ctx=this.context=e,this._renderer=null,this._trackedExperiments=new Set,this._trackedFeatures={},this.debug=!1,this._subscriptions=new Set,this._rtQueue=[],this._rtTimer=0,this.ready=!1,this._assigned=new Map,this._forcedFeatureValues=new Map,this._attributeOverrides={},this._activeAutoExperiments=new Map,this._triggeredExpKeys=new Set,this._loadFeaturesCalled=!1,e.remoteEval){if(e.decryptionKey)throw Error("Encryption is not available for remoteEval");if(!e.clientKey)throw Error("Missing clientKey");let t=!1;try{t=!!new URL(e.apiHost||"").hostname.match(/growthbook\.io$/i)}catch(e){}if(t)throw Error("Cannot use remoteEval on GrowthBook Cloud")}else if(e.cacheKeyAttributes)throw Error("cacheKeyAttributes are only used for remoteEval");e.features&&(this.ready=!0),eb&&e.enableDevMode&&(window._growthbook=this,document.dispatchEvent(new Event("gbloaded"))),e.experiments&&(this.ready=!0,this._updateAllAutoExperiments()),e.clientKey&&!e.remoteEval&&this._refresh({},!0,!1)}async loadFeatures(e){e&&e.autoRefresh&&(this._ctx.subscribeToChanges=!0),this._loadFeaturesCalled=!0,await this._refresh(e,!0,!0),this._canSubscribe()&&function(e){let t=es(e),r=Q.get(t)||new Set;r.add(e),Q.set(t,r)}(this)}async refreshFeatures(e){await this._refresh(e,!1,!0)}getApiInfo(){return[this.getApiHosts().apiHost,this.getClientKey()]}getApiHosts(){let e=this._ctx.apiHost||"https://cdn.growthbook.io";return{apiHost:e.replace(/\/*$/,""),streamingHost:(this._ctx.streamingHost||e).replace(/\/*$/,""),apiRequestHeaders:this._ctx.apiHostRequestHeaders,streamingHostRequestHeaders:this._ctx.streamingHostRequestHeaders}}getClientKey(){return this._ctx.clientKey||""}isRemoteEval(){return this._ctx.remoteEval||!1}getCacheKeyAttributes(){return this._ctx.cacheKeyAttributes}async _refresh(e,t,r){if(e=e||{},!this._ctx.clientKey)throw Error("Missing clientKey");await en(this,e.timeout,e.skipCache||this._ctx.enableDevMode,t,r,!1!==this._ctx.backgroundSync)}_render(){this._renderer&&this._renderer()}setFeatures(e){this._ctx.features=e,this.ready=!0,this._render()}async setEncryptedFeatures(e,t,r){let n=await z(e,t||this._ctx.decryptionKey,r);this.setFeatures(JSON.parse(n))}setExperiments(e){this._ctx.experiments=e,this.ready=!0,this._updateAllAutoExperiments()}async setEncryptedExperiments(e,t,r){let n=await z(e,t||this._ctx.decryptionKey,r);this.setExperiments(JSON.parse(n))}setAttributes(e){if(this._ctx.attributes=e,this._ctx.remoteEval){this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setAttributeOverrides(e){if(this._attributeOverrides=e,this._ctx.remoteEval){this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedVariations(e){if(this._ctx.forcedVariations=e||{},this._ctx.remoteEval){this._refreshForRemoteEval();return}this._render(),this._updateAllAutoExperiments()}setForcedFeatures(e){this._forcedFeatureValues=e,this._render()}setURL(e){if(this._ctx.url=e,this._ctx.remoteEval){this._refreshForRemoteEval().then(()=>this._updateAllAutoExperiments(!0));return}this._updateAllAutoExperiments(!0)}getAttributes(){return{...this._ctx.attributes,...this._attributeOverrides}}getForcedVariations(){return this._ctx.forcedVariations||{}}getForcedFeatures(){return this._forcedFeatureValues||new Map}getUrl(){return this._ctx.url||""}getFeatures(){return this._ctx.features||{}}getExperiments(){return this._ctx.experiments||[]}subscribe(e){return this._subscriptions.add(e),()=>{this._subscriptions.delete(e)}}_canSubscribe(){return!1!==this._ctx.backgroundSync&&this._ctx.subscribeToChanges}async _refreshForRemoteEval(){this._ctx.remoteEval&&this._loadFeaturesCalled&&await this._refresh({},!1,!0).catch(()=>{})}getAllResults(){return new Map(this._assigned)}destroy(){var e;this._subscriptions.clear(),this._assigned.clear(),this._trackedExperiments.clear(),this._trackedFeatures={},this._rtQueue=[],this._rtTimer&&clearTimeout(this._rtTimer),e=this,Q.forEach(t=>t.delete(e)),eb&&window._growthbook===this&&delete window._growthbook,this._activeAutoExperiments.forEach(e=>{e.undo()}),this._activeAutoExperiments.clear(),this._triggeredExpKeys.clear()}setRenderer(e){this._renderer=e}forceVariation(e,t){if(this._ctx.forcedVariations=this._ctx.forcedVariations||{},this._ctx.forcedVariations[e]=t,this._ctx.remoteEval){this._refreshForRemoteEval();return}this._updateAllAutoExperiments(),this._render()}run(e){let t=this._run(e,null);return this._fireSubscriptions(e,t),t}triggerExperiment(e){if(this._triggeredExpKeys.add(e),!this._ctx.experiments)return null;this._ctx.experiments.filter(t=>t.key===e).forEach(e=>{if(!e.manual)return null;this._runAutoExperiment(e)})}_runAutoExperiment(e,t){let r=this._activeAutoExperiments.get(e);if(e.manual&&!this._triggeredExpKeys.has(e.key)&&!r)return null;let n=this.run(e),i=JSON.stringify(n.value);if(!t&&n.inExperiment&&r&&r.valueHash===i)return n;if(r&&this._undoActiveAutoExperiment(e),n.inExperiment){let t=this._applyDOMChanges(n.value);t&&this._activeAutoExperiments.set(e,{undo:t,valueHash:i})}return n}_undoActiveAutoExperiment(e){let t=this._activeAutoExperiments.get(e);t&&(t.undo(),this._activeAutoExperiments.delete(e))}_updateAllAutoExperiments(e){let t=this._ctx.experiments||[],r=new Set(t);this._activeAutoExperiments.forEach((e,t)=>{r.has(t)||(e.undo(),this._activeAutoExperiments.delete(t))}),t.forEach(t=>{this._runAutoExperiment(t,e)})}_fireSubscriptions(e,t){let r=e.key,n=this._assigned.get(r);n&&n.result.inExperiment===t.inExperiment&&n.result.variationId===t.variationId||(this._assigned.set(r,{experiment:e,result:t}),this._subscriptions.forEach(r=>{try{r(e,t)}catch(e){console.error(e)}}))}_trackFeatureUsage(e,t){if("override"===t.source)return;let r=JSON.stringify(t.value);if(this._trackedFeatures[e]!==r){if(this._trackedFeatures[e]=r,this._ctx.onFeatureUsage)try{this._ctx.onFeatureUsage(e,t)}catch(e){}eb&&window.fetch&&(this._rtQueue.push({key:e,on:t.on}),this._rtTimer||(this._rtTimer=window.setTimeout(()=>{this._rtTimer=0;let e=[...this._rtQueue];this._rtQueue=[],this._ctx.realtimeKey&&window.fetch("https://rt.growthbook.io/?key=".concat(this._ctx.realtimeKey,"&events=").concat(encodeURIComponent(JSON.stringify(e))),{cache:"no-cache",mode:"no-cors"}).catch(()=>{})},this._ctx.realtimeInterval||2e3)))}}_getFeatureResult(e,t,r,n,i,o){let a={value:t,on:!!t,off:!t,source:r,ruleId:n||""};return i&&(a.experiment=i),o&&(a.experimentResult=o),this._trackFeatureUsage(e,a),a}isOn(e){return this.evalFeature(e).on}isOff(e){return this.evalFeature(e).off}getFeatureValue(e,t){let r=this.evalFeature(e).value;return null===r?t:r}feature(e){return this.evalFeature(e)}evalFeature(e){if(this._forcedFeatureValues.has(e))return this._getFeatureResult(e,this._forcedFeatureValues.get(e),"override");if(!this._ctx.features||!this._ctx.features[e])return this._getFeatureResult(e,null,"unknownFeature");let t=this._ctx.features[e];if(t.rules)for(let r of t.rules){if(r.condition&&!this._conditionPasses(r.condition)||r.filters&&this._isFilteredOut(r.filters))continue;if("force"in r){if(!this._isIncludedInRollout(r.seed||e,r.hashAttribute,r.range,r.coverage,r.hashVersion))continue;return r.tracks&&r.tracks.forEach(e=>{this._track(e.experiment,e.result)}),this._getFeatureResult(e,r.force,"force",r.id)}if(!r.variations)continue;let t={variations:r.variations,key:r.key||e};"coverage"in r&&(t.coverage=r.coverage),r.weights&&(t.weights=r.weights),r.hashAttribute&&(t.hashAttribute=r.hashAttribute),r.namespace&&(t.namespace=r.namespace),r.meta&&(t.meta=r.meta),r.ranges&&(t.ranges=r.ranges),r.name&&(t.name=r.name),r.phase&&(t.phase=r.phase),r.seed&&(t.seed=r.seed),r.hashVersion&&(t.hashVersion=r.hashVersion),r.filters&&(t.filters=r.filters);let n=this._run(t,e);if(this._fireSubscriptions(t,n),n.inExperiment&&!n.passthrough)return this._getFeatureResult(e,n.value,"experiment",r.id,t,n)}return this._getFeatureResult(e,void 0===t.defaultValue?null:t.defaultValue,"defaultValue")}_isIncludedInRollout(e,t,r,n,i){if(!r&&void 0===n)return!0;let{hashValue:o}=this._getHashAttribute(t);if(!o)return!1;let a=B(e,o,i||1);return null!==a&&(r?L(a,r):void 0===n||a<=n)}_conditionPasses(e){return H(this.getAttributes(),e)}_isFilteredOut(e){return e.some(e=>{let{hashValue:t}=this._getHashAttribute(e.attribute);if(!t)return!0;let r=B(e.seed,t,e.hashVersion||2);return null===r||!e.ranges.some(e=>L(r,e))})}_run(e,t){let r=e.key,n=e.variations.length;if(n<2||!1===this._ctx.enabled)return this._getResult(e,-1,!1,t);e=this._mergeOverrides(e);let i=function(e,t,r){if(!t)return null;let n=t.split("?")[1];if(!n)return null;let i=n.replace(/#.*/,"").split("&").map(e=>e.split("=",2)).filter(t=>{let[r]=t;return r===e}).map(e=>{let[,t]=e;return parseInt(t)});return i.length>0&&i[0]>=0&&i[0]<r?i[0]:null}(r,this._getContextUrl(),n);if(null!==i)return this._getResult(e,i,!1,t);if(this._ctx.forcedVariations&&r in this._ctx.forcedVariations){let n=this._ctx.forcedVariations[r];return this._getResult(e,n,!1,t)}if("draft"===e.status||!1===e.active)return this._getResult(e,-1,!1,t);let{hashValue:o}=this._getHashAttribute(e.hashAttribute);if(!o)return this._getResult(e,-1,!1,t);if(e.filters){if(this._isFilteredOut(e.filters))return this._getResult(e,-1,!1,t)}else if(e.namespace&&!function(e,t){let r=B("__"+t[0],e,1);return null!==r&&r>=t[1]&&r<t[2]}(o,e.namespace))return this._getResult(e,-1,!1,t);if(e.include&&!function(e){try{return e()}catch(e){return console.error(e),!1}}(e.include)||e.condition&&!this._conditionPasses(e.condition)||e.groups&&!this._hasGroupOverlap(e.groups)||e.url&&!this._urlIsValid(e.url)||e.urlPatterns&&!function(e,t){if(!t.length)return!1;let r=!1,n=!1;for(let i=0;i<t.length;i++){let o=function(e,t,r){try{let n=new URL(e,"https://_");if("regex"===t){let e=$(r);if(!e)return!1;return e.test(n.href)||e.test(n.href.substring(n.origin.length))}if("simple"===t)return function(e,t){try{let r=new URL(t.replace(/^([^:/?]*)\./i,"https://$1.").replace(/\*/g,"_____"),"https://_____"),n=[[e.host,r.host,!1],[e.pathname,r.pathname,!0]];return r.hash&&n.push([e.hash,r.hash,!1]),r.searchParams.forEach((t,r)=>{n.push([e.searchParams.get(r)||"",t,!1])}),!n.some(e=>!function(e,t,r){try{let n=t.replace(/[*.+?^${}()|[\]\\]/g,"\\$&").replace(/_____/g,".*");return r&&(n="\\/?"+n.replace(/(^\/|\/$)/g,"")+"\\/?"),RegExp("^"+n+"$","i").test(e)}catch(e){return!1}}(e[0],e[1],e[2]))}catch(e){return!1}}(n,r);return!1}catch(e){return!1}}(e,t[i].type,t[i].pattern);if(!1===t[i].include){if(o)return!1}else r=!0,o&&(n=!0)}return n||!r}(this._getContextUrl(),e.urlPatterns))return this._getResult(e,-1,!1,t);let a=B(e.seed||r,o,e.hashVersion||1);if(null===a)return this._getResult(e,-1,!1,t);let s=function(e,t){for(let r=0;r<t.length;r++)if(L(e,t[r]))return r;return -1}(a,e.ranges||function(e,t,r){(t=void 0===t?1:t)<0?t=0:t>1&&(t=1);let n=e<=0?[]:Array(e).fill(1/e);(r=r||n).length!==e&&(r=n);let i=r.reduce((e,t)=>t+e,0);(i<.99||i>1.01)&&(r=n);let o=0;return r.map(e=>{let r=o;return o+=e,[r,r+t*e]})}(n,void 0===e.coverage?1:e.coverage,e.weights));if(s<0)return this._getResult(e,-1,!1,t);if("force"in e)return this._getResult(e,void 0===e.force?-1:e.force,!1,t);if(this._ctx.qaMode||"stopped"===e.status)return this._getResult(e,-1,!1,t);let l=this._getResult(e,s,!0,t,a);return this._track(e,l),l}log(e,t){this.debug&&(this._ctx.log?this._ctx.log(e,t):console.log(e,t))}_track(e,t){if(!this._ctx.trackingCallback)return;let r=e.key,n=t.hashAttribute+t.hashValue+r+t.variationId;if(!this._trackedExperiments.has(n)){this._trackedExperiments.add(n);try{this._ctx.trackingCallback(e,t)}catch(e){console.error(e)}}}_mergeOverrides(e){let t=e.key,r=this._ctx.overrides;return r&&r[t]&&"string"==typeof(e=Object.assign({},e,r[t])).url&&(e.url=$(e.url)),e}_getHashAttribute(e){let t=e||"id",r="";return this._attributeOverrides[t]?r=this._attributeOverrides[t]:this._ctx.attributes?r=this._ctx.attributes[t]||"":this._ctx.user&&(r=this._ctx.user[t]||""),{hashAttribute:t,hashValue:r}}_getResult(e,t,r,n,i){let o=!0;(t<0||t>=e.variations.length)&&(t=0,o=!1);let{hashAttribute:a,hashValue:s}=this._getHashAttribute(e.hashAttribute),l=e.meta?e.meta[t]:{},c={key:l.key||""+t,featureId:n,inExperiment:o,hashUsed:r,variationId:t,value:e.variations[t],hashAttribute:a,hashValue:s};return l.name&&(c.name=l.name),void 0!==i&&(c.bucket=i),l.passthrough&&(c.passthrough=l.passthrough),c}_getContextUrl(){return this._ctx.url||(eb?window.location.href:"")}_urlIsValid(e){let t=this._getContextUrl();if(!t)return!1;let r=t.replace(/^https?:\/\//,"").replace(/^[^/]*\//,"/");return!!(e.test(t)||e.test(r))}_hasGroupOverlap(e){let t=this._ctx.groups||{};for(let r=0;r<e.length;r++)if(t[e[r]])return!0;return!1}_applyDOMChanges(e){if(!eb)return;let t=[];if(e.css){let r=document.createElement("style");r.innerHTML=e.css,document.head.appendChild(r),t.push(()=>r.remove())}if(e.js){let r=document.createElement("script");r.innerHTML=e.js,document.body.appendChild(r),t.push(()=>r.remove())}return e.domMutations&&e.domMutations.forEach(e=>{t.push(j.declarative(e).revert)}),()=>{t.forEach(e=>e())}}}var ex=r(67294);let e_=ex.createContext({});function eC(e,t){let r=eA();return r?r.getFeatureValue(e,t):t}function eA(){let{growthbook:e}=ex.useContext(e_);return e}let ek=({children:e,growthbook:t})=>{let[r,n]=ex.useState(0);return ex.useEffect(()=>{if(t&&t.setRenderer)return t.setRenderer(()=>{n(e=>e+1)}),()=>{t.setRenderer(()=>{})}},[t]),ex.createElement(e_.Provider,{value:{growthbook:t}},e)}},64487:function(e,t,r){"use strict";r.d(t,{$e:function(){return a},Tb:function(){return i},e:function(){return o}});var n=r(95659);function i(e,t){return(0,n.Gd)().captureException(e,{captureContext:t})}function o(e){(0,n.Gd)().configureScope(e)}function a(e){(0,n.Gd)().withScope(e)}},95659:function(e,t,r){"use strict";r.d(t,{Gd:function(){return f}});var n=r(62844),i=r(21170),o=r(12343),a=r(71235),s=r(92448),l=r(10350),c=r(9015);class u{__init(){this._stack=[{}]}constructor(e,t=new l.s,r=4){this._version=r,u.prototype.__init.call(this),this.getStackTop().scope=t,e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){let e=l.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){let t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){let r=this._lastEventId=t&&t.event_id?t.event_id:(0,n.DM)(),i=Error("Sentry syntheticException");return this._withClient((n,o)=>{n.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},o)}),r}captureMessage(e,t,r){let i=this._lastEventId=r&&r.event_id?r.event_id:(0,n.DM)(),o=Error(e);return this._withClient((n,a)=>{n.captureMessage(e,t,{originalException:e,syntheticException:o,...r,event_id:i},a)}),i}captureEvent(e,t){let r=t&&t.event_id?t.event_id:(0,n.DM)();return"transaction"!==e.type&&(this._lastEventId=r),this._withClient((n,i)=>{n.captureEvent(e,{...t,event_id:r},i)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){let{scope:r,client:n}=this.getStackTop();if(!r||!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:s=100}=n.getOptions&&n.getOptions()||{};if(s<=0)return;let l={timestamp:(0,i.yW)(),...e},c=a?(0,o.Cf)(()=>a(l,t)):l;null!==c&&r.addBreadcrumb(c,s)}setUser(e){let t=this.getScope();t&&t.setUser(e)}setTags(e){let t=this.getScope();t&&t.setTags(e)}setExtras(e){let t=this.getScope();t&&t.setExtras(e)}setTag(e,t){let r=this.getScope();r&&r.setTag(e,t)}setExtra(e,t){let r=this.getScope();r&&r.setExtra(e,t)}setContext(e,t){let r=this.getScope();r&&r.setContext(e,t)}configureScope(e){let{scope:t,client:r}=this.getStackTop();t&&r&&e(t)}run(e){let t=h(this);try{e(this)}finally{h(t)}}getIntegration(e){let t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(e){return null}}startTransaction(e,t){return this._callExtensionMethod("startTransaction",e,t)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){let e=this.getStackTop(),t=e&&e.scope,r=t&&t.getSession();r&&(0,c.RJ)(r),this._sendSessionUpdate(),t&&t.setSession()}startSession(e){let{scope:t,client:r}=this.getStackTop(),{release:n,environment:i}=r&&r.getOptions()||{},{userAgent:o}=a.n2.navigator||{},s=(0,c.Hv)({release:n,environment:i,...t&&{user:t.getUser()},...o&&{userAgent:o},...e});if(t){let e=t.getSession&&t.getSession();e&&"ok"===e.status&&(0,c.CT)(e,{status:"exited"}),this.endSession(),t.setSession(s)}return s}shouldSendDefaultPii(){let e=this.getClient(),t=e&&e.getOptions();return!!(t&&t.sendDefaultPii)}_sendSessionUpdate(){let{scope:e,client:t}=this.getStackTop();if(!e)return;let r=e.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_withClient(e){let{scope:t,client:r}=this.getStackTop();r&&e(r,t)}_callExtensionMethod(e,...t){let r=d().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t)}}function d(){return a.n2.__SENTRY__=a.n2.__SENTRY__||{extensions:{},hub:void 0},a.n2}function h(e){let t=d(),r=g(t);return m(t,e),r}function f(){let e=d();return((!p(e)||g(e).isOlderThan(4))&&m(e,new u),(0,s.KV)())?function(e){try{let t=d().__SENTRY__,r=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!r)return g(e);if(!p(r)||g(r).isOlderThan(4)){let t=g(e).getStackTop();m(r,new u(t.client,l.s.clone(t.scope)))}return g(r)}catch(t){return g(e)}}(e):g(e)}function p(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function g(e){return(0,a.YO)("hub",()=>new u,e)}function m(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},10350:function(e,t,r){"use strict";r.d(t,{c:function(){return d},s:function(){return c}});var n=r(67597),i=r(21170),o=r(96893),a=r(62844),s=r(71235),l=r(9015);class c{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){let t=new c;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&(0,l.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){let t=e(this);return t instanceof c?t:this}return e instanceof c?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):(0,n.PO)(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,n].slice(-r),this._notifyScopeListeners(),this}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e,t={}){if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};let t=this._span.transaction&&this._span.transaction.name;t&&(e.tags={transaction:t,...e.tags})}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...u(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,r,i=0){return new o.cW((o,a)=>{let s=e[i];if(null===t||"function"!=typeof s)o(t);else{let l=s({...t},r);(0,n.J8)(l)?l.then(t=>this._notifyEventProcessors(e,t,r,i+1).then(o)).then(null,a):this._notifyEventProcessors(e,l,r,i+1).then(o).then(null,a)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}_applyFingerprint(e){e.fingerprint=e.fingerprint?(0,a.lE)(e.fingerprint):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function u(){return(0,s.YO)("globalEventProcessors",()=>[])}function d(e){u().push(e)}},9015:function(e,t,r){"use strict";r.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return l}});var n=r(21170),i=r(62844),o=r(20535);function a(e){let t=(0,n.ph)(),r={sid:(0,i.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(0,o.Jr)({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&s(r,e),r}function s(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,n.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,i.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),s(e,r)}},58464:function(e,t,r){"use strict";r.d(t,{Rt:function(){return o},l4:function(){return a},qT:function(){return s}});var n=r(67597);let i=(0,r(71235).Rf)();function o(e,t={}){try{let r,i=e,o=[],a=0,s=0,l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&a++<5&&(r=function(e,t){let r,i,o,a,s;let l=[];if(!e||!e.tagName)return"";l.push(e.tagName.toLowerCase());let c=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(c&&c.length)c.forEach(e=>{l.push(`[${e[0]}="${e[1]}"]`)});else if(e.id&&l.push(`#${e.id}`),(r=e.className)&&(0,n.HD)(r))for(s=0,i=r.split(/\s+/);s<i.length;s++)l.push(`.${i[s]}`);let u=["type","name","title","alt"];for(s=0;s<u.length;s++)o=u[s],(a=e.getAttribute(o))&&l.push(`[${o}="${a}"]`);return l.join("")}(i,l),"html"!==r&&(!(a>1)||!(s+3*o.length+r.length>=c)));)o.push(r),s+=r.length,i=i.parentNode;return o.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(){try{return i.document.location.href}catch(e){return""}}function s(e){return i.document&&i.document.querySelector?i.document.querySelector(e):null}},67597:function(e,t,r){"use strict";r.d(t,{Cy:function(){return m},HD:function(){return c},J8:function(){return g},Kj:function(){return p},PO:function(){return d},TX:function(){return s},V9:function(){return b},VW:function(){return a},VZ:function(){return i},cO:function(){return h},fm:function(){return l},i2:function(){return v},kK:function(){return f},pt:function(){return u}});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return b(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function l(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function u(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function d(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&b(e,Event)}function f(e){return"undefined"!=typeof Element&&b(e,Element)}function p(e){return o(e,"RegExp")}function g(e){return!!(e&&e.then&&"function"==typeof e.then)}function m(e){return d(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"==typeof e&&e!=e}function b(e,t){try{return e instanceof t}catch(e){return!1}}},12343:function(e,t,r){"use strict";r.d(t,{Cf:function(){return o},RU:function(){return i}});var n=r(71235);let i=["debug","info","warn","error","log","assert","trace"];function o(e){if(!("console"in n.n2))return e();let t=n.n2.console,r={};i.forEach(e=>{let n=t[e]&&t[e].__sentry_original__;e in t&&n&&(r[e]=t[e],t[e]=n)});try{return e()}finally{Object.keys(r).forEach(e=>{t[e]=r[e]})}}!function(){let e={enable:()=>{},disable:()=>{}};i.forEach(t=>{e[t]=()=>void 0})}()},62844:function(e,t,r){"use strict";r.d(t,{DM:function(){return o},Db:function(){return l},EG:function(){return c},YO:function(){return u},jH:function(){return s},lE:function(){return d}});var n=r(20535),i=r(71235);function o(){let e=i.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");let r=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&r())>>e/4).toString(16))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){let{message:t,event_id:r}=e;if(t)return t;let n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function l(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function c(e,t){let r=a(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n&&n.data,...t.data};r.mechanism.data=e}}function u(e){if(e&&e.__sentry_captured__)return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch(e){}return!1}function d(e){return Array.isArray(e)?e:[e]}},92448:function(e,t,r){"use strict";r.d(t,{l$:function(){return o},KV:function(){return i}}),e=r.hmd(e);var n=r(34155);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==n?n:0)}function o(e,t){return e.require(t)}},20535:function(e,t,r){"use strict";r.d(t,{$Q:function(){return l},HK:function(){return c},Jr:function(){return g},Sh:function(){return d},_j:function(){return u},hl:function(){return a},xp:function(){return s},zf:function(){return p}});var n=r(58464),i=r(67597),o=r(57321);function a(e,t,r){if(!(t in e))return;let n=e[t],i=r(n);if("function"==typeof i)try{l(i,n)}catch(e){}e[t]=i}function s(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}function l(e,t){let r=t.prototype||{};e.prototype=t.prototype=r,s(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function u(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function d(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if(!(0,i.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...f(e)};return"undefined"!=typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,i.kK)(e)?(0,n.Rt)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function f(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function p(e,t=40){let r=Object.keys(d(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return(0,o.$G)(r[0],t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,o.$G)(n,t)}}return""}function g(e){return function e(t,r){if((0,i.PO)(t)){let n=r.get(t);if(void 0!==n)return n;let i={};for(let n of(r.set(t,i),Object.keys(t)))void 0!==t[n]&&(i[n]=e(t[n],r));return i}if(Array.isArray(t)){let n=r.get(t);if(void 0!==n)return n;let i=[];return r.set(t,i),t.forEach(t=>{i.push(e(t,r))}),i}return t}(e,new Map)}},57321:function(e,t,r){"use strict";r.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var n=r(67597);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.substr(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let n=e[t];try{r.push(String(n))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t=[],r=!1){return t.some(t=>(function(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))})(e,t,r))}},96893:function(e,t,r){"use strict";r.d(t,{$2:function(){return s},WD:function(){return a},cW:function(){return l}});var n,i,o=r(67597);function a(e){return new l(t=>{t(e)})}function s(e){return new l((t,r)=>{r(e)})}(n=i||(i={}))[n.PENDING=0]="PENDING",n[n.RESOLVED=1]="RESOLVED",n[n.REJECTED=2]="REJECTED";class l{__init(){this._state=i.PENDING}__init2(){this._handlers=[]}constructor(e){l.prototype.__init.call(this),l.prototype.__init2.call(this),l.prototype.__init3.call(this),l.prototype.__init4.call(this),l.prototype.__init5.call(this),l.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new l((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new l((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}__init3(){this._resolve=e=>{this._setResult(i.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(i.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{if(this._state===i.PENDING){if((0,o.J8)(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===i.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===i.RESOLVED&&e[1](this._value),this._state===i.REJECTED&&e[2](this._value),e[0]=!0)})}}}},21170:function(e,t,r){"use strict";r.d(t,{Z1:function(){return h},_I:function(){return d},ph:function(){return u},yW:function(){return c}});var n=r(92448),i=r(71235);e=r.hmd(e);let o=(0,i.Rf)(),a={nowSeconds:()=>Date.now()/1e3},s=(0,n.KV)()?function(){try{return(0,n.l$)(e,"perf_hooks").performance}catch(e){return}}():function(){let{performance:e}=o;if(e&&e.now)return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),l=void 0===s?a:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=a.nowSeconds.bind(a),u=l.nowSeconds.bind(l),d=u,h=(()=>{let{performance:e}=o;if(!e||!e.now)return;let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-r):36e5;return n<36e5||a<36e5?n<=a?e.timeOrigin:i:r})()},71235:function(e,t,r){"use strict";function n(e){return e&&e.Math==Math?e:void 0}r.d(t,{Rf:function(){return o},YO:function(){return a},n2:function(){return i}});let i="object"==typeof globalThis&&n(globalThis)||"object"==typeof window&&n(window)||"object"==typeof self&&n(self)||"object"==typeof r.g&&n(r.g)||function(){return this}()||{};function o(){return i}function a(e,t,r){let n=r||i,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}},1501:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliseAd=void 0;let i=n(r(67294)),o=n(r(73054));t.SliseAd=e=>{var t,r,n,a,s,l;let c=i.default.useCallback(()=>{let t=window;(t.adsbyslise=t.adsbyslise||[]).push({slot:e.slotId}),t.adsbyslisesync&&t.adsbyslisesync()},[e.slotId,e.format]);i.default.useEffect(()=>{c()},[c]);let[u,d]=(0,o.default)({src:`${e.__overrideSliseHost||"https://v1.slise.xyz"}/scripts/embed.js`,checkForExisting:!0,async:!0});return i.default.createElement("ins",{className:"adsbyslise",style:e.style,"data-ad-slot":e.slotId,"data-ad-pub":e.pub,"data-ad-format":e.format},i.default.createElement("div",{style:{width:null===(t=e.style)||void 0===t?void 0:t.width,height:null===(r=e.style)||void 0===r?void 0:r.height,maxWidth:null===(n=e.style)||void 0===n?void 0:n.maxWidth,maxHeight:null===(a=e.style)||void 0===a?void 0:a.maxHeight,minWidth:null===(s=e.style)||void 0===s?void 0:s.minWidth,minHeight:null===(l=e.style)||void 0===l?void 0:l.minHeight}}))}},47738:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(1501),t)},98099:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(97117);function i(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>8,t[r+1]=e>>>0,t}function o(e,t,r){return void 0===t&&(t=new Uint8Array(2)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+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,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>24,t[r+1]=e>>>16,t[r+2]=e>>>8,t[r+3]=e>>>0,t}function d(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),t[r+0]=e>>>0,t[r+1]=e>>>8,t[r+2]=e>>>16,t[r+3]=e>>>24,t}function h(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),u(e/4294967296>>>0,t,r),u(e>>>0,t,r+4),t}function f(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),d(e>>>0,t,r),d(e/4294967296>>>0,t,r+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 r=a(e,t),n=a(e,t+4);return 4294967296*r+n-(n>>31)*4294967296},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 r=l(e,t);return 4294967296*l(e,t+4)+r-(r>>31)*4294967296},t.readUint64LE=function(e,t){void 0===t&&(t=0);var r=c(e,t);return 4294967296*c(e,t+4)+r},t.writeUint64BE=h,t.writeInt64BE=h,t.writeUint64LE=f,t.writeInt64LE=f,t.readUintBE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintBE: array is too short for the given bitLength");for(var n=0,i=1,o=e/8+r-1;o>=r;o--)n+=t[o]*i,i*=256;return n},t.readUintLE=function(e,t,r){if(void 0===r&&(r=0),e%8!=0)throw Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-r)throw Error("readUintLE: array is too short for the given bitLength");for(var n=0,i=1,o=r;o<r+e/8;o++)n+=t[o]*i,i*=256;return n},t.writeUintBE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintBE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintBE value must be an integer");for(var o=1,a=e/8+i-1;a>=i;a--)r[a]=t/o&255,o*=256;return r},t.writeUintLE=function(e,t,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw Error("writeUintLE supports only bitLengths divisible by 8");if(!n.isSafeInteger(t))throw Error("writeUintLE value must be an integer");for(var o=1,a=i;a<i+e/8;a++)r[a]=t/o&255,o*=256;return r},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,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e),t},t.writeFloat32LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(4)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(r,e,!0),t},t.writeFloat64BE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e),t},t.writeFloat64LE=function(e,t,r){return void 0===t&&(t=new Uint8Array(8)),void 0===r&&(r=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(r,e,!0),t}},25439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98099),i=r(17309);function o(e,t,r,o,a){if(void 0===a&&(a=0),32!==e.length)throw Error("ChaCha: key size must be 32 bytes");if(o.length<r.length)throw Error("ChaCha: destination is shorter than source");if(0===a){if(8!==t.length&&12!==t.length)throw Error("ChaCha nonce must be 8 or 12 bytes");l=(s=new Uint8Array(16)).length-t.length,s.set(t,l)}else{if(16!==t.length)throw Error("ChaCha nonce with counter must be 16 bytes");s=t,l=a}for(var s,l,c=new Uint8Array(64),u=0;u<r.length;u+=64){!function(e,t,r){for(var i=r[3]<<24|r[2]<<16|r[1]<<8|r[0],o=r[7]<<24|r[6]<<16|r[5]<<8|r[4],a=r[11]<<24|r[10]<<16|r[9]<<8|r[8],s=r[15]<<24|r[14]<<16|r[13]<<8|r[12],l=r[19]<<24|r[18]<<16|r[17]<<8|r[16],c=r[23]<<24|r[22]<<16|r[21]<<8|r[20],u=r[27]<<24|r[26]<<16|r[25]<<8|r[24],d=r[31]<<24|r[30]<<16|r[29]<<8|r[28],h=t[3]<<24|t[2]<<16|t[1]<<8|t[0],f=t[7]<<24|t[6]<<16|t[5]<<8|t[4],p=t[11]<<24|t[10]<<16|t[9]<<8|t[8],g=t[15]<<24|t[14]<<16|t[13]<<8|t[12],m=1634760805,v=857760878,b=2036477234,y=1797285236,w=i,x=o,_=a,C=s,A=l,k=c,E=u,S=d,T=h,I=f,P=p,O=g,R=0;R<20;R+=2)T^=m=m+w|0,w^=A=A+(T=T>>>16|T<<16)|0,w=w>>>20|w<<12,I^=v=v+x|0,x^=k=k+(I=I>>>16|I<<16)|0,x=x>>>20|x<<12,P^=b=b+_|0,_^=E=E+(P=P>>>16|P<<16)|0,_=_>>>20|_<<12,O^=y=y+C|0,C^=S=S+(O=O>>>16|O<<16)|0,C=C>>>20|C<<12,P^=b=b+_|0,_^=E=E+(P=P>>>24|P<<8)|0,_=_>>>25|_<<7,O^=y=y+C|0,C^=S=S+(O=O>>>24|O<<8)|0,C=C>>>25|C<<7,I^=v=v+x|0,x^=k=k+(I=I>>>24|I<<8)|0,x=x>>>25|x<<7,T^=m=m+w|0,w^=A=A+(T=T>>>24|T<<8)|0,w=w>>>25|w<<7,O^=m=m+x|0,x^=E=E+(O=O>>>16|O<<16)|0,x=x>>>20|x<<12,T^=v=v+_|0,_^=S=S+(T=T>>>16|T<<16)|0,_=_>>>20|_<<12,I^=b=b+C|0,C^=A=A+(I=I>>>16|I<<16)|0,C=C>>>20|C<<12,P^=y=y+w|0,w^=k=k+(P=P>>>16|P<<16)|0,w=w>>>20|w<<12,I^=b=b+C|0,C^=A=A+(I=I>>>24|I<<8)|0,C=C>>>25|C<<7,P^=y=y+w|0,w^=k=k+(P=P>>>24|P<<8)|0,w=w>>>25|w<<7,T^=v=v+_|0,_^=S=S+(T=T>>>24|T<<8)|0,_=_>>>25|_<<7,O^=m=m+x|0,x^=E=E+(O=O>>>24|O<<8)|0,x=x>>>25|x<<7;n.writeUint32LE(m+1634760805|0,e,0),n.writeUint32LE(v+857760878|0,e,4),n.writeUint32LE(b+2036477234|0,e,8),n.writeUint32LE(y+1797285236|0,e,12),n.writeUint32LE(w+i|0,e,16),n.writeUint32LE(x+o|0,e,20),n.writeUint32LE(_+a|0,e,24),n.writeUint32LE(C+s|0,e,28),n.writeUint32LE(A+l|0,e,32),n.writeUint32LE(k+c|0,e,36),n.writeUint32LE(E+u|0,e,40),n.writeUint32LE(S+d|0,e,44),n.writeUint32LE(T+h|0,e,48),n.writeUint32LE(I+f|0,e,52),n.writeUint32LE(P+p|0,e,56),n.writeUint32LE(O+g|0,e,60)}(c,s,e);for(var d=u;d<u+64&&d<r.length;d++)o[d]=r[d]^c[d-u];!function(e,t,r){for(var n=1;r--;)n=n+(255&e[t])|0,e[t]=255&n,n>>>=8,t++;if(n>0)throw Error("ChaCha: counter overflow")}(s,0,l)}return i.wipe(c),0===a&&i.wipe(s),o}t.streamXOR=o,t.stream=function(e,t,r,n){return void 0===n&&(n=0),i.wipe(r),o(e,t,r,r,n)}},15501:function(e,t,r){"use strict";var n=r(25439),i=r(63027),o=r(17309),a=r(98099),s=r(4153);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 Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return e.prototype.seal=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");var a,s=new Uint8Array(16);s.set(e,s.length-e.length);var l=new Uint8Array(32);n.stream(this._key,s,l,4);var c=t.length+this.tagLength;if(i){if(i.length!==c)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(c);return n.streamXOR(this._key,s,t,a,4),this._authenticate(a.subarray(a.length-this.tagLength,a.length),l,a.subarray(0,a.length-this.tagLength),r),o.wipe(s),a},e.prototype.open=function(e,t,r,i){if(e.length>16)throw Error("ChaCha20Poly1305: incorrect nonce length");if(t.length<this.tagLength)return null;var a,l=new Uint8Array(16);l.set(e,l.length-e.length);var c=new Uint8Array(32);n.stream(this._key,l,c,4);var u=new Uint8Array(this.tagLength);if(this._authenticate(u,c,t.subarray(0,t.length-this.tagLength),r),!s.equal(u,t.subarray(t.length-this.tagLength,t.length)))return null;var d=t.length-this.tagLength;if(i){if(i.length!==d)throw Error("ChaCha20Poly1305: incorrect destination length");a=i}else a=new Uint8Array(d);return n.streamXOR(this._key,l,t.subarray(0,t.length-this.tagLength),a,4),o.wipe(l),a},e.prototype.clean=function(){return o.wipe(this._key),this},e.prototype._authenticate=function(e,t,r,n){var s=new i.Poly1305(t);n&&(s.update(n),n.length%16>0&&s.update(l.subarray(n.length%16))),s.update(r),r.length%16>0&&s.update(l.subarray(r.length%16));var c=new Uint8Array(8);n&&a.writeUint64LE(n.length,c),s.update(c),a.writeUint64LE(r.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},4153:function(e,t){"use strict";function r(e,t){if(e.length!==t.length)return 0;for(var r=0,n=0;n<e.length;n++)r|=e[n]^t[n];return 1&r-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,r){return~(e-1)&t|e-1&r},t.lessOrEqual=function(e,t){return(0|e)-(0|t)-1>>>31&1},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},31050:function(e,t,r){"use strict";t.Xx=t._w=t.aP=t.KS=t.jQ=void 0,r(31416);let n=r(93350);function i(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}r(17309),t.jQ=64,t.KS=64,t.aP=32,new Uint8Array(32)[0]=9;let o=i(),a=i([1]),s=(i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222])),l=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),c=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]);function u(e,t){for(let r=0;r<16;r++)e[r]=0|t[r]}function d(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function h(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function f(e,t){let r=i(),n=i();for(let e=0;e<16;e++)n[e]=t[e];d(n),d(n),d(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,h(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function g(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function m(e,t,r){let n,i,o=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,v=0,b=0,y=0,w=0,x=0,_=0,C=0,A=0,k=0,E=0,S=0,T=0,I=0,P=0,O=0,R=0,M=0,N=0,j=0,D=r[0],B=r[1],L=r[2],$=r[3],U=r[4],z=r[5],F=r[6],q=r[7],H=r[8],W=r[9],V=r[10],Z=r[11],G=r[12],K=r[13],Y=r[14],Q=r[15];o+=(n=t[0])*D,a+=n*B,s+=n*L,l+=n*$,c+=n*U,u+=n*z,d+=n*F,h+=n*q,f+=n*H,p+=n*W,g+=n*V,m+=n*Z,v+=n*G,b+=n*K,y+=n*Y,w+=n*Q,a+=(n=t[1])*D,s+=n*B,l+=n*L,c+=n*$,u+=n*U,d+=n*z,h+=n*F,f+=n*q,p+=n*H,g+=n*W,m+=n*V,v+=n*Z,b+=n*G,y+=n*K,w+=n*Y,x+=n*Q,s+=(n=t[2])*D,l+=n*B,c+=n*L,u+=n*$,d+=n*U,h+=n*z,f+=n*F,p+=n*q,g+=n*H,m+=n*W,v+=n*V,b+=n*Z,y+=n*G,w+=n*K,x+=n*Y,_+=n*Q,l+=(n=t[3])*D,c+=n*B,u+=n*L,d+=n*$,h+=n*U,f+=n*z,p+=n*F,g+=n*q,m+=n*H,v+=n*W,b+=n*V,y+=n*Z,w+=n*G,x+=n*K,_+=n*Y,C+=n*Q,c+=(n=t[4])*D,u+=n*B,d+=n*L,h+=n*$,f+=n*U,p+=n*z,g+=n*F,m+=n*q,v+=n*H,b+=n*W,y+=n*V,w+=n*Z,x+=n*G,_+=n*K,C+=n*Y,A+=n*Q,u+=(n=t[5])*D,d+=n*B,h+=n*L,f+=n*$,p+=n*U,g+=n*z,m+=n*F,v+=n*q,b+=n*H,y+=n*W,w+=n*V,x+=n*Z,_+=n*G,C+=n*K,A+=n*Y,k+=n*Q,d+=(n=t[6])*D,h+=n*B,f+=n*L,p+=n*$,g+=n*U,m+=n*z,v+=n*F,b+=n*q,y+=n*H,w+=n*W,x+=n*V,_+=n*Z,C+=n*G,A+=n*K,k+=n*Y,E+=n*Q,h+=(n=t[7])*D,f+=n*B,p+=n*L,g+=n*$,m+=n*U,v+=n*z,b+=n*F,y+=n*q,w+=n*H,x+=n*W,_+=n*V,C+=n*Z,A+=n*G,k+=n*K,E+=n*Y,S+=n*Q,f+=(n=t[8])*D,p+=n*B,g+=n*L,m+=n*$,v+=n*U,b+=n*z,y+=n*F,w+=n*q,x+=n*H,_+=n*W,C+=n*V,A+=n*Z,k+=n*G,E+=n*K,S+=n*Y,T+=n*Q,p+=(n=t[9])*D,g+=n*B,m+=n*L,v+=n*$,b+=n*U,y+=n*z,w+=n*F,x+=n*q,_+=n*H,C+=n*W,A+=n*V,k+=n*Z,E+=n*G,S+=n*K,T+=n*Y,I+=n*Q,g+=(n=t[10])*D,m+=n*B,v+=n*L,b+=n*$,y+=n*U,w+=n*z,x+=n*F,_+=n*q,C+=n*H,A+=n*W,k+=n*V,E+=n*Z,S+=n*G,T+=n*K,I+=n*Y,P+=n*Q,m+=(n=t[11])*D,v+=n*B,b+=n*L,y+=n*$,w+=n*U,x+=n*z,_+=n*F,C+=n*q,A+=n*H,k+=n*W,E+=n*V,S+=n*Z,T+=n*G,I+=n*K,P+=n*Y,O+=n*Q,v+=(n=t[12])*D,b+=n*B,y+=n*L,w+=n*$,x+=n*U,_+=n*z,C+=n*F,A+=n*q,k+=n*H,E+=n*W,S+=n*V,T+=n*Z,I+=n*G,P+=n*K,O+=n*Y,R+=n*Q,b+=(n=t[13])*D,y+=n*B,w+=n*L,x+=n*$,_+=n*U,C+=n*z,A+=n*F,k+=n*q,E+=n*H,S+=n*W,T+=n*V,I+=n*Z,P+=n*G,O+=n*K,R+=n*Y,M+=n*Q,y+=(n=t[14])*D,w+=n*B,x+=n*L,_+=n*$,C+=n*U,A+=n*z,k+=n*F,E+=n*q,S+=n*H,T+=n*W,I+=n*V,P+=n*Z,O+=n*G,R+=n*K,M+=n*Y,N+=n*Q,w+=(n=t[15])*D,x+=n*B,_+=n*L,C+=n*$,A+=n*U,k+=n*z,E+=n*F,S+=n*q,T+=n*H,I+=n*W,P+=n*V,O+=n*Z,R+=n*G,M+=n*K,N+=n*Y,j+=n*Q,o+=38*x,a+=38*_,s+=38*C,l+=38*A,c+=38*k,u+=38*E,d+=38*S,h+=38*T,f+=38*I,p+=38*P,g+=38*O,m+=38*R,v+=38*M,b+=38*N,y+=38*j,i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,o+=i-1+37*(i-1),i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-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]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=b,e[14]=y,e[15]=w}function v(e,t){let r=i(),n=i(),o=i(),a=i(),l=i(),c=i(),u=i(),d=i(),h=i();g(r,e[1],e[0]),g(h,t[1],t[0]),m(r,r,h),p(n,e[0],e[1]),p(h,t[0],t[1]),m(n,n,h),m(o,e[3],t[3]),m(o,o,s),m(a,e[2],t[2]),p(a,a,a),g(l,n,r),g(c,a,o),p(u,a,o),p(d,n,r),m(e[0],l,c),m(e[1],d,u),m(e[2],u,c),m(e[3],l,d)}function b(e,t,r){for(let n=0;n<4;n++)h(e[n],t[n],r)}function y(e,t){let r=i(),n=i(),o=i();(function(e,t){let r;let n=i();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)m(n,n,n),2!==r&&4!==r&&m(n,n,t);for(r=0;r<16;r++)e[r]=n[r]})(o,t[2]),m(r,t[0],o),m(n,t[1],o),f(e,n),e[31]^=function(e){let t=new Uint8Array(32);return f(t,e),1&t[0]}(r)<<7}function w(e,t){let r=[i(),i(),i(),i()];u(r[0],l),u(r[1],c),u(r[2],a),m(r[3],l,c),function(e,t,r){u(e[0],o),u(e[1],a),u(e[2],a),u(e[3],o);for(let n=255;n>=0;--n){let i=r[n/8|0]>>(7&n)&1;b(e,t,i),v(t,e),v(e,e),b(e,t,i)}}(e,r,t)}t._w=function(e){if(e.length!==t.aP)throw Error(`ed25519: seed must be ${t.aP} bytes`);let r=(0,n.hash)(e);r[0]&=248,r[31]&=127,r[31]|=64;let o=new Uint8Array(32),a=[i(),i(),i(),i()];w(a,r),y(o,a);let s=new Uint8Array(64);return s.set(e),s.set(o,32),{publicKey:o,secretKey:s}};let x=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function _(e,t){let r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*x[i-(n-32)],r=Math.floor((t[i]+128)/256),t[i]-=256*r;t[i]+=r,t[n]=0}for(i=0,r=0;i<32;i++)t[i]+=r-(t[31]>>4)*x[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*x[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function C(e){let t=new Float64Array(64);for(let r=0;r<64;r++)t[r]=e[r];for(let t=0;t<64;t++)e[t]=0;_(e,t)}t.Xx=function(e,t){let r=new Float64Array(64),o=[i(),i(),i(),i()],a=(0,n.hash)(e.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let s=new Uint8Array(64);s.set(a.subarray(32),32);let l=new n.SHA512;l.update(s.subarray(32)),l.update(t);let c=l.digest();l.clean(),C(c),w(o,c),y(s,o),l.reset(),l.update(s.subarray(0,32)),l.update(e.subarray(32)),l.update(t);let u=l.digest();C(u);for(let e=0;e<32;e++)r[e]=c[e];for(let e=0;e<32;e++)for(let t=0;t<32;t++)r[e+t]+=u[e]*a[t];return _(s.subarray(32),r),s}},79984:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSerializableHash=function(e){return void 0!==e.saveState&&void 0!==e.restoreState&&void 0!==e.cleanSavedState}},512:function(e,t,r){"use strict";var n=r(25629),i=r(17309),o=function(){function e(e,t,r,i){void 0===r&&(r=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=i;var o=n.hmac(this._hash,r,t);this._hmac=new n.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 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),r=0;r<t.length;r++)this._bufpos===this._buffer.length&&this._fillBuffer(),t[r]=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},25629:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79984),i=r(4153),o=r(17309),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 r=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(r).clean():r.set(t);for(var i=0;i<r.length;i++)r[i]^=54;this._inner.update(r);for(var i=0;i<r.length;i++)r[i]^=106;this._outer.update(r),n.isSerializableHash(this._inner)&&n.isSerializableHash(this._outer)&&(this._innerKeyedState=this._inner.saveState(),this._outerKeyedState=this._outer.saveState()),o.wipe(r)}return e.prototype.reset=function(){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw 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(){n.isSerializableHash(this._inner)&&this._inner.cleanSavedState(this._innerKeyedState),n.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._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(!n.isSerializableHash(this._inner))throw Error("hmac: can't saveState() because hash doesn't implement it");return this._inner.saveState()},e.prototype.restoreState=function(e){if(!n.isSerializableHash(this._inner)||!n.isSerializableHash(this._outer))throw 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(!n.isSerializableHash(this._inner))throw Error("hmac: can't cleanSavedState() because hash doesn't implement it");this._inner.cleanSavedState(e)},e}();t.HMAC=a,t.hmac=function(e,t,r){var n=new a(e,t);n.update(r);var i=n.digest();return n.clean(),i},t.equal=i.equal},97117:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mul=Math.imul||function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16&65535)*n+r*(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}},63027:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4153),i=r(17309);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 r=e[0]|e[1]<<8;this._r[0]=8191&r;var n=e[2]|e[3]<<8;this._r[1]=(r>>>13|n<<3)&8191;var i=e[4]|e[5]<<8;this._r[2]=(n>>>10|i<<6)&7939;var o=e[6]|e[7]<<8;this._r[3]=(i>>>7|o<<9)&8191;var a=e[8]|e[9]<<8;this._r[4]=(o>>>4|a<<12)&255,this._r[5]=a>>>1&8190;var s=e[10]|e[11]<<8;this._r[6]=(a>>>14|s<<2)&8191;var l=e[12]|e[13]<<8;this._r[7]=(s>>>11|l<<5)&8065;var c=e[14]|e[15]<<8;this._r[8]=(l>>>8|c<<8)&8191,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,r){for(var n=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],f=this._h[9],p=this._r[0],g=this._r[1],m=this._r[2],v=this._r[3],b=this._r[4],y=this._r[5],w=this._r[6],x=this._r[7],_=this._r[8],C=this._r[9];r>=16;){var A,k=e[t+0]|e[t+1]<<8;i+=8191&k;var E=e[t+2]|e[t+3]<<8;o+=(k>>>13|E<<3)&8191;var S=e[t+4]|e[t+5]<<8;a+=(E>>>10|S<<6)&8191;var T=e[t+6]|e[t+7]<<8;s+=(S>>>7|T<<9)&8191;var I=e[t+8]|e[t+9]<<8;l+=(T>>>4|I<<12)&8191,c+=I>>>1&8191;var P=e[t+10]|e[t+11]<<8;u+=(I>>>14|P<<2)&8191;var O=e[t+12]|e[t+13]<<8;d+=(P>>>11|O<<5)&8191;var R=e[t+14]|e[t+15]<<8;h+=(O>>>8|R<<8)&8191,f+=R>>>5|n;var M=0;M=(A=0+i*p+5*C*o+5*_*a+5*x*s+5*w*l)>>>13,A&=8191,A+=5*y*c+5*b*u+5*v*d+5*m*h+5*g*f,M+=A>>>13,A&=8191;var N=M;N+=i*g+o*p+5*C*a+5*_*s+5*x*l,M=N>>>13,N&=8191,N+=5*w*c+5*y*u+5*b*d+5*v*h+5*m*f,M+=N>>>13,N&=8191;var j=M;j+=i*m+o*g+a*p+5*C*s+5*_*l,M=j>>>13,j&=8191,j+=5*x*c+5*w*u+5*y*d+5*b*h+5*v*f,M+=j>>>13,j&=8191;var D=M;D+=i*v+o*m+a*g+s*p+5*C*l,M=D>>>13,D&=8191,D+=5*_*c+5*x*u+5*w*d+5*y*h+5*b*f,M+=D>>>13,D&=8191;var B=M;B+=i*b+o*v+a*m+s*g+l*p,M=B>>>13,B&=8191,B+=5*C*c+5*_*u+5*x*d+5*w*h+5*y*f,M+=B>>>13,B&=8191;var L=M;L+=i*y+o*b+a*v+s*m+l*g,M=L>>>13,L&=8191,L+=c*p+5*C*u+5*_*d+5*x*h+5*w*f,M+=L>>>13,L&=8191;var $=M;$+=i*w+o*y+a*b+s*v+l*m,M=$>>>13,$&=8191,$+=c*g+u*p+5*C*d+5*_*h+5*x*f,M+=$>>>13,$&=8191;var U=M;U+=i*x+o*w+a*y+s*b+l*v,M=U>>>13,U&=8191,U+=c*m+u*g+d*p+5*C*h+5*_*f,M+=U>>>13,U&=8191;var z=M;z+=i*_+o*x+a*w+s*y+l*b,M=z>>>13,z&=8191,z+=c*v+u*m+d*g+h*p+5*C*f,M+=z>>>13,z&=8191;var F=M;F+=i*C+o*_+a*x+s*w+l*y,M=F>>>13,F&=8191,F+=c*b+u*v+d*m+h*g+f*p,M+=F>>>13,F&=8191,A=8191&(M=(M=(M<<2)+M|0)+A|0),M>>>=13,N+=M,i=A,o=N,a=j,s=D,l=B,c=L,u=$,d=U,h=z,f=F,t+=16,r-=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]=f},e.prototype.finish=function(e,t){void 0===t&&(t=0);var r,n,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(r=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=r,r=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*r,r=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=r,r=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=r,a[0]=this._h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(o=0,n=~n;o<10;o++)this._h[o]=this._h[o]&n|a[o];for(o=1,this._h[0]=(this._h[0]|this._h[1]<<13)&65535,this._h[1]=(this._h[1]>>>3|this._h[2]<<10)&65535,this._h[2]=(this._h[2]>>>6|this._h[3]<<7)&65535,this._h[3]=(this._h[3]>>>9|this._h[4]<<4)&65535,this._h[4]=(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14)&65535,this._h[5]=(this._h[6]>>>2|this._h[7]<<11)&65535,this._h[6]=(this._h[7]>>>5|this._h[8]<<8)&65535,this._h[7]=(this._h[8]>>>8|this._h[9]<<5)&65535,i=this._h[0]+this._pad[0],this._h[0]=65535&i;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,r=0,n=e.length;if(this._leftover){(t=16-this._leftover)>n&&(t=n);for(var i=0;i<t;i++)this._buffer[this._leftover+i]=e[r+i];if(n-=t,r+=t,this._leftover+=t,this._leftover<16)return this;this._blocks(this._buffer,0,16),this._leftover=0}if(n>=16&&(t=n-n%16,this._blocks(e,r,t),r+=t,n-=t),n){for(var i=0;i<n;i++)this._buffer[this._leftover+i]=e[r+i];this._leftover+=n}return this},e.prototype.digest=function(){if(this._finished)throw 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 r=new o(e);r.update(t);var n=r.digest();return r.clean(),n},t.equal=function(e,r){return e.length===t.DIGEST_LENGTH&&r.length===t.DIGEST_LENGTH&&n.equal(e,r)}},31416:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringForEntropy=t.randomString=t.randomUint32=t.randomBytes=t.defaultRandomSource=void 0;let n=r(46008),i=r(98099),o=r(17309);function a(e,r=t.defaultRandomSource){return r.randomBytes(e)}t.defaultRandomSource=new n.SystemRandomSource,t.randomBytes=a,t.randomUint32=function(e=t.defaultRandomSource){let r=a(4,e),n=(0,i.readUint32LE)(r);return(0,o.wipe)(r),n};let s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function l(e,r=s,n=t.defaultRandomSource){if(r.length<2)throw Error("randomString charset is too short");if(r.length>256)throw Error("randomString charset is too long");let i="",l=r.length,c=256-256%l;for(;e>0;){let t=a(Math.ceil(256*e/c),n);for(let n=0;n<t.length&&e>0;n++){let o=t[n];o<c&&(i+=r.charAt(o%l),e--)}(0,o.wipe)(t)}return i}t.randomString=l,t.randomStringForEntropy=function(e,r=s,n=t.defaultRandomSource){return l(Math.ceil(e/(Math.log(r.length)/Math.LN2)),r,n)}},75455:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserRandomSource=void 0;class r{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let 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 Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let e=0;e<t.length;e+=65536)this._crypto.getRandomValues(t.subarray(e,e+Math.min(t.length-e,65536)));return t}}t.BrowserRandomSource=r},58871:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeRandomSource=void 0;let n=r(17309);class i{constructor(){this.isAvailable=!1,this.isInstantiated=!1;{let e=r(35883);e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw Error("NodeRandomSource: got fewer bytes than requested");let r=new Uint8Array(e);for(let e=0;e<r.length;e++)r[e]=t[e];return(0,n.wipe)(t),r}}t.NodeRandomSource=i},46008:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SystemRandomSource=void 0;let n=r(75455),i=r(58871);class o{constructor(){if(this.isAvailable=!1,this.name="",this._source=new n.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new i.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw Error("System random byte generator is not available.");return this._source.randomBytes(e)}}t.SystemRandomSource=o},73294:function(e,t,r){"use strict";var n=r(98099),i=r(17309);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 Error("SHA256: can't update because hash was finished.");var r=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength<this.blockSize&&t>0;)this._buffer[this._bufferLength++]=e[r++],t--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(r=s(this._temp,this._state,e,r,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[r++],t--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%64<56?64:128;this._buffer[r]=128;for(var o=r+1;o<i-8;o++)this._buffer[o]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),s(this._temp,this._state,this._buffer,0,i),this._finished=!0}for(var o=0;o<this.digestLength/4;o++)n.writeUint32BE(this._state[o],e,4*o);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 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,r,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],f=t[6],p=t[7],g=0;g<16;g++){var m=i+4*g;e[g]=n.readUint32BE(r,m)}for(var g=16;g<64;g++){var v=e[g-2],b=(v>>>17|v<<15)^(v>>>19|v<<13)^v>>>10,y=((v=e[g-15])>>>7|v<<25)^(v>>>18|v<<14)^v>>>3;e[g]=(b+e[g-7]|0)+(y+e[g-16]|0)}for(var g=0;g<64;g++){var b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)|0)+(p+(a[g]+e[g]|0)|0)|0,y=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&l^s&c^l&c)|0;p=f,f=h,h=d,d=u+b|0,u=c,c=l,l=s,s=b+y|0}t[0]+=s,t[1]+=l,t[2]+=c,t[3]+=u,t[4]+=d,t[5]+=h,t[6]+=f,t[7]+=p,i+=64,o-=64}return i}t.vp=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},93350:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(98099),i=r(17309);t.DIGEST_LENGTH=64,t.BLOCK_SIZE=128;var o=function(){function e(){this.digestLength=t.DIGEST_LENGTH,this.blockSize=t.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return e.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},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._tempHi),i.wipe(this._tempLo),this.reset()},e.prototype.update=function(e,r){if(void 0===r&&(r=e.length),this._finished)throw Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=r,this._bufferLength>0){for(;this._bufferLength<t.BLOCK_SIZE&&r>0;)this._buffer[this._bufferLength++]=e[n++],r--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(r>=this.blockSize&&(n=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,r),r%=this.blockSize);r>0;)this._buffer[this._bufferLength++]=e[n++],r--;return this},e.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,r=this._bufferLength,i=t%128<112?128:256;this._buffer[r]=128;for(var o=r+1;o<i-8;o++)this._buffer[o]=0;n.writeUint32BE(t/536870912|0,this._buffer,i-8),n.writeUint32BE(t<<3,this._buffer,i-4),s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,i),this._finished=!0}for(var o=0;o<this.digestLength/8;o++)n.writeUint32BE(this._stateHi[o],e,8*o),n.writeUint32BE(this._stateLo[o],e,8*o+4);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 Error("SHA256: cannot save finished state");return{stateHi:new Int32Array(this._stateHi),stateLo:new Int32Array(this._stateLo),buffer:this._bufferLength>0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},e.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),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.stateHi),i.wipe(e.stateLo),e.buffer&&i.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},e}();t.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(e,t,r,i,o,s,l){for(var c,u,d,h,f,p,g,m,v=r[0],b=r[1],y=r[2],w=r[3],x=r[4],_=r[5],C=r[6],A=r[7],k=i[0],E=i[1],S=i[2],T=i[3],I=i[4],P=i[5],O=i[6],R=i[7];l>=128;){for(var M=0;M<16;M++){var N=8*M+s;e[M]=n.readUint32BE(o,N),t[M]=n.readUint32BE(o,N+4)}for(var M=0;M<80;M++){var j=v,D=b,B=y,L=w,$=x,U=_,z=C,F=A,q=k,H=E,W=S,V=T,Z=I,G=P,K=O,Y=R;if(c=A,f=65535&(u=R),p=u>>>16,g=65535&c,m=c>>>16,c=(x>>>14|I<<18)^(x>>>18|I<<14)^(I>>>9|x<<23),f+=65535&(u=(I>>>14|x<<18)^(I>>>18|x<<14)^(x>>>9|I<<23)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=x&_^~x&C,f+=65535&(u=I&P^~I&O),p+=u>>>16,g+=65535&c,m+=c>>>16,c=a[2*M],f+=65535&(u=a[2*M+1]),p+=u>>>16,g+=65535&c,m+=c>>>16,c=e[M%16],f+=65535&(u=t[M%16]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,d=65535&g|m<<16,h=65535&f|p<<16,c=d,f=65535&(u=h),p=u>>>16,g=65535&c,m=c>>>16,c=(v>>>28|k<<4)^(k>>>2|v<<30)^(k>>>7|v<<25),f+=65535&(u=(k>>>28|v<<4)^(v>>>2|k<<30)^(v>>>7|k<<25)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=v&b^v&y^b&y,f+=65535&(u=k&E^k&S^E&S),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,F=65535&g|m<<16,Y=65535&f|p<<16,c=L,f=65535&(u=V),p=u>>>16,g=65535&c,m=c>>>16,c=d,f+=65535&(u=h),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,L=65535&g|m<<16,V=65535&f|p<<16,b=j,y=D,w=B,x=L,_=$,C=U,A=z,v=F,E=q,S=H,T=W,I=V,P=Z,O=G,R=K,k=Y,M%16==15)for(var N=0;N<16;N++)c=e[N],f=65535&(u=t[N]),p=u>>>16,g=65535&c,m=c>>>16,c=e[(N+9)%16],f+=65535&(u=t[(N+9)%16]),p+=u>>>16,g+=65535&c,m+=c>>>16,c=((d=e[(N+1)%16])>>>1|(h=t[(N+1)%16])<<31)^(d>>>8|h<<24)^d>>>7,f+=65535&(u=(h>>>1|d<<31)^(h>>>8|d<<24)^(h>>>7|d<<25)),p+=u>>>16,g+=65535&c,m+=c>>>16,c=((d=e[(N+14)%16])>>>19|(h=t[(N+14)%16])<<13)^(h>>>29|d<<3)^d>>>6,f+=65535&(u=(h>>>19|d<<13)^(d>>>29|h<<3)^(h>>>6|d<<26)),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,e[N]=65535&g|m<<16,t[N]=65535&f|p<<16}c=v,f=65535&(u=k),p=u>>>16,g=65535&c,m=c>>>16,c=r[0],f+=65535&(u=i[0]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[0]=v=65535&g|m<<16,i[0]=k=65535&f|p<<16,c=b,f=65535&(u=E),p=u>>>16,g=65535&c,m=c>>>16,c=r[1],f+=65535&(u=i[1]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[1]=b=65535&g|m<<16,i[1]=E=65535&f|p<<16,c=y,f=65535&(u=S),p=u>>>16,g=65535&c,m=c>>>16,c=r[2],f+=65535&(u=i[2]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[2]=y=65535&g|m<<16,i[2]=S=65535&f|p<<16,c=w,f=65535&(u=T),p=u>>>16,g=65535&c,m=c>>>16,c=r[3],f+=65535&(u=i[3]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[3]=w=65535&g|m<<16,i[3]=T=65535&f|p<<16,c=x,f=65535&(u=I),p=u>>>16,g=65535&c,m=c>>>16,c=r[4],f+=65535&(u=i[4]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[4]=x=65535&g|m<<16,i[4]=I=65535&f|p<<16,c=_,f=65535&(u=P),p=u>>>16,g=65535&c,m=c>>>16,c=r[5],f+=65535&(u=i[5]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[5]=_=65535&g|m<<16,i[5]=P=65535&f|p<<16,c=C,f=65535&(u=O),p=u>>>16,g=65535&c,m=c>>>16,c=r[6],f+=65535&(u=i[6]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[6]=C=65535&g|m<<16,i[6]=O=65535&f|p<<16,c=A,f=65535&(u=R),p=u>>>16,g=65535&c,m=c>>>16,c=r[7],f+=65535&(u=i[7]),p+=u>>>16,g+=65535&c,m+=c>>>16,p+=f>>>16,g+=p>>>16,m+=g>>>16,r[7]=A=65535&g|m<<16,i[7]=R=65535&f|p<<16,s+=128,l-=128}return s}t.hash=function(e){var t=new o;t.update(e);var r=t.digest();return t.clean(),r}},17309:function(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}},57664:function(e,t,r){"use strict";t.gi=t.Au=t.KS=t.kz=void 0;let n=r(31416),i=r(17309);function o(e){let t=new Float64Array(16);if(e)for(let r=0;r<e.length;r++)t[r]=e[r];return t}t.kz=32,t.KS=32;let a=new Uint8Array(32);a[0]=9;let s=o([56129,1]);function l(e){let t=1;for(let r=0;r<16;r++){let n=e[r]+t+65535;t=Math.floor(n/65536),e[r]=n-65536*t}e[0]+=t-1+37*(t-1)}function c(e,t,r){let n=~(r-1);for(let r=0;r<16;r++){let i=n&(e[r]^t[r]);e[r]^=i,t[r]^=i}}function u(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]+r[n]}function d(e,t,r){for(let n=0;n<16;n++)e[n]=t[n]-r[n]}function h(e,t,r){let n,i,o=0,a=0,s=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,m=0,v=0,b=0,y=0,w=0,x=0,_=0,C=0,A=0,k=0,E=0,S=0,T=0,I=0,P=0,O=0,R=0,M=0,N=0,j=0,D=r[0],B=r[1],L=r[2],$=r[3],U=r[4],z=r[5],F=r[6],q=r[7],H=r[8],W=r[9],V=r[10],Z=r[11],G=r[12],K=r[13],Y=r[14],Q=r[15];o+=(n=t[0])*D,a+=n*B,s+=n*L,l+=n*$,c+=n*U,u+=n*z,d+=n*F,h+=n*q,f+=n*H,p+=n*W,g+=n*V,m+=n*Z,v+=n*G,b+=n*K,y+=n*Y,w+=n*Q,a+=(n=t[1])*D,s+=n*B,l+=n*L,c+=n*$,u+=n*U,d+=n*z,h+=n*F,f+=n*q,p+=n*H,g+=n*W,m+=n*V,v+=n*Z,b+=n*G,y+=n*K,w+=n*Y,x+=n*Q,s+=(n=t[2])*D,l+=n*B,c+=n*L,u+=n*$,d+=n*U,h+=n*z,f+=n*F,p+=n*q,g+=n*H,m+=n*W,v+=n*V,b+=n*Z,y+=n*G,w+=n*K,x+=n*Y,_+=n*Q,l+=(n=t[3])*D,c+=n*B,u+=n*L,d+=n*$,h+=n*U,f+=n*z,p+=n*F,g+=n*q,m+=n*H,v+=n*W,b+=n*V,y+=n*Z,w+=n*G,x+=n*K,_+=n*Y,C+=n*Q,c+=(n=t[4])*D,u+=n*B,d+=n*L,h+=n*$,f+=n*U,p+=n*z,g+=n*F,m+=n*q,v+=n*H,b+=n*W,y+=n*V,w+=n*Z,x+=n*G,_+=n*K,C+=n*Y,A+=n*Q,u+=(n=t[5])*D,d+=n*B,h+=n*L,f+=n*$,p+=n*U,g+=n*z,m+=n*F,v+=n*q,b+=n*H,y+=n*W,w+=n*V,x+=n*Z,_+=n*G,C+=n*K,A+=n*Y,k+=n*Q,d+=(n=t[6])*D,h+=n*B,f+=n*L,p+=n*$,g+=n*U,m+=n*z,v+=n*F,b+=n*q,y+=n*H,w+=n*W,x+=n*V,_+=n*Z,C+=n*G,A+=n*K,k+=n*Y,E+=n*Q,h+=(n=t[7])*D,f+=n*B,p+=n*L,g+=n*$,m+=n*U,v+=n*z,b+=n*F,y+=n*q,w+=n*H,x+=n*W,_+=n*V,C+=n*Z,A+=n*G,k+=n*K,E+=n*Y,S+=n*Q,f+=(n=t[8])*D,p+=n*B,g+=n*L,m+=n*$,v+=n*U,b+=n*z,y+=n*F,w+=n*q,x+=n*H,_+=n*W,C+=n*V,A+=n*Z,k+=n*G,E+=n*K,S+=n*Y,T+=n*Q,p+=(n=t[9])*D,g+=n*B,m+=n*L,v+=n*$,b+=n*U,y+=n*z,w+=n*F,x+=n*q,_+=n*H,C+=n*W,A+=n*V,k+=n*Z,E+=n*G,S+=n*K,T+=n*Y,I+=n*Q,g+=(n=t[10])*D,m+=n*B,v+=n*L,b+=n*$,y+=n*U,w+=n*z,x+=n*F,_+=n*q,C+=n*H,A+=n*W,k+=n*V,E+=n*Z,S+=n*G,T+=n*K,I+=n*Y,P+=n*Q,m+=(n=t[11])*D,v+=n*B,b+=n*L,y+=n*$,w+=n*U,x+=n*z,_+=n*F,C+=n*q,A+=n*H,k+=n*W,E+=n*V,S+=n*Z,T+=n*G,I+=n*K,P+=n*Y,O+=n*Q,v+=(n=t[12])*D,b+=n*B,y+=n*L,w+=n*$,x+=n*U,_+=n*z,C+=n*F,A+=n*q,k+=n*H,E+=n*W,S+=n*V,T+=n*Z,I+=n*G,P+=n*K,O+=n*Y,R+=n*Q,b+=(n=t[13])*D,y+=n*B,w+=n*L,x+=n*$,_+=n*U,C+=n*z,A+=n*F,k+=n*q,E+=n*H,S+=n*W,T+=n*V,I+=n*Z,P+=n*G,O+=n*K,R+=n*Y,M+=n*Q,y+=(n=t[14])*D,w+=n*B,x+=n*L,_+=n*$,C+=n*U,A+=n*z,k+=n*F,E+=n*q,S+=n*H,T+=n*W,I+=n*V,P+=n*Z,O+=n*G,R+=n*K,M+=n*Y,N+=n*Q,w+=(n=t[15])*D,x+=n*B,_+=n*L,C+=n*$,A+=n*U,k+=n*z,E+=n*F,S+=n*q,T+=n*H,I+=n*W,P+=n*V,O+=n*Z,R+=n*G,M+=n*K,N+=n*Y,j+=n*Q,o+=38*x,a+=38*_,s+=38*C,l+=38*A,c+=38*k,u+=38*E,d+=38*S,h+=38*T,f+=38*I,p+=38*P,g+=38*O,m+=38*R,v+=38*M,b+=38*N,y+=38*j,i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-65536*i,o+=i-1+37*(i-1),i=Math.floor((n=o+(i=1)+65535)/65536),o=n-65536*i,i=Math.floor((n=a+i+65535)/65536),a=n-65536*i,i=Math.floor((n=s+i+65535)/65536),s=n-65536*i,i=Math.floor((n=l+i+65535)/65536),l=n-65536*i,i=Math.floor((n=c+i+65535)/65536),c=n-65536*i,i=Math.floor((n=u+i+65535)/65536),u=n-65536*i,i=Math.floor((n=d+i+65535)/65536),d=n-65536*i,i=Math.floor((n=h+i+65535)/65536),h=n-65536*i,i=Math.floor((n=f+i+65535)/65536),f=n-65536*i,i=Math.floor((n=p+i+65535)/65536),p=n-65536*i,i=Math.floor((n=g+i+65535)/65536),g=n-65536*i,i=Math.floor((n=m+i+65535)/65536),m=n-65536*i,i=Math.floor((n=v+i+65535)/65536),v=n-65536*i,i=Math.floor((n=b+i+65535)/65536),b=n-65536*i,i=Math.floor((n=y+i+65535)/65536),y=n-65536*i,i=Math.floor((n=w+i+65535)/65536),w=n-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]=f,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=b,e[14]=y,e[15]=w}function f(e,t){let r=new Uint8Array(32),n=new Float64Array(80),i=o(),a=o(),f=o(),p=o(),g=o(),m=o();for(let t=0;t<31;t++)r[t]=e[t];r[31]=127&e[31]|64,r[0]&=248,function(e,t){for(let r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}(n,t);for(let e=0;e<16;e++)a[e]=n[e];i[0]=p[0]=1;for(let e=254;e>=0;--e){let t=r[e>>>3]>>>(7&e)&1;c(i,a,t),c(f,p,t),u(g,i,f),d(i,i,f),u(f,a,p),d(a,a,p),h(p,g,g),h(m,i,i),h(i,f,i),h(f,a,g),u(g,i,f),d(i,i,f),h(a,i,i),d(f,p,m),h(i,f,s),u(i,i,p),h(f,f,i),h(i,p,m),h(p,a,n),h(a,g,g),c(i,a,t),c(f,p,t)}for(let e=0;e<16;e++)n[e+16]=i[e],n[e+32]=f[e],n[e+48]=a[e],n[e+64]=p[e];let v=n.subarray(32),b=n.subarray(16);!function(e,t){let r=o();for(let e=0;e<16;e++)r[e]=t[e];for(let e=253;e>=0;e--)h(r,r,r),2!==e&&4!==e&&h(r,r,t);for(let t=0;t<16;t++)e[t]=r[t]}(v,v),h(b,b,v);let y=new Uint8Array(32);return!function(e,t){let r=o(),n=o();for(let e=0;e<16;e++)n[e]=t[e];l(n),l(n),l(n);for(let e=0;e<2;e++){r[0]=n[0]-65517;for(let e=1;e<15;e++)r[e]=n[e]-65535-(r[e-1]>>16&1),r[e-1]&=65535;r[15]=n[15]-32767-(r[14]>>16&1);let e=r[15]>>16&1;r[14]&=65535,c(n,r,1-e)}for(let t=0;t<16;t++)e[2*t]=255&n[t],e[2*t+1]=n[t]>>8}(y,b),y}t.Au=function(e){let r=(0,n.randomBytes)(32,e),o=function(e){if(e.length!==t.KS)throw Error(`x25519: seed must be ${t.KS} bytes`);let r=new Uint8Array(e);return{publicKey:f(r,a),secretKey:r}}(r);return(0,i.wipe)(r),o},t.gi=function(e,r,n=!1){if(e.length!==t.kz)throw Error("X25519: incorrect secret key length");if(r.length!==t.kz)throw Error("X25519: incorrect public key length");let i=f(e,r);if(n){let e=0;for(let t=0;t<i.length;t++)e|=i[t];if(0===e)throw Error("X25519: invalid shared key")}return i}},40926:function(e,t,r){"use strict";function n(){return(null===r.g||void 0===r.g?void 0:r.g.crypto)||(null===r.g||void 0===r.g?void 0:r.g.msCrypto)||{}}function i(){let e=n();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=n,t.getSubtleCrypto=i,t.isBrowserCryptoAvailable=function(){return!!n()&&!!i()}},88618:function(e,t,r){"use strict";var n=r(34155);function i(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function o(){return void 0!==n&&void 0!==n.versions&&void 0!==n.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=i,t.isNode=o,t.isBrowser=function(){return!i()&&!o()}},1468:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(34308);n.__exportStar(r(40926),t),n.__exportStar(r(88618),t)},34308:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return y},__asyncValues:function(){return x},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return E},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return A},__importStar:function(){return C},__makeTemplateObject:function(){return _},__metadata:function(){return c},__param:function(){return l},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return v},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=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++,n=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(e){o=[6,e],n=0}finally{r=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,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}}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,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},50620:function(e,t,r){"use strict";let n;r.d(t,{EthereumProvider:function(){return iT},lI:function(){return ih}});var i=r(17187),o=r.n(i),a=r(39240);let s=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,l=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function u(e,t){if("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`);return}return t}function d(e,t={}){if("string"!=typeof e)return e;let r=e.trim();if('"'===e[0]&&'"'===e.at(-1)&&!e.includes("\\"))return r.slice(1,-1);if(r.length<=9){let e=r.toLowerCase();if("true"===e)return!0;if("false"===e)return!1;if("undefined"===e)return;if("null"===e)return null;if("nan"===e)return Number.NaN;if("infinity"===e)return Number.POSITIVE_INFINITY;if("-infinity"===e)return Number.NEGATIVE_INFINITY}if(!c.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(s.test(e)||l.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,u)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}var h=r(48764).Buffer;function f(e,...t){try{var r;return(r=e(...t))&&"function"==typeof r.then?r:Promise.resolve(r)}catch(e){return Promise.reject(e)}}function p(e){if(function(e){let t=typeof e;return null===e||"object"!==t&&"function"!==t}(e))return String(e);if(function(e){let t=Object.getPrototypeOf(e);return!t||t.isPrototypeOf(Object)}(e)||Array.isArray(e))return JSON.stringify(e);if("function"==typeof e.toJSON)return p(e.toJSON());throw Error("[unstorage] Cannot stringify value!")}let g="base64:";function m(e){return e?e.split("?")[0].replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""):""}function v(e){return(e=m(e))?e+":":""}let b=()=>{let e=new Map;return{name:"memory",options:{},hasItem:t=>e.has(t),getItem:t=>e.get(t)??null,getItemRaw:t=>e.get(t)??null,setItem(t,r){e.set(t,r)},setItemRaw(t,r){e.set(t,r)},removeItem(t){e.delete(t)},getKeys:()=>Array.from(e.keys()),clear(){e.clear()},dispose(){e.clear()}}};function y(e,t,r){return e.watch?e.watch((e,n)=>t(e,r+n)):()=>{}}async function w(e){"function"==typeof e.dispose&&await f(e.dispose)}function x(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function _(e,t){let r=indexedDB.open(e);r.onupgradeneeded=()=>r.result.createObjectStore(t);let n=x(r);return(e,r)=>n.then(n=>r(n.transaction(t,e).objectStore(t)))}function C(){return n||(n=_("keyval-store","keyval")),n}function A(e,t=C()){return t("readonly",t=>x(t.get(e)))}function k(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}function E(e){return"string"==typeof e?e:JSON.stringify(e)}var S=(e={})=>{let t;let r=e.base&&e.base.length>0?`${e.base}:`:"",n=e=>r+e;return e.dbName&&e.storeName&&(t=_(e.dbName,e.storeName)),{name:"idb-keyval",options:e,hasItem:async e=>!(typeof await A(n(e),t)>"u"),getItem:async e=>await A(n(e),t)??null,setItem:(e,r)=>(function(e,t,r=C()){return r("readwrite",r=>(r.put(t,e),x(r.transaction)))})(n(e),r,t),removeItem:e=>(function(e,t=C()){return t("readwrite",t=>(t.delete(e),x(t.transaction)))})(n(e),t),getKeys:()=>(function(e=C()){return e("readonly",e=>{var t;if(e.getAllKeys)return x(e.getAllKeys());let r=[];return(t=e=>r.push(e.key),e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},x(e.transaction)).then(()=>r)})})(t),clear:()=>(function(e=C()){return e("readwrite",e=>(e.clear(),x(e.transaction)))})(t)}};class T{constructor(){this.indexedDb=function(e={}){let t={mounts:{"":e.driver||b()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},r=e=>{for(let r of t.mountpoints)if(e.startsWith(r))return{base:r,relativeKey:e.slice(r.length),driver:t.mounts[r]};return{base:"",relativeKey:e,driver:t.mounts[""]}},n=(e,r)=>t.mountpoints.filter(t=>t.startsWith(e)||r&&e.startsWith(t)).map(r=>({relativeBase:e.length>r.length?e.slice(r.length):void 0,mountpoint:r,driver:t.mounts[r]})),i=(e,r)=>{if(t.watching)for(let n of(r=m(r),t.watchListeners))n(e,r)},o=async()=>{if(!t.watching)for(let e in t.watching=!0,t.mounts)t.unwatch[e]=await y(t.mounts[e],i,e)},a=async()=>{if(t.watching){for(let e in t.unwatch)await t.unwatch[e]();t.unwatch={},t.watching=!1}},s=(e,t,n)=>{let i=new Map,o=e=>{let t=i.get(e.base);return t||(t={driver:e.driver,base:e.base,items:[]},i.set(e.base,t)),t};for(let n of e){let e="string"==typeof n,i=m(e?n:n.key),a=e?void 0:n.value,s=e||!n.options?t:{...t,...n.options},l=r(i);o(l).items.push({key:i,value:a,relativeKey:l.relativeKey,options:s})}return Promise.all([...i.values()].map(e=>n(e))).then(e=>e.flat())},l={hasItem(e,t={}){let{relativeKey:n,driver:i}=r(e=m(e));return f(i.hasItem,n,t)},getItem(e,t={}){let{relativeKey:n,driver:i}=r(e=m(e));return f(i.getItem,n,t).then(e=>d(e))},getItems:(e,t)=>s(e,t,e=>e.driver.getItems?f(e.driver.getItems,e.items.map(e=>({key:e.relativeKey,options:e.options})),t).then(t=>t.map(t=>({key:function(...e){return m(e.join(":"))}(e.base,t.key),value:d(t.value)}))):Promise.all(e.items.map(t=>f(e.driver.getItem,t.relativeKey,t.options).then(e=>({key:t.key,value:d(e)}))))),getItemRaw(e,t={}){let{relativeKey:n,driver:i}=r(e=m(e));return i.getItemRaw?f(i.getItemRaw,n,t):f(i.getItem,n,t).then(e=>"string"==typeof e&&e.startsWith(g)?h.from(e.slice(g.length),"base64"):e)},async setItem(e,t,n={}){if(void 0===t)return l.removeItem(e);let{relativeKey:o,driver:a}=r(e=m(e));a.setItem&&(await f(a.setItem,o,p(t),n),a.watch||i("update",e))},async setItems(e,t){await s(e,t,async e=>{e.driver.setItems&&await f(e.driver.setItems,e.items.map(e=>({key:e.relativeKey,value:p(e.value),options:e.options})),t),e.driver.setItem&&await Promise.all(e.items.map(t=>f(e.driver.setItem,t.relativeKey,p(t.value),t.options)))})},async setItemRaw(e,t,n={}){if(void 0===t)return l.removeItem(e,n);let{relativeKey:o,driver:a}=r(e=m(e));if(a.setItemRaw)await f(a.setItemRaw,o,t,n);else{if(!a.setItem)return;await f(a.setItem,o,"string"==typeof t?t:g+h.from(t).toString("base64"),n)}a.watch||i("update",e)},async removeItem(e,t={}){"boolean"==typeof t&&(t={removeMeta:t});let{relativeKey:n,driver:o}=r(e=m(e));o.removeItem&&(await f(o.removeItem,n,t),(t.removeMeta||t.removeMata)&&await f(o.removeItem,n+"$",t),o.watch||i("remove",e))},async getMeta(e,t={}){"boolean"==typeof t&&(t={nativeOnly:t});let{relativeKey:n,driver:i}=r(e=m(e)),o=Object.create(null);if(i.getMeta&&Object.assign(o,await f(i.getMeta,n,t)),!t.nativeOnly){let e=await f(i.getItem,n+"$",t).then(e=>d(e));e&&"object"==typeof e&&("string"==typeof e.atime&&(e.atime=new Date(e.atime)),"string"==typeof e.mtime&&(e.mtime=new Date(e.mtime)),Object.assign(o,e))}return o},setMeta(e,t,r={}){return this.setItem(e+"$",t,r)},removeMeta(e,t={}){return this.removeItem(e+"$",t)},async getKeys(e,t={}){let r=n(e=v(e),!0),i=[],o=[];for(let e of r){let r=(await f(e.driver.getKeys,e.relativeBase,t)).map(t=>e.mountpoint+m(t)).filter(e=>!i.some(t=>e.startsWith(t)));o.push(...r),i=[e.mountpoint,...i.filter(t=>!t.startsWith(e.mountpoint))]}return e?o.filter(t=>t.startsWith(e)&&!t.endsWith("$")):o.filter(e=>!e.endsWith("$"))},async clear(e,t={}){e=v(e),await Promise.all(n(e,!1).map(async e=>e.driver.clear?f(e.driver.clear,e.relativeBase,t):e.driver.removeItem?Promise.all((await e.driver.getKeys(e.relativeBase||"",t)).map(r=>e.driver.removeItem(r,t))):void 0))},async dispose(){await Promise.all(Object.values(t.mounts).map(e=>w(e)))},watch:async e=>(await o(),t.watchListeners.push(e),async()=>{t.watchListeners=t.watchListeners.filter(t=>t!==e),0===t.watchListeners.length&&await a()}),async unwatch(){t.watchListeners=[],await a()},mount(e,r){if((e=v(e))&&t.mounts[e])throw Error(`already mounted at ${e}`);return e&&(t.mountpoints.push(e),t.mountpoints.sort((e,t)=>t.length-e.length)),t.mounts[e]=r,t.watching&&Promise.resolve(y(r,i,e)).then(r=>{t.unwatch[e]=r}).catch(console.error),l},async unmount(e,r=!0){(e=v(e))&&t.mounts[e]&&(t.watching&&e in t.unwatch&&(t.unwatch[e](),delete t.unwatch[e]),r&&await w(t.mounts[e]),t.mountpoints=t.mountpoints.filter(t=>t!==e),delete t.mounts[e])},getMount(e=""){let t=r(e=m(e)+":");return{driver:t.driver,base:t.base}},getMounts:(e="",t={})=>n(e=m(e),t.parents).map(e=>({driver:e.driver,base:e.mountpoint}))};return l}({driver:S({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}async getKeys(){return this.indexedDb.getKeys()}async getEntries(){return(await this.indexedDb.getItems(await this.indexedDb.getKeys())).map(e=>[e.key,e.value])}async getItem(e){let t=await this.indexedDb.getItem(e);if(null!==t)return t}async setItem(e,t){await this.indexedDb.setItem(e,E(t))}async removeItem(e){await this.indexedDb.removeItem(e)}}var I="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},P={exports:{}};function O(e){var t;return[e[0],k(null!=(t=e[1])?t:"")]}!function(){function e(){}e.prototype.getItem=function(e){return this.hasOwnProperty(e)?String(this[e]):null},e.prototype.setItem=function(e,t){this[e]=String(t)},e.prototype.removeItem=function(e){delete this[e]},e.prototype.clear=function(){let e=this;Object.keys(e).forEach(function(t){e[t]=void 0,delete e[t]})},e.prototype.key=function(e){return e=e||0,Object.keys(this)[e]},e.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),"u">typeof I&&I.localStorage?P.exports=I.localStorage:"u">typeof window&&window.localStorage?P.exports=window.localStorage:P.exports=new e}();class R{constructor(){this.localStorage=P.exports}async getKeys(){return Object.keys(this.localStorage)}async getEntries(){return Object.entries(this.localStorage).map(O)}async getItem(e){let t=this.localStorage.getItem(e);if(null!==t)return k(t)}async setItem(e,t){this.localStorage.setItem(e,E(t))}async removeItem(e){this.localStorage.removeItem(e)}}let M=async(e,t,r)=>{let n="wc_storage_version",i=await t.getItem(n);if(i&&i>=1){r(t);return}let o=await e.getKeys();if(!o.length){r(t);return}let a=[];for(;o.length;){let r=o.shift();if(!r)continue;let n=r.toLowerCase();if(n.includes("wc@")||n.includes("walletconnect")||n.includes("wc_")||n.includes("wallet_connect")){let n=await e.getItem(r);await t.setItem(r,n),a.push(r)}}await t.setItem(n,1),r(t),N(e,a)},N=async(e,t)=>{t.length&&t.forEach(async t=>{await e.removeItem(t)})};class j{constructor(){this.initialized=!1,this.setInitialized=e=>{this.storage=e,this.initialized=!0};let e=new R;this.storage=e;try{let t=new T;M(e,t,this.setInitialized)}catch{this.initialized=!0}}async getKeys(){return await this.initialize(),this.storage.getKeys()}async getEntries(){return await this.initialize(),this.storage.getEntries()}async getItem(e){return await this.initialize(),this.storage.getItem(e)}async setItem(e,t){return await this.initialize(),this.storage.setItem(e,t)}async removeItem(e){return await this.initialize(),this.storage.removeItem(e)}async initialize(){this.initialized||await new Promise(e=>{let t=setInterval(()=>{this.initialized&&(clearInterval(t),e())},20)})}}var D=r(66736);class B{}class L extends B{constructor(e){super()}}let $=D.FIVE_SECONDS,U="heartbeat_pulse";class z extends L{constructor(e){super(e),this.events=new i.EventEmitter,this.interval=$,this.interval=e?.interval||$}static async init(e){let t=new z(e);return await t.init(),t}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),(0,D.toMiliseconds)(this.interval))}pulse(){this.events.emit(U)}}var F=r(12044);class q extends B{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}}class H extends B{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}}class W{constructor(e,t){this.logger=e,this.core=t}}class V extends B{constructor(e,t){super(),this.relayer=e,this.logger=t}}class Z extends B{constructor(e){super()}}class G{constructor(e,t,r,n){this.core=e,this.logger=t,this.name=r}}class K extends B{constructor(e,t){super(),this.relayer=e,this.logger=t}}class Y extends B{constructor(e,t){super(),this.core=e,this.logger=t}}class Q{constructor(e,t,r){this.core=e,this.logger=t,this.store=r}}class J{constructor(e,t){this.projectId=e,this.logger=t}}class X{constructor(e,t,r){this.core=e,this.logger=t,this.telemetryEnabled=r}}class ee{constructor(e){this.opts=e,this.protocol="wc",this.version=2}}class et{constructor(e){this.client=e}}var er=r(85094),en=r(94075),ei=r(94622);let eo="INTERNAL_ERROR",ea="SERVER_ERROR",es=[-32700,-32600,-32601,-32602,-32603],el={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[eo]:{code:-32603,message:"Internal error"},[ea]:{code:-32e3,message:"Server error"}};function ec(e){return Object.keys(el).includes(e)?el[e]:el[ea]}function eu(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?Error(`Unavailable ${r} RPC url at ${t}`):e}var ed=r(1468);function eh(e=3){return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function ef(e=6){return BigInt(eh(e))}function ep(e,t,r){return{id:r||eh(),jsonrpc:"2.0",method:e,params:t}}function eg(e,t){return{id:e,jsonrpc:"2.0",result:t}}function em(e,t,r){var n,i,o;return{id:e,jsonrpc:"2.0",error:void 0===(n=t)?ec(eo):("string"==typeof n&&(n=Object.assign(Object.assign({},ec(ea)),{message:n})),void 0!==r&&(n.data=r),i=n.code,es.includes(i)&&(o=n.code,n=Object.values(el).find(e=>e.code===o)||el[ea]),n)}}class ev{}class eb extends ev{constructor(){super()}}class ey extends eb{constructor(e){super()}}function ew(e,t){let r=function(e){let t=e.match(RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==r&&new RegExp(t).test(r)}function ex(e){return ew(e,"^https?:")}function e_(e){return ew(e,"^wss?:")}function eC(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}function eA(e){return eC(e)&&"method"in e}function ek(e){return eC(e)&&(eE(e)||eS(e))}function eE(e){return"result"in e}function eS(e){return"error"in e}class eT extends ey{constructor(e){super(e),this.events=new i.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(e),this.connection.connected&&this.registerEventListeners()}async connect(e=this.connection){await this.open(e)}async disconnect(){await this.close()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(ep(e.method,e.params||[],e.id||ef().toString()),t)}async requestStrict(e,t){return new Promise(async(r,n)=>{if(!this.connection.connected)try{await this.open()}catch(e){n(e)}this.events.on(`${e.id}`,e=>{eS(e)?n(e.error):r(e.result)});try{await this.connection.send(e,t)}catch(e){n(e)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),ek(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&3e3===e.code&&this.events.emit("error",Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}async open(e=this.connection){this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(await this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",e=>this.onPayload(e)),this.connection.on("close",e=>this.onClose(e)),this.connection.on("error",e=>this.events.emit("error",e)),this.connection.on("register_error",e=>this.onClose()),this.hasRegisteredEventListeners=!0)}}let eI=()=>"u">typeof WebSocket||"u">typeof r.g&&"u">typeof r.g.WebSocket||"u">typeof window&&"u">typeof window.WebSocket||"u">typeof self&&"u">typeof self.WebSocket,eP=e=>e.split("?")[0],eO="u">typeof WebSocket?WebSocket:"u">typeof r.g&&"u">typeof r.g.WebSocket?r.g.WebSocket:"u">typeof window&&"u">typeof window.WebSocket?window.WebSocket:"u">typeof self&&"u">typeof self.WebSocket?self.WebSocket:r(72030);class eR{constructor(e){if(this.url=e,this.events=new i.EventEmitter,this.registering=!1,!e_(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return"u">typeof this.socket}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(Error("Connection already closed"));return}this.socket.onclose=t=>{this.onClose(t),e()},this.socket.close()})}async send(e){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send((0,er.u)(e))}catch(t){this.onError(e.id,t)}}register(e=this.url){if(!e_(e))throw Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return t(Error("WebSocket connection is missing or invalid"));e(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,r)=>{let n=new URLSearchParams(e).get("origin"),i=(0,ed.isReactNative)()?{headers:{origin:n}}:{rejectUnauthorized:!RegExp("wss?://localhost(:d{2,5})?").test(e)},o=new eO(e,[],i);eI()?o.onerror=e=>{r(this.emitError(e.error))}:o.on("error",e=>{r(this.emitError(e))}),o.onopen=()=>{this.onOpen(o),t(o)}})}onOpen(e){e.onmessage=e=>this.onPayload(e),e.onclose=e=>this.onClose(e),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?(0,er.D)(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=em(e,r.message||r.toString());this.events.emit("payload",n)}parseError(e,t=this.url){return eu(e,eP(t),"WS")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}emitError(e){let t=this.parseError(Error(e?.message||`WebSocket connection failed for host: ${eP(this.url)}`));return this.events.emit("register_error",t),t}}var eM=r(72307),eN=r.n(eM),ej=r(34155),eD=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==r[a])throw TypeError(o+" is ambiguous");r[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 TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var u=r[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 Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(n+(o-f)),g=n;f!==o;)p[g++]=a[f++];return p}}}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 TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*u+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,f=a-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=h,i++}for(var p=a-n;p!==a&&0===c[p];)p++;for(var g=l.repeat(r);p<a;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};let eB=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 Error("Unknown type, must be binary type")},eL=e=>new TextEncoder().encode(e),e$=e=>new TextDecoder().decode(e);class eU{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class ez{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}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 eq(this,e)}}class eF{constructor(e){this.decoders=e}or(e){return eq(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let eq=(e,t)=>new eF({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class eH{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new eU(e,t,r),this.decoder=new ez(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let eW=({name:e,prefix:t,encode:r,decode:n})=>new eH(e,t,r,n),eV=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=eD(r,t);return eW({prefix:e,name:t,encode:n,decode:e=>eB(i(e))})},eZ=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let a=new Uint8Array(o*r/8|0),s=0,l=0,c=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);l=l<<r|o,(s+=r)>=8&&(s-=8,a[c++]=255&l>>s)}if(s>=r||255&l<<8-s)throw SyntaxError("Unexpected end of data");return a},eG=(e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",a=0,s=0;for(let n=0;n<e.length;++n)for(s=s<<8|e[n],a+=8;a>r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<<r-a]),n)for(;o.length*r&7;)o+="=";return o},eK=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>eW({prefix:t,name:e,encode:e=>eG(e,n,r),decode:t=>eZ(t,n,r,e)});var eY=Object.freeze({__proto__:null,identity:eW({prefix:"\0",name:"identity",encode:e=>e$(e),decode:e=>eL(e)})}),eQ=Object.freeze({__proto__:null,base2:eK({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})}),eJ=Object.freeze({__proto__:null,base8:eK({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})}),eX=Object.freeze({__proto__:null,base10:eV({prefix:"9",name:"base10",alphabet:"0123456789"})}),e0=Object.freeze({__proto__:null,base16:eK({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),base16upper:eK({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});let e1=eK({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),e2=eK({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),e3=eK({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),e5=eK({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),e6=eK({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),e4=eK({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5});var e8=Object.freeze({__proto__:null,base32:e1,base32upper:e2,base32pad:e3,base32padupper:e5,base32hex:e6,base32hexupper:e4,base32hexpad:eK({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),base32hexpadupper:eK({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),base32z:eK({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})}),e9=Object.freeze({__proto__:null,base36:eV({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),base36upper:eV({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})}),e7=Object.freeze({__proto__:null,base58btc:eV({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),base58flickr:eV({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});let te=eK({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6});var tt=Object.freeze({__proto__:null,base64:te,base64pad:eK({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),base64url:eK({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),base64urlpad:eK({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});let tr=Array.from("\uD83D\uDE80\uD83E\uDE90☄\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☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\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☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\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❣\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✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\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⚽\uD83E\uDD19☕\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⚡\uD83C\uDF1E\uD83C\uDF88❌✊\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✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\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☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\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"),tn=tr.reduce((e,t,r)=>(e[r]=t,e),[]),ti=tr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);var to=Object.freeze({__proto__:null,base256emoji:eW({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=tn[t],"")},decode:function(e){let t=[];for(let r of e){let e=ti[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}})});function ta(e,t){var r,n=0,t=t||0,i=0,o=t,a=e.length;do{if(o>=a)throw ta.bytes=0,RangeError("Could not decode varint");r=e[o++],n+=i<28?(127&r)<<i:(127&r)*Math.pow(2,i),i+=7}while(r>=128);return ta.bytes=o-t,n}var ts=function e(t,r,n){r=r||[],n=n||0;for(var i=n;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r};let tl=(e,t,r=0)=>(ts(e,t,r),t),tc=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,tu=(e,t)=>{let r=t.byteLength,n=tc(e),i=n+tc(r),o=new Uint8Array(i+r);return tl(e,o,0),tl(r,o,n),o.set(t,i),new td(e,r,t,o)};class td{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let th=({name:e,code:t,encode:r})=>new tf(e,t,r);class tf{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?tu(this.code,t):t.then(e=>tu(this.code,e))}throw Error("Unknown type, must be binary type")}}let tp=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t));var tg=Object.freeze({__proto__:null,sha256:th({name:"sha2-256",code:18,encode:tp("SHA-256")}),sha512:th({name:"sha2-512",code:19,encode:tp("SHA-512")})}),tm=Object.freeze({__proto__:null,identity:{code:0,name:"identity",encode:eB,digest:e=>tu(0,eB(e))}});new TextEncoder,new TextDecoder;let tv={...eY,...eQ,...eJ,...eX,...e0,...e8,...e9,...e7,...tt,...to};function tb(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}({...tg,...tm});let ty=tb("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),tw=tb("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=function(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),tx={utf8:ty,"utf-8":ty,hex:tv.base16,latin1:tw,ascii:tw,binary:tw,...tv},t_="core",tC=`wc@2:${t_}:`,tA={logger:"error"},tk={database:":memory:"},tE="client_ed25519_seed",tS=D.ONE_DAY,tT=D.SIX_HOURS,tI="wss://relay.walletconnect.org",tP={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",publish:"relayer_publish"},tO={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},tR="2.16.1",tM={link_mode:"link_mode",relay:"relay"},tN="WALLETCONNECT_LINK_MODE_APPS",tj={created:"subscription_created",deleted:"subscription_deleted",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},tD=1e3*D.FIVE_SECONDS,tB={wc_pairingDelete:{req:{ttl:D.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:D.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:D.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:D.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:D.ONE_DAY,prompt:!1,tag:0},res:{ttl:D.ONE_DAY,prompt:!1,tag:0}}},tL={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},t$={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},tU={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},tz="https://verify.walletconnect.org",tF=`${tz}/v3`,tq=["https://verify.walletconnect.com",tz],tH={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal"},tW={no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_listener_not_found:"proposal_listener_not_found"},tV={session_approve_started:"session_approve_started",session_namespaces_validation_success:"session_namespaces_validation_success",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},tZ={no_internet_connection:"no_internet_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},tG={authenticated_session_approve_started:"authenticated_session_approve_started",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve"},tK={no_internet_connection:"no_internet_connection",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"};class tY{constructor(e,t){this.core=e,this.logger=t,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=tC,this.init=async()=>{if(!this.initialized){let e=await this.getKeyChain();"u">typeof e&&(this.keychain=e),this.initialized=!0}},this.has=e=>(this.isInitialized(),this.keychain.has(e)),this.set=async(e,t)=>{this.isInitialized(),this.keychain.set(e,t),await this.persist()},this.get=e=>{this.isInitialized();let t=this.keychain.get(e);if(typeof t>"u"){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t},this.del=async e=>{this.isInitialized(),this.keychain.delete(e),await this.persist()},this.core=e,this.logger=(0,F.Ep)(t,this.name)}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,(0,a.KCv)(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,a.IPd)(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tQ{constructor(e,t,r){this.core=e,this.logger=t,this.name="crypto",this.randomSessionIdentifier=(0,a.jdp)(),this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=e=>(this.isInitialized(),this.keychain.has(e)),this.getClientId=async()=>{this.isInitialized();let e=await this.getClientSeed(),t=en.generateKeyPair(e);return en.encodeIss(t.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let e=(0,a.Au2)();return this.setPrivateKey(e.publicKey,e.privateKey)},this.signJWT=async e=>{this.isInitialized();let t=await this.getClientSeed(),r=en.generateKeyPair(t),n=this.randomSessionIdentifier;return await en.signJWT(n,e,tS,r)},this.generateSharedKey=(e,t,r)=>{this.isInitialized();let n=this.getPrivateKey(e),i=(0,a.m$A)(n,t);return this.setSymKey(i,r)},this.setSymKey=async(e,t)=>{this.isInitialized();let r=t||(0,a.YmJ)(e);return await this.keychain.set(r,e),r},this.deleteKeyPair=async e=>{this.isInitialized(),await this.keychain.del(e)},this.deleteSymKey=async e=>{this.isInitialized(),await this.keychain.del(e)},this.encode=async(e,t,r)=>{this.isInitialized();let n=(0,a.ENt)(r),i=(0,er.u)(t);if((0,a.Hs$)(n))return(0,a.Spz)(i,r?.encoding);if((0,a.Q8x)(n)){let t=n.senderPublicKey,r=n.receiverPublicKey;e=await this.generateSharedKey(t,r)}let o=this.getSymKey(e),{type:s,senderPublicKey:l}=n;return(0,a.HIp)({type:s,symKey:o,message:i,senderPublicKey:l,encoding:r?.encoding})},this.decode=async(e,t,r)=>{this.isInitialized();let n=(0,a.Llj)(t,r);if((0,a.Hs$)(n)){let e=(0,a.xQU)(t,r?.encoding);return(0,er.D)(e)}if((0,a.Q8x)(n)){let t=n.receiverPublicKey,r=n.senderPublicKey;e=await this.generateSharedKey(t,r)}try{let n=this.getSymKey(e),i=(0,a.peR)({symKey:n,encoded:t,encoding:r?.encoding});return(0,er.D)(i)}catch(t){this.logger.error(`Failed to decode message from topic: '${e}', clientId: '${await this.getClientId()}'`),this.logger.error(t)}},this.getPayloadType=(e,t=a.$dT)=>{let r=(0,a.vBi)({encoded:e,encoding:t});return(0,a.WGe)(r.type)},this.getPayloadSenderPublicKey=(e,t=a.$dT)=>{let r=(0,a.vBi)({encoded:e,encoding:t});return r.senderPublicKey?(0,ei.BB)(r.senderPublicKey,a.AWt):void 0},this.core=e,this.logger=(0,F.Ep)(t,this.name),this.keychain=r||new tY(this.core,this.logger)}get context(){return(0,F.Fd)(this.logger)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(tE)}catch{e=(0,a.jdp)(),await this.keychain.set(tE,e)}return function(e,t="utf8"){let r=tx[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tJ extends W{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name="messages",this.version="0.3",this.initialized=!1,this.storagePrefix=tC,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let e=await this.getRelayerMessages();"u">typeof e&&(this.messages=e),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}finally{this.initialized=!0}}},this.set=async(e,t)=>{this.isInitialized();let r=(0,a.rjm)(t),n=this.messages.get(e);return typeof n>"u"&&(n={}),"u">typeof n[r]||(n[r]=t,this.messages.set(e,n),await this.persist()),r},this.get=e=>{this.isInitialized();let t=this.messages.get(e);return typeof t>"u"&&(t={}),t},this.has=(e,t)=>(this.isInitialized(),"u">typeof this.get(e)[(0,a.rjm)(t)]),this.del=async e=>{this.isInitialized(),this.messages.delete(e),await this.persist()},this.logger=(0,F.Ep)(e,this.name),this.core=t}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,(0,a.KCv)(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return"u">typeof e?(0,a.IPd)(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class tX extends V{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new i.EventEmitter,this.name="publisher",this.queue=new Map,this.publishTimeout=(0,D.toMiliseconds)(D.ONE_MINUTE),this.failedPublishTimeout=(0,D.toMiliseconds)(D.ONE_SECOND),this.needsTransportRestart=!1,this.publish=async(e,t,r)=>{var n;this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});let i=r?.ttl||tT,o=(0,a._HE)(r),s=r?.prompt||!1,l=r?.tag||0,c=r?.id||ef().toString(),u={topic:e,message:t,opts:{ttl:i,relay:o,prompt:s,tag:l,id:c,attestation:r?.attestation}},d=`Failed to publish payload, please try again. id:${c} tag:${l}`,h=Date.now(),f,p=1;try{for(;void 0===f;){if(Date.now()-h>this.publishTimeout)throw Error(d);this.logger.trace({id:c,attempts:p},`publisher.publish - attempt ${p}`),f=await await (0,a.hFY)(this.rpcPublish(e,t,i,o,s,l,c,r?.attestation).catch(e=>this.logger.warn(e)),this.publishTimeout,d),p++,f||await new Promise(e=>setTimeout(e,this.failedPublishTimeout))}this.relayer.events.emit(tP.publish,u),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:e,message:t,opts:r}})}catch(e){if(this.logger.debug("Failed to Publish Payload"),this.logger.error(e),null!=(n=r?.internal)&&n.throwOnFailedPublish)throw e;this.queue.set(c,u)}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.relayer=e,this.logger=(0,F.Ep)(t,this.name),this.registerEventListeners()}get context(){return(0,F.Fd)(this.logger)}rpcPublish(e,t,r,n,i,o,s,l){var c,u,d,h;let f={method:(0,a.cOS)(n.protocol).publish,params:{topic:e,message:t,ttl:r,prompt:i,tag:o,attestation:l},id:s};return(0,a.o8e)(null==(c=f.params)?void 0:c.prompt)&&(null==(u=f.params)||delete u.prompt),(0,a.o8e)(null==(d=f.params)?void 0:d.tag)&&(null==(h=f.params)||delete h.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:f}),this.relayer.request(f)}removeRequestFromQueue(e){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:r,opts:n}=e;await this.publish(t,r,n)})}registerEventListeners(){this.relayer.core.heartbeat.on(U,()=>{if(this.needsTransportRestart){this.needsTransportRestart=!1,this.relayer.events.emit(tP.connection_stalled);return}this.checkQueue()}),this.relayer.on(tP.message_ack,e=>{this.removeRequestFromQueue(e.id.toString())})}}class t0{constructor(){this.map=new Map,this.set=(e,t)=>{let r=this.get(e);this.exists(e,t)||this.map.set(e,[...r,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let r=this.get(e);if(!this.exists(e,t))return;let n=r.filter(e=>e!==t);if(!n.length){this.map.delete(e);return}this.map.set(e,n)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}}var t1=Object.defineProperty,t2=Object.defineProperties,t3=Object.getOwnPropertyDescriptors,t5=Object.getOwnPropertySymbols,t6=Object.prototype.hasOwnProperty,t4=Object.prototype.propertyIsEnumerable,t8=(e,t,r)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,t9=(e,t)=>{for(var r in t||(t={}))t6.call(t,r)&&t8(e,r,t[r]);if(t5)for(var r of t5(t))t4.call(t,r)&&t8(e,r,t[r]);return e},t7=(e,t)=>t2(e,t3(t));class re extends K{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new t0,this.events=new i.EventEmitter,this.name="subscription",this.version="0.3",this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=tC,this.subscribeTimeout=(0,D.toMiliseconds)(D.ONE_MINUTE),this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.pendingBatchMessages=[],this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),this.registerEventListeners(),this.clientId=await this.relayer.core.crypto.getClientId(),await this.restore()),this.initialized=!0},this.subscribe=async(e,t)=>{this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{let r=(0,a._HE)(t),n={topic:e,relay:r,transportType:t?.transportType};this.pending.set(e,n);let i=await this.rpcSubscribe(e,r,t?.transportType);return"string"==typeof i&&(this.onSubscribe(i,n),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),i}catch(e){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(e),e}},this.unsubscribe=async(e,t)=>{await this.restartToComplete(),this.isInitialized(),"u">typeof t?.id?await this.unsubscribeById(e,t.id,t):await this.unsubscribeByTopic(e,t)},this.isSubscribed=async e=>{if(this.topics.includes(e))return!0;let t=`${this.pendingSubscriptionWatchLabel}_${e}`;return await new Promise((r,n)=>{let i=new D.Watch;i.start(t);let o=setInterval(()=>{!this.pending.has(e)&&this.topics.includes(e)&&(clearInterval(o),i.stop(t),r(!0)),i.elapsed(t)>=tD&&(clearInterval(o),i.stop(t),n(Error("Subscription resolution timeout")))},this.pollingInterval)}).catch(()=>!1)},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.start=async()=>{await this.onConnect()},this.stop=async()=>{await this.onDisconnect()},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=(0,F.Ep)(t,this.name),this.clientId=""}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let r=!1;try{r=this.getSubscription(e).topic===t}catch{}return r}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let r=this.topicMap.get(e);await Promise.all(r.map(async r=>await this.unsubscribeById(e,r,t)))}async unsubscribeById(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{let n=(0,a._HE)(r);await this.rpcUnsubscribe(e,t,n);let i=(0,a.D6H)("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(e){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(e),e}}async rpcSubscribe(e,t,r=tM.relay){r===tM.relay&&await this.restartToComplete();let n={method:(0,a.cOS)(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{let t=(0,a.rjm)(e+this.clientId);return r===tM.link_mode?(setTimeout(()=>{(this.relayer.connected||this.relayer.connecting)&&this.relayer.request(n).catch(e=>this.logger.warn(e))},(0,D.toMiliseconds)(D.ONE_SECOND)),t):await await (0,a.hFY)(this.relayer.request(n).catch(e=>this.logger.warn(e)),this.subscribeTimeout)?t:null}catch{this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(tP.connection_stalled)}return null}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,r={method:(0,a.cOS)(t.protocol).batchSubscribe,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r});try{return await await (0,a.hFY)(this.relayer.request(r).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(tP.connection_stalled)}}async rpcBatchFetchMessages(e){let t;if(!e.length)return;let r=e[0].relay,n={method:(0,a.cOS)(r.protocol).batchFetchMessages,params:{topics:e.map(e=>e.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{t=await await (0,a.hFY)(this.relayer.request(n).catch(e=>this.logger.warn(e)),this.subscribeTimeout)}catch{this.relayer.events.emit(tP.connection_stalled)}return t}rpcUnsubscribe(e,t,r){let n={method:(0,a.cOS)(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n}),this.relayer.request(n)}onSubscribe(e,t){this.setSubscription(e,t7(t9({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(e=>{this.setSubscription(e.id,t9({},e)),this.pending.delete(e.topic)})}async onUnsubscribe(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}addSubscription(e,t){this.subscriptions.set(e,t9({},t)),this.topicMap.set(t.topic,e),this.events.emit(tj.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(tj.deleted,t7(t9({},r),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(tj.sync)}async reset(){if(this.cached.length){let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t<e;t++){let e=this.cached.splice(0,this.batchSubscribeTopicsLimit);await this.batchFetchMessages(e),await this.batchSubscribe(e)}}this.events.emit(tj.resubscribed)}async restore(){try{let e=await this.getRelayerSubscriptions();if(typeof e>"u"||!e.length)return;if(this.subscriptions.size){let{message:e}=(0,a.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);(0,a.qt8)(t)&&this.onBatchSubscribe(t.map((t,r)=>t7(t9({},e[r]),{id:t})))}async batchFetchMessages(e){if(!e.length)return;this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);let t=await this.rpcBatchFetchMessages(e);t&&t.messages&&(this.pendingBatchMessages=this.pendingBatchMessages.concat(t.messages))}async onConnect(){await this.restart(),this.onEnable()}onDisconnect(){this.onDisable()}async checkPending(){if(!this.initialized||!this.relayer.connected)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e),this.pendingBatchMessages.length&&(await this.relayer.handleBatchMessageEvents(this.pendingBatchMessages),this.pendingBatchMessages=[])}registerEventListeners(){this.relayer.core.heartbeat.on(U,async()=>{await this.checkPending()}),this.events.on(tj.created,async e=>{let t=tj.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(tj.deleted,async e=>{let t=tj.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}async restartToComplete(){this.relayer.connected||this.relayer.connecting||await this.relayer.transportOpen(),this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}}var rt=Object.defineProperty,rr=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,ro=(e,t,r)=>t in e?rt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ra=(e,t)=>{for(var r in t||(t={}))rn.call(t,r)&&ro(e,r,t[r]);if(rr)for(var r of rr(t))ri.call(t,r)&&ro(e,r,t[r]);return e};class rs extends Z{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new i.EventEmitter,this.name="relayer",this.transportExplicitlyClosed=!1,this.initialized=!1,this.connectionAttemptInProgress=!1,this.connectionStatusPollingInterval=20,this.staleConnectionErrors=["socket hang up","stalled","interrupted"],this.hasExperiencedNetworkDisruption=!1,this.requestsInFlight=new Map,this.heartBeatTimeout=(0,D.toMiliseconds)(D.THIRTY_SECONDS+D.ONE_SECOND),this.request=async e=>{var t,r;this.logger.debug("Publishing Request Payload");let n=e.id||ef().toString();await this.toEstablishConnection();try{let i=this.provider.request(e);this.requestsInFlight.set(n,{promise:i,request:e}),this.logger.trace({id:n,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - attempt to publish...");let o=await new Promise(async(e,t)=>{let r=()=>{t(Error(`relayer.request - publish interrupted, id: ${n}`))};this.provider.on(tO.disconnect,r);let o=await i;this.provider.off(tO.disconnect,r),e(o)});return this.logger.trace({id:n,method:e.method,topic:null==(r=e.params)?void 0:r.topic},"relayer.request - published"),o}catch(e){throw this.logger.debug(`Failed to Publish Request: ${n}`),e}finally{this.requestsInFlight.delete(n)}},this.resetPingTimeout=()=>{if((0,a.UGU)())try{clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{var e,t,r;null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)||r.terminate()},this.heartBeatTimeout)}catch(e){this.logger.warn(e)}},this.onPayloadHandler=e=>{this.onProviderPayload(e),this.resetPingTimeout()},this.onConnectHandler=()=>{this.logger.trace("relayer connected"),this.startPingTimeout(),this.events.emit(tP.connect)},this.onDisconnectHandler=()=>{this.logger.trace("relayer disconnected"),this.onProviderDisconnect()},this.onProviderErrorHandler=e=>{this.logger.error(e),this.events.emit(tP.error,e),this.logger.info("Fatal socket error received, closing transport"),this.transportClose()},this.registerProviderListeners=()=>{this.provider.on(tO.payload,this.onPayloadHandler),this.provider.on(tO.connect,this.onConnectHandler),this.provider.on(tO.disconnect,this.onDisconnectHandler),this.provider.on(tO.error,this.onProviderErrorHandler)},this.core=e.core,this.logger="u">typeof e.logger&&"string"!=typeof e.logger?(0,F.Ep)(e.logger,this.name):(0,F.gw)((0,F.jI)({level:e.logger||"error"})),this.messages=new tJ(this.logger,e.core),this.subscriber=new re(this,this.logger),this.publisher=new tX(this,this.logger),this.relayUrl=e?.relayUrl||tI,this.projectId=e.projectId,this.bundleId=(0,a.X_B)(),this.provider={}}async init(){if(this.logger.trace("Initialized"),this.registerEventListeners(),await Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.subscriber.cached.length>0)try{await this.transportOpen()}catch(e){this.logger.warn(e)}}get context(){return(0,F.Fd)(this.logger)}get connected(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===1}get connecting(){var e,t,r;return(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)===0}async publish(e,t,r){this.isInitialized(),await this.publisher.publish(e,t,r),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:tM.relay})}async subscribe(e,t){var r;this.isInitialized(),t?.transportType==="relay"&&await this.toEstablishConnection();let n=(null==(r=this.subscriber.topicMap.get(e))?void 0:r[0])||"",i,o=t=>{t.topic===e&&(this.subscriber.off(tj.created,o),i())};return await Promise.all([new Promise(e=>{i=e,this.subscriber.on(tj.created,o)}),new Promise(async r=>{n=await this.subscriber.subscribe(e,t)||n,r()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportDisconnect(){if(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)try{await Promise.all(Array.from(this.requestsInFlight.values()).map(e=>e.promise))}catch(e){this.logger.warn(e)}this.hasExperiencedNetworkDisruption||this.connected?await (0,a.hFY)(this.provider.disconnect(),2e3,"provider.disconnect()").catch(()=>this.onProviderDisconnect()):this.onProviderDisconnect()}async transportClose(){this.transportExplicitlyClosed=!0,await this.transportDisconnect()}async transportOpen(e){await this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,await this.transportDisconnect()),await this.createProvider(),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;try{await new Promise(async(e,t)=>{let r=()=>{this.provider.off(tO.disconnect,r),t(Error("Connection interrupted while trying to subscribe"))};this.provider.on(tO.disconnect,r),await (0,a.hFY)(this.provider.connect(),(0,D.toMiliseconds)(D.ONE_MINUTE),`Socket stalled when trying to connect to ${this.relayUrl}`).catch(e=>{t(e)}).finally(()=>{clearTimeout(this.reconnectTimeout),this.reconnectTimeout=void 0}),this.subscriber.start().catch(e=>{this.logger.error(e),this.onDisconnectHandler()}),this.hasExperiencedNetworkDisruption=!1,e()})}catch(e){if(this.logger.error(e),this.hasExperiencedNetworkDisruption=!0,!this.isConnectionStalled(e.message))throw e}finally{this.connectionAttemptInProgress=!1}}async restartTransport(e){this.connectionAttemptInProgress||(this.relayUrl=e||this.relayUrl,await this.confirmOnlineStateOrThrow(),await this.transportClose(),await this.transportOpen())}async confirmOnlineStateOrThrow(){if(!await (0,a.Ggh)())throw Error("No internet connection detected. Please restart your network and try again.")}async handleBatchMessageEvents(e){if(e?.length===0){this.logger.trace("Batch message events is empty. Ignoring...");return}let t=e.sort((e,t)=>e.publishedAt-t.publishedAt);for(let e of(this.logger.trace(`Batch of ${t.length} message events sorted`),t))try{await this.onMessageEvent(e)}catch(e){this.logger.warn(e)}this.logger.trace(`Batch of ${t.length} message events processed`)}async onLinkMessageEvent(e,t){let{topic:r}=e;if(!t.sessionExists){let e=(0,a.gn4)(D.FIVE_MINUTES);await this.core.pairing.pairings.set(r,{topic:r,expiry:e,relay:{protocol:"irn"},active:!1})}this.events.emit(tP.message,e),await this.recordMessageEvent(e)}startPingTimeout(){var e,t,r,n,i;if((0,a.UGU)())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(i=null==(n=null==(r=this.provider)?void 0:r.connection)?void 0:n.socket)||i.once("ping",()=>{this.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e)}}isConnectionStalled(e){return this.staleConnectionErrors.some(t=>e.includes(t))}async createProvider(){this.provider.connection&&this.unregisterProviderListeners();let e=await this.core.crypto.signJWT(this.relayUrl);this.provider=new eT(new eR((0,a.$0m)({sdkVersion:tR,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners()}async recordMessageEvent(e){let{topic:t,message:r}=e;await this.messages.set(t,r)}async shouldIgnoreMessageEvent(e){let{topic:t,message:r}=e;if(!r||0===r.length)return this.logger.debug(`Ignoring invalid/empty message: ${r}`),!0;if(!await this.subscriber.isSubscribed(t))return this.logger.debug(`Ignoring message for non-subscribed topic ${t}`),!0;let n=this.messages.has(t,r);return n&&this.logger.debug(`Ignoring duplicate message: ${r}`),n}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),eA(e)){if(!e.method.endsWith("_subscription"))return;let t=e.params,{topic:r,message:n,publishedAt:i,attestation:o}=t.data,a={topic:r,message:n,publishedAt:i,transportType:tM.relay,attestation:o};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(ra({type:"event",event:t.id},a)),this.events.emit(t.id,a),await this.acknowledgePayload(e),await this.onMessageEvent(a)}else ek(e)&&this.events.emit(tP.message_ack,e)}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(tP.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=eg(e.id,!0);await this.provider.connection.send(t)}unregisterProviderListeners(){this.provider.off(tO.payload,this.onPayloadHandler),this.provider.off(tO.connect,this.onConnectHandler),this.provider.off(tO.disconnect,this.onDisconnectHandler),this.provider.off(tO.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}async registerEventListeners(){let e=await (0,a.Ggh)();(0,a.uwg)(async t=>{e!==t&&(e=t,t?await this.restartTransport().catch(e=>this.logger.error(e)):(this.hasExperiencedNetworkDisruption=!0,await this.transportDisconnect(),this.transportExplicitlyClosed=!1))})}async onProviderDisconnect(){await this.subscriber.stop(),this.requestsInFlight.clear(),clearTimeout(this.pingTimeout),this.events.emit(tP.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&(this.reconnectTimeout||(this.reconnectTimeout=setTimeout(async()=>{await this.transportOpen().catch(e=>this.logger.error(e))},(0,D.toMiliseconds)(.1))))}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}async toEstablishConnection(){await this.confirmOnlineStateOrThrow(),this.connected||(this.connectionAttemptInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.connected&&(clearInterval(t),e())},this.connectionStatusPollingInterval)}),await this.transportOpen())}}var rl=Object.defineProperty,rc=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,rd=Object.prototype.propertyIsEnumerable,rh=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rf=(e,t)=>{for(var r in t||(t={}))ru.call(t,r)&&rh(e,r,t[r]);if(rc)for(var r of rc(t))rd.call(t,r)&&rh(e,r,t[r]);return e};class rp extends G{constructor(e,t,r,n=tC,i){super(e,t,r,n),this.core=e,this.logger=t,this.name=r,this.map=new Map,this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tC,this.recentlyDeleted=[],this.recentlyDeletedLimit=200,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>{this.getKey&&null!==e&&!(0,a.o8e)(e)?this.map.set(this.getKey(e),e):(0,a.xWS)(e)?this.map.set(e.id,e):(0,a.h1R)(e)&&this.map.set(e.topic,e)}),this.cached=[],this.initialized=!0)},this.set=async(e,t)=>{this.isInitialized(),this.map.has(e)?await this.update(e,t):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:e,value:t}),this.map.set(e,t),await this.persist())},this.get=e=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:e}),this.getData(e)),this.getAll=e=>(this.isInitialized(),e?this.values.filter(t=>Object.keys(e).every(r=>eN()(t[r],e[r]))):this.values),this.update=async(e,t)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:e,update:t});let r=rf(rf({},this.getData(e)),t);this.map.set(e,r),await this.persist()},this.delete=async(e,t)=>{this.isInitialized(),this.map.has(e)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:e,reason:t}),this.map.delete(e),this.addToRecentlyDeleted(e),await this.persist())},this.logger=(0,F.Ep)(t,this.name),this.storagePrefix=n,this.getKey=i}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}addToRecentlyDeleted(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`);throw this.logger.error(t),Error(t)}let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(t),Error(t)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:e}=(0,a.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class rg{constructor(e,t){this.core=e,this.logger=t,this.name="pairing",this.version="0.3",this.events=new(o()),this.initialized=!1,this.storagePrefix=tC,this.ignoredPayloadTypes=[a.rVF],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:e})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...e])]},this.create=async e=>{this.isInitialized();let t=(0,a.jdp)(),r=await this.core.crypto.setSymKey(t),n=(0,a.gn4)(D.FIVE_MINUTES),i={protocol:"irn"},o=(0,a.Bvr)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:t,relay:i,expiryTimestamp:n,methods:e?.methods});return this.core.expirer.set(r,n),await this.pairings.set(r,{topic:r,expiry:n,relay:i,active:!1}),await this.core.relayer.subscribe(r,{transportType:e?.transportType}),{topic:r,uri:o}},this.pair=async e=>{let t;this.isInitialized();let r=this.core.eventClient.createEvent({properties:{topic:e?.uri,trace:[tH.pairing_started]}});this.isValidPair(e,r);let{topic:n,symKey:i,relay:o,expiryTimestamp:s,methods:l}=(0,a.heJ)(e.uri);if(r.props.properties.topic=n,r.addTrace(tH.pairing_uri_validation_success),r.addTrace(tH.pairing_uri_not_expired),this.pairings.keys.includes(n)){if(t=this.pairings.get(n),r.addTrace(tH.existing_pairing),t.active)throw r.setError(tW.active_pairing_already_exists),Error(`Pairing already exists: ${n}. Please try again with a new connection URI.`);r.addTrace(tH.pairing_not_expired)}let c=s||(0,a.gn4)(D.FIVE_MINUTES),u={topic:n,relay:o,expiry:c,active:!1,methods:l};this.core.expirer.set(n,c),await this.pairings.set(n,u),r.addTrace(tH.store_new_pairing),e.activatePairing&&await this.activate({topic:n}),this.events.emit(tL.create,u),r.addTrace(tH.emit_inactive_pairing),this.core.crypto.keychain.has(n)||await this.core.crypto.setSymKey(i,n),r.addTrace(tH.subscribing_pairing_topic);try{await this.core.relayer.confirmOnlineStateOrThrow()}catch{r.setError(tW.no_internet_connection)}try{await this.core.relayer.subscribe(n,{relay:o})}catch(e){throw r.setError(tW.subscribe_pairing_topic_failure),e}return r.addTrace(tH.subscribe_pairing_topic_success),u},this.activate=async({topic:e})=>{this.isInitialized();let t=(0,a.gn4)(D.THIRTY_DAYS);this.core.expirer.set(e,t),await this.pairings.update(e,{active:!0,expiry:t})},this.ping=async e=>{this.isInitialized(),await this.isValidPing(e);let{topic:t}=e;if(this.pairings.keys.includes(t)){let e=await this.sendRequest(t,"wc_pairingPing",{}),{done:r,resolve:n,reject:i}=(0,a.H1S)();this.events.once((0,a.E0T)("pairing_ping",e),({error:e})=>{e?i(e):n()}),await r()}},this.updateExpiry=async({topic:e,expiry:t})=>{this.isInitialized(),await this.pairings.update(e,{expiry:t})},this.updateMetadata=async({topic:e,metadata:t})=>{this.isInitialized(),await this.pairings.update(e,{peerMetadata:t})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async e=>{this.isInitialized(),await this.isValidDisconnect(e);let{topic:t}=e;this.pairings.keys.includes(t)&&(await this.sendRequest(t,"wc_pairingDelete",(0,a.D6H)("USER_DISCONNECTED")),await this.deletePairing(t))},this.sendRequest=async(e,t,r)=>{let n=ep(t,r),i=await this.core.crypto.encode(e,n),o=tB[t].req;return this.core.history.set(e,n),this.core.relayer.publish(e,i,o),n.id},this.sendResult=async(e,t,r)=>{let n=eg(e,r),i=await this.core.crypto.encode(t,n),o=tB[(await this.core.history.get(t,e)).request.method].res;await this.core.relayer.publish(t,i,o),await this.core.history.resolve(n)},this.sendError=async(e,t,r)=>{let n=em(e,r),i=await this.core.crypto.encode(t,n),o=await this.core.history.get(t,e),a=tB[o.request.method]?tB[o.request.method].res:tB.unregistered_method.res;await this.core.relayer.publish(t,i,a),await this.core.history.resolve(n)},this.deletePairing=async(e,t)=>{await this.core.relayer.unsubscribe(e),await Promise.all([this.pairings.delete(e,(0,a.D6H)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(e),t?Promise.resolve():this.core.expirer.del(e)])},this.cleanup=async()=>{let e=this.pairings.getAll().filter(e=>(0,a.BwD)(e.expiry));await Promise.all(e.map(e=>this.deletePairing(e.topic)))},this.onRelayEventRequest=e=>{let{topic:t,payload:r}=e;switch(r.method){case"wc_pairingPing":return this.onPairingPingRequest(t,r);case"wc_pairingDelete":return this.onPairingDeleteRequest(t,r);default:return this.onUnknownRpcMethodRequest(t,r)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r}=e,n=(await this.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===n?this.onPairingPingResponse(t,r):this.onUnknownRpcMethodResponse(n)},this.onPairingPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult(r,e,!0),this.events.emit(tL.ping,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onPairingPingResponse=(e,t)=>{let{id:r}=t;setTimeout(()=>{eE(t)?this.events.emit((0,a.E0T)("pairing_ping",r),{}):eS(t)&&this.events.emit((0,a.E0T)("pairing_ping",r),{error:t.error})},500)},this.onPairingDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e}),await this.deletePairing(e),this.events.emit(tL.delete,{id:r,topic:e})}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodRequest=async(e,t)=>{let{id:r,method:n}=t;try{if(this.registeredMethods.includes(n))return;let t=(0,a.D6H)("WC_METHOD_UNSUPPORTED",n);await this.sendError(r,e,t),this.logger.error(t)}catch(t){await this.sendError(r,e,t),this.logger.error(t)}},this.onUnknownRpcMethodResponse=e=>{this.registeredMethods.includes(e)||this.logger.error((0,a.D6H)("WC_METHOD_UNSUPPORTED",e))},this.isValidPair=(e,t)=>{var r;if(!(0,a.EJd)(e)){let{message:r}=(0,a.kCb)("MISSING_OR_INVALID",`pair() params: ${e}`);throw t.setError(tW.malformed_pairing_uri),Error(r)}if(!(0,a.jvJ)(e.uri)){let{message:r}=(0,a.kCb)("MISSING_OR_INVALID",`pair() uri: ${e.uri}`);throw t.setError(tW.malformed_pairing_uri),Error(r)}let n=(0,a.heJ)(e?.uri);if(!(null!=(r=n?.relay)&&r.protocol)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID","pair() uri#relay-protocol");throw t.setError(tW.malformed_pairing_uri),Error(e)}if(!(null!=n&&n.symKey)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID","pair() uri#symKey");throw t.setError(tW.malformed_pairing_uri),Error(e)}if(null!=n&&n.expiryTimestamp&&(0,D.toMiliseconds)(n?.expiryTimestamp)<Date.now()){t.setError(tW.pairing_expired);let{message:e}=(0,a.kCb)("EXPIRED","pair() URI has expired. Please try again with a new connection URI.");throw Error(e)}},this.isValidPing=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidDisconnect=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidPairingTopic(t)},this.isValidPairingTopic=async e=>{if(!(0,a.M_r)(e,!1)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.pairings.keys.includes(e)){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,a.BwD)(this.pairings.get(e).expiry)){await this.deletePairing(e);let{message:t}=(0,a.kCb)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}},this.core=e,this.logger=(0,F.Ep)(t,this.name),this.pairings=new rp(this.core,this.logger,this.name,this.storagePrefix)}get context(){return(0,F.Fd)(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}registerRelayerEvents(){this.core.relayer.on(tP.message,async e=>{let{topic:t,message:r,transportType:n}=e;if(!this.pairings.keys.includes(t)||n===tM.link_mode||this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(r)))return;let i=await this.core.crypto.decode(t,r);try{eA(i)?(this.core.history.set(t,i),this.onRelayEventRequest({topic:t,payload:i})):ek(i)&&(await this.core.history.resolve(i),await this.onRelayEventResponse({topic:t,payload:i}),this.core.history.delete(t,i.id))}catch(e){this.logger.error(e)}})}registerExpirerEvents(){this.core.expirer.on(tU.expired,async e=>{let{topic:t}=(0,a.iPz)(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit(tL.expire,{topic:t}))})}}class rm extends H{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new i.EventEmitter,this.name="history",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tC,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.records.set(e.id,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(e,t,r)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:e,request:t,chainId:r}),this.records.has(t.id))return;let n={id:t.id,topic:e,request:{method:t.method,params:t.params||null},chainId:r,expiry:(0,a.gn4)(D.THIRTY_DAYS)};this.records.set(n.id,n),this.persist(),this.events.emit(t$.created,n)},this.resolve=async e=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:e}),!this.records.has(e.id))return;let t=await this.getRecord(e.id);typeof t.response>"u"&&(t.response=eS(e)?{error:e.error}:{result:e.result},this.records.set(t.id,t),this.persist(),this.events.emit(t$.updated,t))},this.get=async(e,t)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:e,id:t}),await this.getRecord(t)),this.delete=(e,t)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:t}),this.values.forEach(r=>{r.topic!==e||"u">typeof t&&r.id!==t||(this.records.delete(r.id),this.events.emit(t$.deleted,r))}),this.persist()},this.exists=async(e,t)=>(this.isInitialized(),!!this.records.has(t)&&(await this.getRecord(t)).topic===e),this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,F.Ep)(t,this.name)}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if("u">typeof t.response)return;let r={topic:t.topic,request:ep(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw Error(t)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(t$.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:e}=(0,a.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(t$.created,e=>{let t=t$.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(t$.updated,e=>{let t=t$.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.events.on(t$.deleted,e=>{let t=t$.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e})}),this.core.heartbeat.on(U,()=>{this.cleanup()})}cleanup(){try{this.isInitialized();let e=!1;this.records.forEach(t=>{(0,D.toMiliseconds)(t.expiry||0)-Date.now()<=0&&(this.logger.info(`Deleting expired history log: ${t.id}`),this.records.delete(t.id),this.events.emit(t$.deleted,t,!1),e=!0)}),e&&this.persist()}catch(e){this.logger.warn(e)}}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}class rv extends Y{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new i.EventEmitter,this.name="expirer",this.version="0.3",this.cached=[],this.initialized=!1,this.storagePrefix=tC,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(e=>this.expirations.set(e.target,e)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=e=>{try{let t=this.formatTarget(e);return"u">typeof this.getExpiration(t)}catch{return!1}},this.set=(e,t)=>{this.isInitialized();let r=this.formatTarget(e),n={target:r,expiry:t};this.expirations.set(r,n),this.checkExpiry(r,n),this.events.emit(tU.created,{target:r,expiration:n})},this.get=e=>{this.isInitialized();let t=this.formatTarget(e);return this.getExpiration(t)},this.del=e=>{if(this.isInitialized(),this.has(e)){let t=this.formatTarget(e),r=this.getExpiration(t);this.expirations.delete(t),this.events.emit(tU.deleted,{target:t,expiration:r})}},this.on=(e,t)=>{this.events.on(e,t)},this.once=(e,t)=>{this.events.once(e,t)},this.off=(e,t)=>{this.events.off(e,t)},this.removeListener=(e,t)=>{this.events.removeListener(e,t)},this.logger=(0,F.Ep)(t,this.name)}get context(){return(0,F.Fd)(this.logger)}get storageKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if("string"==typeof e)return(0,a.Z42)(e);if("number"==typeof e)return(0,a.GqV)(e);let{message:t}=(0,a.kCb)("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(tU.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:e}=(0,a.kCb)("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(e),Error(e)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.warn(t),Error(t)}return t}checkExpiry(e,t){let{expiry:r}=t;(0,D.toMiliseconds)(r)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(tU.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(U,()=>this.checkExpirations()),this.events.on(tU.created,e=>{let t=tU.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(tU.expired,e=>{let t=tU.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(tU.deleted,e=>{let t=tU.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}}var rb={};function ry(e){let t;return"u">typeof window&&"u">typeof window[e]&&(t=window[e]),t}function rw(e){let t=ry(e);if(!t)throw Error(`${e} is not defined in Window`);return t}Object.defineProperty(rb,"__esModule",{value:!0}),rb.getLocalStorage=rb.getLocalStorageOrThrow=rb.getCrypto=rb.getCryptoOrThrow=rb.getLocation=rb.getLocationOrThrow=rb.getNavigator=rb.getNavigatorOrThrow=rx=rb.getDocument=rb.getDocumentOrThrow=rb.getFromWindowOrThrow=rb.getFromWindow=void 0,rb.getFromWindow=ry,rb.getFromWindowOrThrow=rw,rb.getDocumentOrThrow=function(){return rw("document")};var rx=rb.getDocument=function(){return ry("document")};rb.getNavigatorOrThrow=function(){return rw("navigator")},rb.getNavigator=function(){return ry("navigator")},rb.getLocationOrThrow=function(){return rw("location")},rb.getLocation=function(){return ry("location")},rb.getCryptoOrThrow=function(){return rw("crypto")},rb.getCrypto=function(){return ry("crypto")},rb.getLocalStorageOrThrow=function(){return rw("localStorage")},rb.getLocalStorage=function(){return ry("localStorage")};class r_ extends Q{constructor(e,t,r){super(e,t,r),this.core=e,this.logger=t,this.store=r,this.name="verify-api",this.verifyUrlV3=tF,this.storagePrefix=tC,this.version=2,this.init=async()=>{var e;this.isDevEnv||(this.publicKey=await this.store.getItem(this.storeKey),this.publicKey&&(0,D.toMiliseconds)(null==(e=this.publicKey)?void 0:e.expiresAt)<Date.now()&&(this.logger.debug("verify v2 public key expired"),await this.removePublicKey()))},this.register=async e=>{if(!(0,a.jUY)()||this.isDevEnv)return;let t=window.location.origin,{id:r,decryptedId:n}=e,i=`${this.verifyUrlV3}/attestation?projectId=${this.core.projectId}&origin=${t}&id=${r}&decryptedId=${n}`;try{let e=rx(),t=this.startAbortTimer(5*D.ONE_SECOND),n=await new Promise((n,o)=>{let a=()=>{window.removeEventListener("message",l),e.body.removeChild(s),o("attestation aborted")};this.abortController.signal.addEventListener("abort",a);let s=e.createElement("iframe");s.src=i,s.style.display="none",s.addEventListener("error",a,{signal:this.abortController.signal});let l=i=>{if(!i.data)return;let o=JSON.parse(i.data);if("verify_attestation"===o.type){if((0,en.decodeJWT)(o.attestation).payload.id!==r)return;clearInterval(t),e.body.removeChild(s),this.abortController.signal.removeEventListener("abort",a),window.removeEventListener("message",l),n(null===o.attestation?"":o.attestation)}};e.body.appendChild(s),window.addEventListener("message",l,{signal:this.abortController.signal})});return this.logger.debug("jwt attestation",n),n}catch(e){this.logger.warn(e)}return""},this.resolve=async e=>{if(this.isDevEnv)return"";let{attestationId:t,hash:r,encryptedId:n}=e;if(""===t){this.logger.debug("resolve: attestationId is empty, skipping");return}if(t){if((0,en.decodeJWT)(t).payload.id!==n)return;let e=await this.isValidJwtAttestation(t);if(e){if(!e.isVerified){this.logger.warn("resolve: jwt attestation: origin url not verified");return}return e}}if(!r)return;let i=this.getVerifyUrl(e?.verifyUrl);return this.fetchAttestation(r,i)},this.fetchAttestation=async(e,t)=>{this.logger.debug(`resolving attestation: ${e} from url: ${t}`);let r=this.startAbortTimer(5*D.ONE_SECOND),n=await fetch(`${t}/attestation/${e}?v2Supported=true`,{signal:this.abortController.signal});return clearTimeout(r),200===n.status?await n.json():void 0},this.getVerifyUrl=e=>{let t=e||tz;return tq.includes(t)||(this.logger.info(`verify url: ${t}, not included in trusted list, assigning default: ${tz}`),t=tz),t},this.fetchPublicKey=async()=>{try{this.logger.debug(`fetching public key from: ${this.verifyUrlV3}`);let e=this.startAbortTimer(D.FIVE_SECONDS),t=await fetch(`${this.verifyUrlV3}/public-key`,{signal:this.abortController.signal});return clearTimeout(e),await t.json()}catch(e){this.logger.warn(e)}},this.persistPublicKey=async e=>{this.logger.debug("persisting public key to local storage",e),await this.store.setItem(this.storeKey,e),this.publicKey=e},this.removePublicKey=async()=>{this.logger.debug("removing verify v2 public key from storage"),await this.store.removeItem(this.storeKey),this.publicKey=void 0},this.isValidJwtAttestation=async e=>{let t=await this.getPublicKey();try{if(t)return this.validateAttestation(e,t)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}let r=await this.fetchAndPersistPublicKey();try{if(r)return this.validateAttestation(e,r)}catch(e){this.logger.error(e),this.logger.warn("error validating attestation")}},this.getPublicKey=async()=>this.publicKey?this.publicKey:await this.fetchAndPersistPublicKey(),this.fetchAndPersistPublicKey=async()=>{if(this.fetchPromise)return await this.fetchPromise,this.publicKey;this.fetchPromise=new Promise(async e=>{let t=await this.fetchPublicKey();t&&(await this.persistPublicKey(t),e(t))});let e=await this.fetchPromise;return this.fetchPromise=void 0,e},this.validateAttestation=(e,t)=>{let r=(0,a.NbI)(e,t.publicKey),n={hasExpired:(0,D.toMiliseconds)(r.exp)<Date.now(),payload:r};if(n.hasExpired)throw this.logger.warn("resolve: jwt attestation expired"),Error("JWT attestation expired");return{origin:n.payload.origin,isScam:n.payload.isScam,isVerified:n.payload.isVerified}},this.logger=(0,F.Ep)(t,this.name),this.abortController=new AbortController,this.isDevEnv=(0,a.UGU)()&&ej.env.IS_VITEST,this.init()}get storeKey(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//verify:public:key"}get context(){return(0,F.Fd)(this.logger)}startAbortTimer(e){return this.abortController=new AbortController,setTimeout(()=>this.abortController.abort(),(0,D.toMiliseconds)(e))}}class rC extends J{constructor(e,t){super(e,t),this.projectId=e,this.logger=t,this.context="echo",this.registerDeviceToken=async e=>{let{clientId:t,token:r,notificationType:n,enableEncrypted:i=!1}=e,o=`https://echo.walletconnect.com/${this.projectId}/clients`;await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:t,type:n,token:r,always_raw:i})})},this.logger=(0,F.Ep)(t,this.context)}}var rA=Object.defineProperty,rk=Object.getOwnPropertySymbols,rE=Object.prototype.hasOwnProperty,rS=Object.prototype.propertyIsEnumerable,rT=(e,t,r)=>t in e?rA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rI=(e,t)=>{for(var r in t||(t={}))rE.call(t,r)&&rT(e,r,t[r]);if(rk)for(var r of rk(t))rS.call(t,r)&&rT(e,r,t[r]);return e};class rP extends X{constructor(e,t,r=!0){super(e,t,r),this.core=e,this.logger=t,this.context="event-client",this.storagePrefix=tC,this.storageVersion=.1,this.events=new Map,this.shouldPersist=!1,this.createEvent=e=>{let{event:t="ERROR",type:r="",properties:{topic:n,trace:i}}=e,o=(0,a.k$y)(),s=rI({eventId:o,bundleId:this.core.projectId||"",timestamp:Date.now(),props:{event:t,type:r,properties:{topic:n,trace:i}}},this.setMethods(o));return this.telemetryEnabled&&(this.events.set(o,s),this.shouldPersist=!0),s},this.getEvent=e=>{let{eventId:t,topic:r}=e;if(t)return this.events.get(t);let n=Array.from(this.events.values()).find(e=>e.props.properties.topic===r);if(n)return rI(rI({},n),this.setMethods(n.eventId))},this.deleteEvent=e=>{let{eventId:t}=e;this.events.delete(t),this.shouldPersist=!0},this.setEventListeners=()=>{this.core.heartbeat.on(U,async()=>{this.shouldPersist&&await this.persist(),this.events.forEach(e=>{(0,D.fromMiliseconds)(Date.now())-(0,D.fromMiliseconds)(e.timestamp)>86400&&(this.events.delete(e.eventId),this.shouldPersist=!0)})})},this.setMethods=e=>({addTrace:t=>this.addTrace(e,t),setError:t=>this.setError(e,t)}),this.addTrace=(e,t)=>{let r=this.events.get(e);r&&(r.props.properties.trace.push(t),this.events.set(e,r),this.shouldPersist=!0)},this.setError=(e,t)=>{let r=this.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),this.events.set(e,r),this.shouldPersist=!0)},this.persist=async()=>{await this.core.storage.setItem(this.storageKey,Array.from(this.events.values())),this.shouldPersist=!1},this.restore=async()=>{try{let e=await this.core.storage.getItem(this.storageKey)||[];if(!e.length)return;e.forEach(e=>{this.events.set(e.eventId,rI(rI({},e),this.setMethods(e.eventId)))})}catch(e){this.logger.warn(e)}},this.submit=async()=>{if(!this.telemetryEnabled||0===this.events.size)return;let e=[];for(let[t,r]of this.events)r.props.type&&e.push(r);if(0!==e.length)try{if((await fetch(`https://pulse.walletconnect.com/batch?projectId=${this.core.projectId}&st=events_sdk&sv=js-${tR}`,{method:"POST",body:JSON.stringify(e)})).ok)for(let t of e)this.events.delete(t.eventId),this.shouldPersist=!0}catch(e){this.logger.warn(e)}},this.logger=(0,F.Ep)(t,this.context),r?this.restore().then(async()=>{await this.submit(),this.setEventListeners()}):this.persist()}get storageKey(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}var rO=Object.defineProperty,rR=Object.getOwnPropertySymbols,rM=Object.prototype.hasOwnProperty,rN=Object.prototype.propertyIsEnumerable,rj=(e,t,r)=>t in e?rO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rD=(e,t)=>{for(var r in t||(t={}))rM.call(t,r)&&rj(e,r,t[r]);if(rR)for(var r of rR(t))rN.call(t,r)&&rj(e,r,t[r]);return e};class rB extends q{constructor(e){var t;super(e),this.protocol="wc",this.version=2,this.name=t_,this.events=new i.EventEmitter,this.initialized=!1,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.dispatchEnvelope=({topic:e,message:t,sessionExists:r})=>{if(!e||!t)return;let n={topic:e,message:t,publishedAt:Date.now(),transportType:tM.link_mode};this.relayer.onLinkMessageEvent(n,{sessionExists:r})},this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||tI,this.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";let r=(0,F.jI)({level:"string"==typeof e?.logger&&e.logger?e.logger:tA.logger}),{logger:n,chunkLoggerController:o}=(0,F.Rt)({opts:r,maxSizeInBytes:e?.maxLogBlobSizeInBytes,loggerOverride:e?.logger});this.logChunkController=o,null!=(t=this.logChunkController)&&t.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=async()=>{var e,t;null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=this.logChunkController)||t.downloadLogsBlobInBrowser({clientId:await this.crypto.getClientId()}))}),this.logger=(0,F.Ep)(n,this.name),this.heartbeat=new z,this.crypto=new tQ(this,this.logger,e?.keychain),this.history=new rm(this,this.logger),this.expirer=new rv(this,this.logger),this.storage=null!=e&&e.storage?e.storage:new j(rD(rD({},tk),e?.storageOptions)),this.relayer=new rs({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new rg(this,this.logger),this.verify=new r_(this,this.logger,this.storage),this.echoClient=new rC(this.projectId||"",this.logger),this.linkModeSupportedApps=[],this.eventClient=new rP(this,this.logger,e?.telemetryEnabled)}static async init(e){let t=new rB(e);await t.initialize();let r=await t.crypto.getClientId();return await t.storage.setItem("WALLETCONNECT_CLIENT_ID",r),t}get context(){return(0,F.Fd)(this.logger)}async start(){this.initialized||await this.initialize()}async getLogsBlob(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:await this.crypto.getClientId()})}async addLinkModeSupportedApp(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),await this.storage.setItem(tN,this.linkModeSupportedApps))}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.linkModeSupportedApps=await this.storage.getItem(tN)||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}}var rL=r(34155);let r$="client",rU=`wc@2:${r$}:`,rz={name:r$,logger:"error"},rF="WALLETCONNECT_DEEPLINK_CHOICE",rq="Proposal expired",rH=D.SEVEN_DAYS,rW={wc_sessionPropose:{req:{ttl:D.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:D.ONE_DAY,prompt:!1,tag:1104},res:{ttl:D.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:D.ONE_DAY,prompt:!1,tag:1106},res:{ttl:D.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:D.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:D.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:D.ONE_DAY,prompt:!1,tag:1112},res:{ttl:D.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:D.ONE_DAY,prompt:!1,tag:1114},res:{ttl:D.ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:D.ONE_HOUR,prompt:!0,tag:1116},res:{ttl:D.ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:D.FIVE_MINUTES,prompt:!1,tag:1119}}},rV={min:D.FIVE_MINUTES,max:D.SEVEN_DAYS},rZ={idle:"IDLE",active:"ACTIVE"},rG=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],rK="wc@1.5:auth:",rY=`${rK}:PUB_KEY`;var rQ=Object.defineProperty,rJ=Object.defineProperties,rX=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,r1=Object.prototype.hasOwnProperty,r2=Object.prototype.propertyIsEnumerable,r3=(e,t,r)=>t in e?rQ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r5=(e,t)=>{for(var r in t||(t={}))r1.call(t,r)&&r3(e,r,t[r]);if(r0)for(var r of r0(t))r2.call(t,r)&&r3(e,r,t[r]);return e},r6=(e,t)=>rJ(e,rX(t));class r4 extends et{constructor(e){super(e),this.name="engine",this.events=new(o()),this.initialized=!1,this.requestQueue={state:rZ.idle,queue:[]},this.sessionRequestQueue={state:rZ.idle,queue:[]},this.requestQueueDelay=D.ONE_SECOND,this.expectedPairingMethodMap=new Map,this.recentlyDeletedMap=new Map,this.recentlyDeletedLimit=200,this.relayMessageCache=[],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.registerPairingEvents(),await this.registerLinkModeListeners(),this.client.core.pairing.register({methods:Object.keys(rW)}),this.initialized=!0,setTimeout(()=>{this.sessionRequestQueue.queue=this.getPendingSessionRequests(),this.processSessionRequestQueue()},(0,D.toMiliseconds)(this.requestQueueDelay)))},this.connect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();let t=r6(r5({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});await this.isValidConnect(t);let{pairingTopic:r,requiredNamespaces:n,optionalNamespaces:i,sessionProperties:o,relays:s}=t,l=r,c,u=!1;try{l&&(u=this.client.core.pairing.pairings.get(l).active)}catch(e){throw this.client.logger.error(`connect() -> pairing.get(${l}) failed`),e}if(!l||!u){let{topic:e,uri:t}=await this.client.core.pairing.create();l=e,c=t}if(!l){let{message:e}=(0,a.kCb)("NO_MATCHING_KEY",`connect() pairing topic: ${l}`);throw Error(e)}let d=await this.client.core.crypto.generateKeyPair(),h=rW.wc_sessionPropose.req.ttl||D.FIVE_MINUTES,f=(0,a.gn4)(h),p=r5({requiredNamespaces:n,optionalNamespaces:i,relays:s??[{protocol:"irn"}],proposer:{publicKey:d,metadata:this.client.metadata},expiryTimestamp:f,pairingTopic:l},o&&{sessionProperties:o}),{reject:g,resolve:m,done:v}=(0,a.H1S)(h,rq);this.events.once((0,a.E0T)("session_connect"),async({error:e,session:t})=>{if(e)g(e);else if(t){t.self.publicKey=d;let e=r6(r5({},t),{pairingTopic:p.pairingTopic,requiredNamespaces:p.requiredNamespaces,optionalNamespaces:p.optionalNamespaces,transportType:tM.relay});await this.client.session.set(t.topic,e),await this.setExpiry(t.topic,t.expiry),l&&await this.client.core.pairing.updateMetadata({topic:l,metadata:t.peer.metadata}),this.cleanupDuplicatePairings(e),m(e)}});let b=await this.sendRequest({topic:l,method:"wc_sessionPropose",params:p,throwOnFailedPublish:!0});return await this.setProposal(b,r5({id:b},p)),{uri:c,approval:v}},this.pair=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{return await this.client.core.pairing.pair(e)}catch(e){throw this.client.logger.error("pair() failed"),e}},this.approve=async e=>{var t,r,n;let i=this.client.core.eventClient.createEvent({properties:{topic:null==(t=e?.id)?void 0:t.toString(),trace:[tV.session_approve_started]}});try{this.isInitialized(),await this.confirmOnlineStateOrThrow()}catch(e){throw i.setError(tZ.no_internet_connection),e}try{await this.isValidProposalId(e?.id)}catch(t){throw this.client.logger.error(`approve() -> proposal.get(${e?.id}) failed`),i.setError(tZ.proposal_not_found),t}try{await this.isValidApprove(e)}catch(e){throw this.client.logger.error("approve() -> isValidApprove() failed"),i.setError(tZ.session_approve_namespace_validation_failure),e}let{id:o,relayProtocol:s,namespaces:l,sessionProperties:c,sessionConfig:u}=e,d=this.client.proposal.get(o);this.client.core.eventClient.deleteEvent({eventId:i.eventId});let{pairingTopic:h,proposer:f,requiredNamespaces:p,optionalNamespaces:g}=d,m=null==(r=this.client.core.eventClient)?void 0:r.getEvent({topic:h});m||(m=null==(n=this.client.core.eventClient)?void 0:n.createEvent({type:tV.session_approve_started,properties:{topic:h,trace:[tV.session_approve_started,tV.session_namespaces_validation_success]}}));let v=await this.client.core.crypto.generateKeyPair(),b=f.publicKey,y=await this.client.core.crypto.generateSharedKey(v,b),w=r5(r5({relay:{protocol:s??"irn"},namespaces:l,controller:{publicKey:v,metadata:this.client.metadata},expiry:(0,a.gn4)(rH)},c&&{sessionProperties:c}),u&&{sessionConfig:u}),x=tM.relay;m.addTrace(tV.subscribing_session_topic);try{await this.client.core.relayer.subscribe(y,{transportType:x})}catch(e){throw m.setError(tZ.subscribe_session_topic_failure),e}m.addTrace(tV.subscribe_session_topic_success);let _=r6(r5({},w),{topic:y,requiredNamespaces:p,optionalNamespaces:g,pairingTopic:h,acknowledged:!1,self:w.controller,peer:{publicKey:f.publicKey,metadata:f.metadata},controller:v,transportType:tM.relay});await this.client.session.set(y,_),m.addTrace(tV.store_session);try{m.addTrace(tV.publishing_session_settle),await this.sendRequest({topic:y,method:"wc_sessionSettle",params:w,throwOnFailedPublish:!0}).catch(e=>{throw m?.setError(tZ.session_settle_publish_failure),e}),m.addTrace(tV.session_settle_publish_success),m.addTrace(tV.publishing_session_approve),await this.sendResult({id:o,topic:h,result:{relay:{protocol:s??"irn"},responderPublicKey:v},throwOnFailedPublish:!0}).catch(e=>{throw m?.setError(tZ.session_approve_publish_failure),e}),m.addTrace(tV.session_approve_publish_success)}catch(e){throw this.client.logger.error(e),this.client.session.delete(y,(0,a.D6H)("USER_DISCONNECTED")),await this.client.core.relayer.unsubscribe(y),e}return this.client.core.eventClient.deleteEvent({eventId:m.eventId}),await this.client.core.pairing.updateMetadata({topic:h,metadata:f.metadata}),await this.client.proposal.delete(o,(0,a.D6H)("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:h}),await this.setExpiry(y,(0,a.gn4)(rH)),{topic:y,acknowledged:()=>Promise.resolve(this.client.session.get(y))}},this.reject=async e=>{let t;this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidReject(e)}catch(e){throw this.client.logger.error("reject() -> isValidReject() failed"),e}let{id:r,reason:n}=e;try{t=this.client.proposal.get(r).pairingTopic}catch(e){throw this.client.logger.error(`reject() -> proposal.get(${r}) failed`),e}t&&(await this.sendError({id:r,topic:t,error:n,rpcOpts:rW.wc_sessionPropose.reject}),await this.client.proposal.delete(r,(0,a.D6H)("USER_DISCONNECTED")))},this.update=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidUpdate(e)}catch(e){throw this.client.logger.error("update() -> isValidUpdate() failed"),e}let{topic:t,namespaces:r}=e,{done:n,resolve:i,reject:o}=(0,a.H1S)(),s=eh(),l=ef().toString(),c=this.client.session.get(t).namespaces;return this.events.once((0,a.E0T)("session_update",s),({error:e})=>{e?o(e):i()}),await this.client.session.update(t,{namespaces:r}),await this.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:s,relayRpcId:l}).catch(e=>{this.client.logger.error(e),this.client.session.update(t,{namespaces:c}),o(e)}),{acknowledged:n}},this.extend=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidExtend(e)}catch(e){throw this.client.logger.error("extend() -> isValidExtend() failed"),e}let{topic:t}=e,r=eh(),{done:n,resolve:i,reject:o}=(0,a.H1S)();return this.events.once((0,a.E0T)("session_extend",r),({error:e})=>{e?o(e):i()}),await this.setExpiry(t,(0,a.gn4)(rH)),this.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch(e=>{o(e)}),{acknowledged:n}},this.request=async e=>{this.isInitialized();try{await this.isValidRequest(e)}catch(e){throw this.client.logger.error("request() -> isValidRequest() failed"),e}let{chainId:t,request:r,topic:n,expiry:i=rW.wc_sessionRequest.req.ttl}=e,o=this.client.session.get(n);o?.transportType===tM.relay&&await this.confirmOnlineStateOrThrow();let s=eh(),l=ef().toString(),{done:c,resolve:u,reject:d}=(0,a.H1S)(i,"Request expired. Please try again.");this.events.once((0,a.E0T)("session_request",s),({error:e,result:t})=>{e?d(e):u(t)});let h=this.getAppLinkIfEnabled(o.peer.metadata,o.transportType);return h?(await this.sendRequest({clientRpcId:s,relayRpcId:l,topic:n,method:"wc_sessionRequest",params:{request:r6(r5({},r),{expiryTimestamp:(0,a.gn4)(i)}),chainId:t},expiry:i,throwOnFailedPublish:!0,appLink:h}).catch(e=>d(e)),this.client.events.emit("session_request_sent",{topic:n,request:r,chainId:t,id:s}),await c()):await Promise.all([new Promise(async e=>{await this.sendRequest({clientRpcId:s,relayRpcId:l,topic:n,method:"wc_sessionRequest",params:{request:r6(r5({},r),{expiryTimestamp:(0,a.gn4)(i)}),chainId:t},expiry:i,throwOnFailedPublish:!0}).catch(e=>d(e)),this.client.events.emit("session_request_sent",{topic:n,request:r,chainId:t,id:s}),e()}),new Promise(async e=>{var t;if(!(null!=(t=o.sessionConfig)&&t.disableDeepLink)){let e=await (0,a.bW6)(this.client.core.storage,rF);(0,a.HhN)({id:s,topic:n,wcDeepLink:e})}e()}),c()]).then(e=>e[2])},this.respond=async e=>{this.isInitialized(),await this.isValidRespond(e);let{topic:t,response:r}=e,{id:n}=r,i=this.client.session.get(t);i.transportType===tM.relay&&await this.confirmOnlineStateOrThrow();let o=this.getAppLinkIfEnabled(i.peer.metadata,i.transportType);eE(r)?await this.sendResult({id:n,topic:t,result:r.result,throwOnFailedPublish:!0,appLink:o}):eS(r)&&await this.sendError({id:n,topic:t,error:r.error,appLink:o}),this.cleanupAfterResponse(e)},this.ping=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow();try{await this.isValidPing(e)}catch(e){throw this.client.logger.error("ping() -> isValidPing() failed"),e}let{topic:t}=e;if(this.client.session.keys.includes(t)){let e=eh(),r=ef().toString(),{done:n,resolve:i,reject:o}=(0,a.H1S)();this.events.once((0,a.E0T)("session_ping",e),({error:e})=>{e?o(e):i()}),await Promise.all([this.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:e,relayRpcId:r}),n()])}else this.client.core.pairing.pairings.keys.includes(t)&&await this.client.core.pairing.ping({topic:t})},this.emit=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidEmit(e);let{topic:t,event:r,chainId:n}=e,i=ef().toString();await this.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:r,chainId:n},throwOnFailedPublish:!0,relayRpcId:i})},this.disconnect=async e=>{this.isInitialized(),await this.confirmOnlineStateOrThrow(),await this.isValidDisconnect(e);let{topic:t}=e;if(this.client.session.keys.includes(t))await this.sendRequest({topic:t,method:"wc_sessionDelete",params:(0,a.D6H)("USER_DISCONNECTED"),throwOnFailedPublish:!0}),await this.deleteSession({topic:t,emitEvent:!1});else if(this.client.core.pairing.pairings.keys.includes(t))await this.client.core.pairing.disconnect({topic:t});else{let{message:e}=(0,a.kCb)("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`);throw Error(e)}},this.find=e=>(this.isInitialized(),this.client.session.getAll().filter(t=>(0,a.Ih8)(t,e))),this.getPendingSessionRequests=()=>this.client.pendingRequest.getAll(),this.authenticate=async(e,t)=>{var r;let n;this.isInitialized(),this.isValidAuthenticate(e);let i=t&&this.client.core.linkModeSupportedApps.includes(t)&&(null==(r=this.client.metadata.redirect)?void 0:r.linkMode),o=i?tM.link_mode:tM.relay;o===tM.relay&&await this.confirmOnlineStateOrThrow();let{chains:s,statement:l="",uri:c,domain:u,nonce:d,type:h,exp:f,nbf:p,methods:g=[],expiry:m}=e,v=[...e.resources||[]],{topic:b,uri:y}=await this.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:o});this.client.logger.info({message:"Generated new pairing",pairing:{topic:b,uri:y}});let w=await this.client.core.crypto.generateKeyPair(),x=(0,a.YmJ)(w);if(await Promise.all([this.client.auth.authKeys.set(rY,{responseTopic:x,publicKey:w}),this.client.auth.pairingTopics.set(x,{topic:x,pairingTopic:b})]),await this.client.core.relayer.subscribe(x,{transportType:o}),this.client.logger.info(`sending request to new pairing topic: ${b}`),g.length>0){let{namespace:e}=(0,a.DQe)(s[0]),t=(0,a.IkP)(e,"request",g);(0,a.hA9)(v)&&(t=(0,a.qJM)(t,v.pop())),v.push(t)}let _=m&&m>rW.wc_sessionAuthenticate.req.ttl?m:rW.wc_sessionAuthenticate.req.ttl,C={authPayload:{type:h??"caip122",chains:s,statement:l,aud:c,domain:u,version:"1",nonce:d,iat:new Date().toISOString(),exp:f,nbf:p,resources:v},requester:{publicKey:w,metadata:this.client.metadata},expiryTimestamp:(0,a.gn4)(_)},A={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:s,methods:[...new Set(["personal_sign",...g])],events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:b,proposer:{publicKey:w,metadata:this.client.metadata},expiryTimestamp:(0,a.gn4)(rW.wc_sessionPropose.req.ttl)},{done:k,resolve:E,reject:S}=(0,a.H1S)(_,"Request expired"),T=async({error:e,session:t})=>{if(this.events.off((0,a.E0T)("session_request",P),I),e)S(e);else if(t){t.self.publicKey=w,await this.client.session.set(t.topic,t),await this.setExpiry(t.topic,t.expiry),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:t.peer.metadata});let e=this.client.session.get(t.topic);await this.deleteProposal(O),E({session:e})}},I=async e=>{var r,n,i;let s;if(await this.deletePendingAuthRequest(P,{message:"fulfilled",code:0}),e.error){let t=(0,a.D6H)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===t.code?void 0:(this.events.off((0,a.E0T)("session_connect"),T),S(e.error.message))}await this.deleteProposal(O),this.events.off((0,a.E0T)("session_connect"),T);let{cacaos:l,responder:c}=e.result,u=[],d=[];for(let e of l){await (0,a.c4l)({cacao:e,projectId:this.client.core.projectId})||(this.client.logger.error(e,"Signature verification failed"),S((0,a.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed")));let{p:t}=e,r=(0,a.hA9)(t.resources),n=[(0,a.DJo)(t.iss)],i=(0,a.NmC)(t.iss);if(r){let e=(0,a.Y31)(r),t=(0,a.ouN)(r);u.push(...e),n.push(...t)}for(let e of n)d.push(`${e}:${i}`)}let h=await this.client.core.crypto.generateSharedKey(w,c.publicKey);u.length>0&&(s={topic:h,acknowledged:!0,self:{publicKey:w,metadata:this.client.metadata},peer:c,controller:c.publicKey,expiry:(0,a.gn4)(rH),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:b,namespaces:(0,a.E12)([...new Set(u)],[...new Set(d)]),transportType:o},await this.client.core.relayer.subscribe(h,{transportType:o}),await this.client.session.set(h,s),b&&await this.client.core.pairing.updateMetadata({topic:b,metadata:c.metadata}),s=this.client.session.get(h)),null!=(r=this.client.metadata.redirect)&&r.linkMode&&null!=(n=c.metadata.redirect)&&n.linkMode&&null!=(i=c.metadata.redirect)&&i.universal&&t&&(this.client.core.addLinkModeSupportedApp(c.metadata.redirect.universal),this.client.session.update(h,{transportType:tM.link_mode})),E({auths:l,session:s})},P=eh(),O=eh();this.events.once((0,a.E0T)("session_connect"),T),this.events.once((0,a.E0T)("session_request",P),I);try{if(i){let e=ep("wc_sessionAuthenticate",C,P);this.client.core.history.set(b,e);let r=await this.client.core.crypto.encode("",e,{type:a.FpL,encoding:a.zl_});n=(0,a.L9d)(t,b,r)}else await Promise.all([this.sendRequest({topic:b,method:"wc_sessionAuthenticate",params:C,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:P}),this.sendRequest({topic:b,method:"wc_sessionPropose",params:A,expiry:rW.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:O})])}catch(e){throw this.events.off((0,a.E0T)("session_connect"),T),this.events.off((0,a.E0T)("session_request",P),I),e}return await this.setProposal(O,r5({id:O},A)),await this.setAuthRequest(P,{request:r6(r5({},C),{verifyContext:{}}),pairingTopic:b,transportType:o}),{uri:n??y,response:k}},this.approveSessionAuthenticate=async e=>{let t;let{id:r,auths:n}=e,i=this.client.core.eventClient.createEvent({properties:{topic:r.toString(),trace:[tG.authenticated_session_approve_started]}});try{this.isInitialized()}catch(e){throw i.setError(tK.no_internet_connection),e}let o=this.getPendingAuthRequest(r);if(!o)throw i.setError(tK.authenticated_session_pending_request_not_found),Error(`Could not find pending auth request with id ${r}`);let s=o.transportType||tM.relay;s===tM.relay&&await this.confirmOnlineStateOrThrow();let l=o.requester.publicKey,c=await this.client.core.crypto.generateKeyPair(),u=(0,a.YmJ)(l),d={type:a.rVF,receiverPublicKey:l,senderPublicKey:c},h=[],f=[];for(let e of n){if(!await (0,a.c4l)({cacao:e,projectId:this.client.core.projectId})){i.setError(tK.invalid_cacao);let e=(0,a.D6H)("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw await this.sendError({id:r,topic:u,error:e,encodeOpts:d}),Error(e.message)}i.addTrace(tG.cacaos_verified);let{p:t}=e,n=(0,a.hA9)(t.resources),o=[(0,a.DJo)(t.iss)],s=(0,a.NmC)(t.iss);if(n){let e=(0,a.Y31)(n),t=(0,a.ouN)(n);h.push(...e),o.push(...t)}for(let e of o)f.push(`${e}:${s}`)}let p=await this.client.core.crypto.generateSharedKey(c,l);if(i.addTrace(tG.create_authenticated_session_topic),h?.length>0){t={topic:p,acknowledged:!0,self:{publicKey:c,metadata:this.client.metadata},peer:{publicKey:l,metadata:o.requester.metadata},controller:l,expiry:(0,a.gn4)(rH),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:o.pairingTopic,namespaces:(0,a.E12)([...new Set(h)],[...new Set(f)]),transportType:s},i.addTrace(tG.subscribing_authenticated_session_topic);try{await this.client.core.relayer.subscribe(p,{transportType:s})}catch(e){throw i.setError(tK.subscribe_authenticated_session_topic_failure),e}i.addTrace(tG.subscribe_authenticated_session_topic_success),await this.client.session.set(p,t),i.addTrace(tG.store_authenticated_session),await this.client.core.pairing.updateMetadata({topic:o.pairingTopic,metadata:o.requester.metadata})}i.addTrace(tG.publishing_authenticated_session_approve);try{await this.sendResult({topic:u,id:r,result:{cacaos:n,responder:{publicKey:c,metadata:this.client.metadata}},encodeOpts:d,throwOnFailedPublish:!0,appLink:this.getAppLinkIfEnabled(o.requester.metadata,s)})}catch(e){throw i.setError(tK.authenticated_session_approve_publish_failure),e}return await this.client.auth.requests.delete(r,{message:"fulfilled",code:0}),await this.client.core.pairing.activate({topic:o.pairingTopic}),this.client.core.eventClient.deleteEvent({eventId:i.eventId}),{session:t}},this.rejectSessionAuthenticate=async e=>{this.isInitialized();let{id:t,reason:r}=e,n=this.getPendingAuthRequest(t);if(!n)throw Error(`Could not find pending auth request with id ${t}`);n.transportType===tM.relay&&await this.confirmOnlineStateOrThrow();let i=n.requester.publicKey,o=await this.client.core.crypto.generateKeyPair(),s=(0,a.YmJ)(i),l={type:a.rVF,receiverPublicKey:i,senderPublicKey:o};await this.sendError({id:t,topic:s,error:r,encodeOpts:l,rpcOpts:rW.wc_sessionAuthenticate.reject,appLink:this.getAppLinkIfEnabled(n.requester.metadata,n.transportType)}),await this.client.auth.requests.delete(t,{message:"rejected",code:0}),await this.client.proposal.delete(t,(0,a.D6H)("USER_DISCONNECTED"))},this.formatAuthMessage=e=>{this.isInitialized();let{request:t,iss:r}=e;return(0,a.wvx)(t,r)},this.processRelayMessageCache=()=>{setTimeout(async()=>{if(0!==this.relayMessageCache.length)for(;this.relayMessageCache.length>0;)try{let e=this.relayMessageCache.shift();e&&await this.onRelayMessage(e)}catch(e){this.client.logger.error(e)}},50)},this.cleanupDuplicatePairings=async e=>{if(e.pairingTopic)try{let t=this.client.core.pairing.pairings.get(e.pairingTopic),r=this.client.core.pairing.pairings.getAll().filter(r=>{var n,i;return(null==(n=r.peerMetadata)?void 0:n.url)&&(null==(i=r.peerMetadata)?void 0:i.url)===e.peer.metadata.url&&r.topic&&r.topic!==t.topic});if(0===r.length)return;this.client.logger.info(`Cleaning up ${r.length} duplicate pairing(s)`),await Promise.all(r.map(e=>this.client.core.pairing.disconnect({topic:e.topic}))),this.client.logger.info("Duplicate pairings clean up finished")}catch(e){this.client.logger.error(e)}},this.deleteSession=async e=>{var t;let{topic:r,expirerHasDeleted:n=!1,emitEvent:i=!0,id:o=0}=e,{self:s}=this.client.session.get(r);await this.client.core.relayer.unsubscribe(r),await this.client.session.delete(r,(0,a.D6H)("USER_DISCONNECTED")),this.addToRecentlyDeleted(r,"session"),this.client.core.crypto.keychain.has(s.publicKey)&&await this.client.core.crypto.deleteKeyPair(s.publicKey),this.client.core.crypto.keychain.has(r)&&await this.client.core.crypto.deleteSymKey(r),n||this.client.core.expirer.del(r),this.client.core.storage.removeItem(rF).catch(e=>this.client.logger.warn(e)),this.getPendingSessionRequests().forEach(e=>{e.topic===r&&this.deletePendingSessionRequest(e.id,(0,a.D6H)("USER_DISCONNECTED"))}),r===(null==(t=this.sessionRequestQueue.queue[0])?void 0:t.topic)&&(this.sessionRequestQueue.state=rZ.idle),i&&this.client.events.emit("session_delete",{id:o,topic:r})},this.deleteProposal=async(e,t)=>{if(t)try{let t=this.client.proposal.get(e),r=this.client.core.eventClient.getEvent({topic:t.pairingTopic});r?.setError(tZ.proposal_expired)}catch{}await Promise.all([this.client.proposal.delete(e,(0,a.D6H)("USER_DISCONNECTED")),t?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"proposal")},this.deletePendingSessionRequest=async(e,t,r=!1)=>{await Promise.all([this.client.pendingRequest.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)]),this.addToRecentlyDeleted(e,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter(t=>t.id!==e),r&&(this.sessionRequestQueue.state=rZ.idle,this.client.events.emit("session_request_expire",{id:e}))},this.deletePendingAuthRequest=async(e,t,r=!1)=>{await Promise.all([this.client.auth.requests.delete(e,t),r?Promise.resolve():this.client.core.expirer.del(e)])},this.setExpiry=async(e,t)=>{this.client.session.keys.includes(e)&&(this.client.core.expirer.set(e,t),await this.client.session.update(e,{expiry:t}))},this.setProposal=async(e,t)=>{this.client.core.expirer.set(e,(0,a.gn4)(rW.wc_sessionPropose.req.ttl)),await this.client.proposal.set(e,t)},this.setAuthRequest=async(e,t)=>{let{request:r,pairingTopic:n,transportType:i=tM.relay}=t;this.client.core.expirer.set(e,r.expiryTimestamp),await this.client.auth.requests.set(e,{authPayload:r.authPayload,requester:r.requester,expiryTimestamp:r.expiryTimestamp,id:e,pairingTopic:n,verifyContext:r.verifyContext,transportType:i})},this.setPendingSessionRequest=async e=>{let{id:t,topic:r,params:n,verifyContext:i}=e,o=n.request.expiryTimestamp||(0,a.gn4)(rW.wc_sessionRequest.req.ttl);this.client.core.expirer.set(t,o),await this.client.pendingRequest.set(t,{id:t,topic:r,params:n,verifyContext:i})},this.sendRequest=async e=>{let t,n;let{topic:i,method:o,params:s,expiry:l,relayRpcId:c,clientRpcId:u,throwOnFailedPublish:d,appLink:h}=e,f=ep(o,s,u),p=!!h;try{let e=p?a.zl_:a.$dT;t=await this.client.core.crypto.encode(i,f,{encoding:e})}catch(e){throw await this.cleanup(),this.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${i} failed`),e}if(rG.includes(o)){let e=(0,a.rjm)(JSON.stringify(f)),r=(0,a.rjm)(t);n=await this.client.core.verify.register({id:r,decryptedId:e})}let g=rW[o].req;if(g.attestation=n,l&&(g.ttl=l),c&&(g.id=c),this.client.core.history.set(i,f),p){let e=(0,a.L9d)(h,i,t);await r.g.Linking.openURL(e,this.client.name)}else{let e=rW[o].req;l&&(e.ttl=l),c&&(e.id=c),d?(e.internal=r6(r5({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(i,t,e)):this.client.core.relayer.publish(i,t,e).catch(e=>this.client.logger.error(e))}return f.id},this.sendResult=async e=>{let t,n;let{id:i,topic:o,result:s,throwOnFailedPublish:l,encodeOpts:c,appLink:u}=e,d=eg(i,s),h=u&&"u">typeof(null==r.g?void 0:r.g.Linking);try{let e=h?a.zl_:a.$dT;t=await this.client.core.crypto.encode(o,d,r6(r5({},c||{}),{encoding:e}))}catch(e){throw await this.cleanup(),this.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${o} failed`),e}try{n=await this.client.core.history.get(o,i)}catch(e){throw this.client.logger.error(`sendResult() -> history.get(${o}, ${i}) failed`),e}if(h){let e=(0,a.L9d)(u,o,t);await r.g.Linking.openURL(e,this.client.name)}else{let e=rW[n.request.method].res;l?(e.internal=r6(r5({},e.internal),{throwOnFailedPublish:!0}),await this.client.core.relayer.publish(o,t,e)):this.client.core.relayer.publish(o,t,e).catch(e=>this.client.logger.error(e))}await this.client.core.history.resolve(d)},this.sendError=async e=>{let t,n;let{id:i,topic:o,error:s,encodeOpts:l,rpcOpts:c,appLink:u}=e,d=em(i,s),h=u&&"u">typeof(null==r.g?void 0:r.g.Linking);try{let e=h?a.zl_:a.$dT;t=await this.client.core.crypto.encode(o,d,r6(r5({},l||{}),{encoding:e}))}catch(e){throw await this.cleanup(),this.client.logger.error(`sendError() -> core.crypto.encode() for topic ${o} failed`),e}try{n=await this.client.core.history.get(o,i)}catch(e){throw this.client.logger.error(`sendError() -> history.get(${o}, ${i}) failed`),e}if(h){let e=(0,a.L9d)(u,o,t);await r.g.Linking.openURL(e,this.client.name)}else{let e=c||rW[n.request.method].res;this.client.core.relayer.publish(o,t,e)}await this.client.core.history.resolve(d)},this.cleanup=async()=>{let e=[],t=[];this.client.session.getAll().forEach(t=>{let r=!1;(0,a.BwD)(t.expiry)&&(r=!0),this.client.core.crypto.keychain.has(t.topic)||(r=!0),r&&e.push(t.topic)}),this.client.proposal.getAll().forEach(e=>{(0,a.BwD)(e.expiryTimestamp)&&t.push(e.id)}),await Promise.all([...e.map(e=>this.deleteSession({topic:e})),...t.map(e=>this.deleteProposal(e))])},this.onRelayEventRequest=async e=>{this.requestQueue.queue.push(e),await this.processRequestsQueue()},this.processRequestsQueue=async()=>{if(this.requestQueue.state===rZ.active){this.client.logger.info("Request queue already active, skipping...");return}for(this.client.logger.info(`Request queue starting with ${this.requestQueue.queue.length} requests`);this.requestQueue.queue.length>0;){this.requestQueue.state=rZ.active;let e=this.requestQueue.queue.shift();if(e)try{await this.processRequest(e)}catch(e){this.client.logger.warn(e)}}this.requestQueue.state=rZ.idle},this.processRequest=async e=>{let{topic:t,payload:r,attestation:n,transportType:i,encryptedId:o}=e,a=r.method;if(!this.shouldIgnorePairingRequest({topic:t,requestMethod:a}))switch(a){case"wc_sessionPropose":return await this.onSessionProposeRequest({topic:t,payload:r,attestation:n,encryptedId:o});case"wc_sessionSettle":return await this.onSessionSettleRequest(t,r);case"wc_sessionUpdate":return await this.onSessionUpdateRequest(t,r);case"wc_sessionExtend":return await this.onSessionExtendRequest(t,r);case"wc_sessionPing":return await this.onSessionPingRequest(t,r);case"wc_sessionDelete":return await this.onSessionDeleteRequest(t,r);case"wc_sessionRequest":return await this.onSessionRequest({topic:t,payload:r,attestation:n,encryptedId:o,transportType:i});case"wc_sessionEvent":return await this.onSessionEventRequest(t,r);case"wc_sessionAuthenticate":return await this.onSessionAuthenticateRequest({topic:t,payload:r,attestation:n,encryptedId:o,transportType:i});default:return this.client.logger.info(`Unsupported request method ${a}`)}},this.onRelayEventResponse=async e=>{let{topic:t,payload:r,transportType:n}=e,i=(await this.client.core.history.get(t,r.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(t,r,n);case"wc_sessionSettle":return this.onSessionSettleResponse(t,r);case"wc_sessionUpdate":return this.onSessionUpdateResponse(t,r);case"wc_sessionExtend":return this.onSessionExtendResponse(t,r);case"wc_sessionPing":return this.onSessionPingResponse(t,r);case"wc_sessionRequest":return this.onSessionRequestResponse(t,r);case"wc_sessionAuthenticate":return this.onSessionAuthenticateResponse(t,r);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onRelayEventUnknownPayload=e=>{let{topic:t}=e,{message:r}=(0,a.kCb)("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`);throw Error(r)},this.shouldIgnorePairingRequest=e=>{let{topic:t,requestMethod:r}=e,n=this.expectedPairingMethodMap.get(t);return!(!n||n.includes(r))&&!!(n.includes("wc_sessionAuthenticate")&&this.client.events.listenerCount("session_authenticate")>0)},this.onSessionProposeRequest=async e=>{let{topic:t,payload:r,attestation:n,encryptedId:i}=e,{params:o,id:s}=r;try{let e=this.client.core.eventClient.getEvent({topic:t});this.isValidConnect(r5({},r.params));let l=o.expiryTimestamp||(0,a.gn4)(rW.wc_sessionPropose.req.ttl),c=r5({id:s,pairingTopic:t,expiryTimestamp:l},o);await this.setProposal(s,c);let u=await this.getVerifyContext({attestationId:n,hash:(0,a.rjm)(JSON.stringify(r)),encryptedId:i,metadata:c.proposer.metadata});0===this.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),e?.setError(tW.proposal_listener_not_found)),e?.addTrace(tH.emit_session_proposal),this.client.events.emit("session_proposal",{id:s,params:c,verifyContext:u})}catch(e){await this.sendError({id:s,topic:t,error:e,rpcOpts:rW.wc_sessionPropose.autoReject}),this.client.logger.error(e)}},this.onSessionProposeResponse=async(e,t,r)=>{let{id:n}=t;if(eE(t)){let{result:i}=t;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let o=this.client.proposal.get(n);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:o});let a=o.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:a});let s=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:s});let l=await this.client.core.crypto.generateSharedKey(a,s);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:l});let c=await this.client.core.relayer.subscribe(l,{transportType:r});this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:c}),await this.client.core.pairing.activate({topic:e})}else if(eS(t)){await this.client.proposal.delete(n,(0,a.D6H)("USER_DISCONNECTED"));let e=(0,a.E0T)("session_connect");if(0===this.events.listenerCount(e))throw Error(`emitting ${e} without any listeners, 954`);this.events.emit((0,a.E0T)("session_connect"),{error:t.error})}},this.onSessionSettleRequest=async(e,t)=>{let{id:r,params:n}=t;try{this.isValidSessionSettleRequest(n);let{relay:r,controller:i,expiry:o,namespaces:s,sessionProperties:l,sessionConfig:c}=t.params,u=r6(r5(r5({topic:e,relay:r,expiry:o,namespaces:s,acknowledged:!0,pairingTopic:"",requiredNamespaces:{},optionalNamespaces:{},controller:i.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:i.publicKey,metadata:i.metadata}},l&&{sessionProperties:l}),c&&{sessionConfig:c}),{transportType:tM.relay}),d=(0,a.E0T)("session_connect");if(0===this.events.listenerCount(d))throw Error(`emitting ${d} without any listeners 997`);this.events.emit((0,a.E0T)("session_connect"),{session:u}),await this.sendResult({id:t.id,topic:e,result:!0,throwOnFailedPublish:!0})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionSettleResponse=async(e,t)=>{let{id:r}=t;eE(t)?(await this.client.session.update(e,{acknowledged:!0}),this.events.emit((0,a.E0T)("session_approve",r),{})):eS(t)&&(await this.client.session.delete(e,(0,a.D6H)("USER_DISCONNECTED")),this.events.emit((0,a.E0T)("session_approve",r),{error:t.error}))},this.onSessionUpdateRequest=async(e,t)=>{let{params:r,id:n}=t;try{let t=`${e}_session_update`,i=a.O6B.get(t);if(i&&this.isRequestOutOfSync(i,n)){this.client.logger.info(`Discarding out of sync request - ${n}`),this.sendError({id:n,topic:e,error:(0,a.D6H)("INVALID_UPDATE_REQUEST")});return}this.isValidUpdate(r5({topic:e},r));try{a.O6B.set(t,n),await this.client.session.update(e,{namespaces:r.namespaces}),await this.sendResult({id:n,topic:e,result:!0,throwOnFailedPublish:!0})}catch(e){throw a.O6B.delete(t),e}this.client.events.emit("session_update",{id:n,topic:e,params:r})}catch(t){await this.sendError({id:n,topic:e,error:t}),this.client.logger.error(t)}},this.isRequestOutOfSync=(e,t)=>parseInt(t.toString().slice(0,-3))<=parseInt(e.toString().slice(0,-3)),this.onSessionUpdateResponse=(e,t)=>{let{id:r}=t,n=(0,a.E0T)("session_update",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eE(t)?this.events.emit((0,a.E0T)("session_update",r),{}):eS(t)&&this.events.emit((0,a.E0T)("session_update",r),{error:t.error})},this.onSessionExtendRequest=async(e,t)=>{let{id:r}=t;try{this.isValidExtend({topic:e}),await this.setExpiry(e,(0,a.gn4)(rH)),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_extend",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionExtendResponse=(e,t)=>{let{id:r}=t,n=(0,a.E0T)("session_extend",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eE(t)?this.events.emit((0,a.E0T)("session_extend",r),{}):eS(t)&&this.events.emit((0,a.E0T)("session_extend",r),{error:t.error})},this.onSessionPingRequest=async(e,t)=>{let{id:r}=t;try{this.isValidPing({topic:e}),await this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.client.events.emit("session_ping",{id:r,topic:e})}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionPingResponse=(e,t)=>{let{id:r}=t,n=(0,a.E0T)("session_ping",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);setTimeout(()=>{eE(t)?this.events.emit((0,a.E0T)("session_ping",r),{}):eS(t)&&this.events.emit((0,a.E0T)("session_ping",r),{error:t.error})},500)},this.onSessionDeleteRequest=async(e,t)=>{let{id:r}=t;try{this.isValidDisconnect({topic:e,reason:t.params}),Promise.all([new Promise(t=>{this.client.core.relayer.once(tP.publish,async()=>{t(await this.deleteSession({topic:e,id:r}))})}),this.sendResult({id:r,topic:e,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:e,error:(0,a.D6H)("USER_DISCONNECTED")})]).catch(e=>this.client.logger.error(e))}catch(e){this.client.logger.error(e)}},this.onSessionRequest=async e=>{var t,r,n;let{topic:i,payload:o,attestation:s,encryptedId:l,transportType:c}=e,{id:u,params:d}=o;try{await this.isValidRequest(r5({topic:i},d));let e=this.client.session.get(i),o=await this.getVerifyContext({attestationId:s,hash:(0,a.rjm)(JSON.stringify(ep("wc_sessionRequest",d,u))),encryptedId:l,metadata:e.peer.metadata,transportType:c}),h={id:u,topic:i,params:d,verifyContext:o};await this.setPendingSessionRequest(h),c===tM.link_mode&&null!=(t=e.peer.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(null==(r=e.peer.metadata.redirect)?void 0:r.universal),null!=(n=this.client.signConfig)&&n.disableRequestQueue?this.emitSessionRequest(h):(this.addSessionRequestToSessionRequestQueue(h),this.processSessionRequestQueue())}catch(e){await this.sendError({id:u,topic:i,error:e}),this.client.logger.error(e)}},this.onSessionRequestResponse=(e,t)=>{let{id:r}=t,n=(0,a.E0T)("session_request",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);eE(t)?this.events.emit((0,a.E0T)("session_request",r),{result:t.result}):eS(t)&&this.events.emit((0,a.E0T)("session_request",r),{error:t.error})},this.onSessionEventRequest=async(e,t)=>{let{id:r,params:n}=t;try{let t=`${e}_session_event_${n.event.name}`,i=a.O6B.get(t);if(i&&this.isRequestOutOfSync(i,r)){this.client.logger.info(`Discarding out of sync request - ${r}`);return}this.isValidEmit(r5({topic:e},n)),this.client.events.emit("session_event",{id:r,topic:e,params:n}),a.O6B.set(t,r)}catch(t){await this.sendError({id:r,topic:e,error:t}),this.client.logger.error(t)}},this.onSessionAuthenticateResponse=(e,t)=>{let{id:r}=t;this.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:e,payload:t}),eE(t)?this.events.emit((0,a.E0T)("session_request",r),{result:t.result}):eS(t)&&this.events.emit((0,a.E0T)("session_request",r),{error:t.error})},this.onSessionAuthenticateRequest=async e=>{var t;let{topic:r,payload:n,attestation:i,encryptedId:o,transportType:s}=e;try{let{requester:e,authPayload:l,expiryTimestamp:c}=n.params,u=await this.getVerifyContext({attestationId:i,hash:(0,a.rjm)(JSON.stringify(n)),encryptedId:o,metadata:e.metadata,transportType:s}),d={requester:e,pairingTopic:r,id:n.id,authPayload:l,verifyContext:u,expiryTimestamp:c};await this.setAuthRequest(n.id,{request:d,pairingTopic:r,transportType:s}),s===tM.link_mode&&null!=(t=e.metadata.redirect)&&t.universal&&this.client.core.addLinkModeSupportedApp(e.metadata.redirect.universal),this.client.events.emit("session_authenticate",{topic:r,params:n.params,id:n.id,verifyContext:u})}catch(l){this.client.logger.error(l);let e=n.params.requester.publicKey,t=await this.client.core.crypto.generateKeyPair(),i=this.getAppLinkIfEnabled(n.params.requester.metadata,s),o={type:a.rVF,receiverPublicKey:e,senderPublicKey:t};await this.sendError({id:n.id,topic:r,error:l,encodeOpts:o,rpcOpts:rW.wc_sessionAuthenticate.autoReject,appLink:i})}},this.addSessionRequestToSessionRequestQueue=e=>{this.sessionRequestQueue.queue.push(e)},this.cleanupAfterResponse=e=>{this.deletePendingSessionRequest(e.response.id,{message:"fulfilled",code:0}),setTimeout(()=>{this.sessionRequestQueue.state=rZ.idle,this.processSessionRequestQueue()},(0,D.toMiliseconds)(this.requestQueueDelay))},this.cleanupPendingSentRequestsForTopic=({topic:e,error:t})=>{let r=this.client.core.history.pending;r.length>0&&r.filter(t=>t.topic===e&&"wc_sessionRequest"===t.request.method).forEach(e=>{let r=e.request.id,n=(0,a.E0T)("session_request",r);if(0===this.events.listenerCount(n))throw Error(`emitting ${n} without any listeners`);this.events.emit((0,a.E0T)("session_request",e.request.id),{error:t})})},this.processSessionRequestQueue=()=>{if(this.sessionRequestQueue.state===rZ.active){this.client.logger.info("session request queue is already active.");return}let e=this.sessionRequestQueue.queue[0];if(!e){this.client.logger.info("session request queue is empty.");return}try{this.sessionRequestQueue.state=rZ.active,this.emitSessionRequest(e)}catch(e){this.client.logger.error(e)}},this.emitSessionRequest=e=>{this.client.events.emit("session_request",e)},this.onPairingCreated=e=>{if(e.methods&&this.expectedPairingMethodMap.set(e.topic,e.methods),e.active)return;let t=this.client.proposal.getAll().find(t=>t.pairingTopic===e.topic);t&&this.onSessionProposeRequest({topic:e.topic,payload:ep("wc_sessionPropose",{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties},t.id)})},this.isValidConnect=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`);throw Error(t)}let{pairingTopic:t,requiredNamespaces:r,optionalNamespaces:n,sessionProperties:i,relays:o}=e;if((0,a.o8e)(t)||await this.isValidPairingTopic(t),!(0,a.PMr)(o,!0)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`connect() relays: ${o}`);throw Error(e)}(0,a.o8e)(r)||0===(0,a.L5o)(r)||this.validateNamespaces(r,"requiredNamespaces"),(0,a.o8e)(n)||0===(0,a.L5o)(n)||this.validateNamespaces(n,"optionalNamespaces"),(0,a.o8e)(i)||this.validateSessionProps(i,"sessionProperties")},this.validateNamespaces=(e,t)=>{let r=(0,a.naP)(e,"connect()",t);if(r)throw Error(r.message)},this.isValidApprove=async e=>{if(!(0,a.EJd)(e))throw Error((0,a.kCb)("MISSING_OR_INVALID",`approve() params: ${e}`).message);let{id:t,namespaces:r,relayProtocol:n,sessionProperties:i}=e;this.checkRecentlyDeleted(t),await this.isValidProposalId(t);let o=this.client.proposal.get(t),s=(0,a.ing)(r,"approve()");if(s)throw Error(s.message);let l=(0,a.rFo)(o.requiredNamespaces,r,"approve()");if(l)throw Error(l.message);if(!(0,a.M_r)(n,!0)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`);throw Error(e)}(0,a.o8e)(i)||this.validateSessionProps(i,"sessionProperties")},this.isValidReject=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`reject() params: ${e}`);throw Error(t)}let{id:t,reason:r}=e;if(this.checkRecentlyDeleted(t),await this.isValidProposalId(t),!(0,a.H4H)(r)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidSessionSettleRequest=e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`);throw Error(t)}let{relay:t,controller:r,namespaces:n,expiry:i}=e;if(!(0,a.Z26)(t)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw Error(e)}let o=(0,a.DdM)(r,"onSessionSettleRequest()");if(o)throw Error(o.message);let s=(0,a.ing)(n,"onSessionSettleRequest()");if(s)throw Error(s.message);if((0,a.BwD)(i)){let{message:e}=(0,a.kCb)("EXPIRED","onSessionSettleRequest()");throw Error(e)}},this.isValidUpdate=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`update() params: ${e}`);throw Error(t)}let{topic:t,namespaces:r}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let n=this.client.session.get(t),i=(0,a.ing)(r,"update()");if(i)throw Error(i.message);let o=(0,a.rFo)(n.requiredNamespaces,r,"update()");if(o)throw Error(o.message)},this.isValidExtend=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`extend() params: ${e}`);throw Error(t)}let{topic:t}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t)},this.isValidRequest=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`request() params: ${e}`);throw Error(t)}let{topic:t,request:r,chainId:n,expiry:i}=e;this.checkRecentlyDeleted(t),await this.isValidSessionTopic(t);let{namespaces:o}=this.client.session.get(t);if(!(0,a.p8o)(o,n)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`request() chainId: ${n}`);throw Error(e)}if(!(0,a.hHR)(r)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`request() ${JSON.stringify(r)}`);throw Error(e)}if(!(0,a.alS)(o,n,r.method)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`request() method: ${r.method}`);throw Error(e)}if(i&&!(0,a.ONw)(i,rV)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`request() expiry: ${i}. Expiry must be a number (in seconds) between ${rV.min} and ${rV.max}`);throw Error(e)}},this.isValidRespond=async e=>{var t;if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`respond() params: ${e}`);throw Error(t)}let{topic:r,response:n}=e;try{await this.isValidSessionTopic(r)}catch(r){throw null!=(t=e?.response)&&t.id&&this.cleanupAfterResponse(e),r}if(!(0,a.JTI)(n)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(n)}`);throw Error(e)}},this.isValidPing=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`ping() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidEmit=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`emit() params: ${e}`);throw Error(t)}let{topic:t,event:r,chainId:n}=e;await this.isValidSessionTopic(t);let{namespaces:i}=this.client.session.get(t);if(!(0,a.p8o)(i,n)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`emit() chainId: ${n}`);throw Error(e)}if(!(0,a.nfW)(r)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}if(!(0,a.B95)(i,n,r.name)){let{message:e}=(0,a.kCb)("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(r)}`);throw Error(e)}},this.isValidDisconnect=async e=>{if(!(0,a.EJd)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`disconnect() params: ${e}`);throw Error(t)}let{topic:t}=e;await this.isValidSessionOrPairingTopic(t)},this.isValidAuthenticate=e=>{let{chains:t,uri:r,domain:n,nonce:i}=e;if(!Array.isArray(t)||0===t.length)throw Error("chains is required and must be a non-empty array");if(!(0,a.M_r)(r,!1))throw Error("uri is required parameter");if(!(0,a.M_r)(n,!1))throw Error("domain is required parameter");if(!(0,a.M_r)(i,!1))throw Error("nonce is required parameter");if([...new Set(t.map(e=>(0,a.DQe)(e).namespace))].length>1)throw Error("Multi-namespace requests are not supported. Please request single namespace only.");let{namespace:o}=(0,a.DQe)(t[0]);if("eip155"!==o)throw Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},this.getVerifyContext=async e=>{let{attestationId:t,hash:r,encryptedId:n,metadata:i,transportType:o}=e,a={verified:{verifyUrl:i.verifyUrl||tz,validation:"UNKNOWN",origin:i.url||""}};try{if(o===tM.link_mode){let e=this.getAppLinkIfEnabled(i,o);return a.verified.validation=e&&new URL(e).origin===new URL(i.url).origin?"VALID":"INVALID",a}let e=await this.client.core.verify.resolve({attestationId:t,hash:r,encryptedId:n,verifyUrl:i.verifyUrl});e&&(a.verified.origin=e.origin,a.verified.isScam=e.isScam,a.verified.validation=e.origin===new URL(i.url).origin?"VALID":"INVALID")}catch(e){this.client.logger.warn(e)}return this.client.logger.debug(`Verify context: ${JSON.stringify(a)}`),a},this.validateSessionProps=(e,t)=>{Object.values(e).forEach(e=>{if(!(0,a.M_r)(e,!1)){let{message:r}=(0,a.kCb)("MISSING_OR_INVALID",`${t} must be in Record<string, string> format. Received: ${JSON.stringify(e)}`);throw Error(r)}})},this.getPendingAuthRequest=e=>{let t=this.client.auth.requests.get(e);return"object"==typeof t?t:void 0},this.addToRecentlyDeleted=(e,t)=>{if(this.recentlyDeletedMap.set(e,t),this.recentlyDeletedMap.size>=this.recentlyDeletedLimit){let e=0,t=this.recentlyDeletedLimit/2;for(let r of this.recentlyDeletedMap.keys()){if(e++>=t)break;this.recentlyDeletedMap.delete(r)}}},this.checkRecentlyDeleted=e=>{let t=this.recentlyDeletedMap.get(e);if(t){let{message:r}=(0,a.kCb)("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`);throw Error(r)}},this.isLinkModeEnabled=(e,t)=>{var n,i,o,a,s,l,c,u,d;return!!e&&t===tM.link_mode&&(null==(i=null==(n=this.client.metadata)?void 0:n.redirect)?void 0:i.linkMode)===!0&&(null==(a=null==(o=this.client.metadata)?void 0:o.redirect)?void 0:a.universal)!==void 0&&(null==(l=null==(s=this.client.metadata)?void 0:s.redirect)?void 0:l.universal)!==""&&(null==(c=e?.redirect)?void 0:c.universal)!==void 0&&(null==(u=e?.redirect)?void 0:u.universal)!==""&&(null==(d=e?.redirect)?void 0:d.linkMode)===!0&&this.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&"u">typeof(null==r.g?void 0:r.g.Linking)},this.getAppLinkIfEnabled=(e,t)=>{var r;return this.isLinkModeEnabled(e,t)?null==(r=e?.redirect)?void 0:r.universal:void 0},this.handleLinkModeMessage=({url:e})=>{if(!e||!e.includes("wc_ev")||!e.includes("topic"))return;let t=(0,a.waw)(e,"topic")||"",r=decodeURIComponent((0,a.waw)(e,"wc_ev")||""),n=this.client.session.keys.includes(t);n&&this.client.session.update(t,{transportType:tM.link_mode}),this.client.core.dispatchEnvelope({topic:t,message:r,sessionExists:n})},this.registerLinkModeListeners=async()=>{var e;if("u">typeof rL&&rL.env.IS_VITEST||(0,a.b$m)()&&null!=(e=this.client.metadata.redirect)&&e.linkMode){let e=null==r.g?void 0:r.g.Linking;if("u">typeof e){e.addEventListener("url",this.handleLinkModeMessage,this.client.name);let t=await e.getInitialURL();t&&setTimeout(()=>{this.handleLinkModeMessage({url:t})},50)}}}}isInitialized(){if(!this.initialized){let{message:e}=(0,a.kCb)("NOT_INITIALIZED",this.name);throw Error(e)}}async confirmOnlineStateOrThrow(){await this.client.core.relayer.confirmOnlineStateOrThrow()}registerRelayerEvents(){this.client.core.relayer.on(tP.message,e=>{!this.initialized||this.relayMessageCache.length>0?this.relayMessageCache.push(e):this.onRelayMessage(e)})}async onRelayMessage(e){let{topic:t,message:r,attestation:n,transportType:i}=e,{publicKey:o}=this.client.auth.authKeys.keys.includes(rY)?this.client.auth.authKeys.get(rY):{responseTopic:void 0,publicKey:void 0},s=await this.client.core.crypto.decode(t,r,{receiverPublicKey:o,encoding:i===tM.link_mode?a.zl_:a.$dT});try{eA(s)?(this.client.core.history.set(t,s),this.onRelayEventRequest({topic:t,payload:s,attestation:n,transportType:i,encryptedId:(0,a.rjm)(r)})):ek(s)?(await this.client.core.history.resolve(s),await this.onRelayEventResponse({topic:t,payload:s,transportType:i}),this.client.core.history.delete(t,s.id)):this.onRelayEventUnknownPayload({topic:t,payload:s,transportType:i})}catch(e){this.client.logger.error(e)}}registerExpirerEvents(){this.client.core.expirer.on(tU.expired,async e=>{let{topic:t,id:r}=(0,a.iPz)(e.target);return r&&this.client.pendingRequest.keys.includes(r)?await this.deletePendingSessionRequest(r,(0,a.kCb)("EXPIRED"),!0):r&&this.client.auth.requests.keys.includes(r)?await this.deletePendingAuthRequest(r,(0,a.kCb)("EXPIRED"),!0):void(t?this.client.session.keys.includes(t)&&(await this.deleteSession({topic:t,expirerHasDeleted:!0}),this.client.events.emit("session_expire",{topic:t})):r&&(await this.deleteProposal(r,!0),this.client.events.emit("proposal_expire",{id:r})))})}registerPairingEvents(){this.client.core.pairing.events.on(tL.create,e=>this.onPairingCreated(e)),this.client.core.pairing.events.on(tL.delete,e=>{this.addToRecentlyDeleted(e.topic,"pairing")})}isValidPairingTopic(e){if(!(0,a.M_r)(e,!1)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw Error(t)}if((0,a.BwD)(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=(0,a.kCb)("EXPIRED",`pairing topic: ${e}`);throw Error(t)}}async isValidSessionTopic(e){if(!(0,a.M_r)(e,!1)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw Error(t)}if((0,a.BwD)(this.client.session.get(e).expiry)){await this.deleteSession({topic:e});let{message:t}=(0,a.kCb)("EXPIRED",`session topic: ${e}`);throw Error(t)}if(!this.client.core.crypto.keychain.has(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`);throw await this.deleteSession({topic:e}),Error(t)}}async isValidSessionOrPairingTopic(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if((0,a.M_r)(e,!1)){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw Error(t)}else{let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw Error(t)}}async isValidProposalId(e){if(!(0,a.Q01)(e)){let{message:t}=(0,a.kCb)("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=(0,a.kCb)("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw Error(t)}if((0,a.BwD)(this.client.proposal.get(e).expiryTimestamp)){await this.deleteProposal(e);let{message:t}=(0,a.kCb)("EXPIRED",`proposal id: ${e}`);throw Error(t)}}}class r8 extends rp{constructor(e,t){super(e,t,"proposal",rU),this.core=e,this.logger=t}}class r9 extends rp{constructor(e,t){super(e,t,"session",rU),this.core=e,this.logger=t}}class r7 extends rp{constructor(e,t){super(e,t,"request",rU,e=>e.id),this.core=e,this.logger=t}}class ne extends rp{constructor(e,t){super(e,t,"authKeys",rK,()=>rY),this.core=e,this.logger=t}}class nt extends rp{constructor(e,t){super(e,t,"pairingTopics",rK),this.core=e,this.logger=t}}class nr extends rp{constructor(e,t){super(e,t,"requests",rK,e=>e.id),this.core=e,this.logger=t}}class nn{constructor(e,t){this.core=e,this.logger=t,this.authKeys=new ne(this.core,this.logger),this.pairingTopics=new nt(this.core,this.logger),this.requests=new nr(this.core,this.logger)}async init(){await this.authKeys.init(),await this.pairingTopics.init(),await this.requests.init()}}class ni extends ee{constructor(e){super(e),this.protocol="wc",this.version=2,this.name=rz.name,this.events=new i.EventEmitter,this.on=(e,t)=>this.events.on(e,t),this.once=(e,t)=>this.events.once(e,t),this.off=(e,t)=>this.events.off(e,t),this.removeListener=(e,t)=>this.events.removeListener(e,t),this.removeAllListeners=e=>this.events.removeAllListeners(e),this.connect=async e=>{try{return await this.engine.connect(e)}catch(e){throw this.logger.error(e.message),e}},this.pair=async e=>{try{return await this.engine.pair(e)}catch(e){throw this.logger.error(e.message),e}},this.approve=async e=>{try{return await this.engine.approve(e)}catch(e){throw this.logger.error(e.message),e}},this.reject=async e=>{try{return await this.engine.reject(e)}catch(e){throw this.logger.error(e.message),e}},this.update=async e=>{try{return await this.engine.update(e)}catch(e){throw this.logger.error(e.message),e}},this.extend=async e=>{try{return await this.engine.extend(e)}catch(e){throw this.logger.error(e.message),e}},this.request=async e=>{try{return await this.engine.request(e)}catch(e){throw this.logger.error(e.message),e}},this.respond=async e=>{try{return await this.engine.respond(e)}catch(e){throw this.logger.error(e.message),e}},this.ping=async e=>{try{return await this.engine.ping(e)}catch(e){throw this.logger.error(e.message),e}},this.emit=async e=>{try{return await this.engine.emit(e)}catch(e){throw this.logger.error(e.message),e}},this.disconnect=async e=>{try{return await this.engine.disconnect(e)}catch(e){throw this.logger.error(e.message),e}},this.find=e=>{try{return this.engine.find(e)}catch(e){throw this.logger.error(e.message),e}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(e){throw this.logger.error(e.message),e}},this.authenticate=async(e,t)=>{try{return await this.engine.authenticate(e,t)}catch(e){throw this.logger.error(e.message),e}},this.formatAuthMessage=e=>{try{return this.engine.formatAuthMessage(e)}catch(e){throw this.logger.error(e.message),e}},this.approveSessionAuthenticate=async e=>{try{return await this.engine.approveSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.rejectSessionAuthenticate=async e=>{try{return await this.engine.rejectSessionAuthenticate(e)}catch(e){throw this.logger.error(e.message),e}},this.name=e?.name||rz.name,this.metadata=e?.metadata||(0,a.DaH)(),this.signConfig=e?.signConfig;let t="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,F.gw)((0,F.jI)({level:e?.logger||rz.logger}));this.core=e?.core||new rB(e),this.logger=(0,F.Ep)(t,this.name),this.session=new r9(this.core,this.logger),this.proposal=new r8(this.core,this.logger),this.pendingRequest=new r7(this.core,this.logger),this.engine=new r4(this),this.auth=new nn(this.core,this.logger)}static async init(e){let t=new ni(e);return await t.initialize(),t}get context(){return(0,F.Fd)(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.auth.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success"),this.engine.processRelayMessageCache()}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}}var no=r(54098),na=r.n(no);function ns(e){return"string"==typeof e?e:JSON.stringify(e)}var nl=Object.defineProperty,nc=Object.defineProperties,nu=Object.getOwnPropertyDescriptors,nd=Object.getOwnPropertySymbols,nh=Object.prototype.hasOwnProperty,nf=Object.prototype.propertyIsEnumerable,np=(e,t,r)=>t in e?nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ng=(e,t)=>{for(var r in t||(t={}))nh.call(t,r)&&np(e,r,t[r]);if(nd)for(var r of nd(t))nf.call(t,r)&&np(e,r,t[r]);return e},nm=(e,t)=>nc(e,nu(t));let nv={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};class nb{constructor(e,t=!1){if(this.url=e,this.disableProviderPing=t,this.events=new i.EventEmitter,this.isAvailable=!1,this.registering=!1,!ex(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e,this.disableProviderPing=t}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw Error("Connection already closed");this.onClose()}async send(e){this.isAvailable||await this.register();try{let t=ns(e),r=await (await na()(this.url,nm(ng({},nv),{body:t}))).json();this.onPayload({data:r})}catch(t){this.onError(e.id,t)}}async register(e=this.url){if(!ex(e))throw Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let e=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=e||this.events.listenerCount("open")>=e)&&this.events.setMaxListeners(e+1),new Promise((e,t)=>{this.events.once("register_error",e=>{this.resetMaxListeners(),t(e)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return t(Error("HTTP connection is missing or invalid"));e()})})}this.url=e,this.registering=!0;try{if(!this.disableProviderPing){let t=ns({id:1,jsonrpc:"2.0",method:"test",params:[]});await na()(e,nm(ng({},nv),{body:t}))}this.onOpen()}catch(t){let e=this.parseError(t);throw this.events.emit("register_error",e),this.onClose(),e}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t="string"==typeof e.data?function(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let r=this.parseError(t),n=em(e,r.message||r.toString());this.events.emit("payload",n)}parseError(e,t=this.url){return eu(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}let ny="error",nw="wc@2:universal_provider:",nx="generic",n_="default_chain_changed";var nC="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},nA={exports:{}};!function(e,t){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=1/0,s=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",u="[object Array]",d="[object Boolean]",h="[object Date]",f="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",v="[object Number]",b="[object Object]",y="[object Promise]",w="[object RegExp]",x="[object Set]",_="[object String]",C="[object Symbol]",A="[object WeakMap]",k="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",T="[object Float64Array]",I="[object Int8Array]",P="[object Int16Array]",O="[object Int32Array]",R="[object Uint8Array]",M="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",D=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,L=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,z=RegExp($.source),F=RegExp(U.source),q=/<%-([\s\S]+?)%>/g,H=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(K.source),Q=/^\s+/,J=/\s/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ee=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /,er=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,en=/[()=,{}\[\]\/\s]/,ei=/\\(\\)?/g,eo=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ea=/\w*$/,es=/^[-+]0x[0-9a-f]+$/i,el=/^0b[01]+$/i,ec=/^\[object .+?Constructor\]$/,eu=/^0o[0-7]+$/i,ed=/^(?:0|[1-9]\d*)$/,eh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ef=/($^)/,ep=/['\n\r\u2028\u2029\\]/g,eg="\ud800-\udfff",em="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ev="\\u2700-\\u27bf",eb="a-z\\xdf-\\xf6\\xf8-\\xff",ey="A-Z\\xc0-\\xd6\\xd8-\\xde",ew="\\ufe0e\\ufe0f",ex="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e_="['’]",eC="["+ex+"]",eA="["+em+"]",ek="["+eb+"]",eE="[^"+eg+ex+"\\d+"+ev+eb+ey+"]",eS="\ud83c[\udffb-\udfff]",eT="[^"+eg+"]",eI="(?:\ud83c[\udde6-\uddff]){2}",eP="[\ud800-\udbff][\udc00-\udfff]",eO="["+ey+"]",eR="\\u200d",eM="(?:"+ek+"|"+eE+")",eN="(?:"+e_+"(?:d|ll|m|re|s|t|ve))?",ej="(?:"+e_+"(?:D|LL|M|RE|S|T|VE))?",eD="(?:"+eA+"|"+eS+")?",eB="["+ew+"]?",eL="(?:"+eR+"(?:"+[eT,eI,eP].join("|")+")"+eB+eD+")*",e$=eB+eD+eL,eU="(?:"+["["+ev+"]",eI,eP].join("|")+")"+e$,ez="(?:"+[eT+eA+"?",eA,eI,eP,"["+eg+"]"].join("|")+")",eF=RegExp(e_,"g"),eq=RegExp(eA,"g"),eH=RegExp(eS+"(?="+eS+")|"+ez+e$,"g"),eW=RegExp([eO+"?"+ek+"+"+eN+"(?="+[eC,eO,"$"].join("|")+")","(?:"+eO+"|"+eE+")+"+ej+"(?="+[eC,eO+eM,"$"].join("|")+")",eO+"?"+eM+"+"+eN,eO+"+"+ej,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eU].join("|"),"g"),eV=RegExp("["+eR+eg+em+ew+"]"),eZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eG=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eK=-1,eY={};eY[S]=eY[T]=eY[I]=eY[P]=eY[O]=eY[R]=eY[M]=eY[N]=eY[j]=!0,eY[c]=eY[u]=eY[k]=eY[d]=eY[E]=eY[h]=eY[f]=eY[p]=eY[m]=eY[v]=eY[b]=eY[w]=eY[x]=eY[_]=eY[A]=!1;var eQ={};eQ[c]=eQ[u]=eQ[k]=eQ[E]=eQ[d]=eQ[h]=eQ[S]=eQ[T]=eQ[I]=eQ[P]=eQ[O]=eQ[m]=eQ[v]=eQ[b]=eQ[w]=eQ[x]=eQ[_]=eQ[C]=eQ[R]=eQ[M]=eQ[N]=eQ[j]=!0,eQ[f]=eQ[p]=eQ[A]=!1;var eJ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},eX=parseFloat,e0=parseInt,e1="object"==typeof nC&&nC&&nC.Object===Object&&nC,e2="object"==typeof self&&self&&self.Object===Object&&self,e3=e1||e2||Function("return this")(),e5=t&&!t.nodeType&&t,e6=e5&&e&&!e.nodeType&&e,e4=e6&&e6.exports===e5,e8=e4&&e1.process,e9=function(){try{return e6&&e6.require&&e6.require("util").types||e8&&e8.binding&&e8.binding("util")}catch{}}(),e7=e9&&e9.isArrayBuffer,te=e9&&e9.isDate,tt=e9&&e9.isMap,tr=e9&&e9.isRegExp,tn=e9&&e9.isSet,ti=e9&&e9.isTypedArray;function to(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ta(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function ts(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function tl(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function tc(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function tu(e,t){return!!(null==e?0:e.length)&&tw(e,t,0)>-1}function td(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function tf(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tp(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function tg(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tm(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var tv=tA("length");function tb(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function ty(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}function tw(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):ty(e,t_,r)}function tx(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return -1}function t_(e){return e!=e}function tC(e,t){var r=null==e?0:e.length;return r?tS(e,t)/r:s}function tA(e){return function(t){return null==t?r:t[e]}}function tk(e){return function(t){return null==e?r:e[t]}}function tE(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function tS(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function tT(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tI(e){return e&&e.slice(0,tW(e)+1).replace(Q,"")}function tP(e){return function(t){return e(t)}}function tO(e,t){return th(t,function(t){return e[t]})}function tR(e,t){return e.has(t)}function tM(e,t){for(var r=-1,n=e.length;++r<n&&tw(t,e[r],0)>-1;);return r}function tN(e,t){for(var r=e.length;r--&&tw(t,e[r],0)>-1;);return r}var tj=tk({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"}),tD=tk({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function tB(e){return"\\"+eJ[e]}function tL(e){return eV.test(e)}function t$(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tU(e,t){return function(r){return e(t(r))}}function tz(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r];(s===t||s===o)&&(e[r]=o,a[i++]=r)}return a}function tF(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tq(e){return tL(e)?function(e){for(var t=eH.lastIndex=0;eH.test(e);)++t;return t}(e):tv(e)}function tH(e){return tL(e)?e.match(eH)||[]:e.split("")}function tW(e){for(var t=e.length;t--&&J.test(e.charAt(t)););return t}var tV=tk({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),tZ=function e(t){var J,eg,em,ev,eb=(t=null==t?e3:tZ.defaults(e3.Object(),t,tZ.pick(e3,eG))).Array,ey=t.Date,ew=t.Error,ex=t.Function,e_=t.Math,eC=t.Object,eA=t.RegExp,ek=t.String,eE=t.TypeError,eS=eb.prototype,eT=ex.prototype,eI=eC.prototype,eP=t["__core-js_shared__"],eO=eT.toString,eR=eI.hasOwnProperty,eM=0,eN=(J=/[^.]+$/.exec(eP&&eP.keys&&eP.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",ej=eI.toString,eD=eO.call(eC),eB=e3._,eL=eA("^"+eO.call(eR).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),e$=e4?t.Buffer:r,eU=t.Symbol,ez=t.Uint8Array,eH=e$?e$.allocUnsafe:r,eV=tU(eC.getPrototypeOf,eC),eJ=eC.create,e1=eI.propertyIsEnumerable,e2=eS.splice,e5=eU?eU.isConcatSpreadable:r,e6=eU?eU.iterator:r,e8=eU?eU.toStringTag:r,e9=function(){try{var e=ip(eC,"defineProperty");return e({},"",{}),e}catch{}}(),tv=t.clearTimeout!==e3.clearTimeout&&t.clearTimeout,tk=ey&&ey.now!==e3.Date.now&&ey.now,tG=t.setTimeout!==e3.setTimeout&&t.setTimeout,tK=e_.ceil,tY=e_.floor,tQ=eC.getOwnPropertySymbols,tJ=e$?e$.isBuffer:r,tX=t.isFinite,t0=eS.join,t1=tU(eC.keys,eC),t2=e_.max,t3=e_.min,t5=ey.now,t6=t.parseInt,t4=e_.random,t8=eS.reverse,t9=ip(t,"DataView"),t7=ip(t,"Map"),re=ip(t,"Promise"),rt=ip(t,"Set"),rr=ip(t,"WeakMap"),rn=ip(eC,"create"),ri=rr&&new rr,ro={},ra=i$(t9),rs=i$(t7),rl=i$(re),rc=i$(rt),ru=i$(rr),rd=eU?eU.prototype:r,rh=rd?rd.valueOf:r,rf=rd?rd.toString:r;function rp(e){if(oV(e)&&!oj(e)&&!(e instanceof rb)){if(e instanceof rv)return e;if(eR.call(e,"__wrapped__"))return iU(e)}return new rv(e)}var rg=function(){function e(){}return function(t){if(!oW(t))return{};if(eJ)return eJ(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rm(){}function rv(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function rb(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function ry(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rx(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function r_(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rx;++t<r;)this.add(e[t])}function rC(e){var t=this.__data__=new rw(e);this.size=t.size}function rA(e,t){var r=oj(e),n=!r&&oN(e),i=!r&&!n&&o$(e),o=!r&&!n&&!i&&o0(e),a=r||n||i||o,s=a?tT(e.length,ek):[],l=s.length;for(var c in e)(t||eR.call(e,c))&&!(a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ix(c,l)))&&s.push(c);return s}function rk(e){var t=e.length;return t?e[nc(0,t-1)]:r}function rE(e,t,n){(n===r||oO(e[t],n))&&(n!==r||t in e)||rO(e,t,n)}function rS(e,t,n){var i=e[t];eR.call(e,t)&&oO(i,n)&&(n!==r||t in e)||rO(e,t,n)}function rT(e,t){for(var r=e.length;r--;)if(oO(e[r][0],t))return r;return -1}function rI(e,t,r,n){return rL(e,function(e,i,o){t(n,e,r(e),o)}),n}function rP(e,t){return e&&nz(t,ah(t),e)}function rO(e,t,r){"__proto__"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rR(e,t){for(var n=-1,i=t.length,o=eb(i),a=null==e;++n<i;)o[n]=a?r:as(e,t[n]);return o}function rM(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rN(e,t,n,i,o,a){var s,l=1&t,u=2&t,f=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!oW(e))return e;var y=oj(e);if(y){if(A=e.length,D=new e.constructor(A),A&&"string"==typeof e[0]&&eR.call(e,"index")&&(D.index=e.index,D.input=e.input),s=D,!l)return nU(e,s)}else{var A,D,B,L,$,U=iv(e),z=U==p||U==g;if(o$(e))return nN(e,l);if(U==b||U==c||z&&!o){if(s=u||z?{}:iy(e),!l)return u?(B=($=s)&&nz(e,af(e),$),nz(e,im(e),B)):(L=rP(s,e),nz(e,ig(e),L))}else{if(!eQ[U])return o?e:{};s=function(e,t,r){var n,i,o=e.constructor;switch(t){case k:return nj(e);case d:case h:return new o(+e);case E:return n=r?nj(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case S:case T:case I:case P:case O:case R:case M:case N:case j:return nD(e,r);case m:return new o;case v:case _:return new o(e);case w:return(i=new e.constructor(e.source,ea.exec(e))).lastIndex=e.lastIndex,i;case x:return new o;case C:return rh?eC(rh.call(e)):{}}}(e,U,l)}}a||(a=new rC);var F=a.get(e);if(F)return F;a.set(e,s),oQ(e)?e.forEach(function(r){s.add(rN(r,t,n,r,e,a))}):oZ(e)&&e.forEach(function(r,i){s.set(i,rN(r,t,n,i,e,a))});var q=f?u?ia:io:u?af:ah,H=y?r:q(e);return ts(H||e,function(r,i){H&&(r=e[i=r]),rS(s,i,rN(r,t,n,i,e,a))}),s}function rj(e,t,n){var i=n.length;if(null==e)return!i;for(e=eC(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function rD(e,t,i){if("function"!=typeof e)throw new eE(n);return iR(function(){e.apply(r,i)},t)}function rB(e,t,r,n){var i=-1,o=tu,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=th(t,tP(r))),n?(o=td,a=!1):t.length>=200&&(o=tR,a=!1,t=new r_(t));e:for(;++i<s;){var u=e[i],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else o(t,d,n)||l.push(u)}return l}rp.templateSettings={escape:q,evaluate:H,interpolate:W,variable:"",imports:{_:rp}},rp.prototype=rm.prototype,rp.prototype.constructor=rp,rv.prototype=rg(rm.prototype),rv.prototype.constructor=rv,rb.prototype=rg(rm.prototype),rb.prototype.constructor=rb,ry.prototype.clear=function(){this.__data__=rn?rn(null):{},this.size=0},ry.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ry.prototype.get=function(e){var t=this.__data__;if(rn){var n=t[e];return n===i?r:n}return eR.call(t,e)?t[e]:r},ry.prototype.has=function(e){var t=this.__data__;return rn?t[e]!==r:eR.call(t,e)},ry.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rn&&t===r?i:t,this},rw.prototype.clear=function(){this.__data__=[],this.size=0},rw.prototype.delete=function(e){var t=this.__data__,r=rT(t,e);return!(r<0)&&(r==t.length-1?t.pop():e2.call(t,r,1),--this.size,!0)},rw.prototype.get=function(e){var t=this.__data__,n=rT(t,e);return n<0?r:t[n][1]},rw.prototype.has=function(e){return rT(this.__data__,e)>-1},rw.prototype.set=function(e,t){var r=this.__data__,n=rT(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},rx.prototype.clear=function(){this.size=0,this.__data__={hash:new ry,map:new(t7||rw),string:new ry}},rx.prototype.delete=function(e){var t=id(this,e).delete(e);return this.size-=t?1:0,t},rx.prototype.get=function(e){return id(this,e).get(e)},rx.prototype.has=function(e){return id(this,e).has(e)},rx.prototype.set=function(e,t){var r=id(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},r_.prototype.add=r_.prototype.push=function(e){return this.__data__.set(e,i),this},r_.prototype.has=function(e){return this.__data__.has(e)},rC.prototype.clear=function(){this.__data__=new rw,this.size=0},rC.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rC.prototype.get=function(e){return this.__data__.get(e)},rC.prototype.has=function(e){return this.__data__.has(e)},rC.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rw){var n=r.__data__;if(!t7||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rx(n)}return r.set(e,t),this.size=r.size,this};var rL=nH(rV),r$=nH(rZ,!0);function rU(e,t){var r=!0;return rL(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rz(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===r?s==s&&!oX(s):n(s,l)))var l=s,c=a}return c}function rF(e,t){var r=[];return rL(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rq(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=iw),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?rq(s,t-1,r,n,i):tf(i,s):n||(i[i.length]=s)}return i}var rH=nW(),rW=nW(!0);function rV(e,t){return e&&rH(e,t,ah)}function rZ(e,t){return e&&rW(e,t,ah)}function rG(e,t){return tc(t,function(t){return oF(e[t])})}function rK(e,t){t=nO(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[iL(t[n++])];return n&&n==i?e:r}function rY(e,t,r){var n=t(e);return oj(e)?n:tf(n,r(e))}function rQ(e){return null==e?e===r?"[object Undefined]":"[object Null]":e8&&e8 in eC(e)?function(e){var t=eR.call(e,e8),n=e[e8];try{e[e8]=r;var i=!0}catch{}var o=ej.call(e);return i&&(t?e[e8]=n:delete e[e8]),o}(e):ej.call(e)}function rJ(e,t){return e>t}function rX(e,t){return null!=e&&eR.call(e,t)}function r0(e,t){return null!=e&&t in eC(e)}function r1(e,t,n){for(var i=n?td:tu,o=e[0].length,a=e.length,s=a,l=eb(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=th(d,tP(t))),c=t3(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new r_(s&&d):r}d=e[0];var h=-1,f=l[0];e:for(;++h<o&&u.length<c;){var p=d[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(f?tR(f,g):i(u,g,n))){for(s=a;--s;){var m=l[s];if(!(m?tR(m,g):i(e[s],g,n)))continue e}f&&f.push(g),u.push(p)}}return u}function r2(e,t,n){t=nO(t,e);var i=null==(e=iI(e,t))?e:e[iL(iQ(t))];return null==i?r:to(i,e,n)}function r3(e){return oV(e)&&rQ(e)==c}function r5(e,t,n,i,o){return e===t||(null!=e&&null!=t&&(oV(e)||oV(t))?function(e,t,n,i,o,a){var s=oj(e),l=oj(t),p=s?u:iv(e),g=l?u:iv(t);p=p==c?b:p,g=g==c?b:g;var y=p==b,A=g==b,S=p==g;if(S&&o$(e)){if(!o$(t))return!1;s=!0,y=!1}if(S&&!y)return a||(a=new rC),s||o0(e)?ir(e,t,n,i,o,a):function(e,t,r,n,i,o,a){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!o(new ez(e),new ez(t)));case d:case h:case v:return oO(+e,+t);case f:return e.name==t.name&&e.message==t.message;case w:case _:return e==t+"";case m:var s=t$;case x:var l=1&n;if(s||(s=tF),e.size!=t.size&&!l)break;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=ir(s(e),s(t),n,i,o,a);return a.delete(e),u;case C:if(rh)return rh.call(e)==rh.call(t)}return!1}(e,t,p,n,i,o,a);if(!(1&n)){var T=y&&eR.call(e,"__wrapped__"),I=A&&eR.call(t,"__wrapped__");if(T||I){var P=T?e.value():e,O=I?t.value():t;return a||(a=new rC),o(P,O,n,i,a)}}return!!S&&(a||(a=new rC),function(e,t,n,i,o,a){var s=1&n,l=io(e),c=l.length;if(c!=io(t).length&&!s)return!1;for(var u=c;u--;){var d=l[u];if(!(s?d in t:eR.call(t,d)))return!1}var h=a.get(e),f=a.get(t);if(h&&f)return h==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=s;++u<c;){var m=e[d=l[u]],v=t[d];if(i)var b=s?i(v,m,d,t,e,a):i(m,v,d,e,t,a);if(!(b===r?m===v||o(m,v,n,i,a):b)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,i,o,a))}(e,t,n,i,r5,o):e!=e&&t!=t)}function r6(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=eC(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new rC;if(i)var f=i(u,d,c,e,t,h);if(!(f===r?r5(d,u,3,i,h):f))return!1}}return!0}function r4(e){return!(!oW(e)||eN&&eN in e)&&(oF(e)?eL:ec).test(i$(e))}function r8(e){return"function"==typeof e?e:null==e?aL:"object"==typeof e?oj(e)?nr(e[0],e[1]):nt(e):aZ(e)}function r9(e){if(!iE(e))return t1(e);var t=[];for(var r in eC(e))eR.call(e,r)&&"constructor"!=r&&t.push(r);return t}function r7(e,t){return e<t}function ne(e,t){var r=-1,n=oB(e)?eb(e.length):[];return rL(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function nt(e){var t=ih(e);return 1==t.length&&t[0][2]?iS(t[0][0],t[0][1]):function(r){return r===e||r6(r,e,t)}}function nr(e,t){var n;return iC(e)&&(n=t)==n&&!oW(n)?iS(iL(e),t):function(n){var i=as(n,e);return i===r&&i===t?al(n,e):r5(t,i,3)}}function nn(e,t,n,i,o){e!==t&&rH(t,function(a,s){if(o||(o=new rC),oW(a))!function(e,t,n,i,o,a,s){var l=iP(e,n),c=iP(t,n),u=s.get(c);if(u){rE(e,n,u);return}var d=a?a(l,c,n+"",e,t,s):r,h=d===r;if(h){var f=oj(c),p=!f&&o$(c),g=!f&&!p&&o0(c);d=c,f||p||g?oj(l)?d=l:oL(l)?d=nU(l):p?(h=!1,d=nN(c,!0)):g?(h=!1,d=nD(c,!0)):d=[]:oK(c)||oN(c)?(d=l,oN(l)?d=o9(l):(!oW(l)||oF(l))&&(d=iy(c))):h=!1}h&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),rE(e,n,d)}(e,t,s,n,nn,i,o);else{var l=i?i(iP(e,s),a,s+"",e,t,o):r;l===r&&(l=a),rE(e,s,l)}},af)}function ni(e,t){var n=e.length;if(n)return ix(t+=t<0?n:0,n)?e[t]:r}function no(e,t,r){t=t.length?th(t,function(e){return oj(e)?function(t){return rK(t,1===e.length?e[0]:e)}:e}):[aL];var n=-1;return t=th(t,tP(iu())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(ne(e,function(e,r,i){return{criteria:th(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=nB(i[n],o[n]);if(l){if(n>=s)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function na(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=rK(e,a);r(s,a)&&nh(o,nO(a,e),s)}return o}function ns(e,t,r,n){var i=n?tx:tw,o=-1,a=t.length,s=e;for(e===t&&(t=nU(t)),r&&(s=th(e,tP(r)));++o<a;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(s,u,l,n))>-1;)s!==e&&e2.call(s,l,1),e2.call(e,l,1);return e}function nl(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;ix(i)?e2.call(e,i,1):nC(e,i)}}return e}function nc(e,t){return e+tY(t4()*(t-e+1))}function nu(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do t%2&&(r+=e),(t=tY(t/2))&&(e+=e);while(t);return r}function nd(e,t){return iM(iT(e,t,aL),e+"")}function nh(e,t,n,i){if(!oW(e))return e;t=nO(t,e);for(var o=-1,a=t.length,s=a-1,l=e;null!=l&&++o<a;){var c=iL(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(o!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=oW(d)?d:ix(t[o+1])?[]:{})}rS(l,c,u),l=l[c]}return e}var nf=ri?function(e,t){return ri.set(e,t),e}:aL,np=e9?function(e,t){return e9(e,"toString",{configurable:!0,enumerable:!1,value:aj(t),writable:!0})}:aL;function ng(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=eb(i);++n<i;)o[n]=e[n+t];return o}function nm(e,t){var r;return rL(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nv(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!oX(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return nb(e,t,aL,r)}function nb(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;t=n(t);for(var s=t!=t,l=null===t,c=oX(t),u=t===r;o<a;){var d=tY((o+a)/2),h=n(e[d]),f=h!==r,p=null===h,g=h==h,m=oX(h);if(s)var v=i||g;else v=u?g&&(i||f):l?g&&f&&(i||!p):c?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);v?o=d+1:a=d}return t3(a,4294967294)}function ny(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!oO(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function nw(e){return"number"==typeof e?e:oX(e)?s:+e}function nx(e){if("string"==typeof e)return e;if(oj(e))return th(e,nx)+"";if(oX(e))return rf?rf.call(e):"";var t=e+"";return"0"==t&&1/e==-a?"-0":t}function n_(e,t,r){var n=-1,i=tu,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=td;else if(o>=200){var c=t?null:n4(e);if(c)return tF(c);a=!1,i=tR,l=new r_}else l=t?[]:s;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,a&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}function nC(e,t){return t=nO(t,e),null==(e=iI(e,t))||delete e[iL(iQ(t))]}function nA(e,t,r,n){return nh(e,t,r(rK(e,t)),n)}function nk(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ng(e,n?0:o,n?o+1:i):ng(e,n?o+1:0,n?i:o)}function nE(e,t){var r=e;return r instanceof rb&&(r=r.value()),tp(t,function(e,t){return t.func.apply(t.thisArg,tf([e],t.args))},r)}function nS(e,t,r){var n=e.length;if(n<2)return n?n_(e[0]):[];for(var i=-1,o=eb(n);++i<n;)for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=rB(o[i]||a,e[s],t,r));return n_(rq(o,1),t,r)}function nT(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:r;n(s,e[i],l)}return s}function nI(e){return oL(e)?e:[]}function nP(e){return"function"==typeof e?e:aL}function nO(e,t){return oj(e)?e:iC(e,t)?[e]:iB(o7(e))}function nR(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ng(e,t,n)}var nM=tv||function(e){return e3.clearTimeout(e)};function nN(e,t){if(t)return e.slice();var r=e.length,n=eH?eH(r):new e.constructor(r);return e.copy(n),n}function nj(e){var t=new e.constructor(e.byteLength);return new ez(t).set(new ez(e)),t}function nD(e,t){var r=t?nj(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nB(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=oX(e),s=t!==r,l=null===t,c=t==t,u=oX(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return -1}return 0}function nL(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,c=t2(o-a,0),u=eb(l+c),d=!n;++s<l;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function n$(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,c=t.length,u=t2(o-s,0),d=eb(u+c),h=!n;++i<u;)d[i]=e[i];for(var f=i;++l<c;)d[f+l]=t[l];for(;++a<s;)(h||i<o)&&(d[f+r[a]]=e[i++]);return d}function nU(e,t){var r=-1,n=e.length;for(t||(t=eb(n));++r<n;)t[r]=e[r];return t}function nz(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),o?rO(n,l,c):rS(n,l,c)}return n}function nF(e,t){return function(r,n){var i=oj(r)?ta:rI,o=t?t():{};return i(r,e,iu(n,2),o)}}function nq(e){return nd(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&i_(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=eC(t);++i<o;){var l=n[i];l&&e(t,l,i,a)}return t})}function nH(e,t){return function(r,n){if(null==r)return r;if(!oB(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=eC(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function nW(e){return function(t,r,n){for(var i=-1,o=eC(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}function nV(e){return function(t){var n=tL(t=o7(t))?tH(t):r,i=n?n[0]:t.charAt(0),o=n?nR(n,1).join(""):t.slice(1);return i[e]()+o}}function nZ(e){return function(t){return tp(aR(aA(t).replace(eF,"")),e,"")}}function nG(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rg(e.prototype),n=e.apply(r,t);return oW(n)?n:r}}function nK(e){return function(t,n,i){var o=eC(t);if(!oB(t)){var a=iu(n,3);t=ah(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function nY(e){return ii(function(t){var i=t.length,o=i,a=rv.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new eE(n);if(a&&!l&&"wrapper"==il(s))var l=new rv([],!0)}for(o=l?o:i;++o<i;){var c=il(s=t[o]),u="wrapper"==c?is(s):r;l=u&&iA(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[il(u[0])].apply(l,u[3]):1==s.length&&iA(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&oj(r))return l.plant(r).value();for(var n=0,o=i?t[n].apply(this,e):r;++n<i;)o=t[n].call(this,o);return o}})}function nQ(e,t,n,i,o,a,s,l,c,u){var d=128&t,h=1&t,f=2&t,p=24&t,g=512&t,m=f?r:nG(e);return function v(){for(var b=arguments.length,y=eb(b),w=b;w--;)y[w]=arguments[w];if(p)var x=ic(v),_=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(y,x);if(i&&(y=nL(y,i,o,p)),a&&(y=n$(y,a,s,p)),b-=_,p&&b<u){var C=tz(y,x);return n5(e,t,nQ,v.placeholder,n,y,C,l,c,u-b)}var A=h?n:this,k=f?A[e]:e;return b=y.length,l?y=function(e,t){for(var n=e.length,i=t3(t.length,n),o=nU(e);i--;){var a=t[i];e[i]=ix(a,n)?o[a]:r}return e}(y,l):g&&b>1&&y.reverse(),d&&c<b&&(y.length=c),this&&this!==e3&&this instanceof v&&(k=m||nG(k)),k.apply(A,y)}}function nJ(e,t){return function(r,n){var i,o;return i=t(n),o={},rV(r,function(t,r,n){e(o,i(t),r,n)}),o}}function nX(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=nx(n),i=nx(i)):(n=nw(n),i=nw(i)),o=e(n,i)}return o}}function n0(e){return ii(function(t){return t=th(t,tP(iu())),nd(function(r){var n=this;return e(t,function(e){return to(e,n,r)})})})}function n1(e,t){var n=(t=t===r?" ":nx(t)).length;if(n<2)return n?nu(t,e):t;var i=nu(t,tK(e/tq(t)));return tL(t)?nR(tH(i),0,e).join(""):i.slice(0,e)}function n2(e){return function(t,n,i){return i&&"number"!=typeof i&&i_(t,n,i)&&(n=i=r),t=o5(t),n===r?(n=t,t=0):n=o5(n),i=i===r?t<n?1:-1:o5(i),function(e,t,r,n){for(var i=-1,o=t2(tK((t-e)/(r||1)),0),a=eb(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,n,i,e)}}function n3(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=o8(t),r=o8(r)),e(t,r)}}function n5(e,t,n,i,o,a,s,l,c,u){var d=8&t,h=d?s:r,f=d?r:s,p=d?a:r,g=d?r:a;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var m=[e,t,o,p,h,g,f,l,c,u],v=n.apply(r,m);return iA(e)&&iO(v,m),v.placeholder=i,iN(v,e,t)}function n6(e){var t=e_[e];return function(e,r){if(e=o8(e),(r=null==r?0:t3(o6(r),292))&&tX(e)){var n=(o7(e)+"e").split("e");return+((n=(o7(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var n4=rt&&1/tF(new rt([,-0]))[1]==a?function(e){return new rt(e)}:aq;function n8(e){return function(t){var r,n,i=iv(t);return i==m?t$(t):i==x?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):th(e(t),function(e){return[e,t[e]]})}}function n9(e,t,i,a,s,l,c,u){var d=2&t;if(!d&&"function"!=typeof e)throw new eE(n);var h=a?a.length:0;if(h||(t&=-97,a=s=r),c=c===r?c:t2(o6(c),0),u=u===r?u:o6(u),h-=s?s.length:0,64&t){var f=a,p=s;a=s=r}var g=d?r:is(e),m=[e,t,i,a,s,f,p,l,c,u];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(a||s){1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?nL(c,l,t[4]):l,e[4]=c?tz(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?n$(c,l,t[6]):l,e[6]=c?tz(e[5],o):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(m,g),e=m[0],t=m[1],i=m[2],a=m[3],s=m[4],(u=m[9]=m[9]===r?d?0:e.length:t2(m[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(v=e,b=t,y=u,w=nG(v),R=function e(){for(var t=arguments.length,n=eb(t),i=t,o=ic(e);i--;)n[i]=arguments[i];var a=t<3&&n[0]!==o&&n[t-1]!==o?[]:tz(n,o);return(t-=a.length)<y?n5(v,b,nQ,e.placeholder,r,n,a,r,r,y-t):to(this&&this!==e3&&this instanceof e?w:v,this,n)}):32!=t&&33!=t||s.length?R=nQ.apply(r,m):(x=e,_=t,C=i,A=a,k=1&_,E=nG(x),R=function e(){for(var t=-1,r=arguments.length,n=-1,i=A.length,o=eb(i+r),a=this&&this!==e3&&this instanceof e?E:x;++n<i;)o[n]=A[n];for(;r--;)o[n++]=arguments[++t];return to(a,k?C:this,o)});else var v,b,y,w,x,_,C,A,k,E,S,T,I,P,O,R=(S=e,T=t,I=i,P=1&T,O=nG(S),function e(){return(this&&this!==e3&&this instanceof e?O:S).apply(P?I:this,arguments)});return iN((g?nf:iO)(R,m),e,t)}function n7(e,t,n,i){return e===r||oO(e,eI[n])&&!eR.call(i,n)?t:e}function ie(e,t,n,i,o,a){return oW(e)&&oW(t)&&(a.set(t,e),nn(e,t,r,ie,a),a.delete(t)),e}function it(e){return oK(e)?r:e}function ir(e,t,n,i,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new r_:r;for(a.set(e,t),a.set(t,e);++h<l;){var g=e[h],m=t[h];if(i)var v=s?i(m,g,h,t,e,a):i(g,m,h,e,t,a);if(v!==r){if(v)continue;f=!1;break}if(p){if(!tm(t,function(e,t){if(!tR(p,t)&&(g===e||o(g,e,n,i,a)))return p.push(t)})){f=!1;break}}else if(!(g===m||o(g,m,n,i,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function ii(e){return iM(iT(e,r,iV),e+"")}function io(e){return rY(e,ah,ig)}function ia(e){return rY(e,af,im)}var is=ri?function(e){return ri.get(e)}:aq;function il(e){for(var t=e.name+"",r=ro[t],n=eR.call(ro,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function ic(e){return(eR.call(rp,"placeholder")?rp:e).placeholder}function iu(){var e=rp.iteratee||a$;return e=e===a$?r8:e,arguments.length?e(arguments[0],arguments[1]):e}function id(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ih(e){for(var t=ah(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i==i&&!oW(i)]}return t}function ip(e,t){var n=null==e?r:e[t];return r4(n)?n:r}var ig=tQ?function(e){return null==e?[]:tc(tQ(e=eC(e)),function(t){return e1.call(e,t)})}:aY,im=tQ?function(e){for(var t=[];e;)tf(t,ig(e)),e=eV(e);return t}:aY,iv=rQ;function ib(e,t,r){t=nO(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var a=iL(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&oH(i)&&ix(a,i)&&(oj(e)||oN(e))}function iy(e){return"function"!=typeof e.constructor||iE(e)?{}:rg(eV(e))}function iw(e){return oj(e)||oN(e)||!!(e5&&e&&e[e5])}function ix(e,t){var r=typeof e;return!!(t=t??9007199254740991)&&("number"==r||"symbol"!=r&&ed.test(e))&&e>-1&&e%1==0&&e<t}function i_(e,t,r){if(!oW(r))return!1;var n=typeof t;return("number"==n?!!(oB(r)&&ix(t,r.length)):"string"==n&&t in r)&&oO(r[t],e)}function iC(e,t){if(oj(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||oX(e))||Z.test(e)||!V.test(e)||null!=t&&e in eC(t)}function iA(e){var t=il(e),r=rp[t];if("function"!=typeof r||!(t in rb.prototype))return!1;if(e===r)return!0;var n=is(r);return!!n&&e===n[0]}(t9&&iv(new t9(new ArrayBuffer(1)))!=E||t7&&iv(new t7)!=m||re&&iv(re.resolve())!=y||rt&&iv(new rt)!=x||rr&&iv(new rr)!=A)&&(iv=function(e){var t=rQ(e),n=t==b?e.constructor:r,i=n?i$(n):"";if(i)switch(i){case ra:return E;case rs:return m;case rl:return y;case rc:return x;case ru:return A}return t});var ik=eP?oF:aQ;function iE(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eI)}function iS(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eC(n))}}function iT(e,t,n){return t=t2(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=t2(r.length-t,0),a=eb(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=eb(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),to(e,this,s)}}function iI(e,t){return t.length<2?e:rK(e,ng(t,0,-1))}function iP(e,t){if(!("constructor"===t&&"function"==typeof e[t])&&"__proto__"!=t)return e[t]}var iO=ij(nf),iR=tG||function(e,t){return e3.setTimeout(e,t)},iM=ij(np);function iN(e,t,r){var n,i,o=t+"";return iM(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(X,`{
/* [wrapped with `+t+`] */
`)}(o,(n=(i=o.match(ee))?i[1].split(et):[],ts(l,function(e){var t="_."+e[0];r&e[1]&&!tu(n,t)&&n.push(t)}),n.sort())))}function ij(e){var t=0,n=0;return function(){var i=t5(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function iD(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=nc(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var iB=(em=(eg=ok(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(G,function(e,r,n,i){t.push(n?i.replace(ei,"$1"):r||e)}),t},function(e){return 500===em.size&&em.clear(),e})).cache,eg);function iL(e){if("string"==typeof e||oX(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}function i$(e){if(null!=e){try{return eO.call(e)}catch{}try{return e+""}catch{}}return""}function iU(e){if(e instanceof rb)return e.clone();var t=new rv(e.__wrapped__,e.__chain__);return t.__actions__=nU(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iz=nd(function(e,t){return oL(e)?rB(e,rq(t,1,oL,!0)):[]}),iF=nd(function(e,t){var n=iQ(t);return oL(n)&&(n=r),oL(e)?rB(e,rq(t,1,oL,!0),iu(n,2)):[]}),iq=nd(function(e,t){var n=iQ(t);return oL(n)&&(n=r),oL(e)?rB(e,rq(t,1,oL,!0),r,n):[]});function iH(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:o6(r);return i<0&&(i=t2(n+i,0)),ty(e,iu(t,3),i)}function iW(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var o=i-1;return n!==r&&(o=o6(n),o=n<0?t2(i+o,0):t3(o,i-1)),ty(e,iu(t,3),o,!0)}function iV(e){return(null==e?0:e.length)?rq(e,1):[]}function iZ(e){return e&&e.length?e[0]:r}var iG=nd(function(e){var t=th(e,nI);return t.length&&t[0]===e[0]?r1(t):[]}),iK=nd(function(e){var t=iQ(e),n=th(e,nI);return t===iQ(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r1(n,iu(t,2)):[]}),iY=nd(function(e){var t=iQ(e),n=th(e,nI);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r1(n,r,t):[]});function iQ(e){var t=null==e?0:e.length;return t?e[t-1]:r}var iJ=nd(iX);function iX(e,t){return e&&e.length&&t&&t.length?ns(e,t):e}var i0=ii(function(e,t){var r=null==e?0:e.length,n=rR(e,t);return nl(e,th(t,function(e){return ix(e,r)?+e:e}).sort(nB)),n});function i1(e){return null==e?e:t8.call(e)}var i2=nd(function(e){return n_(rq(e,1,oL,!0))}),i3=nd(function(e){var t=iQ(e);return oL(t)&&(t=r),n_(rq(e,1,oL,!0),iu(t,2))}),i5=nd(function(e){var t=iQ(e);return t="function"==typeof t?t:r,n_(rq(e,1,oL,!0),r,t)});function i6(e){if(!(e&&e.length))return[];var t=0;return e=tc(e,function(e){if(oL(e))return t=t2(e.length,t),!0}),tT(t,function(t){return th(e,tA(t))})}function i4(e,t){if(!(e&&e.length))return[];var n=i6(e);return null==t?n:th(n,function(e){return to(t,r,e)})}var i8=nd(function(e,t){return oL(e)?rB(e,t):[]}),i9=nd(function(e){return nS(tc(e,oL))}),i7=nd(function(e){var t=iQ(e);return oL(t)&&(t=r),nS(tc(e,oL),iu(t,2))}),oe=nd(function(e){var t=iQ(e);return t="function"==typeof t?t:r,nS(tc(e,oL),r,t)}),ot=nd(i6),or=nd(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,i4(e,n)});function on(e){var t=rp(e);return t.__chain__=!0,t}function oi(e,t){return t(e)}var oo=ii(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return rR(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rb&&ix(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:oi,args:[o],thisArg:r}),new rv(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),oa=nF(function(e,t,r){eR.call(e,r)?++e[r]:rO(e,r,1)}),os=nK(iH),ol=nK(iW);function oc(e,t){return(oj(e)?ts:rL)(e,iu(t,3))}function ou(e,t){return(oj(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:r$)(e,iu(t,3))}var od=nF(function(e,t,r){eR.call(e,r)?e[r].push(t):rO(e,r,[t])}),oh=nd(function(e,t,r){var n=-1,i="function"==typeof t,o=oB(e)?eb(e.length):[];return rL(e,function(e){o[++n]=i?to(t,e,r):r2(e,t,r)}),o}),of=nF(function(e,t,r){rO(e,r,t)});function op(e,t){return(oj(e)?th:ne)(e,iu(t,3))}var og=nF(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),om=nd(function(e,t){if(null==e)return[];var r=t.length;return r>1&&i_(e,t[0],t[1])?t=[]:r>2&&i_(t[0],t[1],t[2])&&(t=[t[0]]),no(e,rq(t,1),[])}),ov=tk||function(){return e3.Date.now()};function ob(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,n9(e,128,r,r,r,r,t)}function oy(e,t){var i;if("function"!=typeof t)throw new eE(n);return e=o6(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var ow=nd(function(e,t,r){var n=1;if(r.length){var i=tz(r,ic(ow));n|=32}return n9(e,n,t,r,i)}),ox=nd(function(e,t,r){var n=3;if(r.length){var i=tz(r,ic(ox));n|=32}return n9(t,n,e,r,i)});function o_(e,t,i){var o,a,s,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new eE(n);function g(t){var n=o,i=a;return o=a=r,d=t,l=e.apply(i,n)}function m(e){var n=e-u,i=e-d;return u===r||n>=t||n<0||f&&i>=s}function v(){var e,r,n,i=ov();if(m(i))return b(i);c=iR(v,(e=i-u,r=i-d,n=t-e,f?t3(n,s-r):n))}function b(e){return c=r,p&&o?g(e):(o=a=r,l)}function y(){var e,n=ov(),i=m(n);if(o=arguments,a=this,u=n,i){if(c===r)return d=e=u,c=iR(v,t),h?g(e):l;if(f)return nM(c),c=iR(v,t),g(u)}return c===r&&(c=iR(v,t)),l}return t=o8(t)||0,oW(i)&&(h=!!i.leading,s=(f="maxWait"in i)?t2(o8(i.maxWait)||0,t):s,p="trailing"in i?!!i.trailing:p),y.cancel=function(){c!==r&&nM(c),d=0,o=u=a=c=r},y.flush=function(){return c===r?l:b(ov())},y}var oC=nd(function(e,t){return rD(e,1,t)}),oA=nd(function(e,t,r){return rD(e,o8(t)||0,r)});function ok(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new eE(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(ok.Cache||rx),r}function oE(e){if("function"!=typeof e)throw new eE(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ok.Cache=rx;var oS=nd(function(e,t){var r=(t=1==t.length&&oj(t[0])?th(t[0],tP(iu())):th(rq(t,1),tP(iu()))).length;return nd(function(n){for(var i=-1,o=t3(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return to(e,this,n)})}),oT=nd(function(e,t){var n=tz(t,ic(oT));return n9(e,32,r,t,n)}),oI=nd(function(e,t){var n=tz(t,ic(oI));return n9(e,64,r,t,n)}),oP=ii(function(e,t){return n9(e,256,r,r,r,t)});function oO(e,t){return e===t||e!=e&&t!=t}var oR=n3(rJ),oM=n3(function(e,t){return e>=t}),oN=r3(function(){return arguments}())?r3:function(e){return oV(e)&&eR.call(e,"callee")&&!e1.call(e,"callee")},oj=eb.isArray,oD=e7?tP(e7):function(e){return oV(e)&&rQ(e)==k};function oB(e){return null!=e&&oH(e.length)&&!oF(e)}function oL(e){return oV(e)&&oB(e)}var o$=tJ||aQ,oU=te?tP(te):function(e){return oV(e)&&rQ(e)==h};function oz(e){if(!oV(e))return!1;var t=rQ(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!oK(e)}function oF(e){if(!oW(e))return!1;var t=rQ(e);return t==p||t==g||"[object AsyncFunction]"==t||"[object Proxy]"==t}function oq(e){return"number"==typeof e&&e==o6(e)}function oH(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function oW(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oV(e){return null!=e&&"object"==typeof e}var oZ=tt?tP(tt):function(e){return oV(e)&&iv(e)==m};function oG(e){return"number"==typeof e||oV(e)&&rQ(e)==v}function oK(e){if(!oV(e)||rQ(e)!=b)return!1;var t=eV(e);if(null===t)return!0;var r=eR.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eO.call(r)==eD}var oY=tr?tP(tr):function(e){return oV(e)&&rQ(e)==w},oQ=tn?tP(tn):function(e){return oV(e)&&iv(e)==x};function oJ(e){return"string"==typeof e||!oj(e)&&oV(e)&&rQ(e)==_}function oX(e){return"symbol"==typeof e||oV(e)&&rQ(e)==C}var o0=ti?tP(ti):function(e){return oV(e)&&oH(e.length)&&!!eY[rQ(e)]},o1=n3(r7),o2=n3(function(e,t){return e<=t});function o3(e){if(!e)return[];if(oB(e))return oJ(e)?tH(e):nU(e);if(e6&&e[e6])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e6]());var t=iv(e);return(t==m?t$:t==x?tF:ax)(e)}function o5(e){return e?(e=o8(e))===a||e===-a?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function o6(e){var t=o5(e),r=t%1;return t==t?r?t-r:t:0}function o4(e){return e?rM(o6(e),0,4294967295):0}function o8(e){if("number"==typeof e)return e;if(oX(e))return s;if(oW(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oW(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tI(e);var r=el.test(e);return r||eu.test(e)?e0(e.slice(2),r?2:8):es.test(e)?s:+e}function o9(e){return nz(e,af(e))}function o7(e){return null==e?"":nx(e)}var ae=nq(function(e,t){if(iE(t)||oB(t)){nz(t,ah(t),e);return}for(var r in t)eR.call(t,r)&&rS(e,r,t[r])}),at=nq(function(e,t){nz(t,af(t),e)}),ar=nq(function(e,t,r,n){nz(t,af(t),e,n)}),an=nq(function(e,t,r,n){nz(t,ah(t),e,n)}),ai=ii(rR),ao=nd(function(e,t){e=eC(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&i_(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=af(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||oO(d,eI[u])&&!eR.call(e,u))&&(e[u]=a[u])}return e}),aa=nd(function(e){return e.push(r,ie),to(ag,r,e)});function as(e,t,n){var i=null==e?r:rK(e,t);return i===r?n:i}function al(e,t){return null!=e&&ib(e,t,r0)}var ac=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ej.call(t)),e[t]=r},aj(aL)),au=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ej.call(t)),eR.call(e,t)?e[t].push(r):e[t]=[r]},iu),ad=nd(r2);function ah(e){return oB(e)?rA(e):r9(e)}function af(e){return oB(e)?rA(e,!0):function(e){if(!oW(e))return function(e){var t=[];if(null!=e)for(var r in eC(e))t.push(r);return t}(e);var t=iE(e),r=[];for(var n in e)"constructor"==n&&(t||!eR.call(e,n))||r.push(n);return r}(e)}var ap=nq(function(e,t,r){nn(e,t,r)}),ag=nq(function(e,t,r,n){nn(e,t,r,n)}),am=ii(function(e,t){var r={};if(null==e)return r;var n=!1;t=th(t,function(t){return t=nO(t,e),n||(n=t.length>1),t}),nz(e,ia(e),r),n&&(r=rN(r,7,it));for(var i=t.length;i--;)nC(r,t[i]);return r}),av=ii(function(e,t){return null==e?{}:na(e,t,function(t,r){return al(e,r)})});function ab(e,t){if(null==e)return{};var r=th(ia(e),function(e){return[e]});return t=iu(t),na(e,r,function(e,r){return t(e,r[0])})}var ay=n8(ah),aw=n8(af);function ax(e){return null==e?[]:tO(e,ah(e))}var a_=nZ(function(e,t,r){return t=t.toLowerCase(),e+(r?aC(t):t)});function aC(e){return aO(o7(e).toLowerCase())}function aA(e){return(e=o7(e))&&e.replace(eh,tj).replace(eq,"")}var ak=nZ(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),aE=nZ(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),aS=nV("toLowerCase"),aT=nZ(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),aI=nZ(function(e,t,r){return e+(r?" ":"")+aO(t)}),aP=nZ(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),aO=nV("toUpperCase");function aR(e,t,n){var i;return e=o7(e),(t=n?r:t)===r?(i=e,eZ.test(i))?e.match(eW)||[]:e.match(er)||[]:e.match(t)||[]}var aM=nd(function(e,t){try{return to(e,r,t)}catch(e){return oz(e)?e:new ew(e)}}),aN=ii(function(e,t){return ts(t,function(t){rO(e,t=iL(t),ow(e[t],e))}),e});function aj(e){return function(){return e}}var aD=nY(),aB=nY(!0);function aL(e){return e}function a$(e){return r8("function"==typeof e?e:rN(e,1))}var aU=nd(function(e,t){return function(r){return r2(r,e,t)}}),az=nd(function(e,t){return function(r){return r2(e,r,t)}});function aF(e,t,r){var n=ah(t),i=rG(t,n);null!=r||oW(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rG(t,ah(t)));var o=!(oW(r)&&"chain"in r)||!!r.chain,a=oF(e);return ts(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=nU(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tf([this.value()],arguments))})}),e}function aq(){}var aH=n0(th),aW=n0(tl),aV=n0(tm);function aZ(e){return iC(e)?tA(iL(e)):function(t){return rK(t,e)}}var aG=n2(),aK=n2(!0);function aY(){return[]}function aQ(){return!1}var aJ=nX(function(e,t){return e+t},0),aX=n6("ceil"),a0=nX(function(e,t){return e/t},1),a1=n6("floor"),a2=nX(function(e,t){return e*t},1),a3=n6("round"),a5=nX(function(e,t){return e-t},0);return rp.after=function(e,t){if("function"!=typeof t)throw new eE(n);return e=o6(e),function(){if(--e<1)return t.apply(this,arguments)}},rp.ary=ob,rp.assign=ae,rp.assignIn=at,rp.assignInWith=ar,rp.assignWith=an,rp.at=ai,rp.before=oy,rp.bind=ow,rp.bindAll=aN,rp.bindKey=ox,rp.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return oj(e)?e:[e]},rp.chain=on,rp.chunk=function(e,t,n){t=(n?i_(e,t,n):t===r)?1:t2(o6(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=eb(tK(i/t));o<i;)s[a++]=ng(e,o,o+=t);return s},rp.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},rp.concat=function(){var e=arguments.length;if(!e)return[];for(var t=eb(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tf(oj(r)?nU(r):[r],rq(t,1))},rp.cond=function(e){var t=null==e?0:e.length,r=iu();return e=t?th(e,function(e){if("function"!=typeof e[1])throw new eE(n);return[r(e[0]),e[1]]}):[],nd(function(r){for(var n=-1;++n<t;){var i=e[n];if(to(i[0],this,r))return to(i[1],this,r)}})},rp.conforms=function(e){var t,r;return r=ah(t=rN(e,1)),function(e){return rj(e,t,r)}},rp.constant=aj,rp.countBy=oa,rp.create=function(e,t){var r=rg(e);return null==t?r:rP(r,t)},rp.curry=function e(t,n,i){n=i?r:n;var o=n9(t,8,r,r,r,r,r,n);return o.placeholder=e.placeholder,o},rp.curryRight=function e(t,n,i){n=i?r:n;var o=n9(t,16,r,r,r,r,r,n);return o.placeholder=e.placeholder,o},rp.debounce=o_,rp.defaults=ao,rp.defaultsDeep=aa,rp.defer=oC,rp.delay=oA,rp.difference=iz,rp.differenceBy=iF,rp.differenceWith=iq,rp.drop=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=n||t===r?1:o6(t))<0?0:t,i):[]},rp.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,0,(t=i-(t=n||t===r?1:o6(t)))<0?0:t):[]},rp.dropRightWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!0,!0):[]},rp.dropWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!0):[]},rp.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&i_(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=o6(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:o6(i))<0&&(i+=o),i=n>i?0:o4(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},rp.filter=function(e,t){return(oj(e)?tc:rF)(e,iu(t,3))},rp.flatMap=function(e,t){return rq(op(e,t),1)},rp.flatMapDeep=function(e,t){return rq(op(e,t),a)},rp.flatMapDepth=function(e,t,n){return n=n===r?1:o6(n),rq(op(e,t),n)},rp.flatten=iV,rp.flattenDeep=function(e){return(null==e?0:e.length)?rq(e,a):[]},rp.flattenDepth=function(e,t){return(null==e?0:e.length)?rq(e,t=t===r?1:o6(t)):[]},rp.flip=function(e){return n9(e,512)},rp.flow=aD,rp.flowRight=aB,rp.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},rp.functions=function(e){return null==e?[]:rG(e,ah(e))},rp.functionsIn=function(e){return null==e?[]:rG(e,af(e))},rp.groupBy=od,rp.initial=function(e){return(null==e?0:e.length)?ng(e,0,-1):[]},rp.intersection=iG,rp.intersectionBy=iK,rp.intersectionWith=iY,rp.invert=ac,rp.invertBy=au,rp.invokeMap=oh,rp.iteratee=a$,rp.keyBy=of,rp.keys=ah,rp.keysIn=af,rp.map=op,rp.mapKeys=function(e,t){var r={};return t=iu(t,3),rV(e,function(e,n,i){rO(r,t(e,n,i),e)}),r},rp.mapValues=function(e,t){var r={};return t=iu(t,3),rV(e,function(e,n,i){rO(r,n,t(e,n,i))}),r},rp.matches=function(e){return nt(rN(e,1))},rp.matchesProperty=function(e,t){return nr(e,rN(t,1))},rp.memoize=ok,rp.merge=ap,rp.mergeWith=ag,rp.method=aU,rp.methodOf=az,rp.mixin=aF,rp.negate=oE,rp.nthArg=function(e){return e=o6(e),nd(function(t){return ni(t,e)})},rp.omit=am,rp.omitBy=function(e,t){return ab(e,oE(iu(t)))},rp.once=function(e){return oy(2,e)},rp.orderBy=function(e,t,n,i){return null==e?[]:(oj(t)||(t=null==t?[]:[t]),oj(n=i?r:n)||(n=null==n?[]:[n]),no(e,t,n))},rp.over=aH,rp.overArgs=oS,rp.overEvery=aW,rp.overSome=aV,rp.partial=oT,rp.partialRight=oI,rp.partition=og,rp.pick=av,rp.pickBy=ab,rp.property=aZ,rp.propertyOf=function(e){return function(t){return null==e?r:rK(e,t)}},rp.pull=iJ,rp.pullAll=iX,rp.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?ns(e,t,iu(r,2)):e},rp.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?ns(e,t,r,n):e},rp.pullAt=i0,rp.range=aG,rp.rangeRight=aK,rp.rearg=oP,rp.reject=function(e,t){return(oj(e)?tc:rF)(e,oE(iu(t,3)))},rp.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],o=e.length;for(t=iu(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return nl(e,i),r},rp.rest=function(e,t){if("function"!=typeof e)throw new eE(n);return nd(e,t=t===r?t:o6(t))},rp.reverse=i1,rp.sampleSize=function(e,t,n){return t=(n?i_(e,t,n):t===r)?1:o6(t),(oj(e)?function(e,t){return iD(nU(e),rM(t,0,e.length))}:function(e,t){var r=ax(e);return iD(r,rM(t,0,r.length))})(e,t)},rp.set=function(e,t,r){return null==e?e:nh(e,t,r)},rp.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nh(e,t,n,i)},rp.shuffle=function(e){return(oj(e)?function(e){return iD(nU(e))}:function(e){return iD(ax(e))})(e)},rp.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&i_(e,t,n)?(t=0,n=i):(t=null==t?0:o6(t),n=n===r?i:o6(n)),ng(e,t,n)):[]},rp.sortBy=om,rp.sortedUniq=function(e){return e&&e.length?ny(e):[]},rp.sortedUniqBy=function(e,t){return e&&e.length?ny(e,iu(t,2)):[]},rp.split=function(e,t,n){return n&&"number"!=typeof n&&i_(e,t,n)&&(t=n=r),(n=n===r?4294967295:n>>>0)?(e=o7(e))&&("string"==typeof t||null!=t&&!oY(t))&&!(t=nx(t))&&tL(e)?nR(tH(e),0,n):e.split(t,n):[]},rp.spread=function(e,t){if("function"!=typeof e)throw new eE(n);return t=null==t?0:t2(o6(t),0),nd(function(r){var n=r[t],i=nR(r,0,t);return n&&tf(i,n),to(e,this,i)})},rp.tail=function(e){var t=null==e?0:e.length;return t?ng(e,1,t):[]},rp.take=function(e,t,n){return e&&e.length?ng(e,0,(t=n||t===r?1:o6(t))<0?0:t):[]},rp.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ng(e,(t=i-(t=n||t===r?1:o6(t)))<0?0:t,i):[]},rp.takeRightWhile=function(e,t){return e&&e.length?nk(e,iu(t,3),!1,!0):[]},rp.takeWhile=function(e,t){return e&&e.length?nk(e,iu(t,3)):[]},rp.tap=function(e,t){return t(e),e},rp.throttle=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new eE(n);return oW(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),o_(e,t,{leading:i,maxWait:t,trailing:o})},rp.thru=oi,rp.toArray=o3,rp.toPairs=ay,rp.toPairsIn=aw,rp.toPath=function(e){return oj(e)?th(e,iL):oX(e)?[e]:nU(iB(o7(e)))},rp.toPlainObject=o9,rp.transform=function(e,t,r){var n=oj(e),i=n||o$(e)||o0(e);if(t=iu(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:oW(e)&&oF(o)?rg(eV(e)):{}}return(i?ts:rV)(e,function(e,n,i){return t(r,e,n,i)}),r},rp.unary=function(e){return ob(e,1)},rp.union=i2,rp.unionBy=i3,rp.unionWith=i5,rp.uniq=function(e){return e&&e.length?n_(e):[]},rp.uniqBy=function(e,t){return e&&e.length?n_(e,iu(t,2)):[]},rp.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?n_(e,r,t):[]},rp.unset=function(e,t){return null==e||nC(e,t)},rp.unzip=i6,rp.unzipWith=i4,rp.update=function(e,t,r){return null==e?e:nA(e,t,nP(r))},rp.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nA(e,t,nP(n),i)},rp.values=ax,rp.valuesIn=function(e){return null==e?[]:tO(e,af(e))},rp.without=i8,rp.words=aR,rp.wrap=function(e,t){return oT(nP(t),e)},rp.xor=i9,rp.xorBy=i7,rp.xorWith=oe,rp.zip=ot,rp.zipObject=function(e,t){return nT(e||[],t||[],rS)},rp.zipObjectDeep=function(e,t){return nT(e||[],t||[],nh)},rp.zipWith=or,rp.entries=ay,rp.entriesIn=aw,rp.extend=at,rp.extendWith=ar,aF(rp,rp),rp.add=aJ,rp.attempt=aM,rp.camelCase=a_,rp.capitalize=aC,rp.ceil=aX,rp.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=o8(n))==n?n:0),t!==r&&(t=(t=o8(t))==t?t:0),rM(o8(e),t,n)},rp.clone=function(e){return rN(e,4)},rp.cloneDeep=function(e){return rN(e,5)},rp.cloneDeepWith=function(e,t){return rN(e,5,t="function"==typeof t?t:r)},rp.cloneWith=function(e,t){return rN(e,4,t="function"==typeof t?t:r)},rp.conformsTo=function(e,t){return null==t||rj(e,t,ah(t))},rp.deburr=aA,rp.defaultTo=function(e,t){return null==e||e!=e?t:e},rp.divide=a0,rp.endsWith=function(e,t,n){e=o7(e),t=nx(t);var i=e.length,o=n=n===r?i:rM(o6(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},rp.eq=oO,rp.escape=function(e){return(e=o7(e))&&F.test(e)?e.replace(U,tD):e},rp.escapeRegExp=function(e){return(e=o7(e))&&Y.test(e)?e.replace(K,"\\$&"):e},rp.every=function(e,t,n){var i=oj(e)?tl:rU;return n&&i_(e,t,n)&&(t=r),i(e,iu(t,3))},rp.find=os,rp.findIndex=iH,rp.findKey=function(e,t){return tb(e,iu(t,3),rV)},rp.findLast=ol,rp.findLastIndex=iW,rp.findLastKey=function(e,t){return tb(e,iu(t,3),rZ)},rp.floor=a1,rp.forEach=oc,rp.forEachRight=ou,rp.forIn=function(e,t){return null==e?e:rH(e,iu(t,3),af)},rp.forInRight=function(e,t){return null==e?e:rW(e,iu(t,3),af)},rp.forOwn=function(e,t){return e&&rV(e,iu(t,3))},rp.forOwnRight=function(e,t){return e&&rZ(e,iu(t,3))},rp.get=as,rp.gt=oR,rp.gte=oM,rp.has=function(e,t){return null!=e&&ib(e,t,rX)},rp.hasIn=al,rp.head=iZ,rp.identity=aL,rp.includes=function(e,t,r,n){e=oB(e)?e:ax(e),r=r&&!n?o6(r):0;var i=e.length;return r<0&&(r=t2(i+r,0)),oJ(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tw(e,t,r)>-1},rp.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:o6(r);return i<0&&(i=t2(n+i,0)),tw(e,t,i)},rp.inRange=function(e,t,n){var i,o,a;return t=o5(t),n===r?(n=t,t=0):n=o5(n),(i=e=o8(e))>=t3(o=t,a=n)&&i<t2(o,a)},rp.invoke=ad,rp.isArguments=oN,rp.isArray=oj,rp.isArrayBuffer=oD,rp.isArrayLike=oB,rp.isArrayLikeObject=oL,rp.isBoolean=function(e){return!0===e||!1===e||oV(e)&&rQ(e)==d},rp.isBuffer=o$,rp.isDate=oU,rp.isElement=function(e){return oV(e)&&1===e.nodeType&&!oK(e)},rp.isEmpty=function(e){if(null==e)return!0;if(oB(e)&&(oj(e)||"string"==typeof e||"function"==typeof e.splice||o$(e)||o0(e)||oN(e)))return!e.length;var t=iv(e);if(t==m||t==x)return!e.size;if(iE(e))return!r9(e).length;for(var r in e)if(eR.call(e,r))return!1;return!0},rp.isEqual=function(e,t){return r5(e,t)},rp.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?r5(e,t,r,n):!!i},rp.isError=oz,rp.isFinite=function(e){return"number"==typeof e&&tX(e)},rp.isFunction=oF,rp.isInteger=oq,rp.isLength=oH,rp.isMap=oZ,rp.isMatch=function(e,t){return e===t||r6(e,t,ih(t))},rp.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,r6(e,t,ih(t),n)},rp.isNaN=function(e){return oG(e)&&e!=+e},rp.isNative=function(e){if(ik(e))throw new ew("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r4(e)},rp.isNil=function(e){return null==e},rp.isNull=function(e){return null===e},rp.isNumber=oG,rp.isObject=oW,rp.isObjectLike=oV,rp.isPlainObject=oK,rp.isRegExp=oY,rp.isSafeInteger=function(e){return oq(e)&&e>=-9007199254740991&&e<=9007199254740991},rp.isSet=oQ,rp.isString=oJ,rp.isSymbol=oX,rp.isTypedArray=o0,rp.isUndefined=function(e){return e===r},rp.isWeakMap=function(e){return oV(e)&&iv(e)==A},rp.isWeakSet=function(e){return oV(e)&&"[object WeakSet]"==rQ(e)},rp.join=function(e,t){return null==e?"":t0.call(e,t)},rp.kebabCase=ak,rp.last=iQ,rp.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var o=i;return n!==r&&(o=(o=o6(n))<0?t2(i+o,0):t3(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,o):ty(e,t_,o,!0)},rp.lowerCase=aE,rp.lowerFirst=aS,rp.lt=o1,rp.lte=o2,rp.max=function(e){return e&&e.length?rz(e,aL,rJ):r},rp.maxBy=function(e,t){return e&&e.length?rz(e,iu(t,2),rJ):r},rp.mean=function(e){return tC(e,aL)},rp.meanBy=function(e,t){return tC(e,iu(t,2))},rp.min=function(e){return e&&e.length?rz(e,aL,r7):r},rp.minBy=function(e,t){return e&&e.length?rz(e,iu(t,2),r7):r},rp.stubArray=aY,rp.stubFalse=aQ,rp.stubObject=function(){return{}},rp.stubString=function(){return""},rp.stubTrue=function(){return!0},rp.multiply=a2,rp.nth=function(e,t){return e&&e.length?ni(e,o6(t)):r},rp.noConflict=function(){return e3._===this&&(e3._=eB),this},rp.noop=aq,rp.now=ov,rp.pad=function(e,t,r){e=o7(e);var n=(t=o6(t))?tq(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n1(tY(i),r)+e+n1(tK(i),r)},rp.padEnd=function(e,t,r){e=o7(e);var n=(t=o6(t))?tq(e):0;return t&&n<t?e+n1(t-n,r):e},rp.padStart=function(e,t,r){e=o7(e);var n=(t=o6(t))?tq(e):0;return t&&n<t?n1(t-n,r)+e:e},rp.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t6(o7(e).replace(Q,""),t||0)},rp.random=function(e,t,n){if(n&&"boolean"!=typeof n&&i_(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=o5(e),t===r?(t=e,e=0):t=o5(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=t4();return t3(e+o*(t-e+eX("1e-"+((o+"").length-1))),t)}return nc(e,t)},rp.reduce=function(e,t,r){var n=oj(e)?tp:tE,i=arguments.length<3;return n(e,iu(t,4),r,i,rL)},rp.reduceRight=function(e,t,r){var n=oj(e)?tg:tE,i=arguments.length<3;return n(e,iu(t,4),r,i,r$)},rp.repeat=function(e,t,n){return t=(n?i_(e,t,n):t===r)?1:o6(t),nu(o7(e),t)},rp.replace=function(){var e=arguments,t=o7(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rp.result=function(e,t,n){t=nO(t,e);var i=-1,o=t.length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[iL(t[i])];a===r&&(i=o,a=n),e=oF(a)?a.call(e):a}return e},rp.round=a3,rp.runInContext=e,rp.sample=function(e){return(oj(e)?rk:function(e){return rk(ax(e))})(e)},rp.size=function(e){if(null==e)return 0;if(oB(e))return oJ(e)?tq(e):e.length;var t=iv(e);return t==m||t==x?e.size:r9(e).length},rp.snakeCase=aT,rp.some=function(e,t,n){var i=oj(e)?tm:nm;return n&&i_(e,t,n)&&(t=r),i(e,iu(t,3))},rp.sortedIndex=function(e,t){return nv(e,t)},rp.sortedIndexBy=function(e,t,r){return nb(e,t,iu(r,2))},rp.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nv(e,t);if(n<r&&oO(e[n],t))return n}return -1},rp.sortedLastIndex=function(e,t){return nv(e,t,!0)},rp.sortedLastIndexBy=function(e,t,r){return nb(e,t,iu(r,2),!0)},rp.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nv(e,t,!0)-1;if(oO(e[r],t))return r}return -1},rp.startCase=aI,rp.startsWith=function(e,t,r){return e=o7(e),r=null==r?0:rM(o6(r),0,e.length),t=nx(t),e.slice(r,r+t.length)==t},rp.subtract=a5,rp.sum=function(e){return e&&e.length?tS(e,aL):0},rp.sumBy=function(e,t){return e&&e.length?tS(e,iu(t,2)):0},rp.template=function(e,t,n){var i=rp.templateSettings;n&&i_(e,t,n)&&(t=r),e=o7(e),t=ar({},t,i,n7);var o,a,s=ar({},t.imports,i.imports,n7),l=ah(s),c=tO(s,l),u=0,d=t.interpolate||ef,h="__p += '",f=eA((t.escape||ef).source+"|"+d.source+"|"+(d===W?eo:ef).source+"|"+(t.evaluate||ef).source+"|$","g"),p="//# sourceURL="+(eR.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eK+"]")+`
`;e.replace(f,function(t,r,n,i,s,l){return n||(n=i),h+=e.slice(u,l).replace(ep,tB),r&&(o=!0,h+=`' +
__e(`+r+`) +
'`),s&&(a=!0,h+=`';
`+s+`;
__p += '`),n&&(h+=`' +
((__t = (`+n+`)) == null ? '' : __t) +
'`),u=l+t.length,t}),h+=`';
`;var g=eR.call(t,"variable")&&t.variable;if(g){if(en.test(g))throw new ew("Invalid `variable` option passed into `_.template`")}else h=`with (obj) {
`+h+`
}
`;h=(a?h.replace(D,""):h).replace(B,"$1").replace(L,"$1;"),h="function("+(g||"obj")+`) {
`+(g?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+h+`return __p
}`;var m=aM(function(){return ex(l,p+"return "+h).apply(r,c)});if(m.source=h,oz(m))throw m;return m},rp.times=function(e,t){if((e=o6(e))<1||e>9007199254740991)return[];var r=4294967295,n=t3(e,4294967295);t=iu(t),e-=4294967295;for(var i=tT(n,t);++r<e;)t(r);return i},rp.toFinite=o5,rp.toInteger=o6,rp.toLength=o4,rp.toLower=function(e){return o7(e).toLowerCase()},rp.toNumber=o8,rp.toSafeInteger=function(e){return e?rM(o6(e),-9007199254740991,9007199254740991):0===e?e:0},rp.toString=o7,rp.toUpper=function(e){return o7(e).toUpperCase()},rp.trim=function(e,t,n){if((e=o7(e))&&(n||t===r))return tI(e);if(!e||!(t=nx(t)))return e;var i=tH(e),o=tH(t),a=tM(i,o),s=tN(i,o)+1;return nR(i,a,s).join("")},rp.trimEnd=function(e,t,n){if((e=o7(e))&&(n||t===r))return e.slice(0,tW(e)+1);if(!e||!(t=nx(t)))return e;var i=tH(e),o=tN(i,tH(t))+1;return nR(i,0,o).join("")},rp.trimStart=function(e,t,n){if((e=o7(e))&&(n||t===r))return e.replace(Q,"");if(!e||!(t=nx(t)))return e;var i=tH(e),o=tM(i,tH(t));return nR(i,o).join("")},rp.truncate=function(e,t){var n=30,i="...";if(oW(t)){var o="separator"in t?t.separator:o;n="length"in t?o6(t.length):n,i="omission"in t?nx(t.omission):i}var a=(e=o7(e)).length;if(tL(e)){var s=tH(e);a=s.length}if(n>=a)return e;var l=n-tq(i);if(l<1)return i;var c=s?nR(s,0,l).join(""):e.slice(0,l);if(o===r)return c+i;if(s&&(l+=c.length-l),oY(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=eA(o.source,o7(ea.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(nx(o),l)!=l){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+i},rp.unescape=function(e){return(e=o7(e))&&z.test(e)?e.replace($,tV):e},rp.uniqueId=function(e){var t=++eM;return o7(e)+t},rp.upperCase=aP,rp.upperFirst=aO,rp.each=oc,rp.eachRight=ou,rp.first=iZ,aF(rp,(ev={},rV(rp,function(e,t){eR.call(rp.prototype,t)||(ev[t]=e)}),ev),{chain:!1}),rp.VERSION="4.17.21",ts(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rp[e].placeholder=rp}),ts(["drop","take"],function(e,t){rb.prototype[e]=function(n){n=n===r?1:t2(o6(n),0);var i=this.__filtered__&&!t?new rb(this):this.clone();return i.__filtered__?i.__takeCount__=t3(n,i.__takeCount__):i.__views__.push({size:t3(n,4294967295),type:e+(i.__dir__<0?"Right":"")}),i},rb.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),ts(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rb.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:iu(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),ts(["head","last"],function(e,t){var r="take"+(t?"Right":"");rb.prototype[e]=function(){return this[r](1).value()[0]}}),ts(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rb.prototype[e]=function(){return this.__filtered__?new rb(this):this[r](1)}}),rb.prototype.compact=function(){return this.filter(aL)},rb.prototype.find=function(e){return this.filter(e).head()},rb.prototype.findLast=function(e){return this.reverse().find(e)},rb.prototype.invokeMap=nd(function(e,t){return"function"==typeof e?new rb(this):this.map(function(r){return r2(r,e,t)})}),rb.prototype.reject=function(e){return this.filter(oE(iu(e)))},rb.prototype.slice=function(e,t){e=o6(e);var n=this;return n.__filtered__&&(e>0||t<0)?new rb(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=o6(t))<0?n.dropRight(-t):n.take(t-e)),n)},rb.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rb.prototype.toArray=function(){return this.take(4294967295)},rV(rb.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=rp[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(rp.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof rb,c=s[0],u=l||oj(t),d=function(e){var t=o.apply(rp,tf([e],s));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,g=l&&!f;if(!a&&u){t=g?t:new rb(this);var m=e.apply(t,s);return m.__actions__.push({func:oi,args:[d],thisArg:r}),new rv(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),ts(["pop","push","shift","sort","splice","unshift"],function(e){var t=eS[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rp.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(oj(i)?i:[],e)}return this[r](function(r){return t.apply(oj(r)?r:[],e)})}}),rV(rb.prototype,function(e,t){var r=rp[t];if(r){var n=r.name+"";eR.call(ro,n)||(ro[n]=[]),ro[n].push({name:t,func:r})}}),ro[nQ(r,2).name]=[{name:"wrapper",func:r}],rb.prototype.clone=function(){var e=new rb(this.__wrapped__);return e.__actions__=nU(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nU(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nU(this.__views__),e},rb.prototype.reverse=function(){if(this.__filtered__){var e=new rb(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rb.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=oj(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=t3(t,e+a);break;case"takeRight":e=t2(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=n?s:a-1,u=this.__iteratees__,d=u.length,h=0,f=t3(l,this.__takeCount__);if(!r||!n&&i==l&&f==l)return nE(e,this.__actions__);var p=[];e:for(;l--&&h<f;){c+=t;for(var g=-1,m=e[c];++g<d;){var v=u[g],b=v.iteratee,y=v.type,w=b(m);if(2==y)m=w;else if(!w){if(1==y)continue e;break e}}p[h++]=m}return p},rp.prototype.at=oo,rp.prototype.chain=function(){return on(this)},rp.prototype.commit=function(){return new rv(this.value(),this.__chain__)},rp.prototype.next=function(){this.__values__===r&&(this.__values__=o3(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rp.prototype.plant=function(e){for(var t,n=this;n instanceof rm;){var i=iU(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},rp.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rb){var t=e;return this.__actions__.length&&(t=new rb(this)),(t=t.reverse()).__actions__.push({func:oi,args:[i1],thisArg:r}),new rv(t,this.__chain__)}return this.thru(i1)},rp.prototype.toJSON=rp.prototype.valueOf=rp.prototype.value=function(){return nE(this.__wrapped__,this.__actions__)},rp.prototype.first=rp.prototype.head,e6&&(rp.prototype[e6]=function(){return this}),rp}();e6?((e6.exports=tZ)._=tZ,e5._=tZ):e3._=tZ}).call(nC)}(nA,nA.exports);var nk=Object.defineProperty,nE=Object.defineProperties,nS=Object.getOwnPropertyDescriptors,nT=Object.getOwnPropertySymbols,nI=Object.prototype.hasOwnProperty,nP=Object.prototype.propertyIsEnumerable,nO=(e,t,r)=>t in e?nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nR=(e,t)=>{for(var r in t||(t={}))nI.call(t,r)&&nO(e,r,t[r]);if(nT)for(var r of nT(t))nP.call(t,r)&&nO(e,r,t[r]);return e},nM=(e,t)=>nE(e,nS(t));function nN(e,t,r){var n;let i=(0,a.DQe)(e);return(null==(n=t.rpcMap)?void 0:n[i.reference])||`https://rpc.walletconnect.com/v1/?chainId=${i.namespace}:${i.reference}&projectId=${r}`}function nj(e){return e.includes(":")?e.split(":")[1]:e}function nD(e){return e.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}function nB(e={},t={}){let r=nL(e),n=nL(t);return nA.exports.merge(r,n)}function nL(e){var t,r,n,i;let o={};if(!(0,a.L5o)(e))return o;for(let[s,l]of Object.entries(e)){let e=(0,a.gpE)(s)?[s]:l.chains,c=l.methods||[],u=l.events||[],d=l.rpcMap||{},h=(0,a.Maj)(s);o[h]=nM(nR(nR({},o[h]),l),{chains:(0,a.eGA)(e,null==(t=o[h])?void 0:t.chains),methods:(0,a.eGA)(c,null==(r=o[h])?void 0:r.methods),events:(0,a.eGA)(u,null==(n=o[h])?void 0:n.events),rpcMap:nR(nR({},d),null==(i=o[h])?void 0:i.rpcMap)})}return o}function n$(e){return e.includes(":")?e.split(":")[2]:e}function nU(e){let t={};for(let[r,n]of Object.entries(e)){let e=n.methods||[],i=n.events||[],o=n.accounts||[],s=(0,a.gpE)(r)?[r]:n.chains?n.chains:nD(n.accounts);t[r]={chains:s,methods:e,events:i,accounts:o}}return t}function nz(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):isNaN(Number(e=e.includes(":")?e.split(":")[1]:e))?e:Number(e)}let nF={},nq=e=>nF[e],nH=(e,t)=>{nF[e]=t};class nW{constructor(e){this.name="polkadot",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${e}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nj(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}var nV=Object.defineProperty,nZ=Object.defineProperties,nG=Object.getOwnPropertyDescriptors,nK=Object.getOwnPropertySymbols,nY=Object.prototype.hasOwnProperty,nQ=Object.prototype.propertyIsEnumerable,nJ=(e,t,r)=>t in e?nV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nX=(e,t)=>{for(var r in t||(t={}))nY.call(t,r)&&nJ(e,r,t[r]);if(nK)for(var r of nK(t))nQ.call(t,r)&&nJ(e,r,t[r]);return e},n0=(e,t)=>nZ(e,nG(t));class n1{constructor(e){this.name="eip155",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return await this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return await this.getCapabilities(e)}return this.namespace.methods.includes(e.request.method)?await this.client.request(e):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t),this.chainId=parseInt(e),this.events.emit(n_,`${this.name}:${e}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let r=t||nN(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=parseInt(nj(t));e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}async handleSwitchChain(e){var t,r;let n=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0",i=parseInt(n=n.startsWith("0x")?n:`0x${n}`,16);if(this.isChainApproved(i))this.setDefaultChain(`${i}`);else if(this.namespace.methods.includes("wallet_switchEthereumChain"))await this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:n}]},chainId:null==(r=this.namespace.chains)?void 0:r[0]}),this.setDefaultChain(`${i}`);else throw Error(`Failed to switch to chain 'eip155:${i}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);return null}isChainApproved(e){return this.namespace.chains.includes(`${this.name}:${e}`)}async getCapabilities(e){var t,r,n;let i=null==(r=null==(t=e.request)?void 0:t.params)?void 0:r[0];if(!i)throw Error("Missing address parameter in `wallet_getCapabilities` request");let o=this.client.session.get(e.topic),a=(null==(n=o?.sessionProperties)?void 0:n.capabilities)||{};if(null!=a&&a[i])return a?.[i];let s=await this.client.request(e);try{await this.client.session.update(e.topic,{sessionProperties:n0(nX({},o.sessionProperties||{}),{capabilities:n0(nX({},a||{}),{[i]:s})})})}catch(e){console.warn("Failed to update session with capabilities",e)}return s}}class n2{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nj(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}class n3{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nj(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}class n5{constructor(e){this.name="algorand",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let r=t||nN(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.chainId=e,this.events.emit(n_,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);return typeof r>"u"?void 0:new eT(new nb(r,nq("disableProviderPing")))}}class n6{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let r=this.getCardanoRPCUrl(t),n=nj(t);e[n]=this.createHttpProvider(n,r)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||this.getCardanoRPCUrl(e);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}class n4{constructor(e){this.name="elrond",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nj(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}class n8{constructor(e){this.name="multiversx",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;let n=nj(t);e[n]=this.createHttpProvider(n,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}class n9{constructor(e){this.name="near",this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let r=t||nN(`${this.name}:${e}`,this.namespace);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,r)}this.events.emit(n_,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e&&e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2])||[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{var r;e[t]=this.createHttpProvider(t,null==(r=this.namespace.rpcMap)?void 0:r[t])}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace);return typeof r>"u"?void 0:new eT(new nb(r,nq("disableProviderPing")))}}class n7{constructor(e){this.name=nx,this.namespace=e.namespace,this.events=nq("events"),this.client=nq("client"),this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace.chains=[...new Set((this.namespace.chains||[]).concat(e.chains||[]))],this.namespace.accounts=[...new Set((this.namespace.accounts||[]).concat(e.accounts||[]))],this.namespace.methods=[...new Set((this.namespace.methods||[]).concat(e.methods||[]))],this.namespace.events=[...new Set((this.namespace.events||[]).concat(e.events||[]))],this.httpProviders=this.createHttpProviders()}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}setDefaultChain(e,t){this.httpProviders[e]||this.setHttpProvider(e,t),this.chainId=e,this.events.emit(n_,`${this.name}:${e}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?[...new Set(e.filter(e=>e.split(":")[1]===this.chainId.toString()).map(e=>e.split(":")[2]))]:[]}createHttpProviders(){var e,t;let r={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(e=>{let t=(0,a.DQe)(e);r[`${t.namespace}:${t.reference}`]=this.createHttpProvider(e)}),r}getHttpProvider(e){let t=this.httpProviders[e];if(typeof t>"u")throw Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let r=this.createHttpProvider(e,t);r&&(this.httpProviders[e]=r)}createHttpProvider(e,t){let r=t||nN(e,this.namespace,this.client.core.projectId);if(!r)throw Error(`No RPC url provided for chainId: ${e}`);return new eT(new nb(r,nq("disableProviderPing")))}}var ie=Object.defineProperty,it=Object.defineProperties,ir=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,io=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,is=(e,t,r)=>t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,il=(e,t)=>{for(var r in t||(t={}))io.call(t,r)&&is(e,r,t[r]);if(ii)for(var r of ii(t))ia.call(t,r)&&is(e,r,t[r]);return e},ic=(e,t)=>it(e,ir(t));class iu{constructor(e){this.events=new(o()),this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.disableProviderPing=!1,this.providerOpts=e,this.logger="u">typeof e?.logger&&"string"!=typeof e?.logger?e.logger:(0,F.gw)((0,F.jI)({level:e?.logger||ny})),this.disableProviderPing=e?.disableProviderPing||!1}static async init(e){let t=new iu(e);return await t.initialize(),t}async request(e,t,r){let[n,i]=this.validateChain(t);if(!this.session)throw Error("Please call connect() before request()");return await this.getProvider(n).request({request:il({},e),chainId:`${n}:${i}`,topic:this.session.topic,expiry:r})}sendAsync(e,t,r,n){let i=new Date().getTime();this.request(e,r,n).then(e=>t(null,eg(i,e))).catch(e=>t(e,void 0))}async enable(){if(!this.client)throw Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw Error("Please call connect() before enable()");await this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:(0,a.D6H)("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}async authenticate(e,t){if(!this.client)throw Error("Sign Client not initialized");this.setNamespaces(e),await this.cleanupPendingPairings();let{uri:r,response:n}=await this.client.authenticate(e,t);r&&(this.uri=r,this.events.emit("display_uri",r));let i=await n();if(this.session=i.session,this.session){let e=nU(this.session.namespaces);this.namespaces=nB(this.namespaces,e),this.persist("namespaces",this.namespaces),this.onConnect()}return i}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw Error("Max auto pairing attempts reached");let{uri:r,approval:n}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});r&&(this.uri=r,this.events.emit("display_uri",r)),await n().then(e=>{this.session=e;let t=nU(e.namespaces);this.namespaces=nB(this.namespaces,t),this.persist("namespaces",this.namespaces)}).catch(e=>{if(e.message!==rq)throw e;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{if(!this.session)return;let[r,n]=this.validateChain(e),i=this.getProvider(r);i.name===nx?i.setDefaultChain(`${r}:${n}`,t):i.setDefaultChain(n,t)}catch(e){if(!/Please call connect/.test(e.message))throw e}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if((0,a.qt8)(t)){for(let r of t)e.deletePairings?this.client.core.expirer.set(r.topic,0):await this.client.core.relayer.subscriber.unsubscribe(r.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces"),this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await ni.init({core:this.providerOpts.core,logger:this.providerOpts.logger||ny,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.com",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw Error("Sign Client not initialized");if(!this.session)throw Error("Session not initialized. Please call connect() before enable()");let e=[...new Set(Object.keys(this.session.namespaces).map(e=>(0,a.Maj)(e)))];nH("client",this.client),nH("events",this.events),nH("disableProviderPing",this.disableProviderPing),e.forEach(e=>{if(!this.session)return;let t=function(e,t){let r=Object.keys(t.namespaces).filter(t=>t.includes(e));if(!r.length)return[];let n=[];return r.forEach(e=>{let r=t.namespaces[e].accounts;n.push(...r)}),n}(e,this.session),r=nD(t),n=ic(il({},nB(this.namespaces,this.optionalNamespaces)[e]),{accounts:t,chains:r});switch(e){case"eip155":this.rpcProviders[e]=new n1({namespace:n});break;case"algorand":this.rpcProviders[e]=new n5({namespace:n});break;case"solana":this.rpcProviders[e]=new n2({namespace:n});break;case"cosmos":this.rpcProviders[e]=new n3({namespace:n});break;case"polkadot":this.rpcProviders[e]=new nW({namespace:n});break;case"cip34":this.rpcProviders[e]=new n6({namespace:n});break;case"elrond":this.rpcProviders[e]=new n4({namespace:n});break;case"multiversx":this.rpcProviders[e]=new n8({namespace:n});break;case"near":this.rpcProviders[e]=new n9({namespace:n});break;default:this.rpcProviders[nx]?this.rpcProviders[nx].updateNamespace(n):this.rpcProviders[nx]=new n7({namespace:n})}})}registerEventListeners(){if(typeof this.client>"u")throw Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:r}=t;if("accountsChanged"===r.name){let e=r.data;e&&(0,a.qt8)(e)&&this.events.emit("accountsChanged",e.map(n$))}else if("chainChanged"===r.name){let e=t.chainId,r=t.event.data,n=(0,a.Maj)(e),i=nz(e)!==nz(r)?`${n}:${nz(r)}`:e;this.onChainChanged(i)}else this.events.emit(r.name,r.data);this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var r;let{namespaces:n}=t,i=null==(r=this.client)?void 0:r.session.get(e);this.session=ic(il({},i),{namespaces:n}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",ic(il({},(0,a.D6H)("USER_DISCONNECTED")),{data:e.topic}))}),this.on(n_,e=>{this.onChainChanged(e,!0)})}getProvider(e){return this.rpcProviders[e]||this.rpcProviders[nx]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace(null==(t=this.session)?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:r,sessionProperties:n}=e;t&&Object.keys(t).length&&(this.namespaces=t),r&&Object.keys(r).length&&(this.optionalNamespaces=r),this.sessionProperties=n,this.persist("namespaces",t),this.persist("optionalNamespaces",r)}validateChain(e){let[t,r]=e?.split(":")||["",""];if(!this.namespaces||!Object.keys(this.namespaces).length)return[t,r];if(t&&!Object.keys(this.namespaces||{}).map(e=>(0,a.Maj)(e)).includes(t))throw Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&r)return[t,r];let n=(0,a.Maj)(Object.keys(this.namespaces)[0]),i=this.rpcProviders[n].getDefaultChain();return[n,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){if(!this.namespaces)return;let[r,n]=this.validateChain(e);n&&(t||this.getProvider(r).setDefaultChain(n),this.namespaces[r]?this.namespaces[r].defaultChain=n:this.namespaces[`${r}:${n}`]?this.namespaces[`${r}:${n}`].defaultChain=n:this.namespaces[`${r}:${n}`]={defaultChain:n},this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",n))}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,this.persist("namespaces",void 0),this.persist("optionalNamespaces",void 0),this.persist("sessionProperties",void 0),await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${nw}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${nw}/${e}`)}}let id=["eth_sendTransaction","personal_sign"],ih=["eth_accounts","eth_requestAccounts","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","eth_sendTransaction","personal_sign","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode","wallet_sendCalls","wallet_getCapabilities","wallet_getCallsStatus","wallet_showCallsStatus"],ip=["chainChanged","accountsChanged"],ig=["chainChanged","accountsChanged","message","disconnect","connect"];var im=Object.defineProperty,iv=Object.defineProperties,ib=Object.getOwnPropertyDescriptors,iy=Object.getOwnPropertySymbols,iw=Object.prototype.hasOwnProperty,ix=Object.prototype.propertyIsEnumerable,i_=(e,t,r)=>t in e?im(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iC=(e,t)=>{for(var r in t||(t={}))iw.call(t,r)&&i_(e,r,t[r]);if(iy)for(var r of iy(t))ix.call(t,r)&&i_(e,r,t[r]);return e},iA=(e,t)=>iv(e,ib(t));function ik(e){return Number(e[0].split(":")[1])}function iE(e){return`0x${e.toString(16)}`}class iS{constructor(){this.events=new i.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY="wc@2:ethereum_provider:",this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new iS;return await t.initialize(e),t}async request(e,t){return await this.signer.request(e,this.formatChainId(this.chainId),t)}sendAsync(e,t,r){this.signer.sendAsync(e,t,this.formatChainId(this.chainId),r)}get connected(){return!!this.signer.client&&this.signer.client.core.relayer.connected}get connecting(){return!!this.signer.client&&this.signer.client.core.relayer.connecting}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:r}=function(e){let{chains:t,optionalChains:r,methods:n,optionalMethods:i,events:o,optionalEvents:s,rpcMap:l}=e;if(!(0,a.qt8)(t))throw Error("Invalid chains");let c={chains:t,methods:n||id,events:o||ip,rpcMap:iC({},t.length?{[ik(t)]:l[ik(t)]}:{})},u=o?.filter(e=>!ip.includes(e)),d=n?.filter(e=>!id.includes(e));if(!r&&!s&&!i&&!(null!=u&&u.length)&&!(null!=d&&d.length))return{required:t.length?c:void 0};let h={chains:[...new Set(u?.length&&d?.length||!r?c.chains.concat(r||[]):r)],methods:[...new Set(c.methods.concat(null!=i&&i.length?i:ih))],events:[...new Set(c.events.concat(null!=s&&s.length?s:ig))],rpcMap:l};return{required:t.length?c:void 0,optional:r.length?h:void 0}}(this.rpc);try{let n=await new Promise(async(n,i)=>{var o;this.rpc.showQrModal&&(null==(o=this.modal)||o.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),i(Error("Connection request reset. Please try again.")))})),await this.signer.connect(iA(iC({namespaces:iC({},t&&{[this.namespace]:t})},r&&{optionalNamespaces:{[this.namespace]:r}}),{pairingTopic:e?.pairingTopic})).then(e=>{n(e)}).catch(e=>{i(Error(e.message))})});if(!n)return;let i=(0,a.guN)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:i),this.setAccounts(i),this.events.emit("connect",{chainId:iE(this.chainId)})}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async authenticate(e,t){if(!this.signer.client)throw Error("Provider not initialized. Call init() first");this.loadConnectOpts({chains:e?.chains});try{let r=await new Promise(async(r,n)=>{var i;this.rpc.showQrModal&&(null==(i=this.modal)||i.subscribeModal(e=>{e.open||this.signer.session||(this.signer.abortPairingAttempt(),n(Error("Connection request reset. Please try again.")))})),await this.signer.authenticate(iA(iC({},e),{chains:this.rpc.chains}),t).then(e=>{r(e)}).catch(e=>{n(Error(e.message))})}),n=r.session;if(n){let e=(0,a.guN)(n.namespaces,[this.namespace]);this.setChainIds(this.rpc.chains.length?this.rpc.chains:e),this.setAccounts(e),this.events.emit("connect",{chainId:iE(this.chainId)})}return r}catch(e){throw this.signer.logger.error(e),e}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:r}=t;"accountsChanged"===r.name?(this.accounts=this.parseAccounts(r.data),this.events.emit("accountsChanged",this.accounts)):"chainChanged"===r.name?this.setChainId(this.formatChainId(r.data)):this.events.emit(r.name,r.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",iE(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",iA(iC({},(0,a.D6H)("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,r;this.rpc.showQrModal&&(null==(t=this.modal)||t.closeModal(),null==(r=this.modal)||r.openModal({uri:e})),this.events.emit("display_uri",e)})}switchEthereumChain(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return"string"==typeof e&&e.startsWith(`${this.namespace}:`)}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(e=>this.isCompatibleChainId(e)).map(e=>this.parseChainId(e));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",iE(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.switchEthereumChain(t)}}parseAccountId(e){let[t,r,n]=e.split(":");return{chainId:`${t}:${r}`,address:n}}setAccounts(e){this.accounts=e.filter(e=>this.parseChainId(this.parseAccountId(e).chainId)===this.chainId).map(e=>this.parseAccountId(e).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,r;let n=null!=(t=e?.chains)?t:[],i=null!=(r=e?.optionalChains)?r:[],o=n.concat(i);if(!o.length)throw Error("No chains specified in either `chains` or `optionalChains`");let a=n.length?e?.methods||id:[],s=n.length?e?.events||ip:[],l=e?.optionalMethods||[],c=e?.optionalEvents||[],u=e?.rpcMap||this.buildRpcMap(o,e.projectId),d=e?.qrModalOptions||void 0;return{chains:n?.map(e=>this.formatChainId(e)),optionalChains:i.map(e=>this.formatChainId(e)),methods:a,events:s,optionalMethods:l,optionalEvents:c,rpcMap:u,showQrModal:!!(null!=e&&e.showQrModal),qrModalOptions:d,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let r={};return e.forEach(e=>{r[e]=this.getRpcUrl(e,t)}),r}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=this.rpc.chains.length?ik(this.rpc.chains):ik(this.rpc.optionalChains),this.signer=await iu.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata,disableProviderPing:e.disableProviderPing,relayUrl:e.relayUrl,storageOptions:e.storageOptions,customStoragePrefix:e.customStoragePrefix,telemetryEnabled:e.telemetryEnabled}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let e;try{let{WalletConnectModal:t}=await r.e(9343).then(r.bind(r,59343));e=t}catch{throw Error("To use QR modal, please install @walletconnect/modal package")}if(e)try{this.modal=new e(iC({projectId:this.rpc.projectId},this.rpc.qrModalOptions))}catch(e){throw this.signer.logger.error(e),Error("Could not generate WalletConnectModal Instance")}}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:r,rpcMap:n}=e;t&&(0,a.qt8)(t)&&(this.rpc.chains=t.map(e=>this.formatChainId(e)),t.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)})),r&&(0,a.qt8)(r)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=r?.map(e=>this.formatChainId(e)),r.forEach(e=>{this.rpc.rpcMap[e]=n?.[e]||this.getRpcUrl(e)}))}getRpcUrl(e,t){var r;return(null==(r=this.rpc.rpcMap)?void 0:r[e])||`https://rpc.walletconnect.com/v1/?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(this.session)try{let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`),t=this.session.namespaces[`${this.namespace}:${e}`]?this.session.namespaces[`${this.namespace}:${e}`]:this.session.namespaces[this.namespace];this.setChainIds(e?[this.formatChainId(e)]:t?.accounts),this.setAccounts(t?.accounts)}catch(e){this.signer.logger.error("Failed to load persisted session, clearing state..."),this.signer.logger.error(e),await this.disconnect().catch(e=>this.signer.logger.warn(e))}}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return"string"==typeof e||e instanceof String?[this.parseAccount(e)]:e.map(e=>this.parseAccount(e))}}let iT=iS},72030:function(e){"use strict";e.exports=function(){throw Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},12044:function(e,t,r){"use strict";r.d(t,{Ep:function(){return A},Fd:function(){return C},Rt:function(){return k},gw:function(){return i.a},jI:function(){return _}});var n=r(67686),i=r.n(n),o=r(85094);let a={level:"info"},s="custom_context";class l{constructor(e){this.nodeValue=e,this.sizeInBytes=new TextEncoder().encode(this.nodeValue).length,this.next=null}get value(){return this.nodeValue}get size(){return this.sizeInBytes}}class c{constructor(e){this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=e,this.sizeInBytes=0}append(e){let t=new l(e);if(t.size>this.maxSizeInBytes)throw Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?this.tail&&(this.tail.next=t):this.head=t,this.tail=t,this.lengthInNodes++,this.sizeInBytes+=t.size}shift(){if(!this.head)return;let e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}toArray(){let e=[],t=this.head;for(;null!==t;)e.push(t.value),t=t.next;return e}get length(){return this.lengthInNodes}get size(){return this.sizeInBytes}toOrderedArray(){return Array.from(this)}[Symbol.iterator](){let e=this.head;return{next:()=>{if(!e)return{done:!0,value:null};let t=e.value;return e=e.next,{done:!1,value:t}}}}}class u{constructor(e,t=1024e3){this.level=e??"error",this.levelValue=n.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=t,this.logs=new c(this.MAX_LOG_SIZE_IN_BYTES)}forwardToConsole(e,t){t===n.levels.values.error?console.error(e):t===n.levels.values.warn?console.warn(e):t===n.levels.values.debug?console.debug(e):t===n.levels.values.trace?console.trace(e):console.log(e)}appendToLogs(e){this.logs.append((0,o.u)({timestamp:new Date().toISOString(),log:e}));let t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}getLogs(){return this.logs}clearLogs(){this.logs=new c(this.MAX_LOG_SIZE_IN_BYTES)}getLogArray(){return Array.from(this.logs)}logsToBlob(e){let t=this.getLogArray();return t.push((0,o.u)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}class d{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}downloadLogsBlobInBrowser(e){let t=URL.createObjectURL(this.logsToBlob(e)),r=document.createElement("a");r.href=t,r.download=`walletconnect-logs-${new Date().toISOString()}.txt`,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(t)}}class h{constructor(e,t=1024e3){this.baseChunkLogger=new u(e,t)}write(e){this.baseChunkLogger.appendToLogs(e)}getLogs(){return this.baseChunkLogger.getLogs()}clearLogs(){this.baseChunkLogger.clearLogs()}getLogArray(){return this.baseChunkLogger.getLogArray()}logsToBlob(e){return this.baseChunkLogger.logsToBlob(e)}}var f=Object.defineProperty,p=Object.defineProperties,g=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,y=(e,t,r)=>t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w=(e,t)=>{for(var r in t||(t={}))v.call(t,r)&&y(e,r,t[r]);if(m)for(var r of m(t))b.call(t,r)&&y(e,r,t[r]);return e},x=(e,t)=>p(e,g(t));function _(e){return x(w({},e),{level:e?.level||a.level})}function C(e,t=s){return typeof e.bindings>"u"?function(e,t=s){return e[t]||""}(e,t):e.bindings().context||""}function A(e,t,r=s){let n=function(e,t,r=s){let n=C(e,r);return n.trim()?`${n}/${t}`:t}(e,t,r);return function(e,t,r=s){return e[r]=t,e}(e.child({context:n}),n,r)}function k(e){return"u">typeof e.loggerOverride&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:"u">typeof window?function(e){var t,r;let n=new d(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:i()(x(w({},e.opts),{level:"trace",browser:x(w({},null==(r=e.opts)?void 0:r.browser),{write:e=>n.write(e)})})),chunkLoggerController:n}}(e):function(e){var t;let r=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:i()(x(w({},e.opts),{level:"trace"}),r),chunkLoggerController:r}}(e)}},94075:function(e,t,r){"use strict";r.d(t,{decodeJWT:function(){return _},encodeIss:function(){return x},generateKeyPair:function(){return C},signJWT:function(){return A}});var n=r(31050),i=r(31416),o=r(66736);let a="base64url",s="utf8",l="utf8",c="base58btc";function u(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function d(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?u(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}var h=r(91835);function f(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let p=f("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),g=f("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=d((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),m={utf8:p,"utf-8":p,hex:h.gh.base16,latin1:g,ascii:g,binary:g,...h.gh};function v(e,t="utf8"){let r=m[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function b(e,t="utf8"){let r=m[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?u(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function y(e){return function(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return JSON.parse(e)}catch(t){return e}}(v(b(e,a),s))}function w(e){return v(b("string"==typeof e?e:JSON.stringify(e),s),a)}function x(e){return["did","key","z"+v(function(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=d(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return u(r)}([b("K36",c),e]),c)].join(":")}function _(e){let t=e.split("."),r=y(t[0]);return{header:r,payload:y(t[1]),signature:b(t[2],a),data:b(t.slice(0,2).join("."),l)}}function C(e=(0,i.randomBytes)(32)){return n._w(e)}async function A(e,t,r,i,s=(0,o.fromMiliseconds)(Date.now())){var c,u;let d={alg:"EdDSA",typ:"JWT"},h={iss:x(i.publicKey),sub:e,aud:t,iat:s,exp:s+r},f=b([w((c={header:d,payload:h}).header),w(c.payload)].join("."),l);return[w((u={header:d,payload:h,signature:n.Xx(i.secretKey,f)}).header),w(u.payload),v(u.signature,a)].join(".")}r(43014)},43014:function(){},85094:function(e,t,r){"use strict";r.d(t,{D:function(){return o},u:function(){return a}});let n=e=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"n":t),i=e=>JSON.parse(e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),(e,t)=>"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t);function o(e){if("string"!=typeof e)throw Error(`Cannot safe json parse value of type ${typeof e}`);try{return i(e)}catch(t){return e}}function a(e){return"string"==typeof e?e:n(e)||""}},36900:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(30004);n.__exportStar(r(46869),t),n.__exportStar(r(88033),t)},46869:function(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},88033:function(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},66736:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(30004);n.__exportStar(r(44273),t),n.__exportStar(r(47001),t),n.__exportStar(r(52939),t),n.__exportStar(r(36900),t)},52939:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(30004).__exportStar(r(88766),t)},88766:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWatch=void 0;class r{}t.IWatch=r},83207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromMiliseconds=t.toMiliseconds=void 0;let n=r(36900);t.toMiliseconds=function(e){return e*n.ONE_THOUSAND},t.fromMiliseconds=function(e){return Math.floor(e/n.ONE_THOUSAND)}},83873:function(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)})}},44273:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(30004);n.__exportStar(r(83873),t),n.__exportStar(r(83207),t)},47001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;class r{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(void 0!==t.elapsed)throw Error(`Watch already stopped for label: ${e}`);let r=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:r})}get(e){let t=this.timestamps.get(e);if(void 0===t)throw Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}}t.Watch=r,t.default=r},30004:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return y},__asyncValues:function(){return x},__await:function(){return b},__awaiter:function(){return u},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return E},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return A},__importStar:function(){return C},__makeTemplateObject:function(){return _},__metadata:function(){return c},__param:function(){return l},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return v},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=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++,n=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(e){o=[6,e],n=0}finally{r=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,r,n){void 0===n&&(n=r),e[n]=t[r]}function f(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}}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,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function E(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},39240:function(e,t,r){"use strict";let n,i;r.d(t,{AWt:function(){return ng},$dT:function(){return nm},zl_:function(){return nv},O6B:function(){return iR},rVF:function(){return ny},FpL:function(){return nw},E12:function(){return n2},gn4:function(){return ea},H1S:function(){return ee},IkP:function(){return nc},hFY:function(){return et},WGe:function(){return nS},xQU:function(){return nO},peR:function(){return nP},m$A:function(){return nC},vBi:function(){return nM},Spz:function(){return nI},HIp:function(){return nT},E0T:function(){return el},GqV:function(){return ei},wvx:function(){return no},$0m:function(){return Y},Z42:function(){return en},Bvr:function(){return nQ},Au2:function(){return nx},jdp:function(){return n_},guN:function(){return j},DaH:function(){return K},X_B:function(){return G},YHE:function(){return N},ouN:function(){return nh},bW6:function(){return ed},NmC:function(){return nn},ZzI:function(){return nt},kCb:function(){return n6},L9d:function(){return nJ},Y31:function(){return nd},DJo:function(){return nr},hA9:function(){return nf},cOS:function(){return nU},_HE:function(){return n$},D6H:function(){return n4},waw:function(){return eh},HhN:function(){return eu},YmJ:function(){return nA},rjm:function(){return nk},jUY:function(){return V},gpE:function(){return n0},rFo:function(){return ik},BwD:function(){return es},UGU:function(){return H},Ggh:function(){return iT},xWS:function(){return ia},b$m:function(){return W},Ih8:function(){return ir},h1R:function(){return is},Q8x:function(){return nD},Hs$:function(){return nB},o8e:function(){return n7},qt8:function(){return n8},DdM:function(){return il},H4H:function(){return ib},nfW:function(){return ix},Q01:function(){return im},ing:function(){return ih},p8o:function(){return i_},B95:function(){return iA},alS:function(){return iC},L5o:function(){return n9},EJd:function(){return iv},Z26:function(){return ip},PMr:function(){return ig},hHR:function(){return iy},ONw:function(){return iS},naP:function(){return id},JTI:function(){return iw},M_r:function(){return ie},jvJ:function(){return io},KCv:function(){return J},eGA:function(){return ec},qJM:function(){return nu},IPd:function(){return X},DQe:function(){return R},iPz:function(){return eo},Maj:function(){return n1},heJ:function(){return nY},uwg:function(){return iP},k$y:function(){return ef},Llj:function(){return nN},ENt:function(){return nj},c4l:function(){return ni},NbI:function(){return nL}});var o,a,s,l,c,u,d,h,f,p,g,m=r(43631),v=r(66736),b=r(62873),y=r(65755),w=r(17563),x=r(15501),_=r(512),C=r(31416),A=r(73294),k=r(57664),E=r(94622),S=r(86266),T=r(94075);let I={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 P=r(34155),O=r(48764).Buffer;function R(e){let[t,r]=e.split(":");return{namespace:t,reference:r}}function M(e){let{namespace:t,reference:r}=function(e){let[t,r,n]=e.split(":");return{namespace:t,reference:r,address:n}}(e);return function(e){let{namespace:t,reference:r}=e;return[t,r].join(":")}({namespace:t,reference:r})}function N(e){return function(e,t){let r=[];return e.forEach(e=>{let n=t(e);r.includes(n)||r.push(n)}),r}(e,M)}function j(e,t=[]){let r=[];return Object.keys(e).forEach(n=>{if(t.length&&!t.includes(n))return;let i=e[n];r.push(...i.accounts)}),r}function D(e,t){return e.includes(":")?[e]:t.chains||[]}var B=Object.defineProperty,L=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,z=(e,t,r)=>t in e?B(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))$.call(t,r)&&z(e,r,t[r]);if(L)for(var r of L(t))U.call(t,r)&&z(e,r,t[r]);return e};let q={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"};function H(){return"u">typeof P&&"u">typeof P.versions&&"u">typeof P.versions.node}function W(){return!(0,b.getDocument)()&&!!(0,b.getNavigator)()&&"ReactNative"===navigator.product}function V(){return!H()&&!!(0,b.getNavigator)()&&!!(0,b.getDocument)()}function Z(){return W()?q.reactNative:H()?q.node:V()?q.browser:q.unknown}function G(){var e;try{return W()&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Application)?null==(e=r.g.Application)?void 0:e.applicationId:void 0}catch{return}}function K(){return(0,y.D)()||{name:"",description:"",url:"",icons:[""]}}function Y({protocol:e,version:t,relayUrl:n,sdkVersion:i,auth:o,projectId:a,useOnCloseEvent:s,bundleId:l}){var c,u;let d;let h=n.split("?"),f=function(e,t,n){let i=function(){if(Z()===q.reactNative&&"u">typeof r.g&&"u">typeof(null==r.g?void 0:r.g.Platform)){let{OS:e,Version:t}=r.g.Platform;return[e,t].join("-")}let e=(0,m.detect)();if(null===e)return"unknown";let 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;let t=Z();return t===q.browser?[t,(null==(e=(0,b.getLocation)())?void 0:e.host)||"unknown"].join(":"):t}();return[[e,t].join("-"),["js",n].join("-"),i,o].join("/")}(e,t,i),p=(c=h[1]||"",u={auth:o,ua:f,projectId:a,useOnCloseEvent:s||void 0,origin:l||void 0},d=F(F({},d=w.parse(c)),u),c=w.stringify(d));return h[0]+"?"+p}function Q(e,t){return e.filter(e=>t.includes(e)).length===e.length}function J(e){return Object.fromEntries(e.entries())}function X(e){return new Map(Object.entries(e))}function ee(e=v.FIVE_MINUTES,t){let r,n,i;let o=(0,v.toMiliseconds)(e||v.FIVE_MINUTES);return{resolve:e=>{i&&r&&(clearTimeout(i),r(e))},reject:e=>{i&&n&&(clearTimeout(i),n(e))},done:()=>new Promise((e,a)=>{i=setTimeout(()=>{a(Error(t))},o),r=e,n=a})}}function et(e,t,r){return new Promise(async(n,i)=>{let o=setTimeout(()=>i(Error(r)),t);try{let t=await e;n(t)}catch(e){i(e)}clearTimeout(o)})}function er(e,t){if("string"==typeof t&&t.startsWith(`${e}:`))return t;if("topic"===e.toLowerCase()){if("string"!=typeof t)throw Error('Value must be "string" for expirer target type: topic');return`topic:${t}`}if("id"===e.toLowerCase()){if("number"!=typeof t)throw Error('Value must be "number" for expirer target type: id');return`id:${t}`}throw Error(`Unknown expirer target type: ${e}`)}function en(e){return er("topic",e)}function ei(e){return er("id",e)}function eo(e){let[t,r]=e.split(":"),n={id:void 0,topic:void 0};if("topic"===t&&"string"==typeof r)n.topic=r;else if("id"===t&&Number.isInteger(Number(r)))n.id=Number(r);else throw Error(`Invalid target, expected id:number or topic:string, got ${t}:${r}`);return n}function ea(e,t){return(0,v.fromMiliseconds)((t||Date.now())+(0,v.toMiliseconds)(e))}function es(e){return Date.now()>=(0,v.toMiliseconds)(e)}function el(e,t){return`${e}${t?`:${t}`:""}`}function ec(e=[],t=[]){return[...new Set([...e,...t])]}async function eu({id:e,topic:t,wcDeepLink:n}){var i;try{if(!n)return;let o="string"==typeof n?JSON.parse(n):n,a=o?.href;if("string"!=typeof a)return;a.endsWith("/")&&(a=a.slice(0,-1));let s=`${a}/wc?requestId=${e}&sessionTopic=${t}`,l=Z();if(l===q.browser){if(!(null!=(i=(0,b.getDocument)())&&i.hasFocus())){console.warn("Document does not have focus, skipping deeplink.");return}s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener")}else l===q.reactNative&&"u">typeof(null==r.g?void 0:r.g.Linking)&&await r.g.Linking.openURL(s)}catch(e){console.error(e)}}async function ed(e,t){try{return await e.getItem(t)||(V()?localStorage.getItem(t):void 0)}catch(e){console.error(e)}}function eh(e,t){if(!e.includes(t))return null;let r=e.split(/([&,?,=])/),n=r.indexOf(t);return r[n+2]}function ef(){return"u">typeof crypto&&null!=crypto&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var ep="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof r.g?r.g:"u">typeof self?self:{},eg={exports:{}};!function(){var e="input is invalid type",t="object"==typeof window,r=t?window:{};r.JS_SHA3_NO_WINDOW&&(t=!1);var n=!t&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof P&&P.versions&&P.versions.node?r=ep:n&&(r=self);var i=!r.JS_SHA3_NO_COMMON_JS&&eg.exports,o=!r.JS_SHA3_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,a="0123456789abcdef".split(""),s=[4,1024,262144,67108864],l=[0,8,16,24],c=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],u=[224,256,384,512],d=[128,256],h=["hex","buffer","arrayBuffer","array","digest"],f={128:168,256:136};(r.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),o&&(r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var p=function(e,t,r){return function(n){return new I(e,t,e).update(n)[r]()}},g=function(e,t,r){return function(n,i){return new I(e,t,i).update(n)[r]()}},m=function(e,t,r){return function(t,n,i,o){return x["cshake"+e].update(t,n,i,o)[r]()}},v=function(e,t,r){return function(t,n,i,o){return x["kmac"+e].update(t,n,i,o)[r]()}},b=function(e,t,r,n){for(var i=0;i<h.length;++i){var o=h[i];e[o]=t(r,n,o)}return e},y=function(e,t){var r=p(e,t,"hex");return r.create=function(){return new I(e,t,e)},r.update=function(e){return r.create().update(e)},b(r,p,e,t)},w=[{name:"keccak",padding:[1,256,65536,16777216],bits:u,createMethod:y},{name:"sha3",padding:[6,1536,393216,100663296],bits:u,createMethod:y},{name:"shake",padding:[31,7936,2031616,520093696],bits:d,createMethod:function(e,t){var r=g(e,t,"hex");return r.create=function(r){return new I(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},b(r,g,e,t)}},{name:"cshake",padding:s,bits:d,createMethod:function(e,t){var r=f[e],n=m(e,t,"hex");return n.create=function(n,i,o){return i||o?new I(e,t,n).bytepad([i,o],r):x["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},b(n,m,e,t)}},{name:"kmac",padding:s,bits:d,createMethod:function(e,t){var r=f[e],n=v(e,t,"hex");return n.create=function(n,i,o){return new O(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},b(n,v,e,t)}}],x={},_=[],C=0;C<w.length;++C)for(var A=w[C],k=A.bits,E=0;E<k.length;++E){var S=A.name+"_"+k[E];if(_.push(S),x[S]=A.createMethod(k[E],A.padding),"sha3"!==A.name){var T=A.name+k[E];_.push(T),x[T]=x[S]}}function I(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function O(e,t,r){I.call(this,e,t,r)}I.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!o||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}for(var i,a,s=this.blocks,c=this.byteCount,u=t.length,d=this.blockCount,h=0,f=this.s;h<u;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<d+1;++i)s[i]=0;if(r)for(i=this.start;h<u&&i<c;++h)s[i>>2]|=t[h]<<l[3&i++];else for(i=this.start;h<u&&i<c;++h)(a=t.charCodeAt(h))<128?s[i>>2]|=a<<l[3&i++]:(a<2048?s[i>>2]|=(192|a>>6)<<l[3&i++]:(a<55296||a>=57344?s[i>>2]|=(224|a>>12)<<l[3&i++]:(a=65536+((1023&a)<<10|1023&t.charCodeAt(++h)),s[i>>2]|=(240|a>>18)<<l[3&i++],s[i>>2]|=(128|a>>12&63)<<l[3&i++]),s[i>>2]|=(128|a>>6&63)<<l[3&i++]),s[i>>2]|=(128|63&a)<<l[3&i++]);if(this.lastByteIndex=i,i>=c){for(this.start=i-c,this.block=s[d],i=0;i<d;++i)f[i]^=s[i];R(f),this.reset=!0}else this.start=i}return this},I.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},I.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"===n){if(null===t)throw Error(e);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!o||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}var i=0,a=t.length;if(r)i=a;else for(var s=0;s<t.length;++s){var l=t.charCodeAt(s);l<128?i+=1:l<2048?i+=2:l<55296||l>=57344?i+=3:(l=65536+((1023&l)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},I.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},I.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];R(n)}},I.prototype.toString=I.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,l="";s<n;){for(o=0;o<t&&s<n;++o,++s)l+=a[(e=r[o])>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t==0&&(R(r),o=0)}return i&&(l+=a[(e=r[o])>>4&15]+a[15&e],i>1&&(l+=a[e>>12&15]+a[e>>8&15]),i>2&&(l+=a[e>>20&15]+a[e>>16&15])),l},I.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=new ArrayBuffer(i?n+1<<2:s);for(var l=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)l[a]=r[o];a%t==0&&R(r)}return i&&(l[o]=r[o],e=e.slice(0,s)),e},I.prototype.buffer=I.prototype.arrayBuffer,I.prototype.digest=I.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,l=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],l[e]=255&t,l[e+1]=t>>8&255,l[e+2]=t>>16&255,l[e+3]=t>>24&255;s%r==0&&R(n)}return o&&(e=s<<2,t=n[a],l[e]=255&t,o>1&&(l[e+1]=t>>8&255),o>2&&(l[e+2]=t>>16&255)),l},O.prototype=new I,O.prototype.finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var R=function(e){var t,r,n,i,o,a,s,l,u,d,h,f,p,g,m,v,b,y,w,x,_,C,A,k,E,S,T,I,P,O,R,M,N,j,D,B,L,$,U,z,F,q,H,W,V,Z,G,K,Y,Q,J,X,ee,et,er,en,ei,eo,ea,es,el,ec,eu;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=f^(a<<1|s>>>31),r=p^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(l<<1|u>>>31),r=o^(u<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(d<<1|h>>>31),r=s^(h<<1|d>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(f<<1|p>>>31),r=u^(p<<1|f>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=d^(i<<1|o>>>31),r=h^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,g=e[0],m=e[1],Z=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,I=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,es=e[31]<<9|e[30]>>>23,el=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,K=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ec=e[42]<<2|e[43]>>>30,eu=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,J=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,k=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,$=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,_=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,T=e[19]<<20|e[18]>>>12,eo=e[29]<<7|e[28]>>>25,ea=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,F=e[39]<<8|e[38]>>>24,C=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=g^~v&y,e[1]=m^~b&w,e[10]=k^~S&I,e[11]=E^~T&P,e[20]=j^~B&$,e[21]=D^~L&U,e[30]=W^~Z&K,e[31]=V^~G&Y,e[40]=et^~en&eo,e[41]=er^~ei&ea,e[2]=v^~y&x,e[3]=b^~w&_,e[12]=S^~I&O,e[13]=T^~P&R,e[22]=B^~$&z,e[23]=L^~U&F,e[32]=Z^~K&Q,e[33]=G^~Y&J,e[42]=en^~eo&es,e[43]=ei^~ea&el,e[4]=y^~x&C,e[5]=w^~_&A,e[14]=I^~O&M,e[15]=P^~R&N,e[24]=$^~z&q,e[25]=U^~F&H,e[34]=K^~Q&X,e[35]=Y^~J&ee,e[44]=eo^~es&ec,e[45]=ea^~el&eu,e[6]=x^~C&g,e[7]=_^~A&m,e[16]=O^~M&k,e[17]=R^~N&E,e[26]=z^~q&j,e[27]=F^~H&D,e[36]=Q^~X&W,e[37]=J^~ee&V,e[46]=es^~ec&et,e[47]=el^~eu&er,e[8]=C^~g&v,e[9]=A^~m&b,e[18]=M^~k&S,e[19]=N^~E&T,e[28]=q^~j&B,e[29]=H^~D&L,e[38]=X^~W&Z,e[39]=ee^~V&G,e[48]=ec^~et&en,e[49]=eu^~er&ei,e[0]^=c[n],e[1]^=c[n+1]};if(i)eg.exports=x;else for(C=0;C<_.length;++C)r[_[C]]=x[_[C]]}();var em=eg.exports;let ev=!1,eb=!1,ey={debug:1,default:2,info:2,warning:3,error:4,off:5},ew=ey.default,ex=null,e_=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch{e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(a=d||(d={})).DEBUG="DEBUG",a.INFO="INFO",a.WARNING="WARNING",a.ERROR="ERROR",a.OFF="OFF",(s=h||(h={})).UNKNOWN_ERROR="UNKNOWN_ERROR",s.NOT_IMPLEMENTED="NOT_IMPLEMENTED",s.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",s.NETWORK_ERROR="NETWORK_ERROR",s.SERVER_ERROR="SERVER_ERROR",s.TIMEOUT="TIMEOUT",s.BUFFER_OVERRUN="BUFFER_OVERRUN",s.NUMERIC_FAULT="NUMERIC_FAULT",s.MISSING_NEW="MISSING_NEW",s.INVALID_ARGUMENT="INVALID_ARGUMENT",s.MISSING_ARGUMENT="MISSING_ARGUMENT",s.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",s.CALL_EXCEPTION="CALL_EXCEPTION",s.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",s.NONCE_EXPIRED="NONCE_EXPIRED",s.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",s.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",s.TRANSACTION_REPLACED="TRANSACTION_REPLACED",s.ACTION_REJECTED="ACTION_REJECTED";let eC="0123456789abcdef";class eA{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==ey[r]&&this.throwArgumentError("invalid log level name","logLevel",e),ew>ey[r]||console.log.apply(console,t)}debug(...e){this._log(eA.levels.DEBUG,e)}info(...e){this._log(eA.levels.INFO,e)}warn(...e){this._log(eA.levels.WARNING,e)}makeError(e,t,r){if(eb)return this.makeError("censored error",t,{});t||(t=eA.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=eC[t[e]>>4]+eC[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch{n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let i=e,o="";switch(t){case h.NUMERIC_FAULT:{o="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case h.CALL_EXCEPTION:case h.INSUFFICIENT_FUNDS:case h.MISSING_NEW:case h.NONCE_EXPIRED:case h.REPLACEMENT_UNDERPRICED:case h.TRANSACTION_REPLACED:case h.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let a=Error(e);return a.reason=i,a.code=t,Object.keys(r).forEach(function(e){a[e]=r[e]}),a}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,eA.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){e_&&this.throwError("platform missing String.prototype.normalize",eA.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:e_})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,eA.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,eA.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,eA.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,eA.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",eA.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",eA.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",eA.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return ex||(ex=new eA("logger/5.7.0")),ex}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",eA.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),ev){if(!e)return;this.globalLogger().throwError("error censorship permanent",eA.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}eb=!!e,ev=!!t}static setLogLevel(e){let t=ey[e.toLowerCase()];if(null==t){eA.globalLogger().warn("invalid log level - "+e);return}ew=t}static from(e){return new eA(e)}}eA.errors=h,eA.levels=d;let ek=new eA("bytes/5.7.0");function eE(e){return!!e.toHexString}function eS(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return eS(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function eT(e){return"number"==typeof e&&e==e&&e%1==0}function eI(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!eT(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!eT(r)||r<0||r>=256)return!1}return!0}function eP(e,t){if(t||(t={}),"number"==typeof e){ek.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),eS(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),eE(e)&&(e=e.toHexString()),eO(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":ek.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return eS(new Uint8Array(n))}return eI(e)?eS(new Uint8Array(e)):ek.throwArgumentError("invalid arrayify value","value",e)}function eO(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}let eR="0123456789abcdef";function eM(e,t){if(t||(t={}),"number"==typeof e){ek.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=eR[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),eE(e))return e.toHexString();if(eO(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":ek.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(eI(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=eR[(240&n)>>4]+eR[15&n]}return t}return ek.throwArgumentError("invalid hexlify value","value",e)}function eN(e,t,r){return"string"!=typeof e?e=eM(e):(!eO(e)||e.length%2)&&ek.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function ej(e,t){for("string"!=typeof e?e=eM(e):eO(e)||ek.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&ek.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function eD(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(eO(e)&&!(e.length%2)||eI(e)){let r=eP(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=eM(r.slice(0,32)),t.s=eM(r.slice(32,64))):65===r.length?(t.r=eM(r.slice(0,32)),t.s=eM(r.slice(32,64)),t.v=r[64]):ek.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:ek.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=eM(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=function(e,t){(e=eP(e)).length>t&&ek.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),eS(r)}(eP(t._vs),32);t._vs=eM(r);let n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&ek.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let i=eM(r);null==t.s?t.s=i:t.s!==i&&ek.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?ek.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&ek.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&eO(t.r)?t.r=ej(t.r,32):ek.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&eO(t.s)?t.s=ej(t.s,32):ek.throwArgumentError("signature missing or invalid s","signature",e);let r=eP(t.s);r[0]>=128&&ek.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let n=eM(r);t._vs&&(eO(t._vs)||ek.throwArgumentError("signature invalid _vs","signature",e),t._vs=ej(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&ek.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function eB(e){return"0x"+em.keccak_256(eP(e))}var eL={exports:{}},e$=function(e){var t=e.default;if("function"==typeof t){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze({__proto__:null,default:{}}));!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{u="u">typeof window&&"u">typeof window.Buffer?window.Buffer:e$.Buffer}catch{}function o(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function a(e,t,r){var n=o(e,r);return r-1>=t&&(n|=o(e,r-1)<<4),n}function s(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),l=t;l<s;l++){var c=e.charCodeAt(l)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,l=Math.min(o,o-a)+r,c=0,u=r;u<l;u+=n)c=s(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=s(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"u">typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch{i.prototype.inspect=c}else i.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}i.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var n,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&16777215).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?g+n:d[c-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},u&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(u,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=e.allocUnsafe?e.allocUnsafe(o):new e(o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===o?(r<e.length&&(e[r++]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 8191&t||(r+=13,t>>>=13),127&t||(r+=7,t>>>=7),15&t||(r+=4,t>>>=4),3&t||(r+=2,t>>>=2),1&t||r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return r((this.negative|e.negative)==0),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return r((this.negative|e.negative)==0),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return r((this.negative|e.negative)==0),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),t?this.words[n]=this.words[n]|1<<i:this.words[n]=this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],v=8191&m,b=m>>>13,y=0|a[3],w=8191&y,x=y>>>13,_=0|a[4],C=8191&_,A=_>>>13,k=0|a[5],E=8191&k,S=k>>>13,T=0|a[6],I=8191&T,P=T>>>13,O=0|a[7],R=8191&O,M=O>>>13,N=0|a[8],j=8191&N,D=N>>>13,B=0|a[9],L=8191&B,$=B>>>13,U=0|s[0],z=8191&U,F=U>>>13,q=0|s[1],H=8191&q,W=q>>>13,V=0|s[2],Z=8191&V,G=V>>>13,K=0|s[3],Y=8191&K,Q=K>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ef=0|s[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(d,z),i=(i=Math.imul(d,F))+Math.imul(h,z)|0,o=Math.imul(h,F);var em=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,F))+Math.imul(g,z)|0,o=Math.imul(g,F),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,W)|0)+Math.imul(h,H)|0,o=o+Math.imul(h,W)|0;var ev=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,F))+Math.imul(b,z)|0,o=Math.imul(b,F),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(d,Z)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(h,Z)|0,o=o+Math.imul(h,G)|0;var eb=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,F))+Math.imul(x,z)|0,o=Math.imul(x,F),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,G)|0,n=n+Math.imul(d,Y)|0,i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,Y)|0,o=o+Math.imul(h,Q)|0;var ey=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,F))+Math.imul(A,z)|0,o=Math.imul(A,F),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Q)|0,n=n+Math.imul(d,X)|0,i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0,o=o+Math.imul(h,ee)|0;var ew=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,F))+Math.imul(S,z)|0,o=Math.imul(S,F),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Q)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(d,er)|0,i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0,o=o+Math.imul(h,en)|0;var ex=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,F))+Math.imul(P,z)|0,o=Math.imul(P,F),n=n+Math.imul(E,H)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0,n=n+Math.imul(d,eo)|0,i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0,o=o+Math.imul(h,ea)|0;var e_=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,F))+Math.imul(M,z)|0,o=Math.imul(M,F),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Q)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0,n=n+Math.imul(d,el)|0,i=(i=i+Math.imul(d,ec)|0)+Math.imul(h,el)|0,o=o+Math.imul(h,ec)|0;var eC=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,F))+Math.imul(D,z)|0,o=Math.imul(D,F),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ec)|0,n=n+Math.imul(d,ed)|0,i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0,o=o+Math.imul(h,eh)|0;var eA=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,F))+Math.imul($,z)|0,o=Math.imul($,F),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,Q)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(v,el)|0,i=(i=i+Math.imul(v,ec)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,ec)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,eh)|0,n=n+Math.imul(d,ep)|0,i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0,o=o+Math.imul(h,eg)|0;var ek=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(L,H),i=(i=Math.imul(L,W))+Math.imul($,H)|0,o=Math.imul($,W),n=n+Math.imul(j,Z)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,Z)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,eh)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,eh)|0,n=n+Math.imul(p,ep)|0,i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0,o=o+Math.imul(g,eg)|0;var eE=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(L,Z),i=(i=Math.imul(L,G))+Math.imul($,Z)|0,o=Math.imul($,G),n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Q)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Q)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(C,el)|0,i=(i=i+Math.imul(C,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,eh)|0,n=n+Math.imul(v,ep)|0,i=(i=i+Math.imul(v,eg)|0)+Math.imul(b,ep)|0,o=o+Math.imul(b,eg)|0;var eS=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Q))+Math.imul($,Y)|0,o=Math.imul($,Q),n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,ec)|0,n=n+Math.imul(C,ed)|0,i=(i=i+Math.imul(C,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0,n=n+Math.imul(w,ep)|0,i=(i=i+Math.imul(w,eg)|0)+Math.imul(x,ep)|0,o=o+Math.imul(x,eg)|0;var eT=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul($,X)|0,o=Math.imul($,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(I,el)|0,i=(i=i+Math.imul(I,ec)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,eh)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,eh)|0,n=n+Math.imul(C,ep)|0,i=(i=i+Math.imul(C,eg)|0)+Math.imul(A,ep)|0,o=o+Math.imul(A,eg)|0;var eI=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(L,er),i=(i=Math.imul(L,en))+Math.imul($,er)|0,o=Math.imul($,en),n=n+Math.imul(j,eo)|0,i=(i=i+Math.imul(j,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(R,el)|0,i=(i=i+Math.imul(R,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(I,ed)|0,i=(i=i+Math.imul(I,eh)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,eh)|0,n=n+Math.imul(E,ep)|0,i=(i=i+Math.imul(E,eg)|0)+Math.imul(S,ep)|0,o=o+Math.imul(S,eg)|0;var eP=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(L,eo),i=(i=Math.imul(L,ea))+Math.imul($,eo)|0,o=Math.imul($,ea),n=n+Math.imul(j,el)|0,i=(i=i+Math.imul(j,ec)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,eh)|0)+Math.imul(M,ed)|0,o=o+Math.imul(M,eh)|0,n=n+Math.imul(I,ep)|0,i=(i=i+Math.imul(I,eg)|0)+Math.imul(P,ep)|0,o=o+Math.imul(P,eg)|0;var eO=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(L,el),i=(i=Math.imul(L,ec))+Math.imul($,el)|0,o=Math.imul($,ec),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,eh)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,eh)|0,n=n+Math.imul(R,ep)|0,i=(i=i+Math.imul(R,eg)|0)+Math.imul(M,ep)|0,o=o+Math.imul(M,eg)|0;var eR=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(L,ed),i=(i=Math.imul(L,eh))+Math.imul($,ed)|0,o=Math.imul($,eh),n=n+Math.imul(j,ep)|0,i=(i=i+Math.imul(j,eg)|0)+Math.imul(D,ep)|0,o=o+Math.imul(D,eg)|0;var eM=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(L,ep),i=(i=Math.imul(L,eg))+Math.imul($,ep)|0,o=Math.imul($,eg);var eN=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=ew,l[5]=ex,l[6]=e_,l[7]=eC,l[8]=eA,l[9]=ek,l[10]=eE,l[11]=eS,l[12]=eT,l[13]=eI,l[14]=eP,l[15]=eO,l[16]=eR,l[17]=eM,l[18]=eN,0!==c&&(l[19]=c,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=a+(d/67108864|0)|0,s=67108863&(h=h+s|0),i+=(a=a+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}Math.imul||(g=p),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?p(this,e,t):m(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=Array(this.length+e.length),m(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&n);n>>=26,n+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<n;this.words[t]=l|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),n){for(var l=0;l<a;l++)n.words[l]=this.words[l];n.length=a}if(0!==a){if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1}var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-o|u>>>o,c=u&s}return n&&0!==c&&(n.words[n.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return!(this.length<=n)&&!!(this.words[n]&1<<t)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;return(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==t&&n++,this.length=Math.min(n,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this._strip())},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,o=e.length+n;this._expand(o);var a,s=0;for(i=0;i<e.length;i++){a=(0|this.words[i+n])+s;var l=(0|e.words[i])*t;a-=67108863&l,s=(a>>26)-(l/67108864|0),this.words[i+n]=67108863&a}for(;i<this.length-n;i++)s=(a=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&a;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(a=-(0|this.words[i])+s)>>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),o=e,a=0|o.words[o.length-1];0!=(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,l=n.length-o.length;if("mod"!==t){(s=new i(null)).length=l+1,s.words=Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(o,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|n.words[o.length+d])*67108864+(0|n.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(e,t,n){var o,a,s;return(r(!e.isZero()),this.isZero())?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&e.negative?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;!(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,g=1;!(n.words[0]&g)&&p<26;++p,g<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s),a.isub(l)):(n.isub(t),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t,n=this,o=e.clone();n=0!==n.negative?n.umod(e):n.clone();for(var a=new i(1),s=new i(0),l=o.clone();n.cmpn(1)>0&&o.cmpn(1)>0;){for(var c=0,u=1;!(n.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(n.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;!(o.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(o.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);n.cmp(o)>=0?(n.isub(o),a.isub(s)):(o.isub(n),s.isub(a))}return 0>(t=0===n.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new C(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(y,b),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(w,b),n(x,b),n(_,b),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return v[e]=t,t},C.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){r((e.negative|t.negative)==0,"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},C.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);r(!o.isZero());var s=new i(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,o),h=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();r(m<p);var v=this.pow(d,new i(1).iushln(p-m-1));h=h.redMul(v),d=v.redSqr(),f=f.redMul(d),p=m}return h},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;if(o!==r[0]&&(o=this.sqr(o)),0===d&&0===a){s=0;continue}a<<=1,a|=d,4!=++s&&(0!==n||0!==u)||(o=this.mul(o,r[a]),s=0,a=0)}l=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new A(e)},n(A,C),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(eL,ep);var eU=eL.exports;let ez="bignumber/5.7.0";var eF=eU.BN;let eq=new eA(ez),eH={},eW=!1;class eV{constructor(e,t){e!==eH&&eq.throwError("cannot call constructor directly; use BigNumber.from",eA.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return eG(eK(this).fromTwos(e))}toTwos(e){return eG(eK(this).toTwos(e))}abs(){return"-"===this._hex[0]?eV.from(this._hex.substring(1)):this}add(e){return eG(eK(this).add(eK(e)))}sub(e){return eG(eK(this).sub(eK(e)))}div(e){return eV.from(e).isZero()&&eY("division-by-zero","div"),eG(eK(this).div(eK(e)))}mul(e){return eG(eK(this).mul(eK(e)))}mod(e){let t=eK(e);return t.isNeg()&&eY("division-by-zero","mod"),eG(eK(this).umod(t))}pow(e){let t=eK(e);return t.isNeg()&&eY("negative-power","pow"),eG(eK(this).pow(t))}and(e){let t=eK(e);return(this.isNegative()||t.isNeg())&&eY("unbound-bitwise-result","and"),eG(eK(this).and(t))}or(e){let t=eK(e);return(this.isNegative()||t.isNeg())&&eY("unbound-bitwise-result","or"),eG(eK(this).or(t))}xor(e){let t=eK(e);return(this.isNegative()||t.isNeg())&&eY("unbound-bitwise-result","xor"),eG(eK(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&eY("negative-width","mask"),eG(eK(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&eY("negative-width","shl"),eG(eK(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&eY("negative-width","shr"),eG(eK(this).shrn(e))}eq(e){return eK(this).eq(eK(e))}lt(e){return eK(this).lt(eK(e))}lte(e){return eK(this).lte(eK(e))}gt(e){return eK(this).gt(eK(e))}gte(e){return eK(this).gte(eK(e))}isNegative(){return"-"===this._hex[0]}isZero(){return eK(this).isZero()}toNumber(){try{return eK(this).toNumber()}catch{eY("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return eq.throwError("this platform does not support BigInt",eA.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?eW||(eW=!0,eq.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?eq.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",eA.errors.UNEXPECTED_ARGUMENT,{}):eq.throwError("BigNumber.toString does not accept parameters",eA.errors.UNEXPECTED_ARGUMENT,{})),eK(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof eV)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new eV(eH,eZ(e)):e.match(/^-?[0-9]+$/)?new eV(eH,eZ(new eF(e))):eq.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&eY("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&eY("overflow","BigNumber.from",e),eV.from(String(e));if("bigint"==typeof e)return eV.from(e.toString());if(eI(e))return eV.from(eM(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return eV.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(eO(t)||"-"===t[0]&&eO(t.substring(1))))return eV.from(t)}}return eq.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function eZ(e){if("string"!=typeof e)return eZ(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&eq.throwArgumentError("invalid hex","value",e),"0x00"===(e=eZ(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function eG(e){return eV.from(eZ(e))}function eK(e){let t=eV.from(e).toHexString();return"-"===t[0]?new eF("-"+t.substring(3),16):new eF(t.substring(2),16)}function eY(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),eq.throwError(e,eA.errors.NUMERIC_FAULT,n)}let eQ=new eA(ez),eJ={},eX=eV.from(0),e0=eV.from(-1);function e1(e,t,r,n){let i={fault:t,operation:r};return void 0!==n&&(i.value=n),eQ.throwError(e,eA.errors.NUMERIC_FAULT,i)}let e2="0";for(;e2.length<256;)e2+=e2;function e3(e){if("number"!=typeof e)try{e=eV.from(e).toNumber()}catch{}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+e2.substring(0,e):eQ.throwArgumentError("invalid decimal size","decimals",e)}function e5(e,t){null==t&&(t=0);let r=e3(t),n=(e=eV.from(e)).lt(eX);n&&(e=e.mul(e0));let i=e.mod(r).toString();for(;i.length<r.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];let o=e.div(r).toString();return e=1===r.length?o:o+"."+i,n&&(e="-"+e),e}function e6(e,t){null==t&&(t=0);let r=e3(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||eQ.throwArgumentError("invalid decimal value","value",e);let n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&eQ.throwArgumentError("missing value","value",e);let i=e.split(".");i.length>2&&eQ.throwArgumentError("too many decimal points","value",e);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&e1("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";let s=eV.from(o),l=eV.from(a),c=s.mul(r).add(l);return n&&(c=c.mul(e0)),c}class e4{constructor(e,t,r,n){e!==eJ&&eQ.throwError("cannot use FixedFormat constructor; use FixedFormat.from",eA.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=e3(n),Object.freeze(this)}static from(e){if(e instanceof e4)return e;"number"==typeof e&&(e=`fixed128x${e}`);let t=!0,r=128,n=18;if("string"==typeof e){if("fixed"!==e){if("ufixed"===e)t=!1;else{let i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||eQ.throwArgumentError("invalid fixed format","format",e),t="u"!==i[1],r=parseInt(i[2]),n=parseInt(i[3])}}}else if(e){let i=(t,r,n)=>null==e[t]?n:(typeof e[t]!==r&&eQ.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&eQ.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&eQ.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new e4(eJ,t,r,n)}}class e8{constructor(e,t,r,n){e!==eJ&&eQ.throwError("cannot use FixedNumber constructor; use FixedNumber.from",eA.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&eQ.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=e6(this._value,this.format.decimals),r=e6(e._value,e.format.decimals);return e8.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=e6(this._value,this.format.decimals),r=e6(e._value,e.format.decimals);return e8.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=e6(this._value,this.format.decimals),r=e6(e._value,e.format.decimals);return e8.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=e6(this._value,this.format.decimals),r=e6(e._value,e.format.decimals);return e8.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=e8.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(e9.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=e8.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(e9.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&eQ.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=e8.from("1"+e2.substring(0,e),this.format),n=e7.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){return null==e?this._hex:(e%8&&eQ.throwArgumentError("invalid byte width","width",e),ej(eV.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8))}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return e8.fromString(this._value,e)}static fromValue(e,t,r){var n;return null!=r||null==t||null!=(n=t)&&(eV.isBigNumber(n)||"number"==typeof n&&n%1==0||"string"==typeof n&&n.match(/^-?[0-9]+$/)||eO(n)||"bigint"==typeof n||eI(n))||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),e8.fromString(e5(e,t),e4.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=e4.from(t),n=e6(e,r.decimals);!r.signed&&n.lt(eX)&&e1("unsigned value cannot be negative","overflow","value",e);let i=null;return new e8(eJ,r.signed?n.toTwos(r.width).toHexString():ej(n.toHexString(),r.width/8),e5(n,r.decimals),r)}static fromBytes(e,t){null==t&&(t="fixed");let r=e4.from(t);if(eP(e).length>r.width/8)throw Error("overflow");let n=eV.from(e);return r.signed&&(n=n.fromTwos(r.width)),new e8(eJ,n.toTwos((r.signed?0:1)+r.width).toHexString(),e5(n,r.decimals),r)}static from(e,t){if("string"==typeof e)return e8.fromString(e,t);if(eI(e))return e8.fromBytes(e,t);try{return e8.fromValue(e,0,t)}catch(e){if(e.code!==eA.errors.INVALID_ARGUMENT)throw e}return eQ.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let e9=e8.from(1),e7=e8.from("0.5"),te=new eA("strings/5.7.0");function tt(e,t,r,n,i){if(e===p.BAD_PREFIX||e===p.UNEXPECTED_CONTINUE){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===p.OVERRUN?r.length-t-1:0}function tr(e,t=f.current){t!=f.current&&(te.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let o=65536+((1023&n)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return eP(r)}function tn(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach(e=>{let i=e.split(":");n[r+=parseInt(i[0],16)]=t(i[1])}),n}function ti(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}(l=f||(f={})).current="",l.NFC="NFC",l.NFD="NFD",l.NFKC="NFKC",l.NFKD="NFKD",(c=p||(p={})).UNEXPECTED_CONTINUE="unexpected continuation byte",c.BAD_PREFIX="bad codepoint prefix",c.OVERRUN="string overrun",c.MISSING_CONTINUE="missing continuation byte",c.OUT_OF_RANGE="out of UTF-8 range",c.UTF16_SURROGATE="UTF-16 surrogate",c.OVERLONG="overlong representation",Object.freeze({error:function(e,t,r,n,i){return te.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:tt,replace:function(e,t,r,n,i){return e===p.OVERLONG?(n.push(i),0):(n.push(65533),tt(e,t,r))}}),ti("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),tn("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),tn("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),tn("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw Error("bad data");let t=[];for(let r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t}),ti("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");let to="hash/5.7.0";function ta(e,t){null==t&&(t=1);let r=[],n=r.forEach,i=function(e,t){n.call(e,function(e){t>0&&Array.isArray(e)?i(e,t-1):r.push(e)})};return i(e,t),r}function ts(e,t){let r=Array(e);for(let n=0,i=-1;n<e;n++)r[n]=i+=1+t();return r}function tl(e,t){let r=ts(e(),e),n=e(),i=ts(n,e),o=function(e,t){let r=Array(e);for(let n=0;n<e;n++)r[n]=1+t();return r}(n,e);for(let e=0;e<n;e++)for(let t=0;t<o[e];t++)r.push(i[e]+t);return t?r.map(e=>t[e]):r}function tc(e,t,r){let n=Array(e).fill(void 0).map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,o=0;i<e;i++){var n;r[i]=o+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}let tu=(o=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=0;for(let e=0;e<31;e++)d=d<<1|u();let h=[],f=0,p=2147483648;for(;;){let e=Math.floor(((d-f+1)*i-1)/p),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;h.push(t);let a=f+Math.floor(p*o[t]/i),s=f+Math.floor(p*o[t+1]/i)-1;for(;!((a^s)&1073741824);)d=d<<1&2147483647|u(),a=a<<1&2147483647,s=s<<1&2147483647|1;for(;a&~s&536870912;)d=1073741824&d|d<<1&1073741823|u(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741824|1;f=a,p=1+s-a}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return g+256+(e[s++]<<8|e[s++]);case 1:return g+e[s++];default:return t-1}})}(function(e){e=atob(e);let t=[];for(let r=0;r<e.length;r++)t.push(e.charCodeAt(r));return eP(t)}("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),i=0,()=>o[i++]);tl(tu),tl(tu),function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return ta(tc(i.length,1+e,t).map((e,t)=>{let o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(tc(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}(function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[n[0]]=n[1]}})(ta(t))}(tu),n=tl(tu).sort((e,t)=>e-t),function e(){let t=[];for(;;){let r=tl(tu,n);if(0==r.length)break;t.push({set:new Set(r),node:e()})}t.sort((e,t)=>t.set.size-e.set.size);let r=tu();return{branches:t,valid:r%3,fe0f:!!(1&(r=r/3|0)),save:1==(r>>=1),check:2==r}}(),new eA(to),new Uint8Array(32).fill(0);let td=`Ethereum Signed Message:
`;function th(e){return"string"==typeof e&&(e=tr(e)),eB(function(e){let t=e.map(e=>eP(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),eS(r)}([tr(td),tr(String(e.length)),e]))}new eA("rlp/5.7.0");let tf=new eA("address/5.7.0");function tp(e){eO(e,20)||tf.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=eP(eB(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let tg={};for(let e=0;e<10;e++)tg[String(e)]=String(e);for(let e=0;e<26;e++)tg[String.fromCharCode(65+e)]=String(10+e);let tm=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function tv(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}new eA("properties/5.7.0"),new eA(to),new Uint8Array(32).fill(0),eV.from(-1);let tb=eV.from(0),ty=eV.from(1);eV.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ej(ty.toHexString(),32),ej(tb.toHexString(),32);var tw={},tx={};function t_(e,t){if(!e)throw Error(t||"Assertion failed")}t_.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var tC={exports:{}};"function"==typeof Object.create?tC.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:tC.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}};var tA=tC.exports;function tk(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function tE(e){return 1===e.length?"0"+e:e}function tS(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}tx.inherits=tA,tx.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o,a,s=e.charCodeAt(i);s<128?r[n++]=s:(s<2048?r[n++]=s>>6|192:((o=e,a=i,(64512&o.charCodeAt(a))!=55296||a<0||a+1>=o.length||(64512&o.charCodeAt(a+1))!=56320)?r[n++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128),r[n++]=s>>6&63|128),r[n++]=63&s|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},tx.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=tE(e[r].toString(16));return t},tx.htonl=tk,tx.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=tk(i)),r+=tS(i.toString(16))}return r},tx.zero2=tE,tx.zero8=tS,tx.join32=function(e,t,r,n){var i,o=r-t;t_(o%4==0);for(var a=Array(o/4),s=0,l=t;s<a.length;s++,l+=4)i="big"===n?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],a[s]=i>>>0;return a},tx.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},tx.rotr32=function(e,t){return e>>>t|e<<32-t},tx.rotl32=function(e,t){return e<<t|e>>>32-t},tx.sum32=function(e,t){return e+t>>>0},tx.sum32_3=function(e,t,r){return e+t+r>>>0},tx.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},tx.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},tx.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0;e[t]=(o<n?1:0)+r+i>>>0,e[t+1]=o},tx.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},tx.sum64_lo=function(e,t,r,n){return t+n>>>0},tx.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l,c=t;return e+r+i+a+(0+((c=c+n>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0))>>>0},tx.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},tx.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,c){var u,d=t;return e+r+i+a+l+(0+((d=d+n>>>0)<t?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+c>>>0)<c?1:0))>>>0},tx.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,c){return t+n+o+s+c>>>0},tx.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},tx.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},tx.shr64_hi=function(e,t,r){return e>>>r},tx.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0};var tT={};function tI(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}tT.BlockHash=tI,tI.prototype.update=function(e,t){if(e=tx.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=tx.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},tI.prototype.digest=function(e){return this.update(this._pad()),t_(null===this.pending),this._digest(e)},tI.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n};var tP={},tO={},tR=tx.rotr32;function tM(e,t,r){return e&t^e&r^t&r}tO.ft_1=function(e,t,r,n){return 0===e?t&r^~t&n:1===e||3===e?t^r^n:2===e?tM(t,r,n):void 0},tO.ch32=function(e,t,r){return e&t^~e&r},tO.maj32=tM,tO.p32=function(e,t,r){return e^t^r},tO.s0_256=function(e){return tR(e,2)^tR(e,13)^tR(e,22)},tO.s1_256=function(e){return tR(e,6)^tR(e,11)^tR(e,25)},tO.g0_256=function(e){return tR(e,7)^tR(e,18)^e>>>3},tO.g1_256=function(e){return tR(e,17)^tR(e,19)^e>>>10};var tN=tx.rotl32,tj=tx.sum32,tD=tx.sum32_5,tB=tO.ft_1,tL=tT.BlockHash,t$=[1518500249,1859775393,2400959708,3395469782];function tU(){if(!(this instanceof tU))return new tU;tL.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}tx.inherits(tU,tL),tU.blockSize=512,tU.outSize=160,tU.hmacStrength=80,tU.padLength=64,tU.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=tN(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),u=tD(tN(i,5),tB(c,o,a,s),l,r[n],t$[c]);l=s,s=a,a=tN(o,30),o=i,i=u}this.h[0]=tj(this.h[0],i),this.h[1]=tj(this.h[1],o),this.h[2]=tj(this.h[2],a),this.h[3]=tj(this.h[3],s),this.h[4]=tj(this.h[4],l)},tU.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h,"big"):tx.split32(this.h,"big")};var tz=tx.sum32,tF=tx.sum32_4,tq=tx.sum32_5,tH=tO.ch32,tW=tO.maj32,tV=tO.s0_256,tZ=tO.s1_256,tG=tO.g0_256,tK=tO.g1_256,tY=tT.BlockHash,tQ=[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 tJ(){if(!(this instanceof tJ))return new tJ;tY.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=tQ,this.W=Array(64)}function tX(){if(!(this instanceof tX))return new tX;tJ.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}tx.inherits(tJ,tY),tJ.blockSize=512,tJ.outSize=256,tJ.hmacStrength=192,tJ.padLength=64,tJ.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=tF(tK(r[n-2]),r[n-7],tG(r[n-15]),r[n-16]);var 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];for(t_(this.k.length===r.length),n=0;n<r.length;n++){var h=tq(d,tZ(l),tH(l,c,u),this.k[n],r[n]),f=tz(tV(i),tW(i,o,a));d=u,u=c,c=l,l=tz(s,h),s=a,a=o,o=i,i=tz(h,f)}this.h[0]=tz(this.h[0],i),this.h[1]=tz(this.h[1],o),this.h[2]=tz(this.h[2],a),this.h[3]=tz(this.h[3],s),this.h[4]=tz(this.h[4],l),this.h[5]=tz(this.h[5],c),this.h[6]=tz(this.h[6],u),this.h[7]=tz(this.h[7],d)},tJ.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h,"big"):tx.split32(this.h,"big")},tx.inherits(tX,tJ),tX.blockSize=512,tX.outSize=224,tX.hmacStrength=192,tX.padLength=64,tX.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h.slice(0,7),"big"):tx.split32(this.h.slice(0,7),"big")};var t0=tx.rotr64_hi,t1=tx.rotr64_lo,t2=tx.shr64_hi,t3=tx.shr64_lo,t5=tx.sum64,t6=tx.sum64_hi,t4=tx.sum64_lo,t8=tx.sum64_4_hi,t9=tx.sum64_4_lo,t7=tx.sum64_5_hi,re=tx.sum64_5_lo,rt=tT.BlockHash,rr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function rn(){if(!(this instanceof rn))return new rn;rt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=rr,this.W=Array(160)}function ri(){if(!(this instanceof ri))return new ri;rn.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}tx.inherits(rn,rt),rn.blockSize=1024,rn.outSize=512,rn.hmacStrength=192,rn.padLength=128,rn.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=t0(e,t,19)^t0(t,e,29)^t2(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),o=function(e,t){var r=t1(e,t,19)^t1(t,e,29)^t3(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],l=function(e,t){var r=t0(e,t,1)^t0(e,t,8)^t2(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),c=function(e,t){var r=t1(e,t,1)^t1(e,t,8)^t3(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=t8(i,o,a,s,l,c,u,d),r[n+1]=t9(i,o,a,s,l,c,u,d)}},rn.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=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],f=this.h[10],p=this.h[11],g=this.h[12],m=this.h[13],v=this.h[14],b=this.h[15];t_(this.k.length===r.length);for(var y=0;y<r.length;y+=2){var w=v,x=b,_=function(e,t){var r=t0(e,t,14)^t0(e,t,18)^t0(t,e,9);return r<0&&(r+=4294967296),r}(d,h),C=function(e,t){var r=t1(e,t,14)^t1(e,t,18)^t1(t,e,9);return r<0&&(r+=4294967296),r}(d,h),A=function(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}(d,0,f,0,g),k=function(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}(0,h,0,p,0,m),E=this.k[y],S=this.k[y+1],T=r[y],I=r[y+1],P=t7(w,x,_,C,A,k,E,S,T,I),O=re(w,x,_,C,A,k,E,S,T,I);w=function(e,t){var r=t0(e,t,28)^t0(t,e,2)^t0(t,e,7);return r<0&&(r+=4294967296),r}(n,i);var R=t6(w,x=function(e,t){var r=t1(e,t,28)^t1(t,e,2)^t1(t,e,7);return r<0&&(r+=4294967296),r}(n,i),_=function(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}(n,0,o,0,s),C=function(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}(0,i,0,a,0,l)),M=t4(w,x,_,C);v=g,b=m,g=f,m=p,f=d,p=h,d=t6(c,u,P,O),h=t4(u,u,P,O),c=s,u=l,s=o,l=a,o=n,a=i,n=t6(P,O,R,M),i=t4(P,O,R,M)}t5(this.h,0,n,i),t5(this.h,2,o,a),t5(this.h,4,s,l),t5(this.h,6,c,u),t5(this.h,8,d,h),t5(this.h,10,f,p),t5(this.h,12,g,m),t5(this.h,14,v,b)},rn.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h,"big"):tx.split32(this.h,"big")},tx.inherits(ri,rn),ri.blockSize=1024,ri.outSize=384,ri.hmacStrength=192,ri.padLength=128,ri.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h.slice(0,12),"big"):tx.split32(this.h.slice(0,12),"big")},tP.sha1=tU,tP.sha224=tX,tP.sha256=tJ,tP.sha384=ri,tP.sha512=rn;var ro={},ra=tx.rotl32,rs=tx.sum32,rl=tx.sum32_3,rc=tx.sum32_4,ru=tT.BlockHash;function rd(){if(!(this instanceof rd))return new rd;ru.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function rh(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}tx.inherits(rd,ru),ro.ripemd160=rd,rd.blockSize=512,rd.outSize=160,rd.hmacStrength=192,rd.padLength=64,rd.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=r,l=n,c=i,u=o,d=a,h=0;h<80;h++){var f,p,g=rs(ra(rc(r,rh(h,n,i,o),e[rf[h]+t],(f=h)<=15?0:f<=31?1518500249:f<=47?1859775393:f<=63?2400959708:2840853838),rg[h]),a);r=a,a=o,o=ra(i,10),i=n,n=g,g=rs(ra(rc(s,rh(79-h,l,c,u),e[rp[h]+t],(p=h)<=15?1352829926:p<=31?1548603684:p<=47?1836072691:p<=63?2053994217:0),rm[h]),d),s=d,d=u,u=ra(c,10),c=l,l=g}g=rl(this.h[1],i,u),this.h[1]=rl(this.h[2],o,d),this.h[2]=rl(this.h[3],a,s),this.h[3]=rl(this.h[4],r,l),this.h[4]=rl(this.h[0],n,c),this.h[0]=g},rd.prototype._digest=function(e){return"hex"===e?tx.toHex32(this.h,"little"):tx.split32(this.h,"little")};var rf=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],rp=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],rg=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],rm=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function rv(e,t,r){if(!(this instanceof rv))return new rv(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(tx.toArray(t,r))}function rb(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,t??r.path)}},r.exports),r.exports}rv.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),t_(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},rv.prototype.update=function(e,t){return this.inner.update(e,t),this},rv.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)},tw.utils=tx,tw.common=tT,tw.sha=tP,tw.ripemd=ro,tw.hmac=rv,tw.sha1=tw.sha.sha1,tw.sha256=tw.sha.sha256,tw.sha224=tw.sha.sha224,tw.sha384=tw.sha.sha384,tw.sha512=tw.sha.sha512,tw.ripemd160=tw.ripemd.ripemd160;var ry=rw;function rw(e,t){if(!e)throw Error(t||"Assertion failed")}rw.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var rx=rb(function(e,t){function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}}),r_=rb(function(e,t){t.assert=ry,t.toArray=rx.toArray,t.zero2=rx.zero2,t.toHex=rx.toHex,t.encode=rx.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),a=1&l?(3==(n=e.andln(7)+i&7)||5===n)&&2===c?-l:l:0,r[0].push(a),s=1&c?(3==(n=t.andln(7)+o&7)||5===n)&&2===l?-c:c:0,r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new eU(e,"hex","le")}}),rC=r_.getNAF,rA=r_.getJSF,rk=r_.assert;function rE(e,t){this.type=e,this.p=new eU(t.p,16),this.red=t.prime?eU.red(t.prime):eU.mont(this.p),this.zero=new eU(0).toRed(this.red),this.one=new eU(1).toRed(this.red),this.two=new eU(2).toRed(this.red),this.n=t.n&&new eU(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function rS(e,t){this.curve=e,this.type=t,this.precomputed=null}rE.prototype.point=function(){throw Error("Not implemented")},rE.prototype.validate=function(){throw Error("Not implemented")},rE.prototype._fixedNafMul=function(e,t){rk(e.precomputed);var r=e._getDoubles(),n=rC(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var o,a,s=[];for(o=0;o<n.length;o+=r.step){a=0;for(var l=o+r.step-1;l>=o;l--)a=(a<<1)+n[l];s.push(a)}for(var c=this.jpoint(null,null,null),u=this.jpoint(null,null,null),d=i;d>0;d--){for(o=0;o<s.length;o++)(a=s[o])===d?u=u.mixedAdd(r.points[o]):a===-d&&(u=u.mixedAdd(r.points[o].neg()));c=c.add(u)}return c.toP()},rE.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=rC(t,r,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var l=0;s>=0&&0===o[s];s--)l++;if(s>=0&&l++,a=a.dblp(l),s<0)break;var c=o[s];rk(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},rE.prototype._wnafMulAdd=function(e,t,r,n,i){var o,a,s,l=this._wnafT1,c=this._wnafT2,u=this._wnafT3,d=0;for(o=0;o<n;o++){var h=(s=t[o])._getNAFPoints(e);l[o]=h.wnd,c[o]=h.points}for(o=n-1;o>=1;o-=2){var f=o-1,p=o;if(1!==l[f]||1!==l[p]){u[f]=rC(r[f],l[f],this._bitLength),u[p]=rC(r[p],l[p],this._bitLength),d=Math.max(u[f].length,d),d=Math.max(u[p].length,d);continue}var g=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(g[1]=t[f].add(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].add(t[p].neg())):(g[1]=t[f].toJ().mixedAdd(t[p]),g[2]=t[f].toJ().mixedAdd(t[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],v=rA(r[f],r[p]);for(d=Math.max(v[0].length,d),u[f]=Array(d),u[p]=Array(d),a=0;a<d;a++){var b=0|v[0][a],y=0|v[1][a];u[f][a]=m[(b+1)*3+(y+1)],u[p][a]=0,c[f]=g}}var w=this.jpoint(null,null,null),x=this._wnafT4;for(o=d;o>=0;o--){for(var _=0;o>=0;){var C=!0;for(a=0;a<n;a++)x[a]=0|u[a][o],0!==x[a]&&(C=!1);if(!C)break;_++,o--}if(o>=0&&_++,w=w.dblp(_),o<0)break;for(a=0;a<n;a++){var A=x[a];0!==A&&(A>0?s=c[a][A-1>>1]:A<0&&(s=c[a][-A-1>>1].neg()),w="affine"===s.type?w.mixedAdd(s):w.add(s))}}for(o=0;o<n;o++)c[o]=null;return i?w:w.toP()},rE.BasePoint=rS,rS.prototype.eq=function(){throw Error("Not implemented")},rS.prototype.validate=function(){return this.curve.validate(this)},rE.prototype.decodePoint=function(e,t){e=r_.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?rk(e[e.length-1]%2==0):7===e[0]&&rk(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},rS.prototype.encodeCompressed=function(e){return this.encode(e,!0)},rS.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},rS.prototype.encode=function(e,t){return r_.encode(this._encode(t),e)},rS.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},rS.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},rS.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},rS.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},rS.prototype._getBeta=function(){return null},rS.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var rT=rb(function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}}),rI=r_.assert;function rP(e){rE.call(this,"short",e),this.a=new eU(e.a,16).toRed(this.red),this.b=new eU(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function rO(e,t,r,n){rE.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new eU(t,16),this.y=new eU(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function rR(e,t,r,n){rE.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new eU(0)):(this.x=new eU(t,16),this.y=new eU(r,16),this.z=new eU(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}rT(rP,rE),rP.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||1!==this.p.modn(3))){if(e.beta)t=new eU(e.beta,16).toRed(this.red);else{var t,r,n,i=this._getEndoRoots(this.p);t=(t=0>i[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new eU(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],rI(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new eU(e.a,16),b:new eU(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},rP.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:eU.mont(e),r=new eU(2).toRed(t).redInvm(),n=r.redNeg(),i=new eU(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},rP.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,a,s,l,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),f=new eU(1),p=new eU(0),g=new eU(0),m=new eU(1),v=0;0!==d.cmpn(0);){var b=h.div(d);l=h.sub(b.mul(d)),c=g.sub(b.mul(f));var y=m.sub(b.mul(p));if(!n&&0>l.cmp(u))t=s.neg(),r=f,n=l.neg(),i=c;else if(n&&2==++v)break;s=l,h=d,d=l,g=f,f=c,m=p,p=y}o=l.neg(),a=c;var w=n.sqr().add(i.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},rP.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},rP.prototype.pointFromX=function(e,t){(e=new eU(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},rP.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},rP.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},rT(rO,rE.BasePoint),rP.prototype.point=function(e,t,r){return new rO(this,e,t,r)},rP.prototype.pointFromJSON=function(e,t){return rO.fromJSON(this,e,t)},rO.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},rO.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},rO.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},rO.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},rO.prototype.isInfinity=function(){return this.inf},rO.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},rO.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},rO.prototype.getX=function(){return this.x.fromRed()},rO.prototype.getY=function(){return this.y.fromRed()},rO.prototype.mul=function(e){return e=new eU(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},rO.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},rO.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},rO.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},rO.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},rO.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},rT(rR,rE.BasePoint),rP.prototype.jpoint=function(e,t,r){return new rR(this,e,t,r)},rR.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},rR.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},rR.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},rR.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},rR.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),v=f.redMul(m);v=v.redIAdd(v).redISub(h);var b=c.redMul(s);t+1<e&&(l=l.redMul(h)),o=g,s=b,c=v}return this.curve.jpoint(o,c.redMul(i),s)},rR.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},rR.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},rR.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},rR.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,f,p)},rR.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,h,f)},rR.prototype.mul=function(e,t){return e=new eU(e,t),this.curve._wnafMul(this,e)},rR.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},rR.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},rR.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},rR.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var rM=rb(function(e,t){t.base=rE,t.short=rP,t.mont=null,t.edwards=null}),rN=rb(function(e,t){var r,n=r_.assert;function i(e){"short"===e.type?this.curve=new rM.short(e):"edwards"===e.type?this.curve=new rM.edwards(e):this.curve=new rM.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:tw.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:tw.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:tw.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:tw.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:tw.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tw.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:tw.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch{r=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:tw.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function rj(e){if(!(this instanceof rj))return new rj(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=rx.toArray(e.entropy,e.entropyEnc||"hex"),r=rx.toArray(e.nonce,e.nonceEnc||"hex"),n=rx.toArray(e.pers,e.persEnc||"hex");ry(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}rj.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},rj.prototype._hmac=function(){return new tw.hmac(this.hash,this.K)},rj.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},rj.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=rx.toArray(e,t),r=rx.toArray(r,n),ry(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},rj.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=rx.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,rx.encode(o,t)};var rD=r_.assert;function rB(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}rB.fromPublic=function(e,t,r){return t instanceof rB?t:new rB(e,{pub:t,pubEnc:r})},rB.fromPrivate=function(e,t,r){return t instanceof rB?t:new rB(e,{priv:t,privEnc:r})},rB.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},rB.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},rB.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},rB.prototype._importPrivate=function(e,t){this.priv=new eU(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},rB.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?rD(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&rD(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},rB.prototype.derive=function(e){return e.validate()||rD(e.validate(),"public point not validated"),e.mul(this.priv).getX()},rB.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},rB.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},rB.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var rL=r_.assert;function r$(e,t){if(e instanceof r$)return e;this._importDER(e,t)||(rL(e.r&&e.s,"Signature without r or s"),this.r=new eU(e.r,16),this.s=new eU(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function rU(){this.place=0}function rz(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function rF(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function rq(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}r$.prototype._importDER=function(e,t){e=r_.toArray(e,t);var r=new rU;if(48!==e[r.place++])return!1;var n=rz(e,r);if(!1===n||n+r.place!==e.length||2!==e[r.place++])return!1;var i=rz(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var a=rz(e,r);if(!1===a||e.length!==a+r.place)return!1;var s=e.slice(r.place,a+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new eU(o),this.s=new eU(s),this.recoveryParam=null,!0},r$.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=rF(t),r=rF(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];rq(n,t.length),(n=n.concat(t)).push(2),rq(n,r.length);var i=n.concat(r),o=[48];return rq(o,i.length),o=o.concat(i),r_.encode(o,e)};var rH=function(){throw Error("unsupported")},rW=r_.assert;function rV(e){if(!(this instanceof rV))return new rV(e);"string"==typeof e&&(rW(Object.prototype.hasOwnProperty.call(rN,e),"Unknown curve "+e),e=rN[e]),e instanceof rN.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}rV.prototype.keyPair=function(e){return new rB(this,e)},rV.prototype.keyFromPrivate=function(e,t){return rB.fromPrivate(this,e,t)},rV.prototype.keyFromPublic=function(e,t){return rB.fromPublic(this,e,t)},rV.prototype.genKeyPair=function(e){e||(e={});for(var t=new rj({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||rH(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new eU(2));;){var i=new eU(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},rV.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},rV.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new eU(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new rj({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new eU(1)),c=0;;c++){var u=n.k?n.k(c):new eU(s.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||u.cmp(l)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var h=d.getX(),f=h.umod(this.n);if(0!==f.cmpn(0)){var p=u.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var g=(d.getY().isOdd()?1:0)|(0!==h.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),g^=1),new r$({r:f,s:p,recoveryParam:g})}}}}}},rV.prototype.verify=function(e,t,r,n){e=this._truncateToN(new eU(e,16)),r=this.keyFromPublic(r,n);var i=(t=new r$(t,"hex")).r,o=t.s;if(0>i.cmpn(1)||i.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(l,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},rV.prototype.recoverPubKey=function(e,t,r,n){rW((3&r)===r,"The recovery param is more than two bits"),t=new r$(t,n);var i=this.n,o=new eU(e),a=t.r,s=t.s,l=1&r,c=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var u=t.r.invm(i),d=i.sub(o).mul(u).umod(i),h=s.mul(u).umod(i);return this.g.mulAdd(d,a,h)},rV.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new r$(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch{continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")};var rZ=rb(function(e,t){t.version="6.5.4",t.utils=r_,t.rand=function(){throw Error("unsupported")},t.curve=rM,t.curves=rN,t.ec=rV,t.eddsa=null}).ec;let rG=new eA("signing-key/5.7.0"),rK=null;function rY(){return rK||(rK=new rZ("secp256k1")),rK}class rQ{constructor(e){tv(this,"curve","secp256k1"),tv(this,"privateKey",eM(e)),32!==function(e){if("string"!=typeof e)e=eM(e);else if(!eO(e)||e.length%2)return null;return(e.length-2)/2}(this.privateKey)&&rG.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=rY().keyFromPrivate(eP(this.privateKey));tv(this,"publicKey","0x"+t.getPublic(!1,"hex")),tv(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),tv(this,"_isSigningKey",!0)}_addPoint(e){let t=rY().keyFromPublic(eP(this.publicKey)),r=rY().keyFromPublic(eP(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=rY().keyFromPrivate(eP(this.privateKey)),r=eP(e);32!==r.length&&rG.throwArgumentError("bad digest length","digest",e);let n=t.sign(r,{canonical:!0});return eD({recoveryParam:n.recoveryParam,r:ej("0x"+n.r.toString(16),32),s:ej("0x"+n.s.toString(16),32)})}computeSharedSecret(e){let t=rY().keyFromPrivate(eP(this.privateKey)),r=rY().keyFromPublic(eP(rJ(e)));return ej("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function rJ(e,t){let r=eP(e);if(32===r.length){let e=new rQ(r);return t?"0x"+rY().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?eM(r):"0x"+rY().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+rY().keyFromPublic(r).getPublic(!0,"hex"):eM(r):rG.throwArgumentError("invalid public or private key","key","[REDACTED]")}async function rX(e,t,r,n,i,o){switch(r.t){case"eip191":var a;return a=r.s,(function(e){let t=null;if("string"!=typeof e&&tf.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=tp(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&tf.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>tg[e]).join("");for(;t.length>=tm;){let e=t.substring(0,tm);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&tf.throwArgumentError("bad icap checksum","address",e),t=new eF(e.substring(4),36).toString(16);t.length<40;)t="0"+t;t=tp("0x"+t)}else tf.throwArgumentError("invalid address","address",e);return t})(eN(eB(eN(rJ(function(e,t){let r=eD(t),n={r:eP(r.r),s:eP(r.s)};return"0x"+rY().recoverPubKey(eP(e),n,r.recoveryParam).encode("hex",!1)}(eP(th(t)),a)),1)),12)).toLowerCase()===e.toLowerCase();case"eip1271":return await r0(e,t,r.s,n,i,o);default:throw Error(`verifySignature failed: Attempted to verify CacaoSignature with unknown type: ${r.t}`)}}async function r0(e,t,r,n,i,o){try{let a="0x1626ba7e",s=r.substring(2),l=th(t).substring(2),c=await fetch(`${o||"https://rpc.walletconnect.com/v1"}/?chainId=${n}&projectId=${i}`,{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:e,data:a+l+"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041"+s},"latest"]})}),{result:u}=await c.json();return!!u&&u.slice(0,a.length).toLowerCase()===a.toLowerCase()}catch(e){return console.error("isValidEip1271Signature: ",e),!1}}new eA("transactions/5.7.0"),(u=g||(g={}))[u.legacy=0]="legacy",u[u.eip2930=1]="eip2930",u[u.eip1559=2]="eip1559";var r1=Object.defineProperty,r2=Object.defineProperties,r3=Object.getOwnPropertyDescriptors,r5=Object.getOwnPropertySymbols,r6=Object.prototype.hasOwnProperty,r4=Object.prototype.propertyIsEnumerable,r8=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,r9=(e,t)=>{for(var r in t||(t={}))r6.call(t,r)&&r8(e,r,t[r]);if(r5)for(var r of r5(t))r4.call(t,r)&&r8(e,r,t[r]);return e},r7=(e,t)=>r2(e,r3(t));let ne=e=>e?.split(":"),nt=e=>{let t=e&&ne(e);if(t)return e.includes("did:pkh:")?t[3]:t[1]},nr=e=>{let t=e&&ne(e);if(t)return t[2]+":"+t[3]},nn=e=>{let t=e&&ne(e);if(t)return t.pop()};async function ni(e){let{cacao:t,projectId:r}=e,{s:n,p:i}=t,o=no(i,i.iss),a=nn(i.iss);return await rX(a,o,n,nt(i.iss),r)}let no=(e,t)=>{let r=`${e.domain} wants you to sign in with your Ethereum account:`,n=nn(t);if(!e.aud&&!e.uri)throw Error("Either `aud` or `uri` is required to construct the message");let i=e.statement||void 0,o=`URI: ${e.aud||e.uri}`,a=`Version: ${e.version}`,s=`Chain ID: ${nt(t)}`,l=`Nonce: ${e.nonce}`,c=`Issued At: ${e.iat}`,u=e.exp?`Expiration Time: ${e.exp}`:void 0,d=e.nbf?`Not Before: ${e.nbf}`:void 0,h=e.requestId?`Request ID: ${e.requestId}`:void 0,f=e.resources?`Resources:${e.resources.map(e=>`
- ${e}`).join("")}`:void 0,p=nf(e.resources);return p&&(i=function(e="",t){na(t);let r="I further authorize the stated URI to perform the following actions on my behalf: ";if(e.includes(r))return e;let n=[],i=0;Object.keys(t.att).forEach(e=>{let r=Object.keys(t.att[e]).map(e=>({ability:e.split("/")[0],action:e.split("/")[1]}));r.sort((e,t)=>e.action.localeCompare(t.action));let o={};r.forEach(e=>{o[e.ability]||(o[e.ability]=[]),o[e.ability].push(e.action)});let a=Object.keys(o).map(t=>(i++,`(${i}) '${t}': '${o[t].join("', '")}' for '${e}'.`));n.push(a.join(", ").replace(".,","."))});let o=n.join(" "),a=`${r}${o}`;return`${e?e+" ":""}${a}`}(i,nl(p))),[r,n,"",i,"",o,a,s,l,c,u,d,h,f].filter(e=>null!=e).join(`
`)};function na(e){if(!e)throw Error("No recap provided, value is undefined");if(!e.att)throw Error("No `att` property found");let t=Object.keys(e.att);if(!(null!=t&&t.length))throw Error("No resources found in `att` property");t.forEach(t=>{let r=e.att[t];if(Array.isArray(r)||"object"!=typeof r)throw Error(`Resource must be an object: ${t}`);if(!Object.keys(r).length)throw Error(`Resource object is empty: ${t}`);Object.keys(r).forEach(e=>{let t=r[e];if(!Array.isArray(t))throw Error(`Ability limits ${e} must be an array of objects, found: ${t}`);if(!t.length)throw Error(`Value of ${e} is empty array, must be an array with objects`);t.forEach(t=>{if("object"!=typeof t)throw Error(`Ability limits (${e}) must be an array of objects, found: ${t}`)})})})}function ns(e){return na(e),`urn:recap:${O.from(JSON.stringify(e)).toString("base64").replace(/=/g,"")}`}function nl(e){var t;let r=(t=e.replace("urn:recap:",""),JSON.parse(O.from(t,"base64").toString("utf-8")));return na(r),r}function nc(e,t,r){return ns(function(e,t,r,n={}){return r?.sort((e,t)=>e.localeCompare(t)),{att:{[e]:function(e,t,r={}){return Object.assign({},...(t=t?.sort((e,t)=>e.localeCompare(t))).map(t=>({[`${e}/${t}`]:[r]})))}(t,r,n)}}}(e,t,r))}function nu(e,t){return ns(function(e,t){na(e),na(t);let r=Object.keys(e.att).concat(Object.keys(t.att)).sort((e,t)=>e.localeCompare(t)),n={att:{}};return r.forEach(r=>{var i,o;Object.keys((null==(i=e.att)?void 0:i[r])||{}).concat(Object.keys((null==(o=t.att)?void 0:o[r])||{})).sort((e,t)=>e.localeCompare(t)).forEach(i=>{var o,a;n.att[r]=r7(r9({},n.att[r]),{[i]:(null==(o=e.att[r])?void 0:o[i])||(null==(a=t.att[r])?void 0:a[i])})})}),n}(nl(e),nl(t)))}function nd(e){var t;let r=nl(e);na(r);let n=null==(t=r.att)?void 0:t.eip155;return n?Object.keys(n).map(e=>e.split("/")[1]):[]}function nh(e){let t=nl(e);na(t);let r=[];return Object.values(t.att).forEach(e=>{Object.values(e).forEach(e=>{var t;null!=(t=e?.[0])&&t.chains&&r.push(e[0].chains)})}),[...new Set(r.flat())]}function nf(e){if(!e)return;let t=e?.[e.length-1];return t&&t.includes("urn:recap:")?t:void 0}let np="base10",ng="base16",nm="base64pad",nv="base64url",nb="utf8",ny=1,nw=2;function nx(){let e=k.Au();return{privateKey:(0,E.BB)(e.secretKey,ng),publicKey:(0,E.BB)(e.publicKey,ng)}}function n_(){let e=(0,C.randomBytes)(32);return(0,E.BB)(e,ng)}function nC(e,t){let r=k.gi((0,E.mL)(e,ng),(0,E.mL)(t,ng),!0),n=new _.t(A.mE,r).expand(32);return(0,E.BB)(n,ng)}function nA(e){let t=(0,A.vp)((0,E.mL)(e,ng));return(0,E.BB)(t,ng)}function nk(e){let t=(0,A.vp)((0,E.mL)(e,nb));return(0,E.BB)(t,ng)}function nE(e){return(0,E.mL)(`${e}`,np)}function nS(e){return Number((0,E.BB)(e,np))}function nT(e){let t=nE("u">typeof e.type?e.type:0);if(nS(t)===ny&&typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");let r="u">typeof e.senderPublicKey?(0,E.mL)(e.senderPublicKey,ng):void 0,n="u">typeof e.iv?(0,E.mL)(e.iv,ng):(0,C.randomBytes)(12);return nR({type:t,sealed:new x.OK((0,E.mL)(e.symKey,ng)).seal(n,(0,E.mL)(e.message,nb)),iv:n,senderPublicKey:r,encoding:e.encoding})}function nI(e,t){let r=nE(nw),n=(0,C.randomBytes)(12);return nR({type:r,sealed:(0,E.mL)(e,nb),iv:n,encoding:t})}function nP(e){let t=new x.OK((0,E.mL)(e.symKey,ng)),{sealed:r,iv:n}=nM({encoded:e.encoded,encoding:e?.encoding}),i=t.open(n,r);if(null===i)throw Error("Failed to decrypt");return(0,E.BB)(i,nb)}function nO(e,t){let{sealed:r}=nM({encoded:e,encoding:t});return(0,E.BB)(r,nb)}function nR(e){let{encoding:t=nm}=e;if(nS(e.type)===nw)return(0,E.BB)((0,E.zo)([e.type,e.sealed]),t);if(nS(e.type)===ny){if(typeof e.senderPublicKey>"u")throw Error("Missing sender public key for type 1 envelope");return(0,E.BB)((0,E.zo)([e.type,e.senderPublicKey,e.iv,e.sealed]),t)}return(0,E.BB)((0,E.zo)([e.type,e.iv,e.sealed]),t)}function nM(e){let{encoded:t,encoding:r=nm}=e,n=(0,E.mL)(t,r),i=n.slice(0,1);if(nS(i)===ny){let e=n.slice(1,33),t=n.slice(33,45);return{type:i,sealed:n.slice(45),iv:t,senderPublicKey:e}}if(nS(i)===nw)return{type:i,sealed:n.slice(1),iv:(0,C.randomBytes)(12)};let o=n.slice(1,13);return{type:i,sealed:n.slice(13),iv:o}}function nN(e,t){let r=nM({encoded:e,encoding:t?.encoding});return nj({type:nS(r.type),senderPublicKey:"u">typeof r.senderPublicKey?(0,E.BB)(r.senderPublicKey,ng):void 0,receiverPublicKey:t?.receiverPublicKey})}function nj(e){let t=e?.type||0;if(t===ny){if(typeof e?.senderPublicKey>"u")throw Error("missing sender public key");if(typeof e?.receiverPublicKey>"u")throw Error("missing receiver public key")}return{type:t,senderPublicKey:e?.senderPublicKey,receiverPublicKey:e?.receiverPublicKey}}function nD(e){return e.type===ny&&"string"==typeof e.senderPublicKey&&"string"==typeof e.receiverPublicKey}function nB(e){return e.type===nw}function nL(e,t){let[r,n,i]=e.split("."),o=O.from(function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4;return r>0&&(t+="=".repeat(4-r)),t}(i),"base64");if(64!==o.length)throw Error("Invalid signature length");let a=o.slice(0,32).toString("hex"),s=o.slice(32,64).toString("hex"),l=`${r}.${n}`,c=new A.mE().update(O.from(l)).digest(),u=new S.ec("p256").keyFromPublic({x:O.from(t.x,"base64").toString("hex"),y:O.from(t.y,"base64").toString("hex")},"hex"),d=O.from(c).toString("hex");if(!u.verify(d,{r:a,s:s}))throw Error("Invalid signature");return(0,T.decodeJWT)(e).payload}function n$(e){return e?.relay||{protocol:"irn"}}function nU(e){let t=I[e];if(typeof t>"u")throw Error(`Relay Protocol not supported: ${e}`);return t}var nz=Object.defineProperty,nF=Object.defineProperties,nq=Object.getOwnPropertyDescriptors,nH=Object.getOwnPropertySymbols,nW=Object.prototype.hasOwnProperty,nV=Object.prototype.propertyIsEnumerable,nZ=(e,t,r)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nG=(e,t)=>{for(var r in t||(t={}))nW.call(t,r)&&nZ(e,r,t[r]);if(nH)for(var r of nH(t))nV.call(t,r)&&nZ(e,r,t[r]);return e},nK=(e,t)=>nF(e,nq(t));function nY(e){var t;let r=(e=(e=e.includes("wc://")?e.replace("wc://",""):e).includes("wc:")?e.replace("wc:",""):e).indexOf(":"),n=-1!==e.indexOf("?")?e.indexOf("?"):void 0,i=e.substring(0,r),o=e.substring(r+1,n).split("@"),a="u">typeof n?e.substring(n):"",s=w.parse(a),l="string"==typeof s.methods?s.methods.split(","):void 0;return{protocol:i,topic:(t=o[0]).startsWith("//")?t.substring(2):t,version:parseInt(o[1],10),symKey:s.symKey,relay:function(e,t="-"){let r={},n="relay"+t;return Object.keys(e).forEach(t=>{if(t.startsWith(n)){let i=t.replace(n,""),o=e[t];r[i]=o}}),r}(s),methods:l,expiryTimestamp:s.expiryTimestamp?parseInt(s.expiryTimestamp,10):void 0}}function nQ(e){return`${e.protocol}:${e.topic}@${e.version}?`+w.stringify(nG(nK(nG({symKey:e.symKey},function(e,t="-"){let r={};return Object.keys(e).forEach(n=>{e[n]&&(r["relay"+t+n]=e[n])}),r}(e.relay)),{expiryTimestamp:e.expiryTimestamp}),e.methods?{methods:e.methods.join(",")}:{}))}function nJ(e,t,r){return`${e}?wc_ev=${r}&topic=${t}`}function nX(e){let t=[];return e.forEach(e=>{let[r,n]=e.split(":");t.push(`${r}:${n}`)}),t}function n0(e){return e.includes(":")}function n1(e){return n0(e)?e.split(":")[0]:e}function n2(e,t){let r=function(e){let t={};return e?.forEach(e=>{let[r,n]=e.split(":");t[r]||(t[r]={accounts:[],chains:[],events:[]}),t[r].accounts.push(e),t[r].chains.push(`${r}:${n}`)}),t}(t=t.map(e=>e.replace("did:pkh:","")));for(let[t,n]of Object.entries(r))n.methods?n.methods=ec(n.methods,e):n.methods=e,n.events=["chainChanged","accountsChanged"];return r}Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;let n3={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}},n5={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 n6(e,t){let{message:r,code:n}=n5[e];return{message:t?`${r} ${t}`:r,code:n}}function n4(e,t){let{message:r,code:n}=n3[e];return{message:t?`${r} ${t}`:r,code:n}}function n8(e,t){return!!Array.isArray(e)&&(!("u">typeof t)||!e.length||e.every(t))}function n9(e){return Object.getPrototypeOf(e)===Object.prototype&&Object.keys(e).length}function n7(e){return typeof e>"u"}function ie(e,t){return!!(t&&n7(e))||"string"==typeof e&&!!e.trim().length}function it(e,t){return!!(t&&n7(e))||"number"==typeof e&&!isNaN(e)}function ir(e,t){let{requiredNamespaces:r}=t,n=Object.keys(e.namespaces),i=Object.keys(r),o=!0;return!!Q(i,n)&&(n.forEach(t=>{let{accounts:n,methods:i,events:a}=e.namespaces[t],s=nX(n),l=r[t];Q(D(t,l),s)&&Q(l.methods,i)&&Q(l.events,a)||(o=!1)}),o)}function ii(e){return!!(ie(e,!1)&&e.includes(":"))&&2===e.split(":").length}function io(e){if(ie(e,!1))try{return"u">typeof new URL(e)}catch{}return!1}function ia(e){var t;return null==(t=e?.proposer)?void 0:t.publicKey}function is(e){return e?.topic}function il(e,t){let r=null;return ie(e?.publicKey,!1)||(r=n6("MISSING_OR_INVALID",`${t} controller public key should be a string`)),r}function ic(e){let t=!0;return n8(e)?e.length&&(t=e.every(e=>ie(e,!1))):t=!1,t}function iu(e,t){let r=null;return Object.values(e).forEach(e=>{var n;let i;if(r)return;let o=(n=`${t}, namespace`,i=null,ic(e?.methods)?ic(e?.events)||(i=n4("UNSUPPORTED_EVENTS",`${n}, events should be an array of strings or empty array for no events`)):i=n4("UNSUPPORTED_METHODS",`${n}, methods should be an array of strings or empty array for no methods`),i);o&&(r=o)}),r}function id(e,t,r){let n=null;if(e&&n9(e)){let i;let o=iu(e,t);o&&(n=o);let a=(i=null,Object.entries(e).forEach(([e,n])=>{var o,a;let s;if(i)return;let l=(o=D(e,n),a=`${t} ${r}`,s=null,n8(o)&&o.length?o.forEach(e=>{s||ii(e)||(s=n4("UNSUPPORTED_CHAINS",`${a}, chain ${e} should be a string and conform to "namespace:chainId" format`))}):ii(e)||(s=n4("UNSUPPORTED_CHAINS",`${a}, 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"] }`)),s);l&&(i=l)}),i);a&&(n=a)}else n=n6("MISSING_OR_INVALID",`${t}, ${r} should be an object with data`);return n}function ih(e,t){let r=null;if(e&&n9(e)){let n;let i=iu(e,t);i&&(r=i);let o=(n=null,Object.values(e).forEach(e=>{var r,i;let o;if(n)return;let a=(r=e?.accounts,i=`${t} namespace`,o=null,n8(r)?r.forEach(e=>{o||function(e){if(ie(e,!1)&&e.includes(":")){let t=e.split(":");if(3===t.length){let e=t[0]+":"+t[1];return!!t[2]&&ii(e)}}return!1}(e)||(o=n4("UNSUPPORTED_ACCOUNTS",`${i}, account ${e} should be a string and conform to "namespace:chainId:address" format`))}):o=n4("UNSUPPORTED_ACCOUNTS",`${i}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),o);a&&(n=a)}),n);o&&(r=o)}else r=n6("MISSING_OR_INVALID",`${t}, namespaces should be an object with data`);return r}function ip(e){return ie(e.protocol,!0)}function ig(e,t){let r=!1;return t&&!e?r=!0:e&&n8(e)&&e.length&&e.forEach(e=>{r=ip(e)}),r}function im(e){return"number"==typeof e}function iv(e){return"u">typeof e}function ib(e){return!(!e||"object"!=typeof e||!e.code||!it(e.code,!1)||!e.message||!ie(e.message,!1))}function iy(e){return!(n7(e)||!ie(e.method,!1))}function iw(e){return!(n7(e)||n7(e.result)&&n7(e.error)||!it(e.id,!1)||!ie(e.jsonrpc,!1))}function ix(e){return!(n7(e)||!ie(e.name,!1))}function i_(e,t){return!(!ii(t)||!(function(e){let t=[];return Object.values(e).forEach(e=>{t.push(...nX(e.accounts))}),t})(e).includes(t))}function iC(e,t,r){return!!ie(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{nX(e.accounts).includes(t)&&r.push(...e.methods)}),r})(e,t).includes(r)}function iA(e,t,r){return!!ie(r,!1)&&(function(e,t){let r=[];return Object.values(e).forEach(e=>{nX(e.accounts).includes(t)&&r.push(...e.events)}),r})(e,t).includes(r)}function ik(e,t,r){let n=null,i=function(e){let t={};return Object.keys(e).forEach(r=>{var n;r.includes(":")?t[r]=e[r]:null==(n=e[r].chains)||n.forEach(n=>{t[n]={methods:e[r].methods,events:e[r].events}})}),t}(e),o=function(e){let t={};return Object.keys(e).forEach(r=>{if(r.includes(":"))t[r]=e[r];else{let n=nX(e[r].accounts);n?.forEach(n=>{t[n]={accounts:e[r].accounts.filter(e=>e.includes(`${n}:`)),methods:e[r].methods,events:e[r].events}})}}),t}(t),a=Object.keys(i),s=Object.keys(o),l=iE(Object.keys(e)),c=iE(Object.keys(t)),u=l.filter(e=>!c.includes(e));return u.length&&(n=n6("NON_CONFORMING_NAMESPACES",`${r} namespaces keys don't satisfy requiredNamespaces.
      Required: ${u.toString()}
      Received: ${Object.keys(t).toString()}`)),Q(a,s)||(n=n6("NON_CONFORMING_NAMESPACES",`${r} namespaces chains don't satisfy required namespaces.
      Required: ${a.toString()}
      Approved: ${s.toString()}`)),Object.keys(t).forEach(e=>{if(!e.includes(":")||n)return;let i=nX(t[e].accounts);i.includes(e)||(n=n6("NON_CONFORMING_NAMESPACES",`${r} namespaces accounts don't satisfy namespace accounts for ${e}
        Required: ${e}
        Approved: ${i.toString()}`))}),a.forEach(e=>{n||(Q(i[e].methods,o[e].methods)?Q(i[e].events,o[e].events)||(n=n6("NON_CONFORMING_NAMESPACES",`${r} namespaces events don't satisfy namespace events for ${e}`)):n=n6("NON_CONFORMING_NAMESPACES",`${r} namespaces methods don't satisfy namespace methods for ${e}`))}),n}function iE(e){return[...new Set(e.map(e=>e.includes(":")?e.split(":")[0]:e))]}function iS(e,t){return it(e,!1)&&e<=t.max&&e>=t.min}function iT(){let e=Z();return new Promise(t=>{switch(e){case q.browser:t(V()&&navigator?.onLine);break;case q.reactNative:t(iI());break;case q.node:default:t(!0)}})}async function iI(){if(W()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo){let e=await (null==r.g?void 0:r.g.NetInfo.fetch());return e?.isConnected}return!0}function iP(e){switch(Z()){case q.browser:!W()&&V()&&(window.addEventListener("online",()=>e(!0)),window.addEventListener("offline",()=>e(!1)));break;case q.reactNative:W()&&"u">typeof r.g&&null!=r.g&&r.g.NetInfo&&r.g?.NetInfo.addEventListener(t=>e(t?.isConnected));case q.node:}}let iO={};class iR{static get(e){return iO[e]}static set(e,t){iO[e]=t}static delete(e){delete iO[e]}}},62873:function(e,t){"use strict";function r(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function n(e){let t=r(e);if(!t)throw 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=r,t.getFromWindowOrThrow=n,t.getDocumentOrThrow=function(){return n("document")},t.getDocument=function(){return r("document")},t.getNavigatorOrThrow=function(){return n("navigator")},t.getNavigator=function(){return r("navigator")},t.getLocationOrThrow=function(){return n("location")},t.getLocation=function(){return r("location")},t.getCryptoOrThrow=function(){return n("crypto")},t.getCrypto=function(){return r("crypto")},t.getLocalStorageOrThrow=function(){return n("localStorage")},t.getLocalStorage=function(){return r("localStorage")}},65755:function(e,t,r){"use strict";t.D=void 0;let n=r(62873);t.D=function(){let e,t,r;try{e=n.getDocumentOrThrow(),t=n.getLocationOrThrow()}catch(e){return null}function i(...t){let r=e.getElementsByTagName("meta");for(let e=0;e<r.length;e++){let n=r[e],i=["itemprop","property","name"].map(e=>n.getAttribute(e)).filter(e=>!!e&&t.includes(e));if(i.length&&i){let e=n.getAttribute("content");if(e)return e}}return""}let o=((r=i("name","og:site_name","og:title","twitter:title"))||(r=e.title),r),a=i("description","og:description","twitter:description","keywords");return{description:a,url:t.origin,icons:function(){let r=e.getElementsByTagName("link"),n=[];for(let e=0;e<r.length;e++){let i=r[e],o=i.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=i.getAttribute("href");if(e){if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=t.protocol+"//"+t.host;if(0===e.indexOf("/"))r+=e;else{let n=t.pathname.split("/");n.pop(),r+=n.join("/")+"/"+e}n.push(r)}else if(0===e.indexOf("//")){let r=t.protocol+e;n.push(r)}else n.push(e)}}}return n}(),name:o}}},92977:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",o="month",a="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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,h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f="en",p={};p[f]={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"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}};var g="$isDayjsObject",m=function(e){return e instanceof w||!(!e||!e[g])},v=function e(t,r,n){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();p[o]&&(i=o),r&&(p[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;p[s]=t,i=s}return!n&&i&&(f=i),i||!n&&f},b=function(e,t){if(m(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},y={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,o),a=r-i<0,s=t.clone().add(n+(a?-1:1),o);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:o,y:s,w:i,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};y.l=v,y.i=m,y.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function h(e){this.$L=v(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[g]=!0}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(u);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},f.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()},f.$utils=function(){return y},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(e,t){var r=b(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return b(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<b(e)},f.$g=function(e,t,r){return y.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var c=this,u=!!y.u(a)||a,d=y.p(e),h=function(e,t){var r=y.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?r:r.endOf("day")},f=function(e,t){return y.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,g=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case s:return u?h(1,0):h(31,11);case o:return u?h(1,g):h(0,g+1);case i:var b=this.$locale().weekStart||0,w=(p<b?p+7:p)-b;return h(u?m-w:m+(6-w),g);case"day":case l:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case r:return f(v+"Seconds",2);case t:return f(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,a){var c,u=y.p(i),d="set"+(this.$u?"UTC":""),h=((c={}).day=d+"Date",c[l]=d+"Date",c[o]=d+"Month",c[s]=d+"FullYear",c[n]=d+"Hours",c[r]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],f="day"===u?this.$D+(a-this.$W):a;if(u===o||u===s){var p=this.clone().set(l,1);p.$d[h](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[y.p(e)]()},f.add=function(e,a){var l,c=this;e=Number(e);var u=y.p(a),d=function(t){var r=b(c);return y.w(r.date(r.date()+Math.round(t*e)),c)};if(u===o)return this.set(o,this.$M+e);if(u===s)return this.set(s,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var h=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[u]||1,f=this.$d.getTime()+e*h;return y.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=y.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,u=r.months,h=r.meridiem,f=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},p=function(e){return y.s(o%12||12,e,"0")},g=h||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(d,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return y.s(t.$y,4,"0");case"M":return s+1;case"MM":return y.s(s+1,2,"0");case"MMM":return f(r.monthsShort,s,u,3);case"MMMM":return f(u,s);case"D":return t.$D;case"DD":return y.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return f(r.weekdaysMin,t.$W,l,2);case"ddd":return f(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return y.s(o,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(o,a,!0);case"A":return g(o,a,!1);case"m":return String(a);case"mm":return y.s(a,2,"0");case"s":return String(t.$s);case"ss":return y.s(t.$s,2,"0");case"SSS":return y.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,l,c){var u,d=this,h=y.p(l),f=b(e),p=(f.utcOffset()-this.utcOffset())*6e4,g=this-f,m=function(){return y.m(d,f)};switch(h){case s:u=m()/12;break;case o:u=m();break;case a:u=m()/3;break;case i:u=(g-p)/6048e5;break;case"day":u=(g-p)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case t:u=g/1e3;break;default:u=g}return c?u:y.a(u)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=v(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return y.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),x=w.prototype;return b.prototype=x,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),b.extend=function(e,t){return e.$i||(e(t,w,b),e.$i=!0),b},b.locale=v,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=p[f],b.Ls=p,b.p={},b},e.exports=t()},50017:function(e){var t;t=function(){return{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"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||"th")+"]"}}},e.exports=t()},47021:function(e){var t;t=function(){return function(e,t,r){e=e||{};var n=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,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,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"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(l=a?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&p>0&&(g=h[p-1]);var v=d[g.l];s&&(m=s(""+m)),c="string"==typeof v?v.replace("%d",m):v(m,n,g.l,u);break}}if(n)return c;var b=u?d.future:d.past;return"function"==typeof b?b(c):b.replace("%s",c)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}},e.exports=t()},53639:function(e){var t;t=function(){return function(e,t,r){r.updateLocale=function(e,t){var n=r.Ls[e];if(n)return(t?Object.keys(t):[]).forEach(function(e){n[e]=t[e]}),n}}},e.exports=t()},54249:function(e,t,r){let n=r(15293),i=r(6999),o=r(51250),a=r(18390);function s(e,t,r,o,a){let s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!n())throw Error("Callback required as last argument");if(c){if(l<2)throw Error("Too few arguments provided");2===l?(a=r,r=t,t=o=void 0):3===l&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=r,r=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(r=t,t=o=void 0):2!==l||t.getContext||(o=r,r=t,t=void 0),new Promise(function(n,a){try{let a=i.create(r,o);n(e(a,t,o))}catch(e){a(e)}})}try{let n=i.create(r,o);a(null,e(n,t,o))}catch(e){a(e)}}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,r){return a.render(e,r)})},15293:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},81201:function(e,t,r){let n=r(67052).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=n(e),i=145===r?26:2*Math.ceil((r-13)/(2*t-2)),o=[r-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){let r=[],n=t.getRowColCoords(e),i=n.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)(0!==e||0!==t)&&(0!==e||t!==i-1)&&(e!==i-1||0!==t)&&r.push([n[e],n[t]]);return r}},24691:function(e,t,r){let n=r(87344),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=n.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*i.indexOf(this.data[t]);r+=i.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},87611:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},26424:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,n){let i=e*this.size+t;this.data[i]=r,n&&(this.reservedBit[i]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},22470:function(e,t,r){let n=r(62378),i=r(87344);function o(e){this.mode=i.BYTE,"string"==typeof e&&(e=n(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,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=o},20719:function(e,t,r){let n=r(18906),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 n.L:return i[(e-1)*4+0];case n.M:return i[(e-1)*4+1];case n.Q:return i[(e-1)*4+2];case n.H:return i[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return o[(e-1)*4+0];case n.M:return o[(e-1)*4+1];case n.Q:return o[(e-1)*4+2];case n.H:return o[(e-1)*4+3];default:return}}},18906:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw 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 Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},42381:function(e,t,r){let n=r(67052).getSymbolSize;t.getPositions=function(e){let t=n(e);return[[0,0],[t-7,0],[0,t-7]]}},78208:function(e,t,r){let n=r(67052),i=n.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;n.getBCHDigit(o)-i>=0;)o^=1335<<n.getBCHDigit(o)-i;return(r<<10|o)^21522}},49198:function(e,t){let r=new Uint8Array(512),n=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,n[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return n[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[n[e]+n[t]]}},80771:function(e,t,r){let n=r(87344),i=r(67052);function o(e){this.mode=n.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=i.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=o},59746:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};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){let t=e.size,n=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&&(n+=r.N1+(i-5)),a=t,i=1),(t=e.get(c,l))===s?o++:(o>=5&&(n+=r.N1+(o-5)),s=t,o=1)}i>=5&&(n+=r.N1+(i-5)),o>=5&&(n+=r.N1+(o-5))}return n},t.getPenaltyN2=function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let 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.N2},t.getPenaltyN3=function(e){let t=e.size,n=0,i=0,o=0;for(let r=0;r<t;r++){i=o=0;for(let a=0;a<t;a++)i=i<<1&2047|e.get(r,a),a>=10&&(1488===i||93===i)&&n++,o=o<<1&2047|e.get(a,r),a>=10&&(1488===o||93===o)&&n++}return n*r.N3},t.getPenaltyN4=function(e){let t=0,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)*r.N4},t.applyMask=function(e,r){let n=r.size;for(let i=0;i<n;i++)for(let o=0;o<n;o++)r.isReserved(o,i)||r.xor(o,i,function(e,r,n){switch(e){case t.Patterns.PATTERN000:return(r+n)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return n%3==0;case t.Patterns.PATTERN011:return(r+n)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case t.Patterns.PATTERN101:return r*n%2+r*n%3==0;case t.Patterns.PATTERN110:return(r*n%2+r*n%3)%2==0;case t.Patterns.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,o,i))},t.getBestMask=function(e,r){let n=Object.keys(t.Patterns).length,i=0,o=1/0;for(let a=0;a<n;a++){r(a),t.applyMask(a,e);let n=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),n<o&&(o=n,i=a)}return i}},87344:function(e,t,r){let n=r(88122),i=r(91445);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 Error("Invalid mode: "+e);if(!n.isValid(t))throw 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 Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw 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 Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},61308:function(e,t,r){let n=r(87344);function i(e){this.mode=n.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,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let n=this.data.length-t;n>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*n+1))},e.exports=i},39261:function(e,t,r){let n=r(49198);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let i=0;i<e.length;i++)for(let o=0;o<t.length;o++)r[i+o]^=n.mul(e[i],t[o]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let i=0;i<t.length;i++)r[i]^=n.mul(t[i],e);let i=0;for(;i<r.length&&0===r[i];)i++;r=r.slice(i)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let i=0;i<e;i++)r=t.mul(r,new Uint8Array([1,n.exp(i)]));return r}},6999:function(e,t,r){let n=r(67052),i=r(18906),o=r(87611),a=r(26424),s=r(81201),l=r(42381),c=r(59746),u=r(20719),d=r(58986),h=r(32850),f=r(78208),p=r(87344),g=r(39409);function m(e,t,r){let n,i;let o=e.size,a=f.getEncodedBits(t,r);for(n=0;n<15;n++)i=(a>>n&1)==1,n<6?e.set(n,8,i,!0):n<8?e.set(n+1,8,i,!0):e.set(o-15+n,8,i,!0),n<8?e.set(8,o-n-1,i,!0):n<9?e.set(8,15-n-1+1,i,!0):e.set(8,15-n-1,i,!0);e.set(o-8,8,1,!0)}t.create=function(e,t){let r,f;if(void 0===e||""===e)throw Error("No input text");let v=i.M;return void 0!==t&&(v=i.from(t.errorCorrectionLevel,i.M),r=h.from(t.version),f=c.from(t.maskPattern),t.toSJISFunc&&n.setToSJISFunction(t.toSJISFunc)),function(e,t,r,i){let f;if(Array.isArray(e))f=g.fromArray(e);else if("string"==typeof e){let n=t;if(!n){let t=g.rawSplit(e);n=h.getBestVersionForData(t,r)}f=g.fromString(e,n||40)}else throw Error("Invalid data");let v=h.getBestVersionForData(f,r);if(!v)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<v)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+v+".\n")}else t=v;let b=function(e,t,r){let i=new o;r.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),p.getCharCountIndicator(t.mode,e)),t.write(i)});let a=(n.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t))*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);let s=(a-i.getLengthInBits())/8;for(let e=0;e<s;e++)i.put(e%2?17:236,8);return function(e,t,r){let i,o;let a=n.getSymbolTotalCodewords(t),s=a-u.getTotalCodewordsCount(t,r),l=u.getBlocksCount(t,r),c=a%l,h=l-c,f=Math.floor(a/l),p=Math.floor(s/l),g=p+1,m=f-p,v=new d(m),b=0,y=Array(l),w=Array(l),x=0,_=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<h?p:g;y[e]=_.slice(b,b+t),w[e]=v.encode(y[e]),b+=t,x=Math.max(x,t)}let C=new Uint8Array(a),A=0;for(i=0;i<x;i++)for(o=0;o<l;o++)i<y[o].length&&(C[A++]=y[o][i]);for(i=0;i<m;i++)for(o=0;o<l;o++)C[A++]=w[o][i];return C}(i,e,t)}(t,r,f),y=new a(n.getSymbolSize(t));return function(e,t){let r=e.size,n=l.getPositions(t);for(let t=0;t<n.length;t++){let i=n[t][0],o=n[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1)&&!(r<=i+t))for(let n=-1;n<=7;n++)o+n<=-1||r<=o+n||(t>=0&&t<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===t||6===t)||t>=2&&t<=4&&n>=2&&n<=4?e.set(i+t,o+n,!0,!0):e.set(i+t,o+n,!1,!0))}}(y,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(y),function(e,t){let r=s.getPositions(t);for(let t=0;t<r.length;t++){let n=r[t][0],i=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(n+t,i+r,!0,!0):e.set(n+t,i+r,!1,!0)}}(y,t),m(y,r,0),t>=7&&function(e,t){let r,n,i;let o=e.size,a=h.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),n=t%3+o-8-3,i=(a>>t&1)==1,e.set(r,n,i,!0),e.set(n,r,i,!0)}(y,t),function(e,t){let r=e.size,n=-1,i=r-1,o=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(i,s-r)){let n=!1;a<t.length&&(n=(t[a]>>>o&1)==1),e.set(i,s-r,n),-1==--o&&(a++,o=7)}if((i+=n)<0||r<=i){i-=n,n=-n;break}}}(y,b),isNaN(i)&&(i=c.getBestMask(y,m.bind(null,y,r))),c.applyMask(i,y),m(y,r,i),{modules:y,version:t,errorCorrectionLevel:r,maskPattern:i,segments:f}}(e,r,v,f)}},58986:function(e,t,r){let n=r(39261);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=n.generateECPolynomial(this.degree)},i.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},e.exports=i},91445:function(e,t){let r="[0-9]+",n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",i="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(n,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(i,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let o=RegExp("^"+n+"$"),a=RegExp("^"+r+"$"),s=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)}},39409:function(e,t,r){let n=r(87344),i=r(61308),o=r(24691),a=r(22470),s=r(80771),l=r(91445),c=r(67052),u=r(65987);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,r){let n;let i=[];for(;null!==(n=e.exec(r));)i.push({data:n[0],index:n.index,mode:t,length:n[0].length});return i}function f(e){let t,r;let i=h(l.NUMERIC,n.NUMERIC,e),o=h(l.ALPHANUMERIC,n.ALPHANUMERIC,e);return c.isKanjiModeEnabled()?(t=h(l.BYTE,n.BYTE,e),r=h(l.KANJI,n.KANJI,e)):(t=h(l.BYTE_KANJI,n.BYTE,e),r=[]),i.concat(o,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function p(e,t){switch(t){case n.NUMERIC:return i.getBitsLength(e);case n.ALPHANUMERIC:return o.getBitsLength(e);case n.KANJI:return s.getBitsLength(e);case n.BYTE:return a.getBitsLength(e)}}function g(e,t){let r;let l=n.getBestModeForData(e);if((r=n.from(t,l))!==n.BYTE&&r.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+n.toString(r)+".\n Suggested mode is: "+n.toString(l));switch(r!==n.KANJI||c.isKanjiModeEnabled()||(r=n.BYTE),r){case n.NUMERIC:return new i(e);case n.ALPHANUMERIC:return new o(e);case n.KANJI:return new s(e);case n.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,r){let i=function(e,t){let r={},i={start:{}},o=["start"];for(let a=0;a<e.length;a++){let s=e[a],l=[];for(let e=0;e<s.length;e++){let c=s[e],u=""+a+e;l.push(u),r[u]={node:c,lastCount:0},i[u]={};for(let e=0;e<o.length;e++){let a=o[e];r[a]&&r[a].node.mode===c.mode?(i[a][u]=p(r[a].lastCount+c.length,c.mode)-p(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),i[a][u]=p(c.length,c.mode)+4+n.getCharCountIndicator(c.mode,t))}}o=l}for(let e=0;e<o.length;e++)i[o[e]].end=0;return{map:i,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case n.NUMERIC:t.push([i,{data:i.data,mode:n.ALPHANUMERIC,length:i.length},{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.ALPHANUMERIC:t.push([i,{data:i.data,mode:n.BYTE,length:i.length}]);break;case n.KANJI:t.push([i,{data:i.data,mode:n.BYTE,length:d(i.data)}]);break;case n.BYTE:t.push([{data:i.data,mode:n.BYTE,length:d(i.data)}])}}return t}(f(e,c.isKanjiModeEnabled())),r),o=u.find_path(i.map,"start","end"),a=[];for(let e=1;e<o.length-1;e++)a.push(i.table[o[e]].node);return t.fromArray(a.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(f(e,c.isKanjiModeEnabled()))}},67052:function(e,t){let r;let n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return n[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 Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},88122:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},32850:function(e,t,r){let n=r(67052),i=r(20719),o=r(18906),a=r(87344),s=r(88122),l=n.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let o=(n.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t))*8;if(r===a.MIXED)return o;let l=o-c(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let n;let i=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let n=1;n<=40;n++)if(function(e,t){let r=0;return e.forEach(function(e){let n=c(e.mode,t);r+=n+e.getBitsLength()}),r}(e,n)<=t.getCapacity(n,r,a.MIXED))return n}(e,i);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,r,n){for(let i=1;i<=40;i++)if(r<=t.getCapacity(i,n,e))return i}(n.mode,n.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;n.getBCHDigit(t)-l>=0;)t^=7973<<n.getBCHDigit(t)-l;return e<<12|t}},51250:function(e,t,r){let n=r(84786);t.render=function(e,t,r){var i;let o=r,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),o=n.getOptions(o);let s=n.getImageWidth(e.modules.size,o),l=a.getContext("2d"),c=l.createImageData(s,s);return n.qrToImageData(c.data,e,o),i=a,l.clearRect(0,0,i.width,i.height),i.style||(i.style={}),i.height=s,i.width=s,i.style.height=s+"px",i.style.width=s+"px",l.putImageData(c,0,0),a},t.renderToDataURL=function(e,r,n){let i=n;void 0!==i||r&&r.getContext||(i=r,r=void 0),i||(i={});let o=t.render(e,r,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},18390:function(e,t,r){let n=r(84786);function i(e,t){let r=e.a/255,n=t+'="'+e.hex+'"';return r<1?n+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':n}function o(e,t,r){let n=e+t;return void 0!==r&&(n+=" "+r),n}t.render=function(e,t,r){let a=n.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,r){let n="",i=0,a=!1,s=0;for(let l=0;l<e.length;l++){let c=Math.floor(l%t),u=Math.floor(l/t);c||a||(a=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(n+=a?o("M",c+r,.5+u+r):o("m",i,0),i=0,a=!1),c+1<t&&e[l+1]||(n+=o("h",s),s=0)):i++}return n}(l,s,a.margin)+'"/>',h='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+c)+" "+c+'" shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof r&&r(null,h),h}},84786:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw Error("Invalid hex color: "+e);(3===t.length||4===t.length)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:n,scale:n?4:i,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(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,r){let n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){let i=r.modules.size,o=r.modules.data,a=t.getScale(i,n),s=Math.floor((i+2*n.margin)*a),l=n.margin*a,c=[n.color.light,n.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let u=(t*s+r)*4,d=n.color.light;t>=l&&r>=l&&t<s-l&&r<s-l&&(d=c[o[Math.floor((t-l)/a)*i+Math.floor((r-l)/a)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},79742:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),a=o[0],s=o[1],c=new i((a+s)*3/4-s),u=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)o.push(r[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},13550:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{c="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(46601).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,s>=49?i+=s-49+10:s>=17?i+=s-17+10:i+=s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return 0>e.cmp(t)?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,o,a=0;a<this.length;a++)this.words[a]=0;var s=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)o=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=o<<s&67108863,this.words[i+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var o=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=s(e,t,i)<<o,this.words[a]|=67108863&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=s(e,t,i)<<o,this.words[a]|=67108863&n,o>=18?(o-=18,a+=1,this.words[a]|=n>>>26):o+=8;this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,u=r;u<s;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==a){var d=1;for(c=l(e,u,e.length,t),u=0;u<a;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},o.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,l=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}o.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],l=((s<<i|o)&16777215).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],f=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var g=p.modn(f).toString(e);r=(p=p.idivn(f)).isZero()?g+r:u[c-g.length]+g+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==c),this.toArrayLike(c,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i,o,a=this.byteLength(),s=r||Math.max(1,a);n(a<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0"),this.strip();var l=new e(s),c=this.clone();if("le"===t){for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[o]=i;for(;o<s;o++)l[o]=0}else{for(o=0;o<s-a;o++)l[o]=0;for(o=0;!c.isZero();o++)i=c.andln(255),c.iushrn(8),l[s-o-1]=i}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(n=(0|t.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&n;for(;0!==o&&a<t.length;a++)o=(n=(0|t.words[a])+o)>>26,this.words[a]=67108863&n;if(0===o&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,c=0,u=0|a[0],d=8191&u,h=u>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],v=8191&m,b=m>>>13,y=0|a[3],w=8191&y,x=y>>>13,_=0|a[4],C=8191&_,A=_>>>13,k=0|a[5],E=8191&k,S=k>>>13,T=0|a[6],I=8191&T,P=T>>>13,O=0|a[7],R=8191&O,M=O>>>13,N=0|a[8],j=8191&N,D=N>>>13,B=0|a[9],L=8191&B,$=B>>>13,U=0|s[0],z=8191&U,F=U>>>13,q=0|s[1],H=8191&q,W=q>>>13,V=0|s[2],Z=8191&V,G=V>>>13,K=0|s[3],Y=8191&K,Q=K>>>13,J=0|s[4],X=8191&J,ee=J>>>13,et=0|s[5],er=8191&et,en=et>>>13,ei=0|s[6],eo=8191&ei,ea=ei>>>13,es=0|s[7],el=8191&es,ec=es>>>13,eu=0|s[8],ed=8191&eu,eh=eu>>>13,ef=0|s[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(c+(n=Math.imul(d,z))|0)+((8191&(i=(i=Math.imul(d,F))+Math.imul(h,z)|0))<<13)|0;c=((o=Math.imul(h,F))+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,F))+Math.imul(g,z)|0,o=Math.imul(g,F);var ev=(c+(n=n+Math.imul(d,H)|0)|0)+((8191&(i=(i=i+Math.imul(d,W)|0)+Math.imul(h,H)|0))<<13)|0;c=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(v,z),i=(i=Math.imul(v,F))+Math.imul(b,z)|0,o=Math.imul(b,F),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,W)|0;var eb=(c+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,G)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,G)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,F))+Math.imul(x,z)|0,o=Math.imul(x,F),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,G)|0;var ey=(c+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,Y)|0))<<13)|0;c=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,F))+Math.imul(A,z)|0,o=Math.imul(A,F),n=n+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,G)|0,n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(g,Y)|0,o=o+Math.imul(g,Q)|0;var ew=(c+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,F))+Math.imul(S,z)|0,o=Math.imul(S,F),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,G)|0,n=n+Math.imul(v,Y)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,Q)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0;var ex=(c+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;c=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(I,z),i=(i=Math.imul(I,F))+Math.imul(P,z)|0,o=Math.imul(P,F),n=n+Math.imul(E,H)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,W)|0,n=n+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,G)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(x,Y)|0,o=o+Math.imul(x,Q)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(g,er)|0,o=o+Math.imul(g,en)|0;var e_=(c+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0))<<13)|0;c=((o=o+Math.imul(h,ea)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,F))+Math.imul(M,z)|0,o=Math.imul(M,F),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,W)|0)+Math.imul(P,H)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,G)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,Q)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(b,er)|0,o=o+Math.imul(b,en)|0,n=n+Math.imul(p,eo)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(g,eo)|0,o=o+Math.imul(g,ea)|0;var eC=(c+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,ec)|0)+Math.imul(h,el)|0))<<13)|0;c=((o=o+Math.imul(h,ec)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,F))+Math.imul(D,z)|0,o=Math.imul(D,F),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,W)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,G)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(S,Y)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(x,er)|0,o=o+Math.imul(x,en)|0,n=n+Math.imul(v,eo)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(b,eo)|0,o=o+Math.imul(b,ea)|0,n=n+Math.imul(p,el)|0,i=(i=i+Math.imul(p,ec)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,ec)|0;var eA=(c+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;c=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,F))+Math.imul($,z)|0,o=Math.imul($,F),n=n+Math.imul(j,H)|0,i=(i=i+Math.imul(j,W)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,W)|0,n=n+Math.imul(R,Z)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,G)|0,n=n+Math.imul(I,Y)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,Q)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(x,eo)|0,o=o+Math.imul(x,ea)|0,n=n+Math.imul(v,el)|0,i=(i=i+Math.imul(v,ec)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,ec)|0,n=n+Math.imul(p,ed)|0,i=(i=i+Math.imul(p,eh)|0)+Math.imul(g,ed)|0,o=o+Math.imul(g,eh)|0;var ek=(c+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;c=((o=o+Math.imul(h,eg)|0)+(i>>>13)|0)+(ek>>>26)|0,ek&=67108863,n=Math.imul(L,H),i=(i=Math.imul(L,W))+Math.imul($,H)|0,o=Math.imul($,W),n=n+Math.imul(j,Z)|0,i=(i=i+Math.imul(j,G)|0)+Math.imul(D,Z)|0,o=o+Math.imul(D,G)|0,n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,Q)|0,n=n+Math.imul(I,X)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(S,er)|0,o=o+Math.imul(S,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,ec)|0)+Math.imul(x,el)|0,o=o+Math.imul(x,ec)|0,n=n+Math.imul(v,ed)|0,i=(i=i+Math.imul(v,eh)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,eh)|0;var eE=(c+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;c=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(L,Z),i=(i=Math.imul(L,G))+Math.imul($,Z)|0,o=Math.imul($,G),n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,Q)|0)+Math.imul(D,Y)|0,o=o+Math.imul(D,Q)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(I,er)|0,i=(i=i+Math.imul(I,en)|0)+Math.imul(P,er)|0,o=o+Math.imul(P,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(S,eo)|0,o=o+Math.imul(S,ea)|0,n=n+Math.imul(C,el)|0,i=(i=i+Math.imul(C,ec)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,ec)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(x,ed)|0,o=o+Math.imul(x,eh)|0;var eS=(c+(n=n+Math.imul(v,ep)|0)|0)+((8191&(i=(i=i+Math.imul(v,eg)|0)+Math.imul(b,ep)|0))<<13)|0;c=((o=o+Math.imul(b,eg)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(L,Y),i=(i=Math.imul(L,Q))+Math.imul($,Y)|0,o=Math.imul($,Q),n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,ee)|0,n=n+Math.imul(R,er)|0,i=(i=i+Math.imul(R,en)|0)+Math.imul(M,er)|0,o=o+Math.imul(M,en)|0,n=n+Math.imul(I,eo)|0,i=(i=i+Math.imul(I,ea)|0)+Math.imul(P,eo)|0,o=o+Math.imul(P,ea)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,ec)|0)+Math.imul(S,el)|0,o=o+Math.imul(S,ec)|0,n=n+Math.imul(C,ed)|0,i=(i=i+Math.imul(C,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eT=(c+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eg)|0)+Math.imul(x,ep)|0))<<13)|0;c=((o=o+Math.imul(x,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul($,X)|0,o=Math.imul($,ee),n=n+Math.imul(j,er)|0,i=(i=i+Math.imul(j,en)|0)+Math.imul(D,er)|0,o=o+Math.imul(D,en)|0,n=n+Math.imul(R,eo)|0,i=(i=i+Math.imul(R,ea)|0)+Math.imul(M,eo)|0,o=o+Math.imul(M,ea)|0,n=n+Math.imul(I,el)|0,i=(i=i+Math.imul(I,ec)|0)+Math.imul(P,el)|0,o=o+Math.imul(P,ec)|0,n=n+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,eh)|0)+Math.imul(S,ed)|0,o=o+Math.imul(S,eh)|0;var eI=(c+(n=n+Math.imul(C,ep)|0)|0)+((8191&(i=(i=i+Math.imul(C,eg)|0)+Math.imul(A,ep)|0))<<13)|0;c=((o=o+Math.imul(A,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(L,er),i=(i=Math.imul(L,en))+Math.imul($,er)|0,o=Math.imul($,en),n=n+Math.imul(j,eo)|0,i=(i=i+Math.imul(j,ea)|0)+Math.imul(D,eo)|0,o=o+Math.imul(D,ea)|0,n=n+Math.imul(R,el)|0,i=(i=i+Math.imul(R,ec)|0)+Math.imul(M,el)|0,o=o+Math.imul(M,ec)|0,n=n+Math.imul(I,ed)|0,i=(i=i+Math.imul(I,eh)|0)+Math.imul(P,ed)|0,o=o+Math.imul(P,eh)|0;var eP=(c+(n=n+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,eg)|0)+Math.imul(S,ep)|0))<<13)|0;c=((o=o+Math.imul(S,eg)|0)+(i>>>13)|0)+(eP>>>26)|0,eP&=67108863,n=Math.imul(L,eo),i=(i=Math.imul(L,ea))+Math.imul($,eo)|0,o=Math.imul($,ea),n=n+Math.imul(j,el)|0,i=(i=i+Math.imul(j,ec)|0)+Math.imul(D,el)|0,o=o+Math.imul(D,ec)|0,n=n+Math.imul(R,ed)|0,i=(i=i+Math.imul(R,eh)|0)+Math.imul(M,ed)|0,o=o+Math.imul(M,eh)|0;var eO=(c+(n=n+Math.imul(I,ep)|0)|0)+((8191&(i=(i=i+Math.imul(I,eg)|0)+Math.imul(P,ep)|0))<<13)|0;c=((o=o+Math.imul(P,eg)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=67108863,n=Math.imul(L,el),i=(i=Math.imul(L,ec))+Math.imul($,el)|0,o=Math.imul($,ec),n=n+Math.imul(j,ed)|0,i=(i=i+Math.imul(j,eh)|0)+Math.imul(D,ed)|0,o=o+Math.imul(D,eh)|0;var eR=(c+(n=n+Math.imul(R,ep)|0)|0)+((8191&(i=(i=i+Math.imul(R,eg)|0)+Math.imul(M,ep)|0))<<13)|0;c=((o=o+Math.imul(M,eg)|0)+(i>>>13)|0)+(eR>>>26)|0,eR&=67108863,n=Math.imul(L,ed),i=(i=Math.imul(L,eh))+Math.imul($,ed)|0,o=Math.imul($,eh);var eM=(c+(n=n+Math.imul(j,ep)|0)|0)+((8191&(i=(i=i+Math.imul(j,eg)|0)+Math.imul(D,ep)|0))<<13)|0;c=((o=o+Math.imul(D,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863;var eN=(c+(n=Math.imul(L,ep))|0)+((8191&(i=(i=Math.imul(L,eg))+Math.imul($,ep)|0))<<13)|0;return c=((o=Math.imul($,eg))+(i>>>13)|0)+(eN>>>26)|0,eN&=67108863,l[0]=em,l[1]=ev,l[2]=eb,l[3]=ey,l[4]=ew,l[5]=ex,l[6]=e_,l[7]=eC,l[8]=eA,l[9]=ek,l[10]=eE,l[11]=eS,l[12]=eT,l[13]=eI,l[14]=eP,l[15]=eO,l[16]=eR,l[17]=eM,l[18]=eN,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=f),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?f(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=a+(d/67108864|0)|0,s=67108863&(h=h+s|0),i+=(a=a+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):g(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var d=l,h=c,f=0;f<a;f++){var p=r[u+f],g=n[u+f],m=r[u+f+a],v=n[u+f+a],b=d*m-h*v;v=d*v+h*m,m=b,r[u+f]=p+m,n[u+f]=g+v,r[u+f+a]=p-m,n[u+f+a]=g-v,f!==s&&(b=l*d-c*h,h=l*h+c*d,d=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n((-8192&o)==0)},m.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=Array(n),s=Array(n),l=Array(n),c=Array(n),u=Array(n),d=Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,l,n,i),this.transform(c,o,u,d,n,i);for(var f=0;f<n;f++){var p=s[f]*u[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*u[f],s[f]=p}return this.conjugate(s,l,n),this.transform(s,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=(i/67108864|0)+(o>>>26),this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,l=(0|this.words[t])-s<<r;this.words[t]=l|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var i,o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o;if(i-=a,i=Math.max(0,i),r){for(var l=0;l<a;l++)r.words[l]=this.words[l];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var u=0|this.words[l];this.words[l]=c<<26-o|u>>>o,c=u&s}return r&&0!==c&&(r.words[r.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=67108863^67108863>>>t<<t),this.strip())},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<67108864),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var l=(0|e.words[i])*t;o-=67108863&l,s=(o>>26)-(l/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,s=0|a.words[a.length-1];0!=(n=26-this._countBits(s))&&(a=a.ushln(n),i.iushln(n),s=0|a.words[a.length-1]);var l=i.length-a.length;if("mod"!==t){(r=new o(null)).length=l+1,r.words=Array(r.length);for(var c=0;c<r.length;c++)r.words[c]=0}var u=i.clone()._ishlnsubmul(a,1,l);0===u.negative&&(i=u,r&&(r.words[l]=1));for(var d=l-1;d>=0;d--){var h=(0|i.words[a.length+d])*67108864+(0|i.words[a.length+d-1]);for(h=Math.min(h/s|0,67108863),i._ishlnsubmul(a,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(a,1,d),i.isZero()||(i.negative^=1);r&&(r.words[d]=h)}return r&&r.strip(),i.strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},o.prototype.divmod=function(e,t,r){var i,a,s;return(n(!e.isZero()),this.isZero())?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):(this.negative&e.negative)!=0?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t)},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=67108864%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;(t.words[0]&f)==0&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(d)),i.iushrn(1),a.iushrn(1);for(var p=0,g=1;(r.words[0]&g)==0&&p<26;++p,g<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(l)):(r.isub(t),s.isub(i),l.isub(a))}return{a:s,b:l,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new o(1),s=new o(0),l=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;(r.words[0]&u)==0&&c<26;++c,u<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;(i.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(s)):(i.isub(r),s.isub(a))}return 0>(t=0===r.cmpn(1)?a:s).cmpn(0)&&t.iadd(e),t},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return(1&this.words[0])==0},o.prototype.isOdd=function(){return(1&this.words[0])==1},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return -1===this.cmpn(e)},o.prototype.lt=function(e){return -1===this.cmp(e)},o.prototype.lten=function(e){return 0>=this.cmpn(e)},o.prototype.lte=function(e){return 0>=this.cmp(e)},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(w,b),i(x,b),i(_,b),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=(0|e.words[r])*19+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return v[e]=t,t},C.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},C.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,i),h=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=a;0!==f.cmp(s);){for(var g=f,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m<p);var v=this.pow(d,new o(1).iushln(p-m-1));h=h.redMul(v),d=v.redSqr(),f=f.redMul(d),p=m}return h},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;if(i!==r[0]&&(i=this.sqr(i)),0===d&&0===a){s=0;continue}a<<=1,a|=d,(4==++s||0===n&&0===u)&&(i=this.mul(i,r[a]),s=0,a=0)}l=26}return i},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new A(e)},i(A,C),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):0>i.cmpn(0)&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},29931:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=r(89214);if("function"!=typeof o.randomBytes)throw Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},48764:function(e,t,r){"use strict";let n=r(79742),i=r(80645),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!s.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=a(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(B(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return s.from(n,t,r);let i=function(e){var t;if(s.isBuffer(e)){let t=0|f(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),a(e<0?0:0|f(e))}function d(e){let t=e.length<0?0:0|f(e.length),r=a(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){let n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),s.prototype),n}function f(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:N(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){let i=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=t;n<r;++n)i+=L[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return y(this,t,r);case"ascii":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":var o,a;return o=t,a=r,0===o&&a===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){let n=e.slice(t,r),i="";for(let e=0;e<n.length-1;e+=2)i+=String.fromCharCode(n[e]+256*n[e+1]);return i}(this,t,r);default:if(i)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function m(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=s.from(t,n)),s.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){let o,a=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===l)return n*a}else -1!==n&&(o-=o-n),n=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){let r=!0;for(let n=0;n<l;n++)if(c(e,o+n)!==c(t,n)){r=!1;break}if(r)return o}return -1}function y(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let t=e[i],o=null,a=t>239?4:t>223?3:t>191?2:1;if(i+a<=r){let r,n,s,l;switch(a){case 1:t<128&&(o=t);break;case 2:(192&(r=e[i+1]))==128&&(l=(31&t)<<6|63&r)>127&&(o=l);break;case 3:r=e[i+1],n=e[i+2],(192&r)==128&&(192&n)==128&&(l=(15&t)<<12|(63&r)<<6|63&n)>2047&&(l<55296||l>57343)&&(o=l);break;case 4:r=e[i+1],n=e[i+2],s=e[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(l=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&l<1114112&&(o=l)}}null===o?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=a}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,i,o){if(!s.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function _(e,t,r,n,i){P(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function C(e,t,r,n,i){P(t,n,i,e,r,7);let o=Number(t&BigInt(4294967295));e[r+7]=o,o>>=8,e[r+6]=o,o>>=8,e[r+5]=o,o>>=8,e[r+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function A(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,o){return t=+t,r>>>=0,o||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t=+t,r>>>=0,o||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=s,t.SlowBuffer=function(e){return+e!=e&&(e=0),s.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,s.TYPED_ARRAY_SUPPORT=function(){try{let 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}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(B(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},s.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}},s.concat=function(e,t){let r;if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;let n=s.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){let t=e[r];if(B(t,Uint8Array))i+t.length>n.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(s.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},s.byteLength=p,s.prototype._isBuffer=!0,s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):g.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,t,r,n,i){if(B(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let o=i-n,a=r-t,l=Math.min(o,a),c=this.slice(n,i),u=e.slice(t,r);for(let e=0;e<l;++e)if(c[e]!==u[e]){o=c[e],a=u[e];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},s.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var i,o,a,s,l,c,u,d;if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let f=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let i;r=Number(r)||0;let o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;let a=t.length;for(n>a/2&&(n=a/2),i=0;i<n;++i){let n=parseInt(t.substr(2*i,2),16);if(n!=n)break;e[r+i]=n}return i}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,D(N(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,D(function(e){let t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,s);case"base64":return l=t,c=r,D(j(e),this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u=t,d=r,D(function(e,t){let r,n;let i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-u),this,u,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},s.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);let n=this.subarray(e,t);return Object.setPrototypeOf(n,s.prototype),n},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=$(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+16777216*this[++e],i=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=$(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&R(e,this.length-8);let n=16777216*t+65536*this[++e]+256*this[++e]+this[++e],i=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],i=1,o=0;for(;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},s.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,i=1,o=this[e+--n];for(;n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=$(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&R(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=$(function(e){O(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&R(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<<BigInt(32))+BigInt(16777216*this[++e]+65536*this[++e]+256*this[++e]+r)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),i.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),i.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(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},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(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},s.prototype.writeBigUInt64LE=$(function(e,t=0){return _(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=$(function(e,t=0){return C(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let i=0,o=1,a=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+r},s.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let i=r-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+r},s.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(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},s.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(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},s.prototype.writeBigInt64LE=$(function(e,t=0){return _(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=$(function(e,t=0){return C(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},s.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},s.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},s.prototype.copy=function(e,t,r,n){if(!s.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);let i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},s.prototype.fill=function(e,t,r,n){let i;if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!s.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){let t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{let o=s.isBuffer(e)?e:s.from(e,n),a=o.length;if(0===a)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%a]}return this};let S={};function T(e,t,r){S[e]=class extends r{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 I(e){let t="",r=e.length,n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function P(e,t,r,n,i,o){if(e>r||e<t){let n;let i="bigint"==typeof t?"n":"";throw n=o>3?0===t||t===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${t}${i} and <= ${r}${i}`,new S.ERR_OUT_OF_RANGE("value",n,e)}O(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&R(i,n.length-(o+1))}function O(e,t){if("number"!=typeof e)throw new S.ERR_INVALID_ARG_TYPE(t,"number",e)}function R(e,t,r){if(Math.floor(e)!==e)throw O(e,r),new S.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new S.ERR_BUFFER_OUT_OF_BOUNDS;throw new S.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?i=I(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=I(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let M=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let n=e.length,i=null,o=[];for(let a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let L=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function $(e){return"undefined"==typeof BigInt?U:e}function U(){throw Error("BigInt not supported")}},20640:function(e,t,r){"use strict";var n=r(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var r,o,a,s,l,c,u,d,h=!1;t||(t={}),a=t.debug||!1;try{if(l=n(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(r){if(r.stopPropagation(),t.format){if(r.preventDefault(),void 0===r.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=i[t.format]||i.default;window.clipboardData.setData(n,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e)}t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(n){a&&console.error("unable to copy using execCommand: ",n),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(n){a&&console.error("unable to copy using clipboardData: ",n),a&&console.error("falling back to prompt"),r="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",s=r.replace(/#{\s*key\s*}/g,o),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},54098:function(e,t){var r="undefined"!=typeof self?self:this,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();(function(e){var t={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function c(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=c(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=c(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},t.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=o(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[o(e)]},l.prototype.get=function(e){return e=o(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(o(e))},l.prototype.set=function(e,t){this.map[o(e)]=a(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),s(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),s(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var r,n,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),p.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},f.call(g.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];v.redirect=function(e,t){if(-1===b.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=n.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function y(r,n){return new Promise(function(i,o){var a=new g(r,n);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL"),i(new v("response"in s?s.response:s.responseText,r))},s.onerror=function(){o(TypeError("Network request failed"))},s.ontimeout=function(){o(TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&t.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}y.polyfill=!0,n.fetch||(n.fetch=y,n.Headers=l,n.Request=g,n.Response=v),e.Headers=l,e.Request=g,e.Response=v,e.fetch=y,Object.defineProperty(e,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},32667:function(e,t,r){var n=r(9950),i=r(25419);function o(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).whiteList=e.whiteList||n.whiteList,e.onAttr=e.onAttr||n.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||n.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||n.safeAttrValue,this.options=e}r(17381),o.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,n=t.onAttr,o=t.onIgnoreAttr,a=t.safeAttrValue;return i(e,function(e,t,i,s,l){var c=r[i],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=a(i,s)){var d={position:t,sourcePosition:e,source:l,isWhite:u};if(u){var h=n(i,s,d);return null==h?i+":"+s:h}var h=o(i,s,d);if(null!=h)return h}})},e.exports=o},9950:function(e,t){function r(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}var n=/javascript\s*\:/img;t.whiteList=r(),t.getDefaultWhiteList=r,t.onAttr=function(e,t,r){},t.onIgnoreAttr=function(e,t,r){},t.safeAttrValue=function(e,t){return n.test(t)?"":t}},29970:function(e,t,r){var n=r(9950),i=r(32667);for(var o in(t=e.exports=function(e,t){return new i(t).process(e)}).FilterCSS=i,n)t[o]=n[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)},25419:function(e,t,r){var n=r(17381);e.exports=function(e,t){";"!==(e=n.trimRight(e))[e.length-1]&&(e+=";");var r=e.length,i=!1,o=0,a=0,s="";function l(){if(!i){var r=n.trim(e.slice(o,a)),l=r.indexOf(":");if(-1!==l){var c=n.trim(r.slice(0,l)),u=n.trim(r.slice(l+1));if(c){var d=t(o,s.length,c,u,r);d&&(s+=d+"; ")}}}o=a+1}for(;a<r;a++){var c=e[a];if("/"===c&&"*"===e[a+1]){var u=e.indexOf("*/",a+2);if(-1===u)break;o=(a=u+1)+1,i=!1}else"("===c?i=!0:")"===c?i=!1:";"===c?i||l():"\n"===c&&l()}return n.trim(s)}},17381:function(e){e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},27484:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="week",o="month",a="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|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,h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f="en",p={};p[f]={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("_")};var g=function(e){return e instanceof y},m=function e(t,r,n){var i;if(!t)return f;if("string"==typeof t){var o=t.toLowerCase();p[o]&&(i=o),r&&(p[o]=r,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;p[s]=t,i=s}return!n&&i&&(f=i),i||!n&&f},v=function(e,t){if(g(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new y(r)},b={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t);return(t<=0?"+":"-")+h(Math.floor(r/60),2,"0")+":"+h(r%60,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,o),a=r-i<0,s=t.clone().add(n+(a?-1:1),o);return+(-(n+(r-i)/(a?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:o,y:s,w:i,d:"day",D:l,h:n,m:r,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};b.l=m,b.i=g,b.w=function(e,t){return v(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var y=function(){function h(e){this.$L=m(e.locale,null,!0),this.parse(e)}var f=h.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(u);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},f.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()},f.$utils=function(){return b},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(e,t){var r=v(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return v(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<v(e)},f.$g=function(e,t,r){return b.u(e)?this[t]:this.set(r,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,a){var c=this,u=!!b.u(a)||a,d=b.p(e),h=function(e,t){var r=b.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?r:r.endOf("day")},f=function(e,t){return b.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,g=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case s:return u?h(1,0):h(31,11);case o:return u?h(1,g):h(0,g+1);case i:var y=this.$locale().weekStart||0,w=(p<y?p+7:p)-y;return h(u?m-w:m+(6-w),g);case"day":case l:return f(v+"Hours",0);case n:return f(v+"Minutes",1);case r:return f(v+"Seconds",2);case t:return f(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(i,a){var c,u=b.p(i),d="set"+(this.$u?"UTC":""),h=((c={}).day=d+"Date",c[l]=d+"Date",c[o]=d+"Month",c[s]=d+"FullYear",c[n]=d+"Hours",c[r]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],f="day"===u?this.$D+(a-this.$W):a;if(u===o||u===s){var p=this.clone().set(l,1);p.$d[h](f),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](f);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[b.p(e)]()},f.add=function(e,a){var l,c=this;e=Number(e);var u=b.p(a),d=function(t){var r=v(c);return b.w(r.date(r.date()+Math.round(t*e)),c)};if(u===o)return this.set(o,this.$M+e);if(u===s)return this.set(s,this.$y+e);if("day"===u)return d(1);if(u===i)return d(7);var h=((l={})[r]=6e4,l[n]=36e5,l[t]=1e3,l)[u]||1,f=this.$d.getTime()+e*h;return b.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,u=r.months,h=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},f=function(e){return b.s(o%12||12,e,"0")},p=r.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},g={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:b.s(s+1,2,"0"),MMM:h(r.monthsShort,s,u,3),MMMM:h(u,s),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:h(r.weekdaysMin,this.$W,l,2),ddd:h(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:b.s(o,2,"0"),h:f(1),hh:f(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:b.s(a,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:i};return n.replace(d,function(e,t){return t||g[e]||i.replace(":","")})},f.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},f.diff=function(e,l,c){var u,d=b.p(l),h=v(e),f=(h.utcOffset()-this.utcOffset())*6e4,p=this-h,g=b.m(this,h);return g=((u={})[s]=g/12,u[o]=g,u[a]=g/3,u[i]=(p-f)/6048e5,u.day=(p-f)/864e5,u[n]=p/36e5,u[r]=p/6e4,u[t]=p/1e3,u)[d]||p,c?g:b.a(g)},f.daysInMonth=function(){return this.endOf(o).$D},f.$locale=function(){return p[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=m(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return b.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},h}(),w=y.prototype;return v.prototype=w,[["$ms",e],["$s",t],["$m",r],["$H",n],["$W","day"],["$M",o],["$y",s],["$D",l]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),v.extend=function(e,t){return e.$i||(e(t,y,v),e.$i=!0),v},v.locale=m,v.isDayjs=g,v.unix=function(e){return v(1e3*e)},v.en=p[f],v.Ls=p,v.p={},v},e.exports=t()},1646:function(e){var t;t=function(){"use strict";var e,t,r=/\[([^\]]+)]|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,n=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,i={years:31536e6,months:2592e6,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1,weeks:6048e5},o=function(e){return e instanceof d},a=function(e,t,r){return new d(e,r,t.$l)},s=function(e){return t.p(e)+"s"},l=function(e){return e<0},c=function(e){return l(e)?Math.ceil(e):Math.floor(e)},u=function(e,t){return e?l(e)?{negative:!0,format:""+Math.abs(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},d=function(){function l(e,t,r){var o=this;if(this.$d={},this.$l=r,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return a(e*i[s(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach(function(t){o.$d[s(t)]=e[t]}),this.calMilliseconds(),this;if("string"==typeof e){var l=e.match(n);if(l){var c=l.slice(2).map(function(e){return null!=e?Number(e):0});return this.$d.years=c[0],this.$d.months=c[1],this.$d.weeks=c[2],this.$d.days=c[3],this.$d.hours=c[4],this.$d.minutes=c[5],this.$d.seconds=c[6],this.calMilliseconds(),this}}return this}var d=l.prototype;return d.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(t,r){return t+(e.$d[r]||0)*i[r]},0)},d.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/31536e6),e%=31536e6,this.$d.months=c(e/2592e6),e%=2592e6,this.$d.days=c(e/864e5),e%=864e5,this.$d.hours=c(e/36e5),e%=36e5,this.$d.minutes=c(e/6e4),e%=6e4,this.$d.seconds=c(e/1e3),e%=1e3,this.$d.milliseconds=e},d.toISOString=function(){var e=u(this.$d.years,"Y"),t=u(this.$d.months,"M"),r=+this.$d.days||0;this.$d.weeks&&(r+=7*this.$d.weeks);var n=u(r,"D"),i=u(this.$d.hours,"H"),o=u(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=u(a,"S"),l=e.negative||t.negative||n.negative||i.negative||o.negative||s.negative,c=i.format||o.format||s.format?"T":"",d=(l?"-":"")+"P"+e.format+t.format+n.format+c+i.format+o.format+s.format;return"P"===d||"-P"===d?"P0D":d},d.toJSON=function(){return this.toISOString()},d.format=function(e){var n={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return(e||"YYYY-MM-DDTHH:mm:ss").replace(r,function(e,t){return t||String(n[e])})},d.as=function(e){return this.$ms/i[s(e)]},d.get=function(e){var t=this.$ms,r=s(e);return"milliseconds"===r?t%=1e3:t="weeks"===r?c(t/i[r]):this.$d[r],0===t?0:t},d.add=function(e,t,r){var n;return n=t?e*i[s(t)]:o(e)?e.$ms:a(e,this).$ms,a(this.$ms+n*(r?-1:1),this)},d.subtract=function(e,t){return this.add(e,t,!0)},d.locale=function(e){var t=this.clone();return t.$l=e,t},d.clone=function(){return a(this.$ms,this)},d.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},d.milliseconds=function(){return this.get("milliseconds")},d.asMilliseconds=function(){return this.as("milliseconds")},d.seconds=function(){return this.get("seconds")},d.asSeconds=function(){return this.as("seconds")},d.minutes=function(){return this.get("minutes")},d.asMinutes=function(){return this.as("minutes")},d.hours=function(){return this.get("hours")},d.asHours=function(){return this.as("hours")},d.days=function(){return this.get("days")},d.asDays=function(){return this.as("days")},d.weeks=function(){return this.get("weeks")},d.asWeeks=function(){return this.as("weeks")},d.months=function(){return this.get("months")},d.asMonths=function(){return this.as("months")},d.years=function(){return this.get("years")},d.asYears=function(){return this.as("years")},l}();return function(r,n,i){e=i,t=i().$utils(),i.duration=function(e,t){return a(e,{$l:i.locale()},t)},i.isDuration=o;var s=n.prototype.add,l=n.prototype.subtract;n.prototype.add=function(e,t){return o(e)&&(e=e.asMilliseconds()),s.bind(this)(e,t)},n.prototype.subtract=function(e,t){return o(e)&&(e=e.asMilliseconds()),l.bind(this)(e,t)}}},e.exports=t()},56176:function(e){var t;t=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,n){var i=r.prototype,o=i.format;n.en.formats=e,i.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var r,n,i=this.$locale().formats,a=(r=t,n=void 0===i?{}:i,r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,i){var o=i&&i.toUpperCase();return r||n[i]||e[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})}));return o.call(this,a)}}},e.exports=t()},37181:function(e){var t;t=function(){return function(e,t,r){var n=function(e,t){if(!t||!t.length||!t[0]||1===t.length&&!t[0].length)return null;1===t.length&&t[0].length>0&&(t=t[0]),r=t[0];for(var r,n=1;n<t.length;n+=1)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r};r.max=function(){var e=[].slice.call(arguments,0);return n("isAfter",e)},r.min=function(){var e=[].slice.call(arguments,0);return n("isBefore",e)}}},e.exports=t()},84110:function(e){var t;t=function(){return function(e,t,r){e=e||{};var n=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,r,i){return n.fromToBase(e,t,r,i)}r.en.relativeTime=i,n.fromToBase=function(t,n,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"}],f=h.length,p=0;p<f;p+=1){var g=h[p];g.d&&(l=a?r(t).diff(o,g.d,!0):o.diff(t,g.d,!0));var m=(e.rounding||Math.round)(Math.abs(l));if(u=l>0,m<=g.r||!g.r){m<=1&&p>0&&(g=h[p-1]);var v=d[g.l];s&&(m=s(""+m)),c="string"==typeof v?v.replace("%d",m):v(m,n,g.l,u);break}}if(n)return c;var b=u?d.future:d.past;return"function"==typeof b?b(c):b.replace("%s",c)},n.to=function(e,t){return o(e,t,this,!0)},n.from=function(e,t){return o(e,t,this)};var a=function(e){return e.$u?r.utc():r()};n.toNow=function(e){return this.to(a(this),e)},n.fromNow=function(e){return this.from(a(this),e)}}},e.exports=t()},70660:function(e){var t;t=function(){return function(e,t,r){r.updateLocale=function(e,t){var n=r.Ls[e];if(n)return(t?Object.keys(t):[]).forEach(function(e){n[e]=t[e]}),n}}},e.exports=t()},55183:function(e){var t;t=function(){"use strict";var e="week",t="year";return function(r,n,i){var o=n.prototype;o.week=function(r){if(void 0===r&&(r=null),null!==r)return this.add(7*(r-this.week()),"day");var n=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(t).add(1,t).date(n),a=i(this).endOf(e);if(o.isBefore(a))return 1}var s=i(this).startOf(t).date(n).startOf(e).subtract(1,"millisecond"),l=this.diff(s,e,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}},e.exports=t()},44020:function(e){"use strict";var t="%[a-f0-9]{2}",r=RegExp("("+t+")|([^%]+?)","gi"),n=RegExp("("+t+")+","gi");e.exports=function(e){if("string"!=typeof e)throw 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 t={"%FE%FF":"��","%FF%FE":"��"},i=n.exec(e);i;){try{t[i[0]]=decodeURIComponent(i[0])}catch(e){var o=function(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r)||[],n=1;n<t.length;n++)t=(e=(function e(t,r){try{return[decodeURIComponent(t.join(""))]}catch(e){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),i=t.slice(r);return Array.prototype.concat.call([],e(n),e(i))})(t,n).join("")).match(r)||[];return e}}(i[0]);o!==i[0]&&(t[i[0]]=o)}i=n.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var l=a[s];e=e.replace(RegExp(l,"g"),t[l])}return e}(e)}}},43631:function(e,t,r){"use strict";r.r(t),r.d(t,{BotInfo:function(){return l},BrowserInfo:function(){return o},NodeInfo:function(){return a},ReactNativeInfo:function(){return c},SearchBotDeviceInfo:function(){return s},browserName:function(){return g},detect:function(){return f},detectOS:function(){return v},getNodeVersion:function(){return b},parseUserAgent:function(){return m}});var n=r(34155),i=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},o=function(e,t,r){this.name=e,this.version=t,this.os=r,this.type="browser"},a=function(e){this.version=e,this.type="node",this.name="node",this.os=n.platform},s=function(e,t,r,n){this.name=e,this.version=t,this.os=r,this.bot=n,this.type="bot-device"},l=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},c=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},u=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,d=[["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/]],h=[["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 f(e){return e?m(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new c:"undefined"!=typeof navigator?m(navigator.userAgent):b()}function p(e){return""!==e&&d.reduce(function(t,r){var n=r[0],i=r[1];if(t)return t;var o=i.exec(e);return!!o&&[n,o]},!1)}function g(e){var t=p(e);return t?t[0]:null}function m(e){var t=p(e);if(!t)return null;var r=t[0],n=t[1];if("searchbot"===r)return new l;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length<3&&(a=i(i([],a,!0),function(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}(3-a.length),!0)):a=[];var c=a.join("."),d=v(e),h=u.exec(e);return h&&h[1]?new s(r,c,d,h[1]):new o(r,c,d)}function v(e){for(var t=0,r=h.length;t<r;t++){var n=h[t],i=n[0];if(n[1].exec(e))return i}return null}function b(){return void 0!==n&&n.version?new a(n.version.slice(1)):null}},65987:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,n){var i,o,a,s,l,c,u,d={},h={};h[r]=0;var f=t.PriorityQueue.make();for(f.push(r,0);!f.empty();)for(a in o=(i=f.pop()).value,s=i.cost,l=e[o]||{})l.hasOwnProperty(a)&&(c=s+l[a],u=h[a],(void 0===h[a]||u>c)&&(h[a]=c,f.push(a,c),d[a]=o));if(void 0!==n&&void 0===h[n])throw Error(["Could not find a path from ",r," to ",n,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],n=t;n;)r.push(n),e[n],n=e[n];return r.reverse(),r},find_path:function(e,r,n){var i=t.single_source_shortest_paths(e,r,n);return t.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var r,n=t.PriorityQueue,i={};for(r in e=e||{},n)n.hasOwnProperty(r)&&(i[r]=n[r]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},86266:function(e,t,r){"use strict";t.version=r(18597).i8,t.utils=r(80953),t.rand=r(29931),t.curve=r(88254),t.curves=r(45427),t.ec=r(57954),t.eddsa=r(65980)},4918:function(e,t,r){"use strict";var n=r(13550),i=r(80953),o=i.getNAF,a=i.getJSF,s=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=l,l.prototype.point=function(){throw Error("Not implemented")},l.prototype.validate=function(){throw Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r,n,i=e._getDoubles(),a=o(t,1,this._bitLength),l=(1<<i.step+1)-(i.step%2==0?2:1);l/=3;var c=[];for(r=0;r<a.length;r+=i.step){n=0;for(var u=r+i.step-1;u>=r;u--)n=(n<<1)+a[u];c.push(n)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=l;f>0;f--){for(r=0;r<c.length;r++)(n=c[r])===f?h=h.mixedAdd(i.points[r]):n===-f&&(h=h.mixedAdd(i.points[r].neg()));d=d.add(h)}return d.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var u=0;c>=0&&0===a[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=a[c];s(0!==d),l="affine"===e.type?d>0?l.mixedAdd(i[d-1>>1]):l.mixedAdd(i[-d-1>>1].neg()):d>0?l.add(i[d-1>>1]):l.add(i[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){var s,l,c,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(s=0;s<n;s++){var p=(c=t[s])._getNAFPoints(e);u[s]=p.wnd,d[s]=p.points}for(s=n-1;s>=1;s-=2){var g=s-1,m=s;if(1!==u[g]||1!==u[m]){h[g]=o(r[g],u[g],this._bitLength),h[m]=o(r[m],u[m],this._bitLength),f=Math.max(h[g].length,f),f=Math.max(h[m].length,f);continue}var v=[t[g],null,null,t[m]];0===t[g].y.cmp(t[m].y)?(v[1]=t[g].add(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg())):0===t[g].y.cmp(t[m].y.redNeg())?(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].add(t[m].neg())):(v[1]=t[g].toJ().mixedAdd(t[m]),v[2]=t[g].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(r[g],r[m]);for(l=0,f=Math.max(y[0].length,f),h[g]=Array(f),h[m]=Array(f);l<f;l++){var w=0|y[0][l],x=0|y[1][l];h[g][l]=b[(w+1)*3+(x+1)],h[m][l]=0,d[g]=v}}var _=this.jpoint(null,null,null),C=this._wnafT4;for(s=f;s>=0;s--){for(var A=0;s>=0;){var k=!0;for(l=0;l<n;l++)C[l]=0|h[l][s],0!==C[l]&&(k=!1);if(!k)break;A++,s--}if(s>=0&&A++,_=_.dblp(A),s<0)break;for(l=0;l<n;l++){var E=C[l];0!==E&&(E>0?c=d[l][E-1>>1]:E<0&&(c=d[l][-E-1>>1].neg()),_="affine"===c.type?_.mixedAdd(c):_.add(c))}}for(s=0;s<n;s++)d[s]=null;return i?_:_.toP()},l.BasePoint=c,c.prototype.eq=function(){throw Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},31138:function(e,t,r){"use strict";var n=r(80953),i=r(13550),o=r(35717),a=r(4918),s=n.assert;function l(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(l,a),e.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),l=i.redMul(a),c=o.redMul(s),u=i.redMul(s),d=a.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(s)).redAdd(l);this.zOne?(e=a.redSub(s).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(l).redMul(o),t=c.redMul(n.redSub(l)),r=c.redMul(o))}else n=s.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(l)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),l=r.redAdd(t),c=o.redMul(a),u=s.redMul(l),d=o.redMul(l),h=a.redMul(s);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),l=i.redSub(s),c=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},88254:function(e,t,r){"use strict";t.base=r(4918),t.short=r(6673),t.mont=r(22881),t.edwards=r(31138)},22881:function(e,t,r){"use strict";var n=r(13550),i=r(35717),o=r(4918),a=r(80953);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),l=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},l.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:function(e,t,r){"use strict";var n=r(80953),i=r(13550),o=r(35717),a=r(4918),s=n.assert;function l(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(l,a),e.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,o=this._getEndoRoots(this.p);t=(t=0>o[0].cmp(o[1])?o[0]:o[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),g=new i(0),m=new i(0),v=new i(1),b=0;0!==h.cmpn(0);){var y=f.div(h);c=f.sub(y.mul(h)),u=m.sub(y.mul(p));var w=v.sub(y.mul(g));if(!n&&0>c.cmp(d))t=l.neg(),r=p,n=c.neg(),o=u;else if(n&&2==++b)break;l=c,f=h,h=c,m=p,p=u,v=g,g=w}a=c.neg(),s=u;var x=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(x)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),n[2*o]=s,n[2*o+1]=l,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},o(c,a.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),l=o.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),u=r.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),h=s.redMul(u.redISub(d)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(d),g=f.redSqr().redISub(p.redAdd(p)),m=p.redISub(g),v=f.redMul(m);v=v.redIAdd(v).redISub(h);var b=c.redMul(s);t+1<e&&(l=l.redMul(h)),o=g,s=b,c=v}return this.curve.jpoint(o,c.redMul(i),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),g=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=g.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),g=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var m=d.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=f.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(a),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},45427:function(e,t,r){"use strict";var n,i=r(33715),o=r(88254),a=r(80953).assert;function s(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new s(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=s,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(91037)}catch(e){n=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},57954:function(e,t,r){"use strict";var n=r(13550),i=r(2156),o=r(80953),a=r(45427),s=r(29931),l=o.assert,c=r(34371),u=r(90611);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),l=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var f=o.k?o.k(h):new n(c.generate(this.n.byteLength()));if(!(0>=(f=this._truncateToN(f,!0)).cmpn(1)||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var g=p.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var v=f.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:m,s:v,recoveryParam:b})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o,a=(t=new u(t,"hex")).r,s=t.s;if(0>a.cmpn(1)||a.cmp(this.n)>=0||0>s.cmpn(1)||s.cmp(this.n)>=0)return!1;var l=s.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(a).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&o.eqXToP(a):!(o=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===o.getX().umod(this.n).cmp(a)},d.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,d=1&r,h=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=t.r.invm(o),p=o.sub(a).mul(f).umod(o),g=c.mul(f).umod(o);return this.g.mulAdd(p,s,g)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw Error("Unable to find valid recovery factor")}},34371:function(e,t,r){"use strict";var n=r(13550),i=r(80953).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},90611:function(e,t,r){"use strict";var n=r(13550),i=r(80953),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o||o+r.place!==e.length||2!==e[r.place++])return!1;var a=l(e,r);if(!1===a||(128&e[r.place])!=0)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u||e.length!==u+r.place||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},65980:function(e,t,r){"use strict";var n=r(33715),i=r(45427),o=r(80953),a=o.assert,s=o.parseBytes,l=r(79087),c=r(23622);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){if(e=s(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},79087:function(e,t,r){"use strict";var n=r(80953),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},23622:function(e,t,r){"use strict";var n=r(13550),i=r(80953),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(o(t.length===2*e.encodingLength,"Signature has invalid size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=l},91037:function(e){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},80953:function(e,t,r){"use strict";var n=r(13550),i=r(79746),o=r(34504);t.assert=i,t.toArray=o.toArray,t.zero2=o.zero2,t.toHex=o.toHex,t.encode=o.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(a=0;a<n.length;a+=1)n[a]=0;var i=1<<t+1,o=e.clone();for(a=0;a<n.length;a++){var a,s,l=o.andln(i-1);o.isOdd()?(s=l>(i>>1)-1?(i>>1)-l:l,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,l=e.andln(3)+n&3,c=t.andln(3)+i&3;3===l&&(l=-1),3===c&&(c=-1),a=(1&l)==0?0:(3==(o=e.andln(7)+n&7)||5===o)&&2===c?-l:l,r[0].push(a),s=(1&c)==0?0:(3==(o=t.andln(7)+i&7)||5===o)&&2===l?-c:c,r[1].push(s),2*n===a+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new n(e,"hex","le")}},62378:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&r>n+1){var o=e.charCodeAt(n+1);o>=56320&&o<=57343&&(i=(i-55296)*1024+o-56320+65536,n+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(63&i|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128);continue}if(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);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||e,a),l=r?r+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 n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i<o;i++)a[i]=n[i].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,i,o,a){var s=r?r+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,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,o),!0;case 6:return u.fn.call(u.context,t,n,i,o,a),!0}for(c=1,l=Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;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,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!l)for(h=1,l=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,r){return o(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,i){var o=r?r+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||n&&s.context!==n||a(this,o);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&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=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},17187:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise(function(r,n){var i;function o(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&(i={once:!0},"function"==typeof e.on&&g(e,"error",o,i))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=l(e))>0&&a.length>i&&!a.warned){a.warned=!0;var i,o,a,c=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=u.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):p(i,i.length)}function f(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return l(this)},o.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else for(var c=l.length,u=p(l,c),r=0;r<c;++r)n(u[r],this,t);return!0},o.prototype.addListener=function(e,t){return c(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return c(this,e,t,!0)},o.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},o.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},92806:function(e){"use strict";e.exports=function(e,t){for(var r={},n=Object.keys(e),i=Array.isArray(t),o=0;o<n.length;o++){var a=n[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(r[a]=s)}return r}},37347:function(e){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function r(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function n(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.a.offsetWidth,r=t+100;return e.f.style.width=r+"px",e.c.scrollLeft=r,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function o(e,r){function n(){i(o)&&o.a.parentNode&&r(o.g)}var o=e;t(e.b,n),t(e.c,n),i(e)}function a(e,t){var r=t||{};this.family=e,this.style=r.style||"normal",this.weight=r.weight||"normal",this.stretch=r.stretch||"normal"}var s=null,l=null,c=null,u=null;function d(){return null===u&&(u=!!document.fonts),u}function h(e,t){return[e.style,e.weight,!function(){if(null===c){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}c=""!==e.style.font}return c}()?"":e.stretch,"100px",t].join(" ")}a.prototype.load=function(e,t){var i=this,a=e||"BESbswy",c=0,u=t||3e3,f=(new Date).getTime();return new Promise(function(e,t){if(d()&&!function(){if(null===l){if(d()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);l=!!e&&603>parseInt(e[1],10)}else l=!1}return l}()){var p,g=new Promise(function(e,t){!function r(){(new Date).getTime()-f>=u?t(Error(""+u+"ms timeout exceeded")):document.fonts.load(h(i,'"'+i.family+'"'),a).then(function(t){1<=t.length?e():setTimeout(r,25)},t)}()});Promise.race([new Promise(function(e,t){c=setTimeout(function(){t(Error(""+u+"ms timeout exceeded"))},u)}),g]).then(function(){clearTimeout(c),e(i)},t)}else p=function(){function l(){var t;(t=-1!=m&&-1!=v||-1!=m&&-1!=b||-1!=v&&-1!=b)&&((t=m!=v&&m!=b&&v!=b)||(null===s&&(s=!!(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent))&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(m==y&&v==y&&b==y||m==w&&v==w&&b==w||m==x&&v==x&&b==x)),t=!t),t&&(_.parentNode&&_.parentNode.removeChild(_),clearTimeout(c),e(i))}var d=new r(a),p=new r(a),g=new r(a),m=-1,v=-1,b=-1,y=-1,w=-1,x=-1,_=document.createElement("div");_.dir="ltr",n(d,h(i,"sans-serif")),n(p,h(i,"serif")),n(g,h(i,"monospace")),_.appendChild(d.a),_.appendChild(p.a),_.appendChild(g.a),document.body.appendChild(_),y=d.a.offsetWidth,w=p.a.offsetWidth,x=g.a.offsetWidth,function e(){if((new Date).getTime()-f>=u)_.parentNode&&_.parentNode.removeChild(_),t(Error(""+u+"ms timeout exceeded"));else{var r=document.hidden;(!0===r||void 0===r)&&(m=d.a.offsetWidth,v=p.a.offsetWidth,b=g.a.offsetWidth,l()),c=setTimeout(e,50)}}(),o(d,function(e){m=e,l()}),n(d,h(i,'"'+i.family+'",sans-serif')),o(p,function(e){v=e,l()}),n(p,h(i,'"'+i.family+'",serif')),o(g,function(e){b=e,l()}),n(g,h(i,'"'+i.family+'",monospace'))},document.body?p():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),p()}):document.attachEvent("onreadystatechange",function e(){("interactive"==document.readyState||"complete"==document.readyState)&&(document.detachEvent("onreadystatechange",e),p())})})},e.exports=a}()},33715:function(e,t,r){t.utils=r(26436),t.common=r(95772),t.sha=r(89041),t.ripemd=r(12949),t.hmac=r(52344),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},95772:function(e,t,r){"use strict";var n=r(26436),i=r(79746);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(o=8,n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0;o<this.padLength;o++)n[i++]=0;return n}},52344:function(e,t,r){"use strict";var n=r(26436),i=r(79746);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(t=0,this.inner=new this.Hash().update(e);t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},12949:function(e,t,r){"use strict";var n=r(26436),i=r(95772),o=n.rotl32,a=n.sum32,s=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}n.inherits(u,c),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],m=r,v=n,b=i,y=c,w=u,x=0;x<80;x++){var _,C,A=a(o(l(r,d(x,n,i,c),e[h[x]+t],(_=x)<=15?0:_<=31?1518500249:_<=47?1859775393:_<=63?2400959708:2840853838),p[x]),u);r=u,u=c,c=o(i,10),i=n,n=A,A=a(o(l(m,d(79-x,v,b,y),e[f[x]+t],(C=x)<=15?1352829926:C<=31?1548603684:C<=47?1836072691:C<=63?2053994217:0),g[x]),w),m=w,w=y,y=o(b,10),b=v,v=A}A=s(this.h[1],i,y),this.h[1]=s(this.h[2],c,w),this.h[2]=s(this.h[3],u,m),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,b),this.h[0]=A},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},89041:function(e,t,r){"use strict";t.sha1=r(84761),t.sha224=r(10799),t.sha256=r(89344),t.sha384=r(80772),t.sha512=r(45900)},84761:function(e,t,r){"use strict";var n=r(26436),i=r(95772),o=r(37038),a=n.rotl32,s=n.sum32,l=n.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(h,u),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=l(a(i,5),c(p,o,u,h),f,r[n],d[p]);f=h,h=u,u=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},10799:function(e,t,r){"use strict";var n=r(26436),i=r(89344);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},89344:function(e,t,r){"use strict";var n=r(26436),i=r(95772),o=r(37038),a=r(79746),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,g=o.g1_256,m=i.BlockHash,v=[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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],m=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var _=c(x,f(b),u(b,y,w),this.k[n],r[n]),C=s(h(i),d(i,o,m));x=w,w=y,y=b,b=s(v,_),v=m,m=o,o=i,i=s(_,C)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],m),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},80772:function(e,t,r){"use strict";var n=r(26436),i=r(45900);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},45900:function(e,t,r){"use strict";var n=r(26436),i=r(95772),o=r(79746),a=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,m=n.sum64_5_lo,v=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=Array(160)}n.inherits(y,v),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=function(e,t){var r=a(e,t,19)^a(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),o=function(e,t){var r=s(e,t,19)^s(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}(r[n-4],r[n-3]),u=r[n-14],d=r[n-13],h=function(e,t){var r=a(e,t,1)^a(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),g=function(e,t){var r=s(e,t,1)^s(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}(r[n-30],r[n-29]),m=r[n-32],v=r[n-31];r[n]=f(i,o,u,d,h,g,m,v),r[n+1]=p(i,o,u,d,h,g,m,v)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],l=this.h[2],c=this.h[3],f=this.h[4],p=this.h[5],v=this.h[6],b=this.h[7],y=this.h[8],w=this.h[9],x=this.h[10],_=this.h[11],C=this.h[12],A=this.h[13],k=this.h[14],E=this.h[15];o(this.k.length===r.length);for(var S=0;S<r.length;S+=2){var T=k,I=E,P=function(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}(y,w),O=function(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}(y,w),R=function(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}(y,0,x,0,C,A),M=function(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}(0,w,0,_,0,A),N=this.k[S],j=this.k[S+1],D=r[S],B=r[S+1],L=g(T,I,P,O,R,M,N,j,D,B),$=m(T,I,P,O,R,M,N,j,D,B);T=function(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}(n,i);var U=d(T,I=function(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}(n,i),P=function(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}(n,0,l,0,f,p),O=function(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}(0,i,0,c,0,p)),z=h(T,I,P,O);k=C,E=A,C=x,A=_,x=y,_=w,y=d(v,b,L,$),w=h(b,b,L,$),v=f,b=p,f=l,p=c,l=n,c=i,n=d(L,$,U,z),i=h(L,$,U,z)}u(this.h,0,n,i),u(this.h,2,l,c),u(this.h,4,f,p),u(this.h,6,v,b),u(this.h,8,y,w),u(this.h,10,x,_),u(this.h,12,C,A),u(this.h,14,k,E)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},37038:function(e,t,r){"use strict";var n=r(26436).rotr32;function i(e,t,r){return e&t^e&r^t&r}t.ft_1=function(e,t,r,n){return 0===e?t&r^~t&n:1===e||3===e?t^r^n:2===e?i(t,r,n):void 0},t.ch32=function(e,t,r){return e&t^~e&r},t.maj32=i,t.p32=function(e,t,r){return e^t^r},t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},26436:function(e,t,r){"use strict";var n=r(79746),i=r(35717);function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var o,a,s=e.charCodeAt(i);s<128?r[n++]=s:(s<2048?r[n++]=s>>6|192:((o=e,a=i,(64512&o.charCodeAt(a))!=55296||a<0||a+1>=o.length?1:(64512&o.charCodeAt(a+1))!=56320)?r[n++]=s>>12|224:(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128),r[n++]=s>>6&63|128),r[n++]=63&s|128)}}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},t.zero2=a,t.zero8=s,t.join32=function(e,t,r,i){var o,a=r-t;n(a%4==0);for(var s=Array(a/4),l=0,c=t;l<s.length;l++,c+=4)o="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],s[l]=o>>>0;return s},t.split32=function(e,t){for(var r=Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0;e[t]=(o<n?1:0)+r+i>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var l,c=t;return e+r+i+a+(0+((c=c+n>>>0)<t?1:0)+((c=c+o>>>0)<o?1:0)+((c=c+s>>>0)<s?1:0))>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,l,c){var u,d=t;return e+r+i+a+l+(0+((d=d+n>>>0)<t?1:0)+((d=d+o>>>0)<o?1:0)+((d=d+s>>>0)<s?1:0)+((d=d+c>>>0)<c?1:0))>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,l,c){return t+n+o+s+c>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},24394:function(e,t,r){"use strict";r.d(t,{K:function(){return n},k:function(){return i}});var n=function(){},i=function(){}},2156:function(e,t,r){"use strict";var n=r(33715),i=r(34504),o=r(79746);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},8679:function(e,t,r){"use strict";var n=r(59864),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 n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),g=l(r),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&!(n&&n[v])&&!(g&&g[v])&&!(s&&s[v])){var b=h(r,v);try{c(t,v,b)}catch(e){}}}}return t}},80645:function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=n;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*(f?-1:1);a+=Math.pow(2,n),o-=c}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(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),a+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*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[r+f]=255&s,f+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+f]=255&a,f+=p,a/=256,c-=8);e[r+f-p]|=128*g}},35717:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},72307:function(e,t,r){e=r.nmd(e);var n,i,o,a="__lodash_hash_undefined__",s="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",h="[object Function]",f="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",v="[object RegExp]",b="[object Set]",y="[object String]",w="[object WeakMap]",x="[object ArrayBuffer]",_="[object DataView]",C=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[s]=k[l]=k[x]=k[c]=k[_]=k[u]=k[d]=k[h]=k[f]=k[p]=k[g]=k[v]=k[b]=k[y]=k[w]=!1;var E="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,T=E||S||Function("return this")(),I=t&&!t.nodeType&&t,P=I&&e&&!e.nodeType&&e,O=P&&P.exports===I,R=O&&E.process,M=function(){try{return R&&R.binding&&R.binding("util")}catch(e){}}(),N=M&&M.isTypedArray;function j(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function D(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var B=Array.prototype,L=Function.prototype,$=Object.prototype,U=T["__core-js_shared__"],z=L.toString,F=$.hasOwnProperty,q=(n=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",H=$.toString,W=RegExp("^"+z.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=O?T.Buffer:void 0,Z=T.Symbol,G=T.Uint8Array,K=$.propertyIsEnumerable,Y=B.splice,Q=Z?Z.toStringTag:void 0,J=Object.getOwnPropertySymbols,X=V?V.isBuffer:void 0,ee=(i=Object.keys,o=Object,function(e){return i(o(e))}),et=ek(T,"DataView"),er=ek(T,"Map"),en=ek(T,"Promise"),ei=ek(T,"Set"),eo=ek(T,"WeakMap"),ea=ek(Object,"create"),es=eT(et),el=eT(er),ec=eT(en),eu=eT(ei),ed=eT(eo),eh=Z?Z.prototype:void 0,ef=eh?eh.valueOf:void 0;function ep(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new em;++t<r;)this.add(e[t])}function eb(e){var t=this.__data__=new eg(e);this.size=t.size}function ey(e,t){for(var r=e.length;r--;)if(eI(e[r][0],t))return r;return -1}function ew(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=F.call(e,Q),r=e[Q];try{e[Q]=void 0;var n=!0}catch(e){}var i=H.call(e);return n&&(t?e[Q]=r:delete e[Q]),i}(e):H.call(e)}function ex(e){return eD(e)&&ew(e)==s}function e_(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&r?new ev:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var f=e[u],p=t[u];if(n)var g=a?n(p,f,u,t,e,o):n(f,p,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(h){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!h.has(t)&&(f===e||i(f,e,r,n,o)))return h.push(t)})){d=!1;break}}else if(!(f===p||i(f,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function eC(e){var t;return t=function(e){return null!=e&&eN(e.length)&&!eM(e)?function(e,t){var r,n=eO(e),i=!n&&eP(e),o=!n&&!i&&eR(e),a=!n&&!i&&!o&&eB(e),s=n||i||o||a,l=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=l.length;for(var u in e)F.call(e,u)&&!(s&&("length"==u||o&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(r=null==(r=c)?9007199254740991:r)&&("number"==typeof u||A.test(u))&&u>-1&&u%1==0&&u<r))&&l.push(u);return l}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||$))return ee(e);var t,r=[];for(var n in Object(e))F.call(e,n)&&"constructor"!=n&&r.push(n);return r}(e)}(e),eO(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eE(e))}function eA(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ek(e,t){var r=null==e?void 0:e[t];return!(!ej(r)||q&&q in r)&&(eM(r)?W:C).test(eT(r))?r:void 0}ep.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ep.prototype.get=function(e){var t=this.__data__;if(ea){var r=t[e];return r===a?void 0:r}return F.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:F.call(t,e)},ep.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ea&&void 0===t?a:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,r=ey(t,e);return!(r<0)&&(r==t.length-1?t.pop():Y.call(t,r,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,r=ey(t,e);return r<0?void 0:t[r][1]},eg.prototype.has=function(e){return ey(this.__data__,e)>-1},eg.prototype.set=function(e,t){var r=this.__data__,n=ey(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(er||eg),string:new ep}},em.prototype.delete=function(e){var t=eA(this,e).delete(e);return this.size-=t?1:0,t},em.prototype.get=function(e){return eA(this,e).get(e)},em.prototype.has=function(e){return eA(this,e).has(e)},em.prototype.set=function(e,t){var r=eA(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,a),this},ev.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new eg,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eg){var n=r.__data__;if(!er||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new em(n)}return r.set(e,t),this.size=r.size,this};var eE=J?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}(J(e=Object(e)),function(t){return K.call(e,t)})}:function(){return[]},eS=ew;function eT(e){if(null!=e){try{return z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(et&&eS(new et(new ArrayBuffer(1)))!=_||er&&eS(new er)!=f||en&&eS(en.resolve())!=m||ei&&eS(new ei)!=b||eo&&eS(new eo)!=w)&&(eS=function(e){var t=ew(e),r=t==g?e.constructor:void 0,n=r?eT(r):"";if(n)switch(n){case es:return _;case el:return f;case ec:return m;case eu:return b;case ed:return w}return t});var eP=ex(function(){return arguments}())?ex:function(e){return eD(e)&&F.call(e,"callee")&&!K.call(e,"callee")},eO=Array.isArray,eR=X||function(){return!1};function eM(e){if(!ej(e))return!1;var t=ew(e);return t==h||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eN(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ej(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eD(e){return null!=e&&"object"==typeof e}var eB=N?function(e){return N(e)}:function(e){return eD(e)&&eN(e.length)&&!!k[ew(e)]};e.exports=function(e,t){return function e(t,r,n,i,o){return t===r||(null!=t&&null!=r&&(eD(t)||eD(r))?function(e,t,r,n,i,o){var a=eO(e),h=eO(t),m=a?l:eS(e),w=h?l:eS(t);m=m==s?g:m,w=w==s?g:w;var C=m==g,A=w==g,k=m==w;if(k&&eR(e)){if(!eR(t))return!1;a=!0,C=!1}if(k&&!C)return o||(o=new eb),a||eB(e)?e_(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case x:if(e.byteLength!=t.byteLength||!o(new G(e),new G(t)))break;return!0;case c:case u:case p:return eI(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var s=j;case b:var l=1&n;if(s||(s=D),e.size!=t.size&&!l)break;var h=a.get(e);if(h)return h==t;n|=2,a.set(e,t);var g=e_(s(e),s(t),n,i,o,a);return a.delete(e),g;case"[object Symbol]":if(ef)return ef.call(e)==ef.call(t)}return!1}(e,t,m,r,n,i,o);if(!(1&r)){var E=C&&F.call(e,"__wrapped__"),S=A&&F.call(t,"__wrapped__");if(E||S){var T=E?e.value():e,I=S?t.value():t;return o||(o=new eb),i(T,I,r,n,o)}}return!!k&&(o||(o=new eb),function(e,t,r,n,i,o){var a=1&r,s=eC(e),l=s.length;if(l!=eC(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:F.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var p=e[u=s[c]],g=t[u];if(n)var m=a?n(g,p,u,t,e,o):n(p,g,u,e,t,o);if(!(void 0===m?p===g||i(p,g,r,n,o):m)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,b=t.constructor;v!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,r,n,i,o))}(t,r,n,i,e,o):t!=t&&r!=r)}(e,t)}},38554:function(e,t,r){e=r.nmd(e);var n,i,o,a,s,l,c,u,d,h,f,p="__lodash_hash_undefined__",g="[object Arguments]",m="[object Function]",v="[object Object]",b=/^\[object .+?Constructor\]$/,y=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[g]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w[m]=w["[object Map]"]=w["[object Number]"]=w[v]=w["[object RegExp]"]=w["[object Set]"]=w["[object String]"]=w["[object WeakMap]"]=!1;var x="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,_="object"==typeof self&&self&&self.Object===Object&&self,C=x||_||Function("return this")(),A=t&&!t.nodeType&&t,k=A&&e&&!e.nodeType&&e,E=k&&k.exports===A,S=E&&x.process,T=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return S&&S.binding&&S.binding("util")}catch(e){}}(),I=T&&T.isTypedArray,P=Array.prototype,O=Function.prototype,R=Object.prototype,M=C["__core-js_shared__"],N=O.toString,j=R.hasOwnProperty,D=(c=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",B=R.toString,L=N.call(Object),$=RegExp("^"+N.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=E?C.Buffer:void 0,z=C.Symbol,F=C.Uint8Array,q=U?U.allocUnsafe:void 0,H=(u=Object.getPrototypeOf,d=Object,function(e){return u(d(e))}),W=Object.create,V=R.propertyIsEnumerable,Z=P.splice,G=z?z.toStringTag:void 0,K=function(){try{var e=ef(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Y=U?U.isBuffer:void 0,Q=Math.max,J=Date.now,X=ef(C,"Map"),ee=ef(Object,"create"),et=function(){function e(){}return function(t){if(!ek(t))return{};if(W)return W(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function er(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function en(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ei(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function eo(e){var t=this.__data__=new en(e);this.size=t.size}function ea(e,t,r){(void 0===r||eb(e[t],r))&&(void 0!==r||t in e)||el(e,t,r)}function es(e,t){for(var r=e.length;r--;)if(eb(e[r][0],t))return r;return -1}function el(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}er.prototype.clear=function(){this.__data__=ee?ee(null):{},this.size=0},er.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},er.prototype.get=function(e){var t=this.__data__;if(ee){var r=t[e];return r===p?void 0:r}return j.call(t,e)?t[e]:void 0},er.prototype.has=function(e){var t=this.__data__;return ee?void 0!==t[e]:j.call(t,e)},er.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ee&&void 0===t?p:t,this},en.prototype.clear=function(){this.__data__=[],this.size=0},en.prototype.delete=function(e){var t=this.__data__,r=es(t,e);return!(r<0)&&(r==t.length-1?t.pop():Z.call(t,r,1),--this.size,!0)},en.prototype.get=function(e){var t=this.__data__,r=es(t,e);return r<0?void 0:t[r][1]},en.prototype.has=function(e){return es(this.__data__,e)>-1},en.prototype.set=function(e,t){var r=this.__data__,n=es(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ei.prototype.clear=function(){this.size=0,this.__data__={hash:new er,map:new(X||en),string:new er}},ei.prototype.delete=function(e){var t=eh(this,e).delete(e);return this.size-=t?1:0,t},ei.prototype.get=function(e){return eh(this,e).get(e)},ei.prototype.has=function(e){return eh(this,e).has(e)},ei.prototype.set=function(e,t){var r=eh(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},eo.prototype.clear=function(){this.__data__=new en,this.size=0},eo.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eo.prototype.get=function(e){return this.__data__.get(e)},eo.prototype.has=function(e){return this.__data__.has(e)},eo.prototype.set=function(e,t){var r=this.__data__;if(r instanceof en){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ei(n)}return r.set(e,t),this.size=r.size,this};var ec=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};function eu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=j.call(e,G),r=e[G];try{e[G]=void 0;var n=!0}catch(e){}var i=B.call(e);return n&&(t?e[G]=r:delete e[G]),i}(e):B.call(e)}function ed(e){return eE(e)&&eu(e)==g}function eh(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ef(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||D&&D in r)&&(eC(r)?$:b).test(function(e){if(null!=e){try{return N.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ep(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&y.test(e))&&e>-1&&e%1==0&&e<t}function eg(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function em(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ev=(n=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eP,i=0,o=0,function(){var e=J(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return n.apply(void 0,arguments)});function eb(e,t){return e===t||e!=e&&t!=t}var ey=ed(function(){return arguments}())?ed:function(e){return eE(e)&&j.call(e,"callee")&&!V.call(e,"callee")},ew=Array.isArray;function ex(e){return null!=e&&eA(e.length)&&!eC(e)}var e_=Y||function(){return!1};function eC(e){if(!ek(e))return!1;var t=eu(e);return t==m||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eA(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eE(e){return null!=e&&"object"==typeof e}var eS=I?function(e){return I(e)}:function(e){return eE(e)&&eA(e.length)&&!!w[eu(e)]};function eT(e){return ex(e)?function(e,t){var r=ew(e),n=!r&&ey(e),i=!r&&!n&&e_(e),o=!r&&!n&&!i&&eS(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=s.length;for(var c in e)(t||j.call(e,c))&&!(a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ep(c,l)))&&s.push(c);return s}(e,!0):function(e){if(!ek(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=eg(e),r=[];for(var n in e)"constructor"==n&&(t||!j.call(e,n))||r.push(n);return r}(e)}var eI=(h=function(e,t,r,n){!function e(t,r,n,i,o){t!==r&&ec(r,function(a,s){if(o||(o=new eo),ek(a))(function(e,t,r,n,i,o,a){var s=em(e,r),l=em(t,r),c=a.get(l);if(c){ea(e,r,c);return}var u=o?o(s,l,r+"",e,t,a):void 0,d=void 0===u;if(d){var h,f,p,g=ew(l),m=!g&&e_(l),b=!g&&!m&&eS(l);u=l,g||m||b?ew(s)?u=s:eE(s)&&ex(s)?u=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):m?(d=!1,u=function(e,t){if(t)return e.slice();var r=e.length,n=q?q(r):new e.constructor(r);return e.copy(n),n}(l,!0)):b?(d=!1,new F(f=new(h=l.buffer).constructor(h.byteLength)).set(new F(h)),p=f,u=new l.constructor(p,l.byteOffset,l.length)):u=[]:function(e){if(!eE(e)||eu(e)!=v)return!1;var t=H(e);if(null===t)return!0;var r=j.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&N.call(r)==L}(l)||ey(l)?(u=s,ey(s)?u=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=void 0;void 0===l&&(l=e[s]),i?el(r,s,l):function(e,t,r){var n=e[t];j.call(e,t)&&eb(n,r)&&(void 0!==r||t in e)||el(e,t,r)}(r,s,l)}return r}(s,eT(s)):(!ek(s)||eC(s))&&(u="function"!=typeof l.constructor||eg(l)?{}:et(H(l)))):d=!1}d&&(a.set(l,u),i(u,l,n,o,a),a.delete(l)),ea(e,r,u)})(t,r,s,n,e,i,o);else{var l=i?i(em(t,s),a,s+"",t,r,o):void 0;void 0===l&&(l=a),ea(t,s,l)}},eT)}(e,t,r,n)},ev((a=f=function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=h.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!ek(r))return!1;var n=typeof t;return("number"==n?!!(ex(r)&&ep(t,r.length)):"string"==n&&(t in r))&&eb(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&h(e,a,r,i)}return e},s=void 0,l=eP,s=Q(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,r=Q(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=l(n),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(a,this,i)}),f+""));function eP(e){return e}e.exports=eI},93096:function(e,t,r){var n="Expected a function",i=0/0,o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),f=Object.prototype.toString,p=Math.max,g=Math.min,m=function(){return h.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==f.call(t))return i;if(v(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=v(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?i:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw TypeError(n);return v(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),function(e,t,r){var i,o,a,s,l,c,u=0,d=!1,h=!1,f=!0;if("function"!=typeof e)throw TypeError(n);function y(t){var r=i,n=o;return i=o=void 0,u=t,s=e.apply(n,r)}function w(e){var r=e-c,n=e-u;return void 0===c||r>=t||r<0||h&&n>=a}function x(){var e,r,n,i=m();if(w(i))return _(i);l=setTimeout(x,(e=i-c,r=i-u,n=t-e,h?g(n,a-r):n))}function _(e){return(l=void 0,f&&i)?y(e):(i=o=void 0,s)}function C(){var e,r=m(),n=w(r);if(i=arguments,o=this,c=r,n){if(void 0===l)return u=e=c,l=setTimeout(x,t),d?y(e):s;if(h)return l=setTimeout(x,t),y(c)}return void 0===l&&(l=setTimeout(x,t)),s}return t=b(t)||0,v(r)&&(d=!!r.leading,a=(h="maxWait"in r)?p(b(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),C.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0},C.flush=function(){return void 0===l?s:_(m())},C}(e,t,{leading:i,maxWait:t,trailing:o})}},18552:function(e,t,r){var n=r(10852)(r(55639),"DataView");e.exports=n},1989:function(e,t,r){var n=r(51789),i=r(80401),o=r(57667),a=r(21327),s=r(81866);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},38407:function(e,t,r){var n=r(27040),i=r(14125),o=r(82117),a=r(67518),s=r(54705);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},57071:function(e,t,r){var n=r(10852)(r(55639),"Map");e.exports=n},83369:function(e,t,r){var n=r(24785),i=r(11285),o=r(96e3),a=r(74157),s=r(95265);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},53818:function(e,t,r){var n=r(10852)(r(55639),"Promise");e.exports=n},58525:function(e,t,r){var n=r(10852)(r(55639),"Set");e.exports=n},88668:function(e,t,r){var n=r(83369),i=r(90619),o=r(72385);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},46384:function(e,t,r){var n=r(38407),i=r(37465),o=r(63779),a=r(67599),s=r(44758),l=r(34309);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},11149:function(e,t,r){var n=r(55639).Uint8Array;e.exports=n},70577:function(e,t,r){var n=r(10852)(r(55639),"WeakMap");e.exports=n},96874:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},77412:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},34963:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}},47443:function(e,t,r){var n=r(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},14636:function(e,t,r){var n=r(22545),i=r(35694),o=r(1469),a=r(44144),s=r(65776),l=r(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&a(e),h=!r&&!u&&!d&&l(e),f=r||u||d||h,p=f?n(e.length,String):[],g=p.length;for(var m in e)(t||c.call(e,m))&&!(f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g)))&&p.push(m);return p}},29932:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},62488:function(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}},82908:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},44286:function(e){e.exports=function(e){return e.split("")}},34865:function(e,t,r){var n=r(89465),i=r(77813),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];o.call(e,t)&&i(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},18470:function(e,t,r){var n=r(77813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return -1}},44037:function(e,t,r){var n=r(98363),i=r(3674);e.exports=function(e,t){return e&&n(t,i(t),e)}},63886:function(e,t,r){var n=r(98363),i=r(81704);e.exports=function(e,t){return e&&n(t,i(t),e)}},89465:function(e,t,r){var n=r(38777);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},29750:function(e){e.exports=function(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}},85990:function(e,t,r){var n=r(46384),i=r(77412),o=r(34865),a=r(44037),s=r(63886),l=r(64626),c=r(278),u=r(18805),d=r(1911),h=r(58234),f=r(46904),p=r(64160),g=r(43824),m=r(29148),v=r(38517),b=r(1469),y=r(44144),w=r(56688),x=r(13218),_=r(72928),C=r(3674),A=r(81704),k="[object Arguments]",E="[object Function]",S="[object Object]",T={};T[k]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[S]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[E]=T["[object WeakMap]"]=!1,e.exports=function e(t,r,I,P,O,R){var M,N=1&r,j=2&r,D=4&r;if(I&&(M=O?I(t,P,O,R):I(t)),void 0!==M)return M;if(!x(t))return t;var B=b(t);if(B){if(M=g(t),!N)return c(t,M)}else{var L=p(t),$=L==E||"[object GeneratorFunction]"==L;if(y(t))return l(t,N);if(L==S||L==k||$&&!O){if(M=j||$?{}:v(t),!N)return j?d(t,s(M,t)):u(t,a(M,t))}else{if(!T[L])return O?t:{};M=m(t,L,N)}}R||(R=new n);var U=R.get(t);if(U)return U;R.set(t,M),_(t)?t.forEach(function(n){M.add(e(n,r,I,n,t,R))}):w(t)&&t.forEach(function(n,i){M.set(i,e(n,r,I,i,t,R))});var z=D?j?f:h:j?A:C,F=B?void 0:z(t);return i(F||t,function(n,i){F&&(n=t[i=n]),o(M,i,e(n,r,I,i,t,R))}),M}},3118:function(e,t,r){var n=r(13218),i=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(i)return i(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=o},41848:function(e){e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return -1}},21078:function(e,t,r){var n=r(62488),i=r(37285);e.exports=function e(t,r,o,a,s){var l=-1,c=t.length;for(o||(o=i),s||(s=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,a,s):n(s,u):a||(s[s.length]=u)}return s}},97786:function(e,t,r){var n=r(71811),i=r(40327);e.exports=function(e,t){t=n(t,e);for(var r=0,o=t.length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},68866:function(e,t,r){var n=r(62488),i=r(1469);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},44239:function(e,t,r){var n=r(62705),i=r(89607),o=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},13:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},42118:function(e,t,r){var n=r(41848),i=r(62722),o=r(42351);e.exports=function(e,t,r){return t==t?o(e,t,r):n(e,i,r)}},9454:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},90939:function(e,t,r){var n=r(2492),i=r(37005);e.exports=function e(t,r,o,a,s){return t===r||(null!=t&&null!=r&&(i(t)||i(r))?n(t,r,o,a,e,s):t!=t&&r!=r)}},2492:function(e,t,r){var n=r(46384),i=r(67114),o=r(18351),a=r(16096),s=r(64160),l=r(1469),c=r(44144),u=r(36719),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,g,m,v){var b=l(e),y=l(t),w=b?h:s(e),x=y?h:s(t);w=w==d?f:w,x=x==d?f:x;var _=w==f,C=x==f,A=w==x;if(A&&c(e)){if(!c(t))return!1;b=!0,_=!1}if(A&&!_)return v||(v=new n),b||u(e)?i(e,t,r,g,m,v):o(e,t,w,r,g,m,v);if(!(1&r)){var k=_&&p.call(e,"__wrapped__"),E=C&&p.call(t,"__wrapped__");if(k||E){var S=k?e.value():e,T=E?t.value():t;return v||(v=new n),m(S,T,r,g,v)}}return!!A&&(v||(v=new n),a(e,t,r,g,m,v))}},25588:function(e,t,r){var n=r(64160),i=r(37005);e.exports=function(e){return i(e)&&"[object Map]"==n(e)}},2958:function(e,t,r){var n=r(46384),i=r(90939);e.exports=function(e,t,r,o){var a=r.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=r[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=r[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new n;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,o,f):p))return!1}}return!0}},62722:function(e){e.exports=function(e){return e!=e}},28458:function(e,t,r){var n=r(23560),i=r(15346),o=r(13218),a=r(80346),s=/^\[object .+?Constructor\]$/,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,d=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?d:s).test(a(e))}},29221:function(e,t,r){var n=r(64160),i=r(37005);e.exports=function(e){return i(e)&&"[object Set]"==n(e)}},38749:function(e,t,r){var n=r(44239),i=r(41780),o=r(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},67206:function(e,t,r){var n=r(91573),i=r(16432),o=r(6557),a=r(1469),s=r(39601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):n(e):s(e)}},280:function(e,t,r){var n=r(25726),i=r(86916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},10313:function(e,t,r){var n=r(13218),i=r(25726),o=r(33498),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},91573:function(e,t,r){var n=r(2958),i=r(1499),o=r(42634);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},16432:function(e,t,r){var n=r(90939),i=r(27361),o=r(79095),a=r(15403),s=r(89162),l=r(42634),c=r(40327);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(r){var a=i(r,e);return void 0===a&&a===t?o(r,e):n(t,a,3)}}},63012:function(e,t,r){var n=r(97786),i=r(10611),o=r(71811);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var c=t[a],u=n(e,c);r(u,c)&&i(l,o(c,e),u)}return l}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:function(e,t,r){var n=r(97786);e.exports=function(e){return function(t){return n(t,e)}}},10611:function(e,t,r){var n=r(34865),i=r(71811),o=r(65776),a=r(13218),s=r(40327);e.exports=function(e,t,r,l){if(!a(e))return e;t=i(t,e);for(var c=-1,u=t.length,d=u-1,h=e;null!=h&&++c<u;){var f=s(t[c]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)break;if(c!=d){var g=h[f];void 0===(p=l?l(g,f,h):void 0)&&(p=a(g)?g:o(t[c+1])?[]:{})}n(h,f,p),h=h[f]}return e}},56560:function(e,t,r){var n=r(75703),i=r(38777),o=r(6557),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=a},14259:function(e){e.exports=function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}},22545:function(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},80531:function(e,t,r){var n=r(62705),i=r(29932),o=r(1469),a=r(33448),s=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},27561:function(e,t,r){var n=r(67990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},45652:function(e,t,r){var n=r(88668),i=r(47443),o=r(1196),a=r(74757),s=r(23593),l=r(21814);e.exports=function(e,t,r){var c=-1,u=i,d=e.length,h=!0,f=[],p=f;if(r)h=!1,u=o;else if(d>=200){var g=t?null:s(e);if(g)return l(g);h=!1,u=a,p=new n}else p=t?[]:f;t:for(;++c<d;){var m=e[c],v=t?t(m):m;if(m=r||0!==m?m:0,h&&v==v){for(var b=p.length;b--;)if(p[b]===v)continue t;t&&p.push(v),f.push(m)}else u(p,v,r)||(p!==f&&p.push(v),f.push(m))}return f}},57406:function(e,t,r){var n=r(71811),i=r(10928),o=r(40292),a=r(40327);e.exports=function(e,t){return t=n(t,e),null==(e=o(e,t))||delete e[a(i(t))]}},74757:function(e){e.exports=function(e,t){return e.has(t)}},71811:function(e,t,r){var n=r(1469),i=r(15403),o=r(55514),a=r(79833);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(a(e))}},40180:function(e,t,r){var n=r(14259);e.exports=function(e,t,r){var i=e.length;return r=void 0===r?i:r,!t&&r>=i?e:n(e,t,r)}},74318:function(e,t,r){var n=r(11149);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},64626:function(e,t,r){e=r.nmd(e);var n=r(55639),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},57157:function(e,t,r){var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},93147:function(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},40419:function(e,t,r){var n=r(62705),i=n?n.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},77133:function(e,t,r){var n=r(74318);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},278:function(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},98363:function(e,t,r){var n=r(34865),i=r(89465);e.exports=function(e,t,r,o){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?i(r,c,u):n(r,c,u)}return r}},18805:function(e,t,r){var n=r(98363),i=r(99551);e.exports=function(e,t){return n(e,i(e),t)}},1911:function(e,t,r){var n=r(98363),i=r(51442);e.exports=function(e,t){return n(e,i(e),t)}},14429:function(e,t,r){var n=r(55639)["__core-js_shared__"];e.exports=n},98805:function(e,t,r){var n=r(40180),i=r(62689),o=r(83140),a=r(79833);e.exports=function(e){return function(t){var r=i(t=a(t))?o(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},23593:function(e,t,r){var n=r(58525),i=r(50308),o=r(21814),a=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=a},60696:function(e,t,r){var n=r(68630);e.exports=function(e){return n(e)?void 0:e}},38777:function(e,t,r){var n=r(10852),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},67114:function(e,t,r){var n=r(88668),i=r(82908),o=r(74757);e.exports=function(e,t,r,a,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],b=t[p];if(a)var y=c?a(b,v,p,t,e,l):a(v,b,p,e,t,l);if(void 0!==y){if(y)continue;g=!1;break}if(m){if(!i(t,function(e,t){if(!o(m,t)&&(v===e||s(v,e,r,a,l)))return m.push(t)})){g=!1;break}}else if(!(v===b||s(v,b,r,a,l))){g=!1;break}}return l.delete(e),l.delete(t),g}},18351:function(e,t,r){var n=r(62705),i=r(11149),o=r(77813),a=r(67114),s=r(68776),l=r(21814),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)break;var g=h.get(e);if(g)return g==t;n|=2,h.set(e,t);var m=a(f(e),f(t),n,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16096:function(e,t,r){var n=r(58234),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],b=t[h];if(o)var y=l?o(b,v,h,t,e,s):o(v,b,h,e,t,s);if(!(void 0===y?v===b||a(v,b,r,o,s):y)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(g=!1)}return s.delete(e),s.delete(t),g}},99021:function(e,t,r){var n=r(85564),i=r(45357),o=r(30061);e.exports=function(e){return o(i(e,void 0,n),e+"")}},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},58234:function(e,t,r){var n=r(68866),i=r(99551),o=r(3674);e.exports=function(e){return n(e,o,i)}},46904:function(e,t,r){var n=r(68866),i=r(51442),o=r(81704);e.exports=function(e){return n(e,o,i)}},45050:function(e,t,r){var n=r(37019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},1499:function(e,t,r){var n=r(89162),i=r(3674);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,n(a)]}return t}},10852:function(e,t,r){var n=r(28458),i=r(47801);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},85924:function(e,t,r){var n=r(5569)(Object.getPrototypeOf,Object);e.exports=n},89607:function(e,t,r){var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},99551:function(e,t,r){var n=r(34963),i=r(70479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:n(a(e=Object(e)),function(t){return o.call(e,t)})}:i;e.exports=s},51442:function(e,t,r){var n=r(62488),i=r(85924),o=r(99551),a=r(70479),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:a;e.exports=s},64160:function(e,t,r){var n=r(18552),i=r(57071),o=r(53818),a=r(58525),s=r(70577),l=r(44239),c=r(80346),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(n),m=c(i),v=c(o),b=c(a),y=c(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=p||i&&w(new i)!=u||o&&w(o.resolve())!=d||a&&w(new a)!=h||s&&w(new s)!=f)&&(w=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case g:return p;case m:return u;case v:return d;case b:return h;case y:return f}return t}),e.exports=w},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,r){var n=r(71811),i=r(35694),o=r(1469),a=r(65776),s=r(41780),l=r(40327);e.exports=function(e,t,r){t=n(t,e);for(var c=-1,u=t.length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},62689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},51789:function(e,t,r){var n=r(94536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,r){var n=r(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},21327:function(e,t,r){var n=r(94536),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},81866:function(e,t,r){var n=r(94536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},43824:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},29148:function(e,t,r){var n=r(74318),i=r(57157),o=r(93147),a=r(40419),s=r(77133);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return i(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return o(e);case"[object Symbol]":return a(e)}}},38517:function(e,t,r){var n=r(3118),i=r(85924),o=r(25726);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:n(i(e))}},37285:function(e,t,r){var n=r(62705),i=r(35694),o=r(1469),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},15403:function(e,t,r){var n=r(1469),i=r(33448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,r){var n,i=r(14429),o=(n=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},89162:function(e,t,r){var n=r(13218);e.exports=function(e){return e==e&&!n(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,r){var n=r(18470),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},82117:function(e,t,r){var n=r(18470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},67518:function(e,t,r){var n=r(18470);e.exports=function(e){return n(this.__data__,e)>-1}},54705:function(e,t,r){var n=r(18470);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},24785:function(e,t,r){var n=r(1989),i=r(38407),o=r(57071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},11285:function(e,t,r){var n=r(45050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).get(e)}},74157:function(e,t,r){var n=r(45050);e.exports=function(e){return n(this,e).has(e)}},95265:function(e,t,r){var n=r(45050);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},42634:function(e){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}},24523:function(e,t,r){var n=r(88306);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},94536:function(e,t,r){var n=r(10852)(Object,"create");e.exports=n},86916:function(e,t,r){var n=r(5569)(Object.keys,Object);e.exports=n},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},31167:function(e,t,r){e=r.nmd(e);var n=r(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(r){return e(t(r))}}},45357:function(e,t,r){var n=r(96874),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=r(l),n(e,this,c)}}},40292:function(e,t,r){var n=r(97786),i=r(14259);e.exports=function(e,t){return t.length<2?e:n(e,i(t,0,-1))}},55639:function(e,t,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},30061:function(e,t,r){var n=r(56560),i=r(21275)(n);e.exports=i},21275:function(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},37465:function(e,t,r){var n=r(38407);e.exports=function(){this.__data__=new n,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,r){var n=r(38407),i=r(57071),o=r(83369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},42351:function(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}},83140:function(e,t,r){var n=r(44286),i=r(62689),o=r(676);e.exports=function(e){return i(e)?o(e):n(e)}},55514:function(e,t,r){var n=r(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=a},40327:function(e,t,r){var n=r(33448),i=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},676:function(e){var t="\ud800-\udfff",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\ud83c[\udffb-\udfff]",i="[^"+t+"]",o="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",s="(?:"+r+"|"+n+")?",l="[\\ufe0e\\ufe0f]?",c="(?:\\u200d(?:"+[i,o,a].join("|")+")"+l+s+")*",u=RegExp(n+"(?="+n+")|(?:"+[i+r+"?",r,o,a,"["+t+"]"].join("|")+")"+(l+s+c),"g");e.exports=function(e){return e.match(u)||[]}},48403:function(e,t,r){var n=r(79833),i=r(11700);e.exports=function(e){return i(n(e).toLowerCase())}},74691:function(e,t,r){var n=r(29750),i=r(14841);e.exports=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=i(r))==r?r:0),void 0!==t&&(t=(t=i(t))==t?t:0),n(i(e),t,r)}},75703:function(e){e.exports=function(e){return function(){return e}}},23279:function(e,t,r){var n=r(13218),i=r(7771),o=r(14841),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,d,h,f,p=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var r=l,n=c;return l=c=void 0,p=t,d=e.apply(n,r)}function y(e){var r=e-f,n=e-p;return void 0===f||r>=t||r<0||m&&n>=u}function w(){var e,r,n,o=i();if(y(o))return x(o);h=setTimeout(w,(e=o-f,r=o-p,n=t-e,m?s(n,u-r):n))}function x(e){return(h=void 0,v&&l)?b(e):(l=c=void 0,d)}function _(){var e,r=i(),n=y(r);if(l=arguments,c=this,f=r,n){if(void 0===h)return p=e=f,h=setTimeout(w,t),g?b(e):d;if(m)return clearTimeout(h),h=setTimeout(w,t),b(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=o(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(o(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),_.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},_.flush=function(){return void 0===h?d:x(i())},_}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},85564:function(e,t,r){var n=r(21078);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},27361:function(e,t,r){var n=r(97786);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},79095:function(e,t,r){var n=r(13),i=r(222);e.exports=function(e,t){return null!=e&&i(e,t,n)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,r){var n=r(9454),i=r(37005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,r){var n=r(23560),i=r(41780);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},44144:function(e,t,r){e=r.nmd(e);var n=r(55639),i=r(95062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||i},23560:function(e,t,r){var n=r(44239),i=r(13218);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},56688:function(e,t,r){var n=r(25588),i=r(7518),o=r(31167),a=o&&o.isMap,s=a?i(a):n;e.exports=s},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,r){var n=r(44239),i=r(85924),o=r(37005),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,c=s.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}},72928:function(e,t,r){var n=r(29221),i=r(7518),o=r(31167),a=o&&o.isSet,s=a?i(a):n;e.exports=s},33448:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},36719:function(e,t,r){var n=r(38749),i=r(7518),o=r(31167),a=o&&o.isTypedArray,s=a?i(a):n;e.exports=s},3674:function(e,t,r){var n=r(14636),i=r(280),o=r(98612);e.exports=function(e){return o(e)?n(e):i(e)}},81704:function(e,t,r){var n=r(14636),i=r(10313),o=r(98612);e.exports=function(e){return o(e)?n(e,!0):i(e)}},10928:function(e){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},88306:function(e,t,r){var n=r(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},50308:function(e){e.exports=function(){}},7771:function(e,t,r){var n=r(55639);e.exports=function(){return n.Date.now()}},57557:function(e,t,r){var n=r(29932),i=r(85990),o=r(57406),a=r(71811),s=r(98363),l=r(60696),c=r(99021),u=r(46904),d=c(function(e,t){var r={};if(null==e)return r;var c=!1;t=n(t,function(t){return t=a(t,e),c||(c=t.length>1),t}),s(e,u(e),r),c&&(r=i(r,7,l));for(var d=t.length;d--;)o(r,t[d]);return r});e.exports=d},35937:function(e,t,r){var n=r(29932),i=r(67206),o=r(63012),a=r(46904);e.exports=function(e,t){if(null==e)return{};var r=n(a(e),function(e){return[e]});return t=i(t),o(e,r,function(e,r){return t(e,r[0])})}},39601:function(e,t,r){var n=r(40371),i=r(79152),o=r(15403),a=r(40327);e.exports=function(e){return o(e)?n(a(e)):i(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},23493:function(e,t,r){var n=r(23279),i=r(13218);e.exports=function(e,t,r){var o=!0,a=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:o,maxWait:t,trailing:a})}},14841:function(e,t,r){var n=r(27561),i=r(13218),o=r(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return a;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):s.test(e)?a:+e}},79833:function(e,t,r){var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},44908:function(e,t,r){var n=r(45652);e.exports=function(e){return e&&e.length?n(e):[]}},11700:function(e,t,r){var n=r(98805)("toUpperCase");e.exports=n},79746:function(e){function t(e,t){if(!e)throw Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},34504:function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e);for(var n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},t.zero2=r,t.toHex=n,t.encode=function(e,t){return"hex"===t?n(e):e}},8891:function(e){"use strict";var t,r,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y={DEBUG:!1,LIB_VERSION:"2.47.0"};if("undefined"==typeof window){var w={hostname:""};m={navigator:{userAgent:""},document:{location:w,referrer:""},screen:{width:0,height:0},location:w}}else m=window;var x=Array.prototype,_=Function.prototype,C=Object.prototype,A=x.slice,k=C.toString,E=C.hasOwnProperty,S=m.console,T=m.navigator,I=m.document,P=m.opera,O=m.screen,R=T.userAgent,M=_.bind,N=x.forEach,j=x.indexOf,D=x.map,B=Array.isArray,L={},$={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},U={log:function(){if(y.DEBUG&&!$.isUndefined(S)&&S)try{S.log.apply(S,arguments)}catch(e){$.each(arguments,function(e){S.log(e)})}},warn:function(){if(y.DEBUG&&!$.isUndefined(S)&&S){var e=["Mixpanel warning:"].concat($.toArray(arguments));try{S.warn.apply(S,e)}catch(t){$.each(e,function(e){S.warn(e)})}}},error:function(){if(y.DEBUG&&!$.isUndefined(S)&&S){var e=["Mixpanel error:"].concat($.toArray(arguments));try{S.error.apply(S,e)}catch(t){$.each(e,function(e){S.error(e)})}}},critical:function(){if(!$.isUndefined(S)&&S){var e=["Mixpanel error:"].concat($.toArray(arguments));try{S.error.apply(S,e)}catch(t){$.each(e,function(e){S.error(e)})}}}},z=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(U,arguments)}},F=function(e){return{log:z(U.log,e),error:z(U.error,e),critical:z(U.critical,e)}};$.bind=function(e,t){var r,n;if(M&&e.bind===M)return M.apply(e,A.call(arguments,1));if(!$.isFunction(e))throw TypeError();return r=A.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(A.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,r.concat(A.call(arguments)));return Object(a)===a?a:o}},$.each=function(e,t,r){if(null!=e){if(N&&e.forEach===N)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===L)return}else for(var o in e)if(E.call(e,o)&&t.call(r,e[o],o,e)===L)return}},$.extend=function(e){return $.each(A.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},$.isArray=B||function(e){return"[object Array]"===k.call(e)},$.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},$.isArguments=function(e){return!!(e&&E.call(e,"callee"))},$.toArray=function(e){return e?e.toArray?e.toArray():$.isArray(e)||$.isArguments(e)?A.call(e):$.values(e):[]},$.map=function(e,t,r){if(D&&e.map===D)return e.map(t,r);var n=[];return $.each(e,function(e){n.push(t.call(r,e))}),n},$.keys=function(e){var t=[];return null===e||$.each(e,function(e,r){t[t.length]=r}),t},$.values=function(e){var t=[];return null===e||$.each(e,function(e){t[t.length]=e}),t},$.include=function(e,t){var r=!1;return null===e?r:j&&e.indexOf===j?-1!=e.indexOf(t):($.each(e,function(e){if(r||(r=e===t))return L}),r)},$.includes=function(e,t){return -1!==e.indexOf(t)},$.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},$.isObject=function(e){return e===Object(e)&&!$.isArray(e)},$.isEmptyObject=function(e){if($.isObject(e)){for(var t in e)if(E.call(e,t))return!1;return!0}return!1},$.isUndefined=function(e){return void 0===e},$.isString=function(e){return"[object String]"==k.call(e)},$.isDate=function(e){return"[object Date]"==k.call(e)},$.isNumber=function(e){return"[object Number]"==k.call(e)},$.isElement=function(e){return!!(e&&1===e.nodeType)},$.encodeDates=function(e){return $.each(e,function(t,r){$.isDate(t)?e[r]=$.formatDate(t):$.isObject(t)&&(e[r]=$.encodeDates(t))}),e},$.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},$.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},$.strip_empty_properties=function(e){var t={};return $.each(e,function(e,r){$.isString(e)&&e.length>0&&(t[r]=e)}),t},$.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):$.isArray(e)?(r=[],$.each(e,function(e){r.push($.truncate(e,t))})):$.isObject(e)?(r={},$.each(e,function(e,n){r[n]=$.truncate(e,t)})):r=e,r},$.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,a="",s="",l=0,c=i,u=[],d=n[e];switch(d&&"object"==typeof d&&"function"==typeof d.toJSON&&(d=d.toJSON(e)),typeof d){case"string":return t(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(i+="    ",u=[],"[object Array]"===k.apply(d)){for(o=0,l=d.length;o<l;o+=1)u[o]=r(o,d)||"null";return s=0===u.length?"[]":i?"[\n"+i+u.join(",\n"+i)+"\n"+c+"]":"["+u.join(",")+"]",i=c,s}for(a in d)E.call(d,a)&&(s=r(a,d))&&u.push(t(a)+(i?": ":":")+s);return s=0===u.length?"{}":i?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",i=c,s}};return r("",{"":e})},$.JSONDecode=(o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"	"},a=function(e){var r=SyntaxError(e);throw r.at=t,r.text=n,r},s=function(e){return e&&e!==r&&a("Expected '"+e+"' instead of '"+r+"'"),r=n.charAt(t),t+=1,r},l=function(){var e,t="";for("-"===r&&(t="-",s("-"));r>="0"&&r<="9";)t+=r,s();if("."===r)for(t+=".";s()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,s(),("-"===r||"+"===r)&&(t+=r,s());r>="0"&&r<="9";)t+=r,s();if(isFinite(e=+t))return e;a("Bad number")},c=function(){var e,t,n,i="";if('"'===r)for(;s();){if('"'===r)return s(),i;if("\\"===r){if(s(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(s(),16));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else if("string"==typeof o[r])i+=o[r];else break}else i+=r}a("Bad string")},u=function(){for(;r&&r<=" ";)s()},d=function(){switch(r){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}a('Unexpected "'+r+'"')},h=function(){var e=[];if("["===r){if(s("["),u(),"]"===r)return s("]"),e;for(;r;){if(e.push(i()),u(),"]"===r)return s("]"),e;s(","),u()}}a("Bad array")},f=function(){var e,t={};if("{"===r){if(s("{"),u(),"}"===r)return s("}"),t;for(;r;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=i(),u(),"}"===r)return s("}"),t;s(","),u()}}a("Bad object")},i=function(){switch(u(),r){case"{":return f();case"[":return h();case'"':return c();case"-":return l();default:return r>="0"&&r<="9"?l():d()}},function(e){var o;return n=e,t=0,r=" ",o=i(),u(),r&&a("Syntax error"),o}),$.base64Encode=function(e){var t,r,n,i,o,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,l=0,c="",u=[];if(!e)return e;e=$.utf8Encode(e);do t=(o=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,u[l++]=a.charAt(t)+a.charAt(r)+a.charAt(n)+a.charAt(i);while(s<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},$.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var a=e.charCodeAt(n),s=null;a<128?r++:s=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==s&&(r>t&&(i+=e.substring(t,r)),i+=s,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},$.UUID=(p=function(){var e,t=1*new Date;if(m.performance&&m.performance.now)e=m.performance.now();else for(e=0;t==1*new Date;)e++;return t.toString(16)+Math.floor(e).toString(16)},g=function(){var e,t,r=[],n=0;function i(e,t){var n,i=0;for(n=0;n<t.length;n++)i|=r[n]<<8*n;return e^i}for(e=0;e<R.length;e++)t=R.charCodeAt(e),r.unshift(255&t),r.length>=4&&(n=i(n,r),r=[]);return r.length>0&&(n=i(n,r)),n.toString(16)},function(){var e=(O.height*O.width).toString(16);return p()+"-"+Math.random().toString(16).replace(".","")+"-"+g()+"-"+e+"-"+p()});var q=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];$.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<q.length;t++)if(-1!==e.indexOf(q[t]))return!0;return!1},$.HTTPBuildQuery=function(e,t){var r,n,i=[];return $.isUndefined(t)&&(t="&"),$.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},$.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){U.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},$.cookie={get:function(e){for(var t=e+"=",r=I.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=$.JSONDecode($.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=J(I.location.hostname);s=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+1e3*r),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),I.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,r,n,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var u=J(I.location.hostname);s=u?"; domain=."+u:""}if(r){var d=new Date;d.setTime(d.getTime()+864e5*r),l="; expires="+d.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var h=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return I.cookie=h,h},remove:function(e,t,r){$.cookie.set(e,"",-1,t,!1,!1,r)}};var H=null,W=function(e,t){if(null!==H&&!t)return H;var r=!0;try{e=e||window.localStorage;var n="__mplss_"+K(8);e.setItem(n,"xyz"),"xyz"!==e.getItem(n)&&(r=!1),e.removeItem(n)}catch(e){r=!1}return H=r,r};$.localStorage={is_supported:function(e){var t=W(null,e);return t||U.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){U.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){$.localStorage.error(e)}return null},parse:function(e){try{return $.JSONDecode($.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){$.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){$.localStorage.error(e)}}},$.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t){U.error("No valid element provided to register_event");return}if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var a="on"+r,s=t[a];t[a]=function(r){if(r=r||e(window.event)){var i,o,a=!0;return $.isFunction(s)&&(i=s(r)),o=n.call(t,r),(!1===i||!1===o)&&(a=!1),a}}}}}();var V=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');$.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!I.getElementsByTagName)return[];var n=r.split(" "),i=[I];for(p=0;p<n.length;p++){if((c=n[p].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){d=(u=c.split("#"))[0];var o=u[1],a=I.getElementById(o);if(!a||d&&a.nodeName.toLowerCase()!=d)return[];i=[a];continue}if(c.indexOf(".")>-1){d=(u=c.split("."))[0];var s=u[1];for(d||(d="*"),h=[],f=0,g=0;g<i.length;g++)for(m=0,v="*"==d?e(i[g]):i[g].getElementsByTagName(d);m<v.length;m++)h[f++]=v[m];for(g=0,i=[],b=0;g<h.length;g++)h[g].className&&$.isString(h[g].className)&&(" "+h[g].className+" ").replace(t," ").indexOf(" "+s+" ")>=0&&(i[b++]=h[g]);continue}var l=c.match(V);if(l){d=l[1];var c,u,d,h,f,p,g,m,v,b,y,w=l[2],x=l[3],_=l[4];for(d||(d="*"),h=[],f=0,g=0;g<i.length;g++)for(m=0,v="*"==d?e(i[g]):i[g].getElementsByTagName(d);m<v.length;m++)h[f++]=v[m];switch(i=[],b=0,x){case"=":y=function(e){return e.getAttribute(w)==_};break;case"~":y=function(e){return e.getAttribute(w).match(RegExp("\\b"+_+"\\b"))};break;case"|":y=function(e){return e.getAttribute(w).match(RegExp("^"+_+"-?"))};break;case"^":y=function(e){return 0===e.getAttribute(w).indexOf(_)};break;case"$":y=function(e){return e.getAttribute(w).lastIndexOf(_)==e.getAttribute(w).length-_.length};break;case"*":y=function(e){return e.getAttribute(w).indexOf(_)>-1};break;default:y=function(e){return e.getAttribute(w)}}for(g=0,i=[],b=0;g<h.length;g++)y(h[g])&&(i[b++]=h[g]);continue}for(g=0,d=c,h=[],f=0;g<i.length;g++)for(m=0,v=i[g].getElementsByTagName(d);m<v.length;m++)h[f++]=v[m];i=h}return i}return function(e){return $.isElement(e)?[e]:$.isObject(e)&&!$.isUndefined(e.length)?e:r.call(this,e)}}();var Z=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],G=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];$.info={campaignParams:function(e){var t="",r={};return $.each(Z,function(n){(t=$.getQueryParam(I.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return $.each(G,function(r){(e=$.getQueryParam(I.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return $.extend($.info.campaignParams(),$.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=$.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=$.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||$.includes(e," OPR/"))return $.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if($.includes(e,"IEMobile")||$.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if($.includes(e,"SamsungBrowser/"))return"Samsung Internet";if($.includes(e,"Edge")||$.includes(e,"Edg/"))return"Microsoft Edge";if($.includes(e,"FBIOS"))return"Facebook Mobile";if($.includes(e,"Chrome"))return"Chrome";else if($.includes(e,"CriOS"))return"Chrome iOS";else if($.includes(e,"UCWEB")||$.includes(e,"UCBrowser"))return"UC Browser";else if($.includes(e,"FxiOS"))return"Firefox iOS";else if($.includes(t,"Apple"))return $.includes(e,"Mobile")?"Mobile Safari":"Safari";else if($.includes(e,"Android"))return"Android Mobile";else if($.includes(e,"Konqueror"))return"Konqueror";else if($.includes(e,"Firefox"))return"Firefox";else if($.includes(e,"MSIE")||$.includes(e,"Trident/"))return"Internet Explorer";else if($.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[$.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(R))return/Phone/.test(R)||/WPDesktop/.test(R)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(R))return"iOS";if(/Android/.test(R))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(R))return"BlackBerry";if(/Mac/i.test(R))return"Mac OS X";if(/Linux/.test(R))return"Linux";if(/CrOS/.test(R))return"Chrome OS";else return""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return $.extend($.strip_empty_properties({$os:$.info.os(),$browser:$.info.browser(R,T.vendor,P),$referrer:I.referrer,$referring_domain:$.info.referringDomain(I.referrer),$device:$.info.device(R)}),{$current_url:m.location.href,$browser_version:$.info.browserVersion(R,T.vendor,P),$screen_height:O.height,$screen_width:O.width,mp_lib:"web",$lib_version:y.LIB_VERSION,$insert_id:K(),time:$.timestamp()/1e3})},people_properties:function(){return $.extend($.strip_empty_properties({$os:$.info.os(),$browser:$.info.browser(R,T.vendor,P)}),{$browser_version:$.info.browserVersion(R,T.vendor,P)})},mpPageViewProperties:function(){return $.strip_empty_properties({current_page_title:I.title,current_domain:m.location.hostname,current_url_path:m.location.pathname,current_url_protocol:m.location.protocol,current_url_search:m.location.search})}};var K=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},Y=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Q=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,J=function(e){var t=Q,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Y);var i=e.match(t);return i?i[0]:""},X=null,ee=null;"undefined"!=typeof JSON&&(X=JSON.stringify,ee=JSON.parse),X=X||$.JSONEncode,ee=ee||$.JSONDecode,$.toArray=$.toArray,$.isObject=$.isObject,$.JSONEncode=$.JSONEncode,$.JSONDecode=$.JSONDecode,$.isBlockedUA=$.isBlockedUA,$.isEmptyObject=$.isEmptyObject,$.info=$.info,$.info.device=$.info.device,$.info.browser=$.info.browser,$.info.browserVersion=$.info.browserVersion,$.info.properties=$.info.properties;var et=function(){};et.prototype.create_properties=function(){},et.prototype.event_handler=function(){},et.prototype.after_track_handler=function(){},et.prototype.init=function(e){return this.mp=e,this},et.prototype.track=function(e,t,r,n){var i=this,o=$.dom_query(e);if(0===o.length){U.error("The DOM query ("+e+") returned 0 elements");return}return $.each(o,function(e){$.register_event(e,this.override_event,function(e){var o={},a=i.create_properties(r,this),s=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,a,o,!0),s),i.mp.track(t,a,i.track_callback(n,a,o))})},this),!0},et.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},et.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):$.extend({},e)};var er=function(){this.override_event="click"};$.inherit(er,et),er.prototype.create_properties=function(e,t){var r=er.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},er.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},er.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var en=function(){this.override_event="submit"};$.inherit(en,et),en.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},en.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var ei=F("lock"),eo=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};eo.prototype.withLock=function(e,t,r){r||"function"==typeof t||(r=t,t=null);var n=r||new Date().getTime()+"|"+Math.random(),i=new Date().getTime(),o=this.storageKey,a=this.pollIntervalMS,s=this.timeoutMS,l=this.storage,c=o+":X",u=o+":Y",d=o+":Z",h=function(e){t&&t(e)},f=function(e){if(new Date().getTime()-i>s){ei.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+n+"]"),l.removeItem(d),l.removeItem(u),m();return}setTimeout(function(){try{e()}catch(e){h(e)}},a*(Math.random()+.1))},p=function(e,t){e()?t():f(function(){p(e,t)})},g=function(){var e=l.getItem(u);if(e&&e!==n)return!1;if(l.setItem(u,n),l.getItem(u)===n)return!0;if(!W(l,!0))throw Error("localStorage support dropped while acquiring lock");return!1},m=function(){l.setItem(c,n),p(g,function(){if(l.getItem(c)===n){v();return}f(function(){if(l.getItem(u)!==n){m();return}p(function(){return!l.getItem(d)},v)})})},v=function(){l.setItem(d,"1");try{e()}finally{l.removeItem(d),l.getItem(u)===n&&l.removeItem(u),l.getItem(c)===n&&l.removeItem(c)}};try{if(W(l,!0))m();else throw Error("localStorage support check failed")}catch(e){h(e)}};var ea=F("batch"),es=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||$.bind(ea.error,ea),this.lock=new eo(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};es.prototype.enqueue=function(e,t,r){var n={id:K(),flushAfter:new Date().getTime()+2*t,payload:e};this.lock.withLock($.bind(function(){var t;try{var i=this.readFromStorage();i.push(n),(t=this.saveToStorage(i))&&this.memQueue.push(n)}catch(r){this.reportError("Error enqueueing item",e),t=!1}r&&r(t)},this),$.bind(function(e){this.reportError("Error acquiring storage lock",e),r&&r(!1)},this),this.pid)},es.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var r=this.readFromStorage();if(r.length){var n={};$.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};var el=function(e,t){var r=[];return $.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};es.prototype.removeItemsByID=function(e,t){var r={};$.each(e,function(e){r[e]=!0}),this.memQueue=el(this.memQueue,r);var n=$.bind(function(){var t;try{var n=this.readFromStorage();if(n=el(n,r),t=this.saveToStorage(n)){n=this.readFromStorage();for(var i=0;i<n.length;i++){var o=n[i];if(o.id&&r[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(r){this.reportError("Error removing items",e),t=!1}return t},this);this.lock.withLock(function(){var e=n();t&&t(e)},$.bind(function(e){var r=!1;if(this.reportError("Error acquiring storage lock",e),!W(this.storage,!0)&&!(r=n()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(r)},this),this.pid)};var ec=function(e,t){var r=[];return $.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};es.prototype.updatePayloads=function(e,t){this.memQueue=ec(this.memQueue,e),this.lock.withLock($.bind(function(){var r;try{var n=this.readFromStorage();n=ec(n,e),r=this.saveToStorage(n)}catch(t){this.reportError("Error updating items",e),r=!1}t&&t(r)},this),$.bind(function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)},this),this.pid)},es.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=ee(e),$.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},es.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,X(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},es.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var eu=F("batch"),ed=function(e,t){this.errorReporter=t.errorReporter,this.queue=new es(e,{errorReporter:$.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};function eh(e,t){eC(!0,e,t)}function ef(e,t){eC(!1,e,t)}function ep(e,t){return"1"===e_(e,t)}function eg(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||m,r=t.navigator||{},n=!1;return $.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){$.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return U.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===e_(e,t);return r&&U.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function em(e){return eA(e,function(e){return this.get_config(e)})}function ev(e){return eA(e,function(e){return this._get_config(e)})}function eb(e){return eA(e,function(e){return this._get_config(e)})}function ey(e,t){ew(t=t||{}).remove(ex(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function ew(e){return"localStorage"===(e=e||{}).persistenceType?$.localStorage:$.cookie}function ex(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function e_(e,t){return ew(t).get(ex(e,t))}function eC(e,t,r){if(!$.isString(t)||!t.length){U.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}ew(r=r||{}).set(ex(t,r),e?1:0,$.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function eA(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=eg(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(e){U.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}ed.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},ed.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ed.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ed.prototype.clear=function(){this.queue.clear()},ed.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ed.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ed.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout($.bind(this.flush,this),this.flushInterval))},ed.prototype.flush=function(e){try{if(this.requestInProgress){eu.log("Flush: Request already in progress");return}e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize,i=this.queue.fillBatch(n),o=[],a={};if($.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=$.extend({},t.properties,{mp_sent_by_lib_version:y.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&o.push(t)}a[e.id]=t},this),o.length<1){this.resetFlush();return}this.requestInProgress=!0;var s=$.bind(function(o){this.requestInProgress=!1;try{var s=!1;if(e.unloading)this.queue.updatePayloads(a);else if($.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)this.reportError("Network timeout; retrying"),this.flush();else if($.isObject(o)&&o.xhr_req&&(o.xhr_req.status>=500||429===o.xhr_req.status||"timeout"===o.error)){var l=2*this.flushInterval,c=o.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(l=1e3*parseInt(u,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if($.isObject(o)&&o.xhr_req&&413===o.xhr_req.status){if(i.length>1){var d=Math.max(1,Math.floor(n/2));this.batchSize=Math.min(this.batchSize,d,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),s=!0}else s=!0;s&&(this.queue.removeItemsByID($.map(i,function(e){return e.id}),$.bind(function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())},this)),$.each(i,$.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),eu.log("MIXPANEL REQUEST:",o),this.sendRequest(o,l,s)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},ed.prototype.reportError=function(e,t){if(eu.error.apply(eu.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){eu.error(e)}};var ek="$set",eE="$set_once",eS="$unset",eT="$add",eI="$append",eP="$union",eO="$remove",eR={set_action:function(e,t){var r={},n={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[ek]=n,r},unset_action:function(e){var t={},r=[];return $.isArray(e)||(e=[e]),$.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[eS]=r,t},set_once_action:function(e,t){var r={},n={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[eE]=n,r},union_action:function(e,t){var r={},n={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=$.isArray(e)?e:[e])},this):n[e]=$.isArray(t)?t:[t],r[eP]=n,r},append_action:function(e,t){var r={},n={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[eI]=n,r},remove_action:function(e,t){var r={},n={};return $.isObject(e)?$.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[eO]=n,r},delete_action:function(){var e={};return e.$delete="",e}},eM=function(){};$.extend(eM.prototype,eR),eM.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},eM.prototype.set=eb(function(e,t,r){var n=this.set_action(e,t);return $.isObject(e)&&(r=t),this._send_request(n,r)}),eM.prototype.set_once=eb(function(e,t,r){var n=this.set_once_action(e,t);return $.isObject(e)&&(r=t),this._send_request(n,r)}),eM.prototype.unset=eb(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),eM.prototype.union=eb(function(e,t,r){$.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),eM.prototype.delete=eb(function(e){var t=this.delete_action();return this._send_request(t,e)}),eM.prototype.remove=eb(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),eM.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=$.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)},eM.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},eM.prototype._get_config=function(e){return this._mixpanel.get_config(e)},eM.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},eM.prototype.remove=eM.prototype.remove,eM.prototype.set=eM.prototype.set,eM.prototype.set_once=eM.prototype.set_once,eM.prototype.union=eM.prototype.union,eM.prototype.unset=eM.prototype.unset,eM.prototype.toString=eM.prototype.toString;var eN=function(){};$.extend(eN.prototype,eR),eN.prototype._init=function(e){this._mixpanel=e},eN.prototype.set=ev(function(e,t,r){var n=this.set_action(e,t);return $.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[ek]=$.extend({},$.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),n[ek]),this._send_request(n,r)}),eN.prototype.set_once=ev(function(e,t,r){var n=this.set_once_action(e,t);return $.isObject(e)&&(r=t),this._send_request(n,r)}),eN.prototype.unset=ev(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),eN.prototype.increment=ev(function(e,t,r){var n={},i={};return $.isObject(e)?($.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){U.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}i[t]=e}},this),r=t):($.isUndefined(t)&&(t=1),i[e]=t),n[eT]=i,this._send_request(n,r)}),eN.prototype.append=ev(function(e,t,r){$.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),eN.prototype.remove=ev(function(e,t,r){$.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),eN.prototype.union=ev(function(e,t,r){$.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),eN.prototype.track_charge=ev(function(e,t,r){if(!$.isNumber(e)&&isNaN(e=parseFloat(e))){U.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",$.extend({$amount:e},t),r)}),eN.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},eN.prototype.delete_user=function(){if(!this._identify_called()){U.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},eN.prototype.toString=function(){return this._mixpanel.toString()+".people"},eN.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=$.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),$.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),$.truncate(o,255))},eN.prototype._get_config=function(e){return this._mixpanel.get_config(e)},eN.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},eN.prototype._enqueue=function(e){ek in e?this._mixpanel.persistence._add_to_people_queue(ek,e):eE in e?this._mixpanel.persistence._add_to_people_queue(eE,e):eS in e?this._mixpanel.persistence._add_to_people_queue(eS,e):eT in e?this._mixpanel.persistence._add_to_people_queue(eT,e):eI in e?this._mixpanel.persistence._add_to_people_queue(eI,e):eO in e?this._mixpanel.persistence._add_to_people_queue(eO,e):eP in e?this._mixpanel.persistence._add_to_people_queue(eP,e):U.error("Invalid call to _enqueue():",e)},eN.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=$.extend({},this._mixpanel.persistence._get_queue(e)),a=o;!$.isUndefined(o)&&$.isObject(o)&&!$.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),n&&(a=n(o)),t.call(i,a,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),$.isUndefined(r)||r(t,n)}))},eN.prototype._flush=function(e,t,r,n,i,o,a){var s=this,l=this._mixpanel.persistence._get_queue(eI),c=this._mixpanel.persistence._get_queue(eO);if(this._flush_one_queue(ek,this.set,e),this._flush_one_queue(eE,this.set_once,n),this._flush_one_queue(eS,this.unset,o,function(e){return $.keys(e)}),this._flush_one_queue(eT,this.increment,t),this._flush_one_queue(eP,this.union,i),!$.isUndefined(l)&&$.isArray(l)&&l.length){for(var u,d=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(eI,u),$.isUndefined(r)||r(e,t)},h=l.length-1;h>=0;h--)u=l.pop(),$.isEmptyObject(u)||s.append(u,d);s._mixpanel.persistence.save()}if(!$.isUndefined(c)&&$.isArray(c)&&c.length){for(var f,p=function(e,t){0===e&&s._mixpanel.persistence._add_to_people_queue(eO,f),$.isUndefined(a)||a(e,t)},g=c.length-1;g>=0;g--)f=c.pop(),$.isEmptyObject(f)||s.remove(f,p);s._mixpanel.persistence.save()}},eN.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},eN.prototype.set=eN.prototype.set,eN.prototype.set_once=eN.prototype.set_once,eN.prototype.unset=eN.prototype.unset,eN.prototype.increment=eN.prototype.increment,eN.prototype.append=eN.prototype.append,eN.prototype.remove=eN.prototype.remove,eN.prototype.union=eN.prototype.union,eN.prototype.track_charge=eN.prototype.track_charge,eN.prototype.clear_charges=eN.prototype.clear_charges,eN.prototype.delete_user=eN.prototype.delete_user,eN.prototype.toString=eN.prototype.toString;var ej="__mps",eD="__mpso",eB="__mpus",eL="__mpa",e$="__mpap",eU="__mpr",ez="__mpu",eF="$people_distinct_id",eq="__alias",eH="__timers",eW=[ej,eD,eB,eL,e$,eU,ez,eF,eq,eH],eV=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(U.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&$.localStorage.is_supported()?this.storage=$.localStorage:this.storage=$.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};eV.prototype.properties=function(){var e={};return $.each(this.props,function(t,r){$.include(eW,r)||(e[r]=t)}),e},eV.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=$.extend({},e))}},eV.prototype.upgrade=function(e){var t,r,n=e.upgrade;n&&(t="mp_super_properties","string"==typeof n&&(t=n),r=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),r&&(this.props=$.extend(this.props,r.all,r.events))),!e.cookie_name&&"mixpanel"!==e.name&&(t="mp_"+e.token+"_"+e.name,(r=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(r))),this.storage===$.localStorage&&(r=$.cookie.parse(this.name),$.cookie.remove(this.name),$.cookie.remove(this.name,!0),r&&this.register_once(r))},eV.prototype.save=function(){this.disabled||this.storage.set(this.name,$.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},eV.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},eV.prototype.clear=function(){this.remove(),this.props={}},eV.prototype.register_once=function(e,t,r){return!!$.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,$.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},eV.prototype.register=function(e,t){return!!$.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,$.extend(this.props,e),this.save(),!0)},eV.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},eV.prototype.update_search_keyword=function(e){this.register($.info.searchInfo(e))},eV.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:$.info.referringDomain(e)||"$direct"},"")},eV.prototype.get_referrer_info=function(){return $.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},eV.prototype.safe_merge=function(e){return $.each(this.props,function(t,r){r in e||(e[r]=t)}),e},eV.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},eV.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},eV.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},eV.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},eV.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},eV.prototype.get_cross_subdomain=function(){return this.cross_subdomain},eV.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},eV.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(ek),o=this._get_or_create_queue(eE),a=this._get_or_create_queue(eS),s=this._get_or_create_queue(eT),l=this._get_or_create_queue(eP),c=this._get_or_create_queue(eO,[]),u=this._get_or_create_queue(eI,[]);r===ej?($.extend(i,n),this._pop_from_people_queue(eT,n),this._pop_from_people_queue(eP,n),this._pop_from_people_queue(eS,n)):r===eD?($.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(eS,n)):r===eB?$.each(n,function(e){$.each([i,o,s,l],function(t){e in t&&delete t[e]}),$.each(u,function(t){e in t&&delete t[e]}),a[e]=!0}):r===eL?($.each(n,function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)},this),this._pop_from_people_queue(eS,n)):r===ez?($.each(n,function(e,t){$.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))}),this._pop_from_people_queue(eS,n)):r===eU?(c.push(n),this._pop_from_people_queue(eI,n)):r===e$&&(u.push(n),this._pop_from_people_queue(eS,n)),U.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),U.log(t),this.save()},eV.prototype._pop_from_people_queue=function(e,t){var r=this._get_queue(e);$.isUndefined(r)||($.each(t,function(t,n){e===eI||e===eO?$.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this),this.save())},eV.prototype._get_queue_key=function(e){return e===ek?ej:e===eE?eD:e===eS?eB:e===eT?eL:e===eI?e$:e===eO?eU:e===eP?ez:void U.error("Invalid queue:",e)},eV.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},eV.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=$.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},eV.prototype.set_event_timer=function(e,t){var r=this.props[eH]||{};r[e]=t,this.props[eH]=r,this.save()},eV.prototype.remove_event_timer=function(e){var t=(this.props[eH]||{})[e];return $.isUndefined(t)||(delete this.props[eH][e],this.save()),t};var eZ=function(e){return e},eG=function(){},eK="mixpanel",eY="base64",eQ="$device:",eJ=m.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,eX=!eJ&&-1===R.indexOf("MSIE")&&-1===R.indexOf("Mozilla"),e0=null;T.sendBeacon&&(e0=function(){return T.sendBeacon.apply(T,arguments)});var e1={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:eY,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:eG,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:eG,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},e2=!1,e3=function(){},e5=function(e,t,r){var n,i=r===eK?b:b[r];if(i&&0===v)n=i;else{if(i&&!$.isArray(i)){U.error("You have already initialized "+r);return}n=new e3}if(n._cached_groups={},n._init(e,t,r),n.people=new eN,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=$.info.campaignParams(null),a={},s=!1;$.each(o,function(e,t){a["initial_"+t]=e,e&&(s=!0)}),s&&n.people.set_once(a)}return y.DEBUG=y.DEBUG||n.get_config("debug"),!$.isUndefined(i)&&$.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};e3.prototype.init=function(e,t,r){if($.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===eK){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=e5(e,t,r);return b[r]=n,n._loaded(),n},e3.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)&&(t.api_host||e1.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config($.extend({},e1,n,t,{name:r,token:e,callback_fn:(r===eK?r:eK+"."+r)+"._jsc"})),this._jsc=eG,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if($.localStorage.is_supported(!0)&&eJ){if(this.init_batchers(),e0&&m.addEventListener){var i=$.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);m.addEventListener("pagehide",function(e){e.persisted&&i()}),m.addEventListener("visibilitychange",function(){"hidden"===I.visibilityState&&i()})}}else this._batch_requests=!1,U.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support")}this.persistence=this.cookie=new eV(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=$.UUID();this.get_distinct_id()||this.register_once({distinct_id:eQ+o,$device_id:o},""),this.get_config("track_pageview")&&this.track_pageview()},e3.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()},e3.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(I.referrer),this.get_config("store_google")&&this.register($.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(I.referrer)},e3.prototype._dom_loaded=function(){$.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||$.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},e3.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!e2)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},e3.prototype._prepare_callback=function(e,t){if($.isUndefined(e))return null;if(eJ)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},e3.prototype._send_request=function(e,t,r,n){var i=!0;if(eX)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;!n&&($.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=$.extend(o,r||{}),eJ||(r.method="GET");var s="POST"===r.method,l=e0&&s&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!eJ&&(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),e+="?"+$.HTTPBuildQuery(t);var u=this;if("img"in t){var d=I.createElement("img");d.src=e,I.body.appendChild(d)}else if(l){try{i=e0(e,a)}catch(e){u.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){u.report_error(e)}}else if(eJ)try{var h=new XMLHttpRequest;h.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(s&&(f["Content-Type"]="application/x-www-form-urlencoded"),$.each(f,function(e,t){h.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==h.timeout){h.timeout=r.timeout_ms;var p=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(4===h.readyState){var e,t;if(200===h.status){if(n){if(c){try{e=$.JSONDecode(h.responseText)}catch(t){if(u.report_error(t),!r.ignore_json_errors)return;e=h.responseText}n(e)}else n(Number(h.responseText))}}else t=h.timeout&&!h.status&&new Date().getTime()-p>=h.timeout?"timeout":"Bad HTTP status: "+h.status+" "+h.statusText,u.report_error(t),n&&(c?n({status:0,error:t,xhr_req:h}):n(0))}},h.send(a)}catch(e){u.report_error(e),i=!1}else{var g=I.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=I.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},e3.prototype._execute_array=function(e){var t,r=[],n=[],i=[];$.each(e,function(e){e&&(t=e[0],$.isArray(t)?i.push(e):"function"==typeof e?e.call(this):$.isArray(e)&&"alias"===t?r.push(e):$.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){$.each(e,function(e){if($.isArray(e[0])){var r=t;$.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},e3.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},e3.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=$.bind(function(t){return new ed("__mpq_"+e+t.queue_suffix,{libConfig:this.config,sendRequestFunc:$.bind(function(e,r,n){this._send_request(this.get_config("api_host")+t.endpoint,this._encode_data_for_request(e),r,this._prepare_callback(n,e))},this),beforeSendHook:$.bind(function(e){return this._run_hook("before_send_"+t.type,e)},this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:$.bind(this.stop_batch_senders,this)})},this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()},e3.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,$.each(this.request_batchers,function(e){e.start()}))},e3.prototype.stop_batch_senders=function(){this._batch_requests=!1,$.each(this.request_batchers,function(e){e.stop(),e.clear()})},e3.prototype.push=function(e){this._execute_array([e])},e3.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},e3.prototype._encode_data_for_request=function(e){var t=$.JSONEncode(e);return this.get_config("api_payload_format")===eY&&(t=$.base64Encode(t)),{data:t}},e3.prototype._track_or_batch=function(e,t){var r=$.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||eG;var s=!0,l=$.bind(function(){return(a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(U.log("MIXPANEL REQUEST:"),U.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r,function(e){e?t(1,r):l()}):s=l(),s&&r},e3.prototype.track=em(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=eG),$.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}(t=t||{}).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!$.isUndefined(a)){var s=new Date().getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?$.info.marketingParams():{};t=$.extend({},$.info.properties(),l,this.persistence.properties(),this.unpersisted_superprops,t);var c=this.get_config("property_blacklist");$.isArray(c)?$.each(c,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+c);var u={event:e,properties:t};return this._track_or_batch({type:"events",data:u,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}),e3.prototype.set_group=em(function(e,t,r){$.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),e3.prototype.add_group=em(function(e,t,r){var n=this.get_property(e);if(void 0===n){var i={};i[e]=[t],this.register(i)}else -1===n.indexOf(t)&&(n.push(t),this.register(i));return this.people.union(e,t,r)}),e3.prototype.remove_group=em(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),e3.prototype.track_with_groups=em(function(e,t,r,n){var i=$.extend({},t||{});return $.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),e3.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},e3.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},e3.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new eM)._init(this,e,t),this._cached_groups[r]=n),n},e3.prototype.track_pageview=em(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=$.extend($.info.mpPageViewProperties(),$.info.campaignParams(),$.info.clickParams()),i=$.extend({},n,e);return this.track(r,i)}),e3.prototype.track_links=function(){return this._track_dom.call(this,er,arguments)},e3.prototype.track_forms=function(){return this._track_dom.call(this,en,arguments)},e3.prototype.time_event=function(e){if($.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var e6={persistent:!0},e4=function(e){var t;return t=$.isObject(e)?e:$.isUndefined(e)?{}:{days:e},$.extend({},e6,t)};e3.prototype.register=function(e,t){var r=e4(t);r.persistent?this.persistence.register(e,r.days):$.extend(this.unpersisted_superprops,e)},e3.prototype.register_once=function(e,t,r){var n=e4(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),$.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},e3.prototype.unregister=function(e,t){(t=e4(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},e3.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},e3.prototype.identify=function(e,t,r,n,i,o,a,s){var l=this.get_distinct_id();if(e&&l!==e){if("string"==typeof e&&0===e.indexOf(eQ))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:l},""),e!==l&&e!==this.get_property(eq)&&(this.unregister(eq),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},e3.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=$.UUID();this.register_once({distinct_id:eQ+e,$device_id:e},"")},e3.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},e3.prototype.alias=function(e,t){if(e===this.get_property(eF))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return($.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(eq,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},e3.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},e3.prototype.set_config=function(e){$.isObject(e)&&($.extend(this.config,e),e.batch_size&&$.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),y.DEBUG=y.DEBUG||this.get_config("debug"))},e3.prototype.get_config=function(e){return this.config[e]},e3.prototype._run_hook=function(e){var t=(this.config.hooks[e]||eZ).apply(this,A.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},e3.prototype.get_property=function(e){return this.persistence.props[e]},e3.prototype.toString=function(){var e=this.get_config("name");return e!==eK&&(e=eK+"."+e),e},e3.prototype._event_is_disabled=function(e){return $.isBlockedUA(R)||this._flags.disable_all_events||$.include(this.__disabled_events,e)},e3.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&$.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||$.cookie.get("mp_optout"))&&($.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},e3.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t&&$.each(this.request_batchers,function(e){e.clear()})},e3.prototype._gdpr_call_func=function(e,t){return t=$.extend({track:$.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),$.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},e3.prototype.opt_in_tracking=function(e){e=$.extend({enable_persistence:!0},e),this._gdpr_call_func(eh,e),this._gdpr_update_persistence(e)},e3.prototype.opt_out_tracking=function(e){(e=$.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ef,e),this._gdpr_update_persistence(e)},e3.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ep,e)},e3.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(eg,e)},e3.prototype.clear_opt_in_out_tracking=function(e){e=$.extend({enable_persistence:!0},e),this._gdpr_call_func(ey,e),this._gdpr_update_persistence(e)},e3.prototype.report_error=function(e,t){U.error.apply(U.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){U.error(e)}},e3.prototype.init=e3.prototype.init,e3.prototype.reset=e3.prototype.reset,e3.prototype.disable=e3.prototype.disable,e3.prototype.time_event=e3.prototype.time_event,e3.prototype.track=e3.prototype.track,e3.prototype.track_links=e3.prototype.track_links,e3.prototype.track_forms=e3.prototype.track_forms,e3.prototype.track_pageview=e3.prototype.track_pageview,e3.prototype.register=e3.prototype.register,e3.prototype.register_once=e3.prototype.register_once,e3.prototype.unregister=e3.prototype.unregister,e3.prototype.identify=e3.prototype.identify,e3.prototype.alias=e3.prototype.alias,e3.prototype.name_tag=e3.prototype.name_tag,e3.prototype.set_config=e3.prototype.set_config,e3.prototype.get_config=e3.prototype.get_config,e3.prototype.get_property=e3.prototype.get_property,e3.prototype.get_distinct_id=e3.prototype.get_distinct_id,e3.prototype.toString=e3.prototype.toString,e3.prototype.opt_out_tracking=e3.prototype.opt_out_tracking,e3.prototype.opt_in_tracking=e3.prototype.opt_in_tracking,e3.prototype.has_opted_out_tracking=e3.prototype.has_opted_out_tracking,e3.prototype.has_opted_in_tracking=e3.prototype.has_opted_in_tracking,e3.prototype.clear_opt_in_out_tracking=e3.prototype.clear_opt_in_out_tracking,e3.prototype.get_group=e3.prototype.get_group,e3.prototype.set_group=e3.prototype.set_group,e3.prototype.add_group=e3.prototype.add_group,e3.prototype.remove_group=e3.prototype.remove_group,e3.prototype.track_with_groups=e3.prototype.track_with_groups,e3.prototype.start_batch_senders=e3.prototype.start_batch_senders,e3.prototype.stop_batch_senders=e3.prototype.stop_batch_senders,eV.prototype.properties=eV.prototype.properties,eV.prototype.update_search_keyword=eV.prototype.update_search_keyword,eV.prototype.update_referrer_info=eV.prototype.update_referrer_info,eV.prototype.get_cross_subdomain=eV.prototype.get_cross_subdomain,eV.prototype.clear=eV.prototype.clear;var e8={},e9=function(){$.each(e8,function(e,t){t!==eK&&(b[t]=e)}),b._=$},e7=(v=0,(b=new e3).init=function(e,t,r){if(r)return b[r]||(b[r]=e8[r]=e5(e,t,r),b[r]._loaded()),b[r];var n=b;e8[eK]?n=e8[eK]:e&&((n=e5(e,t,eK))._loaded(),e8[eK]=n),b=n,1===v&&(m[eK]=b),e9()},b.init(),function(){function e(){e.done||(e.done=!0,e2=!0,eX=!1,$.each(e8,function(e){e._dom_loaded()}))}if(I.addEventListener)"complete"===I.readyState?e():I.addEventListener("DOMContentLoaded",e,!1);else if(I.attachEvent){I.attachEvent("onreadystatechange",e);var t=!1;try{t=null===m.frameElement}catch(e){}I.documentElement.doScroll&&t&&function t(){try{I.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}$.register_event(m,"load",e,!0)}(),b);e.exports=e7},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(85169)}])},46789:function(e,t,r){"use strict";r.d(t,{Z:function(){return t8}});var n,i={};r.r(i),r.d(i,{account:function(){return R},addressMetadata:function(){return U},addressProfileAPI:function(){return tO},addressVerification:function(){return B},adsBanner:function(){return V},adsText:function(){return K},beaconChain:function(){return Q},blockchainInteraction:function(){return er},bridgedTokens:function(){return X},csvExport:function(){return eo},dataAvailability:function(){return es},deFiDropdown:function(){return eu},faultProofSystem:function(){return eb},gasTracker:function(){return eC},getGasButton:function(){return eU},googleAnalytics:function(){return eq},graphqlApiDocs:function(){return eV},growthBook:function(){return eK},marketplace:function(){return eB},metasuites:function(){return eQ},mixpanel:function(){return e0},mudFramework:function(){return e2},multichainButton:function(){return e6},nameService:function(){return e9},publicTagsSubmission:function(){return tt},restApiDocs:function(){return ti},rollup:function(){return em},safe:function(){return ta},saveOnGas:function(){return tl},sentry:function(){return tp},sol2uml:function(){return tv},stats:function(){return tw},suave:function(){return t_},txInterpretation:function(){return tE},userOps:function(){return tT},validators:function(){return tj},verifiedTokens:function(){return j},web3Wallet:function(){return t$}});var o={};r.r(o),r.d(o,{address:function(){return tY},block:function(){return tJ},nft:function(){return tX},tx:function(){return t2}});var a=r(49066),s=r(32807),l=r(81109),c=r(34155);let u=e=>null==e?void 0:e.replaceAll("'",'"'),d=e=>{var t;let r=null!==(t=(0,s.Z)()?window.__envs:c.env)&&void 0!==t?t:{};if((0,s.Z)()&&"pw"===r.NEXT_PUBLIC_APP_INSTANCE){let t=localStorage.getItem(e);if("string"==typeof t)return t}return u(r[e])},h=e=>{try{return JSON.parse(e||"null")}catch(e){return null}},f=e=>{let t=d(e);if(t)return p(e,t)},p=(e,t)=>{try{let r=e.replace(/^NEXT_PUBLIC_/,"").replace(/_URL$/,"").toLowerCase(),n=function(e){try{var t;let r=new URL(e);return null===(t=r.pathname.match(l.w8))||void 0===t?void 0:t[1]}catch(t){return h(e)?"json":void 0}}(t);if(!n)throw Error("Cannot get file path");return"/assets/configs/".concat(r,".").concat(n)}catch(e){return}},g=d("NEXT_PUBLIC_API_HOST"),m=d("NEXT_PUBLIC_API_PROTOCOL")||"https",v=d("NEXT_PUBLIC_API_PORT"),b=[m||"https","://",g,v&&":"+v].filter(Boolean).join(""),y=[d("NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL")||"wss","://",g,v&&":"+v].filter(Boolean).join(""),w=Object.freeze({host:g,protocol:m,port:v,endpoint:b,socket:y,basePath:(0,a.Z)(d("NEXT_PUBLIC_API_BASE_PATH")||"")}),x=d("NEXT_PUBLIC_APP_PORT"),_=d("NEXT_PUBLIC_APP_PROTOCOL"),C=d("NEXT_PUBLIC_APP_HOST"),A=[_||"https","://",C,x&&":"+x].filter(Boolean).join(""),k=Object.freeze({isDev:"development"===d("NEXT_PUBLIC_APP_ENV"),protocol:_,host:C,port:x,baseUrl:A,useProxy:"true"===d("NEXT_PUBLIC_USE_NEXT_JS_PROXY")}),E=d("NEXT_PUBLIC_ROLLUP_TYPE"),S="arbitrum"===E?"posting":"zkEvm"===E?"sequencing":d("NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE")||"mining",T=Object.freeze({id:d("NEXT_PUBLIC_NETWORK_ID"),name:d("NEXT_PUBLIC_NETWORK_NAME"),shortName:d("NEXT_PUBLIC_NETWORK_SHORT_NAME"),currency:{name:d("NEXT_PUBLIC_NETWORK_CURRENCY_NAME"),weiName:d("NEXT_PUBLIC_NETWORK_CURRENCY_WEI_NAME"),symbol:d("NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL"),decimals:Number(d("NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS"))||18},secondaryCoin:{symbol:d("NEXT_PUBLIC_NETWORK_SECONDARY_COIN_SYMBOL")},hasMultipleGasCurrencies:"true"===d("NEXT_PUBLIC_NETWORK_MULTIPLE_GAS_CURRENCIES"),tokenStandard:d("NEXT_PUBLIC_NETWORK_TOKEN_STANDARD_NAME")||"ERC",rpcUrl:d("NEXT_PUBLIC_NETWORK_RPC_URL"),isTestnet:"true"===d("NEXT_PUBLIC_IS_TESTNET"),verificationType:S}),I=(0,a.Z)(d("NEXT_PUBLIC_AUTH_URL")||k.baseUrl),P=(()=>{try{let e=d("NEXT_PUBLIC_LOGOUT_URL"),t=d("NEXT_PUBLIC_AUTH0_CLIENT_ID");if(!e||!t)throw Error();let r=new URL(e);return r.searchParams.set("client_id",t),r.searchParams.set("returnTo",I+"/auth/logout"),r.toString()}catch(e){return}})(),O="My account";var R="true"===d("NEXT_PUBLIC_IS_ACCOUNT_SUPPORTED")&&I&&P?Object.freeze({title:O,isEnabled:!0,authUrl:I,logoutUrl:P}):Object.freeze({title:O,isEnabled:!1});let M=d("NEXT_PUBLIC_CONTRACT_INFO_API_HOST"),N="Verified tokens info";var j=M?Object.freeze({title:N,isEnabled:!0,api:{endpoint:M,basePath:""}}):Object.freeze({title:N,isEnabled:!1});let D=d("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST");var B=R.isEnabled&&j.isEnabled&&D?Object.freeze({title:'Address verification in "My account"',isEnabled:!0,api:{endpoint:D,basePath:""}}):Object.freeze({title:'Address verification in "My account"',isEnabled:!1});let L=d("NEXT_PUBLIC_METADATA_SERVICE_API_HOST"),$="Address metadata";var U=L?Object.freeze({title:$,isEnabled:!0,api:{endpoint:L,basePath:""}}):Object.freeze({title:$,isEnabled:!1});let z=["slise","adbutler","coinzilla","hype","none"],F=["coinzilla","none"],q=(()=>{let e=d("NEXT_PUBLIC_AD_BANNER_PROVIDER");return e&&z.includes(e)?e:"slise"})(),H=d("NEXT_PUBLIC_AD_BANNER_ADDITIONAL_PROVIDER"),W="Banner ads";var V=(()=>{if("adbutler"===q){let e=h(d("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP")),t=h(d("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE"));if(e&&t)return Object.freeze({title:W,isEnabled:!0,provider:q,adButler:{config:{desktop:e,mobile:t}}})}else if("none"!==q)return"adbutler"===H?Object.freeze({title:W,isEnabled:!0,provider:q,additionalProvider:H,adButler:{config:{desktop:h(d("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_DESKTOP")),mobile:h(d("NEXT_PUBLIC_AD_ADBUTLER_CONFIG_MOBILE"))}}}):Object.freeze({title:W,isEnabled:!0,provider:q});return Object.freeze({title:W,isEnabled:!1})})();let Z=(()=>{let e=d("NEXT_PUBLIC_AD_TEXT_PROVIDER");return e&&F.includes(e)?e:"coinzilla"})(),G="Text ads";var K="none"!==Z?Object.freeze({title:G,isEnabled:!0,provider:Z}):Object.freeze({title:G,isEnabled:!1});let Y="Beacon chain";var Q="true"===d("NEXT_PUBLIC_HAS_BEACON_CHAIN")?Object.freeze({title:Y,isEnabled:!0,currency:{symbol:d("NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL")||d("NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL")||""}}):Object.freeze({title:Y,isEnabled:!1});let J="Bridged tokens";var X=(()=>{let e=h(d("NEXT_PUBLIC_BRIDGED_TOKENS_CHAINS")),t=h(d("NEXT_PUBLIC_BRIDGED_TOKENS_BRIDGES"));return e&&e.length>0&&t&&t.length>0?Object.freeze({title:J,isEnabled:!0,chains:e,bridges:t}):Object.freeze({title:J,isEnabled:!1})})();let ee=d("NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID"),et="Blockchain interaction (writing to contract, etc.)";var er=T.id&&T.name&&T.currency.name&&T.currency.symbol&&T.currency.decimals&&T.rpcUrl&&ee?Object.freeze({title:et,isEnabled:!0,walletConnect:{projectId:ee}}):Object.freeze({title:et,isEnabled:!1}),en=Object.freeze({reCaptcha:{siteKey:d("NEXT_PUBLIC_RE_CAPTCHA_APP_SITE_KEY")}});let ei="Export data to CSV file";var eo=en.reCaptcha.siteKey?Object.freeze({title:ei,isEnabled:!0,reCaptcha:{siteKey:en.reCaptcha.siteKey}}):Object.freeze({title:ei,isEnabled:!1});let ea="Data availability";var es="true"===d("NEXT_PUBLIC_DATA_AVAILABILITY_ENABLED")?Object.freeze({title:ea,isEnabled:!0}):Object.freeze({title:ea,isEnabled:!1});let el=h(d("NEXT_PUBLIC_DEFI_DROPDOWN_ITEMS"))||[],ec="DeFi dropdown";var eu=el.length>0?Object.freeze({title:ec,isEnabled:!0,items:el}):Object.freeze({title:ec,isEnabled:!1});let ed=["optimistic","arbitrum","shibarium","zkEvm","zkSync"],eh=(()=>{let e=d("NEXT_PUBLIC_ROLLUP_TYPE");return ed.find(t=>t===e)})(),ef=d("NEXT_PUBLIC_ROLLUP_L1_BASE_URL"),ep=d("NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL"),eg="Rollup (L2) chain";var em=eh&&ef?Object.freeze({title:eg,isEnabled:!0,type:eh,L1BaseUrl:(0,a.Z)(ef),L2WithdrawalUrl:ep}):Object.freeze({title:eg,isEnabled:!1});let ev="Fault proof system";var eb=em.isEnabled&&"optimistic"===em.type&&"true"===d("NEXT_PUBLIC_FAULT_PROOF_ENABLED")?Object.freeze({title:ev,isEnabled:!0}):Object.freeze({title:ev,isEnabled:!1});let ey=["usd","gwei"],ew="false"===d("NEXT_PUBLIC_GAS_TRACKER_ENABLED"),ex=(()=>{var e;let t=d("NEXT_PUBLIC_GAS_TRACKER_UNITS");return t?(null===(e=h(t))||void 0===e?void 0:e.filter(e=>ey.includes(e)))||[]:["usd","gwei"]})(),e_="Gas tracker";var eC=!ew&&ex.length>0?Object.freeze({title:e_,isEnabled:!0,units:ex}):Object.freeze({title:e_,isEnabled:!1});let eA=d("NEXT_PUBLIC_MARKETPLACE_ENABLED"),ek=f("NEXT_PUBLIC_MARKETPLACE_CONFIG_URL"),eE=d("NEXT_PUBLIC_MARKETPLACE_SUBMIT_FORM"),eS=d("NEXT_PUBLIC_MARKETPLACE_SUGGEST_IDEAS_FORM"),eT=f("NEXT_PUBLIC_MARKETPLACE_CATEGORIES_URL"),eI=d("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST"),eP=f("NEXT_PUBLIC_MARKETPLACE_SECURITY_REPORTS_URL"),eO=d("NEXT_PUBLIC_MARKETPLACE_FEATURED_APP"),eR=f("NEXT_PUBLIC_MARKETPLACE_BANNER_CONTENT_URL"),eM=d("NEXT_PUBLIC_MARKETPLACE_BANNER_LINK_URL"),eN=d("NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_API_KEY"),ej=d("NEXT_PUBLIC_MARKETPLACE_RATING_AIRTABLE_BASE_ID"),eD="Marketplace";var eB=(()=>{if("true"===eA&&T.rpcUrl&&eE){let e={submitFormUrl:eE,categoriesUrl:eT,suggestIdeasFormUrl:eS,securityReportsUrl:eP,featuredApp:eO,banner:eR&&eM?{contentUrl:eR,linkUrl:eM}:void 0,rating:eN&&ej?{airtableApiKey:eN,airtableBaseId:ej}:void 0};if(ek)return Object.freeze({title:eD,isEnabled:!0,configUrl:ek,...e});if(eI)return Object.freeze({title:eD,isEnabled:!0,api:{endpoint:eI,basePath:""},...e})}return Object.freeze({title:eD,isEnabled:!1})})();let eL=h(d("NEXT_PUBLIC_GAS_REFUEL_PROVIDER_CONFIG")),e$="Get gas button";var eU=eL?Object.freeze({title:e$,isEnabled:!0,name:eL.name,logoUrl:eL.logo,url:eL.url_template.replace("{chainId}",T.id||""),dappId:eB.isEnabled?eL.dapp_id:void 0}):Object.freeze({title:e$,isEnabled:!1});let ez=d("NEXT_PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID"),eF="Google analytics";var eq=ez?Object.freeze({title:eF,isEnabled:!0,propertyId:ez}):Object.freeze({title:eF,isEnabled:!1});let eH=d("NEXT_PUBLIC_GRAPHIQL_TRANSACTION"),eW="GraphQL API documentation";var eV="none"===eH?Object.freeze({title:eW,isEnabled:!1}):Object.freeze({title:eW,isEnabled:!0,defaultTxHash:eH});let eZ=d("NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY"),eG="GrowthBook feature flagging and A/B testing";var eK=eZ?Object.freeze({title:eG,isEnabled:!0,clientKey:eZ}):Object.freeze({title:eG,isEnabled:!1});let eY="MetaSuites extension";var eQ="true"===d("NEXT_PUBLIC_METASUITES_ENABLED")?Object.freeze({title:eY,isEnabled:!0}):Object.freeze({title:eY,isEnabled:!1});let eJ=d("NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN"),eX="Mixpanel analytics";var e0=eJ?Object.freeze({title:eX,isEnabled:!0,projectToken:eJ}):Object.freeze({title:eX,isEnabled:!1});let e1="MUD framework";var e2=em.isEnabled&&"optimistic"===em.type&&"true"===d("NEXT_PUBLIC_HAS_MUD_FRAMEWORK")?Object.freeze({title:e1,isEnabled:!0}):Object.freeze({title:e1,isEnabled:!1});let e3=h(d("NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG")),e5="Multichain balance";var e6=e3?Object.freeze({title:e5,isEnabled:!0,name:e3.name,logoUrl:e3.logo,urlTemplate:e3.url_template,dappId:eB.isEnabled?e3.dapp_id:void 0}):Object.freeze({title:e5,isEnabled:!1});let e4=d("NEXT_PUBLIC_NAME_SERVICE_API_HOST"),e8="Name service integration";var e9=e4?Object.freeze({title:e8,isEnabled:!0,api:{endpoint:e4,basePath:""}}):Object.freeze({title:e8,isEnabled:!1});let e7=d("NEXT_PUBLIC_ADMIN_SERVICE_API_HOST"),te="Public tag submission";var tt=en.reCaptcha.siteKey&&U.isEnabled&&e7?Object.freeze({title:te,isEnabled:!0,api:{endpoint:e7,basePath:""}}):Object.freeze({title:te,isEnabled:!1});let tr=d("NEXT_PUBLIC_API_SPEC_URL"),tn="REST API documentation";var ti="none"===tr?Object.freeze({title:tn,isEnabled:!1}):Object.freeze({title:tn,isEnabled:!0,specUrl:tr||"https://raw.githubusercontent.com/blockscout/blockscout-api-v2-swagger/main/swagger.yaml"});let to="Safe address tags";var ta=(()=>{let e=function(){try{let e=d("NEXT_PUBLIC_SAFE_TX_SERVICE_URL");return new URL("/api/v1/safes",e).toString()}catch(e){return}}();return e?Object.freeze({title:to,isEnabled:!0,apiUrl:e}):Object.freeze({title:to,isEnabled:!1})})();let ts="Save on gas with GasHawk";var tl="true"===d("NEXT_PUBLIC_SAVE_ON_GAS_ENABLED")&&eB.isEnabled?Object.freeze({title:ts,isEnabled:!0,apiUrlTemplate:"https://core.gashawk.io/apiv2/stats/address/<address>/savingsPotential/0x1"}):Object.freeze({title:ts,isEnabled:!1});let tc=d("NEXT_PUBLIC_SENTRY_DSN"),tu=d("NEXT_PUBLIC_APP_INSTANCE")||(null===(n=k.host)||void 0===n?void 0:n.replace(".blockscout.com","").replaceAll("-","_")),td=d("NEXT_PUBLIC_APP_ENV")||"production",th=d("NEXT_PUBLIC_GIT_TAG"),tf="Sentry error monitoring";var tp=tc&&tu&&td?Object.freeze({title:tf,isEnabled:!0,dsn:tc,instance:tu,release:th,environment:td,enableTracing:"true"===d("NEXT_PUBLIC_SENTRY_ENABLE_TRACING")}):Object.freeze({title:tf,isEnabled:!1});let tg=d("NEXT_PUBLIC_VISUALIZE_API_HOST"),tm="Solidity to UML diagrams";var tv=tg?Object.freeze({title:tm,isEnabled:!0,api:{endpoint:tg,basePath:(0,a.Z)(d("NEXT_PUBLIC_VISUALIZE_API_BASE_PATH")||"")}}):Object.freeze({title:tm,isEnabled:!1});let tb=d("NEXT_PUBLIC_STATS_API_HOST"),ty="Blockchain statistics";var tw=tb?Object.freeze({title:ty,isEnabled:!0,api:{endpoint:tb,basePath:(0,a.Z)(d("NEXT_PUBLIC_STATS_API_BASE_PATH")||"")}}):Object.freeze({title:ty,isEnabled:!1});let tx="SUAVE chain";var t_="true"===d("NEXT_PUBLIC_IS_SUAVE_CHAIN")?Object.freeze({title:tx,isEnabled:!0}):Object.freeze({title:tx,isEnabled:!1});let tC=["blockscout","noves","none"],tA="Transaction interpretation",tk=(()=>{let e=d("NEXT_PUBLIC_TRANSACTION_INTERPRETATION_PROVIDER");return e&&tC.includes(e)?e:"none"})();var tE="none"!==tk?Object.freeze({title:tA,provider:tk,isEnabled:!0}):Object.freeze({title:tA,isEnabled:!1});let tS="User operations";var tT="true"===d("NEXT_PUBLIC_HAS_USER_OPS")?Object.freeze({title:tS,isEnabled:!0}):Object.freeze({title:tS,isEnabled:!1});let tI=h(d("NEXT_PUBLIC_ADDRESS_USERNAME_TAG")),tP="User profile API";var tO=tI&&function(e){try{let t=e.replace("{address}","0x0000000000000000000000000000000000000000");return new URL(t).toString(),!0}catch(e){return!1}}(tI.api_url_template)?Object.freeze({title:tP,isEnabled:!0,apiUrlTemplate:tI.api_url_template,tagLinkTemplate:tI.tag_link_template,tagIcon:tI.tag_icon,tagBgColor:tI.tag_bg_color,tagTextColor:tI.tag_text_color}):Object.freeze({title:tP,isEnabled:!1});let tR=["stability","blackfort"],tM=(()=>{let e=d("NEXT_PUBLIC_VALIDATORS_CHAIN_TYPE");return e&&tR.includes(e)?e:void 0})(),tN="Validators list";var tj=tM?Object.freeze({title:tN,isEnabled:!0,chainType:tM}):Object.freeze({title:tN,isEnabled:!1});let tD=["metamask","coinbase","token_pocket"],tB=(()=>{var e;let t=d("NEXT_PUBLIC_WEB3_WALLETS");if("none"===t)return;let r=null===(e=h(t))||void 0===e?void 0:e.filter(e=>tD.includes(e));return r&&0!==r.length?r:["metamask"]})(),tL="Web3 wallet integration (add token or network to the wallet)";var t$=tB&&tB.length>0?Object.freeze({title:tL,isEnabled:!0,wallets:tB,addToken:{isDisabled:"true"===d("NEXT_PUBLIC_WEB3_DISABLE_ADD_TOKEN_TO_WALLET")},addNetwork:{}}):Object.freeze({title:tL,isEnabled:!1});let tU=Object.freeze({promoteBlockscoutInTitle:"false"!==d("NEXT_PUBLIC_PROMOTE_BLOCKSCOUT_IN_TITLE"),og:{description:d("NEXT_PUBLIC_OG_DESCRIPTION")||"",imageUrl:k.baseUrl+(f("NEXT_PUBLIC_OG_IMAGE_URL")||"/static/og_placeholder.png"),enhancedDataEnabled:"true"===d("NEXT_PUBLIC_OG_ENHANCED_DATA_ENABLED")},seo:{enhancedDataEnabled:"true"===d("NEXT_PUBLIC_SEO_ENHANCED_DATA_ENABLED")}}),tz=["rpc_api","eth_rpc_api"],tF=["latest_batch","total_blocks","average_block_time","total_txs","latest_l1_state_batch","wallet_addresses","gas_tracker","btc_locked","current_epoch"];var tq=r(24299);let tH=["solidity-hardhat","solidity-foundry"],tW=["github","jazzicon","gradient_avatar","blockie"],tV=["top_accounts"],tZ=(()=>{let e=d("NEXT_PUBLIC_VIEWS_ADDRESS_IDENTICON_TYPE");return tW.find(t=>e===t)||"jazzicon"})(),tG=(()=>{let e=h(d("NEXT_PUBLIC_VIEWS_ADDRESS_HIDDEN_VIEWS"))||[];if(Array.isArray(e))return tV.reduce((t,r)=>(t[r]=e.includes(r),t),{})})(),tK=(()=>{let e=d("NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODS");if("none"===e)return[];if(!e)return tH;let t=h(d("NEXT_PUBLIC_VIEWS_CONTRACT_EXTRA_VERIFICATION_METHODS"))||[];return tH.filter(e=>t.includes(e))})();var tY=Object.freeze({identiconType:tZ,hiddenViews:tG,solidityscanEnabled:"true"===d("NEXT_PUBLIC_VIEWS_CONTRACT_SOLIDITYSCAN_ENABLED"),extraVerificationMethods:tK});let tQ=["burnt_fees","total_reward","nonce","miner","L1_status","batch"];var tJ=Object.freeze({hiddenFields:(()=>{let e=h(d("NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS"))||[];if(Array.isArray(e))return tQ.reduce((t,r)=>(t[r]=e.includes(r),t),{})})()}),tX=Object.freeze({marketplaces:h(d("NEXT_PUBLIC_VIEWS_NFT_MARKETPLACES"))||[]});let t0=["value","fee_currency","gas_price","tx_fee","gas_fees","burnt_fees","L1_status","batch"],t1=["fee_per_gas"];var t2=Object.freeze({hiddenFields:(()=>{let e=h(d("NEXT_PUBLIC_VIEWS_TX_HIDDEN_FIELDS"))||[];if(Array.isArray(e))return t0.reduce((t,r)=>(t[r]=e.includes(r),t),{})})(),additionalFields:(()=>{let e=h(d("NEXT_PUBLIC_VIEWS_TX_ADDITIONAL_FIELDS"))||[];if(Array.isArray(e))return t1.reduce((t,r)=>(t[r]=e.includes(r),t),{})})()});let t3=(()=>{let e=h(d("NEXT_PUBLIC_NAVIGATION_HIDDEN_LINKS"))||[];if(Array.isArray(e))return tz.reduce((t,r)=>(t[r]=e.includes(r),t),{})})(),t5=(()=>{let e=h(d("NEXT_PUBLIC_HOMEPAGE_STATS"));return Array.isArray(e)?e.filter(e=>tF.includes(e)):em.isEnabled&&["zkEvm","zkSync","arbitrum"].includes(em.type)?["latest_batch","average_block_time","total_txs","wallet_addresses","gas_tracker"]:["total_blocks","average_block_time","total_txs","wallet_addresses","gas_tracker"]})(),t6=(()=>{let e=h(d("NEXT_PUBLIC_NAVIGATION_HIGHLIGHTED_ROUTES"));return Array.isArray(e)?e:[]})(),t4=(()=>{let e=d("NEXT_PUBLIC_COLOR_THEME_DEFAULT");return tq.M.find(t=>t.id===e)})();var t8=Object.freeze({app:k,chain:T,api:w,UI:Object.freeze({navigation:{logo:{default:f("NEXT_PUBLIC_NETWORK_LOGO"),dark:f("NEXT_PUBLIC_NETWORK_LOGO_DARK")},icon:{default:f("NEXT_PUBLIC_NETWORK_ICON"),dark:f("NEXT_PUBLIC_NETWORK_ICON_DARK")},hiddenLinks:t3,highlightedRoutes:t6,otherLinks:h(d("NEXT_PUBLIC_OTHER_LINKS"))||[],featuredNetworks:f("NEXT_PUBLIC_FEATURED_NETWORKS"),layout:d("NEXT_PUBLIC_NAVIGATION_LAYOUT")||"vertical"},footer:{links:f("NEXT_PUBLIC_FOOTER_LINKS"),frontendVersion:d("NEXT_PUBLIC_GIT_TAG"),frontendCommit:d("NEXT_PUBLIC_GIT_COMMIT_SHA")},homepage:{charts:h(d("NEXT_PUBLIC_HOMEPAGE_CHARTS"))||[],stats:t5,heroBanner:h(d("NEXT_PUBLIC_HOMEPAGE_HERO_BANNER_CONFIG")),plate:{background:d("NEXT_PUBLIC_HOMEPAGE_PLATE_BACKGROUND"),textColor:d("NEXT_PUBLIC_HOMEPAGE_PLATE_TEXT_COLOR")}},views:o,indexingAlert:{blocks:{isHidden:"true"===d("NEXT_PUBLIC_HIDE_INDEXING_ALERT_BLOCKS")},intTxs:{isHidden:"true"===d("NEXT_PUBLIC_HIDE_INDEXING_ALERT_INT_TXS")}},maintenanceAlert:{message:d("NEXT_PUBLIC_MAINTENANCE_ALERT_MESSAGE")},explorers:{items:h(d("NEXT_PUBLIC_NETWORK_EXPLORERS"))||[]},ides:{items:h(d("NEXT_PUBLIC_CONTRACT_CODE_IDES"))||[]},hasContractAuditReports:"true"===d("NEXT_PUBLIC_HAS_CONTRACT_AUDIT_REPORTS"),colorTheme:{default:t4},fonts:{heading:h(d("NEXT_PUBLIC_FONT_FAMILY_HEADING")),body:h(d("NEXT_PUBLIC_FONT_FAMILY_BODY"))},maxContentWidth:"false"!==d("NEXT_PUBLIC_MAX_CONTENT_WIDTH_ENABLED")}),features:i,services:en,meta:tU})},48688:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(16305),i=r(46789),o=r(52272),a=r(78069);function s(e,t,r,s){let l=a.rP[e],c=!s&&(0,o.Z)()?i.Z.app.baseUrl:l.endpoint||i.Z.api.endpoint,u=void 0!==l.basePath?l.basePath:i.Z.api.basePath,d=!s&&(0,o.Z)()?"/node-api/proxy"+u+l.path:u+l.path,h=new URL((0,n.compile)(d)(t),c);return r&&Object.entries(r).forEach(e=>{let[t,r]=e;void 0!==r&&""!==r&&h.searchParams.append(t,String(r))}),h.toString()}},82429:function(e,t,r){"use strict";function n(e){return e&&!["GET","HEAD"].includes(e)}r.d(t,{Z:function(){return n}})},52272:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(46789);function i(){return!!n.Z.app.useProxy||"localhost"===n.Z.app.host&&n.Z.app.host!==n.Z.api.host}},78069:function(e,t,r){"use strict";r.d(t,{rP:function(){return V},Qd:function(){return W},Ni:function(){return Z}});let n=e=>e.isEnabled?e:void 0;var i,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,C,A,k,E,S,T,I,P,O,R,M,N,j,D,B,L,$,U,z,F=r(46789);let q=n(F.Z.features.marketplace),H=q&&"api"in q?q.api:void 0,W=["sort","order"],V={csrf:{path:"/api/account/v2/get_csrf"},user_info:{path:"/api/account/v2/user/info"},email_resend:{path:"/api/account/v2/email/resend"},custom_abi:{path:"/api/account/v2/user/custom_abis{/:id}",pathParams:["id"]},watchlist:{path:"/api/account/v2/user/watchlist{/:id}",pathParams:["id"],filterFields:[]},private_tags_address:{path:"/api/account/v2/user/tags/address{/:id}",pathParams:["id"],filterFields:[]},private_tags_tx:{path:"/api/account/v2/user/tags/transaction{/:id}",pathParams:["id"],filterFields:[]},api_keys:{path:"/api/account/v2/user/api_keys{/:id}",pathParams:["id"]},address_verification:{path:"/api/v1/chains/:chainId/verified-addresses:type",pathParams:["chainId","type"],endpoint:null===(i=n(F.Z.features.verifiedTokens))||void 0===i?void 0:i.api.endpoint,basePath:null===(o=n(F.Z.features.verifiedTokens))||void 0===o?void 0:o.api.basePath,needAuth:!0},verified_addresses:{path:"/api/v1/chains/:chainId/verified-addresses",pathParams:["chainId"],endpoint:null===(a=n(F.Z.features.verifiedTokens))||void 0===a?void 0:a.api.endpoint,basePath:null===(s=n(F.Z.features.verifiedTokens))||void 0===s?void 0:s.api.basePath,needAuth:!0},token_info_applications_config:{path:"/api/v1/chains/:chainId/token-info-submissions/selectors",pathParams:["chainId"],endpoint:null===(l=n(F.Z.features.addressVerification))||void 0===l?void 0:l.api.endpoint,basePath:null===(c=n(F.Z.features.addressVerification))||void 0===c?void 0:c.api.basePath,needAuth:!0},token_info_applications:{path:"/api/v1/chains/:chainId/token-info-submissions{/:id}",pathParams:["chainId","id"],endpoint:null===(u=n(F.Z.features.addressVerification))||void 0===u?void 0:u.api.endpoint,basePath:null===(d=n(F.Z.features.addressVerification))||void 0===d?void 0:d.api.basePath,needAuth:!0},stats_counters:{path:"/api/v1/counters",endpoint:null===(h=n(F.Z.features.stats))||void 0===h?void 0:h.api.endpoint,basePath:null===(f=n(F.Z.features.stats))||void 0===f?void 0:f.api.basePath},stats_lines:{path:"/api/v1/lines",endpoint:null===(p=n(F.Z.features.stats))||void 0===p?void 0:p.api.endpoint,basePath:null===(g=n(F.Z.features.stats))||void 0===g?void 0:g.api.basePath},stats_line:{path:"/api/v1/lines/:id",pathParams:["id"],endpoint:null===(m=n(F.Z.features.stats))||void 0===m?void 0:m.api.endpoint,basePath:null===(v=n(F.Z.features.stats))||void 0===v?void 0:v.api.basePath},addresses_lookup:{path:"/api/v1/:chainId/addresses\\:lookup",pathParams:["chainId"],endpoint:null===(b=n(F.Z.features.nameService))||void 0===b?void 0:b.api.endpoint,basePath:null===(y=n(F.Z.features.nameService))||void 0===y?void 0:y.api.basePath,filterFields:["address","resolved_to","owned_by","only_active","protocols"]},address_domain:{path:"/api/v1/:chainId/addresses/:address",pathParams:["chainId","address"],endpoint:null===(w=n(F.Z.features.nameService))||void 0===w?void 0:w.api.endpoint,basePath:null===(x=n(F.Z.features.nameService))||void 0===x?void 0:x.api.basePath},domain_info:{path:"/api/v1/:chainId/domains/:name",pathParams:["chainId","name"],endpoint:null===(_=n(F.Z.features.nameService))||void 0===_?void 0:_.api.endpoint,basePath:null===(C=n(F.Z.features.nameService))||void 0===C?void 0:C.api.basePath},domain_events:{path:"/api/v1/:chainId/domains/:name/events",pathParams:["chainId","name"],endpoint:null===(A=n(F.Z.features.nameService))||void 0===A?void 0:A.api.endpoint,basePath:null===(k=n(F.Z.features.nameService))||void 0===k?void 0:k.api.basePath},domains_lookup:{path:"/api/v1/:chainId/domains\\:lookup",pathParams:["chainId"],endpoint:null===(E=n(F.Z.features.nameService))||void 0===E?void 0:E.api.endpoint,basePath:null===(S=n(F.Z.features.nameService))||void 0===S?void 0:S.api.basePath,filterFields:["name","only_active","protocols"]},domain_protocols:{path:"/api/v1/:chainId/protocols",pathParams:["chainId"],endpoint:null===(T=n(F.Z.features.nameService))||void 0===T?void 0:T.api.endpoint,basePath:null===(I=n(F.Z.features.nameService))||void 0===I?void 0:I.api.basePath},address_metadata_info:{path:"/api/v1/metadata",endpoint:null===(P=n(F.Z.features.addressMetadata))||void 0===P?void 0:P.api.endpoint,basePath:null===(O=n(F.Z.features.addressMetadata))||void 0===O?void 0:O.api.basePath},address_metadata_tag_search:{path:"/api/v1/tags:search",endpoint:null===(R=n(F.Z.features.addressMetadata))||void 0===R?void 0:R.api.endpoint,basePath:null===(M=n(F.Z.features.addressMetadata))||void 0===M?void 0:M.api.basePath},address_metadata_tag_types:{path:"/api/v1/public-tag-types",endpoint:null===(N=n(F.Z.features.addressMetadata))||void 0===N?void 0:N.api.endpoint,basePath:null===(j=n(F.Z.features.addressMetadata))||void 0===j?void 0:j.api.basePath},public_tag_application:{path:"/api/v1/chains/:chainId/metadata-submissions/tag",pathParams:["chainId"],endpoint:null===(D=n(F.Z.features.publicTagsSubmission))||void 0===D?void 0:D.api.endpoint,basePath:null===(B=n(F.Z.features.publicTagsSubmission))||void 0===B?void 0:B.api.basePath},visualize_sol2uml:{path:"/api/v1/solidity\\:visualize-contracts",endpoint:null===(L=n(F.Z.features.sol2uml))||void 0===L?void 0:L.api.endpoint,basePath:null===($=n(F.Z.features.sol2uml))||void 0===$?void 0:$.api.basePath},marketplace_dapps:{path:"/api/v1/chains/:chainId/marketplace/dapps",pathParams:["chainId"],endpoint:null==H?void 0:H.endpoint,basePath:null==H?void 0:H.basePath},marketplace_dapp:{path:"/api/v1/chains/:chainId/marketplace/dapps/:dappId",pathParams:["chainId","dappId"],endpoint:null==H?void 0:H.endpoint,basePath:null==H?void 0:H.basePath},blocks:{path:"/api/v2/blocks",filterFields:["type"]},block:{path:"/api/v2/blocks/:height_or_hash",pathParams:["height_or_hash"]},block_txs:{path:"/api/v2/blocks/:height_or_hash/transactions",pathParams:["height_or_hash"],filterFields:["type"]},block_withdrawals:{path:"/api/v2/blocks/:height_or_hash/withdrawals",pathParams:["height_or_hash"],filterFields:[]},block_epoch:{path:"/api/v2/blocks/:height_or_hash/epoch",pathParams:["height_or_hash"],filterFields:[]},block_election_rewards:{path:"/api/v2/blocks/:height_or_hash/election-rewards/:reward_type",pathParams:["height_or_hash","reward_type"],filterFields:[]},txs_stats:{path:"/api/v2/transactions/stats"},txs_validated:{path:"/api/v2/transactions",filterFields:["filter","type","method"]},txs_pending:{path:"/api/v2/transactions",filterFields:["filter","type","method"]},txs_with_blobs:{path:"/api/v2/transactions",filterFields:["type"]},txs_watchlist:{path:"/api/v2/transactions/watchlist",filterFields:[]},txs_execution_node:{path:"/api/v2/transactions/execution-node/:hash",pathParams:["hash"],filterFields:[]},tx:{path:"/api/v2/transactions/:hash",pathParams:["hash"]},tx_internal_txs:{path:"/api/v2/transactions/:hash/internal-transactions",pathParams:["hash"],filterFields:[]},tx_logs:{path:"/api/v2/transactions/:hash/logs",pathParams:["hash"],filterFields:[]},tx_token_transfers:{path:"/api/v2/transactions/:hash/token-transfers",pathParams:["hash"],filterFields:["type"]},tx_raw_trace:{path:"/api/v2/transactions/:hash/raw-trace",pathParams:["hash"]},tx_state_changes:{path:"/api/v2/transactions/:hash/state-changes",pathParams:["hash"],filterFields:[]},tx_blobs:{path:"/api/v2/transactions/:hash/blobs",pathParams:["hash"]},tx_interpretation:{path:"/api/v2/transactions/:hash/summary",pathParams:["hash"]},withdrawals:{path:"/api/v2/withdrawals",filterFields:[]},withdrawals_counters:{path:"/api/v2/withdrawals/counters"},addresses:{path:"/api/v2/addresses/",filterFields:[]},addresses_metadata_search:{path:"/api/v2/proxy/metadata/addresses",filterFields:["slug","tag_type"]},address:{path:"/api/v2/addresses/:hash",pathParams:["hash"]},address_counters:{path:"/api/v2/addresses/:hash/counters",pathParams:["hash"]},address_tabs_counters:{path:"/api/v2/addresses/:hash/tabs-counters",pathParams:["hash"]},address_txs:{path:"/api/v2/addresses/:hash/transactions",pathParams:["hash"],filterFields:["filter"]},address_internal_txs:{path:"/api/v2/addresses/:hash/internal-transactions",pathParams:["hash"],filterFields:["filter"]},address_token_transfers:{path:"/api/v2/addresses/:hash/token-transfers",pathParams:["hash"],filterFields:["filter","type","token"]},address_blocks_validated:{path:"/api/v2/addresses/:hash/blocks-validated",pathParams:["hash"],filterFields:[]},address_coin_balance:{path:"/api/v2/addresses/:hash/coin-balance-history",pathParams:["hash"],filterFields:[]},address_coin_balance_chart:{path:"/api/v2/addresses/:hash/coin-balance-history-by-day",pathParams:["hash"]},address_logs:{path:"/api/v2/addresses/:hash/logs",pathParams:["hash"],filterFields:[]},address_tokens:{path:"/api/v2/addresses/:hash/tokens",pathParams:["hash"],filterFields:["type"]},address_nfts:{path:"/api/v2/addresses/:hash/nft",pathParams:["hash"],filterFields:["type"]},address_collections:{path:"/api/v2/addresses/:hash/nft/collections",pathParams:["hash"],filterFields:["type"]},address_withdrawals:{path:"/api/v2/addresses/:hash/withdrawals",pathParams:["hash"],filterFields:[]},contract:{path:"/api/v2/smart-contracts/:hash",pathParams:["hash"]},contract_verification_config:{path:"/api/v2/smart-contracts/verification/config"},contract_verification_via:{path:"/api/v2/smart-contracts/:hash/verification/via/:method",pathParams:["hash","method"]},contract_solidity_scan_report:{path:"/api/v2/smart-contracts/:hash/solidityscan-report",pathParams:["hash"]},contract_security_audits:{path:"/api/v2/smart-contracts/:hash/audit-reports",pathParams:["hash"]},verified_contracts:{path:"/api/v2/smart-contracts",filterFields:["q","filter"]},verified_contracts_counters:{path:"/api/v2/smart-contracts/counters"},token:{path:"/api/v2/tokens/:hash",pathParams:["hash"]},token_verified_info:{path:"/api/v1/chains/:chainId/token-infos/:hash",pathParams:["chainId","hash"],endpoint:null===(U=n(F.Z.features.verifiedTokens))||void 0===U?void 0:U.api.endpoint,basePath:null===(z=n(F.Z.features.verifiedTokens))||void 0===z?void 0:z.api.basePath},token_counters:{path:"/api/v2/tokens/:hash/counters",pathParams:["hash"]},token_holders:{path:"/api/v2/tokens/:hash/holders",pathParams:["hash"],filterFields:[]},token_transfers:{path:"/api/v2/tokens/:hash/transfers",pathParams:["hash"],filterFields:[]},token_inventory:{path:"/api/v2/tokens/:hash/instances",pathParams:["hash"],filterFields:["holder_address_hash"]},tokens:{path:"/api/v2/tokens",filterFields:["q","type"]},tokens_bridged:{path:"/api/v2/tokens/bridged",filterFields:["q","chain_ids"]},token_instance:{path:"/api/v2/tokens/:hash/instances/:id",pathParams:["hash","id"]},token_instance_transfers_count:{path:"/api/v2/tokens/:hash/instances/:id/transfers-count",pathParams:["hash","id"]},token_instance_transfers:{path:"/api/v2/tokens/:hash/instances/:id/transfers",pathParams:["hash","id"],filterFields:[]},token_instance_holders:{path:"/api/v2/tokens/:hash/instances/:id/holders",pathParams:["hash","id"],filterFields:[]},token_instance_refresh_metadata:{path:"/api/v2/tokens/:hash/instances/:id/refetch-metadata",pathParams:["hash","id"],filterFields:[]},stats:{path:"/api/v2/stats",headers:{"updated-gas-oracle":"true"}},stats_charts_txs:{path:"/api/v2/stats/charts/transactions"},stats_charts_market:{path:"/api/v2/stats/charts/market"},stats_charts_secondary_coin_price:{path:"/api/v2/stats/charts/secondary-coin-market"},homepage_blocks:{path:"/api/v2/main-page/blocks"},homepage_optimistic_deposits:{path:"/api/v2/main-page/optimism-deposits"},homepage_arbitrum_deposits:{path:"/api/v2/main-page/arbitrum/messages/to-rollup"},homepage_txs:{path:"/api/v2/main-page/transactions"},homepage_zkevm_l2_batches:{path:"/api/v2/main-page/zkevm/batches/confirmed"},homepage_arbitrum_l2_batches:{path:"/api/v2/main-page/arbitrum/batches/committed"},homepage_txs_watchlist:{path:"/api/v2/main-page/transactions/watchlist"},homepage_indexing_status:{path:"/api/v2/main-page/indexing-status"},homepage_zkevm_latest_batch:{path:"/api/v2/main-page/zkevm/batches/latest-number"},homepage_zksync_latest_batch:{path:"/api/v2/main-page/zksync/batches/latest-number"},homepage_arbitrum_latest_batch:{path:"/api/v2/main-page/arbitrum/batches/latest-number"},quick_search:{path:"/api/v2/search/quick",filterFields:["q"]},search:{path:"/api/v2/search",filterFields:["q"]},search_check_redirect:{path:"/api/v2/search/check-redirect"},optimistic_l2_deposits:{path:"/api/v2/optimism/deposits",filterFields:[]},optimistic_l2_deposits_count:{path:"/api/v2/optimism/deposits/count"},optimistic_l2_withdrawals:{path:"/api/v2/optimism/withdrawals",filterFields:[]},optimistic_l2_withdrawals_count:{path:"/api/v2/optimism/withdrawals/count"},optimistic_l2_output_roots:{path:"/api/v2/optimism/output-roots",filterFields:[]},optimistic_l2_output_roots_count:{path:"/api/v2/optimism/output-roots/count"},optimistic_l2_txn_batches:{path:"/api/v2/optimism/batches",filterFields:[]},optimistic_l2_txn_batches_count:{path:"/api/v2/optimism/batches/count"},optimistic_l2_txn_batch:{path:"/api/v2/optimism/batches/:number",pathParams:["number"]},optimistic_l2_txn_batch_txs:{path:"/api/v2/transactions/optimism-batch/:number",pathParams:["number"],filterFields:[]},optimistic_l2_txn_batch_blocks:{path:"/api/v2/blocks/optimism-batch/:number",pathParams:["number"],filterFields:[]},optimistic_l2_dispute_games:{path:"/api/v2/optimism/games",filterFields:[]},optimistic_l2_dispute_games_count:{path:"/api/v2/optimism/games/count"},mud_worlds:{path:"/api/v2/mud/worlds",filterFields:[]},address_mud_tables:{path:"/api/v2/mud/worlds/:hash/tables",pathParams:["hash"],filterFields:["q"]},address_mud_tables_count:{path:"/api/v2/mud/worlds/:hash/tables/count",pathParams:["hash"]},address_mud_records:{path:"/api/v2/mud/worlds/:hash/tables/:table_id/records",pathParams:["hash","table_id"],filterFields:["filter_key0","filter_key1"]},address_mud_record:{path:"/api/v2/mud/worlds/:hash/tables/:table_id/records/:record_id",pathParams:["hash","table_id","record_id"]},arbitrum_l2_messages:{path:"/api/v2/arbitrum/messages/:direction",pathParams:["direction"],filterFields:[]},arbitrum_l2_messages_count:{path:"/api/v2/arbitrum/messages/:direction/count",pathParams:["direction"]},arbitrum_l2_txn_batches:{path:"/api/v2/arbitrum/batches",filterFields:[]},arbitrum_l2_txn_batches_count:{path:"/api/v2/arbitrum/batches/count"},arbitrum_l2_txn_batch:{path:"/api/v2/arbitrum/batches/:number",pathParams:["number"]},arbitrum_l2_txn_batch_txs:{path:"/api/v2/transactions/arbitrum-batch/:number",pathParams:["number"],filterFields:[]},arbitrum_l2_txn_batch_blocks:{path:"/api/v2/blocks/arbitrum-batch/:number",pathParams:["number"],filterFields:[]},zkevm_l2_deposits:{path:"/api/v2/zkevm/deposits",filterFields:[]},zkevm_l2_deposits_count:{path:"/api/v2/zkevm/deposits/count"},zkevm_l2_withdrawals:{path:"/api/v2/zkevm/withdrawals",filterFields:[]},zkevm_l2_withdrawals_count:{path:"/api/v2/zkevm/withdrawals/count"},zkevm_l2_txn_batches:{path:"/api/v2/zkevm/batches",filterFields:[]},zkevm_l2_txn_batches_count:{path:"/api/v2/zkevm/batches/count"},zkevm_l2_txn_batch:{path:"/api/v2/zkevm/batches/:number",pathParams:["number"]},zkevm_l2_txn_batch_txs:{path:"/api/v2/transactions/zkevm-batch/:number",pathParams:["number"],filterFields:[]},zksync_l2_txn_batches:{path:"/api/v2/zksync/batches",filterFields:[]},zksync_l2_txn_batches_count:{path:"/api/v2/zksync/batches/count"},zksync_l2_txn_batch:{path:"/api/v2/zksync/batches/:number",pathParams:["number"]},zksync_l2_txn_batch_txs:{path:"/api/v2/transactions/zksync-batch/:number",pathParams:["number"],filterFields:[]},shibarium_deposits:{path:"/api/v2/shibarium/deposits",filterFields:[]},shibarium_deposits_count:{path:"/api/v2/shibarium/deposits/count"},shibarium_withdrawals:{path:"/api/v2/shibarium/withdrawals",filterFields:[]},shibarium_withdrawals_count:{path:"/api/v2/shibarium/withdrawals/count"},noves_transaction:{path:"/api/v2/proxy/noves-fi/transactions/:hash",pathParams:["hash"]},noves_address_history:{path:"/api/v2/proxy/noves-fi/addresses/:address/transactions",pathParams:["address"],filterFields:[]},noves_describe_txs:{path:"/api/v2/proxy/noves-fi/transaction-descriptions"},user_ops:{path:"/api/v2/proxy/account-abstraction/operations",filterFields:["transaction_hash","sender"]},user_op:{path:"/api/v2/proxy/account-abstraction/operations/:hash",pathParams:["hash"]},user_ops_account:{path:"/api/v2/proxy/account-abstraction/accounts/:hash",pathParams:["hash"]},user_op_interpretation:{path:"/api/v2/proxy/account-abstraction/operations/:hash/summary",pathParams:["hash"]},validators_stability:{path:"/api/v2/validators/stability",filterFields:["address_hash","state_filter"]},validators_stability_counters:{path:"/api/v2/validators/stability/counters"},validators_blackfort:{path:"/api/v2/validators/blackfort",filterFields:[]},validators_blackfort_counters:{path:"/api/v2/validators/blackfort/counters"},blob:{path:"/api/v2/blobs/:hash",pathParams:["hash"]},config_backend_version:{path:"/api/v2/config/backend-version"},config_csv_export:{path:"/api/v2/config/csv-export"},csv_export_token_holders:{path:"/api/v2/tokens/:hash/holders/csv",pathParams:["hash"]},api_v2_key:{path:"/api/v2/key"},csv_export_txs:{path:"/api/v1/transactions-csv"},csv_export_internal_txs:{path:"/api/v1/internal-transactions-csv"},csv_export_token_transfers:{path:"/api/v1/token-transfers-csv"},csv_export_logs:{path:"/api/v1/logs-csv"},graphql:{path:"/api/v1/graphql"},block_countdown:{path:"/api"}},Z=e=>e},64903:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(30202),i=r(57557),o=r.n(i),a=r(35937),s=r.n(a),l=r(67294),c=r(46789),u=r(82429),d=r(52272),h=r(93777),f=r(57245),p=r(49916),g=r(48688),m=r(78069);function v(){let e=(0,p.Z)(),{token:t}=(0,n.NL)().getQueryData((0,h.$)("csrf"))||{};return l.useCallback(function(r){let{pathParams:n,queryParams:i,fetchParams:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=f.U2(f.aL.API_TOKEN),h=m.rP[r],p=(0,g.Z)(r,n,i),v=(0,u.Z)(null==a?void 0:a.method),b=s()({"x-endpoint":h.endpoint&&(0,d.Z)()?h.endpoint:void 0,Authorization:h.endpoint&&h.needAuth?l:void 0,"x-csrf-token":v&&t?t:void 0,...h.headers,...null==a?void 0:a.headers},Boolean);return e(p,{credentials:c.Z.features.account.isEnabled?"include":"same-origin",headers:b,...o()(a,"headers")},{resource:h.path,omitSentryErrorLog:!0})},[e,t])}},93777:function(e,t,r){"use strict";r.d(t,{$:function(){return o},Z:function(){return a}});var n=r(78551),i=r(64903);function o(e){let{pathParams:t,queryParams:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t||r?[e,{...t,...r}]:[e]}function a(e){let{queryOptions:t,pathParams:r,queryParams:a,fetchParams:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,i.Z)();return(0,n.a)({queryKey:(null==t?void 0:t.queryKey)||o(e,{pathParams:r,queryParams:a}),queryFn:async t=>{let{signal:n}=t;return l(e,{pathParams:r,queryParams:a,fetchParams:{...s,signal:n}})},...t})}},21626:function(e,t,r){"use strict";r.d(t,{Z:function(){return y},X:function(){return b}});var n=r(24139),i=r(56888),o=r(27037),a=r(7506),s=class extends a.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){let o=t.queryKey,a=t.queryHash??(0,n.Rm)(o,t),s=this.get(a);return s||(s=new i.A({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,n._x)(e,t)):t}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},l=r(59289),c=class extends a.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#r=Date.now()}#t;#r;build(e,t,r){let n=new l.m({mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){let t=u(e),r=this.#t.get(t)??[];r.push(e),this.#t.set(t,r),this.notify({type:"added",mutation:e})}remove(e){let t=u(e);if(this.#t.has(t)){let r=this.#t.get(t)?.filter(t=>t!==e);r&&(0===r.length?this.#t.delete(t):this.#t.set(t,r))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(u(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(u(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){o.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,n.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,n.X7)(e,t))}notify(e){o.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(n.ZT))))}};function u(e){return e.options.scope?.id??String(e.mutationId)}var d=r(66474),h=r(14304),f=r(54948),p=class{#n;#i;#o;#a;#s;#l;#c;#u;constructor(e={}){this.#n=e.queryCache||new s,this.#i=e.mutationCache||new c,this.#o=e.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#l=0}mount(){this.#l++,1===this.#l&&(this.#c=d.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#u=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#l--,0===this.#l&&(this.#c?.(),this.#c=void 0,this.#u?.(),this.#u=void 0)}isFetching(e){return this.#n.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#i.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let r=this.defaultQueryOptions(e),i=this.#n.build(this,r);return e.revalidateIfStale&&i.isStaleByTime((0,n.KC)(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return this.#n.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){let i=this.defaultQueryOptions({queryKey:e}),o=this.#n.get(i.queryHash),a=o?.state.data,s=(0,n.SE)(t,a);if(void 0!==s)return this.#n.build(this,i).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return o.V.batch(()=>this.#n.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state}removeQueries(e){let t=this.#n;o.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#n,n={type:"active",...e};return o.V.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){let r={revert:!0,...t};return Promise.all(o.V.batch(()=>this.#n.findAll(e).map(e=>e.cancel(r)))).then(n.ZT).catch(n.ZT)}invalidateQueries(e={},t={}){return o.V.batch(()=>{if(this.#n.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){let r={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(o.V.batch(()=>this.#n.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(n.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(n.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#n.build(this,t);return r.isStaleByTime((0,n.KC)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(n.ZT).catch(n.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,f.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(n.ZT).catch(n.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#i.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#i}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#a.set((0,n.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#a.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.queryKey)&&(r={...r,...t.defaultOptions})}),r}setMutationDefaults(e,t){this.#s.set((0,n.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#s.values()],r={};return t.forEach(t=>{(0,n.to)(e,t.mutationKey)&&(r={...r,...t.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,n.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===n.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#n.clear(),this.#i.clear()}},g=r(67294),m=r(39175),v=r(23927);let b=(e,t)=>{let r=(0,m.Z)(t),n=(null==r?void 0:r.status)||(0,v.Z)(t);return(!n||!(n>=400)||!(n<500))&&e<2};function y(){let[e]=g.useState(()=>new p({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:b,throwOnError:e=>429===(0,v.Z)(e)}}}));return e}},2525:function(e,t,r){"use strict";r.d(t,{EB:function(){return c},Mb:function(){return g},_e:function(){return a},kr:function(){return u},oP:function(){return p},ps:function(){return h},r_:function(){return m},sJ:function(){return i},sh:function(){return l},uR:function(){return o},vc:function(){return f},x4:function(){return d},xE:function(){return s}});var n=r(70794);let i=new n.Z(1e18),o=new n.Z(1e9),a=i.dividedBy(o),s=new n.Z(0),l=1e3,c=6e4,u=36e5,d=864e5,h=6048e5,f=2592e6,p=31536e6,g=1e6,m="0x0000000000000000000000000000000000000000"},96639:function(e,t,r){"use strict";r.d(t,{Gz:function(){return a},Lx:function(){return s}});var n=r(85893),i=r(67294);let o=i.createContext(null);function a(e){let{children:t}=e,r=i.useRef(null),a=i.useRef(null),s=i.useCallback(e=>{let t=e.currentTarget.getAttribute("data-hash");t&&(a.current=t,r.current=window.setTimeout(()=>{for(let e of window.document.querySelectorAll('[data-hash="'.concat(a.current,'"]')))e.classList.add("address-entity_highlighted")},100))},[]),l=i.useCallback(()=>{if(a.current){for(let e of window.document.querySelectorAll('[data-hash="'.concat(a.current,'"]')))e.classList.remove("address-entity_highlighted");a.current=null}"number"==typeof r.current&&window.clearTimeout(r.current)},[]),c=i.useMemo(()=>({onMouseEnter:s,onMouseLeave:l}),[s,l]);return i.useEffect(()=>()=>{"number"==typeof r.current&&window.clearTimeout(r.current)},[]),(0,n.jsx)(o.Provider,{value:c,children:t})}function s(e){let t=i.useContext(o);return void 0===t||e?null:t}},40410:function(e,t,r){"use strict";r.d(t,{b:function(){return s},i:function(){return a}});var n=r(85893),i=r(67294);let o=(0,i.createContext)({cookies:"",referrer:"",query:{},adBannerProvider:null,apiData:null});function a(e){let{children:t,pageProps:r}=e;return(0,n.jsx)(o.Provider,{value:r,children:t})}function s(){return(0,i.useContext)(o)}},32012:function(e,t,r){"use strict";r.d(t,{C:function(){return l},S:function(){return s}});var n=r(85893),i=r(11163),o=r(67294);let a=(0,o.createContext)({isAutoConnectDisabled:!1,setIsAutoConnectDisabled:()=>{}});function s(e){let{children:t}=e,r=(0,i.useRouter)(),[s,l]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=()=>{l(!1)};return r.events.on("routeChangeStart",e),()=>{r.events.off("routeChangeStart",e)}},[r.events]);let c=(0,o.useMemo)(()=>({isAutoConnectDisabled:s,setIsAutoConnectDisabled:l}),[s,l]);return(0,n.jsx)(a.Provider,{value:c,children:t})}function l(){return(0,o.useContext)(a)}},95087:function(e,t,r){"use strict";r.d(t,{C:function(){return h},Y:function(){return d}});var n=r(85893),i=r(74691),o=r.n(i),a=r(23493),s=r.n(a),l=r(67294),c=r(32807);let u=l.createContext(null);function d(e){let{children:t}=e,r=l.useRef((0,c.Z)()?window.pageYOffset:0),[i,a]=l.useState(null),d=l.useCallback(()=>{let e=o()(window.pageYOffset,0,window.document.body.scrollHeight-window.innerHeight),t=e-r.current;0===window.pageYOffset?a(null):Math.abs(t)>20&&a(t<0?"up":"down"),r.current=e},[]);return l.useEffect(()=>{let e=s()(d,300);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,n.jsx)(u.Provider,{value:i,children:t})}function h(){let e=l.useContext(u);if(void 0===e)throw Error("useScrollDirection must be used within a ScrollDirectionProvider");return e}},57245:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}r.d(t,{aL:function(){return i},U2:function(){return l},_E:function(){return u},t8:function(){return c}});var i,o,a=function e(t,r){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],n={},i=0;i<r.length;i++){var o=r[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(n[s]=t.read(a,s),e===s)break}catch(e){}}return e?n[e]:n}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),s=r(32807);function l(e,t){return(0,s.Z)()?e?a.get(e):void 0:t?u(t,e):void 0}function c(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.path="/",a.set(e,t,r)}function u(e,t){var r;return null===(r=e.split("".concat(t,"="))[1])||void 0===r?void 0:r.split(";")[0]}(o=i||(i={})).NAV_BAR_COLLAPSED="nav_bar_collapsed",o.API_TOKEN="_explorer_key",o.INVALID_SESSION="invalid_session",o.CONFIRM_EMAIL_PAGE_VIEWED="confirm_email_page_viewed",o.TXS_SORT="txs_sort",o.COLOR_MODE="chakra-ui-color-mode",o.COLOR_MODE_HEX="chakra-ui-color-mode-hex",o.ADDRESS_IDENTICON_TYPE="address_identicon_type",o.INDEXING_ALERT="indexing_alert",o.ADBLOCK_DETECTED="adblock_detected",o.MIXPANEL_DEBUG="_mixpanel_debug",o.ADDRESS_NFT_DISPLAY_TYPE="address_nft_display_type",o.UUID="uuid"},3749:function(e,t,r){"use strict";var n=r(27484),i=r.n(n),o=r(1646),a=r.n(o),s=r(56176),l=r.n(s),c=r(37181),u=r.n(c),d=r(84110),h=r.n(d),f=r(70660),p=r.n(f),g=r(55183),m=r.n(g),v=r(38459);i().extend(h(),{thresholds:[{l:"s",r:1},{l:"ss",r:59,d:"second"},{l:"m",r:1},{l:"mm",r:59,d:"minute"},{l:"h",r:1},{l:"hh",r:23,d:"hour"},{l:"d",r:1},{l:"dd",r:6,d:"day"},{l:"w",r:1},{l:"ww",r:4,d:"week"},{l:"M",r:1},{l:"MM",r:11,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}]}),i().extend(p()),i().extend(l()),i().extend(a()),i().extend(m()),i().extend(u()),i().updateLocale("en",{formats:{llll:"MMM DD YYYY HH:mm:ss A (Z".concat(v.vk,"UTC)"),lll:"MMM D, YYYY h:mm A"},relativeTime:{s:"1s",ss:"%ds",future:"in %s",past:"%s ago",m:"1m",mm:"%dm",h:"1h",hh:"%dh",d:"1d",dd:"%dd",w:"1w",ww:"%dw",M:"1mo",MM:"%dmo",y:"1y",yy:"%dy"}}),i().locale("en"),t.Z=i()},77851:function(e,t,r){"use strict";function n(e){if(!("object"!=typeof e||Array.isArray(e))&&null!==e)return e}r.d(t,{Z:function(){return n}})},39175:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(77851);function i(e){let t=(0,n.Z)(e);if(!(!t||!("payload"in t)||"object"!=typeof t.payload||null===t||Array.isArray(t)))return t.payload}},23927:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(77851);function i(e){let t=(0,n.Z)(e);if(t&&"status"in t&&"number"==typeof t.status)return t.status}},78424:function(e,t,r){"use strict";r.d(t,{N:function(){return i},U:function(){return n}});let n="growthbook:experiments",i=20},4459:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(68924),i=r.n(n);function o(e,t){let r=RegExp("("+t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+")","gi");return i()(e.replace(r,"<mark>$1</mark>"))}},95185:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);function i(e,t){let[r,i]=n.useState(e);return n.useEffect(()=>{let r=setTimeout(()=>{i(e)},t);return()=>{clearTimeout(r)}},[e,t]),r}},49916:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(64487),i=r(67294),o=r(82429);function a(){return i.useCallback((e,t,r)=>{let i=null==t?void 0:t.body,a=i instanceof FormData,s=(0,o.Z)(null==t?void 0:t.method),l=s?a?i:JSON.stringify(i):void 0;return fetch(e,{...t,body:l,headers:{...s&&!a?{"Content-type":"application/json"}:void 0,...null==t?void 0:t.headers}}).then(e=>{if(e.ok)return e.json();{let t={status:e.status,statusText:e.statusText};return(null==r?void 0:r.omitSentryErrorLog)||n.Tb(Error("Client fetch failed"),{tags:{source:"fetch","source.resource":null==r?void 0:r.resource,"status.code":t.status,"status.text":t.statusText}}),e.json().then(t=>Promise.reject({payload:t,status:e.status,statusText:e.statusText}),()=>Promise.reject(t))}})},[])}},93157:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(93777),i=r(57245);function o(){return(0,n.Z)("user_info",{queryOptions:{refetchOnMount:!1,enabled:!!i.U2(i.aL.API_TOKEN)}})}},42774:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(46789),i=r(40410),o=r(57245);function a(){let e=(0,i.b)();if(!n.Z.features.account.isEnabled)return!1;let t=e.cookies;return!!o.U2(o.aL.API_TOKEN,t)}},20809:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(63343);function i(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return(0,n.S)({base:!0,lg:!1},{ssr:e})}},53003:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(11163),i=r(99640);let o=r(46789).Z.features.account;function a(){let e=(0,n.useRouter)();return o.isEnabled?o.authUrl+(0,i.B)({pathname:"/auth/auth0",query:{path:e.asPath}}):void 0}},75064:function(e,t,r){"use strict";r.d(t,{S_:function(){return l},ZP:function(){return u},cI:function(){return c}});var n=r(11163),i=r(67294),o=r(46789),a=r(38459),s=r(55853);function l(e){return"subItems"in e}function c(e){return"nextRoute"in e}function u(){let e=(0,n.useRouter)().pathname;return i.useMemo(()=>{var t,r,n;let i=[],l=(null===(t=o.Z.UI.views.address.hiddenViews)||void 0===t?void 0:t.top_accounts)?null:{text:"Top accounts",nextRoute:{pathname:"/accounts"},icon:"top-accounts",isActive:"/accounts"===e},u={text:"Blocks",nextRoute:{pathname:"/blocks"},icon:"block",isActive:"/blocks"===e||"/block/[height_or_hash]"===e},d={text:"Transactions",nextRoute:{pathname:"/txs"},icon:"transactions",isActive:"/txs"===e||"/tx/[hash]"===e},h=o.Z.features.userOps.isEnabled?{text:"User operations",nextRoute:{pathname:"/ops"},icon:"user_op",isActive:"/ops"===e||"/op/[hash]"===e}:null,f={text:"Verified contracts",nextRoute:{pathname:"/verified-contracts"},icon:"verified",isActive:"/verified-contracts"===e},p=o.Z.features.nameService.isEnabled?{text:"Name services lookup",nextRoute:{pathname:"/name-domains"},icon:"ENS",isActive:"/name-domains"===e||"/name-domains/[name]"===e}:null,g=o.Z.features.validators.isEnabled?{text:"Top validators",nextRoute:{pathname:"/validators"},icon:"validator",isActive:"/validators"===e}:null,m={text:"Deposits (L1".concat(a.wg,"L2)"),nextRoute:{pathname:"/deposits"},icon:"arrows/south-east",isActive:"/deposits"===e},v={text:"Withdrawals (L2".concat(a.wg,"L1)"),nextRoute:{pathname:"/withdrawals"},icon:"arrows/north-east",isActive:"/withdrawals"===e},b={text:"Txn batches",nextRoute:{pathname:"/batches"},icon:"txn_batches",isActive:"/batches"===e},y=o.Z.features.faultProofSystem.isEnabled?{text:"Dispute games",nextRoute:{pathname:"/dispute-games"},icon:"games",isActive:"/dispute-games"===e}:null,w=o.Z.features.mudFramework.isEnabled?{text:"MUD worlds",nextRoute:{pathname:"/mud-worlds"},icon:"MUD_menu",isActive:"/mud-worlds"===e}:null,x=o.Z.features.rollup;i=x.isEnabled&&("optimistic"===x.type||"arbitrum"===x.type||"zkEvm"===x.type)?[[d,m,v],[u,b,y,"optimistic"===x.type?{text:"Output roots",nextRoute:{pathname:"/output-roots"},icon:"output_roots",isActive:"/output-roots"===e}:void 0].filter(Boolean),[h,l,w,g,f,p].filter(Boolean)]:x.isEnabled&&"shibarium"===x.type?[[d,m,v],[u,h,l,f,p].filter(Boolean)]:x.isEnabled&&"zkSync"===x.type?[[d,h,u,b].filter(Boolean),[l,g,f,p].filter(Boolean)]:[d,h,u,l,g,f,p,o.Z.features.beaconChain.isEnabled&&{text:"Withdrawals",nextRoute:{pathname:"/withdrawals"},icon:"arrows/north-east",isActive:"/withdrawals"===e}].filter(Boolean);let _=[o.Z.features.restApiDocs.isEnabled?{text:"REST API",nextRoute:{pathname:"/api-docs"},icon:"restAPI",isActive:"/api-docs"===e}:null,o.Z.features.graphqlApiDocs.isEnabled?{text:"GraphQL",nextRoute:{pathname:"/graphiql"},icon:"graphQL",isActive:"/graphiql"===e}:null,!(null===(r=o.Z.UI.navigation.hiddenLinks)||void 0===r?void 0:r.rpc_api)&&{text:"RPC API",icon:"RPC",url:"https://docs.blockscout.com/for-users/api/rpc-endpoints"},!(null===(n=o.Z.UI.navigation.hiddenLinks)||void 0===n?void 0:n.eth_rpc_api)&&{text:"Eth RPC API",icon:"RPC",url:" https://docs.blockscout.com/for-users/api/eth-rpc"}].filter(Boolean),C=[{text:"Verify contract",nextRoute:{pathname:"/contract-verification"},isActive:e.startsWith("/contract-verification")},o.Z.features.gasTracker.isEnabled&&{text:"Gas tracker",nextRoute:{pathname:"/gas-tracker"},isActive:e.startsWith("/gas-tracker")},o.Z.features.publicTagsSubmission.isEnabled&&{text:"Submit public tag",nextRoute:{pathname:"/public-tags/submit"},isActive:e.startsWith("/public-tags/submit")},...o.Z.UI.navigation.otherLinks].filter(Boolean);return{mainNavItems:[{text:"Blockchain",icon:"globe-b",isActive:i.flat().some(e=>c(e)&&e.isActive),subItems:i},{text:"Tokens",nextRoute:{pathname:"/tokens"},icon:"token",isActive:e.startsWith("/token")},o.Z.features.marketplace.isEnabled?{text:"DApps",nextRoute:{pathname:"/apps"},icon:"apps",isActive:e.startsWith("/app")}:null,o.Z.features.stats.isEnabled?{text:"Charts & stats",nextRoute:{pathname:"/stats"},icon:"stats",isActive:e.startsWith("/stats")}:null,_.length>0&&{text:"API",icon:"restAPI",isActive:_.some(e=>c(e)&&e.isActive),subItems:_},{text:"Other",icon:"gear",isActive:C.flat().some(e=>c(e)&&e.isActive),subItems:C}].filter(Boolean),accountNavItems:[{text:"Watch list",nextRoute:{pathname:"/account/watchlist"},icon:"watchlist",isActive:"/account/watchlist"===e},{text:"Private tags",nextRoute:{pathname:"/account/tag-address"},icon:"privattags",isActive:"/account/tag-address"===e},{text:"API keys",nextRoute:{pathname:"/account/api-key"},icon:"API",isActive:"/account/api-key"===e},{text:"Custom ABI",nextRoute:{pathname:"/account/custom-abi"},icon:"ABI",isActive:"/account/custom-abi"===e},o.Z.features.addressVerification.isEnabled&&{text:"Verified addrs",nextRoute:{pathname:"/account/verified-addresses"},icon:"verified",isActive:"/account/verified-addresses"===e}].filter(Boolean),profileItem:{text:"My profile",nextRoute:{pathname:"/auth/profile"},iconComponent:s.Z,isActive:"/auth/profile"===e}}},[e])}},82229:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(34629),i=r(9222),o=r(67294),a=r(85893),s=r(31507),l=r(8180),c=r(56837),u=r(86989),d=r(75350);let h={toastComponent:e=>{let{onClose:t,title:r,description:n,id:i,isClosable:o,status:h,icon:f}=e,p=i?{root:"toast-".concat(i),title:"toast-".concat(i,"-title"),description:"toast-".concat(i,"-description")}:void 0,g=function(e){switch(e){case"success":return"green.100";case"error":return"red.100";case"warning":return"orange.100";default:return"blue.100"}}(h);return(0,a.jsxs)(s.b,{id:null==p?void 0:p.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingY:4,paddingLeft:6,paddingRight:"72px",color:"gray.700",bgColor:g,textAlign:"start",width:"auto",maxWidth:"400px",children:[(0,a.jsxs)(d.m.div,{flex:"1",maxWidth:"100%",children:[r&&(0,a.jsxs)(l.C,{id:null==p?void 0:p.title,display:"flex",alignItems:"center",children:[f,r]}),n&&(0,a.jsx)(c.X,{id:null==p?void 0:p.description,display:"block",children:n})]}),o&&(0,a.jsx)(u.P,{size:"md",borderRadius:"base",color:"gray.700",onClick:t,position:"absolute",insetEnd:4,top:4})]})},position:"top-right",isClosable:!0,containerStyle:{margin:3,marginBottom:0},variant:"subtle"};function f(){let{theme:e}=(0,n.uP)();return o.useMemo(()=>(0,i.Cj)(e.direction,h),[e.direction])}},38459:function(e,t,r){"use strict";r.d(t,{DZ:function(){return u},Dh:function(){return a},Iy:function(){return h},JG:function(){return m},Jh:function(){return o},Ol:function(){return l},PQ:function(){return s},P_:function(){return c},gR:function(){return n},uY:function(){return f},vk:function(){return i},wg:function(){return d},wp:function(){return g},x8:function(){return p}});let n=String.fromCharCode(8776);String.fromCharCode(8230);let i=String.fromCharCode(160),o=String.fromCharCode(8201),a=" ";String.fromCharCode(8209);let s=String.fromCharCode(8212),l=String.fromCharCode(8211);String.fromCharCode(171),String.fromCharCode(187);let c=String.fromCharCode(183);String.fromCharCode(9679),String.fromCharCode(10148),String.fromCharCode(176);let u=String.fromCharCode(215);String.fromCharCode(8226),String.fromCharCode(8722),String.fromCharCode(8592);let d=String.fromCharCode(8594),h="'",f=String.fromCharCode(8679),p=String.fromCharCode(8984),g=String.fromCharCode(9095),m=String.fromCharCode(169)},32807:function(e,t,r){"use strict";function n(){return!0}r.d(t,{Z:function(){return n}})},77612:function(e,t,r){"use strict";r.d(t,{Q:function(){return n},Z:function(){return i}});let n={"/":"Homepage","/txs":"Transactions","/txs/kettle/[hash]":"Kettle transactions","/tx/[hash]":"Transaction details","/blocks":"Blocks","/block/[height_or_hash]":"Block details","/block/countdown":"Block countdown search","/block/countdown/[height]":"Block countdown","/accounts":"Top accounts","/accounts/label/[slug]":"Addresses search by label","/address/[hash]":"Address details","/verified-contracts":"Verified contracts","/contract-verification":"Contract verification","/address/[hash]/contract-verification":"Contract verification for address","/tokens":"Tokens","/token/[hash]":"Token details","/token/[hash]/instance/[id]":"Token Instance","/apps":"DApps","/apps/[id]":"DApp","/stats":"Stats","/stats/[id]":"Stats chart","/api-docs":"REST API","/graphiql":"GraphQL","/search-results":"Search results","/auth/profile":"Profile","/account/watchlist":"Watchlist","/account/api-key":"API keys","/account/custom-abi":"Custom ABI","/account/tag-address":"Private tags","/account/verified-addresses":"Verified addresses","/public-tags/submit":"Submit public tag","/withdrawals":"Withdrawals","/visualize/sol2uml":"Solidity UML diagram","/csv-export":"Export data to CSV file","/deposits":"Deposits (L1 > L2)","/output-roots":"Output roots","/dispute-games":"Dispute games","/batches":"Tx batches (L2 blocks)","/batches/[number]":"L2 tx batch details","/blobs/[hash]":"Blob details","/ops":"User operations","/op/[hash]":"User operation details","/404":"404","/name-domains":"Domains search and resolve","/name-domains/[name]":"Domain details","/validators":"Validators list","/gas-tracker":"Gas tracker","/mud-worlds":"MUD worlds","/login":"Login","/sprite":"Sprite","/api/metrics":"Node API: Prometheus metrics","/api/monitoring/invalid-api-schema":"Node API: Prometheus metrics","/api/log":"Node API: Request log","/api/media-type":"Node API: Media type","/api/proxy":"Node API: Proxy","/api/csrf":"Node API: CSRF token","/api/healthz":"Node API: Health check","/api/config":"Node API: App config","/api/sprite":"Node API: SVG sprite content","/auth/auth0":"Auth","/auth/unverified-email":"Unverified email"};function i(e){return n[e]||"Unknown page"}},39513:function(e,t,r){"use strict";r.d(t,{GM:function(){return i},C2:function(){return a.Z},pB:function(){return u},Kz:function(){return p},Dp:function(){return k},fS:function(){return I},DY:function(){return o}});var n,i,o={};r.r(o),r.d(o,{increment:function(){return A},set:function(){return _},setOnce:function(){return C}});var a=r(77612),s=r(57245),l=r(78424),c=r(32807);function u(){let e=s.U2(s.aL.UUID);if(e)return e;let t=crypto.randomUUID();return s.t8(s.aL.UUID,t),(0,c.Z)()&&window.localStorage.removeItem(l.U),t}var d=r(8891),h=r.n(d),f=r(46789);function p(e,t,r,n){f.Z.features.mixpanel.isEnabled&&h().track(e,t,r,n)}var g=r(48403),m=r.n(g),v=r(11163),b=r(67294),y=r(85518),w=r(3749),x=r(31251);function _(e){h().people.set(e)}function C(e){h().people.set_once(e)}function A(e){h().people.increment(e)}function k(){let[e,t]=b.useState(!1),r=(0,v.useRouter)(),n=b.useRef((0,x.Z)(r.query._mixpanel_debug));return b.useEffect(()=>{let e=f.Z.features.mixpanel;if(!e.isEnabled)return;let r=s.U2(s.aL.MIXPANEL_DEBUG),i={debug:!!(n.current||r)},o=!!s.U2(s.aL.API_TOKEN),a=u();h().init(e.projectToken,i),h().register({"Chain id":f.Z.chain.id,Environment:f.Z.app.isDev?"Dev":"Prod",Authorized:o,"Viewport width":window.innerWidth,"Viewport height":window.innerHeight,Language:window.navigator.language,"Device type":m()(y.vO),"User id":a}),h().identify(a),_({"Device Type":m()(y.vO),...o?{"With Account":!0}:{}}),C({"First Time Join":(0,w.Z)().toISOString()}),t(!0),n.current&&!r&&s.t8(s.aL.MIXPANEL_DEBUG,"true")},[]),e}var E=r(12498),S=r(39332),T=r(24299);function I(e){let t=(0,v.useRouter)(),r=(0,S.usePathname)(),n=(0,x.Z)(t.query.tab),o=(0,x.Z)(t.query.page),{colorMode:l}=(0,E.If)();b.useEffect(()=>{if(!f.Z.features.mixpanel.isEnabled||!e)return;let r=s.U2(s.aL.COLOR_MODE_HEX);p(i.PAGE_VIEW,{"Page type":(0,a.Z)(t.pathname),Tab:""!==n?m()(n.replaceAll("_"," ")):"Default",Page:o||void 0,"Color mode":l,"Color theme":(T.M.find(e=>e.hex===r)||T.M.filter(e=>e.colorMode===l).slice(-1)[0]).id})},[e,o,r,n,l])}(n=i||(i={})).PAGE_VIEW="Page view",n.SEARCH_QUERY="Search query",n.LOCAL_SEARCH="Local search",n.ADD_TO_WALLET="Add to wallet",n.ACCOUNT_ACCESS="Account access",n.PRIVATE_TAG="Private tag",n.VERIFY_ADDRESS="Verify address",n.VERIFY_TOKEN="Verify token",n.WALLET_CONNECT="Wallet connect",n.WALLET_ACTION="Wallet action",n.CONTRACT_INTERACTION="Contract interaction",n.CONTRACT_VERIFICATION="Contract verification",n.QR_CODE="QR code",n.PAGE_WIDGET="Page widget",n.TX_INTERPRETATION_INTERACTION="Transaction interpretation interaction",n.EXPERIMENT_STARTED="Experiment started",n.FILTERS="Filters",n.BUTTON_CLICK="Button click",n.PROMO_BANNER="Promo banner",n.APP_FEEDBACK="App feedback"},14463:function(e,t,r){"use strict";r.d(t,{V$:function(){return l},bb:function(){return u},dd:function(){return d},qs:function(){return c}});var n=r(44908),i=r.n(n),o=r(32807);let a="recent_search_keywords",s=e=>{if(!e)return[];try{let t=JSON.parse(e);if(Array.isArray(t))return t;return[]}catch(e){return[]}};function l(e){if(!e)return;let t=c(),r=i()([e,...t]).slice(0,9);window.localStorage.setItem(a,JSON.stringify(r))}function c(e){if(!(0,o.Z)())return[];let t=s(window.localStorage.getItem(a)||"");return e?t.filter(t=>t.includes(e)):t}function u(e){let t=c().filter(t=>t!==e);window.localStorage.setItem(a,JSON.stringify(t))}function d(){window.localStorage.setItem(a,"")}},81109:function(e,t,r){"use strict";r.d(t,{$Y:function(){return o},Dz:function(){return s},JS:function(){return n},Sh:function(){return i},w8:function(){return a}});let n=/^https?:\/\//i,i=/^ipfs:\/\//i,o=/^(?:0x)?[\da-fA-F]+$/,a=/\.([\da-z]+)$/i,s=/^\d+$/},31251:function(e,t,r){"use strict";function n(e){return Array.isArray(e)?e.join(","):e||""}r.d(t,{Z:function(){return n}})},2957:function(e,t,r){"use strict";function n(e,t){let{pathname:r,query:n,asPath:i}=e,o={...n};delete o[t];let a=i.indexOf("#"),s=-1!==a?i.substring(a):"";e.replace({pathname:r,query:o,hash:s},void 0,{shallow:!0})}r.d(t,{Z:function(){return n}})},24299:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n=[{id:"light",label:"Light",colorMode:"light",hex:"#FFFFFF",sampleBg:"linear-gradient(154deg, #EFEFEF 50%, rgba(255, 255, 255, 0.00) 330.86%)"},{id:"dim",label:"Dim",colorMode:"dark",hex:"#232B37",sampleBg:"linear-gradient(152deg, #232B37 50%, rgba(255, 255, 255, 0.00) 290.71%)"},{id:"midnight",label:"Midnight",colorMode:"dark",hex:"#1B2E48",sampleBg:"linear-gradient(148deg, #1B3F71 50%, rgba(255, 255, 255, 0.00) 312.35%)"},{id:"dark",label:"Dark",colorMode:"dark",hex:"#101112",sampleBg:"linear-gradient(161deg, #000 9.37%, #383838 92.52%)"}]},31314:function(e,t,r){"use strict";function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return e?e.length<=t?e:e.slice(0,t-4)+"..."+e.slice(-4):""}r.d(t,{Z:function(){return n}})},64372:function(e,t,r){"use strict";r.d(t,{wP:function(){return A},sV:function(){return k}});var n=r(85893),i=e=>"function"==typeof e?e:function(){return e},o="undefined"!=typeof window?window:null,a=("undefined"!=typeof self?self:null)||o||a,s={connecting:0,open:1,closing:2,closed:3},l="closed",c="errored",u="joined",d="joining",h="leaving",f={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},p="websocket",g=class{constructor(e,t,r,n){this.channel=e,this.event=t,this.payload=r||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:r}){this.recHooks.filter(t=>t.status===e).forEach(e=>e.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},m=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},v=class{constructor(e,t,r){this.state=l,this.topic=e,this.params=i(t||{}),this.socket=r,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new g(this,f.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new m(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=u,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=c,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=l,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=c,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new g(this,f.leave,i({}),this.timeout).send(),this.state=c,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(f.reply,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(e=this.timeout){if(!this.joinedOnce)return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush;throw Error("tried to join multiple times. 'join' can only be called a single time per channel instance")}onClose(e){this.on(f.close,e)}onError(e){return this.on(f.error,t=>e(t))}on(e,t){let r=this.bindingRef++;return this.bindings.push({event:e,ref:r,callback:t}),r}off(e,t){this.bindings=this.bindings.filter(r=>!(r.event===e&&(void 0===t||t===r.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,r=this.timeout){if(t=t||{},!this.joinedOnce)throw Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new g(this,e,function(){return t},r);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=h;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(f.close,"leave")},r=new g(this,f.leave,i({}),e);return r.receive("ok",()=>t()).receive("timeout",()=>t()),r.send(),this.canPush()||r.trigger("ok",{}),r}onMessage(e,t,r){return t}isMember(e,t,r,n){return this.topic===e&&(!n||n===this.joinRef()||(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:r,joinRef:n}),!1))}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=d,this.joinPush.resend(e))}trigger(e,t,r,n){let i=this.onMessage(e,t,r,n);if(t&&!i)throw Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(t=>t.event===e);for(let e=0;e<o.length;e++)o[e].callback(i,r,n||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===l}isErrored(){return this.state===c}isJoined(){return this.state===u}isJoining(){return this.state===d}isLeaving(){return this.state===h}},b=class{static request(e,t,r,n,i,o,s){if(a.XDomainRequest){let r=new a.XDomainRequest;return this.xdomainRequest(r,e,t,n,i,o,s)}{let l=new a.XMLHttpRequest;return this.xhrRequest(l,e,t,r,n,i,o,s)}}static xdomainRequest(e,t,r,n,i,o,a){return e.timeout=i,e.open(t,r),e.onload=()=>{let t=this.parseJSON(e.responseText);a&&a(t)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(n),e}static xhrRequest(e,t,r,n,i,o,a,s){return e.open(t,r,!0),e.timeout=o,e.setRequestHeader("Content-Type",n),e.onerror=()=>s&&s(null),e.onreadystatechange=()=>{4===e.readyState&&s&&s(this.parseJSON(e.responseText))},a&&(e.ontimeout=a),e.send(i),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch(t){return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let r=[];for(var n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let i=t?`${t}[${n}]`:n,o=e[n];"object"==typeof o?r.push(this.serialize(o,i)):r.push(encodeURIComponent(i)+"="+encodeURIComponent(o))}return r.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let r=e.match(/\?/)?"&":"?";return`${e}${r}${this.serialize(t)}`}},y=class{constructor(e){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=s.connecting,this.poll()}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(RegExp("(.*)/"+p),"$1/longpoll")}endpointURL(){return b.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,r){this.close(e,t,r),this.readyState=s.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===s.open||this.readyState===s.connecting}poll(){this.ajax("GET",null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:r,messages:n}=e;this.token=r}else t=0;switch(t){case 200:n.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=s.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw Error(`unhandled poll status ${t}`)}})}send(e){this.ajax("POST",e,()=>this.onerror("timeout"),e=>{e&&200===e.status||(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))})}close(e,t,r){for(let e of this.reqs)e.abort();this.readyState=s.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:r});"undefined"!=typeof CloseEvent?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(e,t,r,n){let i;i=b.request(e,this.endpointURL(),"application/json",t,this.timeout,()=>{this.reqs.delete(i),r()},e=>{this.reqs.delete(i),this.isActive()&&n(e)}),this.reqs.add(i)}},w={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){return e.payload.constructor===ArrayBuffer?t(this.binaryEncode(e)):t(JSON.stringify([e.join_ref,e.ref,e.topic,e.event,e.payload]))},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[r,n,i,o,a]=JSON.parse(e);return t({join_ref:r,ref:n,topic:i,event:o,payload:a})}},binaryEncode(e){let{join_ref:t,ref:r,event:n,topic:i,payload:o}=e,a=this.META_LENGTH+t.length+r.length+i.length+n.length,s=new ArrayBuffer(this.HEADER_LENGTH+a),l=new DataView(s),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,r.length),l.setUint8(c++,i.length),l.setUint8(c++,n.length),Array.from(t,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(r,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(i,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(n,e=>l.setUint8(c++,e.charCodeAt(0)));var u=new Uint8Array(s.byteLength+o.byteLength);return u.set(new Uint8Array(s),0),u.set(new Uint8Array(o),s.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),r=t.getUint8(0),n=new TextDecoder;switch(r){case this.KINDS.push:return this.decodePush(e,t,n);case this.KINDS.reply:return this.decodeReply(e,t,n);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,n)}},decodePush(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,s=r.decode(e.slice(a,a+n));a+=n;let l=r.decode(e.slice(a,a+i));a+=i;let c=r.decode(e.slice(a,a+o));return a+=o,{join_ref:s,ref:null,topic:l,event:c,payload:e.slice(a,e.byteLength)}},decodeReply(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=t.getUint8(3),a=t.getUint8(4),s=this.HEADER_LENGTH+this.META_LENGTH,l=r.decode(e.slice(s,s+n));s+=n;let c=r.decode(e.slice(s,s+i));s+=i;let u=r.decode(e.slice(s,s+o));s+=o;let d=r.decode(e.slice(s,s+a));s+=a;let h=e.slice(s,e.byteLength);return{join_ref:l,ref:c,topic:u,event:f.reply,payload:{status:d,response:h}}},decodeBroadcast(e,t,r){let n=t.getUint8(1),i=t.getUint8(2),o=this.HEADER_LENGTH+2,a=r.decode(e.slice(o,o+n));o+=n;let s=r.decode(e.slice(o,o+i));return o+=i,{join_ref:null,ref:null,topic:a,event:s,payload:e.slice(o,e.byteLength)}}},x=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||1e4,this.transport=t.transport||a.WebSocket||y,this.establishedConnections=0,this.defaultEncoder=w.encode.bind(w),this.defaultDecoder=w.decode.bind(w),this.closeWasClean=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==y?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;o&&o.addEventListener&&(o.addEventListener("pagehide",e=>{this.conn&&(this.disconnect(),r=this.connectClock)}),o.addEventListener("pageshow",e=>{r===this.connectClock&&(r=null,this.connect())})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=i(t.params||{}),this.endPoint=`${e}/${p}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new m(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return y}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=b.appendParams(b.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,r){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(e,t,r)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=i(e)),this.conn||(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(e,t,r){this.logger(e,t,r)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),r=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let n=this.onMessage(i=>{i.ref===t&&(this.off([n]),e(Date.now()-r))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),1e3,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,r){if(!this.conn)return e&&e();this.waitForBufferDone(()=>{this.conn&&(t?this.conn.close(t,r||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t=1){if(5===t||!this.conn||!this.conn.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(e,t+1)},150*t)}waitForSocketClosed(e,t=1){if(5===t||!this.conn||this.conn.readyState===s.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(e,t+1)},150*t)}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||1e3===t||this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(e))}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,r=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,n])=>{n(e,t,r)}),(t===this.transport||r>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(f.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case s.connecting:return"connecting";case s.open:return"open";case s.closing:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t.joinRef()!==e.joinRef())}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([t])=>-1===e.indexOf(t))}channel(e,t={}){let r=new v(e,t,this);return this.channels.push(r),r}push(e){if(this.hasLogger()){let{topic:t,event:r,payload:n,ref:i,join_ref:o}=e;this.log("push",`${t} ${r} (${o}, ${i})`,n)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){(!this.pendingHeartbeatRef||this.isConnected())&&(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:r,payload:n,ref:i,join_ref:o}=e;i&&i===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${r} ${i&&"("+i+")"||""}`,n);for(let e=0;e<this.channels.length;e++){let a=this.channels[e];a.isMember(t,r,n,o)&&a.trigger(r,n,i,o)}for(let t=0;t<this.stateChangeCallbacks.message.length;t++){let[,r]=this.stateChangeCallbacks.message[t];r(e)}})}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}},_=r(67294);let C=_.createContext(null);function A(e){let{children:t,options:r,url:i}=e,[o,a]=(0,_.useState)(null);return(0,_.useEffect)(()=>{if(!i)return;let e=new x(i,r);return e.connect(),a(e),()=>{e.disconnect(),a(null)}},[r,i]),(0,n.jsx)(C.Provider,{value:o,children:t})}function k(){let e=_.useContext(C);if(void 0===e)throw Error("useSocket must be used within a SocketProvider");return e}},69391:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(67294),i=r(64372);let o={};function a(e){let{topic:t,params:r,isDisabled:a,onJoin:s,onSocketClose:l,onSocketError:c}=e,u=(0,i.sV)(),[d,h]=(0,n.useState)(),f=(0,n.useRef)(),p=(0,n.useRef)(),g=(0,n.useRef)(s);return g.current=s,(0,n.useEffect)(()=>{let e=()=>{let e=[f.current,p.current].filter(Boolean);e.length>0&&(null==u||u.off(e))};return a?e():(f.current=l&&(null==u?void 0:u.onClose(l)),p.current=c&&(null==u?void 0:u.onError(c))),e},[l,c,u,a]),(0,n.useEffect)(()=>{a&&d&&(d.leave(),h(void 0))},[d,a]),(0,n.useEffect)(()=>{let e;if(null!==u&&!a&&t){if(o[t]){var r;e=o[t],null===(r=g.current)||void 0===r||r.call(g,e,"")}else e=u.channel(t),o[t]=e,e.join().receive("ok",t=>{var r;return null===(r=g.current)||void 0===r?void 0:r.call(g,e,t)}).receive("error",()=>{null==c||c()});return h(e),()=>{e.leave(),delete o[t],h(void 0)}}},[u,t,r,a,c]),d}},73149:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294);function i(e){let{channel:t,event:r,handler:i}=e,o=(0,n.useRef)(i);o.current=i,(0,n.useEffect)(()=>{if(void 0===t||void 0===r)return;let e=t.on(r,e=>{var t;null===(t=o.current)||void 0===t||t.call(o,e)});return()=>{t.off(r,e)}},[t,r])}},49066:function(e,t){"use strict";t.Z=e=>"/"===e[e.length-1]?e.slice(0,-1):e},62770:function(e,t,r){"use strict";r.d(t,{Y:function(){return o}});var n=r(46789);let i=n.Z.chain.currency.weiName||"wei",o={wei:i,gwei:"G".concat(i),ether:n.Z.chain.currency.symbol||"ETH"}},74206:function(e,t,r){"use strict";r.d(t,{T:function(){return n},y:function(){return i}});let n=/^0x[a-fA-F\d]{40}$/,i=42},61380:function(e,t,r){"use strict";var n,i,o,a,s=r(46789);let l={id:Number(s.Z.chain.id),name:null!==(n=s.Z.chain.name)&&void 0!==n?n:"",nativeCurrency:{decimals:s.Z.chain.currency.decimals,name:null!==(i=s.Z.chain.currency.name)&&void 0!==i?i:"",symbol:null!==(o=s.Z.chain.currency.symbol)&&void 0!==o?o:""},rpcUrls:{default:{http:[null!==(a=s.Z.chain.rpcUrl)&&void 0!==a?a:""]}},blockExplorers:{default:{name:"Blockscout",url:s.Z.app.baseUrl}},testnet:s.Z.chain.isTestnet};t.Z=l},89156:function(e,t,r){"use strict";var n=r(92321);let i=r(46789).Z.features.blockchainInteraction.isEnabled?n.m:function(){return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:"disconnected"}};t.Z=i},95414:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(67294),i=r(46789),o=r(77851),a=r(30170);function s(){let{wallet:e,provider:t}=(0,a.Z)();return n.useCallback(async()=>{if(!e||!t)return;let r="0x"+Number(i.Z.chain.id).toString(16);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:r}]})}catch(n){let e=(0,o.Z)(n);if(4902===(e&&"code"in e?e.code:void 0)){let e=[{chainId:r,chainName:i.Z.chain.name,nativeCurrency:{name:i.Z.chain.currency.name,symbol:i.Z.chain.currency.symbol,decimals:i.Z.chain.currency.decimals},rpcUrls:[i.Z.chain.rpcUrl],blockExplorerUrls:[i.Z.app.baseUrl]}];return await t.request({method:"wallet_addEthereumChain",params:e})}throw n}},[t,e])}},30170:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294);let i=r(46789).Z.features.web3Wallet;function o(){let[e,t]=n.useState(),[o,a]=n.useState(),s=n.useMemo(()=>async()=>{if(!i.isEnabled)return;if(!("ethereum"in window&&window.ethereum)){if(!(i.wallets.includes("metamask")&&window.navigator.userAgent.includes("Firefox")))return;{let{WindowPostMessageStream:e}=await Promise.all([r.e(1228),r.e(1396),r.e(4726)]).then(r.t.bind(r,21396,23)),{initializeProvider:t}=await Promise.all([r.e(8625),r.e(7212),r.e(8414)]).then(r.bind(r,7212));t({connectionStream:new e({name:"metamask-inpage",target:"metamask-contentscript"}),shouldShimWeb3:!0})}}if(!("ethereum"in window&&window.ethereum))return;let e=Array.isArray(window.ethereum.providers)?window.ethereum.providers:[window.ethereum];for(let r of i.wallets){let n=e.find(e=>"metamask"===r&&e.isMetaMask&&!!e._events||"coinbase"===r&&e.isCoinbaseWallet||"token_pocket"===r&&e.isTokenPocket);if(n){t(n),a(r);break}}},[]);return n.useEffect(()=>{s()},[s]),{provider:e,wallet:o}}},47411:function(e,t,r){"use strict";r.d(t,{Y:function(){return n}});let n={metamask:{name:"MetaMask",icon:"wallets/metamask"},coinbase:{name:"Coinbase Wallet",icon:"wallets/coinbase"},token_pocket:{name:"TokenPocket",icon:"wallets/token-pocket"}}},8875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(95039).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26208:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return n.actionAsyncStorage}});let n=r(8875);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95039:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return o}});let r=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class n{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}}let i=globalThis.AsyncLocalStorage;function o(){return i?new i:new n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70827:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return l.ReadonlyURLSearchParams},RedirectType:function(){return l.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return l.notFound},permanentRedirect:function(){return l.permanentRedirect},redirect:function(){return l.redirect},useParams:function(){return f},usePathname:function(){return d},useRouter:function(){return h},useSearchParams:function(){return u},useSelectedLayoutSegment:function(){return g},useSelectedLayoutSegments:function(){return p},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let n=r(67294),i=r(15320),o=r(51083),a=r(55363),s=r(74722),l=r(34138),c=r(23617);function u(){let e=(0,n.useContext)(o.SearchParamsContext);return(0,n.useMemo)(()=>e?new l.ReadonlyURLSearchParams(e):null,[e])}function d(){return(0,n.useContext)(o.PathnameContext)}function h(){let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function f(){return(0,n.useContext)(o.PathParamsContext)}function p(e){void 0===e&&(e="children");let t=(0,n.useContext)(i.LayoutRouterContext);return t?function e(t,r,n,i){let o;if(void 0===n&&(n=!0),void 0===i&&(i=[]),n)o=t[1][r];else{var l;let e=t[1];o=null!=(l=e.children)?l:Object.values(e)[0]}if(!o)return i;let c=o[0],u=(0,a.getSegmentValue)(c);return!u||u.startsWith(s.PAGE_SEGMENT_KEY)?i:(i.push(u),e(o,r,!1,i))}(t.tree,e):null}function g(e){void 0===e&&(e="children");let t=p(e);if(!t||0===t.length)return null;let r="children"===e?t[0]:t[t.length-1];return r===s.DEFAULT_SEGMENT_KEY?null:r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34138:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return a},RedirectType:function(){return n.RedirectType},notFound:function(){return i.notFound},permanentRedirect:function(){return n.permanentRedirect},redirect:function(){return n.redirect}});let n=r(2830),i=r(79399);class o extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class a extends URLSearchParams{append(){throw new o}delete(){throw new o}set(){throw new o}sort(){throw new o}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79399:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isNotFoundError:function(){return i},notFound:function(){return n}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78074:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return r}}),(n=r||(r={}))[n.SeeOther=303]="SeeOther",n[n.TemporaryRedirect=307]="TemporaryRedirect",n[n.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2830:function(e,t,r){"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return g},getRedirectTypeFromError:function(){return p},getURLFromRedirectError:function(){return f},isRedirectError:function(){return h},permanentRedirect:function(){return d},redirect:function(){return u}});let o=r(77218),a=r(26208),s=r(78074),l="NEXT_REDIRECT";function c(e,t,r){void 0===r&&(r=s.RedirectStatusCode.TemporaryRedirect);let n=Error(l);n.digest=l+";"+t+";"+e+";"+r+";";let i=o.requestAsyncStorage.getStore();return i&&(n.mutableCookies=i.mutableCookies),n}function u(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.TemporaryRedirect)}function d(e,t){void 0===t&&(t="replace");let r=a.actionAsyncStorage.getStore();throw c(e,t,(null==r?void 0:r.isAction)?s.RedirectStatusCode.SeeOther:s.RedirectStatusCode.PermanentRedirect)}function h(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,r,n,i]=e.digest.split(";",4),o=Number(i);return t===l&&("replace"===r||"push"===r)&&"string"==typeof n&&!isNaN(o)&&o in s.RedirectStatusCode}function f(e){return h(e)?e.digest.split(";",3)[2]:null}function p(e){if(!h(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function g(e){if(!h(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(i=n||(n={})).push="push",i.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6718:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return n}});let n=(0,r(95039).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77218:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getExpectedRequestStore:function(){return i},requestAsyncStorage:function(){return n.requestAsyncStorage}});let n=r(6718);function i(e){let t=n.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55363:function(e,t){"use strict";function r(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},46691:function(e,t){"use strict";var r,n,i,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ACTION_FAST_REFRESH:function(){return d},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return l},ACTION_SERVER_ACTION:function(){return h},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return n},PrefetchKind:function(){return r},isThenable:function(){return f}});let a="refresh",s="navigate",l="restore",c="server-patch",u="prefetch",d="fast-refresh",h="server-action";function f(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(i=r||(r={})).AUTO="auto",i.FULL="full",i.TEMPORARY="temporary",(o=n||(n={})).fresh="fresh",o.reusable="reusable",o.expired="expired",o.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64318:function(e,t,r){"use strict";function n(e,t,r,n){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}}),r(98364),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89577:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return w}});let n=r(38754),i=r(85893),o=n._(r(67294)),a=r(71401),s=r(2045),l=r(27420),c=r(57201),u=r(11443),d=r(9953),h=r(15320),f=r(52905),p=r(64318),g=r(90953),m=r(46691),v=new Set;function b(e,t,r,n,i,o){if(o||(0,s.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(v.has(i))return;v.add(i)}(async()=>o?e.prefetch(t,i):e.prefetch(t,r,n))().catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let w=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:v,children:w,prefetch:x=null,passHref:_,replace:C,shallow:A,scroll:k,locale:E,onClick:S,onMouseEnter:T,onTouchStart:I,legacyBehavior:P=!1,...O}=e;r=w,P&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let R=o.default.useContext(d.RouterContext),M=o.default.useContext(h.AppRouterContext),N=null!=R?R:M,j=!R,D=!1!==x,B=null===x?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,{href:L,as:$}=o.default.useMemo(()=>{if(!R){let e=y(l);return{href:e,as:v?y(v):e}}let[e,t]=(0,a.resolveHref)(R,l,!0);return{href:e,as:v?(0,a.resolveHref)(R,v):t||e}},[R,l,v]),U=o.default.useRef(L),z=o.default.useRef($);P&&(n=o.default.Children.only(r));let F=P?n&&"object"==typeof n&&n.ref:t,[q,H,W]=(0,f.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(z.current!==$||U.current!==L)&&(W(),z.current=$,U.current=L),q(e),F&&("function"==typeof F?F(e):"object"==typeof F&&(F.current=e))},[$,F,L,W,q]);o.default.useEffect(()=>{N&&H&&D&&b(N,L,$,{locale:E},{kind:B},j)},[$,L,H,E,D,null==R?void 0:R.locale,N,j,B]);let Z={ref:V,onClick(e){P||"function"!=typeof S||S(e),P&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,r,n,i,a,l,c,u){let{nodeName:d}=e.currentTarget;if("A"===d.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,s.isLocalURL)(r)))return;e.preventDefault();let h=()=>{let e=null==l||l;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:c,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})};u?o.default.startTransition(h):h()}(e,N,L,$,C,A,k,E,j)},onMouseEnter(e){P||"function"!=typeof T||T(e),P&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&(D||!j)&&b(N,L,$,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},j)},onTouchStart:function(e){P||"function"!=typeof I||I(e),P&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&(D||!j)&&b(N,L,$,{locale:E,priority:!0,bypassPrefetchedCheck:!0},{kind:B},j)}};if((0,c.isAbsoluteUrl)($))Z.href=$;else if(!P||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==E?E:null==R?void 0:R.locale,t=(null==R?void 0:R.isLocaleDomain)&&(0,p.getDomainLocale)($,e,null==R?void 0:R.locales,null==R?void 0:R.domainLocales);Z.href=t||(0,g.addBasePath)((0,u.addLocale)($,e,null==R?void 0:R.defaultLocale))}return P?o.default.cloneElement(n,Z):(0,i.jsx)("a",{...O,...Z,children:r})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52905:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(67294),i=r(33815),o="function"==typeof IntersectionObserver,a=new Map,s=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,c=l||!o,[u,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(o){if(c||u)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!u){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[c,r,t,u,h.current]),[f,u,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28864:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return s},noSSR:function(){return a}});let n=r(38754);r(85893),r(67294);let i=n._(r(56016));function o(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function s(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(o):Promise.resolve(o(()=>null))}):(delete n.webpack,delete n.modules,a(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60572:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(38754)._(r(67294)).default.createContext(null)},56016:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let n=r(38754)._(r(67294)),i=r(60572),o=[],a=[],s=!1;function l(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new c(e,r);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return l()})}function u(e,t){!function(){l();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=n.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),n.default.useMemo(()=>{var t;return a.loading||a.error?n.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:o.retry}):a.loaded?n.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>l(),u.displayName="LoadableComponent",n.default.forwardRef(u)}(l,e)}function d(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return d(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(s=!0,t());d(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=u.preloadReady;let h=u},23617:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return o}});let n=r(61757)._(r(67294)),i=n.default.createContext(null);function o(e){let t=(0,n.useContext)(i);t&&t(e)}},85169:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return eA}});var n=r(85893),i=r(81361),o=r(64487),a=r(30202),s=function(){return null},l=r(67294),c=r(46789),u=r(21626),d=r(40410),h=r(38705),f=r(70917),p=String.raw,g=p`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,m=()=>(0,n.jsx)(f.xB,{styles:g}),v=({scope:e=""})=>(0,n.jsx)(f.xB,{styles:p`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${g}
    `}),b=r(16810),y=r(12498),w=r(33179),x=r(21759),_=r(36597),C=r(91683);function A(e){let{cssVarsRoot:t,theme:r,children:i}=e,o=(0,l.useMemo)(()=>(0,w.c0)(r),[r]);return(0,n.jsxs)(C.a,{theme:o,children:[(0,n.jsx)(k,{root:t}),i]})}function k({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,n.jsx)(f.xB,{styles:e=>({[t]:e.__cssVars})})}var[E,S]=function(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,i=(0,l.createContext)(void 0);return i.displayName=n,[i.Provider,function e(){var n;let o=(0,l.useContext)(i);if(!o&&t){let t=Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return o},i]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function T(){let{colorMode:e}=(0,y.If)();return(0,n.jsx)(f.xB,{styles:t=>{let r=(0,x.Wf)(t,"styles.global"),n=(0,_.Pu)(r,{theme:t,colorMode:e});if(n)return(0,w.iv)(n)(t)}})}var I=r(13272),P=r(81607),O=e=>{let{children:t,colorModeManager:r,portalZIndex:i,resetScope:o,resetCSS:a=!0,theme:s={},environment:l,cssVarsRoot:c,disableEnvironment:u,disableGlobalStyle:d}=e,h=(0,n.jsx)(P.u,{environment:l,disabled:u,children:t});return(0,n.jsx)(A,{theme:s,cssVarsRoot:c,children:(0,n.jsxs)(I.SG,{colorModeManager:r,options:s.config,children:[a?(0,n.jsx)(v,{scope:o}):(0,n.jsx)(m,{}),!d&&(0,n.jsx)(T,{}),i?(0,n.jsx)(b.h,{zIndex:i,children:h}):h]})})},R=r(44069),M=r(8128),N=r(35155),j=r(52366),D=r(25432),B=r(15947),L=r(24262),$=r(75350),U={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},z=(0,l.memo)(e=>{let{id:t,message:r,onCloseComplete:i,onRequestRemove:o,requestClose:a=!1,position:s="bottom",duration:c=5e3,containerStyle:u,motionVariants:d=U,toastSpacing:h="0.5rem"}=e,[f,p]=(0,l.useState)(c),g=(0,B.hO)();(0,j.r)(()=>{g||null==i||i()},[g]),(0,j.r)(()=>{p(c)},[c]);let m=()=>{g&&o()};(0,l.useEffect)(()=>{g&&a&&o()},[g,a,o]),function(e,t){let r=(0,N.W)(e);(0,l.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(m,f);let v=(0,l.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:h,...u}),[u,h]),b=(0,l.useMemo)(()=>(0,M.sv)(s),[s]);return(0,n.jsx)(L.E.div,{layout:!0,className:"chakra-toast",variants:d,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>p(null),onHoverEnd:()=>p(c),custom:{position:s},style:b,children:(0,n.jsx)($.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:(0,D.Pu)(r,{id:t,onClose:m})})})});z.displayName="ToastComponent";var F=r(9222),q=r(21190),H=r(49598),[W,V]=(0,r(55227).k)({name:"ToastOptionsContext",strict:!1}),Z=e=>{let t=(0,l.useSyncExternalStore)(F.fp.subscribe,F.fp.getState,F.fp.getState),{motionVariants:r,component:i=z,portalProps:o}=e,a=Object.keys(t).map(e=>{let o=t[e];return(0,n.jsx)("div",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:(0,M.IW)(e),children:(0,n.jsx)(q.M,{initial:!1,children:o.map(e=>(0,n.jsx)(i,{motionVariants:r,...e},e.id))})},e)});return(0,n.jsx)(H.h,{...o,children:a})},G=e=>function({children:t,theme:r=e,toastOptions:i,...o}){return(0,n.jsxs)(O,{theme:r,...o,children:[(0,n.jsx)(W,{value:null==i?void 0:i.defaultOptions,children:t}),(0,n.jsx)(Z,{...i})]})},K=G(R.rS);G(R.wE);var Y=r(54427);function Q(e){let{cookies:t,children:r}=e,i="string"==typeof t?(0,h.Ty)("undefined"!=typeof document?document.cookie:t):h.aN;return(0,n.jsx)(K,{colorModeManager:i,theme:Y.Z,children:r})}var J=r(32012),X=r(95087),ee=r(39513),et=r(78424);let er=(()=>{let e=c.Z.features.growthBook;if(e.isEnabled)return new i.Gr({apiHost:"https://cdn.growthbook.io",clientKey:e.clientKey,enableDevMode:c.Z.app.isDev,attributes:{id:ee.pB(),chain_id:c.Z.chain.id},trackingCallback:(e,t)=>{var r,n;r=e.key,!(null!==(n=en())&&void 0!==n?n:[]).some(e=>e===r)&&(function(e){var t;let r=[e,...null!==(t=en())&&void 0!==t?t:[]].slice(0,et.N);try{window.localStorage.setItem(et.U,JSON.stringify(r))}catch(e){}}(e.key),ee.Kz(ee.GM.EXPERIMENT_STARTED,{"Experiment name":e.key,"Variant name":t.value,Source:"growthbook"}))}})})();function en(){let e=window.localStorage.getItem(et.U);if(e)try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch(e){return}}var ei=r(2525),eo=r(39332),ea=r(11163),es=r(31251),el=r(64372),ec=r(15219),eu=r(23100),ed=l.memo(e=>{let{children:t}=e,r=(0,y.ff)("white","black");return(0,n.jsx)(eu.xu,{bgColor:r,children:t})}),eh=r(4298),ef=r.n(eh);let ep=c.Z.features.googleAnalytics;var eg=l.memo(()=>{if(!ep.isEnabled)return null;let e=ep.propertyId;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ef(),{strategy:"lazyOnload",src:"https://www.googletagmanager.com/gtag/js?id=".concat(e)}),(0,n.jsx)(ef(),{strategy:"lazyOnload",id:"google-analytics",children:"\n          window.dataLayer = window.dataLayer || [];\n          function gtag(){dataLayer.push(arguments);}\n          gtag('js', new Date());\n          gtag('config', window.__envs.NEXT_PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID);\n        "})]})}),em=r(74596),ev=r(44319),eb=r(18473),ey=r(62307),ew=e=>{let{children:t}=e;return(0,n.jsxs)(ey.W2,{children:[(0,n.jsx)(ey._N,{}),(0,n.jsx)(ey.l2,{}),(0,n.jsx)(eb.Z,{}),(0,n.jsxs)(ey.z7,{children:[(0,n.jsx)(ey.Ke,{}),(0,n.jsxs)(ey.EY,{children:[(0,n.jsx)(em.Z,{}),(0,n.jsx)(ev.Z,{}),(0,n.jsx)(ec.Z,{children:(0,n.jsx)(ey.VY,{children:t})})]})]}),(0,n.jsx)(ey.$_,{})]})},ex=r(95890);let e_=Number.prototype.toLocaleString;Number.prototype.toLocaleString=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e_.call(this,"en",...r)};let eC={h:"100vh",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"fit-content",maxW:"800px",margin:{base:"0 auto",lg:"0 auto"},p:{base:4,lg:0}};var eA=function(e){var t;let{Component:r,pageProps:h}=e;l.useEffect(()=>{null==er||er.setAttributes({...er.getAttributes(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,language:window.navigator.language}),null==er||er.loadFeatures({timeout:ei.sh})},[]),function(){let e=(0,ea.useRouter)(),t=(0,eo.usePathname)(),r=(0,es.Z)(e.query.tab);l.useEffect(()=>{c.Z.features.metasuites.isEnabled&&window.postMessage({source:"APP_ROUTER",type:"PATHNAME_CHANGED"},window.location.origin)},[t]),l.useEffect(()=>{c.Z.features.metasuites.isEnabled&&window.postMessage({source:"APP_ROUTER",type:"TAB_CHANGED"},window.location.origin)},[r])}();let f=(0,u.Z)(),p=l.useCallback(e=>{o.Tb(e)},[]),g=null!==(t=r.getLayout)&&void 0!==t?t:e=>(0,n.jsx)(ew,{children:e});return(0,n.jsx)(Q,{cookies:h.cookies,children:(0,n.jsx)(ec.Z,{...eC,onError:p,Container:ed,children:(0,n.jsx)(ex.Z,{children:(0,n.jsx)(d.i,{pageProps:h,children:(0,n.jsxs)(a.aH,{client:f,children:[(0,n.jsx)(i.Ny,{growthbook:er,children:(0,n.jsx)(X.Y,{children:(0,n.jsx)(el.wP,{url:"".concat(c.Z.api.socket).concat(c.Z.api.basePath,"/socket/v2"),children:(0,n.jsx)(J.S,{children:g((0,n.jsx)(r,{...h}))})})})}),(0,n.jsx)(s,{buttonPosition:"bottom-left",position:"left"}),(0,n.jsx)(eg,{})]})})})})})}},19154:function(e,t,r){"use strict";r.d(t,{a:function(){return i},q:function(){return n}});let n={author:"StubApp Inc.",id:"stub-app",title:"My cool app name",logo:"",categories:["Bridge"],shortDescription:"Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",site:"https://example.com",description:"Hop is a scalable rollup-to-rollup general token bridge. It allows users to send tokens from one rollup or sidechain to another almost immediately without having to wait for the networks challenge period.",external:!0,url:"https://example.com"},i=Array(9).fill("Bridge").map((e,t)=>e+t)},25448:function(e,t,r){"use strict";r.d(t,{OJ:function(){return n},SX:function(){return i},_G:function(){return o}});let n={average_block_time:14346,coin_price:"1807.68",coin_price_change_percentage:42,gas_prices:{average:{fiat_price:"1.01",price:20.41,time:12283,base_fee:2.22222,priority_fee:12.424242},fast:{fiat_price:"1.26",price:25.47,time:9321,base_fee:4.44444,priority_fee:22.242424},slow:{fiat_price:"0.97",price:19.55,time:24543,base_fee:1.11111,priority_fee:7.8909}},gas_price_updated_at:"2022-11-11T11:09:49.051171Z",gas_prices_update_in:3e5,gas_used_today:"0",market_cap:"0",network_utilization_percentage:22.56,static_gas_price:null,total_addresses:"28634064",total_blocks:"8940150",total_gas_used:"0",total_transactions:"193823272",transactions_today:"0",tvl:"1767425.102766552"},i={sections:[{id:"placeholder",title:"Placeholder",charts:[{id:"chart_0",title:"Average transaction fee",description:"The average amount in ETH spent per transaction",units:"ETH",resolutions:["DAY","MONTH"]},{id:"chart_1",title:"Transactions fees",description:"Amount of tokens paid as fees",units:"ETH",resolutions:["DAY","MONTH"]},{id:"chart_2",title:"New transactions",description:"New transactions number",units:void 0,resolutions:["DAY","MONTH"]},{id:"chart_3",title:"Transactions growth",description:"Cumulative transactions number",units:void 0,resolutions:["DAY","MONTH"]}]}]},o={id:"stub",value:"9074405",title:"Placeholder Counter",description:"Placeholder description",units:""}},3060:function(e,t){"use strict";t.Z={green:{100:"#C6F6D5",400:"#48BB78",500:"#38A169",600:"#25855A"},blue:{50:"#EBF8FF",100:"#BEE3F8",200:"#90CDF4",300:"#63B3ED",400:"#4299E1",500:"#3182CE",600:"#2B6CB0",700:"#2C5282",800:"#2A4365",900:"#1A365D"},red:{500:"#E53E3E",100:"#FED7D7"},orange:{100:"#FEEBCB"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},black:"#101112",white:"#ffffff",blackAlpha:{50:"RGBA(16, 17, 18, 0.04)",100:"RGBA(16, 17, 18, 0.06)",200:"RGBA(16, 17, 18, 0.08)",300:"RGBA(16, 17, 18, 0.16)",400:"RGBA(16, 17, 18, 0.24)",500:"RGBA(16, 17, 18, 0.36)",600:"RGBA(16, 17, 18, 0.48)",700:"RGBA(16, 17, 18, 0.64)",800:"RGBA(16, 17, 18, 0.80)",900:"RGBA(16, 17, 18, 0.92)"},github:"#171923",telegram:"#2775CA",linkedin:"#1564BA",discord:"#9747FF",slack:"#1BA27A",twitter:"#000000",opensea:"#2081E2",facebook:"#4460A0",medium:"#231F20",reddit:"#FF4500",celo:"#FCFF52"}},31149:function(e,t,r){"use strict";r.d(t,{OW:function(){return c},mJ:function(){return u}});var n,i,o,a,s=r(44069),l=r(46789);let c=null!==(o=null===(n=l.Z.UI.fonts.body)||void 0===n?void 0:n.name)&&void 0!==o?o:"Inter",u=null!==(a=null===(i=l.Z.UI.fonts.heading)||void 0===i?void 0:i.name)&&void 0!==a?a:"Poppins",d={fonts:{heading:"".concat(u,", ").concat(s.rS.fonts.heading),body:"".concat(c,", ").concat(s.rS.fonts.body)},textStyles:{h2:{fontSize:["32px"],fontWeight:"500",lineHeight:"40px",fontFamily:"heading"},h3:{fontSize:"24px",fontWeight:"500",lineHeight:"32px",fontFamily:"heading"},h4:{fontSize:"md",fontWeight:"500",lineHeight:"24px",fontFamily:"heading"}}};t.ZP=d},83812:function(e,t){"use strict";t.Z={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,sticky1:1101,sticky2:1102,banner:1200,overlay:1300,modal:1400,popover:1500,tooltip:1550,skipLink:1600,toast:1700}},54427:function(e,t,r){"use strict";r.d(t,{Z:function(){return tJ}});var n,i,o,a,s,l,c,u,d,h,f,p,g=r(25432),m=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],v=r(44069),b=r(38554);function y(e){return"function"==typeof e}var w=e=>function(...t){var r;let n=[...t],i=t[t.length-1];return(r=i,(0,g.Kn)(r)&&m.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&n.length>1)?n=n.slice(0,n.length-1):i=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...n.map(e=>t=>y(e)?e(t):function(...e){return b({},...e,_)}(t,e)))(i)},x=w(v.rS);function _(e,t,r,n){if((y(e)||y(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>b({},y(e)?e(...r):e,y(t)?t(...r):t,_)}w(v.wE);var C=r(30871),A=r(33179),k=r(47128);let{definePartsStyle:E,defineMultiStyleConfig:S}=(0,A.D)(C.aP.keys),T=(0,A.gJ)("alert-fg"),I=(0,A.gJ)("alert-bg"),P=E({container:{bg:I.reference,borderRadius:"md",px:6,py:3},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:T.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:T.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),O=S({baseStyle:P,variants:{subtle:E(e=>{let{colorScheme:t}=e,r=function(e){let{theme:t,colorScheme:r}=e,n=(0,k.DZ)("".concat(r,".200"),.16)(t);return{light:"colors.".concat(r,".100"),dark:n}}(e);return{container:{[T.variable]:"gray"===t?"colors.blackAlpha.800":"colors.".concat(t,".500"),[I.variable]:"gray"===t?"colors.blackAlpha.100":r.light,_dark:{[T.variable]:"gray"===t?"colors.whiteAlpha.800":"colors.".concat(t,".200"),[I.variable]:"gray"===t?"colors.whiteAlpha.200":r.dark}}}}),solid:E(e=>{let{colorScheme:t}=e;return{container:{[T.variable]:"colors.white",[I.variable]:"colors.".concat(t,".500"),_dark:{[T.variable]:"colors.gray.900",[I.variable]:"colors.".concat(t,".200")},color:T.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}});var R=r(75904);let M=(0,A.k0)({fontSize:"xs",borderRadius:"sm",fontWeight:"bold"}),N=(0,A.k0)(e=>{let{colorScheme:t}=e;return"gray"===t?{bg:(0,R.x)("blackAlpha.50","whiteAlpha.100")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e)}:"gray-blue"===t?{bg:(0,R.x)("gray.100","gray.800")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e)}:{bg:(0,R.x)("".concat(t,".50"),"".concat(t,".800"))(e),color:(0,R.x)("".concat(t,".500"),"".concat(t,".100"))(e)}}),j=(0,A.fj)({baseStyle:M,variants:{subtle:N},defaultProps:{variant:"subtle",colorScheme:"gray"}});var D=r(36597),B=r(46789);let L=(0,A.k0)(e=>{let{colorScheme:t}=e,r="".concat(t,".600"),n="".concat(t,".400");return{bg:r,color:"white",_hover:{bg:n,_disabled:{bg:r}},_disabled:{opacity:.2},_active:{bg:n},fontWeight:600}}),$=(0,A.k0)(e=>{let{colorScheme:t}=e,r="gray"===t,n="transparent",i=r?(0,R.x)("blackAlpha.800","whiteAlpha.800")(e):(0,R.x)("".concat(t,".600"),"".concat(t,".300"))(e),o=r?(0,R.x)("gray.200","gray.600")(e):(0,R.x)("".concat(t,".600"),"".concat(t,".300"))(e),a=r?(0,R.x)("blue.50","gray.600")(e):(0,R.x)("".concat(t,".50"),"gray.600")(e),s=(0,R.x)("blue.600","gray.50")(e);return{color:i,fontWeight:e.fontWeight||600,borderWidth:e.borderWidth||"2px",borderStyle:"solid",borderColor:o,bg:n,_hover:{color:"link_hovered",borderColor:"link_hovered",bg:n,span:{color:"link_hovered"},_disabled:{color:i,borderColor:o}},_disabled:{opacity:.2},_active:{color:"link_hovered",borderColor:"link_hovered",bg:n,span:{color:"link_hovered"},_disabled:{color:"link_hovered",borderColor:"link_hovered"}},"\n      &[data-selected=true],\n      &[data-selected=true][aria-selected=true]\n    ":{bg:a,color:s,borderColor:a}}}),U=(0,A.k0)(e=>{let t=(0,D.Pu)($,e);return{color:t.color,_hover:{color:t._hover.color}}}),z=(0,A.k0)(e=>{let{colorScheme:t}=e,r=(0,R.x)("".concat(t,".50"),"gray.800")(e);return{bg:"transparent",color:(0,R.x)("".concat(t,".700"),"gray.400")(e),_active:{color:(0,R.x)("".concat(t,".700"),"gray.50")(e),bg:(0,R.x)("".concat(t,".50"),"gray.800")(e)},_hover:{color:"".concat(t,".400"),_active:{bg:e.isActive?r:"transparent",color:(0,R.x)("".concat(t,".700"),"gray.50")(e)}}}}),F=(0,A.k0)(e=>{let{colorScheme:t}=e;return"gray"===t?{bg:(0,R.x)("blackAlpha.200","whiteAlpha.200")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e),_hover:{color:"link_hovered",_disabled:{color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e),bg:(0,R.x)("blackAlpha.200","whiteAlpha.200")(e)}}}:{bg:"".concat(t,".100"),color:"".concat(t,".600"),_hover:{color:"link_hovered"}}}),q=(0,A.k0)(e=>{var t,r,n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,C,A,k,E,S,T,I,P,O,M,N,j,D,L,$;let U=null===(t=B.Z.UI.homepage.heroBanner)||void 0===t?void 0:t.button;return{bg:(0,R.x)((null==U?void 0:null===(n=U._default)||void 0===n?void 0:null===(r=n.background)||void 0===r?void 0:r[0])||"blue.600",(null==U?void 0:null===(o=U._default)||void 0===o?void 0:null===(i=o.background)||void 0===i?void 0:i[1])||(null==U?void 0:null===(s=U._default)||void 0===s?void 0:null===(a=s.background)||void 0===a?void 0:a[0])||"blue.600")(e),color:(0,R.x)((null==U?void 0:null===(c=U._default)||void 0===c?void 0:null===(l=c.text_color)||void 0===l?void 0:l[0])||"white",(null==U?void 0:null===(d=U._default)||void 0===d?void 0:null===(u=d.text_color)||void 0===u?void 0:u[1])||(null==U?void 0:null===(f=U._default)||void 0===f?void 0:null===(h=f.text_color)||void 0===h?void 0:h[0])||"white")(e),_hover:{bg:(0,R.x)((null==U?void 0:null===(g=U._hover)||void 0===g?void 0:null===(p=g.background)||void 0===p?void 0:p[0])||"blue.400",(null==U?void 0:null===(v=U._hover)||void 0===v?void 0:null===(m=v.background)||void 0===m?void 0:m[1])||(null==U?void 0:null===(y=U._hover)||void 0===y?void 0:null===(b=y.background)||void 0===b?void 0:b[0])||"blue.400")(e),color:(0,R.x)((null==U?void 0:null===(x=U._hover)||void 0===x?void 0:null===(w=x.text_color)||void 0===w?void 0:w[0])||"white",(null==U?void 0:null===(C=U._hover)||void 0===C?void 0:null===(_=C.text_color)||void 0===_?void 0:_[1])||(null==U?void 0:null===(k=U._hover)||void 0===k?void 0:null===(A=k.text_color)||void 0===A?void 0:A[0])||"white")(e)},"&[data-selected=true]":{bg:(0,R.x)((null==U?void 0:null===(S=U._selected)||void 0===S?void 0:null===(E=S.background)||void 0===E?void 0:E[0])||"blue.50",(null==U?void 0:null===(I=U._selected)||void 0===I?void 0:null===(T=I.background)||void 0===T?void 0:T[1])||(null==U?void 0:null===(O=U._selected)||void 0===O?void 0:null===(P=O.background)||void 0===P?void 0:P[0])||"blue.50")(e),color:(0,R.x)((null==U?void 0:null===(N=U._selected)||void 0===N?void 0:null===(M=N.text_color)||void 0===M?void 0:M[0])||"blackAlpha.800",(null==U?void 0:null===(D=U._selected)||void 0===D?void 0:null===(j=D.text_color)||void 0===j?void 0:j[1])||(null==U?void 0:null===($=U._selected)||void 0===$?void 0:null===(L=$.text_color)||void 0===L?void 0:L[0])||"blackAlpha.800")(e)}}}),H=(0,A.k0)(e=>({bgColor:"transparent",color:(0,R.x)("blackAlpha.800","gray.400")(e),borderColor:(0,R.x)("gray.300","gray.600")(e),borderWidth:e.borderWidth||"2px",borderStyle:"solid",_hover:{color:"link_hovered",borderColor:"link_hovered"},"&[data-selected=true]":{bgColor:(0,R.x)("blackAlpha.50","whiteAlpha.100")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e),borderColor:"transparent",borderWidth:e.borderWidth||"0px"},"&[data-selected=true][data-warning=true]":{bgColor:(0,R.x)("orange.100","orange.900")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e),borderColor:"transparent",borderWidth:e.borderWidth||"0px"}})),W=(0,A.k0)({fontWeight:600,borderRadius:"base",overflow:"hidden",_focusVisible:{boxShadow:{base:"none",lg:"outline"}}}),V={lg:(0,A.k0)({h:12,minW:"unset",fontSize:"lg",px:6}),md:(0,A.k0)({h:10,minW:"unset",fontSize:"md",px:4}),sm:(0,A.k0)({h:8,minW:"unset",fontSize:"sm",px:3}),xs:(0,A.k0)({h:6,minW:"unset",fontSize:"xs",px:2})},Z=(0,A.fj)({baseStyle:W,variants:{solid:L,outline:$,simple:U,ghost:z,subtle:F,hero:q,header:H},sizes:V,defaultProps:{variant:"solid",size:"md",colorScheme:"blue"}}),{definePartsStyle:G,defineMultiStyleConfig:K}=(0,A.D)(C.TB.keys),Y=(0,A.gJ)("checkbox-size"),Q=(0,A.k0)(e=>{let{colorScheme:t}=e;return{_checked:{bg:(0,R.x)("".concat(t,".500"),"".concat(t,".300"))(e),borderColor:(0,R.x)("".concat(t,".500"),"".concat(t,".300"))(e),_hover:{bg:(0,R.x)("".concat(t,".600"),"".concat(t,".400"))(e),borderColor:(0,R.x)("".concat(t,".600"),"".concat(t,".400"))(e)}},_indeterminate:{bg:(0,R.x)("".concat(t,".500"),"".concat(t,".300"))(e),borderColor:(0,R.x)("".concat(t,".500"),"".concat(t,".300"))(e)}}}),J={sm:G({control:{[Y.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:G({control:{[Y.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:G({control:{[Y.variable]:"sizes.5"},label:{fontSize:"md"},icon:{fontSize:"2xs"}})},X=(0,A.k0)({_disabled:{opacity:.2}}),ee=K({baseStyle:G(e=>({label:X,control:(0,D.Pu)(Q,e)})),sizes:J});var et=r(30618);let{definePartsStyle:er,defineMultiStyleConfig:en}=(0,A.D)(C.iU.keys),ei=(0,et.Z)(),eo=(0,A.k0)({...ei,bg:"blackAlpha.800",zIndex:"overlay"}),ea=(0,A.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},...ei,zIndex:"modal",maxH:"100vh",bg:(0,R.x)("white","gray.900")(e),color:"inherit",boxShadow:(0,R.x)("lg","dark-lg")(e)}}),es=en({baseStyle:er(e=>({overlay:eo,dialog:(0,D.Pu)(ea,e)}))});var el=r(16685),ec={sm:{field:{px:"0",height:"36px"}},md:{field:{px:"0",height:"56px"}},lg:{field:{px:"0",height:"76px"}}};let eu=(0,A.k0)({display:"flex",fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.2}}),ed=(0,A.k0)(e=>{let t=(0,el.Z)(e);return{left:"2px",top:"2px",zIndex:2,position:"absolute",borderRadius:"base",boxSizing:"border-box",color:t.placeholder.default.color,backgroundColor:e.bgColor||e.backgroundColor||"transparent",pointerEvents:"none",margin:0,transformOrigin:"top left",transitionProperty:"font-size, line-height, padding, top, background-color",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",_focusWithin:{backgroundColor:e.bgColor||e.backgroundColor||"transparent",color:t.placeholder.default.color,fontSize:"xs",lineHeight:"16px",borderTopRightRadius:"none","& svg":{width:"16px",height:"16px"}},"& svg":{transitionProperty:"width, height",transitionDuration:"normal",transitionTimingFunction:"ease",width:"24px",height:"24px",mr:"2"}}}),eh={lg:(0,A.k0)(e=>"floating"===e.variant?{fontSize:"md",lineHeight:"24px",padding:"26px 4px 26px 24px",right:"22px",_focusWithin:{padding:"16px 0 2px 24px"},"&[data-fancy=true]":{right:"36px"}}:{}),md:(0,A.k0)(e=>"floating"===e.variant?{fontSize:"md",lineHeight:"20px",padding:"18px 4px 18px 16px",right:"22px",_focusWithin:{padding:"10px 0 2px 16px"},"&[data-fancy=true]":{right:"36px"}}:{})},ef=(0,A.fj)({variants:{floating:ed},baseStyle:eu,sizes:eh});var ep=r(28129);function eg(e){let t=(0,el.Z)(e),r=(0,et.Z)();return{border:"2px solid",...t.input.filled,...r,_hover:{...t.input.hover},_readOnly:{boxShadow:"none !important",userSelect:"all",pointerEvents:"none",...t.input.readOnly,_hover:{...t.input.readOnly},_focus:{...t.input.readOnly}},_disabled:{...t.input.disabled,cursor:"not-allowed",":-webkit-autofill":{"-webkit-box-shadow":"0 0 0px 1000px ".concat((0,R.x)("rgba(16, 17, 18, 0.08)","rgba(255, 255, 255, 0.08)")(e)," inset")}},_invalid:{...t.input.error,boxShadow:"none",_placeholder:{color:t.placeholder.error.color}},_focusVisible:{...t.input.focus,zIndex:1,boxShadow:"md"},_placeholder:{color:t.placeholder.default.color},":placeholder-shown:not(:focus-visible):not(:hover):not([aria-invalid=true]):not([aria-readonly=true])":{...t.input.empty},':not(:placeholder-shown)[value=""]:not(:focus-visible):not(:hover):not([aria-invalid=true]):not([aria-readonly=true])':{...t.input.empty},":-webkit-autofill":{transition:"background-color 5000s ease-in-out 0s"},":-webkit-autofill:hover":{transition:"background-color 5000s ease-in-out 0s"},":-webkit-autofill:focus":{transition:"background-color 5000s ease-in-out 0s"}}}let{definePartsStyle:em,defineMultiStyleConfig:ev}=(0,A.D)(C.X.keys),eb={xs:(0,A.k0)({fontSize:"md",lineHeight:"24px",px:"8px",py:"4px",h:"32px",borderRadius:"base"}),sm:(0,A.k0)({fontSize:"md",lineHeight:"24px",px:"8px",py:"12px",h:"40px",borderRadius:"base"}),sm_md:(0,A.k0)({fontSize:"md",lineHeight:"24px",px:"8px",py:"12px",h:"48px",borderRadius:"base"}),md:(0,A.k0)({fontSize:"md",lineHeight:"20px",px:"20px",py:"20px",h:"60px",borderRadius:"base"}),lg:(0,A.k0)({fontSize:"md",lineHeight:"20px",px:"24px",py:"28px",h:"80px",borderRadius:"base"})},ey=em(e=>{let t=(0,et.Z)();return{field:eg(e),addon:{border:"2px solid",borderColor:"transparent",bg:(0,R.x)("blackAlpha.100","whiteAlpha.200")(e),color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e),...t}}}),ew=ev({sizes:{xs:em({field:eb.xs,addon:eb.xs}),sm:em({field:eb.sm,addon:eb.sm}),sm_md:em({field:eb.sm_md,addon:eb.sm_md}),md:em({field:eb.md,addon:eb.md}),lg:em({field:eb.lg,addon:eb.lg})},variants:{outline:ey},defaultProps:{size:"md"}});ep.I.defaultProps={...ep.I.defaultProps,placeholder:" "};var ex=r(41753);let e_={md:(0,A.k0)({fontSize:"md",lineHeight:"20px",h:"160px",borderRadius:"base"}),lg:(0,A.k0)({fontSize:"md",lineHeight:"20px",px:"24px",py:"28px",h:"160px",borderRadius:"base"})},eC=(0,A.fj)({sizes:e_,variants:{outline:(0,A.k0)(eg)},defaultProps:{variant:"outline"}});ex.g.defaultProps={...ex.g.defaultProps,placeholder:" "};let{definePartsStyle:eA,defineMultiStyleConfig:ek}=(0,A.D)(C.TJ.keys);function eE(e,t){var r,n,i,o,a,s;let l=(0,el.Z)(t),c={...null===(n=ef.variants)||void 0===n?void 0:null===(r=n.floating)||void 0===r?void 0:r.call(n,t)._focusWithin,...null===(i=ef.sizes)||void 0===i?void 0:i[e](t)._focusWithin},u=(()=>{switch(e){case"md":return{paddingTop:"26px",paddingBottom:"10px"};case"lg":return{paddingTop:"38px",paddingBottom:"18px"}}})(),d=(()=>{switch(e){case"md":return"16px";case"lg":return"24px"}})();return{container:{_focusWithin:{label:c,"input, textarea":u},"&[data-active=true] label":c,label:(null===(o=ef.sizes)||void 0===o?void 0:o[e](t))||{},"input:not(:placeholder-shown) + label, textarea:not(:placeholder-shown) + label":c,"textarea:not(:placeholder-shown) + label":{bgColor:l.input.filled.bgColor},"\n        input[readonly] + label,\n        textarea[readonly] + label,\n        &[aria-readonly=true] label\n      ":{bgColor:l.input.readOnly.bgColor},"\n        input[aria-invalid=true] + label, \n        textarea[aria-invalid=true] + label,\n        &[aria-invalid=true] label\n      ":{color:l.placeholder.error.color},"\n        input[disabled] + label,\n        textarea[disabled] + label,\n        &[aria-disabled=true] label\n      ":{color:l.placeholder.disabled.color},input:null===(a=ew.sizes)||void 0===a?void 0:a[e].field,"input[aria-autocomplete=list]":ec[e].field,textarea:null===(s=eC.sizes)||void 0===s?void 0:s[e],"input, textarea":{padding:d},"input:not(:placeholder-shown), textarea:not(:placeholder-shown)":u,"input:not(:placeholder-shown) + label .chakra-form__required-indicator, textarea:not(:placeholder-shown) + label .chakra-form__required-indicator":{color:l.placeholder.default.color},"\n        input[aria-invalid=true] + label .chakra-form__required-indicator,\n        textarea[aria-invalid=true] + label .chakra-form__required-indicator,\n        &[aria-invalid=true] .chakra-form__required-indicator\n      ":{color:l.placeholder.error.color},"\n        input[disabled] + label .chakra-form__required-indicator,\n        textarea[disabled] + label .chakra-form__required-indicator,\n        &[aria-disabled=true] .chakra-form__required-indicator\n      ":{color:l.placeholder.disabled.color}}}}let eS=eA(()=>({requiredIndicator:{marginStart:0,color:"gray.500"}})),eT=ek({baseStyle:eS,variants:{floating:eA(e=>{var t;return{container:{label:(null===(t=ef.variants)||void 0===t?void 0:t.floating(e))||{}}}})},sizes:{lg:eA(e=>"floating"===e.variant?eE("lg",e):{}),md:eA(e=>"floating"===e.variant?eE("md",e):{})},defaultProps:{size:"md"}}),eI={"2xl":(0,A.k0)({fontSize:"48px",lineHeight:"60px"}),xl:(0,A.k0)({fontSize:"40px",lineHeight:"48px"}),lg:(0,A.k0)({fontSize:"32px",lineHeight:"40px",letterSpacing:"-0.5px"}),md:(0,A.k0)({fontSize:"24px",lineHeight:"32px"}),sm:(0,A.k0)({fontSize:"18px",lineHeight:"24px"}),xs:(0,A.k0)({fontSize:"14px",lineHeight:"20px"})},eP=(0,A.fj)({sizes:eI,baseStyle:e=>({fontWeight:"500",color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e)})}),eO=(0,A.k0)((0,et.Z)()),eR=(0,A.k0)(e=>({color:"link",_hover:{color:"link_hovered",textDecorationStyle:e.textDecorationStyle||"solid"}})),eM=(0,A.k0)(e=>({color:(0,R.x)("gray.600","gray.500")(e),_hover:{color:(0,R.x)("gray.600","gray.400")(e)}})),eN=(0,A.fj)({variants:{primary:eR,secondary:eM},defaultProps:{variant:"primary"},baseStyle:eO}),{defineMultiStyleConfig:ej,definePartsStyle:eD}=(0,A.D)(C.rk.keys),eB=(0,A.gJ)("menu-bg"),eL=(0,A.gJ)("menu-shadow"),e$=ej({baseStyle:eD({list:(0,A.k0)({[eB.variable]:"#fff",[eL.variable]:"shadows.2xl",_dark:{[eB.variable]:"colors.gray.900",[eL.variable]:"shadows.dark-lg"},borderWidth:"0",bg:eB.reference,boxShadow:eL.reference}),item:(0,A.k0)({_focus:{[eB.variable]:"transparent",_dark:{[eB.variable]:"transparent"}},_hover:{[eB.variable]:"colors.blue.50",_dark:{[eB.variable]:"colors.whiteAlpha.100"}},bg:eB.reference})})});var eU=r(34151);let{defineMultiStyleConfig:ez,definePartsStyle:eF}=(0,A.D)(C.wl.keys),eq=(0,A.k0)(()=>({padding:8,borderRadius:"lg",bg:"dialog_bg",margin:"auto"})),eH=(0,A.k0)({"::-webkit-scrollbar":{display:"none"},"scrollbar-width":"none"}),eW=(0,A.k0)(e=>({padding:0,marginBottom:8,fontSize:"2xl",lineHeight:10,color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e)})),eV=(0,A.k0)({padding:0,marginBottom:8,flex:"initial"}),eZ=(0,A.k0)({padding:0,justifyContent:"flex-start"}),eG=(0,A.k0)(e=>({top:8,right:8,height:10,width:10,color:(0,R.x)("gray.700","gray.500")(e),_hover:{color:"link_hovered"},_active:{bg:"none"}})),eK=(0,A.k0)({bg:"blackAlpha.800"}),eY=eF(e=>({dialog:(0,D.Pu)(eq),dialogContainer:eH,header:(0,D.Pu)(eW,e),body:eV,footer:eZ,closeButton:(0,D.Pu)(eG,e),overlay:eK})),eQ=ez({sizes:{sm:eF({dialogContainer:{height:"100%"},dialog:{maxW:"536px"}}),md:eF({dialogContainer:{height:"100%"},dialog:{maxW:"760px"}}),full:eF({dialogContainer:{height:"100%"},dialog:{maxW:"100vw",my:"0",borderRadius:"0",padding:"80px 16px 32px 16px",height:"100%",overflowY:"scroll"},closeButton:{top:4,right:6,width:6,height:6},header:{mb:6}})},baseStyle:eY});eU.u_.defaultProps={...eU.u_.defaultProps,isCentered:!0};var eJ=r(49534);let{defineMultiStyleConfig:eX,definePartsStyle:e0}=(0,A.D)(C.Ji.keys),e1=(0,eJ.gJ)("popper-bg"),e2=(0,eJ.gJ)("popper-arrow-bg"),e3=(0,eJ.gJ)("popper-arrow-shadow-color"),e5=(0,A.k0)({zIndex:"popover"}),e6=(0,A.k0)(e=>{let t=(0,R.x)("white","gray.900")(e),r=(0,R.x)("blackAlpha.200","whiteAlpha.300")(e);return{[e1.variable]:"colors.".concat(t),bg:e1.reference,[e2.variable]:e1.reference,[e3.variable]:"colors.".concat(r),_dark:{[e1.variable]:"colors.gray.900",[e3.variable]:"colors.whiteAlpha.300",boxShadow:"dark-lg"},width:"xs",border:"none",borderColor:"inherit",borderRadius:"md",boxShadow:"2xl",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"2xl"}}}),e4=(0,A.k0)({px:3,py:2,borderBottomWidth:"1px"}),e8=(0,A.k0)({px:4,py:4}),e9=(0,A.k0)({px:3,py:2,borderTopWidth:"1px"}),e7=(0,A.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}),te=eX({baseStyle:e0(e=>({popper:e5,content:e6(e),header:e4,body:e8,footer:e9,arrow:{},closeButton:e7}))}),{defineMultiStyleConfig:tt,definePartsStyle:tr}=(0,A.D)(C.f2.keys),tn=tt({baseStyle:tr({label:(0,A.k0)({_disabled:{opacity:.2},width:"fit-content"}),container:(0,A.k0)({width:"fit-content"})}),sizes:{md:tr({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:tr({control:{w:"5",h:"5"},label:{fontSize:"md"}}),sm:tr({control:{width:"3",height:"3"},label:{fontSize:"sm"}})}}),{defineMultiStyleConfig:ti,definePartsStyle:to}=(0,A.D)(C.nY.keys),ta=to(e=>{var t;return{field:{...null===(t=ew.variants)||void 0===t?void 0:t.outline(e).field,borderColor:(0,R.x)("gray.200","gray.600")(e),_hover:{borderColor:(0,R.x)("gray.300","gray.500")(e)},_focusVisible:{borderColor:(0,R.x)("gray.200","gray.600")(e),boxShadow:"none"},cursor:"pointer"}}}),ts=(0,A.k0)({paddingInlineEnd:"8"}),tl={lg:{...null===(n=ew.sizes)||void 0===n?void 0:n.lg,field:{...null===(i=ew.sizes)||void 0===i?void 0:i.lg.field,...ts}},md:{...null===(o=ew.sizes)||void 0===o?void 0:o.md,field:{...null===(a=ew.sizes)||void 0===a?void 0:a.md.field,...ts}},sm:{...null===(s=ew.sizes)||void 0===s?void 0:s.sm,field:{...null===(l=ew.sizes)||void 0===l?void 0:l.sm.field,...ts}},xs:{...null===(c=ew.sizes)||void 0===c?void 0:c.xs,field:{...null===(u=ew.sizes)||void 0===u?void 0:u.xs.field,...ts,fontSize:"sm",lineHeight:"20px"}}},tc=ti({variants:{...ew.variants,outline:ta},sizes:tl,defaultProps:{size:"xs"}});var tu=r(93344),td=r(70917);let th=(0,A.k0)(e=>{let t=(0,R.x)("blackAlpha.50","whiteAlpha.50")(e),r=(0,R.x)("blackAlpha.100","whiteAlpha.100")(e),{startColor:n=t,endColor:i=r,theme:o}=e,a=(0,k.Lq)(o,n),s=(0,k.Lq)(o,i);return{opacity:1,borderRadius:"md",borderColor:a,background:"linear-gradient(90deg, ".concat(a," 8%, ").concat(s," 18%, ").concat(a," 33%)"),backgroundSize:"200% 100%"}}),tf=(0,A.fj)({baseStyle:th});tu.O.defaultProps={...tu.O.defaultProps,speed:1,animation:"1s linear infinite ".concat((0,td.F4)({to:{backgroundPositionX:"-200%"}}))};let tp=(0,A.k0)(e=>{let{emptyColor:t,color:r}=e;return{borderColor:r||"blue.500",borderBottomColor:t||(0,R.x)("blackAlpha.200","whiteAlpha.200")(e),borderLeftColor:t||(0,R.x)("blackAlpha.200","whiteAlpha.200")(e)}}),tg=(0,A.fj)({baseStyle:tp,defaultProps:{size:"md"}}),{defineMultiStyleConfig:tm,definePartsStyle:tv}=(0,A.D)(C.ke.keys),tb=(0,A.k0)(e=>{let{colorScheme:t}=e;return{_checked:{bg:(0,R.x)("".concat(t,".500"),"".concat(t,".300"))(e),_hover:{bg:(0,R.x)("".concat(t,".600"),"".concat(t,".400"))(e)}},_focusVisible:{boxShadow:"none"}}}),ty=tm({baseStyle:tv(e=>({track:tb(e)}))}),{defineMultiStyleConfig:tw,definePartsStyle:tx}=(0,A.D)(C.l1.keys),t_=tx(e=>{let t=(0,et.Z)();return{th:{border:0,color:(0,R.x)("blackAlpha.700","whiteAlpha.700")(e),backgroundColor:(0,R.x)("blackAlpha.100","whiteAlpha.200")(e),...t},thead:{...t},td:{borderColor:"divider",...t}}}),tC={md:tx({th:{px:4,fontSize:"sm"},td:{p:4}}),sm:tx({th:{px:"10px",py:"10px",fontSize:"sm"},td:{px:"10px",py:4,fontSize:"sm",fontWeight:500}}),xs:tx({th:{px:"6px",py:"10px",fontSize:"sm"},td:{px:"6px",py:4,fontSize:"sm",fontWeight:500}})},tA=tw({baseStyle:tx({th:{textTransform:"none",fontFamily:"body",fontWeight:"500",overflow:"hidden",color:"gray.500",letterSpacing:"none",_first:{borderTopLeftRadius:"8px"},_last:{borderTopRightRadius:"8px"}},td:{fontSize:"md",verticalAlign:"top"},table:{tableLayout:"fixed",borderTopLeftRadius:"base",borderTopRightRadius:"base",overflow:"unset",fontVariant:"normal",fontVariantLigatures:"no-contextual"}}),sizes:tC,variants:{simple:t_}}),{defineMultiStyleConfig:tk,definePartsStyle:tE}=(0,A.D)(C.nw.keys),tS=tE(e=>({tab:{borderRadius:"base",fontWeight:"600",color:(0,R.x)("blue.700","gray.400")(e),_selected:{color:(0,R.x)("blue.700","gray.50")(e),bg:(0,R.x)("blue.50","gray.800")(e),_hover:{color:(0,R.x)("blue.700","gray.50")(e)}},_hover:{color:"link_hovered"},_focusVisible:{boxShadow:{base:"none",lg:"outline"}}}})),tT=tE(e=>{var t,r;return{tab:{...null===(t=Z.variants)||void 0===t?void 0:t.outline(e),...Z.baseStyle,_selected:null===(r=Z.variants)||void 0===r?void 0:r.outline(e)._active}}}),tI=tk({sizes:{sm:tE({tab:null===(d=Z.sizes)||void 0===d?void 0:d.sm}),md:tE({tab:null===(h=Z.sizes)||void 0===h?void 0:h.md})},variants:{"soft-rounded":tS,outline:tT}}),tP=(0,et.Z)(),{defineMultiStyleConfig:tO,definePartsStyle:tR}=(0,A.D)(C.VM.keys),tM={subtle:tR(e=>{var t;return{container:null===(t=j.variants)||void 0===t?void 0:t.subtle(e)}}),select:tR(e=>({container:{bg:(0,R.x)("gray.100","gray.800")(e),color:(0,R.x)("gray.500","whiteAlpha.800")(e),_hover:{color:"blue.400",opacity:.76},"\n        &[data-selected=true],\n        &[data-selected=true][aria-selected=true]\n      ":{bg:(0,R.x)("blue.500","blue.900")(e),color:"whiteAlpha.800"}}}))},tN={sm:tR({container:{minH:6,minW:6,fontSize:"sm",px:1,py:"2px",lineHeight:5}}),md:tR({container:{minH:8,minW:8,fontSize:"sm",px:"6px",py:"6px",lineHeight:5}})},tj=tO({baseStyle:tR({container:(0,A.k0)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",borderRadius:"sm",...tP})}),variants:tM,sizes:tN,defaultProps:{size:"sm",variant:"subtle",colorScheme:"gray"}}),tD=(0,A.k0)(e=>({color:(0,R.x)("blackAlpha.800","whiteAlpha.800")(e)})),tB=(0,A.k0)(e=>({color:(0,R.x)("gray.500","gray.400")(e)})),tL=(0,A.fj)({defaultProps:{variant:"primary"},variants:{primary:tD,secondary:tB,inherit:{color:"inherit"}}});var t$=r(47523);let tU=(0,eJ.gJ)("tooltip-bg"),tz=(0,eJ.gJ)("tooltip-fg"),tF=(0,eJ.gJ)("popper-arrow-bg"),tq=(0,A.k0)(e=>({bg:(0,R.x)("blue.50","gray.800")(e),color:"blue.400",padding:"15px 12px",minWidth:"120px",borderRadius:"base",fontSize:"14px",lineHeight:"20px",textAlign:"center",boxShadow:"none",fontWeight:"500"})),tH=(0,A.k0)(e=>{let t=(0,R.x)("gray.700","gray.200")(e),r=(0,R.x)("white","black")(e);return{bg:tU.reference,color:tz.reference,[tU.variable]:"colors.".concat(t),[tz.variable]:"colors.".concat(r),[tF.variable]:tU.reference,maxWidth:e.maxWidth||e.maxW||"calc(100vw - 8px)",marginX:"4px"}}),tW=(0,A.fj)({variants:{nav:tq},baseStyle:tH});t$.u.defaultProps={...t$.u.defaultProps,hasArrow:!0};let tV={initialColorMode:null!==(p=null===(f=B.Z.UI.colorTheme.default)||void 0===f?void 0:f.colorMode)&&void 0!==p?p:"system",useSystemColorMode:!1,disableTransitionOnChange:!1};var tZ=r(3060),tG=r(31149),tK=r(83812),tY=e=>{let t=(0,R.x)("blackAlpha.300","whiteAlpha.300")(e);return{"body *::-webkit-scrollbar":{width:"20px"},"body *::-webkit-scrollbar-track":{backgroundColor:"transparent"},"body *::-webkit-scrollbar-thumb":{backgroundColor:t,borderRadius:"20px",border:"8px solid rgba(0,0,0,0)",backgroundClip:"content-box",minHeight:"32px"},"body *::-webkit-scrollbar-button":{display:"none"},"body *::-webkit-scrollbar-corner":{backgroundColor:"transparent"},"body *::-webkit-resizer":{backgroundImage:(0,R.x)("url(/static/resizer_light.png)","url(/static/resizer_dark.png)")(e),backgroundSize:"20px"},"body *":{scrollbarWidth:"thin",scrollbarColor:"".concat((0,A.K1)(e.theme,"colors",t)," transparent")}}},tQ=e=>({".address-entity":{"&.address-entity_highlighted":{_before:{content:'" "',position:"absolute",py:1,pl:1,pr:0,top:"-5px",left:"-5px",width:"100%",height:"100%",borderRadius:"base",borderColor:(0,R.x)("blue.200","blue.600")(e),borderWidth:"1px",borderStyle:"dashed",bgColor:(0,R.x)("blue.50","blue.900")(e),zIndex:-1}}},".address-entity_no-copy":{"&.address-entity_highlighted":{_before:{pr:2}}}}),tJ=x({...tG.ZP,radii:{none:"0",sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px",full:"9999px"},colors:tZ.Z,components:{Alert:O,Badge:j,Button:Z,Checkbox:ee,Drawer:es,Heading:eP,Input:ew,Form:eT,FormLabel:ef,Link:eN,Menu:e$,Modal:eQ,Popover:te,Radio:tn,Select:tc,Skeleton:tf,Spinner:tg,Switch:ty,Tabs:tI,Table:tA,Tag:tj,Text:tL,Textarea:eC,Tooltip:tW},config:tV,styles:{global:e=>({body:{bg:(0,R.x)("white","black")(e),...(0,et.Z)(),"-webkit-tap-highlight-color":"transparent","font-variant-ligatures":"no-contextual"},mark:{bgColor:(0,R.x)("green.100","green.800")(e),color:"inherit"},"svg *::selection":{color:"none",background:"none"},form:{w:"100%"},...tY(e),...tQ(e)})},breakpoints:{sm:"415px",lg:"1000px",xl:"1440px","2xl":"1920px","3xl":"3000px"},transition:{duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},zIndices:tK.Z,semanticTokens:{colors:{divider:{default:"blackAlpha.200",_dark:"whiteAlpha.200"},text:{default:"blackAlpha.800",_dark:"whiteAlpha.800"},text_secondary:{default:"gray.500",_dark:"gray.400"},link:{default:"blue.600",_dark:"blue.300"},link_hovered:{default:"blue.400"},icon_link_external:{default:"gray.300",_dark:"gray.500"},icon_info:{default:"gray.400",_dark:"gray.500"},error:{default:"red.500",_dark:"red.500"},dialog_bg:{default:"white",_dark:"gray.900"}},shadows:{action_bar:"0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)"}}})},30618:function(e,t,r){"use strict";function n(e){return{transitionProperty:"background-color, color, border-color".concat((null==e?void 0:e.transitionProperty)?", "+e.transitionProperty:""),transitionDuration:"normal",transitionTimingFunction:"ease"}}r.d(t,{Z:function(){return n}})},16685:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(75904),i=r(47128);function o(e){return{input:{empty:{bgColor:e.bgColor||(0,n.x)("white","black")(e),borderColor:(0,n.x)("gray.100","gray.700")(e)},hover:{color:(0,n.x)("gray.800","gray.50")(e),bgColor:e.bgColor||(0,n.x)("white","black")(e),borderColor:(0,n.x)("gray.200","gray.500")(e)},focus:{color:(0,n.x)("gray.800","gray.50")(e),bgColor:e.bgColor||(0,n.x)("white","black")(e),borderColor:(0,n.x)("blue.400","blue.400")(e)},filled:{color:(0,n.x)("gray.800","gray.50")(e),bgColor:e.bgColor||(0,n.x)("white","black")(e),borderColor:(0,n.x)("gray.300","gray.600")(e)},readOnly:{color:(0,n.x)("gray.800","gray.50")(e),bgColor:(0,n.x)("gray.200","gray.800")(e),borderColor:(0,n.x)("gray.200","gray.800")(e)},disabled:{opacity:.2},error:{color:(0,n.x)("gray.800","gray.50")(e),bgColor:e.bgColor||(0,n.x)("white","black")(e),borderColor:(0,n.x)("red.500","red.500")(e)}},placeholder:{default:{color:(0,n.x)("gray.500","gray.500")(e)},disabled:{color:(0,i.DZ)("gray.500",.2)(e.theme)},error:{color:(0,n.x)("red.500","red.500")(e)}}}}},83656:function(e,t,r){"use strict";var n,i,o,a;r.d(t,{G:function(){return i},T:function(){return n}}),(o=n||(n={})).ALL="All",o.FAVORITES="Favorites",(a=i||(i={})).ANALYZED="Analyzed",a.ALL="All",a.VERIFIED="Verified"},234:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(78551),i=r(67294),o=r(83656),a=r(46789),s=r(64903),l=r(49916),c=r(19154),u=r(80517);let d=a.Z.features.marketplace;function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.T.ALL,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,h=arguments.length>3&&void 0!==arguments[3]&&arguments[3],f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,p=(0,l.Z)(),g=(0,s.Z)(),{data:m,isPlaceholderData:v}=(0,u.Z)(),[b,y]=i.useState(),[w,x]=i.useState(),_=i.useRef(!0);i.useEffect(()=>{_.current&&(h||void 0===r)&&(x(r||[]),_.current=!1)},[h,r]);let{isPlaceholderData:C,isError:A,error:k,data:E}=(0,n.a)({queryKey:["marketplace-dapps",w],queryFn:async()=>d.isEnabled?"configUrl"in d?p(d.configUrl,void 0,{resource:"marketplace-dapps"}):g("marketplace_dapps",{pathParams:{chainId:a.Z.chain.id}}):[],select:e=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.sort((e,r)=>{let n=e.priority||0,i=r.priority||0;return t.includes(e.id)!==t.includes(r.id)?t.includes(e.id)?-1:1:i!==n?i-n:e.internalWallet!==r.internalWallet?e.internalWallet?-1:1:e.external!==r.external?e.external?1:-1:0})})(e,w),placeholderData:d.isEnabled?Array(9).fill(c.q):void 0,staleTime:1/0,enabled:d.isEnabled&&!!w}),S=C||v,T=i.useMemo(()=>null==E?void 0:E.map(e=>({...e,securityReport:null==m?void 0:m[e.id],rating:null==f?void 0:f[e.id]})),[E,m,f]),I=i.useMemo(()=>S?T||[]:(null==T?void 0:T.filter(n=>n.title.toLowerCase().includes(e.toLowerCase())&&function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e===o.T.ALL||e===o.T.FAVORITES&&r.includes(t.id)||t.categories.includes(e)}(t,n,r)).sort((e,t)=>{var r,n,i,o;return"security_score"===b?((null===(r=t.securityReport)||void 0===r?void 0:r.overallInfo.securityScore)||0)-((null===(n=e.securityReport)||void 0===n?void 0:n.overallInfo.securityScore)||0):"rating"===b?((null===(i=t.rating)||void 0===i?void 0:i.value)||0)-((null===(o=e.rating)||void 0===o?void 0:o.value)||0):0}))||[],[t,T,e,r,b,S]);return i.useMemo(()=>({data:E,displayedApps:I,error:k,isError:A,isPlaceholderData:S,setSorting:y}),[E,I,k,A,S,y])}},80517:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(78551),i=r(46789),o=r(49916);let a=i.Z.features.marketplace,s=a.isEnabled&&a.securityReportsUrl||"";function l(){let e=(0,o.Z)();return(0,n.a)({queryKey:["marketplace-security-reports"],queryFn:async()=>e(s,void 0,{resource:"marketplace-security-reports"}),select:e=>{let t={};return e.forEach(e=>{let r=e.chainsData[i.Z.chain.id||""];if(r){let e=r.overallInfo.issueSeverityDistribution;r.overallInfo.totalIssues=Object.values(e).reduce((e,t)=>e+t,0),r.overallInfo.securityScore=Number(r.overallInfo.securityScore.toFixed(2))}t[e.appName]=r}),t},placeholderData:s?{}:void 0,staleTime:1/0,enabled:!!s})}},13324:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(85893),i=r(88911),o=r(96272),a=r(23100),s=r(67294),l=r(99640),c=r(46789);function u(e){return e&&"cause"in e&&"object"==typeof e.cause&&null!==e.cause&&e.cause||void 0}var d=r(23927),h=r(8612),f=r(21967);let p={404:"error-pages/404",422:"error-pages/422",429:"error-pages/429",500:"error-pages/500"};var g=e=>{let{statusCode:t}=e;return(0,n.jsx)(f.Z,{name:p[String(t)]||p["500"],width:"200px",height:"100px",color:"text"})},m=r(14418),v=e=>{let{title:t}=e;return(0,n.jsx)(m.X,{mt:8,size:"2xl",fontFamily:"body",children:t})},b=e=>{let{hash:t}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{statusCode:404}),(0,n.jsx)(v,{title:"Block removed due to chain reorganization"}),(0,n.jsx)(o.z,{mt:8,size:"lg",variant:"outline",as:"a",href:t?(0,l.B)({pathname:"/block/[height_or_hash]",query:{height_or_hash:t}}):(0,l.B)({pathname:"/"}),children:t?"View reorg":"Back to home"})]})},y=r(34853),w=r(48688),x=r(49916),_=r(82229),C=()=>{let e=(0,_.Z)(),t=(0,x.Z)(),r=s.useCallback(async r=>{if(r)try{let e=(0,w.Z)("api_v2_key");await t(e,{method:"POST",body:{recaptcha_response:r},credentials:"include"},{resource:"api_v2_key"}),window.location.reload()}catch(t){e({position:"top-right",title:"Error",description:"Unable to get client key.",status:"error",variant:"subtle",isClosable:!0})}},[e,t]);return(0,n.jsxs)(a.xu,{sx:{".recaptcha":{mt:8,h:"78px"}},children:[(0,n.jsx)(g,{statusCode:429}),(0,n.jsx)(v,{title:"Too many requests"}),(0,n.jsx)(i.x,{variant:"secondary",mt:3,children:"You have exceeded the request rate for a given time period. Please reduce the number of requests and try again soon."}),c.Z.services.reCaptcha.siteKey&&(0,n.jsx)(y.Z,{className:"recaptcha",sitekey:c.Z.services.reCaptcha.siteKey,onChange:r})]})},A=r(12498),k=r(204),E=r(5197),S=r(75350),T=()=>{let e={borderColor:(0,A.ff)("blackAlpha.300","whiteAlpha.300"),iconBg:(0,A.ff)("blackAlpha.800","whiteAlpha.800"),iconColor:(0,A.ff)("white","black")};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a.xu,{p:4,borderColor:e.borderColor,borderRadius:"md",w:"230px",borderWidth:"1px",children:[(0,n.jsxs)(k.k,{alignItems:"center",pb:4,borderBottomWidth:"1px",borderColor:e.borderColor,children:[(0,n.jsx)(f.Z,{name:"transactions",boxSize:8,color:e.iconColor,bgColor:e.iconBg,p:1,borderRadius:"md"}),(0,n.jsxs)(a.xu,{ml:2,children:[(0,n.jsx)(a.xu,{w:"125px",h:"8px",borderRadius:"full",bgColor:e.iconBg}),(0,n.jsx)(a.xu,{w:"30px",h:"8px",borderRadius:"full",bgColor:e.borderColor,mt:1.5})]})]}),(0,n.jsxs)(k.k,{justifyContent:"space-between",alignItems:"center",mt:3,children:[(0,n.jsxs)(k.k,{alignItems:"center",children:[(0,n.jsx)(a.xu,{boxSize:5,borderRadius:"full",bgColor:e.borderColor}),(0,n.jsx)(a.xu,{w:"65px",h:"8px",borderRadius:"full",bgColor:e.borderColor,ml:1.5})]}),(0,n.jsxs)(k.k,{alignItems:"center",children:[(0,n.jsx)(a.xu,{boxSize:5,borderRadius:"full",bgColor:e.borderColor}),(0,n.jsx)(a.xu,{w:"65px",h:"8px",borderRadius:"full",bgColor:e.borderColor,ml:1.5})]})]})]}),(0,n.jsx)(v,{title:"Sorry, we are unable to locate this transaction hash"}),(0,n.jsxs)(E.GS,{mt:3,spacing:3,children:[(0,n.jsx)(E.HC,{children:"If you have just submitted this transaction please wait for at least 30 seconds before refreshing this page."}),(0,n.jsx)(E.HC,{children:"It could still be in the TX Pool of a different node, waiting to be broadcasted."}),(0,n.jsx)(E.HC,{children:"During times when the network is busy (i.e during ICOs) it can take a while for your transaction to propagate through the network and for us to index it."}),(0,n.jsxs)(E.HC,{children:[(0,n.jsx)("span",{children:"If it still does not show up after 1 hour, please check with your "}),(0,n.jsx)(S.m.span,{fontWeight:600,children:"sender/exchange/wallet/transaction provider"}),(0,n.jsx)("span",{children:" for additional information."})]})]}),(0,n.jsx)(o.z,{mt:8,size:"lg",variant:"outline",as:"a",href:(0,l.B)({pathname:"/"}),children:"Back to home"})]})};let I=c.Z.features.adsBanner,P={404:{title:"Page not found",text:"This page is no longer explorable! If you are lost, use the search bar to find what you are looking for."},422:{title:"Request cannot be processed",text:"Your request contained an error, perhaps a mistyped tx/block/address hash. Try again, and check the developer tools console for more info."},500:{title:"Oops! Something went wrong",text:"An unexpected error has occurred. Try reloading the page, or come back soon and try again."}};var O=s.memo(e=>{let{error:t,className:r}=e,s=(()=>{let e=function(e){let t=u(e);return t&&"payload"in t?t.payload:void 0}(t),r=u(t),a=e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message?e.message:void 0,s=function(e){let t=u(e);return t&&"status"in t&&"number"==typeof t.status?t.status:void 0}(t)||(0,d.Z)(t),c=r&&"resource"in r&&"tx"===r.resource&&404===s,f=null==a?void 0:a.includes("Block lost consensus");if(c)return(0,n.jsx)(T,{});if(f){let t=e&&"object"==typeof e&&"hash"in e&&"string"==typeof e.hash?e.hash:void 0;return(0,n.jsx)(b,{hash:t})}if(429===s)return(0,n.jsx)(C,{});{var p;let{title:e,text:t}=null!==(p=P[String(s)])&&void 0!==p?p:P[500],r=I.isEnabled?I.provider:null;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(g,{statusCode:s}),(0,n.jsx)(v,{title:e}),(0,n.jsx)(i.x,{variant:"secondary",mt:3,children:t}),(0,n.jsx)(o.z,{mt:8,size:"lg",variant:"outline",as:"a",href:(0,l.B)({pathname:"/"}),children:"Back to home"}),404===s&&r&&(0,n.jsx)(h.Z,{mt:12,provider:r})]})}})();return(0,n.jsx)(a.xu,{className:r,mt:{base:"52px",lg:"104px"},maxW:"800px",children:s})})},15219:function(e,t,r){"use strict";var n=r(85893),i=r(75350),o=r(67294),a=r(28979),s=r(13324);t.Z=o.memo((0,i.m)(e=>{let{className:t,children:r,onError:i,Container:l}=e,c=o.useCallback(e=>{let r=(0,n.jsx)(s.Z,{error:e,className:t});return l?(0,n.jsx)(l,{children:r}):r},[t,l]);return(0,n.jsx)(a.Z,{renderErrorScreen:c,onError:i,children:r})}))},89377:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(89154),a=r(75350);r(67294);var s=r(21967);t.Z=(0,a.m)(e=>{let{onClick:t,isDisabled:r,className:a}=e,l=(0,i.ff)("gray.300","gray.600"),c=(0,i.ff)("gray.200","gray.500");return(0,n.jsx)(o.h,{isDisabled:r,className:a,colorScheme:"none","aria-label":"Clear input",title:"Clear input",boxSize:6,icon:(0,n.jsx)(s.Z,{name:"status/error",boxSize:3,color:l,_hover:{color:c}}),size:"sm",onClick:t})})},26678:function(e,t,r){"use strict";var n=r(82729),i=r(85893),o=r(23100),a=r(88911),s=r(75350),l=r(70917);function c(){let e=(0,n._)(["\n    0% { left: 0%; transform: translateX(-1%); }\n    100% { left: '100%'; transform: translateX(-99%); }\n"]);return c=function(){return e},e}r(67294);let u=(0,l.F4)(c());t.Z=(0,s.m)(e=>{let{className:t,text:r}=e;return(0,i.jsxs)(o.xu,{display:"inline-block",className:t,children:[(0,i.jsx)(o.xu,{width:"100%",height:"6px",position:"relative",_after:{content:'" "',position:"absolute",width:"60px",height:"6px",animation:"".concat(u," 700ms ease-in-out infinite alternate"),left:"100%",top:0,backgroundColor:"blue.300",borderRadius:"full"}}),(0,i.jsx)(a.x,{mt:6,variant:"secondary",children:r||"Loading data, please wait..."})]})})},44125:function(e,t,r){"use strict";var n=r(85893),i=r(47523),o=r(23100),a=r(75350);r(67294);var s=r(21967);t.Z=(0,a.m)(e=>{let{iconSize:t,className:r}=e;return(0,n.jsx)(i.u,{label:"This contract has been certified by the chain developers",children:(0,n.jsx)(o.xu,{className:r,children:(0,n.jsx)(s.Z,{name:"certified",color:"green.500",boxSize:t,cursor:"pointer"})})})})},92074:function(e,t,r){"use strict";var n=r(85893),i=r(40156),o=r(62723),a=r(12498),s=r(93344),l=r(47523),c=r(89154),u=r(75350),d=r(67294),h=r(21967);t.Z=d.memo((0,u.m)(e=>{let{text:t,className:r,isLoading:u,onClick:f,size:p=5,type:g,icon:m,variant:v="simple",colorScheme:b}=e,{hasCopied:y,onCopy:w}=(0,i.V)(t,1e3),[x,_]=(0,d.useState)(!1),{isOpen:C,onOpen:A,onClose:k}=(0,o.q)(),E=(0,a.ff)("gray.400","gray.500");(0,d.useEffect)(()=>{y?_(!0):_(!1)},[y]);let S=d.useCallback(e=>{w(),null==f||f(e)},[f,w]);return u?(0,n.jsx)(s.O,{boxSize:p,className:r,borderRadius:"sm",flexShrink:0,ml:2,display:"inline-block"}):(0,n.jsx)(l.u,{label:x?"Copied":"Copy".concat("link"===g?" link ":" ","to clipboard"),isOpen:C||x,children:(0,n.jsx)(c.h,{...b?{}:{color:E},"aria-label":"copy",icon:(0,n.jsx)(h.Z,{name:m||("link"===g?"link":"copy"),boxSize:p}),boxSize:p,variant:v,colorScheme:b,display:"inline-block",flexShrink:0,onClick:S,className:r,onMouseEnter:A,onMouseLeave:k,ml:2,borderRadius:0})})}))},28979:function(e,t,r){"use strict";var n=r(85893),i=r(11163),o=r(67294);class a extends o.PureComponent{static getDerivedStateFromProps(e,t){return t.hasError&&t.errorPathname&&e.router.pathname!==t.errorPathname?{hasError:!1,error:void 0,errorPathname:void 0}:null}componentDidCatch(e){var t,r;this.setState({hasError:!0,error:e,errorPathname:this.props.router.pathname}),null===(t=(r=this.props).onError)||void 0===t||t.call(r,e)}render(){return this.state.hasError?this.props.renderErrorScreen(this.state.error):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}t.Z=o.memo(e=>{let t=(0,i.useRouter)();return(0,n.jsx)(a,{...e,router:t})})},39206:function(e,t,r){"use strict";var n=r(85893),i=r(75350),o=r(47523);r(67294);var a=r(31314);t.Z=e=>{let{hash:t,isTooltipDisabled:r,as:s="span",type:l}=e,c="long"===l?16:8;return t.length<=c?(0,n.jsx)(i.m.span,{as:s,children:t}):(0,n.jsx)(o.u,{label:t,isDisabled:r,children:(0,n.jsx)(i.m.span,{as:s,children:(0,a.Z)(t,c)})})}},27255:function(e,t,r){"use strict";var n=r(85893),i=r(75350),o=r(47523),a=r(23279),s=r.n(a),l=r(67294),c=r(23815),u=r(31149);function d(e){return e.getBoundingClientRect().width}t.Z=l.memo(e=>{let{hash:t,fontWeight:r="400",isTooltipDisabled:a,tailLength:h=4,as:f="span"}=e,p=(0,l.useRef)(null),[g,m]=l.useState(t),v=(0,c.Z)([{family:u.OW,weight:String(r)},{family:u.mJ,weight:String(r)}]),b=(0,l.useCallback)(()=>{var e;let r=null==p?void 0:null===(e=p.current)||void 0===e?void 0:e.parentNode;if(!r)return;let n=document.createElement("span");n.style.opacity="0",r.appendChild(n),n.textContent=t;let i=d(r);if(d(n)>i){let e=t.slice(-h),r=4,o=t.length-h;for(;o-r>1;){let a=(o-r)%2?r+(o-r+1)/2:r+(o-r)/2,s=t.slice(0,a)+"..."+e;n.textContent=s,d(n)<i?r=a:o=a}m(t.slice(0,o-1)+"..."+e)}else m(t);r.removeChild(n)},[t,h]);(0,l.useEffect)(()=>{b()},[b,v]),(0,l.useEffect)(()=>{let e=new ResizeObserver(s()(b,100));return e.observe(document.body),function(){e.unobserve(document.body)}},[b]);let y=(0,n.jsx)(i.m.span,{ref:p,as:f,children:g});return t.length!==g.length?(0,n.jsx)(o.u,{label:t,isDisabled:a,maxW:{base:"calc(100vw - 8px)",lg:"400px"},children:y}):y})},21967:function(e,t,r){"use strict";var n=r(85893),i=r(93344),o=r(75350),a=r(67294);t.Z=a.forwardRef((e,t)=>{let{name:r,isLoading:a,...s}=e;return(0,n.jsx)(i.O,{isLoaded:!a,display:"inline-block",...s,ref:t,children:(0,n.jsx)(o.m.svg,{w:"100%",h:"100%",children:(0,n.jsx)("use",{href:"".concat("/icons/sprite.svg","#").concat(r)})})})})},17963:function(e,t,r){"use strict";var n=r(85893),i=r(75350),o=r(67294);t.Z=o.memo(e=>{let{id:t,...r}=e;return(0,n.jsx)(i.m.span,{mx:3,id:t,...r,children:"|"})})},18069:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(75350);r(67294);var a=r(21967);t.Z=(0,o.m)(e=>{let{className:t}=e,r=(0,i.ff)("gray.200","gray.600"),o=(0,i.ff)("gray.400","gray.200");return(0,n.jsx)(a.Z,{className:t,fontWeight:600,bgColor:r,color:o,borderRadius:"base",name:"token-placeholder",transitionProperty:"background-color,color",transitionDuration:"normal",transitionTimingFunction:"ease"})})},72620:function(e,t,r){"use strict";var n=r(85893),i=r(62723),o=r(47523),a=r(23279),s=r.n(a),l=r(67294),c=r(23815),u=r(31149);t.Z=l.memo(e=>{let{children:t,label:r,placement:a}=e,d=l.useRef(null),[h,f]=l.useState(!1),{isOpen:p,onToggle:g,onOpen:m,onClose:v}=(0,i.q)(),b=(0,c.Z)([{family:u.OW}]),y=l.useCallback(()=>{d.current&&(d.current.scrollWidth>d.current.clientWidth?f(!0):f(!1))},[]);l.useEffect(()=>{y()},[y,b]),l.useEffect(()=>{let e=s()(y,1e3);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[y]);let w=l.Children.only(t),x=l.useCallback(e=>{e.stopPropagation(),g()},[g]),_=l.cloneElement(w,{ref:d,onClick:x,onMouseEnter:m,onMouseLeave:v});return h?(0,n.jsx)(o.u,{label:r,maxW:{base:"calc(100vw - 8px)",lg:"400px"},placement:a,isOpen:p,children:_}):_})},55853:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(85893),i=r(93344),o=({size:e="2rem",...t})=>(0,n.jsx)(i.O,{borderRadius:"full",boxSize:e,...t});o.displayName="SkeletonCircle";var a=r(84416),s=r(67294),l=r(40410),c=r(57245),u=r(93157),d=r(21967),h=s.memo(e=>{let{size:t,fallbackIconSize:r=20}=e,i=(0,l.b)(),h=!!c.U2(c.aL.API_TOKEN,i.cookies),[f,p]=s.useState(!1),{data:g,isFetched:m}=(0,u.Z)(),v="".concat(t,"px"),b=s.useCallback(()=>{p(!0)},[]);return h&&!m?(0,n.jsx)(o,{h:v,w:v}):(0,n.jsx)(a.E,{flexShrink:0,src:null==g?void 0:g.avatar,alt:"Profile picture of ".concat((null==g?void 0:g.name)||(null==g?void 0:g.nickname)||""),boxSize:"".concat(t,"px"),borderRadius:"full",overflow:"hidden",fallback:!f&&(null==g?void 0:g.avatar)?void 0:(0,n.jsx)(d.Z,{name:"profile",boxSize:"".concat(r,"px")}),onError:b})})},95890:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(85893),i=r(12498),o=r(66864),a=r(67294),s=r(49739),l=r(46789),c=r(10667),u=r(68597),d=r(11502),h=r(61380);let f=l.Z.features.blockchainInteraction,p=(()=>{let e=[h.Z];return f.isEnabled?(0,c.o1)({chains:e,multiInjectedProviderDiscovery:!0,transports:{[h.Z.id]:(0,u.d)()},projectId:f.walletConnect.projectId,metadata:{name:"".concat(l.Z.chain.name," explorer"),description:"".concat(l.Z.chain.name," explorer"),url:l.Z.app.baseUrl,icons:[l.Z.UI.navigation.icon.default].filter(Boolean)},auth:{email:!0,socials:[]},ssr:!0,batch:{multicall:{wait:100}}}):(0,d._)({chains:[h.Z],transports:{[h.Z.id]:(0,u.d)(l.Z.chain.rpcUrl||"".concat(l.Z.api.endpoint,"/api/eth-rpc"))},ssr:!0,batch:{multicall:{wait:100}}})})();var g=r(3060),m=r(31149),v=r(83812);let b=l.Z.features.blockchainInteraction;(()=>{try{if(!b.isEnabled)return;(0,o.OY)({wagmiConfig:p,projectId:b.walletConnect.projectId,themeVariables:{"--w3m-font-family":"".concat(m.OW,", sans-serif"),"--w3m-accent":g.Z.blue[600],"--w3m-border-radius-master":"2px","--w3m-z-index":v.Z.modal},featuredWalletIds:[],allowUnsupportedChain:!0})}catch(e){}})();let y=e=>{let{children:t}=e;return(0,n.jsx)(s.F,{config:p,children:t})};var w=b.isEnabled?e=>{let{children:t}=e,{colorMode:r}=(0,i.If)(),{setThemeMode:s}=(0,o.y7)();return a.useEffect(()=>{s(r)},[r,s]),(0,n.jsx)(y,{children:t})}:y},8612:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var n=r(85893),i=r(93344),o=r(75350),a=r(67294),s=r(46789),l=r(204),c=r(39332),u=r(4298),d=r.n(u),h=r(20809),f=r(32807);let p=e=>{let t=s.Z.features.adsBanner;return"adButler"in t?"mobile"===e?"\n      var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];\n      var abkw = window.abkw || '';\n      var plc".concat(t.adButler.config.mobile.id," = window.plc").concat(t.adButler.config.mobile.id," || 0;\n      document.getElementById('ad-banner').innerHTML = '<'+'div id=\"placement_").concat(t.adButler.config.mobile.id,"_'+plc").concat(t.adButler.config.mobile.id,"+'\"></'+'div>';\n      AdButler.ads.push({handler: function(opt){ AdButler.register(").concat(182226,", ").concat(t.adButler.config.mobile.id,", [").concat(t.adButler.config.mobile.width,",").concat(t.adButler.config.mobile.height,"], 'placement_").concat(t.adButler.config.mobile.id,"_'+opt.place, opt); }, opt: { place: plc").concat(t.adButler.config.mobile.id,"++, keywords: abkw, domain: 'servedbyadbutler.com', click:'CLICK_MACRO_PLACEHOLDER' }});\n    "):"\n    var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];\n    var abkw = window.abkw || '';\n    const isMobile = window.matchMedia(\"only screen and (max-width: 1000px)\").matches;\n    if (isMobile) {\n        var plc".concat(t.adButler.config.mobile.id," = window.plc").concat(t.adButler.config.mobile.id," || 0;\n        document.getElementById('ad-banner').innerHTML = '<'+'div id=\"placement_").concat(t.adButler.config.mobile.id,"_'+plc").concat(t.adButler.config.mobile.id,"+'\"></'+'div>';\n        AdButler.ads.push({handler: function(opt){ AdButler.register(").concat(182226,", ").concat(t.adButler.config.mobile.id,", [").concat(t.adButler.config.mobile.width,",").concat(t.adButler.config.mobile.height,"], 'placement_").concat(t.adButler.config.mobile.id,"_'+opt.place, opt); }, opt: { place: plc").concat(t.adButler.config.mobile.id,"++, keywords: abkw, domain: 'servedbyadbutler.com', click:'CLICK_MACRO_PLACEHOLDER' }});\n    } else {\n        var plc").concat(t.adButler.config.desktop.id," = window.plc").concat(t.adButler.config.desktop.id," || 0;\n        document.getElementById('ad-banner').innerHTML = '<'+'div id=\"placement_").concat(t.adButler.config.desktop.id,"_'+plc").concat(t.adButler.config.desktop.id,"+'\"></'+'div>';\n        AdButler.ads.push({handler: function(opt){ AdButler.register(").concat(182226,", ").concat(t.adButler.config.desktop.id,", [").concat(t.adButler.config.desktop.width,",").concat(t.adButler.config.desktop.height,"], 'placement_").concat(t.adButler.config.desktop.id,"_'+opt.place, opt); }, opt: { place: plc").concat(t.adButler.config.desktop.id,"++, keywords: abkw, domain: 'servedbyadbutler.com', click:'CLICK_MACRO_PLACEHOLDER' }});\n    }\n  "):void 0},g=s.Z.features.adsBanner;var m=(0,o.m)(e=>{var t;let{className:r,platform:i}=e,o=(0,c.useRouter)(),s=(0,h.Z)(),u="mobile"===i||s,m=s&&"mobile"===i;if(a.useEffect(()=>{if("adButler"in g&&!m&&(0,f.Z)()&&window.AdButler){let e=window.abkw||"";window.AdButler.ads||(window.AdButler.ads=[]);let t=u?g.adButler.config.mobile:g.adButler.config.desktop,r=window["plc".concat(t.id)]||0,n=document.getElementById("ad-banner");n&&(n.innerHTML='<div id="placement_'+(null==t?void 0:t.id)+"_"+r+'"></div>'),window.AdButler.ads.push({handler:function(e){window.AdButler.register(182226,t.id,[t.width,t.height],"placement_".concat(t.id,"_")+e.place,e)},opt:{place:r++,keywords:e,domain:"servedbyadbutler.com",click:"CLICK_MACRO_PLACEHOLDER"}})}},[o,u,m]),!("adButler"in g))return null;let{width:v,height:b}=null!==(t=(()=>{switch(i){case"desktop":return{width:"".concat(g.adButler.config.desktop.width,"px"),height:"".concat(g.adButler.config.desktop.height,"px")};case"mobile":return{width:"".concat(g.adButler.config.mobile.width,"px"),height:"".concat(g.adButler.config.mobile.height,"px")};default:return{width:{base:"".concat(g.adButler.config.mobile.width,"px"),lg:"".concat(g.adButler.config.desktop.width,"px")},height:{base:"".concat(g.adButler.config.mobile.height,"px"),lg:"".concat(g.adButler.config.desktop.height,"px")}}}})())&&void 0!==t?t:{width:"0",height:"0"};return(0,n.jsx)(l.k,{className:r,id:"adBanner"+(i?"_".concat(i):""),h:b,w:v,children:!m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d(),{strategy:"lazyOnload",id:"ad-butler-1",children:'if (!window.AdButler){(function(){var s = document.createElement("script"); s.async = true; s.type = "text/javascript";s.src = \'https://servedbyadbutler.com/app.js\';var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(s, n);}());}'}),(0,n.jsx)(d(),{strategy:"lazyOnload",id:"ad-butler-2",children:p(i)}),(0,n.jsx)("div",{id:"ad-banner"})]})})}),v=(0,o.m)(e=>{let{className:t,platform:r}=e,i=(0,f.Z)(),o=(0,h.Z)()&&"mobile"===r,{width:s,height:c}=(()=>{switch(r){case"desktop":return{width:728,height:90};case"mobile":return{width:320,height:100};default:return{width:void 0,height:void 0}}})();return a.useEffect(()=>{if(i&&!o){window.coinzilla_display=window.coinzilla_display||[];let e={zone:"26660bf627543e46851",width:s?String(s):"728",height:c?String(c):"90"};window.coinzilla_display.push(e)}},[c,i,o,s]),(0,n.jsx)(l.k,{className:t,id:"adBanner"+(r?"_".concat(r):""),h:c?"".concat(c,"px"):{base:"100px",lg:"90px"},w:s?"".concat(s,"px"):void 0,children:!o&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d(),{strategy:"lazyOnload",src:"https://coinzillatag.com/lib/display.js"}),(0,n.jsx)("div",{className:"coinzilla","data-zone":"C-26660bf627543e46851"})]})})}),b=Object.defineProperty,y=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,_=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&_(e,r,t[r]);if(y)for(var r of y(t))x.call(t,r)&&_(e,r,t[r]);return e},A=(0,a.forwardRef)((e,t)=>{let[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i(!0)},[]),r?(0,n.jsx)("hype-banner",C({ref:t},e)):null});(0,a.forwardRef)((e,t)=>{let[r,i]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{i(!0)},[]),r?(0,n.jsx)("hype-native",C({ref:t},e)):null}),(0,a.forwardRef)((e,t)=>{let r=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,()=>r.current);let[i,o]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{o(!0)},[]),(0,a.useEffect)(()=>(i&&r.current&&(e.onReady&&r.current.addEventListener("ready",e.onReady),e.onError&&r.current.addEventListener("error",e.onError),e.onComplete&&r.current.addEventListener("complete",e.onComplete)),()=>{i&&r.current&&(e.onReady&&r.current.removeEventListener("ready",e.onReady),e.onError&&r.current.removeEventListener("error",e.onError),e.onComplete&&r.current.removeEventListener("complete",e.onComplete))}),[i]),i?(0,n.jsx)("hype-rewarded",C({ref:r},e)):null});var k=r(89156);let E=(()=>{let e=s.Z.features.adsBanner;if(e.isEnabled&&"hype"===e.provider)return"!(function (h, y, p, e, l, a, b) {\n    ((l = document.createElement(h)).async = !0),\n      (l.src = y),\n      (l.onload = function () {\n        (a = { URL: p, propertySlug: e, environment: 'production' }), HypeLab.initialize(a);\n      }),\n      (b = document.getElementsByTagName(h)[0]).parentNode.insertBefore(l, b);\n  })('script', 'https://api.hypelab.com/v1/scripts/hp-sdk.js?v=0', '".concat("https://api.hypelab.com","', '").concat("127fddd522","');")})(),S="b1559fc3e7",T="668ed80a9e";var I=(0,o.m)(e=>{let{className:t,platform:r}=e,{address:i}=(0,k.Z)();a.useEffect(()=>{if(i){var e,t;let r;e=[i],(r=null==(t=window.__hype)?void 0:t.identity)?r.setWalletAddresses(e):window.__hype_wids=e}},[i]);let o=(()=>{switch(r){case"desktop":return(0,n.jsx)(l.k,{className:t,w:"728px",h:"90px",children:(0,n.jsx)(A,{placement:S})});case"mobile":return(0,n.jsx)(l.k,{className:t,w:"320px",h:"50px",children:(0,n.jsx)(A,{placement:T})});default:return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.k,{className:t,w:"728px",h:"90px",display:{base:"none",lg:"flex"},children:(0,n.jsx)(A,{placement:S})}),(0,n.jsx)(l.k,{className:t,w:"320px",h:"50px",display:{base:"flex",lg:"none"},children:(0,n.jsx)(A,{placement:T})})]})}})();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d(),{id:"hypelab",strategy:"afterInteractive",children:E}),o]})}),P=r(47738),O=(0,o.m)(e=>{let{className:t,platform:r}=e;return"desktop"===r?(0,n.jsx)(l.k,{className:t,h:"90px",children:(0,n.jsx)(P.SliseAd,{slotId:s.Z.chain.name||"",pub:"pub-10",format:"728x90",style:{width:"728px",height:"90px"}})}):"mobile"===r?(0,n.jsx)(l.k,{className:t,h:"90px",children:(0,n.jsx)(P.SliseAd,{slotId:s.Z.chain.name||"",pub:"pub-10",format:"270x90",style:{width:"270px",height:"90px"}})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.k,{className:t,h:"90px",display:{base:"none",lg:"flex"},children:(0,n.jsx)(P.SliseAd,{slotId:s.Z.chain.name||"",pub:"pub-10",format:"728x90",style:{width:"728px",height:"90px"}})}),(0,n.jsx)(l.k,{className:t,h:"90px",display:{base:"flex",lg:"none"},children:(0,n.jsx)(P.SliseAd,{slotId:s.Z.chain.name||"",pub:"pub-10",format:"270x90",style:{width:"270px",height:"90px"}})})]})});let R=s.Z.features.adsBanner;var M=(0,o.m)(e=>{let{className:t,isLoading:r,provider:o,platform:a}=e,s=(()=>{switch(o){case"adbutler":return(0,n.jsx)(m,{platform:a});case"coinzilla":return(0,n.jsx)(v,{platform:a});case"hype":return(0,n.jsx)(I,{platform:a});case"slise":return(0,n.jsx)(O,{platform:a})}})();return(0,n.jsx)(i.O,{className:t,isLoaded:!r,borderRadius:"none",maxW:"adButler"in R&&R.adButler?R.adButler.config.desktop.width:"728px",w:"100%",children:s})})},15297:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(85893),i=r(75350),o=r(67294),a=r(46789),s=r(40410),l=r(57245),c=r(93344),u=r(23100),d=r(88911),h=r(84416),f=r(33838),p=r(38459),g=r(32807),m=(0,i.m)(e=>{let{className:t}=e,[r,i]=o.useState(null),[a,s]=o.useState(!0);if((0,o.useEffect)(()=>{(0,g.Z)()&&fetch("https://request-global.czilladx.com/serve/native.php?z=19260bf627546ab7242").then(e=>200===e.status?e.json():null).then(e=>{var t;i(e),(null==e?void 0:null===(t=e.ad)||void 0===t?void 0:t.impressionUrl)&&fetch(e.ad.impressionUrl)}).finally(()=>{s(!1)})},[]),a)return(0,n.jsx)(c.O,{className:t,h:{base:12,lg:6},w:"100%",flexGrow:1,maxW:"800px",display:"block"});if(!r)return null;let l=new URL(r.ad.url);return(0,n.jsxs)(u.xu,{className:t,children:[(0,n.jsx)(d.x,{as:"span",whiteSpace:"pre-wrap",fontWeight:700,mr:3,display:{base:"none",lg:"inline"},children:"Ads:"}),"nifty.ink"===l.hostname?(0,n.jsx)(d.x,{as:"span",mr:1,children:"\uD83C\uDFA8"}):(0,n.jsx)(h.E,{src:r.ad.thumbnail,width:"20px",height:"20px",mb:"-4px",mr:1,display:"inline",alt:""}),(0,n.jsx)(d.x,{as:"span",whiteSpace:"pre-wrap",children:"".concat(r.ad.name," ").concat(p.Ol," ").concat(r.ad.description_short," ")}),(0,n.jsx)(f.r,{href:r.ad.url,children:r.ad.cta_button})]})}),v=(0,i.m)(e=>{let{className:t}=e,r=l.U2(l.aL.ADBLOCK_DETECTED,(0,s.b)().cookies);return a.Z.features.adsText.isEnabled&&"true"!==r?(0,n.jsx)(m,{className:t}):null})},15151:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(85893),i=r(93694),o=r(57134),a=()=>"undefined"!=typeof window,s=e=>a()&&e.test(navigator.vendor),l=e=>a()&&e.test(function(){var e;let t=navigator.userAgentData;return null!=(e=null==t?void 0:t.platform)?e:navigator.platform}()),c=()=>l(/mac|iphone|ipad|ipod/i),u=()=>c()&&s(/apple/i),d=r(32654),h=r(85075),f=r(31054),p=r(68795),g=r(81103),m=r(25432),v=r(92625),b=r(67294),y={click:"click",hover:"hover"};function w(e,t){return e===t||(null==e?void 0:e.contains(t))}function x(e){var t;let r=e.currentTarget.ownerDocument.activeElement;return null!=(t=e.relatedTarget)?t:r}var _=r(6560),C=r(91639),A=r(33179),k=r(75119);function E(e){let t=(0,C.jC)("Popover",e),{children:r,...a}=(0,A.Lr)(e),s=(0,k.F)(),l=function(e={}){let{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:a,returnFocusOnClose:s=!0,autoFocus:l=!0,arrowSize:c,arrowShadowColor:_,trigger:C=y.click,openDelay:A=200,closeDelay:k=200,isLazy:E,lazyBehavior:S="unmount",computePositionOnMount:T,...I}=e,{isOpen:P,onClose:O,onOpen:R,onToggle:M}=(0,h.q)(e),N=(0,b.useRef)(null),j=(0,b.useRef)(null),D=(0,b.useRef)(null),B=(0,b.useRef)(!1),L=(0,b.useRef)(!1);P&&(L.current=!0);let[$,U]=(0,b.useState)(!1),[z,F]=(0,b.useState)(!1),q=(0,b.useId)(),H=null!=a?a:q,[W,V,Z,G]=["popover-trigger","popover-content","popover-header","popover-body"].map(e=>`${e}-${H}`),{referenceRef:K,getArrowProps:Y,getPopperProps:Q,getArrowInnerProps:J,forceUpdate:X}=(0,f.D)({...I,enabled:P||!!T}),ee=(0,i.h)({isOpen:P,ref:D});!function(e){let{ref:t,elements:r,enabled:n}=e,i=()=>{var e,r;return null!=(r=null==(e=t.current)?void 0:e.ownerDocument)?r:document};(0,o.O)(i,"pointerdown",e=>{if(!u()||!n)return;let o=e.target,a=(null!=r?r:[t]).some(e=>{let t="current"in e?e.current:e;return(null==t?void 0:t.contains(o))||t===o});i().activeElement!==o&&a&&(e.preventDefault(),o.focus())})}({enabled:P,ref:j}),(0,d.C)(D,{focusRef:j,visible:P,shouldFocus:s&&C===y.click}),(0,d.G)(D,{focusRef:n,visible:P,shouldFocus:l&&C===y.click});let et=(0,v.k)({wasSelected:L.current,enabled:E,mode:S,isSelected:ee.present}),er=(0,b.useCallback)((e={},n=null)=>{let i={...e,style:{...e.style,transformOrigin:p.Dq.transformOrigin.varRef,[p.Dq.arrowSize.var]:c?`${c}px`:void 0,[p.Dq.arrowShadowColor.var]:_},ref:(0,g.lq)(D,n),children:et?e.children:null,id:V,tabIndex:-1,role:"dialog",onKeyDown:(0,m.v0)(e.onKeyDown,e=>{r&&"Escape"===e.key&&O()}),onBlur:(0,m.v0)(e.onBlur,e=>{let r=x(e),n=w(D.current,r),i=w(j.current,r);P&&t&&!n&&!i&&O()}),"aria-labelledby":$?Z:void 0,"aria-describedby":z?G:void 0};return C===y.hover&&(i.role="tooltip",i.onMouseEnter=(0,m.v0)(e.onMouseEnter,()=>{B.current=!0}),i.onMouseLeave=(0,m.v0)(e.onMouseLeave,e=>{null!==e.nativeEvent.relatedTarget&&(B.current=!1,setTimeout(()=>O(),k))})),i},[et,V,$,Z,z,G,C,r,O,P,t,k,_,c]),en=(0,b.useCallback)((e={},t=null)=>Q({...e,style:{visibility:P?"visible":"hidden",...e.style}},t),[P,Q]),ei=(0,b.useCallback)((e,t=null)=>({...e,ref:(0,g.lq)(t,N,K)}),[N,K]),eo=(0,b.useRef)(),ea=(0,b.useRef)(),es=(0,b.useCallback)(e=>{null==N.current&&K(e)},[K]),el=(0,b.useCallback)((e={},r=null)=>{let n={...e,ref:(0,g.lq)(j,r,es),id:W,"aria-haspopup":"dialog","aria-expanded":P,"aria-controls":V};return C===y.click&&(n.onClick=(0,m.v0)(e.onClick,M)),C===y.hover&&(n.onFocus=(0,m.v0)(e.onFocus,()=>{void 0===eo.current&&R()}),n.onBlur=(0,m.v0)(e.onBlur,e=>{let r=x(e),n=!w(D.current,r);P&&t&&n&&O()}),n.onKeyDown=(0,m.v0)(e.onKeyDown,e=>{"Escape"===e.key&&O()}),n.onMouseEnter=(0,m.v0)(e.onMouseEnter,()=>{B.current=!0,eo.current=window.setTimeout(()=>R(),A)}),n.onMouseLeave=(0,m.v0)(e.onMouseLeave,()=>{B.current=!1,eo.current&&(clearTimeout(eo.current),eo.current=void 0),ea.current=window.setTimeout(()=>{!1===B.current&&O()},k)})),n},[W,P,V,C,es,M,R,t,O,A,k]);(0,b.useEffect)(()=>()=>{eo.current&&clearTimeout(eo.current),ea.current&&clearTimeout(ea.current)},[]);let ec=(0,b.useCallback)((e={},t=null)=>({...e,id:Z,ref:(0,g.lq)(t,e=>{U(!!e)})}),[Z]),eu=(0,b.useCallback)((e={},t=null)=>({...e,id:G,ref:(0,g.lq)(t,e=>{F(!!e)})}),[G]);return{forceUpdate:X,isOpen:P,onAnimationComplete:ee.onComplete,onClose:O,getAnchorProps:ei,getArrowProps:Y,getArrowInnerProps:J,getPopoverPositionerProps:en,getPopoverProps:er,getTriggerProps:el,getHeaderProps:ec,getBodyProps:eu}}({...a,direction:s.direction});return(0,n.jsx)(_.H2,{value:l,children:(0,n.jsx)(_.WG,{value:t,children:(0,m.Pu)(r,{isOpen:l.isOpen,onClose:l.onClose,forceUpdate:l.forceUpdate})})})}E.displayName="Popover";var S=b.memo(e=>(0,n.jsx)(E,{gutter:4,...e}))},76903:function(e,t,r){"use strict";r.d(t,{W2:function(){return I},VY:function(){return S},CK:function(){return T},JO:function(){return E},rU:function(){return k},ZP:function(){return P}});var n=r(85893),i=r(75350),o=r(93344),a=r(47523),s=r(204),l=r(90634),c=r(23100),u=r(67294),d=r(99640),h=r(96639),f=r(547),p=r(99931),g=r(12498),m=r(53948),v=r(49598),b=r(13272),y=r(44416),w=r(56426),x=r(20623),_=r(15151),C=u.memo(e=>{var t,r;let i=(0,g.ff)("gray.700","gray.900"),o=e.address.implementations,a=u.useCallback(e=>{e.stopPropagation()},[]);if(!o||0===o.length)return null;let l=Math.min(o.length,3),d=null===(r=e.address.metadata)||void 0===r?void 0:null===(t=r.tags.find(e=>"name"===e.tagType))||void 0===t?void 0:t.name,h=1===o.length&&o[0].name?o[0].name:void 0;return(0,n.jsxs)(_.Z,{trigger:"hover",isLazy:!0,gutter:8,children:[(0,n.jsx)(m.x,{children:(0,n.jsx)(c.xu,{display:"inline-flex",w:"100%",children:(0,n.jsx)(f.VY,{...e,truncation:d||h||e.address.name?"tail":e.truncation,text:d||h||e.address.name||e.address.hash,isTooltipDisabled:!0})})}),(0,n.jsx)(v.h,{children:(0,n.jsx)(b.t7,{children:(0,n.jsxs)(y.y,{bgColor:i,w:"fit-content",borderRadius:"sm",maxW:{base:"100vw",lg:"410px"},onClick:a,children:[(0,n.jsx)(w.Q,{bgColor:i}),(0,n.jsxs)(x.b,{color:"white",p:2,fontSize:"sm",lineHeight:5,textAlign:"center",children:[(0,n.jsxs)(c.xu,{fontWeight:600,children:["Proxy contract",e.address.name?" (".concat(e.address.name,")"):""]}),(0,n.jsx)(P,{address:{hash:e.address.hash},noLink:!0,noIcon:!0,noHighlight:!0,justifyContent:"center"}),(0,n.jsxs)(c.xu,{fontWeight:600,mt:2,children:["Implementation",o.length>1?"s":"",h?" (".concat(h,")"):""]}),(0,n.jsx)(s.k,{flexWrap:"wrap",columnGap:3,children:o.map(e=>(0,n.jsx)(P,{address:{hash:e.address},noLink:!0,noIcon:!0,noHighlight:!0,minW:"calc((100% - ".concat(l-1," * 12px) / ").concat(l,")"),flex:1,justifyContent:1===l?"center":void 0},e.address))})]})]})})})]})}),A=r(73116);let k=(0,i.m)(e=>{var t;let r=(0,d.B)({pathname:"/address/[hash]",query:{...e.query,hash:e.address.hash}});return(0,n.jsx)(f.rU,{...e,href:null!==(t=e.href)&&void 0!==t?t:r,children:e.children})}),E=e=>{var t,r,i;if(e.noIcon)return null;let l={...(0,p.F)(e.size),marginRight:null!==(t=e.marginRight)&&void 0!==t?t:2};if(e.isLoading)return(0,n.jsx)(o.O,{...l,borderRadius:"full",flexShrink:0});if(e.address.is_contract){if(e.isSafeAddress)return(0,n.jsx)(f.JO,{...e,name:"brands/safe"});let t=!!(null===(r=e.address.implementations)||void 0===r?void 0:r.length),o=t?e.address.is_verified&&(null===(i=e.address.implementations)||void 0===i?void 0:i.every(e=>{let{name:t}=e;return!!t})):e.address.is_verified,s=e.address.is_verified?"contracts/verified":"contracts/regular",l=(o?"verified ":"")+(t?"proxy contract":"contract");return(0,n.jsx)(a.u,{label:l.slice(0,1).toUpperCase()+l.slice(1),children:(0,n.jsx)("span",{children:(0,n.jsx)(f.JO,{...e,name:t?"contracts/proxy":s,color:o?"green.500":void 0,borderRadius:0})})})}return(0,n.jsx)(s.k,{marginRight:l.marginRight,children:(0,n.jsx)(A.Z,{size:"lg"===e.size?30:20,hash:e.address.hash})})},S=(0,i.m)(e=>{var t,r;let i=(null===(r=e.address.metadata)||void 0===r?void 0:null===(t=r.tags.find(e=>"name"===e.tagType))||void 0===t?void 0:t.name)||e.address.ens_domain_name||e.address.name;if(e.address.implementations&&e.address.implementations.length>0)return(0,n.jsx)(C,{...e});if(i){let t=(0,n.jsxs)(l.g,{gap:0,py:1,color:"inherit",children:[(0,n.jsx)(c.xu,{fontWeight:600,whiteSpace:"pre-wrap",wordBreak:"break-word",children:i}),(0,n.jsx)(c.xu,{whiteSpace:"pre-wrap",wordBreak:"break-word",children:e.address.hash})]});return(0,n.jsx)(a.u,{label:t,maxW:{base:"calc(100vw - 8px)",lg:"400px"},children:(0,n.jsx)(o.O,{isLoaded:!e.isLoading,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",as:"span",children:i})})}return(0,n.jsx)(f.VY,{...e,text:e.address.hash})}),T=e=>(0,n.jsx)(f.CK,{...e,text:e.address.hash}),I=f.W2;var P=u.memo((0,i.m)(e=>{let t=(0,p.L)(e),r=(0,h.Lx)(e.noHighlight);return(0,n.jsxs)(I,{className:"".concat(e.className," address-entity ").concat(e.noCopy?"address-entity_no-copy":""),"data-hash":r&&!e.isLoading?e.address.hash:void 0,onMouseEnter:null==r?void 0:r.onMouseEnter,onMouseLeave:null==r?void 0:r.onMouseLeave,position:"relative",zIndex:0,children:[(0,n.jsx)(E,{...t.icon}),(0,n.jsx)(k,{...t.link,children:(0,n.jsx)(S,{...t.content})}),(0,n.jsx)(T,{...t.copy})]})}))},73116:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(85893),i=r(84416),o=r(23100),a=r(5152),s=r.n(a),l=r(67294),c=r(46789),u=r(57245),d=r(93344),h=r(34629),f=r(12498),p=r(75350);let g=s()(async()=>{let e=await r.e(6844).then(r.t.bind(r,96844,23));return"object"==typeof e&&"default"in e?e.default:e},{loadableGenerated:{webpack:()=>[96844]},loading:()=>(0,n.jsx)(d.O,{w:"100%",h:"100%"}),ssr:!1});var m=l.memo((0,p.m)(e=>{let{size:t,seed:r}=e,i=(0,h.dQ)("colors",(0,f.ff)("gray.100","white"));return(0,n.jsx)(o.xu,{boxSize:"".concat(2*t,"px"),transformOrigin:"left top",transform:"scale(0.5)",borderRadius:"full",overflow:"hidden",children:(0,n.jsx)(g,{bg:i,string:r,size:2*t})})}));let v=s()(async()=>{switch(u.U2(u.aL.ADDRESS_IDENTICON_TYPE)||c.Z.UI.views.address.identiconType){case"github":return e=>(0,n.jsx)(m,{size:e.size,seed:e.hash});case"blockie":{let{blo:e}=await r.e(2717).then(r.bind(r,62717));return t=>{let r=e(t.hash,t.size);return(0,n.jsx)(i.E,{src:r,alt:"Identicon for ".concat(t.hash,"}")})}}case"jazzicon":{let e=await r.e(4111).then(r.t.bind(r,44111,23));return t=>(0,n.jsx)(e.default,{diameter:t.size,seed:e.jsNumberForAddress(t.hash)})}case"gradient_avatar":{let e=(await r.e(4461).then(r.t.bind(r,74461,23))).default;return t=>{let r=e(t.hash,t.size,"circle");return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})}}default:return()=>null}},{loadableGenerated:{webpack:()=>[74461]},ssr:!1});var b=l.memo(e=>{let{size:t,hash:r}=e;return(0,n.jsx)(o.xu,{boxSize:"".concat(t,"px"),borderRadius:"full",overflow:"hidden",children:(0,n.jsx)(v,{size:t,hash:r})})})},547:function(e,t,r){"use strict";r.d(t,{CK:function(){return y},JO:function(){return v},VY:function(){return b},W2:function(){return g},rU:function(){return m}});var n=r(85893),i=r(75350),o=r(204),a=r(93344),s=r(12498);r(67294);var l=r(92074),c=r(39206),u=r(27255),d=r(21967),h=r(91896),f=r(85e3),p=r(99931);let g=(0,i.m)(e=>{let{className:t,children:r,...i}=e;return(0,n.jsx)(o.k,{className:t,alignItems:"center",minWidth:0,...i,children:r})}),m=(0,i.m)(e=>{let{isLoading:t,children:r,isExternal:i,onClick:o,href:s,noLink:l}=e,c={display:"inline-flex",alignItems:"center",minWidth:0};if(l)return(0,n.jsx)(a.O,{isLoaded:!t,...c,children:r});let u=i?h.Z:f.Z;return(0,n.jsx)(u,{...c,href:s,isLoading:t,onClick:o,children:r})}),v=e=>{let{isLoading:t,noIcon:r,size:i,name:o,color:a,borderRadius:l,marginRight:c,boxSize:u}=e,h=(0,s.ff)("gray.500","gray.400");if(r||!o)return null;let f=(0,p.F)(i);return(0,n.jsx)(d.Z,{name:o,boxSize:null!=u?u:f.boxSize,isLoading:t,borderRadius:null!=l?l:"base",display:"block",mr:null!=c?c:2,color:null!=a?a:h,minW:0,flexShrink:0})},b=(0,i.m)(e=>{let{className:t,isLoading:r,asProp:o,text:s,truncation:l="dynamic",tailLength:d,isTooltipDisabled:h}=e,f=(()=>{switch(l){case"constant_long":return(0,n.jsx)(c.Z,{hash:s,as:o,type:"long",isTooltipDisabled:h});case"constant":return(0,n.jsx)(c.Z,{hash:s,as:o,isTooltipDisabled:h});case"dynamic":return(0,n.jsx)(u.Z,{hash:s,as:o,tailLength:d,isTooltipDisabled:h});case"tail":case"none":return(0,n.jsx)(i.m.span,{as:o,children:s})}})();return(0,n.jsx)(a.O,{className:t,isLoaded:!r,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"tail"===l?"ellipsis":void 0,children:f})}),y=e=>e.noCopy?null:(0,n.jsx)(l.Z,{...e})},99931:function(e,t,r){"use strict";function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"md";switch(e){case"md":return{boxSize:"20px"};case"lg":return{boxSize:"30px"}}}function i(e){let{className:t,onClick:r,icon:n,...i}=e;return{container:{className:t},icon:{...i,...n},link:{...i,onClick:r},content:i,symbol:i,copy:i}}r.d(t,{F:function(){return n},L:function(){return i}})},85498:function(e,t,r){"use strict";r.d(t,{JO:function(){return u},VY:function(){return d},W2:function(){return f},rU:function(){return c}});var n=r(85893),i=r(75350),o=r(67294),a=r(99640),s=r(547),l=r(99931);let c=(0,i.m)(e=>{var t;let r=(0,a.B)({pathname:"/blobs/[hash]",query:{hash:e.hash}});return(0,n.jsx)(s.rU,{...e,href:null!==(t=e.href)&&void 0!==t?t:r,children:e.children})}),u=e=>{var t;return(0,n.jsx)(s.JO,{...e,name:null!==(t=e.name)&&void 0!==t?t:"blob"})},d=(0,i.m)(e=>{var t;return(0,n.jsx)(s.VY,{...e,text:null!==(t=e.text)&&void 0!==t?t:e.hash})}),h=e=>(0,n.jsx)(s.CK,{...e,text:e.hash,noCopy:e.noCopy}),f=s.W2;t.ZP=o.memo((0,i.m)(e=>{let t=(0,l.L)(e);return(0,n.jsxs)(f,{...t.container,children:[(0,n.jsx)(u,{...t.icon}),(0,n.jsx)(c,{...t.link,children:(0,n.jsx)(d,{...t.content})}),(0,n.jsx)(h,{...t.copy})]})}))},34861:function(e,t,r){"use strict";r.d(t,{JO:function(){return u},VY:function(){return d},W2:function(){return h},rU:function(){return c}});var n=r(85893),i=r(75350),o=r(67294),a=r(99640),s=r(547),l=r(99931);let c=(0,i.m)(e=>{var t,r;let i=null!==(t=e.hash)&&void 0!==t?t:String(e.number),o=(0,a.B)({pathname:"/block/[height_or_hash]",query:{height_or_hash:i}});return(0,n.jsx)(s.rU,{...e,href:null!==(r=e.href)&&void 0!==r?r:o,children:e.children})}),u=e=>{var t;return(0,n.jsx)(s.JO,{...e,name:null!==(t=e.name)&&void 0!==t?t:"block_slim"})},d=(0,i.m)(e=>{var t;return(0,n.jsx)(s.VY,{...e,text:String(e.number),tailLength:null!==(t=e.tailLength)&&void 0!==t?t:2})}),h=s.W2;t.ZP=o.memo((0,i.m)(e=>{let t=(0,l.L)(e);return(0,n.jsxs)(h,{...t.container,children:[(0,n.jsx)(u,{...t.icon}),(0,n.jsx)(c,{...t.link,children:(0,n.jsx)(d,{...t.content})})]})}))},72239:function(e,t,r){"use strict";r.d(t,{JO:function(){return p}});var n=r(85893),i=r(75350),o=r(93344),a=r(84416),s=r(67294),l=r(99640),c=r(547),u=r(18069),d=r(72620),h=r(99931);let f=(0,i.m)(e=>{var t;let r=(0,l.B)({pathname:"/token/[hash]",query:{...e.query,hash:e.token.address}});return(0,n.jsx)(c.rU,{...e,href:null!==(t=e.href)&&void 0!==t?t:r,children:e.children})}),p=e=>{var t,r,i;if(e.noIcon)return null;let s={marginRight:null!==(t=e.marginRight)&&void 0!==t?t:2,boxSize:null!==(r=e.boxSize)&&void 0!==r?r:(0,h.F)(e.size).boxSize,borderRadius:"base",flexShrink:0};return e.isLoading?(0,n.jsx)(o.O,{...s,className:e.className}):(0,n.jsx)(a.E,{...s,borderRadius:"ERC-20"===e.token.type?"full":"base",className:e.className,src:null!==(i=e.token.icon_url)&&void 0!==i?i:void 0,alt:"".concat(e.token.name||"token"," logo"),fallback:(0,n.jsx)(u.Z,{...s}),fallbackStrategy:e.token.icon_url?"onError":"beforeLoadOrError"})},g=(0,i.m)(e=>{var t,r,i;let a=[!e.onlySymbol&&(null!==(t=e.token.name)&&void 0!==t?t:"Unnamed token"),e.onlySymbol&&(null!==(i=null!==(r=e.token.symbol)&&void 0!==r?r:e.token.name)&&void 0!==i?i:"Unnamed token"),e.token.symbol&&e.jointSymbol&&!e.onlySymbol&&"(".concat(e.token.symbol,")")].filter(Boolean).join(" ");return(0,n.jsx)(d.Z,{label:a,children:(0,n.jsx)(o.O,{isLoaded:!e.isLoading,display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",height:"fit-content",children:a})})}),m=e=>{let t=e.token.symbol;return!t||e.noSymbol||e.jointSymbol||e.onlySymbol?null:(0,n.jsxs)(o.O,{isLoaded:!e.isLoading,display:"inline-flex",alignItems:"center",maxW:"20%",ml:2,color:"text_secondary",children:[(0,n.jsx)("div",{children:"("}),(0,n.jsx)(d.Z,{label:t,children:(0,n.jsx)(i.m.span,{display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",height:"fit-content",children:t})}),(0,n.jsx)("div",{children:")"})]})},v=e=>(0,n.jsx)(c.CK,{...e,text:e.token.address}),b=c.W2;t.ZP=s.memo((0,i.m)(e=>{let t=(0,h.L)(e);return(0,n.jsxs)(b,{w:"100%",...t.container,children:[(0,n.jsx)(p,{...t.icon}),(0,n.jsx)(f,{...t.link,children:(0,n.jsx)(g,{...t.content})}),(0,n.jsx)(m,{...t.symbol}),(0,n.jsx)(v,{...t.copy})]})}))},58956:function(e,t,r){"use strict";r.d(t,{JO:function(){return u},VY:function(){return d},W2:function(){return f},rU:function(){return c}});var n=r(85893),i=r(75350),o=r(67294),a=r(99640),s=r(547),l=r(99931);let c=(0,i.m)(e=>{var t;let r=(0,a.B)({pathname:"/tx/[hash]",query:{hash:e.hash}});return(0,n.jsx)(s.rU,{...e,href:null!==(t=e.href)&&void 0!==t?t:r,children:e.children})}),u=e=>{var t;return(0,n.jsx)(s.JO,{...e,name:null!==(t=e.name)&&void 0!==t?t:"transactions_slim"})},d=(0,i.m)(e=>{var t;return(0,n.jsx)(s.VY,{...e,text:null!==(t=e.text)&&void 0!==t?t:e.hash})}),h=e=>{var t;return(0,n.jsx)(s.CK,{...e,text:e.hash,noCopy:null===(t=e.noCopy)||void 0===t||t})},f=s.W2;t.ZP=o.memo((0,i.m)(e=>{let t=(0,l.L)(e);return(0,n.jsxs)(f,{...t.container,children:[(0,n.jsx)(u,{...t.icon}),(0,n.jsx)(c,{...t.link,children:(0,n.jsx)(d,{...t.content})}),(0,n.jsx)(h,{...t.copy})]})}))},71421:function(e,t,r){"use strict";r.d(t,{JO:function(){return u},VY:function(){return d},W2:function(){return f},rU:function(){return c}});var n=r(85893),i=r(75350),o=r(67294),a=r(99640),s=r(547),l=r(99931);let c=(0,i.m)(e=>{var t;let r=(0,a.B)({pathname:"/op/[hash]",query:{hash:e.hash}});return(0,n.jsx)(s.rU,{...e,href:null!==(t=e.href)&&void 0!==t?t:r,children:e.children})}),u=e=>{var t;return(0,n.jsx)(s.JO,{...e,name:null!==(t=e.name)&&void 0!==t?t:"user_op_slim"})},d=(0,i.m)(e=>(0,n.jsx)(s.VY,{...e,text:e.hash})),h=e=>{var t;return(0,n.jsx)(s.CK,{...e,text:e.hash,noCopy:null===(t=e.noCopy)||void 0===t||t})},f=s.W2;t.ZP=o.memo((0,i.m)(e=>{let t=(0,l.L)(e);return(0,n.jsxs)(f,{...t.container,children:[(0,n.jsx)(u,{...t.icon}),(0,n.jsx)(c,{...t.link,children:(0,n.jsx)(d,{...t.content})}),(0,n.jsx)(h,{...t.copy})]})}))},21342:function(e,t,r){"use strict";r.d(t,{Z:function(){return k}});var n=r(85893),i=r(12498),o=r(53948),a=r(49598),s=r(44416),l=r(20623),c=r(13272),u=r(204),d=r(23100),h=r(31708),f=r(67294),p=r(99640),g=r(46789),m=r(3749),v=r(15151),b=r(85e3),y=r(75350),w=r(38459),x=r(99005),_=f.memo(e=>{let{name:t,info:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.xu,{children:[(0,n.jsx)(y.m.span,{children:t}),r&&"number"==typeof r.time&&r.time>0&&(0,n.jsxs)(y.m.span,{color:"text_secondary",children:[w.Dh,(r.time/1e3).toLocaleString(void 0,{maximumFractionDigits:1}),"s"]})]}),(0,n.jsx)(x.Z,{data:r,textAlign:"right"}),(0,n.jsx)(x.Z,{data:r,unitMode:"secondary",color:"text_secondary",textAlign:"right"})]})}),C=r(61235);let A=g.Z.features.gasTracker;var k=f.memo(e=>{let{children:t,data:r,dataUpdatedAt:f,isOpen:g,placement:y}=e,w=(0,i.ff)("gray.700","gray.900");if(!r.gas_prices)return null;let x=Object.values(r.gas_prices).some(e=>null==e?void 0:e.fiat_price)&&Object.values(r.gas_prices).some(e=>null==e?void 0:e.price)&&A.isEnabled&&2===A.units.length?3:2;return(0,n.jsxs)(v.Z,{trigger:"hover",isLazy:!0,isOpen:g,placement:y,children:[(0,n.jsx)(o.x,{children:t}),(0,n.jsx)(a.h,{children:(0,n.jsx)(s.y,{bgColor:w,w:"auto",children:(0,n.jsx)(l.b,{color:"white",children:(0,n.jsx)(c.t7,{children:(0,n.jsxs)(u.k,{flexDir:"column",fontSize:"xs",lineHeight:4,rowGap:3,children:[r.gas_price_updated_at&&(0,n.jsxs)(u.k,{justifyContent:"space-between",children:[(0,n.jsx)(d.xu,{color:"text_secondary",children:"Last update"}),(0,n.jsxs)(u.k,{color:"text_secondary",justifyContent:"flex-end",columnGap:2,ml:3,children:[(0,m.Z)(r.gas_price_updated_at).format("MMM DD, HH:mm:ss"),0!==r.gas_prices_update_in&&(0,n.jsx)(C.Z,{startTime:f,duration:r.gas_prices_update_in},f)]})]}),(0,n.jsxs)(h.r,{rowGap:2,columnGap:"10px",gridTemplateColumns:"repeat(".concat(x,", minmax(min-content, auto))"),children:[(0,n.jsx)(_,{name:"Fast",info:r.gas_prices.fast}),(0,n.jsx)(_,{name:"Normal",info:r.gas_prices.average}),(0,n.jsx)(_,{name:"Slow",info:r.gas_prices.slow})]}),(0,n.jsx)(b.Z,{href:(0,p.B)({pathname:"/gas-tracker"}),children:"Gas tracker overview"})]})})})})})]})})},61235:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(85893),i=r(12498),o=r(75350),a=e=>(0,n.jsx)(o.m.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});a.displayName="Circle";var s=r(70917),l=(0,s.F4)({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),c=(0,s.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});(0,s.F4)({"0%":{left:"-40%"},"100%":{left:"100%"}}),(0,s.F4)({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});var u=e=>{let{size:t,isIndeterminate:r,...i}=e;return(0,n.jsx)(o.m.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:r?`${c} 2s linear infinite`:void 0},...i})};u.displayName="Shape";var d=(0,r(35059).G)((e,t)=>{var r;let{size:i="48px",max:s=100,min:c=0,valueText:d,getValueText:h,value:f,capIsRound:p,children:g,thickness:m="10px",color:v="#0078d4",trackColor:b="#edebe9",isIndeterminate:y,...w}=e,x=function(e){let{value:t=0,min:r,max:n,valueText:i,getValueText:o,isIndeterminate:a,role:s="progressbar"}=e,l=(t-r)*100/(n-r);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":n,"aria-valuemin":r,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(null!=t)return"function"==typeof o?o(t,l):i})(),role:s},percent:l,value:t}}({min:c,max:s,value:f,valueText:d,getValueText:h,isIndeterminate:y}),_=y?void 0:(null!=(r=x.percent)?r:0)*2.64,C=null==_?void 0:`${_} ${264-_}`,A=y?{css:{animation:`${l} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:C,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"};return(0,n.jsxs)(o.m.div,{ref:t,className:"chakra-progress",...x.bind,...w,__css:{display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:i},children:[(0,n.jsxs)(u,{size:i,isIndeterminate:y,children:[(0,n.jsx)(a,{stroke:b,strokeWidth:m,className:"chakra-progress__track"}),(0,n.jsx)(a,{stroke:v,strokeWidth:m,className:"chakra-progress__indicator",strokeLinecap:p?"round":void 0,opacity:0!==x.value||y?void 0:0,...A})]}),g]})});d.displayName="CircularProgress";var h=r(67294),f=r(3749);let p=(e,t)=>{let r=(0,f.Z)().diff(e,"ms")/t*100;return r>=99?99:r};var g=h.memo((0,o.m)(e=>{let{startTime:t,duration:r,className:o,size:a=4}=e,[s,l]=h.useState(p((0,f.Z)(t),r)),c=(0,i.ff)("blackAlpha.50","whiteAlpha.100");return h.useEffect(()=>{let e=(0,f.Z)(t),n=window.setInterval(()=>{let t=p(e,r);l(t),99===t&&window.clearInterval(n)},100);return()=>{window.clearInterval(n)}},[t,r]),(0,n.jsx)(d,{className:o,value:s,trackColor:c,size:a})}))},99005:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(85893),i=r(75350);r(67294);var o=r(46789),a=r(62770);function s(e,t){switch(t){case"gwei":if(!e.price)return"N/A ".concat(a.Y.gwei);if(.1>Number(e.price))return"< 0.1 ".concat(a.Y.gwei);return"".concat(Number(e.price).toLocaleString(void 0,{maximumFractionDigits:1})," ").concat(a.Y.gwei);case"usd":if(!e.fiat_price)return"$N/A";if(.01>Number(e.fiat_price))return"< $0.01";return"$".concat(Number(e.fiat_price).toLocaleString(void 0,{maximumFractionDigits:2}))}}let l=o.Z.features.gasTracker,c={gwei:"price",usd:"fiat_price"};var u=(0,i.m)(e=>{let{data:t,prefix:r,className:i,unitMode:o="primary"}=e;if(!t||!l.isEnabled)return null;switch(o){case"secondary":{let e=l.units[0],o=l.units[1];if(!o||!t[c[e]]||!t[c[o]])return null;let a=s(t,o);return(0,n.jsxs)("span",{className:i,children:[r,a]})}case"primary":{let e=l.units[0],o=l.units[1];if(!e)return null;if(!t[c[e]]){let a=t[c[o]];if(!o||!a)return(0,n.jsx)("span",{className:i,children:s(t,e)});return(0,n.jsxs)("span",{className:i,children:[r,s(t,o)]})}return(0,n.jsxs)("span",{className:i,children:[r,s(t,e)]})}}})},62307:function(e,t,r){"use strict";r.d(t,{W2:function(){return eO},VY:function(){return eR},$_:function(){return H},z7:function(){return eN},EY:function(){return ej},l2:function(){return eQ},Ke:function(){return e6},_N:function(){return eP}});var n=r(85893),i=r(67294),o=r(12498),a=r(33838),s=r(204),l=r(23100),c=r(88911),u=r(31708),d=r(93344),h=r(90634),f=r(78551),p=r(46789),g=r(93777),m=r(49916),v=r(11163),b=r(38459),y=r(21967);let w=p.Z.UI.maxContentWidth?1920:1e4,x=p.Z.UI.maxContentWidth?1440:1e4,_="horizontal"===p.Z.UI.navigation.layout?x:w;var C=r(96272),A=r(82229),k=r(39513),E=r(95414),S=r(30170),T=r(47411);let I=p.Z.features.web3Wallet;var P=i.memo(()=>{let e=(0,A.Z)(),{provider:t,wallet:r}=(0,S.Z)(),o=(0,E.Z)(),a=i.useCallback(async()=>{if(r&&t)try{await o(),e({position:"top-right",title:"Success",description:"Successfully added network to your wallet",status:"success",variant:"subtle",isClosable:!0}),k.Kz(k.GM.ADD_TO_WALLET,{Target:"network",Wallet:r})}catch(t){e({position:"top-right",title:"Error",description:(null==t?void 0:t.message)||"Something went wrong",status:"error",variant:"subtle",isClosable:!0})}},[o,t,e,r]);return t&&r&&p.Z.chain.rpcUrl&&I.isEnabled?(0,n.jsxs)(C.z,{variant:"outline",size:"sm",onClick:a,children:[(0,n.jsx)(y.Z,{name:T.Y[r].icon,boxSize:5,mr:2}),"Add ",p.Z.chain.name]}):null}),O=r(7754),R=e=>{let{icon:t,iconSize:r,text:i,url:o,isLoading:s}=e;return s?(0,n.jsx)(d.O,{my:"3px",children:i}):(0,n.jsxs)(a.r,{href:o,display:"flex",alignItems:"center",h:"30px",variant:"secondary",target:"_blank",fontSize:"xs",children:[t&&(0,n.jsx)(O.M,{minW:6,mr:2,children:(0,n.jsx)(y.Z,{boxSize:r||5,name:t})}),i]})},M=r(89154),N=r(53948),j=r(44416),D=r(20623),B=r(30202),L=r(69391),$=r(73149),U=r(15151),z=()=>{let{data:e,isError:t,isPending:r}=(0,g.Z)("homepage_indexing_status"),a=(0,o.ff)("blackAlpha.100","whiteAlpha.100"),l=(0,o.ff)("black","white"),u=(0,B.NL)(),d=i.useCallback(e=>{u.setQueryData((0,g.$)("homepage_indexing_status"),t=>{let r=t?{...t}:{};return r.finished_indexing=e.finished,r.indexed_internal_transactions_ratio=e.ratio,r})},[u]),h=(0,L.Z)({topic:"blocks:indexing_internal_transactions",isDisabled:!e||e.finished_indexing});if((0,$.Z)({channel:h,event:"internal_txs_index_status",handler:d}),t||r||!1!==e.finished_indexing)return null;let f=(0,n.jsxs)(c.x,{fontSize:"xs",color:l,children:[e.indexed_internal_transactions_ratio&&"".concat(Math.floor(100*Number(e.indexed_internal_transactions_ratio)),"% Blocks With Internal Transactions Indexed").concat(b.vk).concat(b.Ol," "),"We",b.Iy,"re indexing this chain right now. Some of the counts may be inaccurate."]}),p=(0,n.jsxs)(s.k,{px:2,py:1,bg:a,borderRadius:"base",alignItems:"center",justifyContent:"center",color:"green.400",_hover:{color:"blue.400"},children:[(0,n.jsx)(M.h,{colorScheme:"none","aria-label":"hint",icon:(0,n.jsx)(y.Z,{name:"info",boxSize:5}),boxSize:6,variant:"simple"}),e.indexed_internal_transactions_ratio&&(0,n.jsx)(c.x,{fontWeight:600,fontSize:"xs",color:"inherit",children:Math.floor(100*Number(e.indexed_internal_transactions_ratio))+"%"})]});return(0,n.jsxs)(U.Z,{placement:"bottom-start",isLazy:!0,trigger:"hover",children:[(0,n.jsx)(N.x,{children:p}),(0,n.jsx)(j.y,{maxH:"450px",overflowY:"hidden",w:"240px",children:(0,n.jsx)(D.b,{p:4,bgColor:a,boxShadow:"2xl",children:f})})]})};let F="https://github.com/blockscout/frontend/tree/".concat(p.Z.UI.footer.frontendVersion),q="https://github.com/blockscout/frontend/commit/".concat(p.Z.UI.footer.frontendCommit);var H=i.memo(()=>{let{data:e}=(0,g.Z)("config_backend_version",{queryOptions:{staleTime:1/0}}),t=function(e){if(!e)return;let[t,r]=e.split(".+commit.");return r?"https://github.com/blockscout/blockscout/commit/".concat(r):"https://github.com/blockscout/blockscout/tree/".concat(t)}(null==e?void 0:e.backend_version),r=function(e){let[t,r]=i.useState(!0),n=(0,v.useRouter)();return i.useEffect(()=>{r(!1)},[]),i.useMemo(()=>{if(t)return"";let r=new URLSearchParams({template:"bug_report.yml",labels:"triage",link:window.location.href,"backend-version":e||"","frontend-version":[p.Z.UI.footer.frontendVersion,p.Z.UI.footer.frontendCommit].filter(Boolean).join("+"),"additional-information":"**User Agent:** ".concat(window.navigator.userAgent)});return"https://github.com/blockscout/blockscout/issues/new/?".concat(r.toString())},[e,t,n.asPath])}(null==e?void 0:e.backend_version),w=(0,o.ff)("blue.600","white"),x=[{icon:"edit",iconSize:"16px",text:"Submit an issue",url:r},{icon:"social/canny",iconSize:"20px",text:"Feature request",url:"https://blockscout.canny.io/feature-requests"},{icon:"social/git",iconSize:"18px",text:"Contribute",url:"https://github.com/blockscout/blockscout"},{icon:"social/twitter",iconSize:"18px",text:"X (ex-Twitter)",url:"https://www.twitter.com/blockscoutcom"},{icon:"social/discord",iconSize:"24px",text:"Discord",url:"https://discord.gg/blockscout"},{icon:"brands/blockscout",iconSize:"18px",text:"All chains",url:"https://www.blockscout.com/chains-and-projects"},{icon:"donate",iconSize:"20px",text:"Donate",url:"https://github.com/sponsors/blockscout"}],C=p.Z.UI.footer.frontendVersion?(0,n.jsx)(a.r,{href:F,target:"_blank",children:p.Z.UI.footer.frontendVersion}):p.Z.UI.footer.frontendCommit?(0,n.jsx)(a.r,{href:q,target:"_blank",children:p.Z.UI.footer.frontendCommit}):null,A=(0,m.Z)(),{isPlaceholderData:k,data:E}=(0,f.a)({queryKey:["footer-links"],queryFn:async()=>A(p.Z.UI.footer.links||"",void 0,{resource:"footer-links"}),enabled:!!p.Z.UI.footer.links,staleTime:1/0,placeholderData:[]}),S=k?1:Math.min((null==E?void 0:E.length)||1/0,4)+1,T=i.useCallback(e=>(0,n.jsxs)(s.k,{gridArea:e,flexWrap:"wrap",columnGap:8,rowGap:6,mb:{base:5,lg:10},_empty:{display:"none"},children:[!p.Z.UI.indexingAlert.intTxs.isHidden&&(0,n.jsx)(z,{}),(0,n.jsx)(P,{})]}),[]),I=i.useCallback(r=>(0,n.jsxs)(l.xu,{gridArea:r,children:[(0,n.jsxs)(s.k,{columnGap:2,fontSize:"xs",lineHeight:5,alignItems:"center",color:"text",children:[(0,n.jsx)("span",{children:"Made with"}),(0,n.jsx)(a.r,{href:"https://www.blockscout.com",isExternal:!0,display:"inline-flex",color:w,_hover:{color:w},children:(0,n.jsx)(y.Z,{name:"networks/logo-placeholder",width:"80px",height:4})})]}),(0,n.jsx)(c.x,{mt:3,fontSize:"xs",children:"Blockscout is a tool for inspecting and analyzing EVM based blockchains. Blockchain explorer for Ethereum Networks."}),(0,n.jsxs)(l.xu,{mt:6,alignItems:"start",fontSize:"xs",lineHeight:5,children:[t&&(0,n.jsxs)(c.x,{children:["Backend: ",(0,n.jsx)(a.r,{href:t,target:"_blank",children:null==e?void 0:e.backend_version})]}),C&&(0,n.jsxs)(c.x,{children:["Frontend: ",C]}),(0,n.jsxs)(c.x,{children:["Copyright ",b.JG," Blockscout Limited 2023-",new Date().getFullYear()]})]})]}),[t,null==e?void 0:e.backend_version,C,w]),O={as:"footer",borderTopWidth:"1px",borderTopColor:"solid"},M={px:{base:4,lg:"horizontal"===p.Z.UI.navigation.layout?6:12,"2xl":6},py:{base:4,lg:8},gridTemplateColumns:{base:"1fr",lg:"minmax(auto, 470px) 1fr"},columnGap:{lg:"32px",xl:"100px"},maxW:"".concat(_,"px"),m:"0 auto"};return p.Z.UI.footer.links?(0,n.jsx)(l.xu,{...O,children:(0,n.jsxs)(u.r,{...M,children:[(0,n.jsxs)("div",{children:[T(),I()]}),(0,n.jsx)(u.r,{gap:{base:6,lg:5===S?2:8,xl:12},gridTemplateColumns:{base:"repeat(auto-fill, 160px)",lg:"repeat(".concat(S,", 135px)"),xl:"repeat(".concat(S,", 160px)")},justifyContent:{lg:"flex-end"},mt:{base:8,lg:0},children:[{title:"Blockscout",links:x},...E||[]].slice(0,S).map(e=>(0,n.jsxs)(l.xu,{children:[(0,n.jsx)(d.O,{fontWeight:500,mb:3,display:"inline-block",isLoaded:!k,children:e.title}),(0,n.jsx)(h.g,{spacing:1,alignItems:"start",children:e.links.map(e=>(0,i.createElement)(R,{...e,key:e.text,isLoading:k}))})]},e.title))})]})}):(0,n.jsx)(l.xu,{...O,children:(0,n.jsxs)(u.r,{...M,gridTemplateAreas:{lg:'\n          "network links-top"\n          "info links-bottom"\n        '},children:[T({lg:"network"}),I({lg:"info"}),(0,n.jsx)(u.r,{gridArea:{lg:"links-bottom"},gap:1,gridTemplateColumns:{base:"repeat(auto-fill, 160px)",lg:"repeat(3, 160px)",xl:"repeat(4, 160px)"},gridTemplateRows:{base:"auto",lg:"repeat(3, auto)",xl:"repeat(2, auto)"},gridAutoFlow:{base:"row",lg:"column"},alignContent:"start",justifyContent:{lg:"flex-end"},mt:{base:8,lg:0},children:x.map(e=>(0,i.createElement)(R,{...e,key:e.text}))})]})})}),W=r(97822),V=r(62723),Z=r(75350),G=r(99640),K=r(77612),Y=r(91896),Q=r(85e3),J=i.memo(e=>{let{item:t}=e,r={width:"100%",height:"34px",display:"inline-flex",alignItems:"center",color:(0,o.ff)("blackAlpha.800","gray.400"),_hover:{textDecoration:"none","& *":{color:"link_hovered"}}},i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{name:t.icon,boxSize:5,mr:2}),(0,n.jsx)(c.x,{as:"span",fontSize:"sm",children:t.text})]});return t.dappId?(0,n.jsx)(Q.Z,{href:(0,G.B)({pathname:"/apps/[id]",query:{id:t.dappId,action:"connect"}}),target:"_self",...r,children:i}):(0,n.jsx)(Y.Z,{href:t.url,...r,children:i})});let X=p.Z.features.deFiDropdown;var ee=(0,Z.m)(i.memo(()=>{let e=(0,v.useRouter)(),t=(0,K.Z)(e.pathname),{isOpen:r,onToggle:o,onClose:a}=(0,V.q)(),c=i.useCallback(e=>{k.Kz(k.GM.BUTTON_CLICK,{Content:e,Source:t})},[t]);if(!X.isEnabled)return null;let u={variant:"solid",size:"xs",borderRadius:"sm",height:5,px:1.5,fontWeight:"500"},d=X.items.map(e=>({...e,onClick:()=>c(e.text)}));return d.length>1?(0,n.jsxs)(U.Z,{isOpen:r,onClose:a,placement:"bottom-start",isLazy:!0,children:[(0,n.jsx)(N.x,{children:(0,n.jsxs)(C.z,{onClick:o,isActive:r,...u,children:[(0,n.jsx)(Z.m.span,{display:{base:"none",lg:"inline"},mr:1,children:"Blockscout"}),"DeFi",(0,n.jsx)(y.Z,{name:"arrows/east-mini",boxSize:4,ml:1,transform:"rotate(-90deg)"})]})}),(0,n.jsx)(j.y,{w:"auto",children:(0,n.jsx)(D.b,{children:(0,n.jsx)(s.k,{flexDirection:"column",gap:1,children:d.map((e,t)=>(0,n.jsx)(J,{item:e},t))})})})]}):(0,n.jsxs)(C.z,{as:"a",href:d[0].dappId?(0,G.B)({pathname:"/apps/[id]",query:{id:d[0].dappId,action:"connect"}}):d[0].url,target:d[0].dappId?"_self":"_blank",onClick:d[0].onClick,...u,children:[(0,n.jsx)(y.Z,{name:d[0].icon,boxSize:3,mr:{base:0,sm:1}}),(0,n.jsx)(l.xu,{display:{base:"none",sm:"inline"},children:d[0].text})]})})),et=r(1004),er=r(56005),en=r(49394),ei=r(80333),eo=r(69558),ea=r(56526),es=i.memo(e=>{let{items:t,tabs:r}=e,a=null==t?void 0:t.find(e=>{let{isActive:t}=e;return t}),l=r.findIndex(e=>(null==a?void 0:a.group)===e),[c,u]=i.useState(l>-1?l:0),f=(0,o.ff)("blackAlpha.50","whiteAlpha.50"),p=i.useCallback(e=>{u(e)},[]),g=t&&0!==t.length?(0,n.jsxs)(et.m,{variant:"outline",colorScheme:"gray",size:"sm",isLazy:!0,index:c,onChange:p,children:[r.length>1&&(0,n.jsx)(er.t,{columnGap:2,children:r.map((e,t)=>(0,n.jsx)(en.O,{textTransform:"capitalize",...c===t?{"data-selected":"true"}:{},children:e},e))}),(0,n.jsx)(ei.n,{mt:3,children:r.map(e=>(0,n.jsx)(eo.x,{p:0,children:(0,n.jsx)(h.g,{as:"ul",spacing:1,alignItems:"stretch",mt:4,maxH:"516px",overflowY:"scroll",children:t.filter(t=>t.group===e).map(e=>(0,n.jsx)(ea.Z,{...e},e.title))})},e))})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.k,{alignItems:"center",children:[(0,n.jsx)(s.k,{h:"32px",w:"105px",bgColor:f,borderRadius:"base",px:4,py:2,children:(0,n.jsx)(d.O,{h:"16px",w:"100%"})}),(0,n.jsx)(d.O,{h:"16px",w:"68px",mx:4}),(0,n.jsx)(d.O,{h:"16px",w:"45px",mx:4})]}),(0,n.jsxs)(s.k,{mt:3,flexDir:"column",rowGap:2,children:[(0,n.jsxs)(s.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(d.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(d.O,{h:"16px",w:"120px",ml:3})]}),(0,n.jsxs)(s.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(d.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(d.O,{h:"16px",w:"180px",ml:3})]}),(0,n.jsxs)(s.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(d.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(d.O,{h:"16px",w:"150px",ml:3})]})]})]});return(0,n.jsx)(j.y,{w:"330px",children:(0,n.jsx)(D.b,{children:g})})}),el=r(3714),ec=i.memo(()=>{let e=(0,el.Z)();return(0,n.jsxs)(U.Z,{placement:"bottom-start",trigger:"click",isLazy:!0,isOpen:e.isOpen,onClose:e.onClose,children:[(0,n.jsx)(N.x,{children:(0,n.jsx)(M.h,{variant:"simple",colorScheme:"blue","aria-label":"Network menu",icon:(0,n.jsx)(y.Z,{name:"networks",boxSize:4}),p:"1px",boxSize:4,borderRadius:"none",onClick:e.onToggle})}),(0,n.jsx)(es,{items:e.data,tabs:e.availableTabs})]})}),eu=r(57245),ed=r(24299),eh=r(34629),ef=r(47523);let ep=[0,10];var eg=i.memo(e=>{let{label:t,value:r,bg:i,onClick:a,isActive:s}=e,c=(0,o.ff)("white","gray.900"),u=(0,o.ff)("blue.50","whiteAlpha.100"),d=(0,eh.dQ)("colors",(0,o.ff)("blackAlpha.800","gray.50")),h=(0,eh.dQ)("colors","link_hovered");return(0,n.jsx)(l.xu,{p:"9px",bgColor:s?u:"transparent",borderRadius:"base",children:(0,n.jsx)(ef.u,{label:t,offset:ep,children:(0,n.jsx)(l.xu,{bg:i,boxSize:"22px",borderRadius:"full",borderWidth:"1px",borderColor:s?u:c,position:"relative",cursor:"pointer",_before:{position:"absolute",display:"block",content:'""',top:"-3px",left:"-3px",width:"calc(100% + 2px)",height:"calc(100% + 2px)",borderStyle:"solid",borderRadius:"full",borderWidth:"2px",borderColor:s?d:"transparent"},_hover:{_before:{borderColor:s?d:h}},"data-value":r,onClick:a})})})}),em=i.memo(e=>{let{onSelect:t}=e,{setColorMode:r}=(0,o.If)(),[a,c]=i.useState(),u=i.useCallback(e=>{let t=ed.M.find(t=>t.hex===e);if(!t)return;r(t.colorMode);let n="light"===t.colorMode?"--chakra-colors-white":"--chakra-colors-black";window.document.documentElement.style.setProperty(n,e),eu.t8(eu.aL.COLOR_MODE_HEX,e),window.localStorage.setItem(eu.aL.COLOR_MODE,t.colorMode)},[r]);i.useEffect(()=>{var e;let t=eu.U2(eu.aL.COLOR_MODE)||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),r=ed.M.filter(e=>e.colorMode===t),n=r[r.length-1].hex,i=null!==(e=eu.U2(eu.aL.COLOR_MODE_HEX))&&void 0!==e?e:n;u(i),c(i)},[]);let d=i.useCallback(e=>{e.stopPropagation();let r=e.currentTarget.getAttribute("data-value");r&&(u(r),c(r),null==t||t())},[u,t]),h=ed.M.find(e=>e.hex===a);return(0,n.jsxs)("div",{children:[(0,n.jsx)(l.xu,{fontWeight:600,children:"Color theme"}),(0,n.jsx)(l.xu,{color:"text_secondary",mt:1,mb:2,children:null==h?void 0:h.label}),(0,n.jsx)(s.k,{children:ed.M.map(e=>(0,n.jsx)(eg,{label:e.label,value:e.hex,bg:e.sampleBg,isActive:e.hex===a,onClick:d},e.label))})]})});let ev=[{label:"GitHub",id:"github",sampleBg:'url("/static/identicon_logos/github.png") center / contain no-repeat'},{label:"Metamask jazzicon",id:"jazzicon",sampleBg:'url("/static/identicon_logos/jazzicon.png") center / contain no-repeat'},{label:"Ethereum blockies",id:"blockie",sampleBg:'url("/static/identicon_logos/blockies.png") center / contain no-repeat'},{label:"Gradient avatar",id:"gradient_avatar",sampleBg:'url("/static/identicon_logos/gradient_avatar.png") center / contain no-repeat'}];var eb=i.memo(()=>{let[e,t]=i.useState();i.useEffect(()=>{t(eu.U2(eu.aL.ADDRESS_IDENTICON_TYPE)||p.Z.UI.views.address.identiconType)},[]);let r=i.useCallback(e=>{e.stopPropagation();let t=e.currentTarget.getAttribute("data-value");t&&(eu.t8(eu.aL.ADDRESS_IDENTICON_TYPE,t),window.location.reload())},[]),o=ev.find(t=>t.id===e);return(0,n.jsxs)("div",{children:[(0,n.jsx)(l.xu,{fontWeight:600,children:"Address identicon"}),(0,n.jsx)(l.xu,{color:"text_secondary",mt:1,mb:2,children:null==o?void 0:o.label}),(0,n.jsx)(s.k,{children:ev.map(t=>(0,n.jsx)(eg,{label:t.label,value:t.id,bg:t.sampleBg,isActive:t.id===e,onClick:r},t.id))})]})}),ey=i.memo(()=>{let{isOpen:e,onToggle:t,onClose:r}=(0,V.q)();return(0,n.jsxs)(U.Z,{placement:"bottom-start",trigger:"click",isOpen:e,onClose:r,children:[(0,n.jsx)(N.x,{children:(0,n.jsx)(M.h,{variant:"simple",colorScheme:"blue","aria-label":"User settings",icon:(0,n.jsx)(y.Z,{name:"gear_slim",boxSize:5}),p:"1px",boxSize:5,onClick:t})}),(0,n.jsx)(j.y,{overflowY:"hidden",w:"auto",fontSize:"sm",children:(0,n.jsxs)(D.b,{boxShadow:"2xl",p:4,children:[(0,n.jsx)(em,{onSelect:r}),(0,n.jsx)(l.xu,{borderColor:"divider",borderWidth:"1px",my:3}),(0,n.jsx)(eb,{})]})})]})}),ew=r(3749),ex=r(20809),e_=r(25448),eC=r(21342),eA=r(99005),ek=r(17963),eE=r(84416);let eS=p.Z.features.getGasButton;var eT=()=>{let e=(0,ex.Z)(!1),t=i.useCallback(()=>{k.Kz(k.GM.BUTTON_CLICK,{Content:"Get gas",Source:"address"})},[]);if(eS.isEnabled&&!e)try{let e=eS.dappId,r=new URL(eS.url);r.searchParams.append("utm_source","blockscout"),r.searchParams.append("utm_medium","address");let i=r.toString(),o="string"==typeof e,a=o?Q.Z:Y.Z,s=o?(0,G.B)({pathname:"/apps/[id]",query:{id:e,url:i}}):i;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.xu,{h:"1px",w:"8px",bg:"divider",mx:1}),(0,n.jsxs)(a,{href:s,display:"flex",alignItems:"center",fontSize:"xs",lineHeight:5,onClick:t,children:[eS.logoUrl&&(0,n.jsx)(eE.E,{src:eS.logoUrl,alt:eS.name,boxSize:"14px",mr:1}),eS.name]})]})}catch(e){}return null},eI=i.memo(()=>{let e=(0,ex.Z)(),{data:t,isPlaceholderData:r,isError:o,refetch:l,dataUpdatedAt:c}=(0,g.Z)("stats",{queryOptions:{placeholderData:e_.OJ,refetchOnMount:!1}});return(i.useEffect(()=>{if(r||!(null==t?void 0:t.gas_price_updated_at))return;let e=(0,ew.Z)(c).add(t.gas_prices_update_in,"ms").diff((0,ew.Z)(),"ms");if(e<=0)return;let n=window.setTimeout(()=>{l()},e);return()=>{window.clearTimeout(n)}},[r,null==t?void 0:t.gas_price_updated_at,c,null==t?void 0:t.gas_prices_update_in,l]),o)?(0,n.jsx)("div",{}):(0,n.jsxs)(s.k,{alignItems:"center",fontSize:"xs",fontWeight:500,children:[(null==t?void 0:t.coin_price)&&(0,n.jsxs)(s.k,{columnGap:1,children:[(0,n.jsxs)(d.O,{isLoaded:!r,children:[(0,n.jsxs)(Z.m.span,{color:"text_secondary",children:[p.Z.chain.currency.symbol," "]}),(0,n.jsxs)("span",{children:["$",Number(t.coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})]})]}),t.coin_price_change_percentage&&(0,n.jsx)(d.O,{isLoaded:!r,children:(0,n.jsxs)(Z.m.span,{color:Number(t.coin_price_change_percentage)>=0?"green.500":"red.500",children:[Number(t.coin_price_change_percentage).toFixed(2),"%"]})})]}),!e&&(null==t?void 0:t.secondary_coin_price)&&p.Z.chain.secondaryCoin.symbol&&(0,n.jsx)(s.k,{columnGap:1,ml:(null==t?void 0:t.coin_price)?3:0,children:(0,n.jsxs)(d.O,{isLoaded:!r,children:[(0,n.jsxs)(Z.m.span,{color:"text_secondary",children:[p.Z.chain.secondaryCoin.symbol," "]}),(0,n.jsxs)("span",{children:["$",Number(t.secondary_coin_price).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:6})]})]})}),(null==t?void 0:t.coin_price)&&p.Z.features.gasTracker.isEnabled&&(0,n.jsx)(ek.Z,{color:"divider"}),(null==t?void 0:t.gas_prices)&&null!==t.gas_prices.average&&p.Z.features.gasTracker.isEnabled&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(d.O,{isLoaded:!r,children:[(0,n.jsx)(Z.m.span,{color:"text_secondary",children:"Gas "}),(0,n.jsx)(eC.Z,{data:t,dataUpdatedAt:c,placement:(null==t?void 0:t.coin_price)?void 0:"bottom-start",children:(0,n.jsx)(a.r,{children:(0,n.jsx)(eA.Z,{data:t.gas_prices.average})})})]}),!r&&(0,n.jsx)(eT,{})]})]})}),eP=i.memo(()=>{let e=(0,o.ff)("gray.50","whiteAlpha.100");return(0,n.jsx)(l.xu,{bgColor:e,children:(0,n.jsxs)(s.k,{py:2,px:{base:3,lg:6},maxW:"".concat(_,"px"),m:"0 auto",justifyContent:"space-between",alignItems:"center",children:[(0,n.jsx)(eI,{}),(0,n.jsxs)(s.k,{alignItems:"center",children:[p.Z.features.deFiDropdown.isEnabled&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ee,{}),(0,n.jsx)(W.i,{mr:3,ml:{base:2,sm:3},height:4,orientation:"vertical"})]}),(0,n.jsx)(ey,{}),"horizontal"===p.Z.UI.navigation.layout&&!!p.Z.UI.navigation.featuredNetworks&&(0,n.jsxs)(l.xu,{display:{base:"none",lg:"flex"},children:[(0,n.jsx)(W.i,{mx:3,height:4,orientation:"vertical"}),(0,n.jsx)(ec,{})]})]})]})})}),eO=i.memo((0,Z.m)(e=>{let{children:t,className:r}=e,i=(0,o.ff)("white","black");return(0,n.jsx)(l.xu,{className:r,minWidth:{base:"100vw",lg:"fit-content"},m:"0 auto",bgColor:i,children:t})})),eR=i.memo((0,Z.m)(e=>{let{children:t,className:r}=e;return(0,n.jsx)(l.xu,{pt:{base:0,lg:6},as:"main",flexGrow:1,className:r,children:t})}));let eM="horizontal"===p.Z.UI.navigation.layout?49:0;var eN=i.memo((0,Z.m)(e=>{let{children:t,className:r}=e;return(0,n.jsx)(s.k,{className:r,w:"100%",maxW:"".concat(_,"px"),m:"0 auto",minH:{base:"calc(100vh - ".concat(36,"px)"),lg:"calc(100vh - ".concat(36+eM,"px)")},alignItems:"stretch",children:t})})),ej=i.memo((0,Z.m)(e=>{let{children:t,className:r}=e;return(0,n.jsx)(s.k,{className:r,flexDir:"column",flexGrow:1,w:{base:"100%",lg:"horizontal"===p.Z.UI.navigation.layout?"100%":"auto"},paddingX:{base:3,lg:"horizontal"===p.Z.UI.navigation.layout?6:12},paddingRight:{"2xl":6},paddingTop:{base:"".concat(64,"px"),lg:6},paddingBottom:8,children:t})})),eD=r(75064),eB=r(64469),eL=r(20782),e$=r(99281),eU=r(65423),ez=r(35225),eF=r(1108),eq=r(81730),eH=r(22747),eW=i.memo((0,Z.m)(e=>{let{className:t,item:r,noIcon:i}=e,o=(0,eD.cI)(r),a=(0,eq.Z)(),s="isActive"in r&&r.isActive?a.text.active:a.text.default,l="isActive"in r&&r.isActive?a.bg.active:a.bg.default,c=o?Q.Z:Y.Z,u=o?(0,G.B)(r.nextRoute):r.url,d=(0,eH.x)(r);return(0,n.jsx)(Z.m.li,{listStyleType:"none",children:(0,n.jsxs)(c,{className:t,href:u,display:"flex",alignItems:"center",color:s,bgColor:l,_hover:{textDecoration:"none",color:a.text.hover},w:"224px",px:2,py:"9px",fontSize:"sm",lineHeight:5,fontWeight:500,borderRadius:"base",children:[!i&&(0,n.jsx)(eF.Z,{item:r,mr:3}),(0,n.jsx)(Z.m.span,{children:r.text}),d&&(0,n.jsx)(ez.Z,{iconColor:l,position:{lg:"static"},ml:{lg:"2px"},isCollapsed:!1})]})})})),eV=r(24804),eZ=r(9140),eG=r(30618),eK=i.memo(e=>{let{item:t}=e,r=(0,eq.Z)(),i=t.isActive?r.bg.active:r.bg.default,o=t.isActive?r.text.active:r.text.default,a=(0,eH.x)(t.subItems),s=t.subItems.some(e=>Array.isArray(e));return(0,n.jsx)(U.Z,{trigger:"hover",placement:"bottom",isLazy:!0,gutter:8,children:e=>{let{isOpen:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.x,{children:(0,n.jsxs)(Z.m.li,{listStyleType:"none",display:"flex",alignItems:"center",px:2,py:1.5,fontSize:"sm",lineHeight:5,fontWeight:500,cursor:"pointer",color:l?r.text.hover:o,_hover:{color:r.text.hover},bgColor:i,borderRadius:"base",...(0,eG.Z)(),children:[t.text,a&&(0,n.jsx)(ez.Z,{iconColor:i,position:{lg:"static"},ml:{lg:"2px"}}),(0,n.jsx)(y.Z,{name:"arrows/east-mini",boxSize:5,transform:"rotate(-90deg)",ml:1})]})}),(0,n.jsx)(j.y,{w:"fit-content",children:(0,n.jsx)(D.b,{p:4,children:s?(0,n.jsx)(eV.U,{divider:(0,n.jsx)(eZ.c,{borderColor:"divider"}),alignItems:"flex-start",children:t.subItems.map((e,t)=>Array.isArray(e)?(0,n.jsx)(Z.m.ul,{display:"flex",flexDir:"column",rowGap:1,children:e.map(e=>(0,n.jsx)(eW,{item:e},e.text))},t):(0,n.jsx)(eW,{item:e},e.text))}):(0,n.jsx)(Z.m.ul,{display:"flex",flexDir:"column",rowGap:1,children:t.subItems.map(e=>Array.isArray(e)?null:(0,n.jsx)(eW,{item:e},e.text))})})})]})}})}),eY=i.memo(()=>{let{mainNavItems:e}=(0,eD.ZP)();return(0,n.jsx)(l.xu,{borderColor:"divider",borderBottomWidth:"1px",children:(0,n.jsxs)(s.k,{display:{base:"none",lg:"flex"},alignItems:"center",px:6,py:2,maxW:"".concat(_,"px"),m:"0 auto",children:[(0,n.jsx)(eB.Z,{isCollapsed:!1,w:{lg:"auto"},maxW:"120px"}),(0,n.jsx)(eU.Z,{ml:3}),(0,n.jsx)(Z.m.nav,{ml:"auto",mr:p.Z.features.account.isEnabled||p.Z.features.blockchainInteraction.isEnabled?8:0,children:(0,n.jsx)(s.k,{as:"ul",columnGap:3,children:e.map(e=>(0,eD.S_)(e)?(0,n.jsx)(eK,{item:e},e.text):(0,n.jsx)(eW,{item:e,noIcon:!0,py:1.5,w:"fit-content"},e.text))})}),p.Z.features.account.isEnabled&&(0,n.jsx)(eL.Z,{buttonBoxSize:"32px"}),p.Z.features.blockchainInteraction.isEnabled&&(0,n.jsx)(e$.Z,{size:"sm"})]})})}),eQ="horizontal"===p.Z.UI.navigation.layout?eY:()=>null,eJ=r(40410),eX=r(42774),e0=r(46038),e1=i.memo(e=>{let{isCollapsed:t}=e,r=(0,el.Z)();return(0,n.jsxs)(U.Z,{openDelay:300,placement:"right-start",isLazy:!0,isOpen:r.isOpen,onClose:r.onClose,children:[(0,n.jsx)(N.x,{children:(0,n.jsx)(e0.Z,{marginLeft:"auto",overflow:"hidden",width:{base:"auto",lg:!1===t?"auto":"0px",xl:t?"0px":"auto"},isActive:r.isOpen,onClick:r.onToggle})}),(0,n.jsx)(es,{items:r.data,tabs:r.availableTabs})]})}),e2=r(25821),e3=r(76241),e5=e=>{let{item:t,isCollapsed:r}=e,i=!1===r,o=(0,e3.Z)({isCollapsed:r,isExpanded:i,isActive:t.isActive}),s=(0,eH.x)(t.subItems);return(0,n.jsx)(l.xu,{as:"li",listStyleType:"none",w:"100%",children:(0,n.jsxs)(U.Z,{trigger:"hover",placement:"right-start",isLazy:!0,gutter:8,children:[(0,n.jsx)(N.x,{children:(0,n.jsx)(a.r,{...o.itemProps,w:{lg:i?"180px":"60px",xl:r?"60px":"180px"},pl:{lg:i?2:"15px",xl:r?"15px":2},pr:{lg:i?0:"15px",xl:r?"15px":0},"aria-label":"".concat(t.text," link group"),position:"relative",children:(0,n.jsxs)(eV.U,{spacing:0,overflow:"hidden",children:[(0,n.jsx)(eF.Z,{item:t}),(0,n.jsx)(c.x,{...o.textProps,ml:3,children:t.text}),s&&(0,n.jsx)(ez.Z,{iconColor:o.itemProps.bgColor,isCollapsed:r}),(0,n.jsx)(y.Z,{name:"arrows/east-mini",position:"absolute",right:"7px",transform:"rotate(180deg)",boxSize:6,opacity:{lg:i?"1":"0",xl:r?"0":"1"},transitionProperty:"opacity",transitionDuration:"normal",transitionTimingFunction:"ease"})]})})}),(0,n.jsx)(j.y,{width:"252px",top:{lg:i?"-16px":0,xl:r?0:"-16px"},children:(0,n.jsxs)(D.b,{p:4,children:[(0,n.jsx)(c.x,{variant:"secondary",fontSize:"sm",mb:1,display:{lg:i?"none":"block",xl:r?"block":"none"},children:t.text}),(0,n.jsx)(h.g,{spacing:1,alignItems:"start",children:t.subItems.map((e,t)=>Array.isArray(e)?(0,n.jsx)(l.xu,{w:"100%",as:"ul",_notLast:{mb:2,pb:2,borderBottomWidth:"1px",borderColor:"divider"},children:e.map(e=>(0,n.jsx)(e2.Z,{item:e,isCollapsed:!1},e.text))},t):(0,n.jsx)(e2.Z,{item:e,isCollapsed:!1},e.text))})]})})]})})},e6="horizontal"===p.Z.UI.navigation.layout?()=>null:()=>{let e;let t=(0,eJ.b)().cookies,r=eu.U2(eu.aL.NAV_BAR_COLLAPSED,t);"true"===r&&(e=!0),"false"===r&&(e=!1);let{mainNavItems:a,accountNavItems:c}=(0,eD.ZP)(),u=(0,eX.Z)(),[d,f]=i.useState(e),g=i.useCallback(()=>{f(e=>!e),eu.t8(eu.aL.NAV_BAR_COLLAPSED,d?"false":"true")},[d]),m=i.useCallback(e=>{e.target===e.currentTarget&&g()},[g]),v={bgColor:(0,o.ff)("white","black"),color:(0,o.ff)("blackAlpha.400","whiteAlpha.400"),borderColor:"divider"},b=!1===d;return(0,n.jsxs)(s.k,{display:{base:"none",lg:"flex"},role:"group",position:"relative",flexDirection:"column",alignItems:"stretch",borderRight:"1px solid",borderColor:"divider",px:{lg:b?6:4,xl:d?4:6},py:12,width:{lg:b?"229px":"92px",xl:d?"92px":"229px"},...(0,eG.Z)({transitionProperty:"width, padding"}),onClick:m,children:[(0,n.jsx)(eU.Z,{position:"absolute",pl:3,w:"49px",top:"34px"}),(0,n.jsxs)(l.xu,{as:"header",display:"flex",justifyContent:"flex-start",alignItems:"center",flexDirection:"row",w:"100%",pl:{lg:b?3:"15px",xl:d?"15px":3},pr:{lg:b?0:"15px",xl:d?"15px":0},h:10,transitionProperty:"padding",transitionDuration:"normal",transitionTimingFunction:"ease",children:[(0,n.jsx)(eB.Z,{isCollapsed:d}),!!p.Z.UI.navigation.featuredNetworks&&(0,n.jsx)(e1,{isCollapsed:d})]}),(0,n.jsx)(l.xu,{as:"nav",mt:6,w:"100%",children:(0,n.jsx)(h.g,{as:"ul",spacing:"1",alignItems:"flex-start",children:a.map(e=>(0,eD.S_)(e)?(0,n.jsx)(e5,{item:e,isCollapsed:d},e.text):(0,n.jsx)(e2.Z,{item:e,isCollapsed:d},e.text))})}),u&&(0,n.jsx)(l.xu,{as:"nav",borderTopWidth:"1px",borderColor:"divider",w:"100%",mt:3,pt:3,children:(0,n.jsx)(h.g,{as:"ul",spacing:"1",alignItems:"flex-start",children:c.map(e=>(0,n.jsx)(e2.Z,{item:e,isCollapsed:d},e.text))})}),(0,n.jsx)(y.Z,{name:"arrows/east-mini",width:6,height:6,border:"1px",_hover:{color:"link_hovered"},borderRadius:"base",...v,transform:{lg:b?"rotate(0)":"rotate(180deg)",xl:d?"rotate(180deg)":"rotate(0)"},...(0,eG.Z)({transitionProperty:"transform, left"}),transformOrigin:"center",position:"absolute",top:"104px",left:{lg:b?"216px":"80px",xl:d?"80px":"216px"},cursor:"pointer",onClick:g,"aria-label":"Expand/Collapse menu",display:"none",_groupHover:{display:"block"}})]})}},91896:function(e,t,r){"use strict";var n=r(85893),i=r(93344),o=r(23100),a=r(33838),s=r(75350),l=r(67294),c=r(21967),u=r(73778);t.Z=l.memo((0,s.m)(e=>{let{href:t,children:r,className:s,isLoading:l,variant:d,iconColor:h,onClick:f}=e,p=(0,u.d)({display:"inline-block",alignItems:"center"},d);return l?"subtle"===d?(0,n.jsxs)(i.O,{className:s,...p,bgColor:"inherit",children:[r,(0,n.jsx)(o.xu,{boxSize:3,display:"inline-block"})]}):(0,n.jsxs)(o.xu,{className:s,...p,children:[r,(0,n.jsx)(i.O,{boxSize:3,verticalAlign:"middle",display:"inline-block"})]}):(0,n.jsxs)(a.r,{className:s,...p,target:"_blank",href:t,onClick:f,children:[r,(0,n.jsx)(c.Z,{name:"link_external",boxSize:3,verticalAlign:"middle",color:null!=h?h:"icon_link_external",flexShrink:0})]})}))},85e3:function(e,t,r){"use strict";var n=r(85893),i=r(204),o=r(33838),a=r(41664),s=r.n(a),l=r(67294),c=r(73778);t.Z=l.memo(l.forwardRef((e,t)=>{let{isLoading:r,variant:a,...l}=e,u=(0,c.d)({},a);return r?(0,n.jsx)(i.k,{alignItems:"center",...l,...u,children:l.children}):l.href?(0,n.jsx)(s(),{href:l.href,passHref:!0,target:l.target,legacyBehavior:!0,children:(0,n.jsx)(o.r,{...l,ref:t,...u})}):(0,n.jsx)(o.r,{...l,ref:t,...u})}))},73778:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(12498);function i(e,t){let r=(0,n.ff)("gray.100","gray.700");return"subtle"===t?{...e,px:"10px",py:"6px",bgColor:r,borderRadius:"base"}:e}},26080:function(e,t,r){"use strict";r.d(t,{M6:function(){return i},Sp:function(){return a},y3:function(){return o}});var n=r(46789);let i=[{id:"app",title:"DApps"},{id:"token",title:"Tokens (".concat(n.Z.chain.tokenStandard,"-20)")},{id:"nft",title:"NFTs (".concat(n.Z.chain.tokenStandard,"-721 & 1155)")},{id:"address",title:"Addresses"},{id:"public_tag",title:"Public tags"},{id:"transaction",title:"Transactions"},{id:"block",title:"Blocks"}];n.Z.features.userOps.isEnabled&&i.push({id:"user_operation",title:"User operations"}),n.Z.features.dataAvailability.isEnabled&&i.push({id:"blob",title:"Blobs"}),n.Z.features.nameService.isEnabled&&i.unshift({id:"domain",title:"Names"});let o={app:{itemTitle:"DApp",itemTitleShort:"App"},domain:{itemTitle:"Name",itemTitleShort:"Name"},token:{itemTitle:"Token",itemTitleShort:"Token"},nft:{itemTitle:"NFT",itemTitleShort:"NFT"},address:{itemTitle:"Address",itemTitleShort:"Address"},public_tag:{itemTitle:"Public tag",itemTitleShort:"Tag"},transaction:{itemTitle:"Transaction",itemTitleShort:"Txn"},block:{itemTitle:"Block",itemTitleShort:"Block"},user_operation:{itemTitle:"User operation",itemTitleShort:"User op"},blob:{itemTitle:"Blob",itemTitleShort:"Blob"}};function a(e){switch(e.type){case"address":case"contract":return"address";case"token":if("ERC-20"===e.token_type)return"token";return"nft";case"block":return"block";case"label":return"public_tag";case"transaction":return"transaction";case"app":return"app";case"user_operation":return"user_operation";case"blob":return"blob";case"ens_domain":return"domain"}}},98826:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=r(85893),i=r(12498),o=r(62723),a=r(23100),s=r(92716),l=r(65291),c=r(2999),u=r(56880),d=r(204),h=r(67294),f=r(46789),p=r(21967),g=r(90634),m=r(88911),v=r(70655),b=r(33234),y=r(16014),w=r(96681);function x(e){var t=(0,w.h)(function(){return(0,b.B)(e)});if((0,h.useContext)(y._).isStatic){var r=(0,v.__read)((0,h.useState)(e),2)[1];(0,h.useEffect)(function(){return t.onChange(r)},[])}return t}var _=r(12064),C=r(24262),A=r(42774),k=r(75064),E=r(25821),S=r(24804),T=r(35225),I=r(1108),P=r(76241),O=r(22747),R=e=>{let{item:t,onClick:r,isExpanded:i}=e,o=(0,P.Z)({isActive:t.isActive,isExpanded:i}),s=(0,O.x)(t.subItems);return(0,n.jsx)(a.xu,{as:"li",listStyleType:"none",w:"100%",onClick:r,children:(0,n.jsx)(a.xu,{...o.itemProps,w:"100%",px:2,"aria-label":"".concat(t.text," link group"),children:(0,n.jsxs)(d.k,{justifyContent:"space-between",width:"100%",alignItems:"center",pr:1,children:[(0,n.jsxs)(S.U,{spacing:0,overflow:"hidden",children:[(0,n.jsx)(I.Z,{item:t}),(0,n.jsx)(m.x,{...o.textProps,ml:3,children:t.text}),s&&(0,n.jsx)(T.Z,{iconColor:o.itemProps.bgColor})]}),(0,n.jsx)(p.Z,{name:"arrows/east-mini",transform:"rotate(180deg)",boxSize:6})]})})})},M=e=>{var t;let{onNavLinkClick:r,isMarketplaceAppPage:o}=e,{mainNavItems:s,accountNavItems:l}=(0,k.ZP)(),[c,u]=h.useState(-1),f=x(0),v=x(330),b=e=>()=>{u(e),(0,_.j)(f,-330,{ease:"easeInOut"}),(0,_.j)(v,0,{ease:"easeInOut"})},y=(0,h.useCallback)(()=>{(0,_.j)(f,0,{ease:"easeInOut"}),(0,_.j)(v,330,{ease:"easeInOut",onComplete:()=>u(-1)})},[f,v]),w=(0,A.Z)(),S=(0,i.ff)("blue.600","blue.300"),T=s[c],I=!o&&void 0;return(0,n.jsxs)(d.k,{position:"relative",flexDirection:"column",flexGrow:1,children:[(0,n.jsxs)(a.xu,{display:"flex",flexDirection:"column",flexGrow:1,as:C.E.div,style:{x:f},maxHeight:c>-1?"100vh":"unset",overflowY:c>-1?"hidden":"unset",children:[(0,n.jsx)(a.xu,{as:"nav",mt:6,children:(0,n.jsx)(g.g,{w:"100%",as:"ul",spacing:"1",alignItems:"flex-start",children:s.map((e,t)=>(0,k.S_)(e)?(0,n.jsx)(R,{item:e,onClick:b(t),isExpanded:o},e.text):(0,n.jsx)(E.Z,{item:e,onClick:r,isCollapsed:I},e.text))})}),w&&(0,n.jsx)(a.xu,{as:"nav",mt:3,pt:3,borderTopWidth:"1px",borderColor:"divider",children:(0,n.jsx)(g.g,{as:"ul",spacing:"1",alignItems:"flex-start",children:l.map(e=>(0,n.jsx)(E.Z,{item:e,onClick:r,isCollapsed:I},e.text))})})]}),c>=0&&(0,n.jsxs)(a.xu,{as:C.E.nav,w:"100%",mt:6,position:"absolute",top:0,style:{x:v},children:[(0,n.jsxs)(d.k,{alignItems:"center",px:2,py:2.5,w:"100%",h:"50px",onClick:y,mb:1,children:[(0,n.jsx)(p.Z,{name:"arrows/east-mini",boxSize:6,mr:2,color:S}),(0,n.jsx)(m.x,{variant:"secondary",fontSize:"sm",children:s[c].text})]}),(0,n.jsx)(a.xu,{w:"100%",as:"ul",children:(0,k.S_)(T)&&(null===(t=T.subItems)||void 0===t?void 0:t.map((e,t)=>Array.isArray(e)?(0,n.jsx)(a.xu,{w:"100%",as:"ul",_notLast:{mb:2,pb:2,borderBottomWidth:"1px",borderColor:"divider"},children:e.map(e=>(0,n.jsx)(E.Z,{item:e,onClick:r,isCollapsed:I},e.text))},t):(0,n.jsx)(E.Z,{item:e,mb:1,onClick:r,isCollapsed:I},e.text)))})]},"sub")]})},N=r(65423),j=r(64469),D=r(46038),B=r(93344),L=r(18691),$=r(48403),U=r.n($),z=r(56526),F=h.memo(e=>{let{items:t,tabs:r}=e,i=null==t?void 0:t.find(e=>{let{isActive:t}=e;return t}),[o,s]=h.useState("Mainnets");h.useEffect(()=>{t&&s(r.find(e=>(null==i?void 0:i.group)===e)||"Mainnets")},[t,null==i?void 0:i.group,r]);let l=h.useCallback(e=>{s(e.target.value)},[]),c=t&&0!==t.length?(0,n.jsxs)(n.Fragment,{children:[r.length>1&&(0,n.jsx)(L.P,{size:"xs",borderRadius:"base",value:o,onChange:l,mb:3,children:r.map(e=>(0,n.jsx)("option",{value:e,children:U()(e)},e))}),(0,n.jsx)(g.g,{as:"ul",spacing:2,alignItems:"stretch",children:t.filter(e=>{let{group:t}=e;return t===o}).map(e=>(0,n.jsx)(z.Z,{...e,isMobile:!0},e.title))})]}):(0,n.jsxs)(d.k,{mt:6,flexDir:"column",rowGap:2,children:[(0,n.jsxs)(d.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(B.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(B.O,{h:"20px",w:"60px",ml:3})]}),(0,n.jsxs)(d.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(B.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(B.O,{h:"20px",w:"120px",ml:3})]}),(0,n.jsxs)(d.k,{mx:3,my:2,alignItems:"center",children:[(0,n.jsx)(B.O,{h:"30px",w:"30px",borderRadius:"full"}),(0,n.jsx)(B.O,{h:"20px",w:"80px",ml:3})]})]});return(0,n.jsx)(a.xu,{mt:6,children:c})}),q=r(3714),H=e=>{let{isMarketplaceAppPage:t}=e,r=(0,i.ff)("gray.600","white"),{isOpen:g,onOpen:m,onClose:v}=(0,o.q)(),b=(0,q.Z)(),y=h.useCallback(()=>{b.onToggle()},[b]),w=h.useCallback(e=>{b.isOpen&&e.preventDefault(),b.onClose()},[b]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.xu,{padding:2,onClick:m,cursor:"pointer",children:(0,n.jsx)(p.Z,{name:"burger",boxSize:6,display:"block",color:r,"aria-label":"Menu button"})}),(0,n.jsxs)(s.d,{isOpen:g,placement:"left",onClose:v,autoFocus:!1,children:[(0,n.jsx)(l.Z,{}),(0,n.jsx)(c.s,{maxWidth:"330px",children:(0,n.jsxs)(u.f,{p:6,display:"flex",flexDirection:"column",children:[(0,n.jsx)(N.Z,{alignSelf:"flex-start"}),(0,n.jsxs)(d.k,{alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(j.Z,{onClick:w}),f.Z.UI.navigation.featuredNetworks?(0,n.jsx)(D.Z,{isMobile:!0,isActive:b.isOpen,onClick:y}):(0,n.jsx)(a.xu,{boxSize:9})]}),b.isOpen?(0,n.jsx)(F,{tabs:b.availableTabs,items:b.data}):(0,n.jsx)(M,{onNavLinkClick:v,isMarketplaceAppPage:t})]})})]})]})}},74596:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(85893),i=r(204),o=r(67294),a=r(93344),s=r(31507),l=r(48543),c=r(8180),u=r(30202),d=r(46789),h=r(93777),f=r(40410),p=r(57245),g=r(38459),m=r(69391),v=r(73149),b=o.memo(()=>{let e=(0,f.b)().cookies,[t]=o.useState("true"===p.U2(p.aL.INDEXING_ALERT,e)),{data:r,isError:i,isPending:b}=(0,h.Z)("homepage_indexing_status",{queryOptions:{enabled:!d.Z.UI.indexingAlert.blocks.isHidden}});o.useEffect(()=>{b||i||p.t8(p.aL.INDEXING_ALERT,r.finished_indexing_blocks?"false":"true")},[r,i,b]);let y=(0,u.NL)(),w=o.useCallback(e=>{y.setQueryData((0,h.$)("homepage_indexing_status"),t=>{let r=t?{...t}:{};return r.finished_indexing_blocks=e.finished,r.indexed_blocks_ratio=e.ratio,r})},[y]),x=(0,m.Z)({topic:"blocks:indexing",isDisabled:!r||r.finished_indexing_blocks||d.Z.UI.indexingAlert.blocks.isHidden});return((0,v.Z)({channel:x,event:"block_index_status",handler:w}),d.Z.UI.indexingAlert.blocks.isHidden||i)?null:b?t?(0,n.jsx)(a.O,{h:{base:"96px",lg:"48px"},w:"100%"}):null:!1!==r.finished_indexing_blocks?null:(0,n.jsxs)(s.b,{status:"info",colorScheme:"gray",py:3,borderRadius:"md",children:[(0,n.jsx)(l.z,{display:{base:"none",lg:"flex"}}),(0,n.jsx)(c.C,{children:"".concat(r.indexed_blocks_ratio&&"".concat(Math.floor(100*Number(r.indexed_blocks_ratio)),"% Blocks Indexed").concat(g.vk).concat(g.Ol," "),"\n          We're indexing this chain right now. Some of the counts may be inaccurate.")})]})}),y=()=>d.Z.UI.maintenanceAlert.message?(0,n.jsxs)(s.b,{status:"info",colorScheme:"gray",py:3,borderRadius:"md",children:[(0,n.jsx)(l.z,{display:{base:"none",lg:"flex"}}),(0,n.jsx)(c.C,{dangerouslySetInnerHTML:{__html:d.Z.UI.maintenanceAlert.message},sx:{"& a":{color:"link",_hover:{color:"link_hovered"}}}})]}):null,w=o.memo(()=>(0,n.jsxs)(i.k,{flexDir:"column",rowGap:3,mb:3,_empty:{display:"none"},children:[(0,n.jsx)(y,{}),(0,n.jsx)(b,{})]}))},44319:function(e,t,r){"use strict";var n=r(85893),i=r(24804),o=r(23100),a=r(67294),s=r(46789),l=r(64469),c=r(20782),u=r(30383),d=r(99281),h=r(98826);t.Z=a.memo(e=>{let{renderSearchBar:t,isMarketplaceAppPage:r}=e,a=t?t():(0,n.jsx)(u.Z,{});return(0,n.jsxs)(i.U,{as:"header",display:{base:"none",lg:"flex"},width:"100%",alignItems:"center",justifyContent:"center",gap:12,children:[r&&(0,n.jsxs)(o.xu,{display:"flex",alignItems:"center",gap:3,children:[(0,n.jsx)(h.Z,{isMarketplaceAppPage:!0}),(0,n.jsx)(l.Z,{isCollapsed:!0})]}),(0,n.jsx)(o.xu,{width:"100%",children:a}),"vertical"===s.Z.UI.navigation.layout&&(0,n.jsxs)(o.xu,{display:"flex",children:[s.Z.features.account.isEnabled&&(0,n.jsx)(c.Z,{}),s.Z.features.blockchainInteraction.isEnabled&&(0,n.jsx)(d.Z,{})]})]})})},18473:function(e,t,r){"use strict";r.d(t,{Z:function(){return D}});var n=r(85893),i=r(12498),o=r(23100),a=r(204),s=r(67294),l=r(42708),c=r(46789),u=r(95087),d=r(64469),h=r(62723),f=r(89154),p=r(92716),g=r(65291),m=r(2999),v=r(56880),b=r(93157),y=r(53003),w=r(39513),x=r(55853),_=r(47227),C=()=>{let{isOpen:e,onOpen:t,onClose:r}=(0,h.q)(),{data:i,error:o,isPending:a}=(0,b.Z)(),l=(0,y.Z)(),[c,u]=s.useState(!1),d=s.useCallback(()=>{w.Kz(w.GM.ACCOUNT_ACCESS,{Action:"Auth0 init"},{send_immediately:!0})},[]);s.useEffect(()=>{a||u(!!i)},[i,null==o?void 0:o.status,a]);let C=c||!l?{}:{as:"a",href:l,onClick:d};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.h,{"aria-label":"profile menu",icon:(0,n.jsx)(x.Z,{size:20}),variant:"header","data-selected":c,boxSize:"40px",flexShrink:0,onClick:c?t:void 0,...C}),c&&(0,n.jsxs)(p.d,{isOpen:e,placement:"right",onClose:r,autoFocus:!1,children:[(0,n.jsx)(g.Z,{}),(0,n.jsx)(m.s,{maxWidth:"300px",children:(0,n.jsx)(v.f,{p:6,children:(0,n.jsx)(_.Z,{data:i,onNavLinkClick:r})})})]})]})},A=r(30383),k=r(93777),E=r(32012),S=r(20809),T=r(21967),I=r(93889),P=r(97399),O=r(39309),R=r(42332);let M=e=>{var t,r;let{isWalletConnected:i,address:o,connect:a,disconnect:l,isModalOpening:u,isModalOpen:d,openModal:b}=e,{isOpen:y,onOpen:x,onClose:_}=(0,h.q)(),C=(0,S.Z)(),{isAutoConnectDisabled:A}=(0,E.C)(),I=(0,k.Z)("address_domain",{pathParams:{chainId:c.Z.chain.id,address:o},queryOptions:{enabled:c.Z.features.nameService.isEnabled}}),M=s.useCallback(()=>{w.Kz(w.GM.WALLET_ACTION,{Action:"Open"}),x()},[x]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(R.Z,{isDisabled:void 0===C||!C,isMobile:!0,isWalletConnected:i,isAutoConnectDisabled:A,children:(0,n.jsx)(f.h,{"aria-label":"wallet menu",icon:i?(0,n.jsx)(O.Z,{address:o,isAutoConnectDisabled:A}):(0,n.jsx)(T.Z,{name:"wallet",boxSize:6,p:.5}),variant:"header","data-selected":i,"data-warning":A,boxSize:"40px",flexShrink:0,onClick:i?M:a,isLoading:(u||d)&&!i||I.isLoading&&i})}),i&&(0,n.jsxs)(p.d,{isOpen:y,placement:"right",onClose:_,autoFocus:!1,children:[(0,n.jsx)(g.Z,{}),(0,n.jsx)(m.s,{maxWidth:"260px",children:(0,n.jsx)(v.f,{p:6,children:(0,n.jsx)(P.Z,{address:o,ensDomainName:null===(r=I.data)||void 0===r?void 0:null===(t=r.domain)||void 0===t?void 0:t.name,disconnect:l,isAutoConnectDisabled:A,openWeb3Modal:b,closeWalletMenu:_})})})]})]})};var N=()=>{let{isWalletConnected:e,address:t,connect:r,disconnect:i,isModalOpening:o,isModalOpen:a,openModal:s}=(0,I.Z)({source:"Header"});return(0,n.jsx)(M,{isWalletConnected:e,address:t,connect:r,disconnect:i,isModalOpening:o,isModalOpen:a,openModal:s})},j=r(98826),D=s.memo(e=>{let{hideSearchBar:t,renderSearchBar:r}=e,s=(0,i.ff)("white","black"),h=(0,u.C)(),{ref:f,inView:p}=(0,l.YD)({threshold:1}),g=r?r():(0,n.jsx)(A.Z,{});return(0,n.jsxs)(o.xu,{ref:f,bgColor:s,display:{base:"block",lg:"none"},position:"sticky",top:"-1px",left:0,zIndex:"sticky2",pt:"1px",children:[(0,n.jsxs)(a.k,{as:"header",paddingX:3,paddingY:2,bgColor:s,width:"100%",alignItems:"center",transitionProperty:"box-shadow",transitionDuration:"slow",boxShadow:p||"down"!==h?"none":"md",children:[(0,n.jsx)(j.Z,{}),(0,n.jsx)(d.Z,{ml:2,mr:"auto"}),(0,n.jsxs)(a.k,{columnGap:2,children:[c.Z.features.account.isEnabled?(0,n.jsx)(C,{}):(0,n.jsx)(o.xu,{boxSize:10}),c.Z.features.blockchainInteraction.isEnabled&&(0,n.jsx)(N,{})]})]}),!t&&g]})})},35225:function(e,t,r){"use strict";r.d(t,{V:function(){return u}});var n=r(85893),i=r(63343),o=r(12498),a=r(75350),s=r(67294),l=r(30618),c=r(21967);let u="lightning-label";t.Z=(0,a.m)(e=>{let{className:t,iconColor:r,isCollapsed:a}=e,d=(0,i.S)({base:!1,lg:!0,xl:!1}),h=(0,o.ff)("white","black"),f=(0,l.Z)({transitionProperty:"color"}),p=!1===a,g=s.useMemo(()=>a||!p&&d?r&&"transparent"!==r?r:h:"transparent",[r,h,a,p,d]);return(0,n.jsx)(c.Z,{className:u+(t?" ".concat(t):""),name:"lightning_navbar",boxSize:4,ml:{base:1,lg:p?1:0,xl:a?0:1},position:{lg:p?"relative":"absolute",xl:a?"absolute":"relative"},top:{lg:p?"0":"10px",xl:a?"10px":"0"},right:{lg:p?"0":"15px",xl:a?"15px":"0"},color:g,...f})})},1108:function(e,t,r){"use strict";var n=r(85893),i=r(75350);r(67294);var o=r(21967);t.Z=(0,i.m)(e=>{let{item:t,className:r}=e;if("icon"in t&&t.icon)return(0,n.jsx)(o.Z,{className:r,name:t.icon,boxSize:"30px",flexShrink:0});if("iconComponent"in t&&t.iconComponent){let e=t.iconComponent;return(0,n.jsx)(e,{className:r,size:30})}return null})},65423:function(e,t,r){"use strict";var n=r(85893),i=r(75350),o=r(67294),a=r(46789),s=r(21967);t.Z=o.memo((0,i.m)(e=>{let{className:t}=e;return a.Z.chain.isTestnet?(0,n.jsx)(s.Z,{className:t,name:"testnet",h:"14px",w:"37px",color:"red.400"}):null}))},81730:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(12498);function i(){return{text:{default:(0,n.ff)("gray.600","gray.400"),active:(0,n.ff)("blue.700","gray.50"),hover:"link_hovered"},bg:{default:"transparent",active:(0,n.ff)("blue.50","gray.800")},border:{default:"divider",active:(0,n.ff)("blue.50","gray.800")}}}},76241:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(30618),i=r(81730);function o(e){let{isExpanded:t,isCollapsed:r,isActive:o}=e,a=(0,i.Z)();return{itemProps:{py:"9px",display:"flex",color:o?a.text.active:a.text.default,bgColor:o?a.bg.active:a.bg.default,_hover:{color:o?a.text.active:a.text.hover},borderRadius:"base",...(0,n.Z)({transitionProperty:"width, padding"})},textProps:{variant:"inherit",fontSize:"sm",lineHeight:"20px",opacity:{base:"1",lg:t?"1":"0",xl:r?"0":"1"},transitionProperty:"opacity",transitionDuration:"normal",transitionTimingFunction:"ease"}}}},22747:function(e,t,r){"use strict";r.d(t,{x:function(){return function e(t){return Array.isArray(t)?t.some(t=>e(t)):(0,i.cI)(t)&&n.Z.UI.navigation.highlightedRoutes.includes(t.nextRoute.pathname)}}});var n=r(46789),i=r(75064)},25821:function(e,t,r){"use strict";var n=r(85893),i=r(63343),o=r(33838),a=r(47523),s=r(24804),l=r(88911),c=r(23100),u=r(75350),d=r(84920),h=r(41664),f=r.n(h),p=r(67294),g=r(99640),m=r(20809),v=r(75064),b=r(21967),y=r(35225),w=r(1108),x=r(81730),_=r(76241),C=r(22747);let A=(0,u.m)(e=>{let{item:t,isCollapsed:r,px:u,className:d,onClick:h,disableActiveState:p}=e,A=(0,m.Z)(),k=(0,x.Z)(),E=!1===r,S=(0,v.cI)(t),T=(0,_.Z)({isCollapsed:r,isExpanded:E,isActive:S&&t.isActive&&!p}),I=(0,i.S)({base:!1,xl:!0}),P=S?(0,g.B)(t.nextRoute):t.url,O=(0,C.x)(t),R=(0,n.jsx)(o.r,{href:P,target:S?"_self":"_blank",...T.itemProps,w:{base:"100%",lg:E?"100%":"60px",xl:r?"60px":"100%"},display:"flex",position:"relative",px:u||{base:2,lg:E?2:"15px",xl:r?"15px":2},"aria-label":"".concat(t.text," link"),whiteSpace:"nowrap",onClick:h,_hover:{["& *:not(.".concat(y.V,", .").concat(y.V," *)")]:{color:"link_hovered"}},children:(0,n.jsx)(a.u,{label:t.text,hasArrow:!1,isDisabled:A||!1===r||void 0===r&&I,placement:"right",variant:"nav",gutter:20,color:S&&t.isActive?k.text.active:k.text.hover,margin:0,children:(0,n.jsxs)(s.U,{spacing:0,overflow:"hidden",children:[(0,n.jsx)(w.Z,{item:t}),(0,n.jsxs)(l.x,{...T.textProps,as:"span",ml:3,children:[(0,n.jsx)("span",{children:t.text}),!S&&(0,n.jsx)(b.Z,{name:"link_external",boxSize:3,color:"icon_link_external",verticalAlign:"middle"})]}),O&&(0,n.jsx)(y.Z,{iconColor:T.itemProps.bgColor,isCollapsed:r})]})})});return(0,n.jsx)(c.xu,{as:"li",listStyleType:"none",w:"100%",className:d,children:S?(0,n.jsx)(f(),{href:t.nextRoute,passHref:!0,legacyBehavior:!0,children:R}):R})},{shouldForwardProp:e=>!!(0,d.x)(e)||"px"===e});t.Z=p.memo(A)},64469:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(93344),a=r(23100),s=r(84416),l=r(75350),c=r(67294),u=r(99640),d=r(46789),h=r(21967);let f=e=>{let{isCollapsed:t,isSmall:r}=e,a=(0,i.ff)("blue.600","white"),s=r?{base:"none",lg:!1===t?"none":"block",xl:t?"block":"none"}:{base:"block",lg:!1===t?"block":"none",xl:t?"none":"block"};return d.Z.UI.navigation[r?"icon":"logo"].default?(0,n.jsx)(o.O,{w:"100%",borderRadius:"sm",display:s}):(0,n.jsx)(h.Z,{name:r?"networks/icon-placeholder":"networks/logo-placeholder",width:"auto",height:"100%",color:a,display:s})};t.Z=c.memo((0,l.m)(e=>{let{isCollapsed:t,onClick:r,className:o}=e,l=(0,i.ff)(d.Z.UI.navigation.logo.default,d.Z.UI.navigation.logo.dark||d.Z.UI.navigation.logo.default),c=(0,i.ff)(d.Z.UI.navigation.icon.default,d.Z.UI.navigation.icon.dark||d.Z.UI.navigation.icon.default),h={filter:"brightness(0) invert(1)"},p=(0,i.ff)({},d.Z.UI.navigation.logo.dark?{}:h),g=(0,i.ff)({},d.Z.UI.navigation.icon.dark?{}:h);return(0,n.jsxs)(a.xu,{className:o,as:"a",href:(0,u.B)({pathname:"/"}),width:{base:"120px",lg:!1===t?"120px":"30px",xl:t?"30px":"120px"},height:{base:"24px",lg:!1===t?"24px":"30px",xl:t?"30px":"24px"},display:"inline-flex",overflow:"hidden",onClick:r,flexShrink:0,"aria-label":"Link to main page",children:[(0,n.jsx)(s.E,{w:"auto",h:"100%",src:l,alt:"".concat(d.Z.chain.name," network logo"),fallback:(0,n.jsx)(f,{isCollapsed:t}),display:{base:"block",lg:!1===t?"block":"none",xl:t?"none":"block"},style:p}),(0,n.jsx)(s.E,{w:"auto",h:"100%",src:c,alt:"".concat(d.Z.chain.name," network logo"),fallback:(0,n.jsx)(f,{isCollapsed:t,isSmall:!0}),display:{base:"none",lg:!1===t?"none":"block",xl:t?"block":"none"},style:g})]})}))},46038:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(96272),a=r(75350),s=r(35059);r(67294);var l=r(30618),c=r(21967);t.Z=(0,a.m)((0,s.G)((e,t)=>{let{isMobile:r,isActive:a,onClick:s,className:u}=e,d=(0,i.ff)("gray.600","gray.400"),h=(0,i.ff)("blue.50","gray.800"),f=(0,i.ff)("blue.700","blue.50");return(0,n.jsx)(o.z,{className:u,variant:"unstyled",display:"inline-flex",alignItems:"center",ref:t,h:"36px",borderRadius:"base",backgroundColor:a?h:"none",onClick:s,"aria-label":"Network menu","aria-roledescription":"menu",children:(0,n.jsx)(c.Z,{name:"networks",width:"36px",height:"36px",padding:"10px",color:a?f:d,_hover:{color:r?void 0:"link_hovered"},cursor:"pointer",...(0,l.Z)({transitionProperty:"margin"})})})}))},56526:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(85893),i=r(12498),o=r(84416),a=r(23100),s=r(204),l=r(88911),c=r(67294),u=r(21967),d=c.memo(e=>{let{title:t,icon:r,isActive:c,isMobile:d,url:h,invertIconInDarkMode:f}=e,p={text:{default:(0,i.ff)("gray.600","gray.400"),active:(0,i.ff)("blackAlpha.900","whiteAlpha.900"),hover:"link_hovered"},iconPlaceholder:{default:(0,i.ff)("blackAlpha.100","whiteAlpha.300")},bg:{default:"transparent",active:(0,i.ff)("blue.50","whiteAlpha.100")},border:{default:"divider",active:(0,i.ff)("blue.50","whiteAlpha.100")}},g=(0,i.ff)({},f?{filter:"brightness(0) invert(1)"}:{}),m=r?(0,n.jsx)(o.E,{w:"30px",h:"30px",src:r,alt:"".concat(t," network icon"),style:g}):(0,n.jsx)(u.Z,{name:"networks/icon-placeholder",boxSize:"30px",color:p.iconPlaceholder.default});return(0,n.jsx)(a.xu,{as:"li",listStyleType:"none",children:(0,n.jsxs)(s.k,{as:"a",href:h,px:3,py:"9px",alignItems:"center",cursor:"pointer",pointerEvents:c?"none":"initial",borderRadius:"base",color:c?p.text.active:p.text.default,bgColor:c?p.bg.active:p.bg.default,_hover:{color:c?p.text.active:p.text.hover},children:[m,(0,n.jsx)(l.x,{marginLeft:3,fontWeight:"500",color:"inherit",fontSize:d?"sm":"md",lineHeight:d?"20px":"24px",children:t}),c&&(0,n.jsx)(u.Z,{name:"check",boxSize:"24px",marginLeft:"auto"})]})})})},3714:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(62723),i=r(78551),o=r(67294);let a=["Mainnets","Testnets","Other"];var s=r(46789),l=r(49916);function c(){let{isOpen:e,onClose:t,onOpen:r,onToggle:c}=(0,n.q)(),u=(0,l.Z)(),{isPending:d,data:h}=(0,i.a)({queryKey:["featured-network"],queryFn:async()=>u(s.Z.UI.navigation.featuredNetworks||"",void 0,{resource:"featured-network"}),enabled:!!s.Z.UI.navigation.featuredNetworks&&e,staleTime:1/0});return o.useMemo(()=>({isOpen:e,onClose:t,onOpen:r,onToggle:c,isPending:d,data:h,availableTabs:a.filter(e=>null==h?void 0:h.some(t=>{let{group:r}=t;return r===e}))}),[e,t,r,c,h,d])}},47227:function(e,t,r){"use strict";var n=r(85893),i=r(23100),o=r(75350),a=r(90634),s=r(96272),l=r(67294),c=r(46789),u=r(75064),d=r(39513),h=r(30618),f=r(25821);let p=c.Z.features.account;t.Z=e=>{let{data:t,onNavLinkClick:r}=e,{accountNavItems:c,profileItem:g}=(0,u.ZP)(),m=l.useCallback(()=>{d.Kz(d.GM.ACCOUNT_ACCESS,{Action:"Logged out"},{send_immediately:!0})},[]);if(!p.isEnabled)return null;let v=(null==t?void 0:t.email)||(null==t?void 0:t.nickname)||(null==t?void 0:t.name);return(0,n.jsxs)(i.xu,{children:[v&&(0,n.jsxs)(i.xu,{fontSize:"sm",fontWeight:500,mb:1,children:[(0,n.jsx)("span",{children:"Signed in as "}),(0,n.jsx)(o.m.span,{color:"text_secondary",children:v})]}),(0,n.jsx)(f.Z,{item:g,disableActiveState:!0,px:"0px",isCollapsed:!1,onClick:r}),(0,n.jsx)(i.xu,{as:"nav",mt:2,pt:2,borderTopColor:"divider",borderTopWidth:"1px",...(0,h.Z)(),children:(0,n.jsx)(a.g,{as:"ul",spacing:"0",alignItems:"flex-start",overflow:"hidden",children:c.map(e=>(0,n.jsx)(f.Z,{item:e,disableActiveState:!0,isCollapsed:!1,px:"0px",onClick:r},e.text))})}),(0,n.jsx)(i.xu,{mt:2,pt:3,borderTopColor:"divider",borderTopWidth:"1px",...(0,h.Z)(),children:(0,n.jsx)(s.z,{size:"sm",width:"full",variant:"outline",as:"a",href:p.logoutUrl,onClick:m,children:"Sign Out"})})]})}},20782:function(e,t,r){"use strict";var n=r(85893),i=r(47523),o=r(23100),a=r(53948),s=r(89154),l=r(44416),c=r(20623),u=r(75350),d=r(67294),h=r(93157),f=r(53003),p=r(39513),g=r(15151),m=r(55853),v=r(47227);t.Z=(0,u.m)(e=>{let{isHomePage:t,className:r,fallbackIconSize:u,buttonBoxSize:b}=e,{data:y,error:w,isPending:x}=(0,h.Z)(),_=(0,f.Z)(),[C,A]=d.useState(!1);d.useEffect(()=>{x||A(!!y)},[y,null==w?void 0:w.status,x]);let k=d.useCallback(()=>{p.Kz(p.GM.ACCOUNT_ACCESS,{Action:"Auth0 init"},{send_immediately:!0})},[]),E=C||!_?{}:{as:"a",href:_,onClick:k};return(0,n.jsxs)(g.Z,{openDelay:300,placement:"bottom-end",gutter:10,isLazy:!0,children:[(0,n.jsx)(i.u,{label:(0,n.jsxs)("span",{children:["Sign in to My Account to add tags,",(0,n.jsx)("br",{}),"create watchlists, access API keys and more"]}),textAlign:"center",padding:2,isDisabled:C,openDelay:500,children:(0,n.jsx)(o.xu,{children:(0,n.jsx)(a.x,{children:(0,n.jsx)(s.h,{className:r,"aria-label":"profile menu",icon:(0,n.jsx)(m.Z,{size:20,fallbackIconSize:u}),variant:t?"hero":"header","data-selected":C,boxSize:null!=b?b:"40px",flexShrink:0,...E})})})}),C&&(0,n.jsx)(l.y,{maxW:"400px",minW:"220px",w:"min-content",children:(0,n.jsx)(c.b,{padding:"24px 16px 16px 16px",children:(0,n.jsx)(v.Z,{data:y})})})]})})},30383:function(e,t,r){"use strict";r.d(t,{Z:function(){return ex}});var n=r(85893),i=r(62723),o=r(11293),a=r(53948),s=r(49598),l=r(44416),c=r(20623),u=r(23100),d=r(6560),h=r(75350),f=r(25432);function p(e){let t=(0,d.SV)();return(0,n.jsx)(h.m.footer,{...e,className:(0,f.cx)("chakra-popover__footer",e.className),__css:t.footer})}p.displayName="PopoverFooter";var g=r(23279),m=r.n(g),v=r(11163),b=r(67294),y=r(66261),w=r(99640),x=r(20809),_=r(39513),C=r(14463),A=r(15151),k=r(85e3),E=r(35244),S=r(65823),T=r(73957),I=r(12498),P=r(88911),O=r(1004),R=r(56005),M=r(49394),N=r(23493),j=r.n(N),D=r(81109),B=r(234),L=r(15297),$=r(26678),U=r(26080),z=r(84416),F=r(204),q=r(41664),H=r.n(q),W=r(4459),V=r(21967),Z=e=>{let{onClick:t,href:r,target:i,children:o}=e;return(0,n.jsx)(h.m.a,{py:3,px:1,display:"flex",flexDir:"column",rowGap:2,borderColor:"divider",borderBottomWidth:"1px",_last:{borderBottomWidth:"0"},_hover:{bgColor:(0,I.ff)("blue.50","gray.800")},fontSize:"sm",_first:{mt:2},onClick:t,href:r,target:i,children:o})},G=b.memo(e=>{let{data:t,isMobile:r,searchTerm:i,onClick:o}=e,a=(0,n.jsx)(z.E,{borderRadius:"base",boxSize:5,src:(0,I.ff)(t.logo,t.logoDarkMode||t.logo),alt:"".concat(t.title," app icon")}),s=r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[a,(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",ml:2,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(t.title,i)}})}),t.external&&(0,n.jsx)(V.Z,{name:"link_external",color:"icon_link_external",boxSize:3,verticalAlign:"middle",flexShrink:0})]}),(0,n.jsx)(P.x,{variant:"secondary",overflow:"hidden",textOverflow:"ellipsis",style:{WebkitLineClamp:3,WebkitBoxOrient:"vertical",display:"-webkit-box"},children:t.description})]}):(0,n.jsxs)(F.k,{gap:2,alignItems:"center",children:[a,(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",w:"200px",flexShrink:0,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(t.title,i)}})}),(0,n.jsx)(P.x,{variant:"secondary",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flexGrow:1,children:t.description}),t.external&&(0,n.jsx)(V.Z,{name:"link_external",color:"icon_link_external",boxSize:3,verticalAlign:"middle",flexShrink:0})]});return t.external?(0,n.jsx)(Z,{onClick:o,href:t.url,target:"_blank",children:s}):(0,n.jsx)(H(),{href:{pathname:"/apps/[id]",query:{id:t.id}},passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(Z,{onClick:o,children:s})})}),K=r(87120),Y=r(3749),Q=r(74206),J=r(44125),X=r(76903),ee=r(27255),et=b.memo(e=>{var t,r;let{data:i,isMobile:o,searchTerm:a}=e,s=Q.T.test(a),l=(0,n.jsx)(X.JO,{address:{hash:i.address,is_contract:"contract"===i.type,name:"",is_verified:i.is_smart_contract_verified,ens_domain_name:null,implementations:null}}),c=i.name||(null===(t=i.ens_info)||void 0===t?void 0:t.name),d=(null===(r=i.ens_info)||void 0===r?void 0:r.expiry_date)?" (expires ".concat((0,Y.Z)(i.ens_info.expiry_date).fromNow(),")"):"",f=c&&(0,n.jsxs)(F.k,{alignItems:"center",children:[(0,n.jsxs)(P.x,{variant:"secondary",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:[(0,n.jsx)(h.m.span,{fontWeight:500,dangerouslySetInnerHTML:{__html:(0,W.Z)(c,a)}}),i.ens_info&&(i.ens_info.names_count>1?(0,n.jsxs)("span",{children:[" (",i.ens_info.names_count>39?"40+":"+".concat(i.ens_info.names_count-1),")"]}):(0,n.jsx)("span",{children:d}))]}),i.certified&&(0,n.jsx)(J.Z,{boxSize:5,iconSize:5,ml:1})]}),p=(0,n.jsx)(ee.Z,{hash:i.address,isTooltipDisabled:!0});return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[l,(0,n.jsx)(u.xu,{as:s?"mark":"span",display:"block",overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:p})]}),f]}):(0,n.jsxs)(F.k,{alignItems:"center",children:[(0,n.jsxs)(F.k,{alignItems:"center",w:"450px",mr:2,children:[l,(0,n.jsx)(u.xu,{as:s?"mark":"span",display:"block",overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:p})]}),f]})}),er=r(85498),en=b.memo(e=>{let{data:t}=e;return(0,n.jsxs)(F.k,{alignItems:"center",minW:0,children:[(0,n.jsx)(er.JO,{}),(0,n.jsx)(h.m.mark,{overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:(0,n.jsx)(ee.Z,{hash:t.blob_hash,isTooltipDisabled:!0})})]})}),ei=r(89594),eo=r(31708),ea=r(34861),es=b.memo(e=>{let{data:t,isMobile:r,searchTerm:i}=e,o=(0,n.jsx)(ea.JO,{}),a=t.block_hash.toLowerCase()===i.toLowerCase(),s=void 0===t.timestamp,l=(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(t.block_number.toString(),i)}})}),c=s?null:(0,n.jsx)(P.x,{variant:"secondary",overflow:"hidden",whiteSpace:"nowrap",as:a?"mark":"span",display:"block",children:(0,n.jsx)(ee.Z,{hash:t.block_hash,isTooltipDisabled:!0})}),u=s?void 0:(0,Y.Z)(t.timestamp).format("llll"),d=(0,n.jsx)(P.x,{variant:"secondary",children:"Learn estimated time for this block to be created."});return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[o,l,"reorg"===t.block_type&&(0,n.jsx)(ei.Vp,{ml:"auto",children:"Reorg"}),"uncle"===t.block_type&&(0,n.jsx)(ei.Vp,{ml:"auto",children:"Uncle"})]}),c,s?d:(0,n.jsx)(P.x,{variant:"secondary",children:u})]}):(0,n.jsxs)(eo.r,{templateColumns:"228px minmax(auto, max-content) auto",gap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[o,l]}),(0,n.jsxs)(F.k,{columnGap:3,minW:0,alignItems:"center",children:["reorg"===t.block_type&&(0,n.jsx)(ei.Vp,{flexShrink:0,children:"Reorg"}),"uncle"===t.block_type&&(0,n.jsx)(ei.Vp,{flexShrink:0,children:"Uncle"}),s?d:c]}),u&&(0,n.jsx)(P.x,{variant:"secondary",textAlign:"end",children:u})]})}),el=b.memo(e=>{var t;let{data:r,isMobile:i,searchTerm:o}=e,a=(0,n.jsx)(V.Z,{name:"ENS_slim",boxSize:5,color:"gray.500"}),s=(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(r.ens_info.name,o)}})}),l=(0,n.jsx)(P.x,{overflow:"hidden",whiteSpace:"nowrap",variant:"secondary",children:(0,n.jsx)(ee.Z,{hash:r.address,isTooltipDisabled:!0})}),c=r.is_smart_contract_verified&&(0,n.jsx)(V.Z,{name:"status/success",boxSize:"14px",color:"green.500",flexShrink:0}),u=(null===(t=r.ens_info)||void 0===t?void 0:t.expiry_date)?" expires ".concat((0,Y.Z)(r.ens_info.expiry_date).fromNow()):"",d=(null==r?void 0:r.ens_info.names_count)>39?"40+":"+".concat(r.ens_info.names_count-1),h=(0,n.jsx)(P.x,{variant:"secondary",textAlign:i?"start":"end",children:(null==r?void 0:r.ens_info.names_count)>1?d:u});return i?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:2,children:[a,s]}),(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:1,children:[l,c]}),h]}):(0,n.jsxs)(eo.r,{alignItems:"center",gridTemplateColumns:"228px minmax(auto, max-content) auto",gap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",gap:2,children:[a,s]}),(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:1,children:[l,c]}),h]})}),ec=b.memo(e=>{let{data:t,isMobile:r,searchTerm:i}=e,o=(0,n.jsx)(V.Z,{name:"publictags_slim",boxSize:5,color:"gray.500"}),a=(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(t.name,i)}})}),s=(0,n.jsx)(P.x,{overflow:"hidden",whiteSpace:"nowrap",variant:"secondary",children:(0,n.jsx)(ee.Z,{hash:t.address,isTooltipDisabled:!0})}),l=t.is_smart_contract_verified&&(0,n.jsx)(V.Z,{name:"status/success",boxSize:"14px",color:"green.500",flexShrink:0});return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:2,children:[o,a]}),(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:1,children:[s,l]})]}):(0,n.jsxs)(eo.r,{alignItems:"center",gridTemplateColumns:"228px max-content 24px",gap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",gap:2,children:[o,a]}),(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",gap:1,children:[s,l]})]})}),eu=r(72239),ed=b.memo(e=>{let{data:t,isMobile:r,searchTerm:i}=e,o=(0,n.jsx)(eu.JO,{token:{...t,type:t.token_type}}),a=(0,n.jsx)(V.Z,{name:"certified",boxSize:4,color:"green.500",ml:1}),s=(0,n.jsx)(P.x,{fontWeight:700,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,W.Z)(t.name+(t.symbol?" (".concat(t.symbol,")"):""),i)}})}),l=(0,n.jsx)(P.x,{variant:"secondary",whiteSpace:"nowrap",overflow:"hidden",children:(0,n.jsx)(ee.Z,{hash:t.address,isTooltipDisabled:!0})}),c=t.is_smart_contract_verified&&(0,n.jsx)(V.Z,{name:"status/success",boxSize:"14px",color:"green.500",ml:1,flexShrink:0}),u=(0,n.jsxs)(P.x,{overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:["ERC-20"===t.token_type&&t.exchange_rate&&"$".concat(Number(t.exchange_rate).toLocaleString()),"ERC-20"!==t.token_type&&t.total_supply&&"Items ".concat(Number(t.total_supply).toLocaleString())]});if(r){let e="1fr\n    ".concat("ERC-20"===t.token_type&&t.exchange_rate||"ERC-20"!==t.token_type&&t.total_supply?" auto":"");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[o,s,t.is_verified_via_admin_panel&&a]}),(0,n.jsxs)(eo.r,{templateColumns:e,alignItems:"center",gap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",children:[l,c]}),u]})]})}return(0,n.jsxs)(eo.r,{templateColumns:"228px 1fr auto",gap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[o,s,t.is_verified_via_admin_panel&&a]}),(0,n.jsxs)(F.k,{alignItems:"center",overflow:"hidden",children:[l,c]}),u]})}),eh=r(58956),ef=b.memo(e=>{let{data:t,isMobile:r}=e,i=(0,n.jsx)(eh.JO,{}),o=(0,n.jsx)(h.m.mark,{overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:(0,n.jsx)(ee.Z,{hash:t.tx_hash,isTooltipDisabled:!0})}),a=(0,Y.Z)(t.timestamp).format("llll");return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[i,o]}),(0,n.jsx)(P.x,{variant:"secondary",children:a})]}):(0,n.jsxs)(F.k,{columnGap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",minW:0,children:[i,o]}),(0,n.jsx)(P.x,{variant:"secondary",textAlign:"end",flexShrink:0,ml:"auto",children:a})]})}),ep=r(71421),eg=b.memo(e=>{let{data:t,isMobile:r}=e,i=(0,n.jsx)(ep.JO,{}),o=(0,n.jsx)(h.m.mark,{overflow:"hidden",whiteSpace:"nowrap",fontWeight:700,children:(0,n.jsx)(ee.Z,{hash:t.user_operation_hash,isTooltipDisabled:!0})}),a=(0,Y.Z)(t.timestamp).format("llll");return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(F.k,{alignItems:"center",children:[i,o]}),(0,n.jsx)(P.x,{variant:"secondary",children:a})]}):(0,n.jsxs)(F.k,{columnGap:2,children:[(0,n.jsxs)(F.k,{alignItems:"center",minW:0,children:[i,o]}),(0,n.jsx)(P.x,{variant:"secondary",textAlign:"end",flexShrink:0,ml:"auto",children:a})]})}),em=b.memo(e=>{let{data:t,isMobile:r,searchTerm:i,onClick:o}=e,a=(()=>{switch(t.type){case"token":return(0,w.B)({pathname:"/token/[hash]",query:{hash:t.address}});case"contract":case"address":case"label":case"ens_domain":return(0,w.B)({pathname:"/address/[hash]",query:{hash:t.address}});case"transaction":return(0,w.B)({pathname:"/tx/[hash]",query:{hash:t.tx_hash}});case"block":if(void 0===t.timestamp)return(0,w.B)({pathname:"/block/countdown/[height]",query:{height:String(t.block_number)}});return(0,w.B)({pathname:"/block/[height_or_hash]",query:{height_or_hash:String(t.block_hash)}});case"user_operation":return(0,w.B)({pathname:"/op/[hash]",query:{hash:t.user_operation_hash}});case"blob":return(0,w.B)({pathname:"/blobs/[hash]",query:{hash:t.blob_hash}})}})(),s=(()=>{switch(t.type){case"token":return(0,n.jsx)(ed,{data:t,searchTerm:i,isMobile:r});case"contract":case"address":return(0,n.jsx)(et,{data:t,searchTerm:i,isMobile:r});case"label":return(0,n.jsx)(ec,{data:t,searchTerm:i,isMobile:r});case"block":return(0,n.jsx)(es,{data:t,searchTerm:i,isMobile:r});case"transaction":return(0,n.jsx)(ef,{data:t,searchTerm:i,isMobile:r});case"user_operation":return(0,n.jsx)(eg,{data:t,searchTerm:i,isMobile:r});case"blob":return(0,n.jsx)(en,{data:t,searchTerm:i});case"ens_domain":return(0,n.jsx)(el,{data:t,searchTerm:i,isMobile:r})}})();return(0,n.jsx)(H(),{href:a,passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(Z,{onClick:o,children:s})})}),ev=e=>{let{query:t,searchTerm:r,onItemClick:i,containerId:o}=e,a=(0,x.Z)(),s=(0,B.Z)(r),l=b.useRef([]),c=b.useRef(null),[d,h]=b.useState(0),f=b.useCallback(()=>{var e,r;let n=document.getElementById(o);if(!n||!(null===(e=t.data)||void 0===e?void 0:e.length))return;let i=n.getBoundingClientRect().y+((null===(r=c.current)||void 0===r?void 0:r.clientHeight)||0)+24;if(l.current[l.current.length-1].getBoundingClientRect().y<=i){h(l.current.length-1);return}for(let e=0;e<l.current.length-1;e++)if(l.current[e].getBoundingClientRect().y<=i&&l.current[e+1].getBoundingClientRect().y>i){h(e);break}},[o,t.data]);b.useEffect(()=>{let e=document.getElementById(o),t=j()(f,300);return e&&e.addEventListener("scroll",t),()=>{e&&e.removeEventListener("scroll",t)}},[o,f]);let p=b.useMemo(()=>{var e;if(!t.data&&!s.displayedApps)return{};let n={};return null===(e=t.data)||void 0===e||e.forEach(e=>{let t=(0,U.Sp)(e);if(t){if(t in n){var r;null===(r=n[t])||void 0===r||r.push(e)}else n[t]=[e]}}),s.displayedApps.length&&(n.app=s.displayedApps),Object.keys(n).length>0&&!n.block&&D.Dz.test(r)&&(n.block=[{type:"block",block_type:"block",block_number:r,block_hash:"",timestamp:void 0}]),n},[t.data,s.displayedApps,r]);b.useEffect(()=>{l.current=Array(Object.keys(p).length).fill("").map((e,t)=>l.current[t]||b.createRef())},[p]);let g=b.useCallback(e=>()=>{var t;h(e),y.OK.scrollTo("cat_".concat(e),{duration:250,smooth:!0,offset:-((null===(t=c.current)||void 0===t?void 0:t.clientHeight)||0),containerId:o})},[o]),m=(0,I.ff)("white","gray.900"),v=(()=>{if(t.isPending||s.isPlaceholderData)return(0,n.jsx)($.Z,{text:"We are searching, please wait... ",fontSize:"sm"});if(t.isError)return(0,n.jsx)(P.x,{children:"Something went wrong. Try refreshing the page or come back later."});let e=U.M6.filter(e=>p[e.id]);return 0===e.length?D.Dz.test(r)?(0,n.jsx)(K.Z,{blockHeight:r,onClick:i}):(0,n.jsx)(P.x,{children:"No results found."}):(0,n.jsxs)(n.Fragment,{children:[e.length>1&&(0,n.jsx)(u.xu,{position:"sticky",top:"0",width:"100%",background:m,py:5,my:-5,ref:c,children:(0,n.jsx)(O.m,{variant:"outline",colorScheme:"gray",size:"sm",index:d,children:(0,n.jsx)(R.t,{columnGap:3,rowGap:2,flexWrap:"wrap",children:e.map((e,t)=>(0,n.jsx)(M.O,{onClick:g(t),...d===t?{"data-selected":"true"}:{},children:e.title},e.id))})})}),e.map((e,t)=>{var o,s;return(0,n.jsxs)(y.W_,{name:"cat_".concat(t),children:[(0,n.jsx)(P.x,{fontSize:"sm",fontWeight:600,variant:"secondary",mt:6,mb:3,ref:e=>l.current[t]=e,children:e.title}),"app"!==e.id&&(null===(o=p[e.id])||void 0===o?void 0:o.map((e,t)=>(0,n.jsx)(em,{data:e,isMobile:a,searchTerm:r,onClick:i},t))),"app"===e.id&&(null===(s=p[e.id])||void 0===s?void 0:s.map((e,t)=>(0,n.jsx)(G,{data:e,isMobile:a,searchTerm:r,onClick:i},t)))]},e.id)})]})})();return(0,n.jsxs)(u.xu,{mt:5,mb:5,children:[!a&&(0,n.jsx)(u.xu,{pb:4,mb:5,borderColor:"divider",borderBottomWidth:"1px",_empty:{display:"none"},children:(0,n.jsx)(L.Z,{})}),v]})},eb=r(93777),ey=r(95185);let ew="search_bar_popover_content";var ex=e=>{var t,r;let{isHomepage:d}=e,{isOpen:h,onClose:f,onOpen:g}=(0,i.q)(),I=b.useRef(null),P=b.useRef(null),O=b.useRef(null),R=b.useRef(0),M=(0,x.Z)(),N=(0,v.useRouter)(),j=(0,C.qs)(),{searchTerm:D,debouncedSearchTerm:B,handleSearchTermChange:L,query:$}=function(){let[e,t]=b.useState(""),r=(0,ey.Z)(e,300),n=(0,eb.Z)("quick_search",{queryParams:{q:r},queryOptions:{enabled:r.trim().length>0}}),i=(0,eb.Z)("search_check_redirect",{queryParams:{q:r},queryOptions:{enabled:!!r}});return b.useMemo(()=>({searchTerm:e,debouncedSearchTerm:r,handleSearchTermChange:t,query:n,redirectCheckQuery:i}),[r,n,i,e])}(),U=b.useCallback(e=>{if(e.preventDefault(),D){let e={pathname:"/search-results",query:{q:D,redirect:"true"}},t=(0,w.B)(e);_.Kz(_.GM.SEARCH_QUERY,{"Search query":D,"Source page type":_.C2(N.pathname),"Result URL":t}),(0,C.V$)(D),N.push(e,void 0,{shallow:!0})}},[D,N]),z=b.useCallback(()=>{g()},[g]),F=b.useCallback(()=>{var e,t;f(),null===(t=I.current)||void 0===t||null===(e=t.querySelector("input"))||void 0===e||e.blur()},[f]),q=b.useCallback(e=>{var t;(null===(t=I.current)||void 0===t?void 0:t.contains(e.target))||F()},[F]);(0,o.O)({ref:P,handler:q});let H=b.useCallback(()=>{var e,t;L(""),null===(t=I.current)||void 0===t||null===(e=t.querySelector("input"))||void 0===e||e.focus()},[L]),W=b.useCallback(e=>{_.Kz(_.GM.SEARCH_QUERY,{"Search query":D,"Source page type":_.C2(N.pathname),"Result URL":e.currentTarget.href}),(0,C.V$)(D),f()},[N.pathname,D,f]),V=M&&!d?24:0,Z=b.useCallback(()=>{var e;R.current=((null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0)-V},[V]);return b.useEffect(()=>{L("")},[null===(r=N.asPath)||void 0===r?void 0:null===(t=r.split("?"))||void 0===t?void 0:t[0]]),b.useEffect(()=>{let e=I.current;if(!e)return;Z();let t=new ResizeObserver(m()(Z,200));return t.observe(I.current),function(){t.unobserve(e)}},[Z]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(A.Z,{isOpen:h&&(D.trim().length>0||j.length>0),autoFocus:!1,onClose:f,placement:"bottom-start",offset:M&&!d?[12,-4]:[0,8],isLazy:!0,children:[(0,n.jsx)(a.x,{children:(0,n.jsx)(S.Z,{ref:I,onChange:L,onSubmit:U,onFocus:z,onHide:F,onClear:H,isHomepage:d,value:D,isSuggestOpen:h})}),(0,n.jsx)(s.h,{children:(0,n.jsxs)(l.y,{w:"".concat(R.current,"px"),ref:P,children:[(0,n.jsx)(c.b,{p:0,color:"chakra-body-text",children:(0,n.jsxs)(u.xu,{maxH:"50vh",overflowY:"auto",id:ew,ref:O,as:y.W_,px:4,children:[0===D.trim().length&&j.length>0&&(0,n.jsx)(T.Z,{onClick:L,onClear:f}),D.trim().length>0&&(0,n.jsx)(ev,{query:$,searchTerm:B,onItemClick:W,containerId:ew})]})}),D.trim().length>0&&$.data&&$.data.length>=50&&(0,n.jsx)(p,{children:(0,n.jsx)(k.Z,{href:(0,w.B)({pathname:"/search-results",query:{q:D}}),fontSize:"sm",children:"View all results"})})]})})]}),(0,n.jsx)(E.Z,{isOpen:h})]})}},35244:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(23100),a=r(67294);t.Z=a.memo(e=>{let{isOpen:t}=e,r=(0,i.ff)("blackAlpha.400","blackAlpha.600");return(0,n.jsx)(o.xu,{position:"fixed",top:0,left:0,w:"100vw",h:"100vh",bgColor:r,zIndex:"overlay",display:{base:"none",lg:t?"block":"none"}})})},65823:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(75350),a=r(93863),s=r(43775),l=r(28129),c=r(35059),u=r(23493),d=r.n(u),h=r(67294),f=r(95087),p=r(20809),g=r(89377),m=r(21967);t.Z=h.memo((0,c.G)((e,t)=>{let{onChange:r,onSubmit:c,isHomepage:u,isSuggestOpen:v,onFocus:b,onBlur:y,onHide:w,onClear:x,value:_}=e,C=h.useRef(null);h.useImperativeHandle(t,()=>C.current,[]);let[A,k]=h.useState(!1),E=(0,f.C)(),S=(0,p.Z)(),T=h.useCallback(()=>{var e;u||(window.scrollY>=36?k(!0):k(!1));let t=S&&(null==C?void 0:null===(e=C.current)||void 0===e?void 0:e.getBoundingClientRect());t&&t.y<36&&(null==w||w())},[S,w,u]),I=h.useCallback(e=>{r(e.target.value)},[r]);h.useEffect(()=>{if(!S)return;let e=d()(T,300);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[S,T]);let P=(0,i.ff)("white","black");return(0,n.jsx)(o.m.form,{ref:C,noValidate:!0,onSubmit:c,onBlur:y,onFocus:b,w:"100%",backgroundColor:P,borderRadius:{base:u?"base":"none",lg:"base"},position:{base:u?"static":"absolute",lg:"relative"},top:{base:u?0:55,lg:0},left:"0",zIndex:{base:u?"auto":"-1",lg:v?"popover":"auto"},paddingX:{base:u?0:3,lg:0},paddingTop:{base:u?0:1,lg:0},paddingBottom:{base:u?0:2,lg:0},boxShadow:"down"!==E&&A?"md":"none",transform:{base:u?"none":"down"!==E?"translateY(0)":"translateY(-100%)",lg:"none"},transitionProperty:"transform,box-shadow,background-color,color,border-color",transitionDuration:"normal",transitionTimingFunction:"ease",children:(0,n.jsxs)(a.B,{size:{base:"sm",lg:u?"sm_md":"sm"},children:[(0,n.jsx)(s.Z,{w:{base:u?6:4,lg:6},ml:{base:u?4:3,lg:4},h:"100%",children:(0,n.jsx)(m.Z,{name:"search",boxSize:{base:u?6:4,lg:6},color:(0,i.ff)("blackAlpha.600","whiteAlpha.600")})}),(0,n.jsx)(l.I,{pl:{base:u?"50px":"38px",lg:"50px"},sx:{"@media screen and (max-width: 999px)":{paddingLeft:u?"50px":"38px",paddingRight:"36px"},"@media screen and (min-width: 1001px)":{paddingRight:"36px"}},placeholder:S?"Search by address / ... ":"Search by address / txn hash / block / token... ",onChange:I,border:u?"none":"2px solid",borderColor:(0,i.ff)("blackAlpha.100","whiteAlpha.200"),_focusWithin:{_placeholder:{color:"gray.300"}},color:(0,i.ff)("black","white"),value:_}),_&&(0,n.jsx)(s.x,{top:{base:2,lg:u?3:2},right:2,children:(0,n.jsx)(g.Z,{onClick:x})})]})})}))},73957:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(23100),a=r(204),s=r(88911),l=r(33838),c=r(67294),u=r(20809),d=r(14463),h=r(15297),f=r(89377),p=r(27255);t.Z=e=>{let{onClick:t,onClear:r}=e,g=(0,u.Z)(),m=(0,i.ff)("blue.50","gray.800"),[v,b]=c.useState((0,d.qs)()),y=c.useCallback(e=>()=>{t(e)},[t]),w=c.useCallback(()=>{(0,d.dd)(),r()},[r]),x=c.useCallback(e=>t=>{t.stopPropagation();let n=v.filter(t=>t!==e);b(n),0===n.length&&r(),(0,d.bb)(e)},[v,r]);return 0===v.length?null:(0,n.jsxs)(o.xu,{py:6,children:[!g&&(0,n.jsx)(o.xu,{pb:4,mb:5,borderColor:"divider",borderBottomWidth:"1px",_empty:{display:"none"},children:(0,n.jsx)(h.Z,{})}),(0,n.jsxs)(a.k,{mb:3,justifyContent:"space-between",fontSize:"sm",children:[(0,n.jsx)(s.x,{fontWeight:600,variant:"secondary",children:"Recent"}),(0,n.jsx)(l.r,{onClick:w,children:"Clear all"})]}),v.map(e=>(0,n.jsxs)(a.k,{py:3,px:1,borderColor:"divider",borderBottomWidth:"1px",_last:{borderBottomWidth:"0"},_hover:{bgColor:m},fontSize:"sm",_first:{mt:2},onClick:y(e),alignItems:"center",justifyContent:"space-between",cursor:"pointer",columnGap:2,fontWeight:700,minW:0,flexGrow:1,children:[e.startsWith("0x")?(0,n.jsx)(o.xu,{overflow:"hidden",whiteSpace:"nowrap",children:(0,n.jsx)(p.Z,{hash:e,isTooltipDisabled:!0})}):(0,n.jsx)(s.x,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",children:e}),(0,n.jsx)(f.Z,{onClick:x(e),flexShrink:0})]},e))]})}},87120:function(e,t,r){"use strict";var n=r(85893),i=r(23100),o=r(75350),a=r(67294),s=r(99640),l=r(85e3);t.Z=a.memo((0,o.m)(e=>{let{blockHeight:t,onClick:r,className:o}=e;return(0,n.jsxs)(i.xu,{className:o,children:[(0,n.jsx)("span",{children:"Learn "}),(0,n.jsx)(l.Z,{href:(0,s.B)({pathname:"/block/countdown/[height]",query:{height:t}}),onClick:r,children:"estimated time for this block"}),(0,n.jsx)("span",{children:" to be created."})]})}))},39309:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(23100),a=r(204),s=r(75350);r(67294);var l=r(20809),c=r(73116),u=r(21967);t.Z=(0,s.m)(e=>{let{address:t,isAutoConnectDisabled:r,className:s}=e,d=(0,l.Z)(),h=(0,i.ff)("orange.100","orange.900");return(0,n.jsxs)(o.xu,{className:s,position:"relative",children:[(0,n.jsx)(c.Z,{size:20,hash:t}),r&&(0,n.jsx)(a.k,{alignItems:"center",justifyContent:"center",boxSize:"14px",position:"absolute",bottom:d?"-3px":"-1px",right:d?"-4px":"-5px",backgroundColor:"rgba(16, 17, 18, 0.80)",borderRadius:"full",border:"1px solid",borderColor:h,children:(0,n.jsx)(u.Z,{name:"integration/partial",color:"white",boxSize:"8px"})})]})})},97399:function(e,t,r){"use strict";var n=r(85893),i=r(12498),o=r(23100),a=r(204),s=r(88911),l=r(89154),c=r(96272),u=r(67294),d=r(39513),h=r(30618),f=r(76903),p=r(21967);t.Z=e=>{let{address:t,ensDomainName:r,disconnect:g,isAutoConnectDisabled:m,openWeb3Modal:v,closeWalletMenu:b}=e,y=(0,i.ff)("orange.100","orange.900"),[w,x]=u.useState(!1),_=u.useCallback(()=>{d.Kz(d.GM.WALLET_ACTION,{Action:"Address click"})},[]),C=u.useCallback(async()=>{x(!0),await v(),setTimeout(b,300)},[v,b]);return(0,n.jsxs)(o.xu,{children:[m&&(0,n.jsxs)(a.k,{borderRadius:"base",p:3,mb:3,alignItems:"center",backgroundColor:y,children:[(0,n.jsx)(p.Z,{name:"integration/partial",color:"text",boxSize:5,flexShrink:0,mr:2}),(0,n.jsx)(s.x,{fontSize:"xs",lineHeight:"16px",children:"Connect your wallet in the app below"})]}),(0,n.jsx)(s.x,{fontSize:"sm",fontWeight:600,mb:1,...(0,h.Z)(),children:"My wallet"}),(0,n.jsx)(s.x,{fontSize:"sm",mb:5,fontWeight:400,color:"text_secondary",...(0,h.Z)(),children:"Your wallet is used to interact with apps and contracts in the explorer."}),t&&(0,n.jsxs)(a.k,{alignItems:"center",mb:6,children:[(0,n.jsx)(f.ZP,{address:{hash:t,ens_domain_name:r},noTooltip:!0,truncation:"dynamic",fontSize:"sm",fontWeight:700,color:"text",onClick:_,flex:1}),(0,n.jsx)(l.h,{"aria-label":"open wallet",icon:(0,n.jsx)(p.Z,{name:"gear_slim",boxSize:5}),variant:"simple",h:"20px",w:"20px",ml:1,onClick:C,isLoading:w})]}),(0,n.jsx)(c.z,{size:"sm",width:"full",variant:"outline",onClick:g,children:"Disconnect"})]})}},99281:function(e,t,r){"use strict";var n=r(85893),i=r(70385),o=r(23100),a=r(53948),s=r(96272),l=r(75350),c=r(44416),u=r(20623),d=r(67294),h=r(46789),f=r(93777),p=r(32012),g=r(20809),m=r(39513),v=r(15151),b=r(39206),y=r(21967),w=r(93889),x=r(97399),_=r(39309),C=r(42332);let A=e=>{var t,r,w,A,k;let{isHomePage:E,className:S,size:T="md",isWalletConnected:I,address:P,connect:O,disconnect:R,isModalOpening:M,isModalOpen:N,openModal:j}=e,[D,B]=(0,i.k)(!1),L=(0,g.Z)(),{isAutoConnectDisabled:$}=(0,p.C)(),U=(0,f.Z)("address_domain",{pathParams:{chainId:h.Z.chain.id,address:P},queryOptions:{enabled:h.Z.features.nameService.isEnabled}}),z=d.useCallback(()=>{m.Kz(m.GM.WALLET_ACTION,{Action:"Open"}),B.toggle()},[B]);return(0,n.jsxs)(v.Z,{openDelay:300,placement:"bottom-end",isLazy:!0,isOpen:D,onClose:B.off,children:[(0,n.jsx)(o.xu,{ml:2,children:(0,n.jsx)(a.x,{children:(0,n.jsx)(C.Z,{isDisabled:void 0===L||L||M||N,isWalletConnected:I,isAutoConnectDisabled:$,children:(0,n.jsx)(s.z,{className:S,variant:E?"hero":"header","data-selected":I,"data-warning":$,flexShrink:0,isLoading:(M||N)&&!I||U.isLoading&&I,loadingText:"Connect wallet",onClick:I?z:O,fontSize:"sm",size:T,px:{lg:E?2:4,xl:4},children:I?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.Z,{address:P,isAutoConnectDisabled:$,mr:2}),(null===(r=U.data)||void 0===r?void 0:null===(t=r.domain)||void 0===t?void 0:t.name)?(0,n.jsx)(l.m.span,{children:null===(w=U.data.domain)||void 0===w?void 0:w.name}):(0,n.jsx)(b.Z,{hash:P,isTooltipDisabled:!0})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(y.Z,{display:{base:E?"inline":"none",xl:"none"},name:"wallet",boxSize:6,p:.5}),(0,n.jsx)(l.m.span,{display:{base:E?"none":"inline",xl:"inline"},children:"Connect wallet"})]})})})})}),I&&(0,n.jsx)(c.y,{w:"235px",children:(0,n.jsx)(u.b,{padding:"24px 16px 16px 16px",children:(0,n.jsx)(x.Z,{address:P,ensDomainName:null===(k=U.data)||void 0===k?void 0:null===(A=k.domain)||void 0===A?void 0:A.name,disconnect:R,isAutoConnectDisabled:$,openWeb3Modal:j,closeWalletMenu:B.off})})})]})};t.Z=(0,l.m)(e=>{let{isHomePage:t,className:r,size:i="md"}=e,{isWalletConnected:o,address:a,connect:s,disconnect:l,isModalOpening:c,isModalOpen:u,openModal:d}=(0,w.Z)({source:"Header"});return(0,n.jsx)(A,{isHomePage:t,className:r,size:i,isWalletConnected:o,address:a,connect:s,disconnect:l,isModalOpening:c,isModalOpen:u,openModal:d})})},42332:function(e,t,r){"use strict";var n=r(85893),i=r(70385),o=r(11293),a=r(23100),s=r(47523),l=r(11163),c=r(67294),u=r(2525),d=r(2957);let h="wallet-connect-tooltip-shown";t.Z=c.forwardRef((e,t)=>{let{children:r,isDisabled:f,isMobile:p,isWalletConnected:g,isAutoConnectDisabled:m}=e,v=(0,l.useRouter)(),[b,y]=(0,i.k)(!1),w=c.useRef(null);(0,o.O)({ref:w,handler:y.off});let x=c.useMemo(()=>g?m?(0,n.jsxs)("span",{children:["Your wallet is not",(0,n.jsx)("br",{}),"connected to this app.",(0,n.jsx)("br",{}),"Connect your wallet",(0,n.jsx)("br",{}),"in the app directly"]}):null:(0,n.jsxs)("span",{children:["Connect your wallet",(0,n.jsx)("br",{}),"to Blockscout for",(0,n.jsx)("br",{}),"full-featured access"]}),[g,m]),_="/apps/[id]"===v.pathname;return c.useEffect(()=>{let e,t;let r=window.localStorage.getItem(h),n="/apps"===v.pathname,i="tooltip"===v.query.action,o="connect"===v.query.action,a=_&&!o||i||!r&&n;return!f&&a&&(e=setTimeout(()=>{y.on(),t=setTimeout(()=>y.off(),3*u.sh),!r&&n&&window.localStorage.setItem(h,"true"),i&&(0,d.Z)(v,"action")},i?0:u.sh)),()=>{clearTimeout(e),clearTimeout(t)}},[y,f,v,_]),(0,n.jsx)(a.xu,{ref:t,children:(0,n.jsx)(s.u,{label:x,textAlign:"center",padding:2,isDisabled:f||!x||g&&!_,openDelay:500,isOpen:b||!p&&void 0,onClose:y.off,display:p?{base:"flex",lg:"none"}:{base:"none",lg:"flex"},ref:w,children:r})})})},93889:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(66864),i=r(67294),o=r(98029),a=r(6590),s=r(37122),l=r(74751),c=r(32353),u=r(33397),d=r(92321),h=r(39513);function f(e){let{source:t}=e,{open:r}=(0,n.k_)(),{open:f}=(0,n.xG)(),{disconnect:p}=function(e={}){let{mutation:t}=e,r=(0,s.Z)(e),{mutate:n,mutateAsync:u,...d}=(0,o.D)({...t,mutationFn:e=>(0,a.z)(r,e),mutationKey:["disconnect"]});return{...d,connectors:(function(e={}){let t=(0,s.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,c.E)(e),r,{equalityFn:l.v})})(t,{onChange:e}),()=>(0,c.E)(t),()=>(0,c.E)(t))})({config:r}).map(e=>e.connector),disconnect:n,disconnectAsync:u}}(),[g,m]=i.useState(!1),[v,b]=i.useState(!1),y=i.useRef(!1);i.useEffect(()=>{b(!0)},[]);let w=i.useCallback(async()=>{m(!0),await r(),m(!1),h.Kz(h.GM.WALLET_CONNECT,{Source:t,Status:"Started"}),y.current=!0},[r,t]),x=i.useCallback(e=>{let{isReconnected:r}=e;!r&&y.current&&(h.Kz(h.GM.WALLET_CONNECT,{Source:t,Status:"Connected"}),h.DY.setOnce({"With Connected Wallet":!0})),y.current=!1},[t]),_=i.useCallback(()=>{p()},[p]);!function(e={}){let{onConnect:t,onDisconnect:r}=e,n=(0,s.Z)(e);(0,i.useEffect)(()=>(0,u.u)(n,{onChange(e,n){if(("reconnecting"===n.status||"connecting"===n.status&&void 0===n.address)&&"connected"===e.status){let{address:r,addresses:i,chain:o,chainId:a,connector:s}=e,l="reconnecting"===n.status||void 0===n.status;t?.({address:r,addresses:i,chain:o,chainId:a,connector:s,isReconnected:l})}else"connected"===n.status&&"disconnected"===e.status&&r?.()}}),[n,t,r])}({onConnect:x});let{address:C,isDisconnected:A}=(0,d.m)();return{openModal:r,isWalletConnected:v&&!A&&void 0!==C,address:C||"",connect:w,disconnect:_,isModalOpening:g,isModalOpen:f}}},5152:function(e,t,r){e.exports=r(28864)},41664:function(e,t,r){e.exports=r(89577)},39332:function(e,t,r){e.exports=r(70827)},11163:function(e,t,r){e.exports=r(9090)},4298:function(e,t,r){e.exports=r(32892)},16305:function(e,t){"use strict";var r,n=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenData=void 0,t.parse=f,t.compile=function(e,t={}){let{encode:r=encodeURIComponent,delimiter:n="/"}=t,i=function e(t,r,n){let i=t.map(t=>(function(t,r,n){if("text"===t.type)return()=>[t.value];if("group"===t.type){let i=e(t.tokens,r,n);return e=>{let[t,...r]=i(e);return r.length?[""]:[t]}}let i=n||o;return"wildcard"===t.type&&!1!==n?e=>{let n=e[t.name];if(null==n)return["",t.name];if(!Array.isArray(n)||0===n.length)throw TypeError(`Expected "${t.name}" to be a non-empty array`);return[n.map((e,r)=>{if("string"!=typeof e)throw TypeError(`Expected "${t.name}/${r}" to be a string`);return i(e)}).join(r)]}:e=>{let r=e[t.name];if(null==r)return["",t.name];if("string"!=typeof r)throw TypeError(`Expected "${t.name}" to be a string`);return[i(r)]}})(t,r,n));return e=>{let t=[""];for(let r of i){let[n,...i]=r(e);t[0]+=n,t.push(...i)}return t}}((e instanceof h?e:f(e,t)).tokens,n,r);return function(e={}){let[t,...r]=i(e);if(r.length)throw TypeError(`Missing parameters: ${r.join(", ")}`);return t}},t.match=function(e,t={}){let{decode:r=decodeURIComponent,delimiter:n="/"}=t,{regexp:i,keys:a}=p(e,t),s=a.map(e=>!1===r?o:"param"===e.type?r:e=>e.split(n).map(r));return function(e){let t=i.exec(e);if(!t)return!1;let r=t[0],n=Object.create(null);for(let e=1;e<t.length;e++){if(void 0===t[e])continue;let r=a[e-1],i=s[e-1];n[r.name]=i(t[e])}return{path:r,params:n}}},t.pathToRegexp=p,t.stringify=function(e){return e.tokens.map(function e(t,r,n){var i;if("text"===t.type)return t.value.replace(/[{}()\[\]+?!:*]/g,"\\$&");if("group"===t.type)return`{${t.tokens.map(e).join("")}}`;let o=function(e){let[t,...r]=e;return!!a.test(t)&&r.every(e=>s.test(e))}(t.name)&&(i=n[r+1],i?.type!=="text"||!s.test(i.value[0]))?t.name:JSON.stringify(t.name);if("param"===t.type)return`:${o}`;if("wildcard"===t.type)return`*${o}`;throw TypeError(`Unexpected token: ${t}`)}).join("")};let o=e=>e,a=/^[$_\p{ID_Start}]$/u,s=/^[$\u200c\u200d\p{ID_Continue}]$/u,l="https://git.new/pathToRegexpError",c={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function u(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}class d{constructor(e){this.tokens=e,r.set(this,void 0)}peek(){if(!n(this,r,"f")){let e=this.tokens.next();i(this,r,e.value,"f")}return n(this,r,"f")}tryConsume(e){let t=this.peek();if(t.type===e)return i(this,r,void 0,"f"),t.value}consume(e){let t=this.tryConsume(e);if(void 0!==t)return t;let{type:r,index:n}=this.peek();throw TypeError(`Unexpected ${r} at ${n}, expected ${e}: ${l}`)}text(){let e,t="";for(;e=this.tryConsume("CHAR")||this.tryConsume("ESCAPED");)t+=e;return t}}r=new WeakMap;class h{constructor(e){this.tokens=e}}function f(e,t={}){let{encodePath:r=o}=t,n=new d(function*(e){let t=[...e],r=0;function n(){let e="";if(a.test(t[++r]))for(e+=t[r];s.test(t[++r]);)e+=t[r];else if('"'===t[r]){let n=r;for(;r<t.length;){if('"'===t[++r]){r++,n=0;break}"\\"===t[r]?e+=t[++r]:e+=t[r]}if(n)throw TypeError(`Unterminated quote at ${n}: ${l}`)}if(!e)throw TypeError(`Missing parameter name at ${r}: ${l}`);return e}for(;r<t.length;){let e=t[r],i=c[e];if(i)yield{type:i,index:r++,value:e};else if("\\"===e)yield{type:"ESCAPED",index:r++,value:t[r++]};else if(":"===e){let e=n();yield{type:"PARAM",index:r,value:e}}else if("*"===e){let e=n();yield{type:"WILDCARD",index:r,value:e}}else yield{type:"CHAR",index:r,value:t[r++]}}return{type:"END",index:r,value:""}}(e));return new h(function e(t){let i=[];for(;;){let o=n.text();o&&i.push({type:"text",value:r(o)});let a=n.tryConsume("PARAM");if(a){i.push({type:"param",name:a});continue}let s=n.tryConsume("WILDCARD");if(s){i.push({type:"wildcard",name:s});continue}if(n.tryConsume("{")){i.push({type:"group",tokens:e("}")});continue}return n.consume(t),i}}("END"))}function p(e,t={}){let{delimiter:r="/",end:n=!0,sensitive:i=!1,trailing:o=!0}=t,a=[],s=[];for(let{tokens:n}of(Array.isArray(e)?e:[e]).map(e=>e instanceof h?e:f(e,t)))for(let e of function* e(t,r,n){if(r===t.length)return yield n;let i=t[r];if("group"===i.type){let o=n.slice();for(let n of e(i.tokens,0,o))yield*e(t,r+1,n)}else n.push(i);yield*e(t,r+1,n)}(n,0,[])){let t=function(e,t,r){let n="",i="",o=!0;for(let a=0;a<e.length;a++){let s=e[a];if("text"===s.type){n+=u(s.value),i=s.value,o||(o=s.value.includes(t));continue}if("param"===s.type||"wildcard"===s.type){if(!o&&!i)throw TypeError(`Missing text after "${s.name}": ${l}`);"param"===s.type?n+=`(${function(e,t){let r=[e,t].filter(Boolean);return r.every(e=>1===e.length)?`[^${u(r.join(""))}]`:`(?:(?!${r.map(u).join("|")}).)`}(t,o?"":i)}+)`:n+="(.+)",r.push(s),i="",o=!1;continue}}return n}(e,r,a);s.push(t)}let c=`^(?:${s.join("|")})`;return o&&(c+=`(?:${u(r)}$)?`),{regexp:new RegExp(c+=n?"$":`(?=${u(r)}|$)`,i?"s":"is"),keys:a}}t.TokenData=h},34155:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],c=!1,u=-1;function d(){c&&n&&(c=!1,n.length?l=n.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(n=l,l=[];++u<t;)n&&n[u].run();u=-1,t=l.length}n=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},17563:function(e,t,r){"use strict";let n=r(70610),i=r(44020),o=r(80500),a=r(92806),s=e=>null==e,l=Symbol("encodeFragmentIdentifier");function c(e){if("string"!=typeof e||1!==e.length)throw TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function d(e,t){return t.decode?i(e):e}function h(e){let t=e.indexOf("#");return -1!==t&&(e=e.slice(0,t)),e}function f(e){let t=(e=h(e)).indexOf("?");return -1===t?"":e.slice(t+1)}function p(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 g(e,t){c((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);let r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,n)=>{if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t){n[e]=r;return}void 0===n[e]&&(n[e]={}),n[e][t[1]]=r};case"bracket":return(e,r,n)=>{if(t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"colon-list-separator":return(e,r,n)=>{if(t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),!t){n[e]=r;return}if(void 0===n[e]){n[e]=[r];return}n[e]=[].concat(n[e],r)};case"comma":case"separator":return(t,r,n)=>{let i="string"==typeof r&&r.includes(e.arrayFormatSeparator),o="string"==typeof r&&!i&&d(r,e).includes(e.arrayFormatSeparator);r=o?d(r,e):r;let a=i||o?r.split(e.arrayFormatSeparator).map(t=>d(t,e)):null===r?r:d(r,e);n[t]=a};case"bracket-separator":return(t,r,n)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){n[t]=r?d(r,e):r;return}let o=null===r?[]:r.split(e.arrayFormatSeparator).map(t=>d(t,e));if(void 0===n[t]){n[t]=o;return}n[t]=[].concat(n[t],o)};default:return(e,t,r)=>{if(void 0===r[e]){r[e]=t;return}r[e]=[].concat(r[e],t)}}}(t),n=Object.create(null);if("string"!=typeof e||!(e=e.trim().replace(/^[?#&]/,"")))return n;for(let 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:d(a,t),r(d(e,t),a,n)}for(let e of Object.keys(n)){let r=n[e];if("object"==typeof r&&null!==r)for(let e of Object.keys(r))r[e]=p(r[e],t);else n[e]=p(r,t)}return!1===t.sort?n:(!0===t.sort?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((e,t)=>{let r=n[t];return r&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=f,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";c((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);let r=r=>t.skipNull&&s(e[r])||t.skipEmptyString&&""===e[r],n=function(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[",i,"]"].join("")]:[...r,[u(t,e),"[",u(i,e),"]=",u(n,e)].join("")]};case"bracket":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),"[]"].join("")]:[...r,[u(t,e),"[]=",u(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,[u(t,e),":list="].join("")]:[...r,[u(t,e),":list=",u(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{let t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(n,i)=>void 0===i||e.skipNull&&null===i||e.skipEmptyString&&""===i?n:(i=null===i?"":i,0===n.length)?[[u(r,e),t,u(i,e)].join("")]:[[n,u(i,e)].join(e.arrayFormatSeparator)]}default:return t=>(r,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:null===n?[...r,u(t,e)]:[...r,[u(t,e),"=",u(n,e)].join("")]}}(t),i={};for(let t of Object.keys(e))r(t)||(i[t]=e[t]);let o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(r=>{let i=e[r];return void 0===i?"":null===i?u(r,t):Array.isArray(i)?0===i.length&&"bracket-separator"===t.arrayFormat?u(r,t)+"[]":i.reduce(n(r),[]).join("&"):u(r,t)+"="+u(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=o(e,"#");return Object.assign({url:r.split("?")[0]||"",query:g(f(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:d(n,t)}:{})},t.stringifyUrl=(e,r)=>{r=Object.assign({encode:!0,strict:!0,[l]:!0},r);let n=h(e.url).split("?")[0]||"",i=t.extract(e.url),o=Object.assign(t.parse(i,{sort:!1}),e.query),a=t.stringify(o,r);a&&(a=`?${a}`);let s=function(e){let t="",r=e.indexOf("#");return -1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(s=`#${r[l]?u(e.fragmentIdentifier,r):e.fragmentIdentifier}`),`${n}${a}${s}`},t.pick=(e,r,n)=>{n=Object.assign({parseFragmentIdentifier:!0,[l]:!1},n);let{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,n);return t.stringifyUrl({url:i,query:a(o,r),fragmentIdentifier:s},n)},t.exclude=(e,r,n)=>{let i=Array.isArray(r)?e=>!r.includes(e):(e,t)=>!r(e,t);return t.pick(e,i,n)}},85346:function(e){"use strict";function t(e){try{return JSON.stringify(e)}catch(e){return'"[Circular]"'}}e.exports=function(e,r,n){var i=n&&n.stringify||t;if("object"==typeof e&&null!==e){var o=r.length+1;if(1===o)return e;var a=Array(o);a[0]=i(e);for(var s=1;s<o;s++)a[s]=i(r[s]);return a.join(" ")}if("string"!=typeof e)return e;var l=r.length;if(0===l)return e;for(var c="",u=0,d=-1,h=e&&e.length||0,f=0;f<h;){if(37===e.charCodeAt(f)&&f+1<h){switch(d=d>-1?d:0,e.charCodeAt(f+1)){case 100:case 102:if(u>=l||null==r[u])break;d<f&&(c+=e.slice(d,f)),c+=Number(r[u]),d=f+2,f++;break;case 105:if(u>=l||null==r[u])break;d<f&&(c+=e.slice(d,f)),c+=Math.floor(Number(r[u])),d=f+2,f++;break;case 79:case 111:case 106:if(u>=l||void 0===r[u])break;d<f&&(c+=e.slice(d,f));var p=typeof r[u];if("string"===p){c+="'"+r[u]+"'",d=f+2,f++;break}if("function"===p){c+=r[u].name||"<anonymous>",d=f+2,f++;break}c+=i(r[u]),d=f+2,f++;break;case 115:if(u>=l)break;d<f&&(c+=e.slice(d,f)),c+=String(r[u]),d=f+2,f++;break;case 37:d<f&&(c+=e.slice(d,f)),c+="%",d=f+2,f++,u--}++u}++f}return -1===d?e:(d<h&&(c+=e.slice(d)),c)}},85518:function(e,t,r){"use strict";var n,i,o,a,s,l,c=r(67294);c&&"object"==typeof c&&"default"in c&&c.default;var u=r(23451),d=new u,h=d.getBrowser(),f=d.getCPU(),p=d.getDevice(),g=d.getEngine(),m=d.getOS(),v=d.getUA(),b={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},y={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},x=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},_=function(e){var t=x();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},C=function(e){return e.type===b.Browser},A=function(e){return e.name===y.Edge},k=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},E=function(){return _("iPad")};p.type,b.SmartTv,p.type,b.Console,p.type,b.Wearable,p.type,b.Embedded,h.name===y.MobileSafari||E(),h.name,y.Chromium,(n=p.type)===b.Mobile||n===b.Tablet||E(),p.type,b.Mobile,p.type===b.Tablet||E(),C(p),C(p),m.name,m.name,"iOS"===m.name||E(),h.name,y.Chrome,h.name,y.Firefox,(i=h.name)===y.Safari||y.MobileSafari,h.name,y.Opera,(o=h.name)===y.InternetExplorer||y.Ie,w(m.version),w(m.name),w(h.version),w(h.major),w(h.name),w(p.vendor),w(p.model),w(g.name),w(g.version),w(v),A(h)||k(v),h.name,y.Yandex;var S=w(p.type,"browser");(a=x())&&(/iPad|iPhone|iPod/.test(a.platform)||"MacIntel"===a.platform&&a.maxTouchPoints>1)&&window.MSStream,E(),_("iPhone"),_("iPod"),"string"==typeof(l=(s=x())&&s.userAgent&&s.userAgent.toLowerCase())&&/electron/.test(l),k(v),A(h)&&k(v),m.name,m.name,h.name,y.MIUI,h.name,y.SamsungBrowser,t.vO=S},69590:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,c,u;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(!e(o[l],a[l]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=o.entries();!(l=u.next()).done;)if(!e(l.value[1],a.get(l.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(u=o.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(l=s;0!=l--;)if(o[l]!==a[l])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(c=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!o.$$typeof)&&!e(o[c[l]],a[c[l]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},34853:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n,i,o=r(67294),a=r(45697),s=r.n(a),l=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(u(t)),t.handleErrored=t.handleErrored.bind(u(t)),t.handleChange=t.handleChange.bind(u(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(u(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,d(t,e);var r=t.prototype;return r.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},r.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},r.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},r.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},r.executeAsync=function(){var e=this;return new Promise(function(t,r){e.executionResolve=t,e.executionReject=r,e.execute()})},r.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},r.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},r.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},r.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},r.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},r.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},r.componentDidMount=function(){this.explicitRender()},r.componentDidUpdate=function(){this.explicitRender()},r.handleRecaptchaRef=function(e){this.captcha=e},r.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,l));return o.createElement("div",c({},t,{ref:this.handleRecaptchaRef}))},t}(o.Component);h.displayName="ReCAPTCHA",h.propTypes={sitekey:s().string.isRequired,onChange:s().func,grecaptcha:s().object,theme:s().oneOf(["dark","light"]),type:s().oneOf(["image","audio"]),tabindex:s().number,onExpired:s().func,onErrored:s().func,size:s().oneOf(["compact","normal","invisible"]),stoken:s().string,hl:s().string,badge:s().oneOf(["bottomright","bottomleft","inline"]),isolated:s().bool},h.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var f=r(8679),p=r.n(f);function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m={},v=0,b="onloadcallback";function y(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var w=(n=function(){var e=y(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+b+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+b+"&render=explicit"},i=(i={callbackName:b,globalName:"grecaptcha",attributes:y().nonce?{nonce:y().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",r=function(t){function r(e,r){var n;return(n=t.call(this,e,r)||this).state={},n.__scriptURL="",n}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.__proto__=t;var a=r.prototype;return a.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+v++),this.__scriptLoaderID},a.setupScriptURL=function(){return this.__scriptURL="function"==typeof n?n():n,this.__scriptURL},a.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},a.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=m[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},a.componentDidMount=function(){var e=this,t=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),n=i,o=n.globalName,a=n.callbackName,s=n.scriptId;if(o&&void 0!==window[o]&&(m[t]={loaded:!0,observers:{}}),m[t]){var l=m[t];if(l&&(l.loaded||l.errored)){this.asyncScriptLoaderHandleLoad(l);return}l.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var c={};c[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},m[t]={loaded:!1,observers:c};var u=document.createElement("script");for(var d in u.src=t,u.async=!0,i.attributes)u.setAttribute(d,i.attributes[d]);s&&(u.id=s);var h=function(e){if(m[t]){var r=m[t].observers;for(var n in r)e(r[n])&&delete r[n]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=m[t];e&&(e.loaded=!0,h(function(t){return!a&&(t(e),!0)}))},u.onerror=function(){var e=m[t];e&&(e.errored=!0,h(function(t){return t(e),!0}))},document.body.appendChild(u)},a.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),r=0;r<t.length;r+=1)t[r].src.indexOf(e)>-1&&t[r].parentNode&&t[r].parentNode.removeChild(t[r]);var n=m[e];n&&(delete n.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete m[e])},a.render=function(){var t=i.globalName,r=this.props,n=(r.asyncScriptOnLoad,r.forwardedRef),a=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}(r,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=n,(0,o.createElement)(e,a)},r}(o.Component),a=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(r,g({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:s().func},p()(a,e)})(h)},69921:function(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,y=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function _(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||x(e)===u},t.isConcurrentMode=_,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===n},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},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)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},59864:function(e,t,r){"use strict";e.exports=r(69921)},73054:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=t.default=void 0;var i=r(64831);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n(i).default}}),Object.defineProperty(t,"scripts",{enumerable:!0,get:function(){return i.scripts}})},64831:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.scripts=void 0;var i=r(67294);t.scripts={};var o=function(e){var r=document.querySelector('script[src="'+e+'"]');if(r)return t.scripts[e]={loading:!1,error:null,scriptEl:r}};t.default=function(e){var r=e.src,s=e.checkForExisting,l=void 0!==s&&s,c=n(e,["src","checkForExisting"]),u=r?t.scripts[r]:void 0;!u&&l&&r&&a&&(u=o(r));var d=(0,i.useState)(u?u.loading:!!r),h=d[0],f=d[1],p=(0,i.useState)(u?u.error:null),g=p[0],m=p[1],v=(0,i.useState)(!1),b=v[0],y=v[1];return(0,i.useEffect)(function(){if(a&&r&&!b&&!g){(u=t.scripts[r])||!l||(u=o(r)),u?e=u.scriptEl:((e=document.createElement("script")).src=r,Object.keys(c).forEach(function(t){void 0===e[t]?e.setAttribute(t,c[t]):e[t]=c[t]}),u=t.scripts[r]={loading:!0,error:null,scriptEl:e});var e,n=function(){u&&(u.loading=!1),f(!1),y(!0)},i=function(e){u&&(u.error=e),m(e)};return e.addEventListener("load",n),e.addEventListener("error",i),document.body.appendChild(e),function(){e.removeEventListener("load",n),e.removeEventListener("error",i)}}},[r]),[h,g]};var a="undefined"!=typeof window&&void 0!==window.document},48477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=a(r(67294)),o=a(r(31093));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),t}(i.default.Component);t.default=(0,o.default)(s)},35343:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=l(r(67294)),a=l(r(18e3)),s=l(r(45697));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this,t=n({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",n({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}(o.default.Component);c.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(c)},68939:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(67294)),i=o(r(31093));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var s=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,r,i,o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return r=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.render=function(){return n.default.createElement("a",i.props,i.props.children)},a(i,r)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Component);t.default=(0,i.default)(s)},66261:function(e,t,r){"use strict";t.NY=t.OK=t.W_=void 0;var n=f(r(68939)),i=f(r(48477)),o=f(r(35343)),a=f(r(82628)),s=f(r(64592)),l=f(r(87606)),c=f(r(53200)),u=f(r(31093)),d=f(r(18e3)),h=f(r(98482));function f(e){return e&&e.__esModule?e:{default:e}}n.default,i.default,t.W_=o.default,t.OK=a.default,s.default,l.default,t.NY=c.default,u.default,d.default,h.default,n.default,i.default,o.default,a.default,s.default,l.default,c.default,u.default,d.default,h.default},98482:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(67294);r(73935),r(54259);var c=r(87606),u=r(82628),d=r(45697),h=r(29678),f={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool,spyThrottle:d.number};e.exports={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var r=t||u,d=function(t){function u(e){o(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return p.call(t),t.state={active:!1},t}return s(u,t),i(u,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();c.isMounted(e)||c.mount(e,this.props.spyThrottle),this.props.hashSpy&&(h.isMounted()||h.mount(r),h.mapContainer(this.props.to,e)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in f)r.hasOwnProperty(i)&&delete r[i];return r.className=t,r.onClick=this.handleClick,l.createElement(e,r)}}]),u}(l.Component),p=function(){var e=this;this.scrollTo=function(t,i){r.scrollTo(t,n({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){r.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var n=e.getScrollSpyContainer();if(!h.isMounted()||h.isInitialized()){var i=e.props.to,o=null,a=0,s=0,l=0;if(n.getBoundingClientRect&&(l=n.getBoundingClientRect().top),!o||e.props.isDynamic){if(!(o=r.get(i)))return;var u=o.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var d=t-e.props.offset,f=d>=Math.floor(a)&&d<Math.floor(s),p=d<Math.floor(a)||d>=Math.floor(s),g=r.getActiveLink();return p?(i===g&&r.setActiveLink(void 0),e.props.hashSpy&&h.getHash()===i&&h.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),c.updateStates()):f&&g!==i?(r.setActiveLink(i),e.props.hashSpy&&h.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),c.updateStates()):void 0}}};return d.propTypes=f,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function r(e){o(this,r);var t=a(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}return s(r,t),i(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;u.unregister(this.props.name)}},{key:"registerElems",value:function(e){u.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(l.Component);return t.propTypes={name:d.string,id:d.string},t}}},53200:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};s(r(54259));var i=s(r(89765)),o=s(r(50140)),a=s(r(64592));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return i.default[e.smooth]||i.default.defaultEasing},c=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,r){window.setTimeout(e,r||1e3/60,new Date().getTime())},u=function(){return{currentPosition:0,startPosition:0,targetPosition:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,delta:null,percent:null,delayTimeout:null}},d=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollLeft;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft},h=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var r=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return r?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop},f=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollWidth-t.offsetWidth;var r=document.body,n=document.documentElement;return Math.max(r.scrollWidth,r.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)},p=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollHeight-t.offsetHeight;var r=document.body,n=document.documentElement;return Math.max(r.scrollHeight,r.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)},g=function e(t,r,n){var i=r.data;if(!r.ignoreCancelEvents&&i.cancel){a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY);return}if(i.delta=Math.round(i.targetPosition-i.startPosition),null===i.start&&(i.start=n),i.progress=n-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?r.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:r.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=e.bind(null,t,r);c.call(window,o);return}a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPosition)},m=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},v=function(e,t,r,n){if(t.data=t.data||u(),window.clearTimeout(t.data.delayTimeout),o.default.subscribe(function(){t.data.cancel=!0}),m(t),t.data.start=null,t.data.cancel=!1,t.data.startPosition=t.horizontal?d(t):h(t),t.data.targetPosition=t.absolute?e:e+t.data.startPosition,t.data.startPosition===t.data.targetPosition){a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPosition);return}t.data.delta=Math.round(t.data.targetPosition-t.data.startPosition),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.delta),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=r,t.data.target=n;var i,s=l(t),f=g.bind(null,s,t);if(t&&t.delay>0){t.data.delayTimeout=window.setTimeout(function(){a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f)},t.delay);return}a.default.registered.begin&&a.default.registered.begin(t.data.to,t.data.target),c.call(window,f)},b=function(e){return(e=n({},e)).data=e.data||u(),e.absolute=!0,e};t.default={animateTopScroll:v,getAnimationType:l,scrollToTop:function(e){v(0,b(e))},scrollToBottom:function(e){m(e=b(e)),v(e.horizontal?f(e):p(e),e)},scrollTo:function(e,t){v(e,b(t))},scrollMore:function(e,t){m(t=b(t)),v(e+(t.horizontal?d(t):h(t)),t)}}},50140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(55236),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach(function(t){return(0,n.addPassiveEventListener)(document,t,e)})}}},55236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPassiveEventListener=function(e,t,r){var n=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,r,!!n&&{passive:!0})},t.removePassiveEventListener=function(e,t,r){e.removeEventListener(t,r)}},18e3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=l(r(67294));l(r(73935));var a=l(r(82628)),s=l(r(45697));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.childBindings={domNode:null},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),i(r,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(e){this.props.name!==e.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,n({},this.props,{parentBindings:this.childBindings}))}}]),r}(o.default.Component);return t.propTypes={name:s.default.string,id:s.default.string},t}},64592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},29678:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(55236);var n,i=(n=r(54259))&&n.__esModule?n:{default:n};t.default={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var r=this.scroller;if(r.get(e)&&(t||e!==r.getActiveLink())){var n=this.containers[e]||document;r.scrollTo(e,{container:n})}},getHash:function(){return i.default.getHash()},changeHash:function(e,t){this.isInitialized()&&i.default.getHash()!==e&&i.default.updateHash(e,t)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}}},31093:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=u(r(67294)),a=u(r(87606)),s=u(r(82628)),l=u(r(45697)),c=u(r(29678));function u(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,spy:l.default.bool,horizontal:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool,saveHashHistory:l.default.bool,spyThrottle:l.default.number};t.default=function(e,t){var r=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return u.call(t),t.state={active:!1},t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,t),i(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e,this.props.spyThrottle),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(r),c.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var r=n({},this.props);for(var i in d)r.hasOwnProperty(i)&&delete r[i];return r.className=t,r.onClick=this.handleClick,o.default.createElement(e,r)}}]),s}(o.default.PureComponent),u=function(){var e=this;this.scrollTo=function(t,i){r.scrollTo(t,n({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t,n){var i=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var o=e.props.horizontal,a=e.props.to,s=null,l=void 0,u=void 0;if(o){var d=0,h=0,f=0;if(i.getBoundingClientRect&&(f=i.getBoundingClientRect().left),!s||e.props.isDynamic){if(!(s=r.get(a)))return;var p=s.getBoundingClientRect();h=(d=p.left-f+t)+p.width}var g=t-e.props.offset;l=g>=Math.floor(d)&&g<Math.floor(h),u=g<Math.floor(d)||g>=Math.floor(h)}else{var m=0,v=0,b=0;if(i.getBoundingClientRect&&(b=i.getBoundingClientRect().top),!s||e.props.isDynamic){if(!(s=r.get(a)))return;var y=s.getBoundingClientRect();v=(m=y.top-b+n)+y.height}var w=n-e.props.offset;l=w>=Math.floor(m)&&w<Math.floor(v),u=w<Math.floor(m)||w>=Math.floor(v)}var x=r.getActiveLink();if(u){if(a===x&&r.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===a){var _=e.props.saveHashHistory;c.default.changeHash("",void 0!==_&&_)}e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(a,s))}if(l&&(x!==a||!1===e.state.active)){r.setActiveLink(a);var C=e.props.saveHashHistory;e.props.hashSpy&&c.default.changeHash(a,void 0!==C&&C),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(a,s))}}}};return l.propTypes=d,l.defaultProps={offset:0},l}},87606:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(93096))&&n.__esModule?n:{default:n},o=r(55236),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,i.default)(e,t)},s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e,t){if(e){var r=a(function(t){s.scrollHandler(e)},t);s.scrollSpyContainers.push(e),(0,o.addPassiveEventListener)(e,"scroll",r)}},isMounted:function(e){return -1!==s.scrollSpyContainers.indexOf(e)},currentPositionX:function(e){if(e!==document)return e.scrollLeft;var t=void 0!==window.pageYOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageXOffset:r?document.documentElement.scrollLeft:document.body.scrollLeft},currentPositionY:function(e){if(e!==document)return e.scrollTop;var t=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(s.currentPositionX(e),s.currentPositionY(e))})},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var r=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];r.spyCallbacks||(r.spyCallbacks=[]),r.spyCallbacks.push(e),e(s.currentPositionX(t),s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach(function(e){return e()})},unmount:function(e,t){s.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach(function(e){return s.scrollHandler(e)})}};t.default=s},82628:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=s(r(54259)),o=s(r(53200)),a=s(r(64592));function s(e){return e&&e.__esModule?e:{default:e}}var l={},c=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return c=e},getActiveLink:function(){return c},scrollTo:function(e,t){var r=this.get(e);if(!r){console.warn("target Element not found");return}var s=(t=n({},t,{absolute:!1})).containerId,l=t.container,c=void 0;c=s?document.getElementById(s):l&&l.nodeType?l:document,t.absolute=!0;var u=t.horizontal,d=i.default.scrollOffset(c,r,u)+(t.offset||0);if(!t.smooth){a.default.registered.begin&&a.default.registered.begin(e,r),c===document?t.horizontal?window.scrollTo(d,0):window.scrollTo(0,d):c.scrollTop=d,a.default.registered.end&&a.default.registered.end(e,r);return}o.default.animateTopScroll(d,t,e,r)}}},89765:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow((1-e)*2,2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:-1+(4-2*e)*e},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},54259:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){for(var r=e.offsetTop,n=e.offsetParent;n&&!t(n);)r+=n.offsetTop,n=n.offsetParent;return{offsetTop:r,offsetParent:n}};t.default={updateHash:function(e,t){var r=0===e.indexOf("#")?e.substring(1):e,n=r?"#"+r:"",i=window&&window.location,o=n?i.pathname+i.search+n:i.pathname+i.search;t?history.pushState(history.state,"",o):history.replaceState(history.state,"",o)},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t,n){if(n)return e===document?t.getBoundingClientRect().left+(window.scrollX||window.pageXOffset):"static"!==getComputedStyle(e).position?t.offsetLeft:t.offsetLeft-e.offsetLeft;if(e===document)return t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset);if("static"!==getComputedStyle(e).position){if(t.offsetParent!==e){var i=r(t,function(t){return t===e||t===document}),o=i.offsetTop;if(i.offsetParent!==e)throw Error("Seems containerElement is not an ancestor of the Element");return o}return t.offsetTop}if(t.offsetParent===e.offsetParent)return t.offsetTop-e.offsetTop;var a=function(e){return e===document};return r(t,a).offsetTop-r(e,a).offsetTop}}},80500:function(e){"use strict";e.exports=(e,t)=>{if(!("string"==typeof e&&"string"==typeof t))throw TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];let r=e.indexOf(t);return -1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},70610:function(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||r.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},70655:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return _},__await:function(){return y},__awaiter:function(){return u},__classPrivateFieldGet:function(){return S},__classPrivateFieldIn:function(){return I},__classPrivateFieldSet:function(){return T},__createBinding:function(){return h},__decorate:function(){return s},__exportStar:function(){return f},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return E},__importStar:function(){return k},__makeTemplateObject:function(){return C},__metadata:function(){return c},__param:function(){return l},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArray:function(){return b},__spreadArrays:function(){return v},__values:function(){return p}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function l(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})}function d(e,t){var r,n,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(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=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++,n=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(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var h=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function f(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||h(t,e,r)}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function b(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof y?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(e){u(o[0][3],e)}}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 x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:y(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&h(t,e,r);return A(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function S(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function T(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},23451:function(e,t,r){var n;!function(i,o){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",h="name",f="type",p="vendor",g="version",m="architecture",v="console",b="mobile",y="tablet",w="smarttv",x="wearable",_="embedded",C="Amazon",A="Apple",k="ASUS",E="BlackBerry",S="Browser",T="Chrome",I="Firefox",P="Google",O="Huawei",R="Microsoft",M="Motorola",N="Opera",j="Samsung",D="Sharp",B="Sony",L="Xiaomi",$="Zebra",U="Facebook",z="Chromium OS",F="Mac OS",q=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},H=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},W=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},Z=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,350)},G=function(e,t){for(var r,n,i,s,c,u,d=0;d<t.length&&!c;){var h=t[d],f=t[d+1];for(r=n=0;r<h.length&&!c&&h[r];)if(c=h[r++].exec(e))for(i=0;i<f.length;i++)u=c[++n],typeof(s=f[i])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):void 0):this[s]=u||o;d+=2}},K=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(W(t[r][n],e))return"?"===r?o:r}else if(W(t[r],e))return"?"===r?o:r;return e},Y={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,g],[/opios[\/ ]+([\w\.]+)/i],[g,[h,N+" Mini"]],[/\bopr\/([\w\.]+)/i],[g,[h,N]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,g],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[h,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[g,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[g,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+S],g],[/\bfocus\/([\w\.]+)/i],[g,[h,I+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[h,N+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[h,N+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[h,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[g,[h,I]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+S],g],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,g],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,U],g],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[h,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[h,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[g,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[h,I+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,g],[/(cobalt)\/([\w\.]+)/i],[h,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,V]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[f,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[f,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,A],[f,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,A],[f,y]],[/(macintosh);/i],[d,[p,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,D],[f,b]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,O],[f,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,O],[f,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,L],[f,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,L],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[f,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[f,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,M],[f,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,M],[f,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,"LG"],[f,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,"LG"],[f,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[f,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[f,b]],[/(pixel c)\b/i],[d,[p,P],[f,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,P],[f,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,B],[f,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,B],[f,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[f,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,C],[f,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,C],[f,b]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[f,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,E],[f,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,k],[f,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,k],[f,b]],[/(nexus 9)/i],[d,[p,"HTC"],[f,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[f,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[f,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[f,b]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[f,y]],[/(surface duo)/i],[d,[p,R],[f,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[f,b]],[/(u304aa)/i],[d,[p,"AT&T"],[f,b]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[f,b]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[f,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[f,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[f,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[f,y]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[f,y]],[/\b(k88) b/i],[d,[p,"ZTE"],[f,y]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[f,b]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[f,b]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[f,y]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[f,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[f,y]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[f,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[f,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[f,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[f,b]],[/\b(ph-1) /i],[d,[p,"Essential"],[f,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[f,y]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[f,y]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[f,y]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[f,y]],[/(sprint) (\w+)/i],[p,d,[f,b]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,R],[f,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,$],[f,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,$],[f,b]],[/smart-tv.+(samsung)/i],[p,[f,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[f,w]],[/(apple) ?tv/i],[p,[d,A+" TV"],[f,w]],[/crkey/i],[[d,T+"cast"],[p,P],[f,w]],[/droid.+aft(\w)( bui|\))/i],[d,[p,C],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,D],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,B],[f,w]],[/(mitv-\w{5}) bui/i],[d,[p,L],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,Z],[d,Z],[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[f,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[f,v]],[/(playstation [345portablevi]+)/i],[d,[p,B],[f,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,R],[f,v]],[/((pebble))app/i],[p,d,[f,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,A],[f,x]],[/droid.+; (glass) \d/i],[d,[p,P],[f,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,$],[f,x]],[/(quest( 2| pro)?)/i],[d,[p,U],[f,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,_]],[/(aeobc)\b/i],[d,[p,C],[f,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[d,[f,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[f,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,b]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,g],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[g,K,Y]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[g,K,Y]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,F],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,g],[/\(bb(10);/i],[g,[h,E]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[h,I+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[h,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,z],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,g],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,g]]},J=function(e,t){if(typeof e===l&&(t=e,e=o),!(this instanceof J))return new J(e,t).getResult();var r=typeof i!==s&&i.navigator?i.navigator:o,n=e||(r&&r.userAgent?r.userAgent:""),v=r&&r.userAgentData?r.userAgentData:o,w=t?q(Q,t):Q,x=r&&r.userAgent==n;return this.getBrowser=function(){var e,t={};return t[h]=o,t[g]=o,G.call(t,n,w.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,x&&r&&r.brave&&typeof r.brave.isBrave==a&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[m]=o,G.call(e,n,w.cpu),e},this.getDevice=function(){var e={};return e[p]=o,e[d]=o,e[f]=o,G.call(e,n,w.device),x&&!e[f]&&v&&v.mobile&&(e[f]=b),x&&"Macintosh"==e[d]&&r&&typeof r.standalone!==s&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[d]="iPad",e[f]=y),e},this.getEngine=function(){var e={};return e[h]=o,e[g]=o,G.call(e,n,w.engine),e},this.getOS=function(){var e={};return e[h]=o,e[g]=o,G.call(e,n,w.os),x&&!e[h]&&v&&"Unknown"!=v.platform&&(e[h]=v.platform.replace(/chrome os/i,z).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>350?Z(e,350):e,this},this.setUA(n),this};J.VERSION="1.0.35",J.BROWSER=H([h,g,u]),J.CPU=H([m]),J.DEVICE=H([d,p,f,v,b,w,y,x,_]),J.ENGINE=J.OS=H([h,g]),typeof t!==s?(e.exports&&(t=e.exports=J),t.UAParser=J):r.amdO?o!==(n=(function(){return J}).call(t,r,t,e))&&(e.exports=n):typeof i!==s&&(i.UAParser=J);var X=typeof i!==s&&(i.jQuery||i.Zepto);if(X&&!X.ua){var ee=new J;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var r in t)X.ua[r]=t[r]}}}("object"==typeof window?window:this)},23815:function(e,t,r){"use strict";var n=r(67294),i=r(37347),o=r.n(i);t.Z=function(e=[],{testString:t,timeout:r}={},{showErrors:i}={showErrors:!1}){let[a,s]=(0,n.useState)(!1),l=JSON.stringify(e);return(0,n.useEffect)(()=>{Promise.all(JSON.parse(l).map(({family:e,weight:n,style:i,stretch:a})=>new(o())(e,{weight:n,style:i,stretch:a}).load(t,r))).then(()=>s(!0)).catch(()=>{i&&console.error("An error occurred during font loading")})},[l,t,r,i]),a}},53250:function(e,t,r){"use strict";var n=r(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,a=n.useEffect,s=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return s(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),a(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},50139:function(e,t,r){"use strict";var n=r(67294),i=r(61688),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=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;var f=a(e,(d=c(function(){function e(e){if(!l){if(l=!0,a=e,e=n(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 r=n(e);return void 0!==i&&i(t,r)?t:(a=e,s=r)}var a,s,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]))[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},61688:function(e,t,r){"use strict";e.exports=r(53250)},52798:function(e,t,r){"use strict";e.exports=r(50139)},82302:function(e,t,r){var n=r(29970).FilterCSS,i=r(29970).getDefaultWhiteList,o=r(75938);function a(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new n;function l(e){return e.replace(c,"&lt;").replace(u,"&gt;")}var c=/</g,u=/>/g,d=/"/g,h=/&quot;/g,f=/&#([a-zA-Z0-9]*);?/gim,p=/&colon;?/gim,g=/&newline;?/gim,m=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,v=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,b=/u\s*r\s*l\s*\(.*/gi;function y(e){return e.replace(d,"&quot;")}function w(e){return e.replace(h,'"')}function x(e){return e.replace(f,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function _(e){return e.replace(p,":").replace(g," ")}function C(e){for(var t="",r=0,n=e.length;r<n;r++)t+=32>e.charCodeAt(r)?" ":e.charAt(r);return o.trim(t)}function A(e){return e=C(e=_(e=x(e=w(e))))}function k(e){return e=l(e=y(e))}t.whiteList=a(),t.getDefaultWhiteList=a,t.onTag=function(e,t,r){},t.onIgnoreTag=function(e,t,r){},t.onTagAttr=function(e,t,r){},t.onIgnoreTagAttr=function(e,t,r){},t.safeAttrValue=function(e,t,r,n){if(r=A(r),"href"===t||"src"===t){if("#"===(r=o.trim(r)))return"#";if(!("http://"===r.substr(0,7)||"https://"===r.substr(0,8)||"mailto:"===r.substr(0,7)||"tel:"===r.substr(0,4)||"data:image/"===r.substr(0,11)||"ftp://"===r.substr(0,6)||"./"===r.substr(0,2)||"../"===r.substr(0,3)||"#"===r[0]||"/"===r[0]))return""}else if("background"===t){if(m.lastIndex=0,m.test(r))return""}else if("style"===t){if(v.lastIndex=0,v.test(r)||(b.lastIndex=0,b.test(r)&&(m.lastIndex=0,m.test(r))))return"";!1!==n&&(r=(n=n||s).process(r))}return r=k(r)},t.escapeHtml=l,t.escapeQuote=y,t.unescapeQuote=w,t.escapeHtmlEntities=x,t.escapeDangerHtml5Entities=_,t.clearNonPrintableCharacter=C,t.friendlyAttrValue=A,t.escapeAttrValue=k,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],i=!1;return{onIgnoreTag:function(a,s,l){if(r?0:-1===o.indexOf(e,a))return t(a,s,l);if(!l.isClosing)return i||(i=l.position),"[removed]";var c="[/removed]",u=l.position+c.length;return n.push([!1!==i?i:l.position,u]),i=!1,c},remove:function(e){var t="",r=0;return o.forEach(n,function(n){t+=e.slice(r,n[0]),r=n[1]}),t+=e.slice(r)}}},t.stripCommentTag=function(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(-1===n){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(-1===i)break;r=i+3}return t},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||10===t||13===t)})).join("")},t.cssFilter=s,t.getDefaultCSSWhiteList=i},68924:function(e,t,r){var n=r(82302),i=r(73268),o=r(82973);function a(e,t){return new o(t).process(e)}(t=e.exports=a).filterXSS=a,t.FilterXSS=o,function(){for(var e in n)t[e]=n[e];for(var r in i)t[r]=i[r]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},73268:function(e,t,r){var n=r(75938),i=/[^a-zA-Z0-9\\_:.-]/gim;function o(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]?e.substr(1,e.length-2):e}t.parseTag=function(e,t,r){"use strict";var i="",o=0,a=!1,s=!1,l=0,c=e.length,u="",d="";r:for(l=0;l<c;l++){var h=e.charAt(l);if(!1===a){if("<"===h){a=l;continue}}else if(!1===s){if("<"===h){i+=r(e.slice(o,l)),a=l,o=l;continue}if(">"===h||l===c-1){i+=r(e.slice(o,a)),u=function(e){var t,r=n.spaceIndex(e);return t=-1===r?e.slice(1,-1):e.slice(1,r+1),"/"===(t=n.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(d=e.slice(a,l+1)),i+=t(a,i.length,u,d,"</"===d.slice(0,2)),o=l+1,a=!1;continue}if('"'===h||"'"===h)for(var f=1,p=e.charAt(l-f);""===p.trim()||"="===p;){if("="===p){s=h;continue r}p=e.charAt(l-++f)}}else if(h===s){s=!1;continue}}return o<c&&(i+=r(e.substr(o))),i},t.parseAttr=function(e,t){"use strict";var r=0,a=0,s=[],l=!1,c=e.length;function u(e,r){if(!((e=(e=n.trim(e)).replace(i,"").toLowerCase()).length<1)){var o=t(e,r||"");o&&s.push(o)}}for(var d=0;d<c;d++){var h,f=e.charAt(d);if(!1===l&&"="===f){l=e.slice(r,d),r=d+1,a='"'===e.charAt(r)||"'"===e.charAt(r)?r:function(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r){if("'"===r||'"'===r)return t;return -1}}}(e,d+1);continue}if(!1!==l&&d===a){if(-1===(h=e.indexOf(f,d+1)))break;u(l,n.trim(e.slice(a+1,h))),l=!1,r=(d=h)+1;continue}if(/\s|\n|\t/.test(f)){if(e=e.replace(/\s|\n|\t/g," "),!1===l){if(-1===(h=function(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r){if("="===r)return t;return -1}}}(e,d))){u(n.trim(e.slice(r,d))),l=!1,r=d+1;continue}d=h-1;continue}if(-1!==(h=function(e,t){for(;t>0;t--){var r=e[t];if(" "!==r){if("="===r)return t;return -1}}}(e,d-1)))continue;u(l,o(n.trim(e.slice(r,d)))),l=!1,r=d+1;continue}}return r<e.length&&(!1===l?u(e.slice(r)):u(l,o(n.trim(e.slice(r))))),n.trim(s.join(" "))}},75938:function(e){e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},82973:function(e,t,r){var n=r(29970).FilterCSS,i=r(82302),o=r(73268),a=o.parseTag,s=o.parseAttr,l=r(75938);function c(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=i.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(e){return e.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}(e.whiteList||e.allowList):e.whiteList=i.whiteList,e.onTag=e.onTag||i.onTag,e.onTagAttr=e.onTagAttr||i.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||i.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||i.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,e.escapeHtml=e.escapeHtml||i.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new n(e.css))}c.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,n=t.onTag,o=t.onIgnoreTag,c=t.onTagAttr,u=t.onIgnoreTagAttr,d=t.safeAttrValue,h=t.escapeHtml,f=this.cssFilter;t.stripBlankChar&&(e=i.stripBlankChar(e)),t.allowCommentTag||(e=i.stripCommentTag(e));var p=!1;t.stripIgnoreTagBody&&(o=(p=i.StripTagBody(t.stripIgnoreTagBody,o)).onIgnoreTag);var g=a(e,function(e,t,i,a,p){var g={sourcePosition:e,position:t,isClosing:p,isWhite:Object.prototype.hasOwnProperty.call(r,i)},m=n(i,a,g);if(null!=m)return m;if(g.isWhite){if(g.isClosing)return"</"+i+">";var v=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return r&&(e=l.trim(e.slice(0,-1))),{html:e,closing:r}}(a),b=r[i],y=s(v.html,function(e,t){var r=-1!==l.indexOf(b,e),n=c(i,e,t,r);return null!=n?n:r?(t=d(i,e,t,f))?e+'="'+t+'"':e:null!=(n=u(i,e,t,r))?n:void 0});return a="<"+i,y&&(a+=" "+y),v.closing&&(a+=" /"),a+=">"}return null!=(m=o(i,a,g))?m:h(a)},h);return p&&(g=p.remove(g)),g},e.exports=c},35883:function(){},46601:function(){},89214:function(){},67686:function(e,t,r){"use strict";let n=r(85346);e.exports=o;let i=function(){function e(e){return void 0!==e&&e}try{if("undefined"!=typeof globalThis)return globalThis;return Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}}().console||{};function o(e){var t,r;(e=e||{}).browser=e.browser||{};let n=e.browser.transmit;if(n&&"function"!=typeof n.send)throw Error("pino: transmit option must have a send function");let u=e.browser.write||i;e.browser.write&&(e.browser.asObject=!0);let d=e.serializers||{},g=Array.isArray(t=e.browser.serialize)?t.filter(function(e){return"!stdSerializers.err"!==e}):!0===t&&Object.keys(d),m=e.browser.serialize;Array.isArray(e.browser.serialize)&&e.browser.serialize.indexOf("!stdSerializers.err")>-1&&(m=!1),"function"==typeof u&&(u.error=u.fatal=u.warn=u.info=u.debug=u.trace=u),!1===e.enabled&&(e.level="silent");let v=e.level||"info",b=Object.create(u);b.log||(b.log=h),Object.defineProperty(b,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(b,"level",{get:function(){return this._level},set:function(e){if("silent"!==e&&!this.levels.values[e])throw Error("unknown level "+e);this._level=e,a(y,b,"error","log"),a(y,b,"fatal","error"),a(y,b,"warn","error"),a(y,b,"info","log"),a(y,b,"debug","log"),a(y,b,"trace","log")}});let y={transmit:n,serialize:g,asObject:e.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:"function"==typeof(r=e).timestamp?r.timestamp:!1===r.timestamp?f:p};return b.levels=o.levels,b.level=v,b.setMaxListeners=b.getMaxListeners=b.emit=b.addListener=b.on=b.prependListener=b.once=b.prependOnceListener=b.removeListener=b.removeAllListeners=b.listeners=b.listenerCount=b.eventNames=b.write=b.flush=h,b.serializers=d,b._serialize=g,b._stdErrSerialize=m,b.child=function(t,r){if(!t)throw Error("missing bindings for child Pino");r=r||{},g&&t.serializers&&(r.serializers=t.serializers);let i=r.serializers;if(g&&i){var o=Object.assign({},d,i),a=!0===e.browser.serialize?Object.keys(o):g;delete t.serializers,s([t],a,o,this._stdErrSerialize)}function u(e){this._childLevel=(0|e._childLevel)+1,this.error=l(e,t,"error"),this.fatal=l(e,t,"fatal"),this.warn=l(e,t,"warn"),this.info=l(e,t,"info"),this.debug=l(e,t,"debug"),this.trace=l(e,t,"trace"),o&&(this.serializers=o,this._serialize=a),n&&(this._logEvent=c([].concat(e._logEvent.bindings,t)))}return u.prototype=this,new u(this)},n&&(b._logEvent=c()),b}function a(e,t,r,a){let l=Object.getPrototypeOf(t);t[r]=t.levelVal>t.levels.values[r]?h:l[r]?l[r]:i[r]||i[a]||h,function(e,t,r){if(e.transmit||t[r]!==h){var a;t[r]=(a=t[r],function(){let l=e.timestamp(),u=Array(arguments.length),d=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var h=0;h<u.length;h++)u[h]=arguments[h];if(e.serialize&&!e.asObject&&s(u,this._serialize,this.serializers,this._stdErrSerialize),e.asObject?a.call(d,function(e,t,r,i){e._serialize&&s(r,e._serialize,e.serializers,e._stdErrSerialize);let a=r.slice(),l=a[0],c={};i&&(c.time=i),c.level=o.levels.values[t];let u=(0|e._childLevel)+1;if(u<1&&(u=1),null!==l&&"object"==typeof l){for(;u--&&"object"==typeof a[0];)Object.assign(c,a.shift());l=a.length?n(a.shift(),a):void 0}else"string"==typeof l&&(l=n(a.shift(),a));return void 0!==l&&(c.msg=l),c}(this,r,u,l)):a.apply(d,u),e.transmit){let n=e.transmit.level||t.level,i=o.levels.values[n],a=o.levels.values[r];if(a<i)return;(function(e,t,r){let n=t.send,i=t.ts,o=t.methodLevel,a=t.methodValue,l=t.val,u=e._logEvent.bindings;s(r,e._serialize||Object.keys(e.serializers),e.serializers,void 0===e._stdErrSerialize||e._stdErrSerialize),e._logEvent.ts=i,e._logEvent.messages=r.filter(function(e){return -1===u.indexOf(e)}),e._logEvent.level.label=o,e._logEvent.level.value=a,n(o,e._logEvent,l),e._logEvent=c(u)})(this,{ts:l,methodLevel:r,methodValue:a,transmitLevel:n,transmitValue:o.levels.values[e.transmit.level||t.level],send:e.transmit.send,val:t.levelVal},u)}})}}(e,t,r)}function s(e,t,r,n){for(let i in e)if(n&&e[i]instanceof Error)e[i]=o.stdSerializers.err(e[i]);else if("object"==typeof e[i]&&!Array.isArray(e[i]))for(let n in e[i])t&&t.indexOf(n)>-1&&n in r&&(e[i][n]=r[n](e[i][n]))}function l(e,t,r){return function(){let n=Array(1+arguments.length);n[0]=t;for(var i=1;i<n.length;i++)n[i]=arguments[i-1];return e[r].apply(this,n)}}function c(e){return{ts:0,messages:[],bindings:e||[],level:{label:"",value:0}}}function u(){return{}}function d(e){return e}function h(){}function f(){return!1}function p(){return Date.now()}o.levels={values:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},labels:{10:"trace",20:"debug",30:"info",40:"warn",50:"error",60:"fatal"}},o.stdSerializers={mapHttpRequest:u,mapHttpResponse:u,wrapRequestSerializer:d,wrapResponseSerializer:d,wrapErrorSerializer:d,req:u,res:u,err:function(e){let t={type:e.constructor.name,msg:e.message,stack:e.stack};for(let r in e)void 0===t[r]&&(t[r]=e[r]);return t}},o.stdTimeFunctions=Object.assign({},{nullTime:f,epochTime:p,unixTime:function(){return Math.round(Date.now()/1e3)},isoTime:function(){return new Date(Date.now()).toISOString()}})},87462:function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},56837:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(66917),i=r(25432),o=r(35059),a=r(75350),s=r(85893),l=(0,o.G)(function(e,t){let r=(0,n.uL)(),{status:o}=(0,n.oX)(),l={display:"inline",...r.description};return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__desc",e.className),__css:l})});l.displayName="AlertDescription"},8180:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(66917),i=r(25432),o=r(35059),a=r(75350),s=r(85893),l=(0,o.G)(function(e,t){let r=(0,n.uL)(),{status:o}=(0,n.oX)();return(0,s.jsx)(a.m.div,{ref:t,"data-status":o,...e,className:(0,i.cx)("chakra-alert__title",e.className),__css:r.title})});l.displayName="AlertTitle"},66917:function(e,t,r){"use strict";r.d(t,{uZ:function(){return l},Hm:function(){return u},TR:function(){return f},XO:function(){return p},oX:function(){return c},uL:function(){return d}});var n=r(56877),i=r(85893);function o(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=r(55227),s=r(295),[l,c]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[u,d]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),h={info:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function f(e){return h[e].colorScheme}function p(e){return h[e].icon}},31507:function(e,t,r){"use strict";r.d(t,{b:function(){return u}});var n=r(66917),i=r(25432),o=r(35059),a=r(33179),s=r(91639),l=r(75350),c=r(85893),u=(0,o.G)(function(e,t){var r;let{status:o="info",addRole:u=!0,...d}=(0,a.Lr)(e),h=null!=(r=e.colorScheme)?r:(0,n.TR)(o),f=(0,s.jC)("Alert",{...e,colorScheme:h}),p={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...f.container};return(0,c.jsx)(n.uZ,{value:{status:o},children:(0,c.jsx)(n.Hm,{value:f,children:(0,c.jsx)(l.m.div,{"data-status":o,role:u?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:p})})})});u.displayName="Alert"},48543:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(66917),i=r(25432),o=r(75350),a=r(85893);function s(e){let{status:t}=(0,n.oX)(),r=(0,n.XO)(t),s=(0,n.uL)(),l="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:l,children:e.children||(0,a.jsx)(r,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},30871:function(e,t,r){"use strict";function n(e,t={}){let r=!1;function i(t){let r=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),n=`chakra-${r}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),o))t[e]=i(e);return n(e,t)},toPart:i,extend:function(...r){for(let e of r)e in t||(t[e]=i(e));return n(e,t)},selectors:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]))},classnames:function(){return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]))},get keys(){return Object.keys(t)},__type:{}}}r.d(t,{sA:function(){return i},aP:function(){return o},$5:function(){return a},AB:function(){return s},SG:function(){return T},TB:function(){return l},iU:function(){return c},lN:function(){return u},TJ:function(){return d},ao:function(){return h},X:function(){return f},vE:function(){return p},rk:function(){return g},wl:function(){return m},V1:function(){return v},Ji:function(){return b},Eb:function(){return y},f2:function(){return w},nY:function(){return x},q0:function(){return _},aj:function(){return C},ke:function(){return A},l1:function(){return k},nw:function(){return E},VM:function(){return S}});var i=n("accordion").parts("root","container","button","panel").extend("icon"),o=n("alert").parts("title","description","container").extend("icon","spinner"),a=n("avatar").parts("label","badge","container").extend("excessLabel","group"),s=n("breadcrumb").parts("link","item","container").extend("separator");n("button").parts();var l=n("checkbox").parts("control","icon","container").extend("label");n("progress").parts("track","filledTrack").extend("label");var c=n("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),u=n("editable").parts("preview","input","textarea"),d=n("form").parts("container","requiredIndicator","helperText"),h=n("formError").parts("text","icon"),f=n("input").parts("addon","field","element"),p=n("list").parts("container","item","icon"),g=n("menu").parts("button","list","item").extend("groupTitle","command","divider"),m=n("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),v=n("numberinput").parts("root","field","stepperGroup","stepper");n("pininput").parts("field");var b=n("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),y=n("progress").parts("label","filledTrack","track"),w=n("radio").parts("container","control","label"),x=n("select").parts("field","icon"),_=n("slider").parts("container","track","thumb","filledTrack","mark"),C=n("stat").parts("container","label","helpText","number","icon"),A=n("switch").parts("container","track","thumb"),k=n("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),E=n("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),S=n("tag").parts("container","label","closeButton"),T=n("card").parts("container","header","body","footer")},33951:function(e,t,r){"use strict";r.d(t,{AV:function(){return i},XQ:function(){return o},Yq:function(){return a}});var n=r(25432),i=Object.freeze(["base","sm","md","lg","xl","2xl"]);function o(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):(0,n.Kn)(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):null!=e?t(e):null}function a(e,t=i){let r={};return e.forEach((e,n)=>{let i=t[n];null!=e&&(r[i]=e)}),r}},89154:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(96272),i=r(35059),o=r(67294),a=r(85893),s=(0,i.G)((e,t)=>{let{icon:r,children:i,isRound:s,"aria-label":l,...c}=e,u=r||i,d=(0,o.isValidElement)(u)?(0,o.cloneElement)(u,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(n.z,{padding:"0",borderRadius:s?"full":void 0,ref:t,"aria-label":l,...c,children:d})});s.displayName="IconButton"},17215:function(e,t,r){"use strict";r.d(t,{D:function(){return n},i:function(){return i}});var[n,i]=(0,r(55227).k)({strict:!1,name:"ButtonGroupContext"})},96272:function(e,t,r){"use strict";r.d(t,{z:function(){return g}});var n=r(67294),i=r(17215),o=r(75350),a=r(25432),s=r(85893);function l(e){let{children:t,className:r,...i}=e,l=(0,n.isValidElement)(t)?(0,n.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,c=(0,a.cx)("chakra-button__icon",r);return(0,s.jsx)(o.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:c,children:l})}l.displayName="ButtonIcon";var c=r(295);function u(e){let{label:t,placement:r,spacing:i="0.5rem",children:l=(0,s.jsx)(c.$,{color:"currentColor",width:"1em",height:"1em"}),className:u,__css:d,...h}=e,f=(0,a.cx)("chakra-button__spinner",u),p="start"===r?"marginEnd":"marginStart",g=(0,n.useMemo)(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[p]:t?i:0,fontSize:"1em",lineHeight:"normal",...d}),[d,t,p,i]);return(0,s.jsx)(o.m.div,{className:f,...h,__css:g,children:l})}u.displayName="ButtonSpinner";var d=r(81103),h=r(35059),f=r(91639),p=r(33179),g=(0,h.G)((e,t)=>{let r=(0,i.i)(),l=(0,f.mq)("Button",{...r,...e}),{isDisabled:c=null==r?void 0:r.isDisabled,isLoading:h,isActive:g,children:v,leftIcon:b,rightIcon:y,loadingText:w,iconSpacing:x="0.5rem",type:_,spinner:C,spinnerPlacement:A="start",className:k,as:E,...S}=(0,p.Lr)(e),T=(0,n.useMemo)(()=>{let e={...null==l?void 0:l._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...l,...!!r&&{_focus:e}}},[l,r]),{ref:I,type:P}=function(e){let[t,r]=(0,n.useState)(!e);return{ref:(0,n.useCallback)(e=>{e&&r("BUTTON"===e.tagName)},[]),type:t?"button":void 0}}(E),O={rightIcon:y,leftIcon:b,iconSpacing:x,children:v};return(0,s.jsxs)(o.m.button,{ref:(0,d.qq)(t,I),as:E,type:null!=_?_:P,"data-active":(0,a.PB)(g),"data-loading":(0,a.PB)(h),__css:T,className:(0,a.cx)("chakra-button",k),...S,disabled:c||h,children:[h&&"start"===A&&(0,s.jsx)(u,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:x,children:C}),h?w||(0,s.jsx)(o.m.span,{opacity:0,children:(0,s.jsx)(m,{...O})}):(0,s.jsx)(m,{...O}),h&&"end"===A&&(0,s.jsx)(u,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:x,children:C})]})});function m(e){let{leftIcon:t,rightIcon:r,children:n,iconSpacing:i}=e;return(0,s.jsxs)(s.Fragment,{children:[t&&(0,s.jsx)(l,{marginEnd:i,children:t}),n,r&&(0,s.jsx)(l,{marginStart:i,children:r})]})}g.displayName="Button"},67562:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(67294),i=r(25432),o=r(81103);function a(e){let{tagName:t,isContentEditable:r}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==r}function s(e={}){let{ref:t,isDisabled:r,isFocusable:s,clickOnEnter:l=!0,clickOnSpace:c=!0,onMouseDown:u,onMouseUp:d,onClick:h,onKeyDown:f,onKeyUp:p,tabIndex:g,onMouseOver:m,onMouseLeave:v,...b}=e,[y,w]=(0,n.useState)(!0),[x,_]=(0,n.useState)(!1),C=function(){let e=(0,n.useRef)(new Map),t=e.current,r=(0,n.useCallback)((t,r,n,i)=>{e.current.set(n,{type:r,el:t,options:i}),t.addEventListener(r,n,i)},[]),i=(0,n.useCallback)((t,r,n,i)=>{t.removeEventListener(r,n,i),e.current.delete(n)},[]);return(0,n.useEffect)(()=>()=>{t.forEach((e,t)=>{i(e.el,e.type,t,e.options)})},[i,t]),{add:r,remove:i}}(),A=y?g:g||0,k=r&&!s,E=(0,n.useCallback)(e=>{if(r){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==h||h(e)},[r,h]),S=(0,n.useCallback)(e=>{x&&a(e)&&(e.preventDefault(),e.stopPropagation(),_(!1),C.remove(document,"keyup",S,!1))},[x,C]),T=(0,n.useCallback)(e=>{if(null==f||f(e),r||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||y)return;let t=l&&"Enter"===e.key;c&&" "===e.key&&(e.preventDefault(),_(!0)),t&&(e.preventDefault(),e.currentTarget.click()),C.add(document,"keyup",S,!1)},[r,y,f,l,c,C,S]),I=(0,n.useCallback)(e=>{null==p||p(e),!r&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!y&&c&&" "===e.key&&(e.preventDefault(),_(!1),e.currentTarget.click())},[c,y,r,p]),P=(0,n.useCallback)(e=>{0===e.button&&(_(!1),C.remove(document,"mouseup",P,!1))},[C]),O=(0,n.useCallback)(e=>{if(0===e.button){if(r){e.stopPropagation(),e.preventDefault();return}y||_(!0),e.currentTarget.focus({preventScroll:!0}),C.add(document,"mouseup",P,!1),null==u||u(e)}},[r,y,u,C,P]),R=(0,n.useCallback)(e=>{0===e.button&&(y||_(!1),null==d||d(e))},[d,y]),M=(0,n.useCallback)(e=>{if(r){e.preventDefault();return}null==m||m(e)},[r,m]),N=(0,n.useCallback)(e=>{x&&(e.preventDefault(),_(!1)),null==v||v(e)},[x,v]),j=(0,o.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!1)});return y?{...b,ref:j,type:"button","aria-disabled":k?void 0:r,disabled:k,onClick:E,onMouseDown:u,onMouseUp:d,onKeyUp:p,onKeyDown:f,onMouseOver:m,onMouseLeave:v}:{...b,ref:j,role:"button","data-active":(0,i.PB)(x),"aria-disabled":r?"true":void 0,tabIndex:k?void 0:A,onClick:E,onMouseDown:O,onMouseUp:R,onKeyUp:I,onKeyDown:T,onMouseOver:M,onMouseLeave:N}}},86989:function(e,t,r){"use strict";r.d(t,{P:function(){return u}});var n=r(56877),i=r(35059),o=r(91639),a=r(33179),s=r(75350),l=r(85893);function c(e){return(0,l.jsx)(n.J,{focusable:"false","aria-hidden":!0,...e,children:(0,l.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var u=(0,i.G)(function(e,t){let r=(0,o.mq)("CloseButton",e),{children:n,isDisabled:i,__css:u,...d}=(0,a.Lr)(e);return(0,l.jsx)(s.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...u},...d,children:n||(0,l.jsx)(c,{width:"1em",height:"1em"})})});u.displayName="CloseButton"},13272:function(e,t,r){"use strict";r.d(t,{SG:function(){return d},t7:function(){return h},iJ:function(){return f}});var n=r(12498),i={light:"chakra-ui-light",dark:"chakra-ui-dark"},o=r(38705),a=r(26245),s=r(67294),l=r(85893),c=()=>{};function u(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function d(e){let{value:t,children:r,options:{useSystemColorMode:d,initialColorMode:h,disableTransitionOnChange:f}={},colorModeManager:p=o.aN}=e,g="dark"===h?"dark":"light",[m,v]=(0,s.useState)(()=>u(p,g)),[b,y]=(0,s.useState)(()=>u(p)),{getSystemTheme:w,setClassName:x,setDataset:_,addListener:C}=(0,s.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?i.dark:i.light),document.body.classList.remove(e?i.light:i.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=r.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:f}),[f]),A="system"!==h||m?m:b,k=(0,s.useCallback)(e=>{let t="system"===e?w():e;v(t),x("dark"===t),_(t),p.set(t)},[p,w,x,_]);(0,a.G)(()=>{"system"===h&&y(w())},[]),(0,s.useEffect)(()=>{let e=p.get();if(e){k(e);return}if("system"===h){k("system");return}k(g)},[p,g,h,k]);let E=(0,s.useCallback)(()=>{k("dark"===A?"light":"dark")},[A,k]);(0,s.useEffect)(()=>{if(d)return C(k)},[d,C,k]);let S=(0,s.useMemo)(()=>({colorMode:null!=t?t:A,toggleColorMode:t?c:E,setColorMode:t?c:k,forced:void 0!==t}),[A,E,k,t]);return(0,l.jsx)(n.kc.Provider,{value:S,children:r})}function h(e){let t=(0,s.useMemo)(()=>({colorMode:"dark",toggleColorMode:c,setColorMode:c,forced:!0}),[]);return(0,l.jsx)(n.kc.Provider,{value:t,...e})}function f(e){let t=(0,s.useMemo)(()=>({colorMode:"light",toggleColorMode:c,setColorMode:c,forced:!0}),[]);return(0,l.jsx)(n.kc.Provider,{value:t,...e})}d.displayName="ColorModeProvider",h.displayName="DarkMode",f.displayName="LightMode"},12498:function(e,t,r){"use strict";r.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var n=r(67294),i=(0,n.createContext)({});function o(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}function a(e,t){let{colorMode:r}=o();return"dark"===r?t:e}i.displayName="ColorModeContext"},38705:function(e,t,r){"use strict";r.d(t,{Ty:function(){return s},aN:function(){return i}});var n="chakra-ui-color-mode",i={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(n)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(n,e)}catch(e){}}};function o(e,t){let r=e.match(RegExp(`(^| )${t}=([^;]+)`));return null==r?void 0:r[2]}function a(e,t){return{ssr:!!t,type:"cookie",get:r=>t?o(t,e):(null==globalThis?void 0:globalThis.document)&&o(document.cookie,e)||r,set(t){document.cookie=`${e}=${t}; max-age=31536000; path=/`}}}a(n);var s=e=>a(n,e)},73614:function(e,t,r){"use strict";r.d(t,{n:function(){return b}});var n=r(67294),i=Object.defineProperty,o=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r);function s(e){return e.sort((e,t)=>{let r=e.compareDocumentPosition(t);if(r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(r&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var l=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function c(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function u(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}var d="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,h=e=>e,f=class{constructor(){a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return l(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=s(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>{this.descendants.forEach(t=>{let r=e.indexOf(t.node);t.index=r,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,r;return e&&null!=(r=null==(t=this.descendants.get(e))?void 0:t.index)?r:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",(e,t=!0)=>{let r=c(e,this.count(),t);return this.item(r)}),a(this,"nextEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=c(this.enabledIndexOf(r.node),this.enabledCount(),t);return this.enabledItem(n)}),a(this,"prev",(e,t=!0)=>{let r=u(e,this.count()-1,t);return this.item(r)}),a(this,"prevEnabled",(e,t=!0)=>{let r=this.item(e);if(!r)return;let n=u(this.enabledIndexOf(r.node),this.enabledCount()-1,t);return this.enabledItem(n)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let r=s(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let n={node:e,index:-1,...t};this.descendants.set(e,n),this.assignIndex(r)})}},p=r(55227),g=r(81103),[m,v]=(0,p.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function b(){return[h(m),()=>h(v()),()=>(function(){let e=(0,n.useRef)(new f);return d(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=v(),[r,i]=(0,n.useState)(-1),o=(0,n.useRef)(null);d(()=>()=>{o.current&&t.unregister(o.current)},[]),d(()=>{if(!o.current)return;let e=Number(o.current.dataset.index);r==e||Number.isNaN(e)||i(e)});let a=e?h(t.register(e)):h(t.register);return{descendants:t,index:r,enabledIndex:t.enabledIndexOf(o.current),register:(0,g.lq)(a,o)}})(e)]}},61735:function(e,t,r){"use strict";function n(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function i(e){var t;if(!n(e))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}function o(e){var t,r;return null!=(r=null==(t=a(e))?void 0:t.defaultView)?r:window}function a(e){return n(e)?e.ownerDocument:document}function s(e){return a(e).activeElement}r.d(t,{Re:function(){return i},kR:function(){return o},vY:function(){return s}})},59136:function(e,t,r){"use strict";r.d(t,{EB:function(){return a},Wq:function(){return s}});var n=r(61735),i=e=>e.hasAttribute("tabindex"),o=e=>i(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,n.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:r}=e;if(["input","select","textarea","button"].indexOf(r)>=0)return!0;let o={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return r in o?o[r]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||i(e)}function s(e){return!!e&&(0,n.Re)(e)&&a(e)&&!o(e)}},42657:function(e,t,r){"use strict";r.d(t,{t5:function(){return o}});var n=r(59136),i=e=>e.offsetWidth>0&&e.offsetHeight>0;function o(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,n.EB)(e)&&i(e))}},70654:function(e,t,r){"use strict";r.d(t,{NI:function(){return m},NJ:function(){return g},e:function(){return f}});var n=r(55227),i=r(81103),o=r(35059),a=r(91639),s=r(33179),l=r(75350),c=r(25432),u=r(67294),d=r(85893),[h,f]=(0,n.k)({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[p,g]=(0,n.k)({strict:!1,name:"FormControlContext"}),m=(0,o.G)(function(e,t){let r=(0,a.jC)("Form",e),{getRootProps:n,htmlProps:o,...f}=function(e){let{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:a,...s}=e,l=(0,u.useId)(),d=t||`field-${l}`,h=`${d}-label`,f=`${d}-feedback`,p=`${d}-helptext`,[g,m]=(0,u.useState)(!1),[v,b]=(0,u.useState)(!1),[y,w]=(0,u.useState)(!1),x=(0,u.useCallback)((e={},t=null)=>({id:p,...e,ref:(0,i.lq)(t,e=>{e&&b(!0)})}),[p]),_=(0,u.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":(0,c.PB)(y),"data-disabled":(0,c.PB)(o),"data-invalid":(0,c.PB)(n),"data-readonly":(0,c.PB)(a),id:void 0!==e.id?e.id:h,htmlFor:void 0!==e.htmlFor?e.htmlFor:d}),[d,o,y,n,a,h]),C=(0,u.useCallback)((e={},t=null)=>({id:f,...e,ref:(0,i.lq)(t,e=>{e&&m(!0)}),"aria-live":"polite"}),[f]),A=(0,u.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group"}),[s]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!a,isDisabled:!!o,isFocused:!!y,onFocus:()=>w(!0),onBlur:()=>w(!1),hasFeedbackText:g,setHasFeedbackText:m,hasHelpText:v,setHasHelpText:b,id:d,labelId:h,feedbackId:f,helpTextId:p,htmlProps:s,getHelpTextProps:x,getErrorMessageProps:C,getRootProps:A,getLabelProps:_,getRequiredIndicatorProps:(0,u.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[])}}((0,s.Lr)(e)),g=(0,c.cx)("chakra-form-control",e.className);return(0,d.jsx)(p,{value:f,children:(0,d.jsx)(h,{value:r,children:(0,d.jsx)(l.m.div,{...n({},t),className:g,__css:r.container})})})});m.displayName="FormControl",(0,o.G)(function(e,t){let r=g(),n=f(),i=(0,c.cx)("chakra-form__helper-text",e.className);return(0,d.jsx)(l.m.div,{...null==r?void 0:r.getHelpTextProps(e,t),__css:n.helperText,className:i})}).displayName="FormHelperText"},74939:function(e,t,r){"use strict";r.d(t,{K:function(){return a},Y:function(){return o}});var n=r(70654),i=r(25432);function o(e){let{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=a(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":(0,i.Qm)(r),"aria-required":(0,i.Qm)(o),"aria-readonly":(0,i.Qm)(n)}}function a(e){var t,r,o;let a=(0,n.NJ)(),{id:s,disabled:l,readOnly:c,required:u,isRequired:d,isInvalid:h,isReadOnly:f,isDisabled:p,onFocus:g,onBlur:m,...v}=e,b=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==a?void 0:a.hasFeedbackText)&&(null==a?void 0:a.isInvalid)&&b.push(a.feedbackId),(null==a?void 0:a.hasHelpText)&&b.push(a.helpTextId),{...v,"aria-describedby":b.join(" ")||void 0,id:null!=s?s:null==a?void 0:a.id,isDisabled:null!=(t=null!=l?l:p)?t:null==a?void 0:a.isDisabled,isReadOnly:null!=(r=null!=c?c:f)?r:null==a?void 0:a.isReadOnly,isRequired:null!=(o=null!=u?u:d)?o:null==a?void 0:a.isRequired,isInvalid:null!=h?h:null==a?void 0:a.isInvalid,onFocus:(0,i.v0)(null==a?void 0:a.onFocus,g),onBlur:(0,i.v0)(null==a?void 0:a.onBlur,m)}}},70385:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(67294);function i(e=!1){let[t,r]=(0,n.useState)(e);return[t,(0,n.useMemo)(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(e=>!e)}),[])]}},62723:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(67294),i=r(97725),o=r(36597);function a(e={}){let{onClose:t,onOpen:r,isOpen:a,id:s}=e,l=(0,i.W)(r),c=(0,i.W)(t),[u,d]=(0,n.useState)(e.defaultIsOpen||!1),[h,f]=function(e,t){let r=void 0!==e;return[r,r&&void 0!==e?e:t]}(a,u),p=function(e,t){let r=(0,n.useId)();return(0,n.useMemo)(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}(s,"disclosure"),g=(0,n.useCallback)(()=>{h||d(!1),null==c||c()},[h,c]),m=(0,n.useCallback)(()=>{h||d(!0),null==l||l()},[h,l]),v=(0,n.useCallback)(()=>{(f?g:m)()},[f,m,g]);return{isOpen:!!f,onOpen:m,onClose:g,onToggle:v,isControlled:h,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":p,onClick:(0,o.v0)(e.onClick,v)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:p})}}},40156:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});var n=r(67294),i=r(20640);function o(e,t={}){let[r,o]=(0,n.useState)(!1),[a,s]=(0,n.useState)(e);(0,n.useEffect)(()=>s(e),[e]);let{timeout:l=1500,...c}="number"==typeof t?{timeout:t}:t,u=(0,n.useCallback)(()=>{o(i(a,c))},[a,c]);return(0,n.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{o(!1)},l)),()=>{e&&window.clearTimeout(e)}},[l,r]),{value:a,setValue:s,onCopy:u,hasCopied:r}}},11293:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=r(97725),i=r(81982),o=r(67294);function a(e){let{ref:t,handler:r,enabled:a=!0}=e,l=(0,n.W)(r),c=(0,o.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,o.useEffect)(()=>{if(!a)return;let e=e=>{s(e,t)&&(c.isPointerDown=!0)},n=e=>{if(c.ignoreEmulatedMouseEvents){c.ignoreEmulatedMouseEvents=!1;return}c.isPointerDown&&r&&s(e,t)&&(c.isPointerDown=!1,l(e))},o=e=>{c.ignoreEmulatedMouseEvents=!0,r&&c.isPointerDown&&s(e,t)&&(c.isPointerDown=!1,l(e))},u=(0,i.lZ)(t.current);return u.addEventListener("mousedown",e,!0),u.addEventListener("mouseup",n,!0),u.addEventListener("touchstart",e,!0),u.addEventListener("touchend",o,!0),()=>{u.removeEventListener("mousedown",e,!0),u.removeEventListener("mouseup",n,!0),u.removeEventListener("touchstart",e,!0),u.removeEventListener("touchend",o,!0)}},[r,t,l,c,a])}function s(e,t){var r;let n=e.target;return(!n||!!(0,i.lZ)(n).contains(n))&&!(null==(r=t.current)?void 0:r.contains(n))}},97725:function(e,t,r){"use strict";r.d(t,{W:function(){return a}});var n=r(81982),i=r(67294),o=n.jU?i.useLayoutEffect:i.useEffect;function a(e,t=[]){let r=(0,i.useRef)(e);return o(()=>{r.current=e}),(0,i.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},56877:function(e,t,r){"use strict";r.d(t,{J:function(){return c},K:function(){return u}});var n=r(35059),i=r(91639),o=r(75350),a=r(25432),s=r(85893),l={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},c=(0,n.G)((e,t)=>{let{as:r,viewBox:n,color:c="currentColor",focusable:u=!1,children:d,className:h,__css:f,...p}=e,g=(0,a.cx)("chakra-icon",h),m=(0,i.mq)("Icon",e),v={ref:t,focusable:u,className:g,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:c,...f,...m}},b=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.m.svg,{as:r,...v,...p});let y=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:b,...v,...p,children:y})});c.displayName="Icon";var u=c},84416:function(e,t,r){"use strict";r.d(t,{E:function(){return u}});var n=r(35059),i=r(85893),o=(0,n.G)(function(e,t){let{htmlWidth:r,htmlHeight:n,alt:o,...a}=e;return(0,i.jsx)("img",{width:r,height:n,ref:t,alt:o,...a})});o.displayName="NativeImage";var a=r(26245),s=r(67294),l=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t,c=r(75350),u=(0,n.G)(function(e,t){let{fallbackSrc:r,fallback:n,src:u,srcSet:d,align:h,fit:f,loading:p,ignoreFallback:g,crossOrigin:m,fallbackStrategy:v="beforeLoadOrError",referrerPolicy:b,...y}=e,w=void 0!==r||void 0!==n,x=null!=p||g||!w,_=l(function(e){let{loading:t,src:r,srcSet:n,onLoad:i,onError:o,crossOrigin:l,sizes:c,ignoreFallback:u}=e,[d,h]=(0,s.useState)("pending");(0,s.useEffect)(()=>{h(r?"loading":"pending")},[r]);let f=(0,s.useRef)(),p=(0,s.useCallback)(()=>{if(!r)return;g();let e=new Image;e.src=r,l&&(e.crossOrigin=l),n&&(e.srcset=n),c&&(e.sizes=c),t&&(e.loading=t),e.onload=e=>{g(),h("loaded"),null==i||i(e)},e.onerror=e=>{g(),h("failed"),null==o||o(e)},f.current=e},[r,l,n,c,i,o,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return(0,a.G)(()=>{if(!u)return"loading"===d&&p(),()=>{g()}},[d,p,u]),u?"loaded":d}({...e,crossOrigin:m,ignoreFallback:x}),v),C={ref:t,objectFit:f,objectPosition:h,...x?y:function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(y,["onError","onLoad"])};return _?n||(0,i.jsx)(c.m.img,{as:o,className:"chakra-image__placeholder",src:r,...C}):(0,i.jsx)(c.m.img,{as:o,src:u,srcSet:d,crossOrigin:m,loading:p,referrerPolicy:b,className:"chakra-image",...C})});u.displayName="Image"},93863:function(e,t,r){"use strict";r.d(t,{B:function(){return g},m:function(){return p}});var n=r(55227),i=r(92495),o=r(35059),a=r(91639),s=r(33179),l=r(75350),c=r(25432),u=r(87052),d=r(67294),h=r(85893),[f,p]=(0,n.k)({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),g=(0,o.G)(function(e,t){let r=(0,a.jC)("Input",e),{children:n,className:o,...p}=(0,s.Lr)(e),g=(0,c.cx)("chakra-input__group",o),m={},v=(0,i.W)(n),b=r.field;v.forEach(e=>{var t,n;r&&(b&&"InputLeftElement"===e.type.id&&(m.paddingStart=null!=(t=b.height)?t:b.h),b&&"InputRightElement"===e.type.id&&(m.paddingEnd=null!=(n=b.height)?n:b.h),"InputRightAddon"===e.type.id&&(m.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(m.borderStartRadius=0))});let y=v.map(t=>{var r,n;let i=(0,u.o)({size:(null==(r=t.props)?void 0:r.size)||e.size,variant:(null==(n=t.props)?void 0:n.variant)||e.variant});return"Input"!==t.type.id?(0,d.cloneElement)(t,i):(0,d.cloneElement)(t,Object.assign(i,m,t.props))});return(0,h.jsx)(l.m.div,{className:g,ref:t,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate"},"data-group":!0,...p,children:(0,h.jsx)(f,{value:r,children:y})})});g.displayName="InputGroup"},28129:function(e,t,r){"use strict";r.d(t,{I:function(){return u}});var n=r(74939),i=r(35059),o=r(91639),a=r(33179),s=r(75350),l=r(25432),c=r(85893),u=(0,i.G)(function(e,t){let{htmlSize:r,...i}=e,u=(0,o.jC)("Input",i),d=(0,a.Lr)(i),h=(0,n.Y)(d),f=(0,l.cx)("chakra-input",e.className);return(0,c.jsx)(s.m.input,{size:r,...h,__css:u.field,ref:t,className:f})});u.displayName="Input",u.id="Input"},43775:function(e,t,r){"use strict";r.d(t,{Z:function(){return u},x:function(){return d}});var n=r(93863),i=r(75350),o=r(35059),a=r(25432),s=r(85893),l=(0,i.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),c=(0,o.G)(function(e,t){var r,i;let{placement:o="left",...a}=e,c=(0,n.m)(),u=c.field,d={["left"===o?"insetStart":"insetEnd"]:"0",width:null!=(r=null==u?void 0:u.height)?r:null==u?void 0:u.h,height:null!=(i=null==u?void 0:u.height)?i:null==u?void 0:u.h,fontSize:null==u?void 0:u.fontSize,...c.element};return(0,s.jsx)(l,{ref:t,__css:d,...a})});c.id="InputElement",c.displayName="InputElement";var u=(0,o.G)(function(e,t){let{className:r,...n}=e,i=(0,a.cx)("chakra-input__left-element",r);return(0,s.jsx)(c,{ref:t,placement:"left",className:i,...n})});u.id="InputLeftElement",u.displayName="InputLeftElement";var d=(0,o.G)(function(e,t){let{className:r,...n}=e,i=(0,a.cx)("chakra-input__right-element",r);return(0,s.jsx)(c,{ref:t,placement:"right",className:i,...n})});d.id="InputRightElement",d.displayName="InputRightElement"},7754:function(e,t,r){"use strict";r.d(t,{M:function(){return a}});var n=r(75350),i=r(35059),o=r(85893),a=(0,n.m)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});a.displayName="Center";var s={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,i.G)(function(e,t){let{axis:r="both",...i}=e;return(0,o.jsx)(n.m.div,{ref:t,__css:s[r],...i,position:"absolute"})})},31708:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});var n=r(35059),i=r(75350),o=r(85893),a=(0,n.G)(function(e,t){let{templateAreas:r,gap:n,rowGap:a,columnGap:s,column:l,row:c,autoFlow:u,autoRows:d,templateRows:h,autoColumns:f,templateColumns:p,...g}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:n,gridRowGap:a,gridColumnGap:s,gridAutoColumns:f,gridColumn:l,gridRow:c,gridAutoFlow:u,gridAutoRows:d,gridTemplateRows:h,gridTemplateColumns:p},...g})});a.displayName="Grid"},23100:function(e,t,r){"use strict";r.d(t,{Cd:function(){return l},xu:function(){return a}});var n=r(75350),i=r(35059),o=r(85893),a=(0,n.m)("div");a.displayName="Box";var s=(0,i.G)(function(e,t){let{size:r,centerContent:n=!0,...i}=e;return(0,o.jsx)(a,{ref:t,boxSize:r,__css:{...n?{display:"flex",alignItems:"center",justifyContent:"center"}:{},flexShrink:0,flexGrow:0},...i})});s.displayName="Square";var l=(0,i.G)(function(e,t){let{size:r,...n}=e;return(0,o.jsx)(s,{size:r,ref:t,borderRadius:"9999px",...n})});l.displayName="Circle"},14418:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var n=r(35059),i=r(91639),o=r(33179),a=r(75350),s=r(25432),l=r(85893),c=(0,n.G)(function(e,t){let r=(0,i.mq)("Heading",e),{className:n,...c}=(0,o.Lr)(e);return(0,l.jsx)(a.m.h2,{ref:t,className:(0,s.cx)("chakra-heading",e.className),...c,__css:r})});c.displayName="Heading"},204:function(e,t,r){"use strict";r.d(t,{k:function(){return a}});var n=r(35059),i=r(75350),o=r(85893),a=(0,n.G)(function(e,t){let{direction:r,align:n,justify:a,wrap:s,basis:l,grow:c,shrink:u,...d}=e;return(0,o.jsx)(i.m.div,{ref:t,__css:{display:"flex",flexDirection:r,alignItems:n,justifyContent:a,flexWrap:s,flexBasis:l,flexGrow:c,flexShrink:u},...d})});a.displayName="Flex"},9140:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(75350),i=r(85893),o=e=>(0,i.jsx)(n.m.div,{className:"chakra-stack__divider",...e,__css:{...e.__css,borderWidth:0,alignSelf:"stretch",borderColor:"inherit",width:"auto",height:"auto"}});o.displayName="StackDivider"},24804:function(e,t,r){"use strict";r.d(t,{U:function(){return a}});var n=r(96118),i=r(35059),o=r(85893),a=(0,i.G)((e,t)=>(0,o.jsx)(n.K,{align:"center",...e,direction:"row",ref:t}));a.displayName="HStack"},88911:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(35059),i=r(91639),o=r(33179),a=r(75350),s=r(25432),l=r(87052),c=r(85893),u=(0,n.G)(function(e,t){let r=(0,i.mq)("Text",e),{className:n,align:u,decoration:d,casing:h,...f}=(0,o.Lr)(e),p=(0,l.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,c.jsx)(a.m.p,{ref:t,className:(0,s.cx)("chakra-text",e.className),...p,...f,__css:r})});u.displayName="Text"},90634:function(e,t,r){"use strict";r.d(t,{g:function(){return a}});var n=r(96118),i=r(35059),o=r(85893),a=(0,i.G)((e,t)=>(0,o.jsx)(n.K,{align:"center",...e,direction:"column",ref:t}));a.displayName="VStack"},96118:function(e,t,r){"use strict";r.d(t,{K:function(){return d}});var n=r(75350),i=r(85893),o=e=>(0,i.jsx)(n.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=r(33951),s=r(92495),l=r(25432),c=r(35059),u=r(67294),d=(0,c.G)((e,t)=>{let{isInline:r,direction:c,align:d,justify:h,spacing:f="0.5rem",wrap:p,children:g,divider:m,className:v,shouldWrapChildren:b,...y}=e,w=r?"row":null!=c?c:"column",x=(0,u.useMemo)(()=>(function(e){let{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.XQ)(r,e=>n[e])}})({spacing:f,direction:w}),[f,w]),_=!!m,C=!b&&!_,A=(0,u.useMemo)(()=>{let e=(0,s.W)(g);return C?e:e.map((t,r)=>{let n=void 0!==t.key?t.key:r,a=r+1===e.length,s=(0,i.jsx)(o,{children:t},n),l=b?s:t;if(!_)return l;let c=(0,u.cloneElement)(m,{__css:x});return(0,i.jsxs)(u.Fragment,{children:[l,a?null:c]},n)})},[m,x,_,C,b,g]),k=(0,l.cx)("chakra-stack",v);return(0,i.jsx)(n.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:h,flexDirection:w,flexWrap:p,gap:_?void 0:f,className:k,...y,children:A})});d.displayName="Stack"},97822:function(e,t,r){"use strict";r.d(t,{i:function(){return c}});var n=r(35059),i=r(91639),o=r(33179),a=r(75350),s=r(25432),l=r(85893),c=(0,n.G)(function(e,t){let{borderLeftWidth:r,borderBottomWidth:n,borderTopWidth:c,borderRightWidth:u,borderWidth:d,borderStyle:h,borderColor:f,...p}=(0,i.mq)("Divider",e),{className:g,orientation:m="horizontal",__css:v,...b}=(0,o.Lr)(e);return(0,l.jsx)(a.m.hr,{ref:t,"aria-orientation":m,...b,__css:{...p,border:"0",borderColor:f,borderStyle:h,...{vertical:{borderLeftWidth:r||u||d||"1px",height:"100%"},horizontal:{borderBottomWidth:n||c||d||"1px",width:"100%"}}[m],...v},className:(0,s.cx)("chakra-divider",g)})});c.displayName="Divider"},33838:function(e,t,r){"use strict";r.d(t,{r:function(){return c}});var n=r(35059),i=r(91639),o=r(33179),a=r(75350),s=r(25432),l=r(85893),c=(0,n.G)(function(e,t){let r=(0,i.mq)("Link",e),{className:n,isExternal:c,...u}=(0,o.Lr)(e);return(0,l.jsx)(a.m.a,{target:c?"_blank":void 0,rel:c?"noopener":void 0,ref:t,className:(0,s.cx)("chakra-link",n),...u,__css:r})});c.displayName="Link"},5197:function(e,t,r){"use strict";r.d(t,{GS:function(){return p},HC:function(){return g},aV:function(){return f}});var n=r(56877),i=r(55227),o=r(92495),a=r(35059),s=r(91639),l=r(33179),c=r(75350),u=r(85893),[d,h]=(0,i.k)({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<List />\" "}),f=(0,a.G)(function(e,t){let r=(0,s.jC)("List",e),{children:n,styleType:i="none",stylePosition:a,spacing:h,...f}=(0,l.Lr)(e),p=(0,o.W)(n);return(0,u.jsx)(d,{value:r,children:(0,u.jsx)(c.m.ul,{ref:t,listStyleType:i,listStylePosition:a,role:"list",__css:{...r.container,...h?{"& > *:not(style) ~ *:not(style)":{mt:h}}:{}},...f,children:p})})});f.displayName="List";var p=(0,a.G)((e,t)=>{let{as:r,...n}=e;return(0,u.jsx)(f,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});p.displayName="OrderedList",(0,a.G)(function(e,t){let{as:r,...n}=e;return(0,u.jsx)(f,{ref:t,as:"ul",styleType:"initial",marginStart:"1em",...n})}).displayName="UnorderedList";var g=(0,a.G)(function(e,t){let r=h();return(0,u.jsx)(c.m.li,{ref:t,...e,__css:r.item})});g.displayName="ListItem",(0,a.G)(function(e,t){let r=h();return(0,u.jsx)(n.J,{ref:t,role:"presentation",...e,__css:r.icon})}).displayName="ListIcon"},92625:function(e,t,r){"use strict";function n(e){let{wasSelected:t,enabled:r,isSelected:n,mode:i="unmount"}=e;return!r||!!n||"keepMounted"===i&&!!t}r.d(t,{k:function(){return n}})},63343:function(e,t,r){"use strict";r.d(t,{S:function(){return s}});var n=r(33951),i=r(4453),o=r(75119),a=r(25432);function s(e,t){var r;let s=function(e){var t,r;let n=(0,a.Kn)(e)?e:{fallback:null!=e?e:"base"},s=(0,o.F)().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),l=s.map(e=>e.breakpoint===n.fallback),c=(0,i.a)(s.map(e=>e.query),{fallback:l,ssr:n.ssr}).findIndex(e=>!0==e);return null!=(r=null==(t=s[c])?void 0:t.breakpoint)?r:n.fallback}((0,a.Kn)(t)?t:{fallback:null!=t?t:"base"}),l=(0,o.F)();if(!s)return;let c=Array.from((null==(r=l.__breakpoints)?void 0:r.keys)||[]);return function(e,t,r=n.AV){let i=Object.keys(e).indexOf(t);if(-1!==i)return e[t];let o=r.indexOf(t);for(;o>=0;){let t=r[o];if(e.hasOwnProperty(t)){i=o;break}o-=1}if(-1!==i)return e[r[i]]}(Array.isArray(e)?Object.fromEntries(Object.entries((0,n.Yq)(e,c)).map(([e,t])=>[e,t])):e,s,c)}},4453:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(81607),i=r(67294);function o(e,t={}){let{ssr:r=!0,fallback:o}=t,{getWindow:a}=(0,n.O)(),s=Array.isArray(e)?e:[e],l=Array.isArray(o)?o:[o];l=l.filter(e=>null!=e);let[c,u]=(0,i.useState)(()=>s.map((e,t)=>({media:e,matches:r?!!l[t]:a().matchMedia(e).matches})));return(0,i.useEffect)(()=>{let e=a();u(s.map(t=>({media:t,matches:e.matchMedia(t).matches})));let t=s.map(t=>e.matchMedia(t)),r=e=>{u(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(r):e.addEventListener("change",r)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(r):e.removeEventListener("change",r)})}},[a]),c.map(e=>e.matches)}},2999:function(e,t,r){"use strict";r.d(t,{s:function(){return b}});var n=r(92716),i=r(65085),o=r(34151),a=r(25432),s=r(75350),l=r(35059),c=r(99155),u=r(21190),d=r(24262),h=r(67294),f=r(85893),p={exit:{duration:.15,ease:c.Lj.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},g={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;let{exit:o}=(0,c.js)({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:c.p$.exit(p.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;let{enter:o}=(0,c.js)({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:c.p$.enter(p.enter,n),transitionEnd:null==t?void 0:t.enter}}},m=(0,h.forwardRef)(function(e,t){let{direction:r="right",style:n,unmountOnExit:i,in:o,className:s,transition:l,transitionEnd:h,delay:p,motionProps:m,...v}=e,b=Object.assign({position:"fixed"},(0,c.js)({direction:r}).position,n),y=!i||o&&i,w=o||i?"enter":"exit",x={transitionEnd:h,transition:l,direction:r,delay:p};return(0,f.jsx)(u.M,{custom:x,children:y&&(0,f.jsx)(d.E.div,{...v,ref:t,initial:"exit",className:(0,a.cx)("chakra-slide",s),animate:w,exit:"exit",custom:x,variants:g,style:b,...m})})});m.displayName="Slide";var v=(0,s.m)(m),b=(0,l.G)((e,t)=>{let{className:r,children:l,motionProps:c,containerProps:u,...d}=e,{getDialogProps:h,getDialogContainerProps:p,isOpen:g}=(0,o.vR)(),m=h(d,t),b=p(u),y=(0,a.cx)("chakra-modal__content",r),w=(0,o.I_)(),x={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...w.dialog},_={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...w.dialogContainer},{placement:C}=(0,n.M)();return(0,f.jsx)(i.M,{children:(0,f.jsx)(s.m.div,{...b,className:"chakra-modal__content-container",__css:_,children:(0,f.jsx)(v,{motionProps:c,direction:C,in:g,className:y,...m,__css:x,children:l})})})});b.displayName="DrawerContent"},34151:function(e,t,r){"use strict";r.d(t,{u_:function(){return C},vR:function(){return _},I_:function(){return w}});var n=r(79437),i=r(25432),o=r(81103),a=new WeakMap,s=new WeakMap,l={},c=0,u=function(e){return e&&(e.host||u(e.parentNode))},d=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=u(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});l[r]||(l[r]=new WeakMap);var o=l[r],d=[],h=new Set,f=new Set(i),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};i.forEach(p);var g=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))g(e);else{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(a.get(e)||0)+1,c=(o.get(e)||0)+1;a.set(e,l),o.set(e,c),d.push(e),1===l&&i&&s.set(e,!0),1===c&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}})};return g(t),h.clear(),c++,function(){d.forEach(function(e){var t=a.get(e)-1,i=o.get(e)-1;a.set(e,t),o.set(e,i),t||(s.has(e)||e.removeAttribute(n),s.delete(e)),i||e.removeAttribute(r)}),--c||(a=new WeakMap,a=new WeakMap,s=new WeakMap,l={})}},h=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),d(n,i,r,"aria-hidden")):function(){return null}},f=r(67294),p=r(49598),g=r(55227),m=r(91639),v=r(21190),b=r(85893),[y,w]=(0,g.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[x,_]=(0,g.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),C=e=>{let t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:r,children:a,autoFocus:s,trapFocus:l,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:d,blockScrollOnMount:g,allowPinchZoom:w,preserveScrollBarGap:_,motionPreset:C,lockFocusAcrossFrames:A,onCloseComplete:k}=t,E=(0,m.jC)("Modal",t),S={...function(e){let{isOpen:t,onClose:r,id:a,closeOnOverlayClick:s=!0,closeOnEsc:l=!0,useInert:c=!0,onOverlayClick:u,onEsc:d}=e,p=(0,f.useRef)(null),g=(0,f.useRef)(null),[m,v,b]=function(e,...t){let r=(0,f.useId)(),n=e||r;return(0,f.useMemo)(()=>t.map(e=>`${e}-${n}`),[n,t])}(a,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(e,t){let r=e.current;(0,f.useEffect)(()=>{if(e.current&&t)return h(e.current)},[t,e,r])}(p,t&&c);let y=(0,n.$)(p,t),w=(0,f.useRef)(null),x=(0,f.useCallback)(e=>{w.current=e.target},[]),_=(0,f.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),l&&(null==r||r()),null==d||d())},[l,r,d]),[C,A]=(0,f.useState)(!1),[k,E]=(0,f.useState)(!1),S=(0,f.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.lq)(t,p),id:m,tabIndex:-1,"aria-modal":!0,"aria-labelledby":C?v:void 0,"aria-describedby":k?b:void 0,onClick:(0,i.v0)(e.onClick,e=>e.stopPropagation())}),[b,k,m,v,C]),T=(0,f.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&n.m.isTopModal(p.current)&&(s&&(null==r||r()),null==u||u())},[r,s,u]),I=(0,f.useCallback)((e={},t=null)=>({...e,ref:(0,o.lq)(t,g),onClick:(0,i.v0)(e.onClick,T),onKeyDown:(0,i.v0)(e.onKeyDown,_),onMouseDown:(0,i.v0)(e.onMouseDown,x)}),[_,x,T]);return{isOpen:t,onClose:r,headerId:v,bodyId:b,setBodyMounted:E,setHeaderMounted:A,dialogRef:p,overlayRef:g,getDialogProps:S,getDialogContainerProps:I,index:y}}(t),autoFocus:s,trapFocus:l,initialFocusRef:c,finalFocusRef:u,returnFocusOnClose:d,blockScrollOnMount:g,allowPinchZoom:w,preserveScrollBarGap:_,motionPreset:C,lockFocusAcrossFrames:A};return(0,b.jsx)(x,{value:S,children:(0,b.jsx)(y,{value:E,children:(0,b.jsx)(v.M,{onExitComplete:k,children:S.isOpen&&(0,b.jsx)(p.h,{...r,children:a})})})})};C.displayName="Modal"},65291:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var n=r(34151),i=r(25432),o=r(75350),a=r(35059),s=r(99155),l=r(21190),c=r(24262),u=r(67294),d=r(85893),h={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:1,transition:null!=(n=null==e?void 0:e.enter)?n:s.p$.enter(s.Sh.enter,r),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:r}={})=>{var n;return{opacity:0,transition:null!=(n=null==e?void 0:e.exit)?n:s.p$.exit(s.Sh.exit,r),transitionEnd:null==t?void 0:t.exit}}}};(0,u.forwardRef)(function(e,t){let{unmountOnExit:r,in:n,className:o,transition:a,transitionEnd:s,delay:u,...f}=e,p=n||r?"enter":"exit",g=!r||n&&r,m={transition:a,transitionEnd:s,delay:u};return(0,d.jsx)(l.M,{custom:m,children:g&&(0,d.jsx)(c.E.div,{ref:t,className:(0,i.cx)("chakra-fade",o),custom:m,...h,animate:p,...f})})}).displayName="Fade";var f=(0,o.m)(c.E.div),p=(0,a.G)((e,t)=>{let{className:r,transition:o,motionProps:a,...s}=e,l=(0,i.cx)("chakra-modal__overlay",r),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,n.I_)().overlay},{motionPreset:u}=(0,n.vR)(),p="none"===u?{}:h;return(0,d.jsx)(f,{...a||p,__css:c,ref:t,className:l,...s})});p.displayName="ModalOverlay"},56880:function(e,t,r){"use strict";r.d(t,{f:function(){return c}});var n=r(34151),i=r(25432),o=r(35059),a=r(75350),s=r(67294),l=r(85893),c=(0,o.G)((e,t)=>{let{className:r,...o}=e,{bodyId:c,setBodyMounted:u}=(0,n.vR)();(0,s.useEffect)(()=>(u(!0),()=>u(!1)),[u]);let d=(0,i.cx)("chakra-modal__body",r),h=(0,n.I_)();return(0,l.jsx)(a.m.div,{ref:t,className:d,id:c,...o,__css:h.body})});c.displayName="ModalBody"},65085:function(e,t,r){"use strict";r.d(t,{M:function(){return tg}});var n,i,o,a,s,l=r(34151),c=r(79437),u=r(87462),d=r(67294),h="data-focus-lock",f="data-focus-lock-disabled";function p(e,t){var r,n,i;return r=t||null,n=function(t){return e.forEach(function(e){return"function"==typeof e?e(t):e&&(e.current=t),e})},(i=(0,d.useState)(function(){return{value:r,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,i.facade}var g={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},m=function(e){var t=e.children;return d.createElement(d.Fragment,null,d.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:g}),t,t&&d.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:g}))};m.propTypes={},m.defaultProps={children:null};var v=r(70655);function b(e){return e}function y(e,t){void 0===t&&(t=b);var r=[],n=!1;return{read:function(){if(n)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var i=t(e,n);return r.push(i),function(){r=r.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var i=r;r=[],i.forEach(e),t=r}var o=function(){var r=t;t=[],r.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}}function w(e,t){return void 0===t&&(t=b),y(e,t)}function x(e){void 0===e&&(e={});var t=y(null);return t.options=(0,v.__assign)({async:!0,ssr:!1},e),t}var _=w({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),C=w(),A=w(),k=x({async:!0}),E=[],S=d.forwardRef(function(e,t){var r,n=d.useState(),i=n[0],o=n[1],a=d.useRef(),s=d.useRef(!1),l=d.useRef(null),c=e.children,m=e.disabled,v=e.noFocusGuards,b=e.persistentFocus,y=e.crossFrame,w=e.autoFocus,x=(e.allowTextSelection,e.group),A=e.className,S=e.whiteList,T=e.hasPositiveIndices,I=e.shards,P=void 0===I?E:I,O=e.as,R=e.lockProps,M=e.sideCar,N=e.returnFocus,j=e.focusOptions,D=e.onActivation,B=e.onDeactivation,L=d.useState({})[0],$=d.useCallback(function(){l.current=l.current||document&&document.activeElement,a.current&&D&&D(a.current),s.current=!0},[D]),U=d.useCallback(function(){s.current=!1,B&&B(a.current)},[B]);(0,d.useEffect)(function(){m||(l.current=null)},[]);var z=d.useCallback(function(e){var t=l.current;if(t&&t.focus){var r="function"==typeof N?N(t):N;if(r){var n="object"==typeof r?r:void 0;l.current=null,e?Promise.resolve().then(function(){return t.focus(n)}):t.focus(n)}}},[N]),F=d.useCallback(function(e){s.current&&_.useMedium(e)},[]),q=C.useMedium,H=d.useCallback(function(e){a.current!==e&&(a.current=e,o(e))},[]),W=(0,u.Z)(((r={})[f]=m&&"disabled",r[h]=x,r),void 0===R?{}:R),V=!0!==v,Z=V&&"tail"!==v,G=p([t,H]);return d.createElement(d.Fragment,null,V&&[d.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:g}),T?d.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:g}):null],!m&&d.createElement(M,{id:L,sideCar:k,observed:i,disabled:m,persistentFocus:b,crossFrame:y,autoFocus:w,whiteList:S,shards:P,onActivation:$,onDeactivation:U,returnFocus:z,focusOptions:j}),d.createElement(void 0===O?"div":O,(0,u.Z)({ref:G},W,{className:A,onBlur:q,onFocus:F}),c),Z&&d.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:g}))});function T(e,t){return(T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}S.propTypes={},S.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var I=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},P=function(e){return Array.isArray(e)?e:[e]},O=function(e){return Array.isArray(e)?e[0]:e},R=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!!t&&!!t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility"))},M=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},N=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},j=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=j.bind(void 0,e),!t||N(t)||!R(t)&&r(M(t)));return e.set(t,i),i},D=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=D.bind(void 0,e),!t||!!N(t)||!!U(t)&&r(M(t)));return e.set(t,i),i},B=function(e){return e.dataset},L=function(e){return"INPUT"===e.tagName},$=function(e){return L(e)&&"radio"===e.type},U=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},z=function(e){var t;return!!(e&&(null===(t=B(e))||void 0===t?void 0:t.focusGuard))},F=function(e){return!z(e)},q=function(e){return!!e},H=function(e,t){var r=e.tabIndex-t.tabIndex,n=e.index-t.index;if(r){if(!e.tabIndex)return 1;if(!t.tabIndex)return -1}return r||n},W=function(e,t,r){return I(e).map(function(e,t){return{node:e,index:t,tabIndex:r&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!t||e.tabIndex>=0}).sort(H)},V="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",Z="".concat(V,", [data-focus-guard]"),G=function(e,t){return I((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?Z:V)?[r]:[],G(r))},[])},K=function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?Y([e.contentDocument.body],t):[e]},Y=function(e,t){return e.reduce(function(e,r){var n,i=G(r,t),o=(n=[]).concat.apply(n,i.map(function(e){return K(e,t)}));return e.concat(o,r.parentNode?I(r.parentNode.querySelectorAll(V)).filter(function(e){return e===r}):[])},[])},Q=function(e,t){return I(e).filter(function(e){return j(t,e)}).filter(function(e){return!((L(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},J=function(e,t){return void 0===t&&(t=new Map),I(e).filter(function(e){return D(t,e)})},X=function(e,t,r){return W(Q(Y(e,r),t),!0,r)},ee=function(e,t){return W(Q(Y(e),t),!1)},et=function(e,t){return e.shadowRoot?et(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||I(e.children).some(function(e){var r;if(e instanceof HTMLIFrameElement){var n=null===(r=e.contentDocument)||void 0===r?void 0:r.body;return!!n&&et(n,t)}return et(e,t)})},er=function(e){try{return e()}catch(e){return}},en=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?en(t.shadowRoot):t instanceof HTMLIFrameElement&&er(function(){return t.contentWindow.document})?en(t.contentWindow.document):t}},ei=function(e){void 0===e&&(e=document);var t=en(e);return!!t&&I(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return et(e,t)})},eo=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var i=n+1;i<r;i+=1){var o=e[n].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(e,r){return!t.has(r)})},ea=function(e){return e.parentNode?ea(e.parentNode):e},es=function(e){return P(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(h);return e.push.apply(e,r?eo(I(ea(t).querySelectorAll("[".concat(h,'="').concat(r,'"]:not([').concat(f,'="disabled"])')))):[t]),e},[])},el=function(e,t){return void 0===t&&(t=en(O(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&es(e).some(function(e){var r;return et(e,t)||(r=t,!!I(e.querySelectorAll("iframe")).some(function(e){return e===r}))})},ec=function(e,t){return $(e)&&e.name&&t.filter($).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e},eu=function(e){var t=new Set;return e.forEach(function(r){return t.add(ec(r,e))}),e.filter(function(e){return t.has(e)})},ed=function(e){return e[0]&&e.length>1?ec(e[0],e):e[0]},eh=function(e,t){return e.length>1?e.indexOf(ec(e[t],e)):t},ef="NEW_FOCUS",ep=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=z(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?t.indexOf(r):-1,c=n?t.indexOf(n):l,u=n?e.indexOf(n):-1,d=l-c,h=t.indexOf(o),f=t.indexOf(a),p=eu(t),g=(void 0!==r?p.indexOf(r):-1)-(n?p.indexOf(n):l),m=eh(e,0),v=eh(e,i-1);if(-1===l||-1===u)return ef;if(!d&&u>=0)return u;if(l<=h&&s&&Math.abs(d)>1)return v;if(l>=f&&s&&Math.abs(d)>1)return m;if(d&&Math.abs(g)>1)return u;if(l<=h)return v;if(l>f)return m;if(d)return Math.abs(d)>1?u:(i+u+d)%i}},eg=function(e,t,r){var n=J(e.map(function(e){return e.node}).filter(function(e){var t,n=null===(t=B(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0}));return n&&n.length?ed(n):ed(J(t))},em=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&em(e.parentNode.host||e.parentNode,t),t},ev=function(e,t){for(var r=em(e),n=em(t),i=0;i<r.length;i+=1){var o=r[i];if(n.indexOf(o)>=0)return o}return!1},eb=function(e,t,r){var n=P(e),i=P(t),o=n[0],a=!1;return i.filter(Boolean).forEach(function(e){a=ev(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=ev(o,e);t&&(a=!a||et(t,a)?t:ev(t,a))})}),a},ey=function(e,t){var r=new Map;return t.forEach(function(e){return r.set(e.node,e)}),e.map(function(e){return r.get(e)}).filter(q)},ew=function(e,t){var r=en(P(e).length>0?document:O(e).ownerDocument),n=es(e).filter(F),i=eb(r||e,e,n),o=new Map,a=ee(n,o),s=X(n,o).filter(function(e){return F(e.node)});if(s[0]||(s=a)[0]){var l=ee([i],o).map(function(e){return e.node}),c=ey(l,s),u=c.map(function(e){return e.node}),d=ep(u,l,r,t);if(d===ef){var h=eg(a,u,n.reduce(function(e,t){return e.concat(Q(I(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return Y([e])}).reduce(function(e,t){return e.concat(t)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:c[d]}},ex=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},e_=0,eC=!1,eA=function(e,t,r){void 0===r&&(r={});var n=ew(e,t);if(!eC&&n){if(e_>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),eC=!0,setTimeout(function(){eC=!1},1);return}e_++,ex(n.node,r.focusOptions),e_--}},ek=function(e){var t=es(e).filter(F),r=eb(e,e,t),n=new Map,i=X([r],n,!0),o=X(t,n).filter(function(e){return F(e.node)}).map(function(e){return e.node});return i.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:z(t)}})};function eE(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var eS=null,eT=null,eI=null,eP=!1,eO=function(e,t){eI={observerNode:e,portaledElement:t}};function eR(e,t,r,n){var i=null,o=e;do{var a=n[o];if(a.guard)a.node.dataset.focusAutoGuard&&(i=a);else if(a.lockItem){if(o!==e)return;i=null}else break}while((o+=r)!==t);i&&(i.node.tabIndex=0)}var eM=function(e){return e&&"current"in e?e.current:e},eN=function(){var e=!1;if(eS){var t=eS,r=t.observed,n=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=r||eI&&eI.portaledElement,c=document&&document.activeElement;if(l){var u=[l].concat(o.map(eM).filter(Boolean));if((!c||(eS.whiteList||function(){return!0})(c))&&(n||(a?!!eP:"meanwhile"===eP)||!(document&&document.activeElement===document.body||ei())||!eT&&i)&&(l&&!(el(u)||c&&u.some(function(e){return function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))}(c,e,e)})||eI&&eI.portaledElement===c)&&(document&&!eT&&c&&!i?(c.blur&&c.blur(),document.body.focus()):(e=eA(u,eT,{focusOptions:s}),eI={})),eP=!1,eT=document&&document.activeElement),document){var d=document&&document.activeElement,h=ek(u),f=h.map(function(e){return e.node}).indexOf(d);f>-1&&(h.filter(function(e){var t=e.guard,r=e.node;return t&&r.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eR(f,h.length,1,h),eR(f,-1,-1,h))}}}return e},ej=function(e){eN()&&e&&(e.stopPropagation(),e.preventDefault())},eD=function(){return eE(eN)},eB=function(){eP="just",setTimeout(function(){eP="meanwhile"},0)},eL=function(){document.addEventListener("focusin",ej),document.addEventListener("focusout",eD),window.addEventListener("blur",eB)},e$=function(){document.removeEventListener("focusin",ej),document.removeEventListener("focusout",eD),window.removeEventListener("blur",eB)};_.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||eO(r,t)}),C.assignMedium(eD),A.assignMedium(function(e){return e({moveFocusInside:eA,focusInside:el})});var eU=(n=function(e){return e.filter(function(e){return!e.disabled})},i=function(e){var t=e.slice(-1)[0];t&&!eS&&eL();var r=eS,n=r&&t&&t.id===r.id;eS=t,!r||n||(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(eT=null,n&&r.observed===t.observed||t.onActivation(),eN(!0),eE(eN)):(e$(),eT=null)},function(e){var t,r,o,a=[];function s(){i(o=n(a.map(function(e){return e.props})))}var l=function(t){function r(){return t.apply(this,arguments)||this}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,T(r,t),r.peek=function(){return o};var n=r.prototype;return n.componentDidMount=function(){a.push(this),s()},n.componentDidUpdate=function(){s()},n.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),s()},n.render=function(){return d.createElement(e,this.props)},r}(d.PureComponent);return t="displayName",r="SideEffect("+(e.displayName||e.name||"Component")+")",t in l?Object.defineProperty(l,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[t]=r,l})(function(){return null}),ez=d.forwardRef(function(e,t){return d.createElement(S,(0,u.Z)({sideCar:eU,ref:t},e))}),eF=S.propTypes||{};eF.sideCar,function(e,t){if(null!=e){var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r])}}(eF,["sideCar"]),ez.propTypes={};var eq=r(42657),eH=r(85893),eW=null!=(a=ez.default)?a:ez,eV=e=>{let{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,u=(0,d.useCallback)(()=>{(null==t?void 0:t.current)?t.current.focus():(null==n?void 0:n.current)&&0===(0,eq.t5)(n.current).length&&requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus()})},[t,n]),h=(0,d.useCallback)(()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()},[r]),f=i&&!r;return(0,eH.jsx)(eW,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:u,onDeactivation:h,returnFocus:f,children:o})};eV.displayName="FocusLock";var eZ=r(15947),eG="right-scroll-bar-position",eK="width-before-scroll-bar",eY=x(),eQ=function(){},eJ=d.forwardRef(function(e,t){var r=d.useRef(null),n=d.useState({onScrollCapture:eQ,onWheelCapture:eQ,onTouchMoveCapture:eQ}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,h=e.shards,f=e.sideCar,g=e.noIsolation,m=e.inert,b=e.allowPinchZoom,y=e.as,w=(0,v.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=p([r,t]),_=(0,v.__assign)((0,v.__assign)({},w),i);return d.createElement(d.Fragment,null,u&&d.createElement(f,{sideCar:eY,removeScrollBar:c,shards:h,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!b,lockRef:r}),a?d.cloneElement(d.Children.only(s),(0,v.__assign)((0,v.__assign)({},_),{ref:x})):d.createElement(void 0===y?"div":y,(0,v.__assign)({},_,{className:l,ref:x}),s))});eJ.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eJ.classNames={fullWidth:eK,zeroRight:eG};var eX=function(e){var t=e.sideCar,r=(0,v.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return d.createElement(n,(0,v.__assign)({},r))};eX.isSideCarExport=!0;var e0=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=s||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},e1=function(){var e=e0();return function(t,r){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},e2=function(){var e=e1();return function(t){return e(t.styles,t.dynamic),null}},e3={left:0,top:0,right:0,gap:0},e5=function(e){return parseInt(e||"",10)||0},e6=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[e5(r),e5(n),e5(i)]},e4=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return e3;var t=e6(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},e8=e2(),e9=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(s,"px ").concat(n,";\n  }\n  body {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eG," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(eK," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(eG," .").concat(eG," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(eK," .").concat(eK," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},e7=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=d.useMemo(function(){return e4(i)},[i]);return d.createElement(e8,{styles:e9(o,!t,i,r?"":"!important")})},te=!1;if("undefined"!=typeof window)try{var tt=Object.defineProperty({},"passive",{get:function(){return te=!0,!0}});window.addEventListener("test",tt,tt),window.removeEventListener("test",tt,tt)}catch(e){te=!1}var tr=!!te&&{passive:!1},tn=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},ti=function(e,t){var r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),to(e,r)){var n=ta(e,r);if(n[1]>n[2])return!0}r=r.parentNode}while(r&&r!==document.body);return!1},to=function(e,t){return"v"===e?tn(t,"overflowY"):tn(t,"overflowX")},ta=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ts=function(e,t,r,n,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*n,l=r.target,c=t.contains(l),u=!1,d=s>0,h=0,f=0;do{var p=ta(e,l),g=p[0],m=p[1]-p[2]-a*g;(g||m)&&to(e,l)&&(h+=m,f+=g),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&0===h||!i&&s>h)?u=!0:!d&&(i&&0===f||!i&&-s>f)&&(u=!0),u},tl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},tc=function(e){return[e.deltaX,e.deltaY]},tu=function(e){return e&&"current"in e?e.current:e},td=0,th=[],tf=(o=function(e){var t=d.useRef([]),r=d.useRef([0,0]),n=d.useRef(),i=d.useState(td++)[0],o=d.useState(function(){return e2()})[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,v.__spreadArray)([e.lockRef.current],(e.shards||[]).map(tu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=tl(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],c="deltaY"in e?e.deltaY:s[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=ti(d,u);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=ti(d,u)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||c)&&(n.current=i),!i)return!0;var f=n.current||i;return ts(f,t,e,"h"===f?l:c,!0)},[]),l=d.useCallback(function(e){if(th.length&&th[th.length-1]===o){var r="deltaY"in e?tc(e):tl(e),n=t.current.filter(function(t){var n;return t.name===e.type&&t.target===e.target&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(a.current.shards||[]).map(tu).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=d.useCallback(function(e,r,n,i){var o={name:e,delta:r,target:n,should:i};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),u=d.useCallback(function(e){r.current=tl(e),n.current=void 0},[]),h=d.useCallback(function(t){c(t.type,tc(t),t.target,s(t,e.lockRef.current))},[]),f=d.useCallback(function(t){c(t.type,tl(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return th.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,tr),document.addEventListener("touchmove",l,tr),document.addEventListener("touchstart",u,tr),function(){th=th.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,tr),document.removeEventListener("touchmove",l,tr),document.removeEventListener("touchstart",u,tr)}},[]);var p=e.removeScrollBar,g=e.inert;return d.createElement(d.Fragment,null,g?d.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?d.createElement(e7,{gapMode:"margin"}):null)},eY.useMedium(o),eX),tp=d.forwardRef(function(e,t){return d.createElement(eJ,(0,v.__assign)({},e,{ref:t,sideCar:tf}))});function tg(e){let{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:a,finalFocusRef:s,returnFocusOnClose:u,preserveScrollBarGap:h,lockFocusAcrossFrames:f,isOpen:p}=(0,l.vR)(),[g,m]=(0,eZ.oO)();(0,d.useEffect)(()=>{!g&&m&&setTimeout(m)},[g,m]);let v=(0,c.$)(n,p);return(0,eH.jsx)(eV,{autoFocus:t,isDisabled:!r,initialFocusRef:i,finalFocusRef:s,restoreFocus:u,contentRef:n,lockFocusAcrossFrames:f,children:(0,eH.jsx)(tp,{removeScrollBar:!h,allowPinchZoom:a,enabled:1===v&&o,forwardProps:!0,children:e.children})})}tp.classNames=eJ.classNames},79437:function(e,t,r){"use strict";r.d(t,{m:function(){return s},$:function(){return l}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r),a=r(67294),s=new class{constructor(){o(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function l(e,t){let[r,n]=(0,a.useState)(0);return(0,a.useEffect)(()=>{let r=e.current;if(r)return t&&n(s.add(r)),()=>{s.remove(r),n(0)}},[t,e]),r}},92716:function(e,t,r){"use strict";r.d(t,{M:function(){return l},d:function(){return u}});var n=r(34151),i=r(55227),o=r(75119),a=r(85893),[s,l]=(0,i.k)(),c={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function u(e){var t;let{isOpen:r,onClose:i,placement:l="right",children:u,...d}=e,h=(0,o.F)(),f=null==(t=h.components)?void 0:t.Drawer,p=function(e,t){var r,n;if(e)return null!=(n=null==(r=c[e])?void 0:r[t])?n:e}(l,h.direction);return(0,a.jsx)(s,{value:{placement:p},children:(0,a.jsx)(n.u_,{isOpen:r,onClose:i,styleConfig:f,...d,children:u})})}},87052:function(e,t,r){"use strict";function n(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}r.d(t,{o:function(){return n}})},20623:function(e,t,r){"use strict";r.d(t,{b:function(){return l}});var n=r(6560),i=r(35059),o=r(75350),a=r(25432),s=r(85893),l=(0,i.G)(function(e,t){let{getBodyProps:r}=(0,n.lp)(),i=(0,n.SV)();return(0,s.jsx)(o.m.div,{...r(e,t),className:(0,a.cx)("chakra-popover__body",e.className),__css:i.body})});l.displayName="PopoverBody"},53948:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=r(6560),i=r(67294);function o(e){let t=i.Children.only(e.children),{getTriggerProps:r}=(0,n.lp)();return(0,i.cloneElement)(t,r(t.props,t.ref))}o.displayName="PopoverTrigger"},56426:function(e,t,r){"use strict";r.d(t,{Q:function(){return l}});var n=r(6560),i=r(75350),o=r(25432),a=r(85893),s=(e,t)=>t?`${e}.${t}, ${t}`:void 0;function l(e){var t;let{bg:r,bgColor:l,backgroundColor:c,shadow:u,boxShadow:d,shadowColor:h}=e,{getArrowProps:f,getArrowInnerProps:p}=(0,n.lp)(),g=(0,n.SV)(),m=null!=(t=null!=r?r:l)?t:c;return(0,a.jsx)(i.m.div,{...f(),className:"chakra-popover__arrow-positioner",children:(0,a.jsx)(i.m.div,{className:(0,o.cx)("chakra-popover__arrow",e.className),...p(e),__css:{"--popper-arrow-shadow-color":s("colors",h),"--popper-arrow-bg":s("colors",m),"--popper-arrow-shadow":s("shadows",null!=u?u:d),...g.arrow}})})}l.displayName="PopoverArrow"},6560:function(e,t,r){"use strict";r.d(t,{H2:function(){return i},SV:function(){return s},WG:function(){return a},lp:function(){return o}});var n=r(55227),[i,o]=(0,n.k)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[a,s]=(0,n.k)({name:"PopoverStylesContext",errorMessage:"usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Popover />\" "})},44416:function(e,t,r){"use strict";r.d(t,{y:function(){return h}});var n=r(6560),i=r(75350),o=r(35059),a=r(24262),s=r(85893),l={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},c=(0,i.m)(a.E.section),u=(0,o.G)(function(e,t){let{variants:r=l,...i}=e,{isOpen:o}=(0,n.lp)();return(0,s.jsx)(c,{ref:t,variants:function(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}(r),initial:!1,animate:o?"enter":"exit",...i})});u.displayName="PopoverTransition";var d=r(25432),h=(0,o.G)(function(e,t){let{rootProps:r,motionProps:o,...a}=e,{getPopoverProps:l,getPopoverPositionerProps:c,onAnimationComplete:h}=(0,n.lp)(),f=(0,n.SV)(),p={position:"relative",display:"flex",flexDirection:"column",...f.content};return(0,s.jsx)(i.m.div,{...c(r),__css:f.popper,className:"chakra-popover__popper",children:(0,s.jsx)(u,{...o,...l(a,t),onAnimationComplete:(0,d.PP)(h,a.onAnimationComplete),className:(0,d.cx)("chakra-popover__content",e.className),__css:p})})});h.displayName="PopoverContent"},31054:function(e,t,r){"use strict";r.d(t,{D:function(){return eC}});var n,i,o,a,s,l=r(68795),c={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{let t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},u={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{d(e)},effect:({state:e})=>()=>{d(e)}},d=e=>{e.elements.popper.style.setProperty(l.Dq.transformOrigin.var,(0,l.mv)(e.placement))},h={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{f(e)}},f=e=>{var t;if(!e.placement)return;let r=p(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&r){Object.assign(e.elements.arrow.style,{[r.property]:r.value,width:l.Dq.arrowSize.varRef,height:l.Dq.arrowSize.varRef,zIndex:-1});let t={[l.Dq.arrowSizeHalf.var]:`calc(${l.Dq.arrowSize.varRef} / 2 - 1px)`,[l.Dq.arrowOffset.var]:`calc(${l.Dq.arrowSizeHalf.varRef} * -1)`};for(let r in t)e.elements.arrow.style.setProperty(r,t[r])}},p=e=>e.startsWith("top")?{property:"bottom",value:l.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:l.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:l.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:l.Dq.arrowOffset.varRef}:void 0,g={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{m(e)},effect:({state:e})=>()=>{m(e)}},m=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let r=(0,l.Ke)(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:l.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},v={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},b={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},y=r(81103);function w(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function x(e){var t=w(e).Element;return e instanceof t||e instanceof Element}function _(e){var t=w(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function C(e){if("undefined"==typeof ShadowRoot)return!1;var t=w(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var A=Math.max,k=Math.min,E=Math.round;function S(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(S())}function I(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&_(e)&&(i=e.offsetWidth>0&&E(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&E(n.height)/e.offsetHeight||1);var a=(x(e)?w(e):window).visualViewport,s=!T()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/i,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/i,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function P(e){var t=w(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function O(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){return((x(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return I(R(e)).left+P(e).scrollLeft}function N(e){return w(e).getComputedStyle(e)}function j(e){var t=N(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function D(e){var t=I(e),r=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-r)&&(r=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function B(e){return"html"===O(e)?e:e.assignedSlot||e.parentNode||(C(e)?e.host:null)||R(e)}function L(e,t){void 0===t&&(t=[]);var r,n=function e(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:_(t)&&j(t)?t:e(B(t))}(e),i=n===(null==(r=e.ownerDocument)?void 0:r.body),o=w(n),a=i?[o].concat(o.visualViewport||[],j(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(L(B(a)))}function $(e){return _(e)&&"fixed"!==N(e).position?e.offsetParent:null}function U(e){for(var t=w(e),r=$(e);r&&["table","td","th"].indexOf(O(r))>=0&&"static"===N(r).position;)r=$(r);return r&&("html"===O(r)||"body"===O(r)&&"static"===N(r).position)?t:r||function(e){var t=/firefox/i.test(S());if(/Trident/i.test(S())&&_(e)&&"fixed"===N(e).position)return null;var r=B(e);for(C(r)&&(r=r.host);_(r)&&0>["html","body"].indexOf(O(r));){var n=N(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var z="bottom",F="right",q="left",H="auto",W=["top",z,F,q],V="start",Z="viewport",G="popper",K=W.reduce(function(e,t){return e.concat([t+"-"+V,t+"-end"])},[]),Y=[].concat(W,[H]).reduce(function(e,t){return e.concat([t,t+"-"+V,t+"-end"])},[]),Q=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],J={placement:"bottom",modifiers:[],strategy:"absolute"};function X(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var ee={passive:!0};function et(e){return e.split("-")[0]}function er(e){return e.split("-")[1]}function en(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ei(e){var t,r=e.reference,n=e.element,i=e.placement,o=i?et(i):null,a=i?er(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(o){case"top":t={x:s,y:r.y-n.height};break;case z:t={x:s,y:r.y+r.height};break;case F:t={x:r.x+r.width,y:l};break;case q:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=o?en(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case V:t[c]=t[c]-(r[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var eo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ea(e){var t,r,n,i,o,a,s=e.popper,l=e.popperRect,c=e.placement,u=e.variation,d=e.offsets,h=e.position,f=e.gpuAcceleration,p=e.adaptive,g=e.roundOffsets,m=e.isFixed,v=d.x,b=void 0===v?0:v,y=d.y,x=void 0===y?0:y,_="function"==typeof g?g({x:b,y:x}):{x:b,y:x};b=_.x,x=_.y;var C=d.hasOwnProperty("x"),A=d.hasOwnProperty("y"),k=q,S="top",T=window;if(p){var I=U(s),P="clientHeight",O="clientWidth";I===w(s)&&"static"!==N(I=R(s)).position&&"absolute"===h&&(P="scrollHeight",O="scrollWidth"),("top"===c||(c===q||c===F)&&"end"===u)&&(S=z,x-=(m&&I===T&&T.visualViewport?T.visualViewport.height:I[P])-l.height,x*=f?1:-1),(c===q||("top"===c||c===z)&&"end"===u)&&(k=F,b-=(m&&I===T&&T.visualViewport?T.visualViewport.width:I[O])-l.width,b*=f?1:-1)}var M=Object.assign({position:h},p&&eo),j=!0===g?(r=(t={x:b,y:x}).x,n=t.y,{x:E(r*(i=window.devicePixelRatio||1))/i||0,y:E(n*i)/i||0}):{x:b,y:x};return(b=j.x,x=j.y,f)?Object.assign({},M,((a={})[S]=A?"0":"",a[k]=C?"0":"",a.transform=1>=(T.devicePixelRatio||1)?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",a)):Object.assign({},M,((o={})[S]=A?x+"px":"",o[k]=C?b+"px":"",o.transform="",o))}var es={left:"right",right:"left",bottom:"top",top:"bottom"};function el(e){return e.replace(/left|right|bottom|top/g,function(e){return es[e]})}var ec={start:"end",end:"start"};function eu(e){return e.replace(/start|end/g,function(e){return ec[e]})}function ed(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&C(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function eh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ef(e,t,r){var n,i,o,a,s,l,c,u,d,h;return t===Z?eh(function(e,t){var r=w(e),n=R(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=T();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+M(e),y:l}}(e,r)):x(t)?((n=I(t,!1,"fixed"===r)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):eh((i=R(e),a=R(i),s=P(i),l=null==(o=i.ownerDocument)?void 0:o.body,c=A(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=A(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+M(i),h=-s.scrollTop,"rtl"===N(l||a).direction&&(d+=A(a.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:h}))}function ep(){return{top:0,right:0,bottom:0,left:0}}function eg(e){return Object.assign({},ep(),e)}function em(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function ev(e,t){void 0===t&&(t={});var r,n,i,o,a,s,l,c,u=t,d=u.placement,h=void 0===d?e.placement:d,f=u.strategy,p=void 0===f?e.strategy:f,g=u.boundary,m=u.rootBoundary,v=u.elementContext,b=void 0===v?G:v,y=u.altBoundary,w=u.padding,C=void 0===w?0:w,E=eg("number"!=typeof C?C:em(C,W)),S=e.rects.popper,T=e.elements[void 0!==y&&y?b===G?"reference":G:b],P=(r=x(T)?T:T.contextElement||R(e.elements.popper),n=void 0===g?"clippingParents":g,i=void 0===m?Z:m,l=(s=[].concat("clippingParents"===n?(o=L(B(r)),x(a=["absolute","fixed"].indexOf(N(r).position)>=0&&_(r)?U(r):r)?o.filter(function(e){return x(e)&&ed(e,a)&&"body"!==O(e)}):[]):[].concat(n),[i]))[0],(c=s.reduce(function(e,t){var n=ef(r,t,p);return e.top=A(n.top,e.top),e.right=k(n.right,e.right),e.bottom=k(n.bottom,e.bottom),e.left=A(n.left,e.left),e},ef(r,l,p))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),M=I(e.elements.reference),j=ei({reference:M,element:S,strategy:"absolute",placement:h}),D=eh(Object.assign({},S,j)),$=b===G?D:M,q={top:P.top-$.top+E.top,bottom:$.bottom-P.bottom+E.bottom,left:P.left-$.left+E.left,right:$.right-P.right+E.right},H=e.modifiersData.offset;if(b===G&&H){var V=H[h];Object.keys(q).forEach(function(e){var t=[F,z].indexOf(e)>=0?1:-1,r=["top",z].indexOf(e)>=0?"y":"x";q[e]+=V[r]*t})}return q}function eb(e,t,r){return A(e,k(t,r))}function ey(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ew(e){return["top",F,z,q].some(function(t){return e[t]>=0})}var ex=(o=void 0===(i=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=void 0===i||i,a=n.resize,s=void 0===a||a,l=w(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",r.update,ee)}),s&&l.addEventListener("resize",r.update,ee),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",r.update,ee)}),s&&l.removeEventListener("resize",r.update,ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=ei({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=r.adaptive,o=r.roundOffsets,a=void 0===o||o,s={placement:et(t.placement),variation:er(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ea(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ea(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},i=t.elements[e];_(i)&&O(i)&&(Object.assign(i.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});_(n)&&O(n)&&(Object.assign(n.style,o),Object.keys(i).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=void 0===i?[0,0]:i,a=Y.reduce(function(e,r){var n,i,a,s,l,c;return e[r]=(n=t.rects,a=[q,"top"].indexOf(i=et(r))>=0?-1:1,l=(s="function"==typeof o?o(Object.assign({},n,{placement:r})):o)[0],c=s[1],l=l||0,c=(c||0)*a,[q,F].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=void 0===i||i,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,d=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,p=void 0===f||f,g=r.allowedAutoPlacements,m=t.options.placement,v=et(m)===m,b=l||(v||!p?[el(m)]:function(e){if(et(e)===H)return[];var t=el(e);return[eu(e),t,eu(t)]}(m)),y=[m].concat(b).reduce(function(e,r){var n,i,o,a,s,l,h,f,m,v,b,y;return e.concat(et(r)===H?(i=(n={placement:r,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:g}).placement,o=n.boundary,a=n.rootBoundary,s=n.padding,l=n.flipVariations,f=void 0===(h=n.allowedAutoPlacements)?Y:h,0===(b=(v=(m=er(i))?l?K:K.filter(function(e){return er(e)===m}):W).filter(function(e){return f.indexOf(e)>=0})).length&&(b=v),Object.keys(y=b.reduce(function(e,r){return e[r]=ev(t,{placement:r,boundary:o,rootBoundary:a,padding:s})[et(r)],e},{})).sort(function(e,t){return y[e]-y[t]})):r)},[]),w=t.rects.reference,x=t.rects.popper,_=new Map,C=!0,A=y[0],k=0;k<y.length;k++){var E=y[k],S=et(E),T=er(E)===V,I=["top",z].indexOf(S)>=0,P=I?"width":"height",O=ev(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),R=I?T?F:q:T?z:"top";w[P]>x[P]&&(R=el(R));var M=el(R),N=[];if(o&&N.push(O[S]<=0),s&&N.push(O[R]<=0,O[M]<=0),N.every(function(e){return e})){A=E,C=!1;break}_.set(E,N)}if(C)for(var j=p?3:1,D=function(e){var t=y.find(function(t){var r=_.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},B=j;B>0&&"break"!==D(B);B--);t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=r.altAxis,a=r.boundary,s=r.rootBoundary,l=r.altBoundary,c=r.padding,u=r.tether,d=void 0===u||u,h=r.tetherOffset,f=void 0===h?0:h,p=ev(t,{boundary:a,rootBoundary:s,padding:c,altBoundary:l}),g=et(t.placement),m=er(t.placement),v=!m,b=en(g),y="x"===b?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,C="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(w){if(void 0===i||i){var I,P="y"===b?"top":q,O="y"===b?z:F,R="y"===b?"height":"width",M=w[b],N=M+p[P],j=M-p[O],B=d?-_[R]/2:0,L=m===V?x[R]:_[R],$=m===V?-_[R]:-x[R],H=t.elements.arrow,W=d&&H?D(H):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ep(),G=Z[P],K=Z[O],Y=eb(0,x[R],W[R]),Q=v?x[R]/2-B-Y-G-E.mainAxis:L-Y-G-E.mainAxis,J=v?-x[R]/2+B+Y+K+E.mainAxis:$+Y+K+E.mainAxis,X=t.elements.arrow&&U(t.elements.arrow),ee=X?"y"===b?X.clientTop||0:X.clientLeft||0:0,ei=null!=(I=null==S?void 0:S[b])?I:0,eo=eb(d?k(N,M+Q-ei-ee):N,M,d?A(j,M+J-ei):j);w[b]=eo,T[b]=eo-M}if(void 0!==o&&o){var ea,es,el="x"===b?"top":q,ec="x"===b?z:F,eu=w[y],ed="y"===y?"height":"width",eh=eu+p[el],ef=eu-p[ec],eg=-1!==["top",q].indexOf(g),em=null!=(es=null==S?void 0:S[y])?es:0,ey=eg?eh:eu-x[ed]-_[ed]-em+E.altAxis,ew=eg?eu+x[ed]+_[ed]-em-E.altAxis:ef,ex=d&&eg?(ea=eb(ey,eu,ew))>ew?ew:ea:eb(d?ey:eh,eu,d?ew:ef);w[y]=ex,T[y]=ex-eu}t.modifiersData[n]=T}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r,n=e.state,i=e.name,o=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,l=et(n.placement),c=en(l),u=[q,F].indexOf(l)>=0?"height":"width";if(a&&s){var d=eg("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:em(t,W)),h=D(a),f="y"===c?"top":q,p="y"===c?z:F,g=n.rects.reference[u]+n.rects.reference[c]-s[c]-n.rects.popper[u],m=s[c]-n.rects.reference[c],v=U(a),b=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,y=d[f],w=b-h[u]-d[p],x=b/2-h[u]/2+(g/2-m/2),_=eb(y,x,w);n.modifiersData[i]=((r={})[c]=_,r.centerOffset=_-x,r)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&ed(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=ev(t,{elementContext:"reference"}),s=ev(t,{altBoundary:!0}),l=ey(a,n),c=ey(s,i,o),u=ew(l),d=ew(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:i,s=void 0===(a=n.defaultOptions)?J:a,function(e,t,r){void 0===r&&(r=s);var n,i,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},J,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(r){var n,i,c,h,f,p="function"==typeof r?r(a.options):r;d(),a.options=Object.assign({},s,a.options,p),a.scrollParents={reference:x(e)?L(e):e.contextElement?L(e.contextElement):[],popper:L(t)};var g=(i=Object.keys(n=[].concat(o,a.options.modifiers).reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{})).map(function(e){return n[e]}),c=new Map,h=new Set,f=[],i.forEach(function(e){c.set(e.name,e)}),i.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var r=c.get(t);r&&e(r)}}),f.push(t)}(e)}),Q.reduce(function(e,t){return e.concat(f.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=g.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=e.effect;if("function"==typeof n){var i=n({state:a,name:t,instance:u,options:void 0===r?{}:r});l.push(i||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,r,n,i,o,s,l,d,h,f,p,g=a.elements,m=g.reference,v=g.popper;if(X(m,v)){a.rects={reference:(t=U(v),r="fixed"===a.options.strategy,n=_(t),l=_(t)&&(o=E((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=E(i.height)/t.offsetHeight||1,1!==o||1!==s),d=R(t),h=I(m,l,r),f={scrollLeft:0,scrollTop:0},p={x:0,y:0},(n||!n&&!r)&&(("body"!==O(t)||j(d))&&(f=(e=t)!==w(e)&&_(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:P(e)),_(t)?(p=I(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=M(d))),{x:h.left+f.scrollLeft-p.x,y:h.top+f.scrollTop-p.y,width:h.width,height:h.height}),popper:D(v)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var b=0;b<a.orderedModifiers.length;b++){if(!0===a.reset){a.reset=!1,b=-1;continue}var y=a.orderedModifiers[b],x=y.fn,C=y.options,A=void 0===C?{}:C,k=y.name;"function"==typeof x&&(a=x({state:a,options:A,name:k,instance:u})||a)}}}},update:(n=function(){return new Promise(function(e){u.forceUpdate(),e(a)})},function(){return i||(i=new Promise(function(e){Promise.resolve().then(function(){i=void 0,e(n())})})),i}),destroy:function(){d(),c=!0}};if(!X(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}),e_=r(67294);function eC(e={}){let{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:i="absolute",arrowPadding:o=8,eventListeners:a=!0,offset:s,gutter:d=8,flip:f=!0,boundary:p="clippingParents",preventOverflow:m=!0,matchWidth:w,direction:x="ltr"}=e,_=(0,e_.useRef)(null),C=(0,e_.useRef)(null),A=(0,e_.useRef)(null),k=function(e,t="ltr"){var r,n;let i=(null==(r=v[e])?void 0:r[t])||e;return"ltr"===t?i:null!=(n=b[e])?n:i}(n,x),E=(0,e_.useRef)(()=>{}),S=(0,e_.useCallback)(()=>{var e;t&&_.current&&C.current&&(null==(e=E.current)||e.call(E),A.current=ex(_.current,C.current,{placement:k,modifiers:[g,h,u,{...c,enabled:!!w},{name:"eventListeners",...(0,l.$B)(a)},{name:"arrow",options:{padding:o}},{name:"offset",options:{offset:null!=s?s:[0,d]}},{name:"flip",enabled:!!f,options:{padding:8}},{name:"preventOverflow",enabled:!!m,options:{boundary:p}},...null!=r?r:[]],strategy:i}),A.current.forceUpdate(),E.current=A.current.destroy)},[k,t,r,w,a,o,s,d,f,m,p,i]);(0,e_.useEffect)(()=>()=>{var e;_.current||C.current||(null==(e=A.current)||e.destroy(),A.current=null)},[]);let T=(0,e_.useCallback)(e=>{_.current=e,S()},[S]),I=(0,e_.useCallback)((e={},t=null)=>({...e,ref:(0,y.lq)(T,t)}),[T]),P=(0,e_.useCallback)(e=>{C.current=e,S()},[S]),O=(0,e_.useCallback)((e={},t=null)=>({...e,ref:(0,y.lq)(P,t),style:{...e.style,position:i,minWidth:w?void 0:"max-content",inset:"0 auto auto 0"}}),[i,P,w]),R=(0,e_.useCallback)((e={},t=null)=>{let{size:r,shadowColor:n,bg:i,style:o,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:r,bg:n,style:i}=e,o={...i,position:"absolute"};return t&&(o["--popper-arrow-size"]=t),r&&(o["--popper-arrow-shadow-color"]=r),n&&(o["--popper-arrow-bg"]=n),o}(e)}},[]),M=(0,e_.useCallback)((e={},t=null)=>({...e,ref:t,"data-popper-arrow-inner":""}),[]);return{update(){var e;null==(e=A.current)||e.update()},forceUpdate(){var e;null==(e=A.current)||e.forceUpdate()},transformOrigin:l.Dq.transformOrigin.varRef,referenceRef:T,popperRef:P,getPopperProps:O,getArrowProps:R,getArrowInnerProps:M,getReferenceProps:I}}},68795:function(e,t,r){"use strict";r.d(t,{$B:function(){return c},Dq:function(){return i},Ke:function(){return o},mv:function(){return s}});var n=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),i={arrowShadowColor:n("--popper-arrow-shadow-color"),arrowSize:n("--popper-arrow-size","8px"),arrowSizeHalf:n("--popper-arrow-size-half"),arrowBg:n("--popper-arrow-bg"),transformOrigin:n("--popper-transform-origin"),arrowOffset:n("--popper-arrow-offset")};function o(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},s=e=>a[e],l={scroll:!0,resize:!0};function c(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},16810:function(e,t,r){"use strict";r.d(t,{L:function(){return a},h:function(){return s}});var n=r(55227),i=r(85893),[o,a]=(0,n.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(o,{value:{zIndex:r},children:t})}s.displayName="PortalManager"},49598:function(e,t,r){"use strict";r.d(t,{h:function(){return g}});var n=r(16810),i=r(26245),o=r(55227),a=r(73935),s=r(67294),l=r(85893),[c,u]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",h=e=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),f=e=>{let{appendToParentPortal:t,children:r}=e,[o,f]=(0,s.useState)(null),p=(0,s.useRef)(null),[,g]=(0,s.useState)({});(0,s.useEffect)(()=>g({}),[]);let m=u(),v=(0,n.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,r=t&&null!=m?m:e.body;if(!r)return;p.current=e.createElement("div"),p.current.className=d,r.appendChild(p.current),g({});let n=p.current;return()=>{r.contains(n)&&r.removeChild(n)}},[o]);let b=(null==v?void 0:v.zIndex)?(0,l.jsx)(h,{zIndex:null==v?void 0:v.zIndex,children:r}):r;return p.current?(0,a.createPortal)((0,l.jsx)(c,{value:p.current,children:b}),p.current):(0,l.jsx)("span",{ref:e=>{e&&f(e)}})},p=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,u=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,f]=(0,s.useState)({});return((0,i.G)(()=>f({}),[]),(0,i.G)(()=>{if(h&&u)return u.appendChild(h),()=>{u.removeChild(h)}},[h,u]),u&&h)?(0,a.createPortal)((0,l.jsx)(c,{value:n?h:null,children:t}),h):null};function g(e){let{containerRef:t,...r}={appendToParentPortal:!0,...e};return t?(0,l.jsx)(p,{containerRef:t,...r}):(0,l.jsx)(f,{...r})}g.className=d,g.selector=".chakra-portal",g.displayName="Portal"},92495:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(67294);function i(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}},55227:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(67294);function i(e={}){let{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,l=(0,n.createContext)(s);return l.displayName=t,[l.Provider,function e(){var t;let s=(0,n.useContext)(l);if(!s&&r){let r=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},l]}},81607:function(e,t,r){"use strict";r.d(t,{O:function(){return s},u:function(){return l}});var n=r(26245),i=r(67294),o=r(85893),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,n.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function l(e){let{children:t,environment:r,disabled:n}=e,s=(0,i.useRef)(null),l=(0,i.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),c=!n||!r;return(0,o.jsxs)(a.Provider,{value:l,children:[t,c&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},93694:function(e,t,r){"use strict";r.d(t,{h:function(){return a}});var n=r(67294),i=r(57134),o=r(61735);function a(e){let{isOpen:t,ref:r}=e,[a,s]=(0,n.useState)(t),[l,c]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{l||(s(t),c(!0))},[t,l,a]),(0,i.O)(()=>r.current,"animationend",()=>{s(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,o.kR)(r.current)).CustomEvent("animationend",{bubbles:!0});null==(e=r.current)||e.dispatchEvent(t)}}}},35155:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(67294);function i(e,t=[]){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},61942:function(e,t,r){"use strict";r.d(t,{T:function(){return o}});var n=r(67294),i=r(35155);function o(e){let{value:t,defaultValue:r,onChange:o,shouldUpdate:a=(e,t)=>e!==t}=e,s=(0,i.W)(o),l=(0,i.W)(a),[c,u]=(0,n.useState)(r),d=void 0!==t,h=d?t:c,f=(0,i.W)(e=>{let t="function"==typeof e?e(h):e;l(h,t)&&(d||u(t),s(t))},[d,s,h,l]);return[h,f]}},85075:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(35155),i=r(67294);function o(e={}){let{onClose:t,onOpen:r,isOpen:o,id:a}=e,s=(0,n.W)(r),l=(0,n.W)(t),[c,u]=(0,i.useState)(e.defaultIsOpen||!1),d=void 0!==o?o:c,h=void 0!==o,f=(0,i.useId)(),p=null!=a?a:`disclosure-${f}`,g=(0,i.useCallback)(()=>{h||u(!1),null==l||l()},[h,l]),m=(0,i.useCallback)(()=>{h||u(!0),null==s||s()},[h,s]),v=(0,i.useCallback)(()=>{d?g():m()},[d,m,g]);return{isOpen:d,onOpen:m,onClose:g,onToggle:v,isControlled:h,getButtonProps:function(e={}){return{...e,"aria-expanded":d,"aria-controls":p,onClick(t){var r;null==(r=e.onClick)||r.call(e,t),v()}}},getDisclosureProps:function(e={}){return{...e,hidden:!d,id:p}}}}},57134:function(e,t,r){"use strict";r.d(t,{O:function(){return o}});var n=r(67294),i=r(35155);function o(e,t,r,o){let a=(0,i.W)(r);return(0,n.useEffect)(()=>{let n="function"==typeof e?e():null!=e?e:document;if(r&&n)return n.addEventListener(t,a,o),()=>{n.removeEventListener(t,a,o)}},[t,e,o,a,r]),()=>{let r="function"==typeof e?e():null!=e?e:document;null==r||r.removeEventListener(t,a,o)}}},32654:function(e,t,r){"use strict";r.d(t,{C:function(){return u},G:function(){return h}});var n=r(61735),i=r(59136),o=r(42657),a=r(57134),s=r(26245),l=r(52366),c=r(67294);function u(e,t){let{shouldFocus:r,visible:o,focusRef:a}=t,s=r&&!o;(0,l.r)(()=>{let t;if(!s||function(e){let t=e.current;if(!t)return!1;let r=(0,n.vY)(t);return!(!r||t.contains(r))&&!!(0,i.Wq)(r)}(e))return;let r=(null==a?void 0:a.current)||e.current;if(r)return t=requestAnimationFrame(()=>{r.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[s,e,a])}var d={preventScroll:!0,shouldFocus:!1};function h(e,t=d){let{focusRef:r,preventScroll:n,shouldFocus:i,visible:u}=t,h="current"in e?e.current:e,f=i&&u,p=(0,c.useRef)(f),g=(0,c.useRef)(u);(0,s.G)(()=>{!g.current&&u&&(p.current=f),g.current=u},[u,f]);let m=(0,c.useCallback)(()=>{if(u&&h&&p.current&&(p.current=!1,!h.contains(document.activeElement))){if(null==r?void 0:r.current)requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus({preventScroll:n})});else{let e=(0,o.t5)(h);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:n})})}}},[u,n,h,r]);(0,l.r)(()=>{m()},[m]),(0,a.O)(h,"transitionend",m)}},81103:function(e,t,r){"use strict";r.d(t,{lq:function(){return i},qq:function(){return o}});var n=r(67294);function i(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}}(e,t)})}}function o(...e){return(0,n.useMemo)(()=>i(...e),e)}},26245:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},52366:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(67294);function i(e,t){let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(r.current&&i.current)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},18691:function(e,t,r){"use strict";r.d(t,{P:function(){return h}});var n=r(25432),i=r(35059),o=r(75350),a=r(85893),s=(0,i.G)(function(e,t){let{children:r,placeholder:i,className:s,...l}=e;return(0,a.jsxs)(o.m.select,{...l,ref:t,className:(0,n.cx)("chakra-select",s),children:[i&&(0,a.jsx)("option",{value:"",children:i}),r]})});s.displayName="SelectField";var l=r(74939),c=r(91639),u=r(33179),d=r(67294),h=(0,i.G)((e,t)=>{var r;let i=(0,c.jC)("Select",e),{rootProps:d,placeholder:h,icon:f,color:p,height:m,h:v,minH:b,minHeight:y,iconColor:w,iconSize:x,..._}=(0,u.Lr)(e),[C,A]=function(e,t){let r={},n={};for(let[i,o]of Object.entries(e))t.includes(i)?r[i]=o:n[i]=o;return[r,n]}(_,u.oE),k=(0,l.Y)(A),E={paddingEnd:"2rem",...i.field,_focus:{zIndex:"unset",...null==(r=i.field)?void 0:r._focus}};return(0,a.jsxs)(o.m.div,{className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:p},...C,...d,children:[(0,a.jsx)(s,{ref:t,height:null!=v?v:m,minH:null!=b?b:y,placeholder:h,...k,__css:E,children:e.children}),(0,a.jsx)(g,{"data-disabled":(0,n.PB)(k.disabled),...(w||p)&&{color:w||p},__css:i.icon,...x&&{fontSize:x},children:f})]})});h.displayName="Select";var f=e=>(0,a.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,a.jsx)("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),p=(0,o.m)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),g=e=>{let{children:t=(0,a.jsx)(f,{}),...r}=e,n=(0,d.cloneElement)(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return(0,a.jsx)(p,{...r,className:"chakra-select__icon-wrapper",children:(0,d.isValidElement)(t)?n:null})};g.displayName="SelectIcon"},25432:function(e,t,r){"use strict";r.d(t,{Kn:function(){return i},PB:function(){return l},PP:function(){return d},Pu:function(){return a},Qm:function(){return c},ZK:function(){return o},cx:function(){return n},v0:function(){return u}});var n=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,l=e=>e?"":void 0,c=e=>!!e||void 0;function u(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},93344:function(e,t,r){"use strict";r.d(t,{O:function(){return v}});var n=r(67294),i=r(25432),o=r(75350),a=r(33179),s=r(70917),l=r(35059),c=r(91639),u=r(34629),d=r(85893),h=(0,o.m)("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),f=(0,a.gJ)("skeleton-start-color"),p=(0,a.gJ)("skeleton-end-color"),g=(0,s.F4)({from:{opacity:0},to:{opacity:1}}),m=(0,s.F4)({from:{borderColor:f.reference,background:f.reference},to:{borderColor:p.reference,background:p.reference}}),v=(0,l.G)((e,t)=>{let r={...e,fadeDuration:"number"==typeof e.fadeDuration?e.fadeDuration:.4,speed:"number"==typeof e.speed?e.speed:.8},s=(0,c.mq)("Skeleton",r),l=function(){let e=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{e.current=!1},[]),e.current}(),{startColor:v="",endColor:b="",isLoaded:y,fadeDuration:w,speed:x,className:_,fitContent:C,...A}=(0,a.Lr)(r),[k,E]=(0,u.dQ)("colors",[v,b]),S=function(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}(y),T=(0,i.cx)("chakra-skeleton",_),I={...k&&{[f.variable]:k},...E&&{[p.variable]:E}};if(y){let e=l||S?"none":`${g} ${w}s`;return(0,d.jsx)(o.m.div,{ref:t,className:T,__css:{animation:e},...A})}return(0,d.jsx)(h,{ref:t,className:T,...A,__css:{width:C?"fit-content":void 0,...s,...I,_dark:{...s._dark,...I},animation:`${x}s linear infinite alternate ${m}`}})});v.displayName="Skeleton"},295:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(70917),i=r(35059),o=r(91639),a=r(33179),s=r(75350),l=r(25432),c=r(85893),u=(0,n.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.G)((e,t)=>{let r=(0,o.mq)("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:h="transparent",className:f,...p}=(0,a.Lr)(e),g=(0,l.cx)("chakra-spinner",f),m={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:h,borderLeftColor:h,animation:`${u} ${d} linear infinite`,...r};return(0,c.jsx)(s.m.div,{ref:t,__css:m,className:g,...p,children:n&&(0,c.jsx)(s.m.span,{srOnly:!0,children:n})})});d.displayName="Spinner"},33179:function(e,t,r){"use strict";r.d(t,{D:function(){return eL},K1:function(){return eU},Lr:function(){return ez},Ud:function(){return e$},ZR:function(){return eO},_6:function(){return er},c0:function(){return eE},cC:function(){return eI},fj:function(){return eB},gJ:function(){return et},iv:function(){return ej},k0:function(){return eD},oE:function(){return eT}});var n=r(25432),i=r(38554),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>r=>{let i=String(t),s=o(i),l=a(i),c=e?`${e}.${l}`:l,u=(0,n.Kn)(r.__cssMap)&&c in r.__cssMap?r.__cssMap[c].varRef:t;return u=a(u),s?`${u} !important`:u};function l(e){let{scale:t,transform:r,compose:n}=e;return(e,i)=>{var o;let a=s(t,e)(i),l=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(l=n(l,i)),l}}var c=(...e)=>t=>e.reduce((e,t)=>t(e),t);function u(e,t){return r=>{let n={property:r,scale:e};return n.transform=l({scale:e,transform:t}),n}}var d=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,h=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],f={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},p={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},v=new Set(Object.values(m)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),y=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),x=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},_=e=>t=>`${e}(${t})`,C={filter:e=>"auto"!==e?e:f,backdropFilter:e=>"auto"!==e?e:p,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":C.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...h].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...h].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=x(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||b.has(e))return e;if(!(w(e)||b.has(e)))return`url('${e}')`;let r=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),n=null==r?void 0:r[1],i=null==r?void 0:r[2];if(!n||!i)return e;let o=n.includes("-gradient")?n:`${n}-gradient`,[a,...s]=i.split(",").map(y).filter(Boolean);if((null==s?void 0:s.length)===0)return e;let l=a in m?m[a]:a;s.unshift(l);let c=s.map(e=>{if(v.has(e))return e;let r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${o}(${c.join(", ")})`})(e,null!=t?t:{}),blur:_("blur"),opacity:_("opacity"),brightness:_("brightness"),contrast:_("contrast"),dropShadow:_("drop-shadow"),grayscale:_("grayscale"),hueRotate:_("hue-rotate"),invert:_("invert"),saturate:_("saturate"),sepia:_("sepia"),bgImage:e=>null==e?e:w(e)||b.has(e)?e:`url(${e})`,outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:n}=null!=(t=g[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},A={borderWidths:u("borderWidths"),borderStyles:u("borderStyles"),colors:u("colors"),borders:u("borders"),gradients:u("gradients",C.gradient),radii:u("radii",C.px),space:u("space",c(C.vh,C.px)),spaceT:u("space",c(C.vh,C.px)),degreeT:e=>({property:e,transform:C.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:u("sizes",c(C.vh,C.px)),sizesT:u("sizes",c(C.vh,C.fraction)),shadows:u("shadows"),logical:function(e){let{property:t,scale:r,transform:n}=e;return{scale:r,property:d(t),transform:r?l({scale:r,compose:n}):n}},blur:u("blur",C.blur)},k={background:A.colors("background"),backgroundColor:A.colors("backgroundColor"),backgroundImage:A.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:C.bgClip},bgSize:A.prop("backgroundSize"),bgPosition:A.prop("backgroundPosition"),bg:A.colors("background"),bgColor:A.colors("backgroundColor"),bgPos:A.prop("backgroundPosition"),bgRepeat:A.prop("backgroundRepeat"),bgAttachment:A.prop("backgroundAttachment"),bgGradient:A.gradients("backgroundImage"),bgClip:{transform:C.bgClip}};Object.assign(k,{bgImage:k.backgroundImage,bgImg:k.backgroundImage});var E={border:A.borders("border"),borderWidth:A.borderWidths("borderWidth"),borderStyle:A.borderStyles("borderStyle"),borderColor:A.colors("borderColor"),borderRadius:A.radii("borderRadius"),borderTop:A.borders("borderTop"),borderBlockStart:A.borders("borderBlockStart"),borderTopLeftRadius:A.radii("borderTopLeftRadius"),borderStartStartRadius:A.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:A.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:A.radii("borderTopRightRadius"),borderStartEndRadius:A.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:A.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:A.borders("borderRight"),borderInlineEnd:A.borders("borderInlineEnd"),borderBottom:A.borders("borderBottom"),borderBlockEnd:A.borders("borderBlockEnd"),borderBottomLeftRadius:A.radii("borderBottomLeftRadius"),borderBottomRightRadius:A.radii("borderBottomRightRadius"),borderLeft:A.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:A.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:A.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:A.borders(["borderLeft","borderRight"]),borderInline:A.borders("borderInline"),borderY:A.borders(["borderTop","borderBottom"]),borderBlock:A.borders("borderBlock"),borderTopWidth:A.borderWidths("borderTopWidth"),borderBlockStartWidth:A.borderWidths("borderBlockStartWidth"),borderTopColor:A.colors("borderTopColor"),borderBlockStartColor:A.colors("borderBlockStartColor"),borderTopStyle:A.borderStyles("borderTopStyle"),borderBlockStartStyle:A.borderStyles("borderBlockStartStyle"),borderBottomWidth:A.borderWidths("borderBottomWidth"),borderBlockEndWidth:A.borderWidths("borderBlockEndWidth"),borderBottomColor:A.colors("borderBottomColor"),borderBlockEndColor:A.colors("borderBlockEndColor"),borderBottomStyle:A.borderStyles("borderBottomStyle"),borderBlockEndStyle:A.borderStyles("borderBlockEndStyle"),borderLeftWidth:A.borderWidths("borderLeftWidth"),borderInlineStartWidth:A.borderWidths("borderInlineStartWidth"),borderLeftColor:A.colors("borderLeftColor"),borderInlineStartColor:A.colors("borderInlineStartColor"),borderLeftStyle:A.borderStyles("borderLeftStyle"),borderInlineStartStyle:A.borderStyles("borderInlineStartStyle"),borderRightWidth:A.borderWidths("borderRightWidth"),borderInlineEndWidth:A.borderWidths("borderInlineEndWidth"),borderRightColor:A.colors("borderRightColor"),borderInlineEndColor:A.colors("borderInlineEndColor"),borderRightStyle:A.borderStyles("borderRightStyle"),borderInlineEndStyle:A.borderStyles("borderInlineEndStyle"),borderTopRadius:A.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:A.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:A.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:A.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(E,{rounded:E.borderRadius,roundedTop:E.borderTopRadius,roundedTopLeft:E.borderTopLeftRadius,roundedTopRight:E.borderTopRightRadius,roundedTopStart:E.borderStartStartRadius,roundedTopEnd:E.borderStartEndRadius,roundedBottom:E.borderBottomRadius,roundedBottomLeft:E.borderBottomLeftRadius,roundedBottomRight:E.borderBottomRightRadius,roundedBottomStart:E.borderEndStartRadius,roundedBottomEnd:E.borderEndEndRadius,roundedLeft:E.borderLeftRadius,roundedRight:E.borderRightRadius,roundedStart:E.borderInlineStartRadius,roundedEnd:E.borderInlineEndRadius,borderStart:E.borderInlineStart,borderEnd:E.borderInlineEnd,borderTopStartRadius:E.borderStartStartRadius,borderTopEndRadius:E.borderStartEndRadius,borderBottomStartRadius:E.borderEndStartRadius,borderBottomEndRadius:E.borderEndEndRadius,borderStartRadius:E.borderInlineStartRadius,borderEndRadius:E.borderInlineEndRadius,borderStartWidth:E.borderInlineStartWidth,borderEndWidth:E.borderInlineEndWidth,borderStartColor:E.borderInlineStartColor,borderEndColor:E.borderInlineEndColor,borderStartStyle:E.borderInlineStartStyle,borderEndStyle:E.borderInlineEndStyle});var S={color:A.colors("color"),textColor:A.colors("color"),fill:A.colors("fill"),stroke:A.colors("stroke")},T={boxShadow:A.shadows("boxShadow"),mixBlendMode:!0,blendMode:A.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:A.prop("backgroundBlendMode"),opacity:!0};Object.assign(T,{shadow:T.boxShadow});var I={filter:{transform:C.filter},blur:A.blur("--chakra-blur"),brightness:A.propT("--chakra-brightness",C.brightness),contrast:A.propT("--chakra-contrast",C.contrast),hueRotate:A.degreeT("--chakra-hue-rotate"),invert:A.propT("--chakra-invert",C.invert),saturate:A.propT("--chakra-saturate",C.saturate),dropShadow:A.propT("--chakra-drop-shadow",C.dropShadow),backdropFilter:{transform:C.backdropFilter},backdropBlur:A.blur("--chakra-backdrop-blur"),backdropBrightness:A.propT("--chakra-backdrop-brightness",C.brightness),backdropContrast:A.propT("--chakra-backdrop-contrast",C.contrast),backdropHueRotate:A.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:A.propT("--chakra-backdrop-invert",C.invert),backdropSaturate:A.propT("--chakra-backdrop-saturate",C.saturate)},P={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:C.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:A.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:A.space("gap"),rowGap:A.space("rowGap"),columnGap:A.space("columnGap")};Object.assign(P,{flexDir:P.flexDirection});var O={gridGap:A.space("gridGap"),gridColumnGap:A.space("gridColumnGap"),gridRowGap:A.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},R={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:C.outline},outlineOffset:!0,outlineColor:A.colors("outlineColor")},M={width:A.sizesT("width"),inlineSize:A.sizesT("inlineSize"),height:A.sizes("height"),blockSize:A.sizes("blockSize"),boxSize:A.sizes(["width","height"]),minWidth:A.sizes("minWidth"),minInlineSize:A.sizes("minInlineSize"),minHeight:A.sizes("minHeight"),minBlockSize:A.sizes("minBlockSize"),maxWidth:A.sizes("maxWidth"),maxInlineSize:A.sizes("maxInlineSize"),maxHeight:A.sizes("maxHeight"),maxBlockSize:A.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e;return{[`@media screen and (min-width: ${o})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e;return{[`@media screen and (max-width: ${o})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:A.propT("float",C.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(M,{w:M.width,h:M.height,minW:M.minWidth,maxW:M.maxWidth,minH:M.minHeight,maxH:M.maxHeight,overscroll:M.overscrollBehavior,overscrollX:M.overscrollBehaviorX,overscrollY:M.overscrollBehaviorY});var N={listStyleType:!0,listStylePosition:!0,listStylePos:A.prop("listStylePosition"),listStyleImage:!0,listStyleImg:A.prop("listStyleImage")},j=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e}),D={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},B={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},L=(e,t,r)=>{let n={},i=j(e,t,{});for(let e in i)e in r&&null!=r[e]||(n[e]=i[e]);return n},$={position:!0,pos:A.prop("position"),zIndex:A.prop("zIndex","zIndices"),inset:A.spaceT("inset"),insetX:A.spaceT(["left","right"]),insetInline:A.spaceT("insetInline"),insetY:A.spaceT(["top","bottom"]),insetBlock:A.spaceT("insetBlock"),top:A.spaceT("top"),insetBlockStart:A.spaceT("insetBlockStart"),bottom:A.spaceT("bottom"),insetBlockEnd:A.spaceT("insetBlockEnd"),left:A.spaceT("left"),insetInlineStart:A.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:A.spaceT("right"),insetInlineEnd:A.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign($,{insetStart:$.insetInlineStart,insetEnd:$.insetInlineEnd});var U={ring:{transform:C.ring},ringColor:A.colors("--chakra-ring-color"),ringOffset:A.prop("--chakra-ring-offset-width"),ringOffsetColor:A.colors("--chakra-ring-offset-color"),ringInset:A.prop("--chakra-ring-inset")},z={margin:A.spaceT("margin"),marginTop:A.spaceT("marginTop"),marginBlockStart:A.spaceT("marginBlockStart"),marginRight:A.spaceT("marginRight"),marginInlineEnd:A.spaceT("marginInlineEnd"),marginBottom:A.spaceT("marginBottom"),marginBlockEnd:A.spaceT("marginBlockEnd"),marginLeft:A.spaceT("marginLeft"),marginInlineStart:A.spaceT("marginInlineStart"),marginX:A.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:A.spaceT("marginInline"),marginY:A.spaceT(["marginTop","marginBottom"]),marginBlock:A.spaceT("marginBlock"),padding:A.space("padding"),paddingTop:A.space("paddingTop"),paddingBlockStart:A.space("paddingBlockStart"),paddingRight:A.space("paddingRight"),paddingBottom:A.space("paddingBottom"),paddingBlockEnd:A.space("paddingBlockEnd"),paddingLeft:A.space("paddingLeft"),paddingInlineStart:A.space("paddingInlineStart"),paddingInlineEnd:A.space("paddingInlineEnd"),paddingX:A.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:A.space("paddingInline"),paddingY:A.space(["paddingTop","paddingBottom"]),paddingBlock:A.space("paddingBlock")};Object.assign(z,{m:z.margin,mt:z.marginTop,mr:z.marginRight,me:z.marginInlineEnd,marginEnd:z.marginInlineEnd,mb:z.marginBottom,ml:z.marginLeft,ms:z.marginInlineStart,marginStart:z.marginInlineStart,mx:z.marginX,my:z.marginY,p:z.padding,pt:z.paddingTop,py:z.paddingY,px:z.paddingX,pb:z.paddingBottom,pl:z.paddingLeft,ps:z.paddingInlineStart,paddingStart:z.paddingInlineStart,pr:z.paddingRight,pe:z.paddingInlineEnd,paddingEnd:z.paddingInlineEnd});var F={textDecorationColor:A.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:A.shadows("textShadow")},q={clipPath:!0,transform:A.propT("transform",C.transform),transformOrigin:!0,translateX:A.spaceT("--chakra-translate-x"),translateY:A.spaceT("--chakra-translate-y"),skewX:A.degreeT("--chakra-skew-x"),skewY:A.degreeT("--chakra-skew-y"),scaleX:A.prop("--chakra-scale-x"),scaleY:A.prop("--chakra-scale-y"),scale:A.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:A.degreeT("--chakra-rotate")},H={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:A.prop("transitionDuration","transition.duration"),transitionProperty:A.prop("transitionProperty","transition.property"),transitionTimingFunction:A.prop("transitionTimingFunction","transition.easing")},W={fontFamily:A.prop("fontFamily","fonts"),fontSize:A.prop("fontSize","fontSizes",C.px),fontWeight:A.prop("fontWeight","fontWeights"),lineHeight:A.prop("lineHeight","lineHeights"),letterSpacing:A.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},V={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:A.spaceT("scrollMargin"),scrollMarginTop:A.spaceT("scrollMarginTop"),scrollMarginBottom:A.spaceT("scrollMarginBottom"),scrollMarginLeft:A.spaceT("scrollMarginLeft"),scrollMarginRight:A.spaceT("scrollMarginRight"),scrollMarginX:A.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:A.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:A.spaceT("scrollPadding"),scrollPaddingTop:A.spaceT("scrollPaddingTop"),scrollPaddingBottom:A.spaceT("scrollPaddingBottom"),scrollPaddingLeft:A.spaceT("scrollPaddingLeft"),scrollPaddingRight:A.spaceT("scrollPaddingRight"),scrollPaddingX:A.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:A.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Z(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var G=(e,...t)=>t.map(Z).join(` ${e} `).replace(/calc/g,""),K=(...e)=>`calc(${G("+",...e)})`,Y=(...e)=>`calc(${G("-",...e)})`,Q=(...e)=>`calc(${G("*",...e)})`,J=(...e)=>`calc(${G("/",...e)})`,X=e=>{let t=Z(e);return null==t||Number.isNaN(parseFloat(t))?Q(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(K(e,...t)),subtract:(...t)=>ee(Y(e,...t)),multiply:(...t)=>ee(Q(e,...t)),divide:(...t)=>ee(J(e,...t)),negate:()=>ee(X(e)),toString:()=>e.toString()}),{add:K,subtract:Y,multiply:Q,divide:J,negate:X});function et(e,t,r){let n=function(e,t=""){var r;return((r=function(e,t="-"){return e.replace(/\s+/g,t)}(`--${(function(e,t=""){return[t,e].filter(Boolean).join("-")})(e,t)}`.toString())).includes("\\.")?r:Number.isInteger(parseFloat(r.toString()))?r:r.replace(".","\\.")).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(e,r);return{variable:n,reference:`var(${n}${t?`, ${t}`:""})`}}function er(e,t){let r={};for(let n of t){if(Array.isArray(n)){let[t,i]=n;r[t]=et(`${e}-${t}`,i);continue}r[n]=et(`${e}-${n}`)}return r}function en(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=en(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function el(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${en(e)})`),t&&r.push("and",`(max-width: ${en(t)})`),r.join(" ")}var ec=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,eu=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,ed=(e,t)=>`${e}:focus-visible ${t}`,eh=(e,t)=>`${e}:focus-within ${t}`,ef=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,ep=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,eg=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,em=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,ev=e=>ey(t=>e(t,"&"),"[role=group]","[data-group]",".group"),eb=e=>ey(t=>e(t,"~ &"),"[data-peer]",".peer"),ey=(e,...t)=>t.map(e).join(", "),ew={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ev(ec),_peerHover:eb(ec),_groupFocus:ev(eu),_peerFocus:eb(eu),_groupFocusVisible:ev(ed),_peerFocusVisible:eb(ed),_groupActive:ev(ef),_peerActive:eb(ef),_groupDisabled:ev(ep),_peerDisabled:eb(ep),_groupInvalid:ev(eg),_peerInvalid:eb(eg),_groupChecked:ev(em),_peerChecked:eb(em),_groupFocusWithin:ev(eh),_peerFocusWithin:eb(eh),_peerPlaceholderShown:eb((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ex=Object.keys(ew);function e_(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function eC(e,t,r={}){let{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if("object"==typeof r&&null!=r&&!Array.isArray(r)||Array.isArray(r)){let s={};for(let[l,c]of Object.entries(r)){let u=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,u];if(null==n?void 0:n(r,d))return t(r,o);s[u]=e(c,d)}return s}return t(r,o)}(e)}var eA=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ek=e=>ex.includes(e)||"default"===e;function eE(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),{cssMap:o,cssVars:a}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:c}=s,{variable:u,reference:d}=e_(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let[e,...t]=a.split("."),r=`${e}.-${t.join(".")}`,n=ee.negate(c),i=ee.negate(d);o[r]={value:n,var:u,varRef:i}}r[u]=c,o[a]={value:c,var:u,varRef:d};continue}let h=r=>{let n=[String(a).split(".")[0],r].join(".");if(!e[n])return r;let{reference:i}=e_(n,null==t?void 0:t.cssVarPrefix);return i};r=i(r,Object.entries((0,n.Kn)(c)?c:{default:c}).reduce((e,[t,r])=>{var n;if(!r)return e;let i=h(`${r}`);return"default"===t?e[u]=i:e[null!=(n=null==ew?void 0:ew[t])?n:t]={[u]:i},e},{})),o[a]={value:d,var:u,varRef:d}}return{cssVars:r,cssMap:o}}(function({tokens:e,semanticTokens:t}){let r={};return eC(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),eC(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(ek)}),r}({tokens:function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,eA),semanticTokens:r.semanticTokens}),{cssVarPrefix:null==(t=r.config)?void 0:t.cssVarPrefix});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...a},__cssMap:o,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=ea(e),i=Object.entries(e).sort(ei).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:el(null,o),minWQuery:el(t),minMaxQuery:el(t,o)}}),o=new Set(Object.keys(eo(e))),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...r.map(e=>el(e)).slice(1)],toArrayValue(e){if(!(0,n.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}(r.breakpoints)}),r}var eS=i({},k,E,S,P,M,I,U,R,O,{srOnly:{transform:e=>!0===e?D:"focusable"===e?B:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>L(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>L(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>L(t,e,r)}},$,T,z,V,W,F,q,N,H),eT=Object.keys(Object.assign({},z,M,P,O,$)),eI=[...Object.keys(eS),...ex],eP={...eS,...ew},eO=e=>e in eP,eR=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let l=(0,n.Pu)(e[s],t);if(null==l)continue;if(!Array.isArray(l=(0,n.Kn)(l)&&r(l)?i(l):l)){a[s]=l;continue}let c=l.slice(0,o.length).length;for(let e=0;e<c;e+=1){let t=null==o?void 0:o[e];if(!t){a[s]=l[e];continue}a[t]=a[t]||{},null!=l[e]&&(a[t][s]=l[e])}}return a},eM=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eN=(e,t)=>{var r,n;if(null==t)return t;let i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],r="",n=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(n=!0,r+=o):")"===o?(n=!1,r+=o):","!==o||n?r+=o:(t.push(r),r="")}return(r=r.trim())&&t.push(r),t}(t);return t=null!=(n=null!=(r=i(a))?r:o(s))?n:o(t)},ej=e=>t=>(function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var l,c,u;let d=(0,n.Pu)(e,o),h=eR(d)(o),f={};for(let e in h){let p=h[e],g=(0,n.Pu)(p,o);e in r&&(e=r[e]),eM(e,g)&&(g=eN(o,g));let m=t[e];if(!0===m&&(m={property:e}),(0,n.Kn)(g)){f[e]=null!=(l=f[e])?l:{},f[e]=i({},f[e],a(g,!0));continue}let v=null!=(u=null==(c=null==m?void 0:m.transform)?void 0:c.call(m,g,o,d))?u:g;v=(null==m?void 0:m.processResult)?a(v,!0):v;let b=(0,n.Pu)(null==m?void 0:m.property,o);if(!s&&(null==m?void 0:m.static)&&(f=i({},f,(0,n.Pu)(m.static,o))),b&&Array.isArray(b)){for(let e of b)f[e]=v;continue}if(b){"&"===b&&(0,n.Kn)(v)?f=i({},f,v):f[b]=v;continue}if((0,n.Kn)(v)){f=i({},f,v);continue}f[e]=v}return f};return a})({theme:t,pseudos:ew,configs:eS})(e);function eD(e){return e}function eB(e){return e}function eL(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function e$(e){return t=>{var r;let{variant:o,size:a,theme:s}=t,l=function(e){let t=e.__breakpoints;return function(e,r,o,a){var s,l,c;if(!t)return;let u={},d=(c=t.toArrayValue,Array.isArray(o)?o:(0,n.Kn)(o)?c(o):null!=o?[o]:void 0);if(!d)return u;let h=d.length,f=1===h,p=!!e.parts;for(let o=0;o<h;o++){let c=t.details[o],h=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(d,o)],g=el(c.minW,null==h?void 0:h._minW),m=(0,n.Pu)(null==(s=e[r])?void 0:s[d[o]],a);if(m){if(p){null==(l=e.parts)||l.forEach(e=>{i(u,{[e]:f?m[e]:{[g]:m[e]}})});continue}if(!p){f?i(u,m):u[g]=m;continue}u[g]=m}}return u}}(s);return i({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eU(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}function ez(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},75350:function(e,t,r){"use strict";r.d(t,{m:function(){return E}});var n,i=r(84920),o=r(12498),a=r(33179),s=r(21759),l=r(36597),c=r(67294),u=r(87462),d=r(45042),h=/^((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|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)-.*))$/,f=(0,d.Z)(function(e){return h.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),p=r(91683),g=r(70444),m=r(48137),v=r(27278),b=function(e){return"theme"!==e},y=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?f:b},w=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},x=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,g.hC)(t,r,n),(0,v.L)(function(){return(0,g.My)(t,r,n)}),null},_=(function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=w(t,r,o),l=s||y(a),d=!l("as");return function(){var h=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==h[0]||void 0===h[0].raw)f.push.apply(f,h);else{f.push(h[0][0]);for(var v=h.length,b=1;b<v;b++)f.push(h[b],h[0][b])}var _=(0,p.w)(function(e,t,r){var n=d&&e.as||a,o="",u=[],h=e;if(null==e.theme){for(var v in h={},e)h[v]=e[v];h.theme=(0,c.useContext)(p.T)}"string"==typeof e.className?o=(0,g.fp)(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var b=(0,m.O)(f.concat(u),t.registered,h);o+=t.key+"-"+b.name,void 0!==i&&(o+=" "+i);var w=d&&void 0===s?y(n):l,_={};for(var C in e)(!d||"as"!==C)&&w(C)&&(_[C]=e[C]);return _.className=o,_.ref=r,(0,c.createElement)(c.Fragment,null,(0,c.createElement)(x,{cache:t,serialized:b,isStringTag:"string"==typeof n}),(0,c.createElement)(n,_))});return _.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=f,_.__emotion_forwardProp=s,Object.defineProperty(_,"toString",{value:function(){return"."+i}}),_.withComponent=function(t,n){return e(t,(0,u.Z)({},r,n,{shouldForwardProp:w(_,n,!0)})).apply(void 0,f)},_}}).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){_[e]=_(e)});var C=null!=(n=_.default)?n:_,A=({baseStyle:e})=>t=>{let{theme:r,css:n,__css:i,sx:o,...c}=t,u=(0,s.lw)(c,(e,t)=>(0,a.ZR)(t)),d=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},i,(0,l.Pu)(e,t),(0,s.YU)(u),o),h=(0,a.iv)(d)(t.theme);return n?[h,n]:h};function k(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=i.x);let a=A({baseStyle:r}),s=C(e,n)(a);return c.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,o.If)();return c.createElement(s,{ref:t,"data-theme":n?r:void 0,...e})})}var E=function(){let e=new Map;return new Proxy(k,{apply:(e,t,r)=>k(...r),get:(t,r)=>(e.has(r)||e.set(r,k(r)),e.get(r))})}()},34629:function(e,t,r){"use strict";r.d(t,{dQ:function(){return a},uP:function(){return o}});var n=r(75119),i=r(12498);function o(){let e=(0,i.If)(),t=(0,n.F)();return{...e,theme:t}}function a(e,t,r){let i=(0,n.F)();return(function(e,t,r){let n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{let o=i.filter(Boolean),a=n.map((t,n)=>{var i,a;return"breakpoints"===e?function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t):function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,`${e}.${t}`,null!=(a=o[n])?a:t)});return Array.isArray(t)?a:a[0]}})(e,t,r)(i)}},84920:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});var n=new Set([...r(33179).cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),i=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function o(e){return i.has(e)||!n.has(e)}},75119:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(91683),i=r(67294);function o(){let e=(0,i.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},35059:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(67294);function i(e){return(0,n.forwardRef)(e)}},91639:function(e,t,r){"use strict";r.d(t,{jC:function(){return d},mq:function(){return u}});var n=r(34629),i=r(33179),o=r(21759),a=r(38554),s=r(67294),l=r(69590);function c(e,t={}){var r;let{styleConfig:c,...u}=t,{theme:d,colorMode:h}=(0,n.uP)(),f=e?(0,o.Wf)(d,`components.${e}`):void 0,p=c||f,g=a({theme:d,colorMode:h},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,o.YU)((0,o.CE)(u,["children"]))),m=(0,s.useRef)({});if(p){let e=(0,i.Ud)(p)(g);l(m.current,e)||(m.current=e)}return m.current}function u(e,t={}){return c(e,t)}function d(e,t={}){return c(e,t)}},80333:function(e,t,r){"use strict";r.d(t,{n:function(){return c}});var n=r(1004),i=r(55086),o=r(25432),a=r(35059),s=r(75350),l=r(85893),c=(0,a.G)(function(e,t){let r=(0,i.bt)(e),a=(0,n.s)();return(0,l.jsx)(s.m.div,{...r,width:"100%",ref:t,className:(0,o.cx)("chakra-tabs__tab-panels",e.className),__css:a.tabpanels})});c.displayName="TabPanels"},69558:function(e,t,r){"use strict";r.d(t,{x:function(){return c}});var n=r(1004),i=r(55086),o=r(25432),a=r(35059),s=r(75350),l=r(85893),c=(0,a.G)(function(e,t){let r=(0,i.WE)({...e,ref:t}),a=(0,n.s)();return(0,l.jsx)(s.m.div,{outline:"0",...r,className:(0,o.cx)("chakra-tabs__tab-panel",e.className),__css:a.tabpanel})});c.displayName="TabPanel"},55086:function(e,t,r){"use strict";r.d(t,{WE:function(){return A},X:function(){return v},YE:function(){return m},bt:function(){return C},hp:function(){return y},mE:function(){return h},xD:function(){return w}});var n=r(67562),i=r(73614),o=r(55227),a=r(61942),s=r(92495),l=r(81103),c=r(92625),u=r(25432),d=r(67294),[h,f,p,g]=(0,i.n)();function m(e){var t;let{defaultIndex:r,onChange:n,index:i,isManual:o,isLazy:s,lazyBehavior:l="unmount",orientation:c="horizontal",direction:u="ltr",...h}=e,[f,g]=(0,d.useState)(null!=r?r:0),[m,v]=(0,a.T)({defaultValue:null!=r?r:0,value:i,onChange:n});(0,d.useEffect)(()=>{null!=i&&g(i)},[i]);let b=p(),y=(0,d.useId)(),w=null!=(t=e.id)?t:y;return{id:`tabs-${w}`,selectedIndex:m,focusedIndex:f,setSelectedIndex:v,setFocusedIndex:g,isManual:o,isLazy:s,lazyBehavior:l,orientation:c,descendants:b,direction:u,htmlProps:h}}var[v,b]=(0,o.k)({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function y(e){let{focusedIndex:t,orientation:r,direction:n}=b(),i=f(),o=(0,d.useCallback)(e=>{let o=()=>{var e;let r=i.nextEnabled(t);r&&(null==(e=r.node)||e.focus())},a=()=>{var e;let r=i.prevEnabled(t);r&&(null==(e=r.node)||e.focus())},s="horizontal"===r,l="vertical"===r,c={["ltr"===n?"ArrowLeft":"ArrowRight"]:()=>s&&a(),["ltr"===n?"ArrowRight":"ArrowLeft"]:()=>s&&o(),ArrowDown:()=>l&&o(),ArrowUp:()=>l&&a(),Home:()=>{var e;let t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;let t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}}[e.key];c&&(e.preventDefault(),c(e))},[i,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:(0,u.v0)(e.onKeyDown,o)}}function w(e){let{isDisabled:t,isFocusable:r,...i}=e,{setSelectedIndex:o,isManual:a,id:s,setFocusedIndex:c,selectedIndex:d}=b(),{index:h,register:f}=g({disabled:t&&!r}),p=h===d;return{...(0,n.h)({...i,ref:(0,l.lq)(f,e.ref),isDisabled:t,isFocusable:r,onClick:(0,u.v0)(e.onClick,()=>{o(h)})}),id:k(s,h),role:"tab",tabIndex:p?0:-1,type:"button","aria-selected":p,"aria-controls":E(s,h),onFocus:t?void 0:(0,u.v0)(e.onFocus,()=>{c(h);let e=t&&r;a||e||o(h)})}}var[x,_]=(0,o.k)({});function C(e){let{id:t,selectedIndex:r}=b(),n=(0,s.W)(e.children).map((e,n)=>(0,d.createElement)(x,{key:n,value:{isSelected:n===r,id:E(t,n),tabId:k(t,n),selectedIndex:r}},e));return{...e,children:n}}function A(e){let{children:t,...r}=e,{isLazy:n,lazyBehavior:i}=b(),{isSelected:o,id:a,tabId:s}=_(),l=(0,d.useRef)(!1);o&&(l.current=!0);let u=(0,c.k)({wasSelected:l.current,isSelected:o,enabled:n,mode:i});return{tabIndex:0,...r,children:u?t:null,role:"tabpanel","aria-labelledby":s,hidden:!o,id:a}}function k(e,t){return`${e}--tab-${t}`}function E(e,t){return`${e}--tabpanel-${t}`}},49394:function(e,t,r){"use strict";r.d(t,{O:function(){return c}});var n=r(1004),i=r(55086),o=r(25432),a=r(35059),s=r(75350),l=r(85893),c=(0,a.G)(function(e,t){let r=(0,n.s)(),a=(0,i.xD)({...e,ref:t}),c={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...r.tab};return(0,l.jsx)(s.m.button,{...a,className:(0,o.cx)("chakra-tabs__tab",e.className),__css:c})});c.displayName="Tab"},56005:function(e,t,r){"use strict";r.d(t,{t:function(){return c}});var n=r(1004),i=r(55086),o=r(25432),a=r(35059),s=r(75350),l=r(85893),c=(0,a.G)(function(e,t){let r=(0,i.hp)({...e,ref:t}),a={display:"flex",...(0,n.s)().tablist};return(0,l.jsx)(s.m.div,{...r,className:(0,o.cx)("chakra-tabs__tablist",e.className),__css:a})});c.displayName="TabList"},1004:function(e,t,r){"use strict";r.d(t,{m:function(){return p},s:function(){return f}});var n=r(55086),i=r(55227),o=r(35059),a=r(91639),s=r(33179),l=r(75350),c=r(25432),u=r(67294),d=r(85893),[h,f]=(0,i.k)({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),p=(0,o.G)(function(e,t){let r=(0,a.jC)("Tabs",e),{children:i,className:o,...f}=(0,s.Lr)(e),{htmlProps:p,descendants:g,...m}=(0,n.YE)(f),v=(0,u.useMemo)(()=>m,[m]),{isFitted:b,...y}=p;return(0,d.jsx)(n.mE,{value:g,children:(0,d.jsx)(n.X,{value:v,children:(0,d.jsx)(h,{value:r,children:(0,d.jsx)(l.m.div,{className:(0,c.cx)("chakra-tabs",o),ref:t,...y,__css:r.root,children:i})})})})});p.displayName="Tabs"},89594:function(e,t,r){"use strict";r.d(t,{SD:function(){return g},Sn:function(){return f},Vp:function(){return h}});var n=r(56877),i=r(55227),o=r(35059),a=r(91639),s=r(33179),l=r(75350),c=r(85893),[u,d]=(0,i.k)({name:"TagStylesContext",errorMessage:"useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tag />\" "}),h=(0,o.G)((e,t)=>{let r=(0,a.jC)("Tag",e),n=(0,s.Lr)(e),i={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return(0,c.jsx)(u,{value:r,children:(0,c.jsx)(l.m.span,{ref:t,...n,__css:i})})});h.displayName="Tag";var f=(0,o.G)((e,t)=>{let r=d();return(0,c.jsx)(l.m.span,{ref:t,noOfLines:1,...e,__css:r.label})});f.displayName="TagLabel",(0,o.G)((e,t)=>(0,c.jsx)(n.J,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e})).displayName="TagLeftIcon",(0,o.G)((e,t)=>(0,c.jsx)(n.J,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e})).displayName="TagRightIcon";var p=e=>(0,c.jsx)(n.J,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:(0,c.jsx)("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});p.displayName="TagCloseIcon";var g=(0,o.G)((e,t)=>{let{isDisabled:r,children:n,...i}=e,o={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...d().closeButton};return(0,c.jsx)(l.m.button,{ref:t,"aria-label":"close",...i,type:"button",disabled:r,__css:o,children:n||(0,c.jsx)(p,{})})});g.displayName="TagCloseButton"},41753:function(e,t,r){"use strict";r.d(t,{g:function(){return d}});var n=r(74939),i=r(35059),o=r(91639),a=r(33179),s=r(75350),l=r(25432),c=r(85893),u=["h","minH","height","minHeight"],d=(0,i.G)((e,t)=>{let r=(0,o.mq)("Textarea",e),{className:i,rows:d,...h}=(0,a.Lr)(e),f=(0,n.Y)(h),p=d?function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(r,u):r;return(0,c.jsx)(s.m.textarea,{ref:t,rows:d,...f,className:(0,l.cx)("chakra-textarea",i),__css:p})});d.displayName="Textarea"},75904:function(e,t,r){"use strict";function n(e,t){return r=>"dark"===r.colorMode?t:e}function i(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}r.d(t,{f:function(){return i},x:function(){return n}})},49534:function(e,t,r){"use strict";function n(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function i(e,t){var r,i;let o=function(e,t=""){return`--${function(e,t=""){return[t,n(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:o,reference:(r="string"==typeof(i=null==t?void 0:t.fallback)?i:null==i?void 0:i.reference,`var(${n(o)}${r?`, ${r}`:""})`)}}r.d(t,{gJ:function(){return i}})},47128:function(e,t,r){"use strict";r.d(t,{k2:function(){return A},Lq:function(){return b},cM:function(){return y},_T:function(){return _},p:function(){return E},DZ:function(){return C}});var n=r(33179);function i(e,t,r){return Math.min(Math.max(e,r),t)}class o extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}function a(e){if("string"!=typeof e)throw new o(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=p.test(e)?function(e){let t=l[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(e.toLowerCase().trim())];if(!t)throw new o(e);return`#${t}`}(e):e;let r=u.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(c(e,2),16)),parseInt(c(e[3]||"f",2),16)/255]}let n=d.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let a=h.exec(t);if(a){let e=Array.from(a).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let s=f.exec(t);if(s){let[t,r,n,a]=Array.from(s).slice(1).map(parseFloat);if(i(0,100,r)!==r||i(0,100,n)!==n)throw new o(e);return[...m(t,r,n),a||1]}throw new o(e)}let s=e=>parseInt(e.replace(/_/g,""),36),l="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let r=s(t.substring(0,3)),n=s(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),c=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),u=RegExp(`^#${c("([a-f0-9])",3)}([a-f0-9])?$`,"i"),d=RegExp(`^#${c("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),h=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${c(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),f=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,p=/^[a-z]+$/i,g=e=>Math.round(255*e),m=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(g);let i=(e%360+360)%360/60,o=t/100*(1-Math.abs(2*n-1)),a=o*(1-Math.abs(i%2-1)),s=0,l=0,c=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,c=a):i>=3&&i<4?(l=a,c=o):i>=4&&i<5?(s=a,c=o):i>=5&&i<6&&(s=o,c=a);let u=n-o/2;return[s+u,l+u,c+u].map(g)};var v=e=>0===Object.keys(e).length,b=(e,t,r)=>{let n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:void 0;return void 0===e?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,n,o]=a(e),s=e=>{let t=i(0,255,e).toString(16);return 1===t.length?`0${t}`:t};s(t),s(r),s(n),o<1&&s(Math.round(255*o))}(n),n}catch{return null!=r?r:"#000000"}},y=(e,t,r)=>{var i;return null!=(i=(0,n.K1)(e,"colors",t))?i:r},w=e=>{let[t,r,n]=a(e);return(299*t+587*r+114*n)/1e3},x=e=>t=>128>w(b(t,e))?"dark":"light",_=e=>t=>"dark"===x(e)(t),C=(e,t)=>r=>(function(e,t){var r;let[n,o,s,l]=a(e);return r=l-t,`rgba(${i(0,255,n).toFixed()}, ${i(0,255,o).toFixed()}, ${i(0,255,s).toFixed()}, ${parseFloat(i(0,1,r).toFixed(3))})`})(b(r,e),1-t);function A(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}var k=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;function E(e){var t;let r=k();return!e||v(e)?r:e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){let n=t>>8*e&255;r+=`00${n.toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}},44069:function(e,t,r){"use strict";r.d(t,{wE:function(){return it},rS:function(){return ie}});var n,i,o,a,s,l,c,u,d,h,f,p,g,m,v,b,y,w,x,_,C,A,k,E={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},S={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},T={...S,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},I={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...E,sizes:T,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:S,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},P=r(33179),{defineMultiStyleConfig:O,definePartsStyle:R}=(0,P.D)(["stepper","step","title","description","indicator","separator","icon","number"]),M=(0,P.gJ)("stepper-indicator-size"),N=(0,P.gJ)("stepper-icon-size"),j=(0,P.gJ)("stepper-title-font-size"),D=(0,P.gJ)("stepper-description-font-size"),B=(0,P.gJ)("stepper-accent-color"),L=O({baseStyle:R(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[B.variable]:`colors.${e}.500`,_dark:{[B.variable]:`colors.${e}.200`}},title:{fontSize:j.reference,fontWeight:"medium"},description:{fontSize:D.reference,color:"chakra-subtle-text"},number:{fontSize:j.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:N.reference,height:N.reference},indicator:{flexShrink:0,borderRadius:"full",width:M.reference,height:M.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:B.reference},"&[data-status=complete]":{bg:B.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:B.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${M.reference} - 8px)`,top:`calc(${M.reference} + 4px)`,insetStart:`calc(${M.reference} / 2 - 1px)`}}})),sizes:{xs:R({stepper:{[M.variable]:"sizes.4",[N.variable]:"sizes.3",[j.variable]:"fontSizes.xs",[D.variable]:"fontSizes.xs"}}),sm:R({stepper:{[M.variable]:"sizes.6",[N.variable]:"sizes.4",[j.variable]:"fontSizes.sm",[D.variable]:"fontSizes.xs"}}),md:R({stepper:{[M.variable]:"sizes.8",[N.variable]:"sizes.5",[j.variable]:"fontSizes.md",[D.variable]:"fontSizes.sm"}}),lg:R({stepper:{[M.variable]:"sizes.10",[N.variable]:"sizes.6",[j.variable]:"fontSizes.lg",[D.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),$=r(30871),U=r(49534),z=r(25432);function F(e){return(0,z.Kn)(e)&&e.reference?e.reference:String(e)}var q=(e,...t)=>t.map(F).join(` ${e} `).replace(/calc/g,""),H=(...e)=>`calc(${q("+",...e)})`,W=(...e)=>`calc(${q("-",...e)})`,V=(...e)=>`calc(${q("*",...e)})`,Z=(...e)=>`calc(${q("/",...e)})`,G=e=>{let t=F(e);return null==t||Number.isNaN(parseFloat(t))?V(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},K=Object.assign(e=>({add:(...t)=>K(H(e,...t)),subtract:(...t)=>K(W(e,...t)),multiply:(...t)=>K(V(e,...t)),divide:(...t)=>K(Z(e,...t)),negate:()=>K(G(e)),toString:()=>e.toString()}),{add:H,subtract:W,multiply:V,divide:Z,negate:G}),{defineMultiStyleConfig:Y,definePartsStyle:Q}=(0,P.D)($.ke.keys),J=(0,U.gJ)("switch-track-width"),X=(0,U.gJ)("switch-track-height"),ee=(0,U.gJ)("switch-track-diff"),et=K.subtract(J,X),er=(0,U.gJ)("switch-thumb-x"),en=(0,U.gJ)("switch-bg"),ei=(0,P.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[J.reference],height:[X.reference],transitionProperty:"common",transitionDuration:"fast",[en.variable]:"colors.gray.300",_dark:{[en.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[en.variable]:`colors.${t}.500`,_dark:{[en.variable]:`colors.${t}.200`}},bg:en.reference}}),eo=(0,P.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[X.reference],height:[X.reference],_checked:{transform:`translateX(${er.reference})`}}),ea=Y({baseStyle:Q(e=>({container:{[ee.variable]:et,[er.variable]:ee.reference,_rtl:{[er.variable]:K(ee).negate().toString()}},track:ei(e),thumb:eo})),sizes:{sm:Q({container:{[J.variable]:"1.375rem",[X.variable]:"sizes.3"}}),md:Q({container:{[J.variable]:"1.875rem",[X.variable]:"sizes.4"}}),lg:Q({container:{[J.variable]:"2.875rem",[X.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}}),es=r(75904),{defineMultiStyleConfig:el,definePartsStyle:ec}=(0,P.D)($.l1.keys),eu=ec({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),ed=(0,P.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),eh=el({baseStyle:eu,variants:{simple:ec(e=>{let{colorScheme:t}=e;return{th:{color:(0,es.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,es.x)(`${t}.100`,`${t}.700`)(e),...ed},td:{borderBottom:"1px",borderColor:(0,es.x)(`${t}.100`,`${t}.700`)(e),...ed},caption:{color:(0,es.x)("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:ec(e=>{let{colorScheme:t}=e;return{th:{color:(0,es.x)("gray.600","gray.400")(e),borderBottom:"1px",borderColor:(0,es.x)(`${t}.100`,`${t}.700`)(e),...ed},td:{borderBottom:"1px",borderColor:(0,es.x)(`${t}.100`,`${t}.700`)(e),...ed},caption:{color:(0,es.x)("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:(0,es.x)(`${t}.100`,`${t}.700`)(e)},td:{background:(0,es.x)(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,P.k0)({})},sizes:{sm:ec({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:ec({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:ec({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),ef=r(47128),ep=(0,P.gJ)("tabs-color"),eg=(0,P.gJ)("tabs-bg"),em=(0,P.gJ)("tabs-border-color"),{defineMultiStyleConfig:ev,definePartsStyle:eb}=(0,P.D)($.nw.keys),ey=(0,P.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),ew=(0,P.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),ex=(0,P.k0)(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}}),e_=(0,P.k0)({p:4}),eC=ev({baseStyle:eb(e=>({root:ey(e),tab:ew(e),tablist:ex(e),tabpanel:e_})),sizes:{sm:eb({tab:{py:1,px:4,fontSize:"sm"}}),md:eb({tab:{fontSize:"md",py:2,px:4}}),lg:eb({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:eb(e=>{let{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[ep.variable]:`colors.${t}.600`,_dark:{[ep.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[eg.variable]:"colors.gray.200",_dark:{[eg.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ep.reference,bg:eg.reference}}}),enclosed:eb(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[em.variable]:"transparent",_selected:{[ep.variable]:`colors.${t}.600`,[em.variable]:"colors.white",_dark:{[ep.variable]:`colors.${t}.300`,[em.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:em.reference},color:ep.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":eb(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[eg.variable]:"colors.gray.50",_dark:{[eg.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[eg.variable]:"colors.white",[ep.variable]:`colors.${t}.600`,_dark:{[eg.variable]:"colors.gray.800",[ep.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ep.reference,bg:eg.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":eb(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:(0,ef.Lq)(r,`${t}.700`),bg:(0,ef.Lq)(r,`${t}.100`)}}}}),"solid-rounded":eb(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ep.variable]:"colors.gray.600",_dark:{[ep.variable]:"inherit"},_selected:{[ep.variable]:"colors.white",[eg.variable]:`colors.${t}.600`,_dark:{[ep.variable]:"colors.gray.800",[eg.variable]:`colors.${t}.300`}},color:ep.reference,bg:eg.reference}}}),unstyled:eb({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),eA=(0,P._6)("badge",["bg","color","shadow"]),ek=(0,P.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:eA.bg.reference,color:eA.color.reference,boxShadow:eA.shadow.reference}),eE=(0,P.k0)(e=>{let{colorScheme:t,theme:r}=e,n=(0,ef.DZ)(`${t}.500`,.6)(r);return{[eA.bg.variable]:`colors.${t}.500`,[eA.color.variable]:"colors.white",_dark:{[eA.bg.variable]:n,[eA.color.variable]:"colors.whiteAlpha.800"}}}),eS=(0,P.k0)(e=>{let{colorScheme:t,theme:r}=e,n=(0,ef.DZ)(`${t}.200`,.16)(r);return{[eA.bg.variable]:`colors.${t}.100`,[eA.color.variable]:`colors.${t}.800`,_dark:{[eA.bg.variable]:n,[eA.color.variable]:`colors.${t}.200`}}}),eT=(0,P.k0)(e=>{let{colorScheme:t,theme:r}=e,n=(0,ef.DZ)(`${t}.200`,.8)(r);return{[eA.color.variable]:`colors.${t}.500`,_dark:{[eA.color.variable]:n},[eA.shadow.variable]:`inset 0 0 0px 1px ${eA.color.reference}`}}),eI=(0,P.fj)({baseStyle:ek,variants:{solid:eE,subtle:eS,outline:eT},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:eP,definePartsStyle:eO}=(0,P.D)($.VM.keys),eR=(0,P.gJ)("tag-bg"),eM=(0,P.gJ)("tag-color"),eN=(0,P.gJ)("tag-shadow"),ej=(0,P.gJ)("tag-min-height"),eD=(0,P.gJ)("tag-min-width"),eB=(0,P.gJ)("tag-font-size"),eL=(0,P.gJ)("tag-padding-inline"),e$=eO({container:(0,P.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[eM.variable]:eA.color.reference,[eR.variable]:eA.bg.reference,[eN.variable]:eA.shadow.reference,color:eM.reference,bg:eR.reference,boxShadow:eN.reference,borderRadius:"md",minH:ej.reference,minW:eD.reference,fontSize:eB.reference,px:eL.reference,_focusVisible:{[eN.variable]:"shadows.outline"}}),label:(0,P.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,P.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),eU={sm:eO({container:{[ej.variable]:"sizes.5",[eD.variable]:"sizes.5",[eB.variable]:"fontSizes.xs",[eL.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:eO({container:{[ej.variable]:"sizes.6",[eD.variable]:"sizes.6",[eB.variable]:"fontSizes.sm",[eL.variable]:"space.2"}}),lg:eO({container:{[ej.variable]:"sizes.8",[eD.variable]:"sizes.8",[eB.variable]:"fontSizes.md",[eL.variable]:"space.3"}})},ez=eP({variants:{subtle:eO(e=>{var t;return{container:null==(t=eI.variants)?void 0:t.subtle(e)}}),solid:eO(e=>{var t;return{container:null==(t=eI.variants)?void 0:t.solid(e)}}),outline:eO(e=>{var t;return{container:null==(t=eI.variants)?void 0:t.outline(e)}})},baseStyle:e$,sizes:eU,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:eF,defineMultiStyleConfig:eq}=(0,P.D)($.X.keys),eH=eF({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),eW={lg:(0,P.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,P.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,P.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,P.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})};function eV(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||(0,es.x)("blue.500","blue.300")(e),errorBorderColor:r||(0,es.x)("red.500","red.300")(e)}}var eZ=eq({baseStyle:eH,sizes:{lg:eF({field:eW.lg,addon:eW.lg}),md:eF({field:eW.md,addon:eW.md}),sm:eF({field:eW.sm,addon:eW.sm}),xs:eF({field:eW.xs,addon:eW.xs})},variants:{outline:eF(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=eV(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:(0,es.x)("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:(0,ef.cM)(t,n),boxShadow:`0 0 0 1px ${(0,ef.cM)(t,n)}`},_focusVisible:{zIndex:1,borderColor:(0,ef.cM)(t,r),boxShadow:`0 0 0 1px ${(0,ef.cM)(t,r)}`}},addon:{border:"1px solid",borderColor:(0,es.x)("inherit","whiteAlpha.50")(e),bg:(0,es.x)("gray.100","whiteAlpha.300")(e)}}}),filled:eF(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=eV(e);return{field:{border:"2px solid",borderColor:"transparent",bg:(0,es.x)("gray.100","whiteAlpha.50")(e),_hover:{bg:(0,es.x)("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:(0,ef.cM)(t,n)},_focusVisible:{bg:"transparent",borderColor:(0,ef.cM)(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:(0,es.x)("gray.100","whiteAlpha.50")(e)}}}),flushed:eF(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=eV(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:(0,ef.cM)(t,n),boxShadow:`0px 1px 0px 0px ${(0,ef.cM)(t,n)}`},_focusVisible:{borderColor:(0,ef.cM)(t,r),boxShadow:`0px 1px 0px 0px ${(0,ef.cM)(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:eF({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),eG=(0,P.k0)({...null==(n=eZ.baseStyle)?void 0:n.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),eK={outline:(0,P.k0)(e=>{var t,r;return null!=(r=null==(t=eZ.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,P.k0)(e=>{var t,r;return null!=(r=null==(t=eZ.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,P.k0)(e=>{var t,r;return null!=(r=null==(t=eZ.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(o=null==(i=eZ.variants)?void 0:i.unstyled.field)?o:{}},eY={xs:null!=(s=null==(a=eZ.sizes)?void 0:a.xs.field)?s:{},sm:null!=(c=null==(l=eZ.sizes)?void 0:l.sm.field)?c:{},md:null!=(d=null==(u=eZ.sizes)?void 0:u.md.field)?d:{},lg:null!=(f=null==(h=eZ.sizes)?void 0:h.lg.field)?f:{}},eQ=(0,P.fj)({baseStyle:eG,sizes:eY,variants:eK,defaultProps:{size:"md",variant:"outline"}}),eJ=(0,U.gJ)("tooltip-bg"),eX=(0,U.gJ)("tooltip-fg"),e0=(0,U.gJ)("popper-arrow-bg"),e1=(0,P.k0)({bg:eJ.reference,color:eX.reference,[eJ.variable]:"colors.gray.700",[eX.variable]:"colors.whiteAlpha.900",_dark:{[eJ.variable]:"colors.gray.300",[eX.variable]:"colors.gray.900"},[e0.variable]:eJ.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),e2=(0,P.fj)({baseStyle:e1}),{defineMultiStyleConfig:e3,definePartsStyle:e5}=(0,P.D)($.Eb.keys),e6=(0,P.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=(0,es.x)((0,ef.k2)(),(0,ef.k2)("1rem","rgba(0,0,0,0.1)"))(e),a=(0,es.x)(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
    to right,
    transparent 0%,
    ${(0,ef.cM)(r,a)} 50%,
    transparent 100%
  )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),e4=(0,P.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),e8=(0,P.k0)(e=>({bg:(0,es.x)("gray.100","whiteAlpha.300")(e)})),e9=(0,P.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...e6(e)})),e7=e5(e=>({label:e4,filledTrack:e9(e),track:e8(e)})),te=e3({sizes:{xs:e5({track:{h:"1"}}),sm:e5({track:{h:"2"}}),md:e5({track:{h:"3"}}),lg:e5({track:{h:"4"}})},baseStyle:e7,defaultProps:{size:"md",colorScheme:"blue"}}),tt=e=>"function"==typeof e;function tr(e,...t){return tt(e)?e(...t):e}var{definePartsStyle:tn,defineMultiStyleConfig:ti}=(0,P.D)($.TB.keys),to=(0,P.gJ)("checkbox-size"),ta=(0,P.k0)(e=>{let{colorScheme:t}=e;return{w:to.reference,h:to.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:(0,es.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,es.x)(`${t}.500`,`${t}.200`)(e),color:(0,es.x)("white","gray.900")(e),_hover:{bg:(0,es.x)(`${t}.600`,`${t}.300`)(e),borderColor:(0,es.x)(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:(0,es.x)("gray.200","transparent")(e),bg:(0,es.x)("gray.200","whiteAlpha.300")(e),color:(0,es.x)("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:(0,es.x)(`${t}.500`,`${t}.200`)(e),borderColor:(0,es.x)(`${t}.500`,`${t}.200`)(e),color:(0,es.x)("white","gray.900")(e)},_disabled:{bg:(0,es.x)("gray.100","whiteAlpha.100")(e),borderColor:(0,es.x)("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:(0,es.x)("red.500","red.300")(e)}}}),ts=(0,P.k0)({_disabled:{cursor:"not-allowed"}}),tl=(0,P.k0)({userSelect:"none",_disabled:{opacity:.4}}),tc=(0,P.k0)({transitionProperty:"transform",transitionDuration:"normal"}),tu=ti({baseStyle:tn(e=>({icon:tc,container:ts,control:tr(ta,e),label:tl})),sizes:{sm:tn({control:{[to.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:tn({control:{[to.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:tn({control:{[to.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:td,definePartsStyle:th}=(0,P.D)($.f2.keys),tf=(0,P.k0)(e=>{var t;let r=null==(t=tr(tu.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),tp=td({baseStyle:th(e=>{var t,r;return{label:null==(t=tu.baseStyle)?void 0:t.call(tu,e).label,container:null==(r=tu.baseStyle)?void 0:r.call(tu,e).container,control:tf(e)}}),sizes:{md:th({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:th({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:th({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:tg,definePartsStyle:tm}=(0,P.D)($.nY.keys),tv=(0,P.gJ)("select-bg"),tb=tm({field:(0,P.k0)({...null==(p=eZ.baseStyle)?void 0:p.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:tv.reference,[tv.variable]:"colors.white",_dark:{[tv.variable]:"colors.gray.700"},"> option, > optgroup":{bg:tv.reference}}),icon:(0,P.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),ty=(0,P.k0)({paddingInlineEnd:"8"}),tw=tg({baseStyle:tb,sizes:{lg:{...null==(g=eZ.sizes)?void 0:g.lg,field:{...null==(m=eZ.sizes)?void 0:m.lg.field,...ty}},md:{...null==(v=eZ.sizes)?void 0:v.md,field:{...null==(b=eZ.sizes)?void 0:b.md.field,...ty}},sm:{...null==(y=eZ.sizes)?void 0:y.sm,field:{...null==(w=eZ.sizes)?void 0:w.sm.field,...ty}},xs:{...null==(x=eZ.sizes)?void 0:x.xs,field:{...null==(_=eZ.sizes)?void 0:_.xs.field,...ty},icon:{insetEnd:"1"}}},variants:eZ.variants,defaultProps:eZ.defaultProps}),tx=(0,P.gJ)("skeleton-start-color"),t_=(0,P.gJ)("skeleton-end-color"),tC=(0,P.k0)({[tx.variable]:"colors.gray.100",[t_.variable]:"colors.gray.400",_dark:{[tx.variable]:"colors.gray.800",[t_.variable]:"colors.gray.600"},background:tx.reference,borderColor:t_.reference,opacity:.7,borderRadius:"sm"}),tA=(0,P.fj)({baseStyle:tC}),tk=(0,P.gJ)("skip-link-bg"),tE=(0,P.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[tk.variable]:"colors.white",_dark:{[tk.variable]:"colors.gray.700"},bg:tk.reference}}),tS=(0,P.fj)({baseStyle:tE}),{defineMultiStyleConfig:tT,definePartsStyle:tI}=(0,P.D)($.q0.keys),tP=(0,P.gJ)("slider-thumb-size"),tO=(0,P.gJ)("slider-track-size"),tR=(0,P.gJ)("slider-bg"),tM=(0,P.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...(0,es.f)({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),tN=(0,P.k0)(e=>({...(0,es.f)({orientation:e.orientation,horizontal:{h:tO.reference},vertical:{w:tO.reference}}),overflow:"hidden",borderRadius:"sm",[tR.variable]:"colors.gray.200",_dark:{[tR.variable]:"colors.whiteAlpha.200"},_disabled:{[tR.variable]:"colors.gray.300",_dark:{[tR.variable]:"colors.whiteAlpha.300"}},bg:tR.reference})),tj=(0,P.k0)(e=>{let{orientation:t}=e;return{...(0,es.f)({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:tP.reference,h:tP.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),tD=(0,P.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[tR.variable]:`colors.${t}.500`,_dark:{[tR.variable]:`colors.${t}.200`},bg:tR.reference}}),tB=tT({baseStyle:tI(e=>({container:tM(e),track:tN(e),thumb:tj(e),filledTrack:tD(e)})),sizes:{lg:tI({container:{[tP.variable]:"sizes.4",[tO.variable]:"sizes.1"}}),md:tI({container:{[tP.variable]:"sizes.3.5",[tO.variable]:"sizes.1"}}),sm:tI({container:{[tP.variable]:"sizes.2.5",[tO.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),tL=(0,U.gJ)("spinner-size"),t$=(0,P.k0)({width:[tL.reference],height:[tL.reference]}),tU={xs:(0,P.k0)({[tL.variable]:"sizes.3"}),sm:(0,P.k0)({[tL.variable]:"sizes.4"}),md:(0,P.k0)({[tL.variable]:"sizes.6"}),lg:(0,P.k0)({[tL.variable]:"sizes.8"}),xl:(0,P.k0)({[tL.variable]:"sizes.12"})},tz=(0,P.fj)({baseStyle:t$,sizes:tU,defaultProps:{size:"md"}}),{defineMultiStyleConfig:tF,definePartsStyle:tq}=(0,P.D)($.aj.keys),tH=tF({baseStyle:tq({container:{},label:(0,P.k0)({fontWeight:"medium"}),helpText:(0,P.k0)({opacity:.8,marginBottom:"2"}),number:(0,P.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,P.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:tq({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),tW=(0,P.gJ)("kbd-bg"),tV=(0,P.k0)({[tW.variable]:"colors.gray.100",_dark:{[tW.variable]:"colors.whiteAlpha.100"},bg:tW.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),tZ=(0,P.fj)({baseStyle:tV}),tG=(0,P.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),tK=(0,P.fj)({baseStyle:tG}),{defineMultiStyleConfig:tY,definePartsStyle:tQ}=(0,P.D)($.vE.keys),tJ=tY({baseStyle:tQ({icon:(0,P.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:tX,definePartsStyle:t0}=(0,P.D)($.rk.keys),t1=(0,P.gJ)("menu-bg"),t2=(0,P.gJ)("menu-shadow"),t3=(0,P.k0)({[t1.variable]:"#fff",[t2.variable]:"shadows.sm",_dark:{[t1.variable]:"colors.gray.700",[t2.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:t1.reference,boxShadow:t2.reference}),t5=(0,P.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[t1.variable]:"colors.gray.100",_dark:{[t1.variable]:"colors.whiteAlpha.100"}},_active:{[t1.variable]:"colors.gray.200",_dark:{[t1.variable]:"colors.whiteAlpha.200"}},_expanded:{[t1.variable]:"colors.gray.100",_dark:{[t1.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:t1.reference}),t6=(0,P.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),t4=(0,P.k0)({opacity:.6}),t8=(0,P.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),t9=tX({baseStyle:t0({button:(0,P.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:t3,item:t5,groupTitle:t6,command:t4,divider:t8})}),{defineMultiStyleConfig:t7,definePartsStyle:re}=(0,P.D)($.wl.keys),rt=(0,P.gJ)("modal-bg"),rr=(0,P.gJ)("modal-shadow"),rn=(0,P.k0)({bg:"blackAlpha.600",zIndex:"modal"}),ri=(0,P.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),ro=(0,P.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[rt.variable]:"colors.white",[rr.variable]:"shadows.lg",_dark:{[rt.variable]:"colors.gray.700",[rr.variable]:"shadows.dark-lg"},bg:rt.reference,boxShadow:rr.reference}}),ra=(0,P.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),rs=(0,P.k0)({position:"absolute",top:"2",insetEnd:"3"}),rl=(0,P.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),rc=(0,P.k0)({px:"6",py:"4"});function ru(e){return"full"===e?re({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):re({dialog:{maxW:e}})}var rd=t7({baseStyle:re(e=>({overlay:rn,dialogContainer:tr(ri,e),dialog:tr(ro,e),header:ra,closeButton:rs,body:tr(rl,e),footer:rc})),sizes:{xs:ru("xs"),sm:ru("sm"),md:ru("md"),lg:ru("lg"),xl:ru("xl"),"2xl":ru("2xl"),"3xl":ru("3xl"),"4xl":ru("4xl"),"5xl":ru("5xl"),"6xl":ru("6xl"),full:ru("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:rh,definePartsStyle:rf}=(0,P.D)($.V1.keys),rp=(0,U.gJ)("number-input-stepper-width"),rg=(0,U.gJ)("number-input-input-padding"),rm=K(rp).add("0.5rem").toString(),rv=(0,U.gJ)("number-input-bg"),rb=(0,U.gJ)("number-input-color"),ry=(0,U.gJ)("number-input-border-color"),rw=(0,P.k0)({[rp.variable]:"sizes.6",[rg.variable]:rm}),rx=(0,P.k0)(e=>{var t,r;return null!=(r=null==(t=tr(eZ.baseStyle,e))?void 0:t.field)?r:{}}),r_=(0,P.k0)({width:rp.reference}),rC=(0,P.k0)({borderStart:"1px solid",borderStartColor:ry.reference,color:rb.reference,bg:rv.reference,[rb.variable]:"colors.chakra-body-text",[ry.variable]:"colors.chakra-border-color",_dark:{[rb.variable]:"colors.whiteAlpha.800",[ry.variable]:"colors.whiteAlpha.300"},_active:{[rv.variable]:"colors.gray.200",_dark:{[rv.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function rA(e){var t,r,n;let i=null==(t=eZ.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=E.fontSizes[a];return rf({field:{...i.field,paddingInlineEnd:rg.reference,verticalAlign:"top"},stepper:{fontSize:K(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var rk=rh({baseStyle:rf(e=>{var t;return{root:rw,field:null!=(t=tr(rx,e))?t:{},stepperGroup:r_,stepper:rC}}),sizes:{xs:rA("xs"),sm:rA("sm"),md:rA("md"),lg:rA("lg")},variants:eZ.variants,defaultProps:eZ.defaultProps}),rE=(0,P.k0)({...null==(C=eZ.baseStyle)?void 0:C.field,textAlign:"center"}),rS={lg:(0,P.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,P.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,P.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,P.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},rT={outline:(0,P.k0)(e=>{var t,r,n;return null!=(n=null==(r=tr(null==(t=eZ.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,P.k0)(e=>{var t,r,n;return null!=(n=null==(r=tr(null==(t=eZ.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,P.k0)(e=>{var t,r,n;return null!=(n=null==(r=tr(null==(t=eZ.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(k=null==(A=eZ.variants)?void 0:A.unstyled.field)?k:{}},rI=(0,P.fj)({baseStyle:rE,sizes:rS,variants:rT,defaultProps:eZ.defaultProps}),{defineMultiStyleConfig:rP,definePartsStyle:rO}=(0,P.D)($.Ji.keys),rR=(0,U.gJ)("popper-bg"),rM=(0,U.gJ)("popper-arrow-bg"),rN=(0,U.gJ)("popper-arrow-shadow-color"),rj=rP({baseStyle:rO({popper:(0,P.k0)({zIndex:10}),content:(0,P.k0)({[rR.variable]:"colors.white",bg:rR.reference,[rM.variable]:rR.reference,[rN.variable]:"colors.gray.200",_dark:{[rR.variable]:"colors.gray.700",[rN.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,P.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,P.k0)({px:3,py:2}),footer:(0,P.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,P.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:rD,defineMultiStyleConfig:rB}=(0,P.D)($.iU.keys),rL=(0,P.gJ)("drawer-bg"),r$=(0,P.gJ)("drawer-box-shadow");function rU(e){return"full"===e?rD({dialog:{maxW:"100vw",h:"100vh"}}):rD({dialog:{maxW:e}})}var rz=(0,P.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),rF=(0,P.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),rq=(0,P.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[rL.variable]:"colors.white",[r$.variable]:"shadows.lg",_dark:{[rL.variable]:"colors.gray.700",[r$.variable]:"shadows.dark-lg"},bg:rL.reference,boxShadow:r$.reference}}),rH=(0,P.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),rW=(0,P.k0)({position:"absolute",top:"2",insetEnd:"3"}),rV=(0,P.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),rZ=(0,P.k0)({px:"6",py:"4"}),rG=rB({baseStyle:rD(e=>({overlay:rz,dialogContainer:rF,dialog:tr(rq,e),header:rH,closeButton:rW,body:rV,footer:rZ})),sizes:{xs:rU("xs"),sm:rU("md"),md:rU("lg"),lg:rU("2xl"),xl:rU("4xl"),full:rU("full")},defaultProps:{size:"xs"}}),{definePartsStyle:rK,defineMultiStyleConfig:rY}=(0,P.D)($.lN.keys),rQ=rY({baseStyle:rK({preview:(0,P.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,P.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,P.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:rJ,defineMultiStyleConfig:rX}=(0,P.D)($.TJ.keys),r0=(0,P.gJ)("form-control-color"),r1=rX({baseStyle:rJ({container:{width:"100%",position:"relative"},requiredIndicator:(0,P.k0)({marginStart:"1",[r0.variable]:"colors.red.500",_dark:{[r0.variable]:"colors.red.300"},color:r0.reference}),helperText:(0,P.k0)({mt:"2",[r0.variable]:"colors.gray.600",_dark:{[r0.variable]:"colors.whiteAlpha.600"},color:r0.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:r2,defineMultiStyleConfig:r3}=(0,P.D)($.ao.keys),r5=(0,P.gJ)("form-error-color"),r6=r3({baseStyle:r2({text:(0,P.k0)({[r5.variable]:"colors.red.500",_dark:{[r5.variable]:"colors.red.300"},color:r5.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,P.k0)({marginEnd:"0.5em",[r5.variable]:"colors.red.500",_dark:{[r5.variable]:"colors.red.300"},color:r5.reference})})}),r4=(0,P.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),r8=(0,P.fj)({baseStyle:r4}),r9=(0,P.k0)({fontFamily:"heading",fontWeight:"bold"}),r7={"4xl":(0,P.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,P.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,P.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,P.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,P.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,P.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,P.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,P.k0)({fontSize:"sm",lineHeight:1.2})},ne=(0,P.fj)({baseStyle:r9,sizes:r7,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:nt,definePartsStyle:nr}=(0,P.D)($.AB.keys),nn=(0,P.gJ)("breadcrumb-link-decor"),ni=nt({baseStyle:nr({link:(0,P.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:nn.reference,[nn.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[nn.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),no=(0,P.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),na=(0,P.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:(0,es.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,es.x)("gray.100","whiteAlpha.200")(e)},_active:{bg:(0,es.x)("gray.200","whiteAlpha.300")(e)}};let n=(0,ef.DZ)(`${t}.200`,.12)(r),i=(0,ef.DZ)(`${t}.200`,.24)(r);return{color:(0,es.x)(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:(0,es.x)(`${t}.50`,n)(e)},_active:{bg:(0,es.x)(`${t}.100`,i)(e)}}}),ns=(0,P.k0)(e=>{let{colorScheme:t}=e,r=(0,es.x)("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...tr(na,e)}}),nl={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},nc=(0,P.k0)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=(0,es.x)("gray.100","whiteAlpha.200")(e);return{bg:t,color:(0,es.x)("gray.800","whiteAlpha.900")(e),_hover:{bg:(0,es.x)("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:(0,es.x)("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=nl[r])?t:{},s=(0,es.x)(n,`${r}.200`)(e);return{bg:s,color:(0,es.x)(i,"gray.800")(e),_hover:{bg:(0,es.x)(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:(0,es.x)(a,`${r}.400`)(e)}}}),nu=(0,P.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:(0,es.x)(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:(0,es.x)(`${t}.700`,`${t}.500`)(e)}}}),nd=(0,P.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),nh={lg:(0,P.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,P.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,P.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,P.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},nf=(0,P.fj)({baseStyle:no,variants:{ghost:na,outline:ns,solid:nc,link:nu,unstyled:nd},sizes:nh,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:np,defineMultiStyleConfig:ng}=(0,P.D)($.SG.keys),nm=(0,P.gJ)("card-bg"),nv=(0,P.gJ)("card-padding"),nb=(0,P.gJ)("card-shadow"),ny=(0,P.gJ)("card-radius"),nw=(0,P.gJ)("card-border-width","0"),nx=(0,P.gJ)("card-border-color"),n_=np({container:{[nm.variable]:"colors.chakra-body-bg",backgroundColor:nm.reference,boxShadow:nb.reference,borderRadius:ny.reference,color:"chakra-body-text",borderWidth:nw.reference,borderColor:nx.reference},body:{padding:nv.reference,flex:"1 1 0%"},header:{padding:nv.reference},footer:{padding:nv.reference}}),nC={sm:np({container:{[ny.variable]:"radii.base",[nv.variable]:"space.3"}}),md:np({container:{[ny.variable]:"radii.md",[nv.variable]:"space.5"}}),lg:np({container:{[ny.variable]:"radii.xl",[nv.variable]:"space.7"}})},nA=ng({baseStyle:n_,variants:{elevated:np({container:{[nb.variable]:"shadows.base",_dark:{[nm.variable]:"colors.gray.700"}}}),outline:np({container:{[nw.variable]:"1px",[nx.variable]:"colors.chakra-border-color"}}),filled:np({container:{[nm.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[nv.variable]:0},header:{[nv.variable]:0},footer:{[nv.variable]:0}}},sizes:nC,defaultProps:{variant:"elevated",size:"md"}}),nk=(0,U.gJ)("close-button-size"),nE=(0,U.gJ)("close-button-bg"),nS=(0,P.k0)({w:[nk.reference],h:[nk.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[nE.variable]:"colors.blackAlpha.100",_dark:{[nE.variable]:"colors.whiteAlpha.100"}},_active:{[nE.variable]:"colors.blackAlpha.200",_dark:{[nE.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:nE.reference}),nT={lg:(0,P.k0)({[nk.variable]:"sizes.10",fontSize:"md"}),md:(0,P.k0)({[nk.variable]:"sizes.8",fontSize:"xs"}),sm:(0,P.k0)({[nk.variable]:"sizes.6",fontSize:"2xs"})},nI=(0,P.fj)({baseStyle:nS,sizes:nT,defaultProps:{size:"md"}}),{variants:nP,defaultProps:nO}=eI,nR=(0,P.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:eA.bg.reference,color:eA.color.reference,boxShadow:eA.shadow.reference}),nM=(0,P.fj)({baseStyle:nR,variants:nP,defaultProps:nO}),nN=(0,P.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),nj=(0,P.fj)({baseStyle:nN}),nD=(0,P.k0)({opacity:.6,borderColor:"inherit"}),nB=(0,P.k0)({borderStyle:"solid"}),nL=(0,P.k0)({borderStyle:"dashed"}),n$=(0,P.fj)({baseStyle:nD,variants:{solid:nB,dashed:nL},defaultProps:{variant:"solid"}}),{definePartsStyle:nU,defineMultiStyleConfig:nz}=(0,P.D)($.sA.keys),nF=nz({baseStyle:nU({container:(0,P.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,P.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,P.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,P.k0)({fontSize:"1.25em"})})}),{definePartsStyle:nq,defineMultiStyleConfig:nH}=(0,P.D)($.aP.keys),nW=(0,P.gJ)("alert-fg"),nV=(0,P.gJ)("alert-bg");function nZ(e){let{theme:t,colorScheme:r}=e,n=(0,ef.DZ)(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var nG=nH({baseStyle:nq({container:{bg:nV.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:nW.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:nW.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:nq(e=>{let{colorScheme:t}=e,r=nZ(e);return{container:{[nW.variable]:`colors.${t}.500`,[nV.variable]:r.light,_dark:{[nW.variable]:`colors.${t}.200`,[nV.variable]:r.dark}}}}),"left-accent":nq(e=>{let{colorScheme:t}=e,r=nZ(e);return{container:{[nW.variable]:`colors.${t}.500`,[nV.variable]:r.light,_dark:{[nW.variable]:`colors.${t}.200`,[nV.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:nW.reference}}}),"top-accent":nq(e=>{let{colorScheme:t}=e,r=nZ(e);return{container:{[nW.variable]:`colors.${t}.500`,[nV.variable]:r.light,_dark:{[nW.variable]:`colors.${t}.200`,[nV.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:nW.reference}}}),solid:nq(e=>{let{colorScheme:t}=e;return{container:{[nW.variable]:"colors.white",[nV.variable]:`colors.${t}.500`,_dark:{[nW.variable]:"colors.gray.900",[nV.variable]:`colors.${t}.200`},color:nW.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:nK,defineMultiStyleConfig:nY}=(0,P.D)($.$5.keys),nQ=(0,P.gJ)("avatar-border-color"),nJ=(0,P.gJ)("avatar-bg"),nX=(0,P.gJ)("avatar-font-size"),n0=(0,P.gJ)("avatar-size"),n1=(0,P.k0)({borderRadius:"full",border:"0.2em solid",borderColor:nQ.reference,[nQ.variable]:"white",_dark:{[nQ.variable]:"colors.gray.800"}}),n2=(0,P.k0)({bg:nJ.reference,fontSize:nX.reference,width:n0.reference,height:n0.reference,lineHeight:"1",[nJ.variable]:"colors.gray.200",_dark:{[nJ.variable]:"colors.whiteAlpha.400"}}),n3=(0,P.k0)(e=>{let{name:t,theme:r}=e,n=t?(0,ef.p)({string:t}):"colors.gray.400",i=(0,ef._T)(n)(r),o="white";return i||(o="gray.800"),{bg:nJ.reference,fontSize:nX.reference,color:o,borderColor:nQ.reference,verticalAlign:"top",width:n0.reference,height:n0.reference,"&:not([data-loaded])":{[nJ.variable]:n},[nQ.variable]:"colors.white",_dark:{[nQ.variable]:"colors.gray.800"}}}),n5=(0,P.k0)({fontSize:nX.reference,lineHeight:"1"});function n6(e){let t="100%"!==e?T[e]:void 0;return nK({container:{[n0.variable]:null!=t?t:e,[nX.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[n0.variable]:null!=t?t:e,[nX.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var n4=nY({baseStyle:nK(e=>({badge:tr(n1,e),excessLabel:tr(n2,e),container:tr(n3,e),label:n5})),sizes:{"2xs":n6(4),xs:n6(6),sm:n6(8),md:n6(12),lg:n6(16),xl:n6(24),"2xl":n6(32),full:n6("100%")},defaultProps:{size:"md"}}),n8={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},n9={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},n7={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ie={semanticTokens:n8,direction:"ltr",...I,components:{Accordion:nF,Alert:nG,Avatar:n4,Badge:eI,Breadcrumb:ni,Button:nf,Checkbox:tu,CloseButton:nI,Code:nM,Container:nj,Divider:n$,Drawer:rG,Editable:rQ,Form:r1,FormError:r6,FormLabel:r8,Heading:ne,Input:eZ,Kbd:tZ,Link:tK,List:tJ,Menu:t9,Modal:rd,NumberInput:rk,PinInput:rI,Popover:rj,Progress:te,Radio:tp,Select:tw,Skeleton:tA,SkipLink:tS,Slider:tB,Spinner:tz,Stat:tH,Switch:ea,Table:eh,Tabs:eC,Tag:ez,Textarea:eQ,Tooltip:e2,Card:nA,Stepper:L},styles:n9,config:n7},it={semanticTokens:n8,direction:"ltr",components:{},...I,styles:n9,config:n7}},8128:function(e,t,r){"use strict";r.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});var n=(e,t)=>e.find(e=>e.id===t);function i(e,t){let r=o(e,t),n=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:n}}function o(e,t){for(let[r,i]of Object.entries(e))if(n(i,t))return r}function a(e){let t=e.includes("right"),r=e.includes("left"),n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,r=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,n=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:r,right:n,left:i}}},9222:function(e,t,r){"use strict";r.d(t,{Cj:function(){return m},fp:function(){return h}});var n=r(8128),i=r(31507),o=r(48543),a=r(8180),s=r(56837),l=r(75350),c=r(86989),u=r(25432),d=r(85893),h=function(e){let t=e,r=new Set,i=e=>{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{i(()=>e),r.delete(t)}),removeToast:(e,t)=>{i(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let r=function(e,t={}){var r,n;f+=1;let i=null!=(r=t.id)?r:f,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>h.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:n,id:o}=r;return i(e=>{var t,i;let o=n.includes("top")?[r,...null!=(t=e[n])?t:[]]:[...null!=(i=e[n])?i:[],r];return{...e,[n]:o}}),o},update:(e,t)=>{e&&i(r=>{let i={...r},{position:o,index:a}=(0,n.Dn)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:g(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let r=(0,n.ym)(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,n.Dn)(h.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),f=0,p=e=>{let{status:t,variant:r="solid",id:n,title:u,isClosable:h,onClose:f,description:p,colorScheme:g,icon:m}=e,v=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,d.jsxs)(i.b,{addRole:!1,status:t,variant:r,id:null==v?void 0:v.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:g,children:[(0,d.jsx)(o.z,{children:m}),(0,d.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[u&&(0,d.jsx)(a.C,{id:null==v?void 0:v.title,children:u}),p&&(0,d.jsx)(s.X,{id:null==v?void 0:v.description,display:"block",children:p})]}),h&&(0,d.jsx)(c.P,{size:"sm",onClick:f,position:"absolute",insetEnd:1,top:1})]})};function g(e={}){let{render:t,toastComponent:r=p}=e;return n=>"function"==typeof t?t({...n,...e}):(0,d.jsx)(r,{...n,...e})}function m(e,t){let r=r=>{var n;return{...t,...r,position:function(e,t){var r;let n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{let t=r(e),n=g(t);return h.notify(n,t)};return n.update=(e,t)=>{h.update(e,r(t))},n.promise=(e,t)=>{let r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...(0,u.Pu)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,u.Pu)(t.error,e)}))},n.closeAll=h.closeAll,n.close=h.close,n.isActive=h.isActive,n}},47523:function(e,t,r){"use strict";r.d(t,{u:function(){return k}});var n={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},i=r(61735),o=r(31054),a=r(68795),s=r(85075),l=r(57134),c=r(81103),u=r(25432),d=r(67294),h=e=>{var t;return(null==(t=e.current)?void 0:t.ownerDocument)||document},f=e=>{var t,r;return(null==(r=null==(t=e.current)?void 0:t.ownerDocument)?void 0:r.defaultView)||window},p="chakra-ui:close-tooltip",g=r(49598),m=r(75350),v=r(35059),b=r(91639),y=r(33179),w=r(75119),x=r(24262),_=r(21190),C=r(85893),A=(0,m.m)(x.E.div),k=(0,v.G)((e,t)=>{var r,v;let x;let k=(0,b.mq)("Tooltip",e),E=(0,y.Lr)(e),S=(0,w.F)(),{children:T,label:I,shouldWrapChildren:P,"aria-label":O,hasArrow:R,bg:M,portalProps:N,background:j,backgroundColor:D,bgColor:B,motionProps:L,...$}=E,U=null!=(v=null!=(r=null!=j?j:D)?r:M)?v:B;if(U){k.bg=U;let e=(0,y.K1)(S,"colors",U);k[a.Dq.arrowBg.var]=e}let z=function(e={}){let{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:g,closeOnScroll:m,closeOnPointerDown:v=g,closeOnEsc:b=!0,onOpen:y,onClose:w,placement:x,id:_,isOpen:C,defaultIsOpen:A,arrowSize:k=10,arrowShadowColor:E,arrowPadding:S,modifiers:T,isDisabled:I,gutter:P,offset:O,direction:R,...M}=e,{isOpen:N,onOpen:j,onClose:D}=(0,s.q)({isOpen:C,defaultIsOpen:A,onOpen:y,onClose:w}),{referenceRef:B,getPopperProps:L,getArrowInnerProps:$,getArrowProps:U}=(0,o.D)({enabled:N,placement:x,arrowPadding:S,modifiers:T,gutter:P,offset:O,direction:R}),z=(0,d.useId)(),F=`tooltip-${null!=_?_:z}`,q=(0,d.useRef)(null),H=(0,d.useRef)(),W=(0,d.useCallback)(()=>{H.current&&(clearTimeout(H.current),H.current=void 0)},[]),V=(0,d.useRef)(),Z=(0,d.useCallback)(()=>{V.current&&(clearTimeout(V.current),V.current=void 0)},[]),G=(0,d.useCallback)(()=>{Z(),D()},[D,Z]),K=((0,d.useEffect)(()=>{let e=h(q);return e.addEventListener(p,G),()=>e.removeEventListener(p,G)},[G,q]),()=>{let e=h(q),t=f(q);e.dispatchEvent(new t.CustomEvent(p))}),Y=(0,d.useCallback)(()=>{if(!I&&!H.current){K();let e=f(q);H.current=e.setTimeout(j,t)}},[K,I,j,t]),Q=(0,d.useCallback)(()=>{W();let e=f(q);V.current=e.setTimeout(G,r)},[r,G,W]),J=(0,d.useCallback)(()=>{N&&n&&Q()},[n,Q,N]),X=(0,d.useCallback)(()=>{N&&v&&Q()},[v,Q,N]),ee=(0,d.useCallback)(e=>{N&&"Escape"===e.key&&Q()},[N,Q]);(0,l.O)(()=>h(q),"keydown",b?ee:void 0),(0,l.O)(()=>{let e=q.current;if(!e)return null;let t=function e(t){return["html","body","#document"].includes(t.localName)?t.ownerDocument.body:(0,i.Re)(t)&&function(e){let{overflow:t,overflowX:r,overflowY:n}=(e.ownerDocument.defaultView||window).getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}(t)?t:e("html"===t.localName?t:t.assignedSlot||t.parentElement||t.ownerDocument.documentElement)}(e);return"body"===t.localName?f(q):t},"scroll",()=>{N&&m&&G()},{passive:!0,capture:!0}),(0,d.useEffect)(()=>{I&&(W(),N&&D())},[I,N,D,W]),(0,d.useEffect)(()=>()=>{W(),Z()},[W,Z]),(0,l.O)(()=>q.current,"pointerleave",Q);let et=(0,d.useCallback)((e={},t=null)=>({...e,ref:(0,c.lq)(q,t,B),onPointerEnter:(0,u.v0)(e.onPointerEnter,e=>{"touch"!==e.pointerType&&Y()}),onClick:(0,u.v0)(e.onClick,J),onPointerDown:(0,u.v0)(e.onPointerDown,X),onFocus:(0,u.v0)(e.onFocus,Y),onBlur:(0,u.v0)(e.onBlur,Q),"aria-describedby":N?F:void 0}),[Y,Q,X,N,F,J,B]),er=(0,d.useCallback)((e={},t=null)=>L({...e,style:{...e.style,[a.Dq.arrowSize.var]:k?`${k}px`:void 0,[a.Dq.arrowShadowColor.var]:E}},t),[L,k,E]);return{isOpen:N,show:Y,hide:Q,getTriggerProps:et,getTooltipProps:(0,d.useCallback)((e={},t=null)=>{let r={...e.style,position:"relative",transformOrigin:a.Dq.transformOrigin.varRef};return{ref:t,...M,...e,id:F,role:"tooltip",style:r}},[M,F]),getTooltipPositionerProps:er,getArrowProps:U,getArrowInnerProps:$}}({...$,direction:S.direction});if("string"==typeof T||P)x=(0,C.jsx)(m.m.span,{display:"inline-block",tabIndex:0,...z.getTriggerProps(),children:T});else{let e=d.Children.only(T);x=(0,d.cloneElement)(e,z.getTriggerProps(e.props,e.ref))}let F=!!O,q=z.getTooltipProps({},t),H=F?function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(q,["role","id"]):q,W=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(q,["role","id"]);return I?(0,C.jsxs)(C.Fragment,{children:[x,(0,C.jsx)(_.M,{children:z.isOpen&&(0,C.jsx)(g.h,{...N,children:(0,C.jsx)(m.m.div,{...z.getTooltipPositionerProps(),__css:{zIndex:k.zIndex,pointerEvents:"none"},children:(0,C.jsxs)(A,{variants:n,initial:"exit",animate:"enter",exit:"exit",...L,...H,__css:k,children:[I,F&&(0,C.jsx)(m.m.span,{srOnly:!0,...W,children:O}),R&&(0,C.jsx)(m.m.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,C.jsx)(m.m.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:k.bg}})})]})})})})]}):(0,C.jsx)(C.Fragment,{children:T})});k.displayName="Tooltip"},99155:function(e,t,r){"use strict";r.d(t,{Lj:function(){return n},Sh:function(){return a},js:function(){return o},p$:function(){return s}});var n={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var a={enter:{duration:.2,ease:n.easeOut},exit:{duration:.1,ease:n.easeIn}},s={enter:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),exit:(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit})}},36597:function(e,t,r){"use strict";function n(e,...t){return"function"==typeof e?e(...t):e}function i(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}r.d(t,{v0:function(){return i},Pu:function(){return n}})},81982:function(e,t,r){"use strict";function n(e){var t;return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE&&null!=(t=e.ownerDocument)?t:document}r.d(t,{jU:function(){return i},lZ:function(){return n}});var i=!!("undefined"!=typeof window&&window.document&&window.document.createElement)},21759:function(e,t,r){"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}r.d(t,{CE:function(){return n},Wf:function(){return i},YU:function(){return a},lw:function(){return o}}),r(38554);var i=(e=>{let t=new WeakMap;return(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s}})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e});function o(e,t){let r={};return Object.keys(e).forEach(n=>{let i=e[n];t(i,n,e)&&(r[n]=i)}),r}var a=e=>o(e,e=>null!=e)},99662:function(e,t,r){"use strict";r.d(t,{C:function(){return a}});var n=r(23588);let i={attribute:!0,type:String,converter:n.Ts,reflect:!1,hasChanged:n.Qu},o=(e=i,t,r)=>{let{kind:n,metadata:o}=r,a=globalThis.litPropertyMetadata.get(o);if(void 0===a&&globalThis.litPropertyMetadata.set(o,a=new Map),a.set(r.name,e),"accessor"===n){let{name:n}=r;return{set(r){let i=t.get.call(this);t.set.call(this,r),this.requestUpdate(n,i,e)},init(t){return void 0!==t&&this.C(n,void 0,e),t}}}if("setter"===n){let{name:n}=r;return function(r){let i=this[n];t.call(this,r),this.requestUpdate(n,i,e)}}throw Error("Unsupported decorator location: "+n)};function a(e){return(t,r)=>"object"==typeof r?o(e,t,r):((e,t,r)=>{let n=t.hasOwnProperty(r);return t.constructor.createProperty(r,n?{...e,wrapped:!0}:e),n?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)}},39158:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});var n=r(99662);function i(e){return(0,n.C)({...e,state:!0,attribute:!1})}},23588:function(e,t,r){"use strict";r.d(t,{fl:function(){return E},iv:function(){return c},Ts:function(){return C},Qu:function(){return A},$m:function(){return l}});let n=globalThis,i=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new WeakMap;class s{constructor(e,t,r){if(this._$cssResult$=!0,r!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(i&&void 0===e){let r=void 0!==t&&1===t.length;r&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(t,e))}return e}toString(){return this.cssText}}let l=e=>new s("string"==typeof e?e:e+"",void 0,o),c=(e,...t)=>new s(1===e.length?e[0]:t.reduce((t,r,n)=>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.")})(r)+e[n+1],e[0]),e,o),u=(e,t)=>{if(i)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement("style"),i=n.litNonce;void 0!==i&&t.setAttribute("nonce",i),t.textContent=r.cssText,e.appendChild(t)}},d=i?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(let r of e.cssRules)t+=r.cssText;return l(t)})(e):e,{is:h,defineProperty:f,getOwnPropertyDescriptor:p,getOwnPropertyNames:g,getOwnPropertySymbols:m,getPrototypeOf:v}=Object,b=globalThis,y=b.trustedTypes,w=y?y.emptyScript:"",x=b.reactiveElementPolyfillSupport,_=(e,t)=>e,C={toAttribute(e,t){switch(t){case Boolean:e=e?w:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},A=(e,t)=>!h(e,t),k={attribute:!0,type:String,converter:C,reflect:!1,hasChanged:A};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;class E extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=k){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(e,r,t);void 0!==n&&f(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){let{get:n,set:i}=p(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get(){return n?.call(this)},set(t){let o=n?.call(this);i.call(this,t),this.requestUpdate(e,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??k}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;let e=v(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){let e=this.properties;for(let t of[...g(e),...m(e)])this.createProperty(t,e[t])}let e=this[Symbol.metadata];if(null!==e){let t=litPropertyMetadata.get(e);if(void 0!==t)for(let[e,r]of t)this.elementProperties.set(e,r)}for(let[e,t]of(this._$Eh=new Map,this.elementProperties)){let r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e))for(let r of new Set(e.flat(1/0).reverse()))t.unshift(d(r));else void 0!==e&&t.push(d(e));return t}static _$Eu(e,t){let r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"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(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map;for(let t of this.constructor.elementProperties.keys())this.hasOwnProperty(t)&&(e.set(t,this[t]),delete this[t]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return u(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EO(e,t){let r=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,r);if(void 0!==n&&!0===r.reflect){let i=(void 0!==r.converter?.toAttribute?r.converter:C).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$Em=null}}_$AK(e,t){let r=this.constructor,n=r._$Eh.get(e);if(void 0!==n&&this._$Em!==n){let e=r.getPropertyOptions(n),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:C;this._$Em=n,this[n]=i.fromAttribute(t,e.type),this._$Em=null}}requestUpdate(e,t,r,n=!1,i){if(void 0!==e){if(!((r??=this.constructor.getPropertyOptions(e)).hasChanged??A)(n?i:this[e],t))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(e,t,r){this._$AL.has(e)||this._$AL.set(e,t),!0===r.reflect&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,r]of e)!0!==r.wrapped||this._$AL.has(t)||void 0===this[t]||this.C(t,this[t],r)}let e=!1,t=this._$AL;try{(e=this.shouldUpdate(t))?(this.willUpdate(t),this._$E_?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$ET()}catch(t){throw e=!1,this._$ET(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(e){}firstUpdated(e){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[_("elementProperties")]=new Map,E[_("finalized")]=new Map,x?.({ReactiveElement:E}),(b.reactiveElementVersions??=[]).push("2.0.2")},93527:function(e,t,r){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function s(e,t){i(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}r.d(t,{Gg:function(){return a},J8:function(){return s},Rx:function(){return n},aI:function(){return i},vp:function(){return o}})},53932:function(e,t,r){"use strict";r.d(t,{J:function(){return h}});var n=r(93527),i=r(66409);let o=(e,t,r)=>e&t^~e&r,a=(e,t,r)=>e&t^e&r^t&r;class s extends i.kb{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:o}=this,a=(e=(0,i.O0)(e)).length;for(let n=0;n<a;){let s=Math.min(o-this.pos,a-n);if(s===o){let t=(0,i.GL)(e);for(;o<=a-n;n+=o)this.process(t,n);continue}r.set(e.subarray(n,n+s),this.pos),this.pos+=s,n+=s,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:o,isLE:a}=this,{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let e=s;e<o;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),o=BigInt(4294967295),a=Number(r>>i&o),s=Number(r&o),l=n?4:0,c=n?0:4;e.setUint32(t+l,a,n),e.setUint32(t+c,s,n)}(r,o-8,BigInt(8*this.length),a),this.process(r,0);let l=(0,i.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,d=this.get();if(u>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)l.setUint32(4*e,d[e],a)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:o,pos:a}=this;return e.length=n,e.pos=a,e.finished=i,e.destroyed=o,n%t&&e.buffer.set(r),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class d extends s{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:o,G:a,H:s}=this;return[e,t,r,n,i,o,a,s]}set(e,t,r,n,i,o,a,s){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|o,this.G=0|a,this.H=0|s}process(e,t){for(let r=0;r<16;r++,t+=4)u[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=u[e-15],r=u[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,o=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;u[e]=o+u[e-7]+n+u[e-16]|0}let{A:r,B:n,C:s,D:c,E:d,F:h,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+o(d,h,f)+l[e]+u[e]|0,g=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+a(r,n,s)|0;p=f,f=h,h=d,d=c+t|0,c=s,s=n,n=r,r=t+g|0}r=r+this.A|0,n=n+this.B|0,s=s+this.C|0,c=c+this.D|0,d=d+this.E|0,h=h+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(r,n,s,c,d,h,f,p)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let h=(0,i.hE)(()=>new d)},66409:function(e,t,r){"use strict";r.d(t,{kb:function(){return f},l1:function(){return u},eV:function(){return h},GL:function(){return a},iA:function(){return l},O6:function(){return g},np:function(){return s},O0:function(){return d},Jq:function(){return o},hE:function(){return p}});let n="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;var i=r(93527);let o=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),a=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,t)=>e<<32-t|e>>>t,l=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],c=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function u(e){for(let t=0;t<e.length;t++)e[t]=c(e[t])}function d(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}function h(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];(0,i.aI)(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];r.set(i,n),n+=i.length}return r}class f{clone(){return this._cloneInto()}}function p(e){let t=t=>e().update(d(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function g(e=32){if(n&&"function"==typeof n.getRandomValues)return n.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},82729:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{_:function(){return n}})},66474:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});var n=r(7506),i=r(24139),o=new class extends n.l{#d;#h;#f;constructor(){super(),this.#f=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#h||this.setEventListener(this.#f)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#f=e,this.#h?.(),this.#h=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#d!==e&&(this.#d=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#d?this.#d:globalThis.document?.visibilityState!=="hidden"}}},54948:function(e,t,r){"use strict";r.d(t,{Gm:function(){return i},Qy:function(){return s},ZF:function(){return l}});var n=r(24139);function i(e){return{onFetch:(t,r)=>{let i=async()=>{let r;let i=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],c=t.state.data?.pageParams||[],u=!1,d=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},h=(0,n.cG)(t.options,t.fetchOptions),f=async(e,r,i)=>{if(u)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};d(o);let a=await h(o),{maxPages:s}=t.options,l=i?n.Ht:n.VX;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,r,s)}};if(s&&l.length){let e="backward"===s,t={pages:l,pageParams:c},n=(e?a:o)(i,t);r=await f(t,n,e)}else{r=await f({pages:[],pageParams:[]},c[0]??i.initialPageParam);let t=e??l.length;for(let e=1;e<t;e++){let e=o(i,r);if(null==e)break;r=await f(r,e)}}return r};t.options.persister?t.fetchFn=()=>t.options.persister?.(i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=i}}}function o(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function a(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function s(e,t){return!!t&&null!=o(e,t)}function l(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)}},59289:function(e,t,r){"use strict";r.d(t,{R:function(){return s},m:function(){return a}});var n=r(27037),i=r(48907),o=r(72008),a=class extends i.F{#p;#i;#g;constructor(e){super(),this.mutationId=e.mutationId,this.#i=e.mutationCache,this.#p=[],this.state=e.state||s(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>t!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#g?.continue()??this.execute(this.state.variables)}async execute(e){this.#g=(0,o.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#i.canRun(this)});let t="pending"===this.state.status,r=!this.#g.canStart();try{if(!t){this.#m({type:"pending",variables:e,isPaused:r}),await this.#i.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:r})}let n=await this.#g.start();return await this.#i.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#i.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#m({type:"success",data:n}),n}catch(t){try{throw await this.#i.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#i.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#m({type:"error",error:t})}}finally{this.#i.runNext(this)}}#m(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"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};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"}}})(this.state),n.V.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},27037:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0),o=n=>{t?e.push(n):i(()=>{r(n)})},a=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}()},14304:function(e,t,r){"use strict";r.d(t,{N:function(){return o}});var n=r(7506),i=r(24139),o=new class extends n.l{#v=!0;#h;#f;constructor(){super(),this.#f=e=>{if(!i.sk&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#h||this.setEventListener(this.#f)}onUnsubscribe(){this.hasListeners()||(this.#h?.(),this.#h=void 0)}setEventListener(e){this.#f=e,this.#h?.(),this.#h=e(this.setOnline.bind(this))}setOnline(e){this.#v!==e&&(this.#v=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#v}}},56888:function(e,t,r){"use strict";r.d(t,{A:function(){return s},z:function(){return l}});var n=r(24139),i=r(27037),o=r(72008),a=r(48907),s=class extends a.F{#b;#y;#w;#g;#o;#x;constructor(e){super(),this.#x=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#w=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#g?.promise}setOptions(e){this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#w.remove(this)}setData(e,t){let r=(0,n.oE)(this.state.data,e,this.options);return this.#m({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#m({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#g?.promise;return this.#g?.cancel(e),t?t.then(n.ZT).catch(n.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#b)}isActive(){return this.observers.some(e=>!1!==(0,n.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.Kp)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#g?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#g?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#w.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.#g&&(this.#x?this.#g.cancel({revert:!0}):this.#g.cancelRetry()),this.scheduleGc()),this.#w.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#g)return this.#g.continueRetry(),this.#g.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#x=!0,r.signal)})},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,n.cG)(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return(i(r),this.#x=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};i(a),this.options.behavior?.onFetch(a,this),this.#y=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#m({type:"fetch",meta:a.fetchOptions?.meta});let s=e=>{(0,o.DV)(e)&&e.silent||this.#m({type:"error",error:e}),(0,o.DV)(e)||(this.#w.config.onError?.(e,this),this.#w.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#g=(0,o.Mz)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#w.config.onSuccess?.(e,this),this.#w.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#g.start()}#m(e){this.state=(t=>{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,...l(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,o.DV)(r)&&r.revert&&this.#y)return{...this.#y,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#w.notify({query:this,type:"updated",action:e})})}};function l(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,o.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},72536:function(e,t,r){"use strict";r.d(t,{z:function(){return l}});var n=r(24139),i=r(27037),o=r(66474),a=r(7506),s=r(56888),l=class extends a.l{constructor(e,t){super(),this.options=t,this.#_=e,this.#C=null,this.bindMethods(),this.setOptions(t)}#_;#A=void 0;#k=void 0;#E=void 0;#S;#T;#C;#I;#P;#O;#R;#M;#N;#j=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#A.addObserver(this),c(this.#A,this.options)?this.#D():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return u(this.#A,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return u(this.#A,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#L(),this.#$(),this.#A.removeObserver(this)}setOptions(e,t){let r=this.options,i=this.#A;if(this.options=this.#_.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,n.Nc)(this.options.enabled,this.#A))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#U(),this.#A.setOptions(this.options),r._defaulted&&!(0,n.VS)(this.options,r)&&this.#_.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#A,observer:this});let o=this.hasListeners();o&&d(this.#A,i,this.options,r)&&this.#D(),this.updateResult(t),o&&(this.#A!==i||(0,n.Nc)(this.options.enabled,this.#A)!==(0,n.Nc)(r.enabled,this.#A)||(0,n.KC)(this.options.staleTime,this.#A)!==(0,n.KC)(r.staleTime,this.#A))&&this.#z();let a=this.#F();o&&(this.#A!==i||(0,n.Nc)(this.options.enabled,this.#A)!==(0,n.Nc)(r.enabled,this.#A)||a!==this.#N)&&this.#q(a)}getOptimisticResult(e){let t=this.#_.getQueryCache().build(this.#_,e),r=this.createResult(t,e);return(0,n.VS)(this.getCurrentResult(),r)||(this.#E=r,this.#T=this.options,this.#S=this.#A.state),r}getCurrentResult(){return this.#E}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#j.add(e)}getCurrentQuery(){return this.#A}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#_.defaultQueryOptions(e),r=this.#_.getQueryCache().build(this.#_,t);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#D({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#E))}#D(e){this.#U();let t=this.#A.fetch(this.options,e);return e?.throwOnError||(t=t.catch(n.ZT)),t}#z(){this.#L();let e=(0,n.KC)(this.options.staleTime,this.#A);if(n.sk||this.#E.isStale||!(0,n.PN)(e))return;let t=(0,n.Kp)(this.#E.dataUpdatedAt,e);this.#R=setTimeout(()=>{this.#E.isStale||this.updateResult()},t+1)}#F(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#A):this.options.refetchInterval)??!1}#q(e){this.#$(),this.#N=e,!n.sk&&!1!==(0,n.Nc)(this.options.enabled,this.#A)&&(0,n.PN)(this.#N)&&0!==this.#N&&(this.#M=setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#D()},this.#N))}#B(){this.#z(),this.#q(this.#F())}#L(){this.#R&&(clearTimeout(this.#R),this.#R=void 0)}#$(){this.#M&&(clearInterval(this.#M),this.#M=void 0)}createResult(e,t){let r;let i=this.#A,o=this.options,a=this.#E,l=this.#S,u=this.#T,f=e!==i?e.state:this.#k,{state:p}=e,g={...p},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&c(e,t),a=r&&d(e,i,t,o);(n||a)&&(g={...g,...(0,s.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:y}=g;if(t.select&&void 0!==g.data){if(a&&g.data===l?.data&&t.select===this.#I)r=this.#P;else try{this.#I=t.select,r=t.select(g.data),r=(0,n.oE)(a?.data,r,t),this.#P=r,this.#C=null}catch(e){this.#C=e}}else r=g.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===y){let e;if(a?.isPlaceholderData&&t.placeholderData===u?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#O?.state.data,this.#O):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#C=null}catch(e){this.#C=e}void 0!==e&&(y="success",r=(0,n.oE)(a?.data,e,t),m=!0)}this.#C&&(v=this.#C,r=this.#P,b=Date.now(),y="error");let w="fetching"===g.fetchStatus,x="pending"===y,_="error"===y,C=x&&w,A=void 0!==r;return{status:y,fetchStatus:g.fetchStatus,isPending:x,isSuccess:"success"===y,isError:_,isInitialLoading:C,isLoading:C,data:r,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:_&&!A,isPaused:"paused"===g.fetchStatus,isPlaceholderData:m,isRefetchError:_&&A,isStale:h(e,t),refetch:this.refetch}}updateResult(e){let t=this.#E,r=this.createResult(this.#A,this.options);if(this.#S=this.#A.state,this.#T=this.options,void 0!==this.#S.data&&(this.#O=this.#A),(0,n.VS)(r,t))return;this.#E=r;let i={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#j.size)return!0;let n=new Set(r??this.#j);return this.options.throwOnError&&n.add("error"),Object.keys(this.#E).some(e=>this.#E[e]!==t[e]&&n.has(e))})()&&(i.listeners=!0),this.#H({...i,...e})}#U(){let e=this.#_.getQueryCache().build(this.#_,this.options);if(e===this.#A)return;let t=this.#A;this.#A=e,this.#k=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#H(e){i.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#E)}),this.#_.getQueryCache().notify({query:this.#A,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,n.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&u(e,t,t.refetchOnMount)}function u(e,t,r){if(!1!==(0,n.Nc)(t.enabled,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&h(e,t)}return!1}function d(e,t,r,i){return(e!==t||!1===(0,n.Nc)(i.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==(0,n.Nc)(t.enabled,e)&&e.isStaleByTime((0,n.KC)(t.staleTime,e))}},48907:function(e,t,r){"use strict";r.d(t,{F:function(){return i}});var n=r(24139),i=class{#W;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.gcTime)&&(this.#W=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.sk?1/0:3e5))}clearGcTimeout(){this.#W&&(clearTimeout(this.#W),this.#W=void 0)}}},72008:function(e,t,r){"use strict";r.d(t,{DV:function(){return c},Kw:function(){return s},Mz:function(){return u}});var n=r(66474),i=r(14304),o=r(24139);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return(e??"online")!=="online"||i.N.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function u(e){let t,r,c,u=!1,d=0,h=!1,f=new Promise((e,t)=>{r=e,c=t}),p=()=>n.j.isFocused()&&("always"===e.networkMode||i.N.isOnline())&&e.canRun(),g=()=>s(e.networkMode)&&e.canRun(),m=n=>{h||(h=!0,e.onSuccess?.(n),t?.(),r(n))},v=r=>{h||(h=!0,e.onError?.(r),t?.(),c(r))},b=()=>new Promise(r=>{t=e=>{(h||p())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,h||e.onContinue?.()}),y=()=>{let t;if(h)return;let r=0===d?e.initialPromise:void 0;try{t=r??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(h)return;let r=e.retry??(o.sk?0:3),n=e.retryDelay??a,i="function"==typeof n?n(d,t):n,s=!0===r||"number"==typeof r&&d<r||"function"==typeof r&&r(d,t);if(u||!s){v(t);return}d++,e.onFail?.(d,t),(0,o._v)(i).then(()=>p()?void 0:b()).then(()=>{u?v(t):y()})})};return{promise:f,cancel:t=>{h||(v(new l(t)),e.abort?.())},continue:()=>(t?.(),f),cancelRetry:()=>{u=!0},continueRetry:()=>{u=!1},canStart:g,start:()=>(g()?y():b().then(y),f)}}},7506:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},24139:function(e,t,r){"use strict";r.d(t,{CN:function(){return C},Ht:function(){return _},KC:function(){return l},Kp:function(){return s},Nc:function(){return c},PN:function(){return a},Rm:function(){return h},SE:function(){return o},VS:function(){return g},VX:function(){return x},X7:function(){return d},Ym:function(){return f},ZT:function(){return i},_v:function(){return y},_x:function(){return u},cG:function(){return A},oE:function(){return w},sk:function(){return n},to:function(){return p}});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==h(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function d(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(f(t.options.mutationKey)!==f(o))return!1}else if(!p(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function h(e,t){return(t?.queryKeyHashFn||f)(e)}function f(e){return JSON.stringify(e,(e,t)=>v(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function v(e){if(!b(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(b(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function b(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=m(t)&&m(r);if(n||v(t)&&v(r)){let i=n?t:Object.keys(t),o=i.length,a=n?r:Object.keys(r),s=a.length,l=n?[]:{},c=0;for(let o=0;o<s;o++){let s=n?o:a[o];(!n&&i.includes(s)||n)&&void 0===t[s]&&void 0===r[s]?(l[s]=void 0,c++):(l[s]=e(t[s],r[s]),l[s]===t[s]&&void 0!==t[s]&&c++)}return o===s&&c===o?t:l}return r}(e,t):t}function x(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function _(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var C=Symbol();function A(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==C?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},30202:function(e,t,r){"use strict";r.d(t,{NL:function(){return a},aH:function(){return s}});var n=r(67294),i=r(85893),o=n.createContext(void 0),a=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},20364:function(e,t,r){"use strict";let n;r.d(t,{r:function(){return b}});var i=r(67294),o=r(27037);r(85893);var a=i.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),s=()=>i.useContext(a),l=r(30202),c=i.createContext(!1),u=()=>i.useContext(c);c.Provider;var d=r(86290),h=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},f=e=>{i.useEffect(()=>{e.clearReset()},[e])},p=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(0,d.L)(r,[e.error,n]),g=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},m=(e,t)=>e?.suspense&&t.isPending,v=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function b(e,t,r){let n=(0,l.NL)(r),a=u(),c=s(),d=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=a?"isRestoring":"optimistic",g(d),h(d,c),f(c);let[b]=i.useState(()=>new t(n,d)),y=b.getOptimisticResult(d);if(i.useSyncExternalStore(i.useCallback(e=>{let t=a?()=>void 0:b.subscribe(o.V.batchCalls(e));return b.updateResult(),t},[b,a]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),i.useEffect(()=>{b.setOptions(d,{listeners:!1})},[d,b]),m(d,y))throw v(d,b,c);if(p({result:y,errorResetBoundary:c,throwOnError:d.throwOnError,query:n.getQueryCache().get(d.queryHash)}))throw y.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(d,y),d.notifyOnChangeProps?y:b.trackResult(y)}},98029:function(e,t,r){"use strict";r.d(t,{D:function(){return d}});var n=r(67294),i=r(59289),o=r(27037),a=r(7506),s=r(24139),l=class extends a.l{#_;#E=void 0;#V;#Z;constructor(e,t){super(),this.#_=e,this.setOptions(t),this.bindMethods(),this.#G()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#_.defaultMutationOptions(e),(0,s.VS)(this.options,t)||this.#_.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#V,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,s.Ym)(t.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():this.#V?.state.status==="pending"&&this.#V.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#V?.removeObserver(this)}onMutationUpdate(e){this.#G(),this.#H(e)}getCurrentResult(){return this.#E}reset(){this.#V?.removeObserver(this),this.#V=void 0,this.#G(),this.#H()}mutate(e,t){return this.#Z=t,this.#V?.removeObserver(this),this.#V=this.#_.getMutationCache().build(this.#_,this.options),this.#V.addObserver(this),this.#V.execute(e)}#G(){let e=this.#V?.state??(0,i.R)();this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#H(e){o.V.batch(()=>{if(this.#Z&&this.hasListeners()){let t=this.#E.variables,r=this.#E.context;e?.type==="success"?(this.#Z.onSuccess?.(e.data,t,r),this.#Z.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#Z.onError?.(e.error,t,r),this.#Z.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#E)})})}},c=r(30202),u=r(86290);function d(e,t){let r=(0,c.NL)(t),[i]=n.useState(()=>new l(r,e));n.useEffect(()=>{i.setOptions(e)},[i,e]);let a=n.useSyncExternalStore(n.useCallback(e=>i.subscribe(o.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=n.useCallback((e,t)=>{i.mutate(e,t).catch(u.Z)},[i]);if(a.error&&(0,u.L)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}},78551:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var n=r(72536),i=r(20364);function o(e,t){return(0,i.r)(e,n.z,t)}},86290:function(e,t,r){"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{L:function(){return n},Z:function(){return i}})},6590:function(e,t,r){"use strict";async function n(e,t={}){let r;if(t.connector)r=t.connector;else{let{connections:t,current:n}=e.state,i=t.get(n);r=i?.connector}let n=e.state.connections;r&&(await r.disconnect(),r.emitter.off("change",e._internal.events.change),r.emitter.off("disconnect",e._internal.events.disconnect),r.emitter.on("connect",e._internal.events.connect),n.delete(r.uid)),e.setState(e=>{if(0===n.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=n.values().next().value;return{...e,connections:new Map(n),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let r=e.state.connections.get(t)?.connector;if(!r)return;await e.storage?.setItem("recentConnectorId",r.id)}}r.d(t,{z:function(){return n}})},52425:function(e,t,r){"use strict";function n(e){let t=e.state.current,r=e.state.connections.get(t),n=r?.accounts,i=n?.[0],o=e.chains.find(e=>e.id===r?.chainId),a=e.state.status;switch(a){case"connected":return{address:i,addresses:n,chain:o,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:a};case"reconnecting":return{address:i,addresses:n,chain:o,chainId:r?.chainId,connector:r?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:a};case"connecting":return{address:i,addresses:n,chain:o,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:a};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:a}}}r.d(t,{D:function(){return n}})},32353:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(74751);let i=[];function o(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,n.v)(i,t)?i:(i=t,t)}},75230:function(e,t,r){"use strict";r.d(t,{e:function(){return l}});var n=r(94898),i=r(22319),o=r(14503),a=r(45775),s=r(87675);async function l(e,t={}){let r;if(t.connector){let{connector:n}=t;if("reconnecting"===e.state.status&&!n.getAccounts&&!n.getChainId)throw new s.$S({connector:n});let[i,o]=await Promise.all([n.getAccounts(),n.getChainId()]);r={accounts:i,chainId:o,connector:n}}else r=e.state.connections.get(e.state.current);if(!r)throw new s.aH;let l=t.chainId??r.chainId,c=await r.connector.getChainId();if(c!==r.chainId)throw new s.XZ({connectionChainId:r.chainId,connectorChainId:c});let u=r.connector;if(u.getClient)return u.getClient({chainId:l});let d=(0,o.T)(t.account??r.accounts[0]);if(d.address=(0,a.K)(d.address),t.account&&!r.accounts.some(e=>e.toLowerCase()===d.address.toLowerCase()))throw new s.JK({address:d.address,connector:u});let h=e.chains.find(e=>e.id===l),f=await r.connector.getProvider({chainId:l});return(0,n.e)({account:d,chain:h,name:"Connector Client",transport:e=>(function(e,t={}){let{key:r="custom",name:n="Custom Provider",retryDelay:o}=t;return({retryCount:a})=>(0,i.q)({key:r,name:n,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:o,type:"custom"})})(f)({...e,retryCount:0})})}},51785:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});let n=!1;async function i(e,t={}){let r;if(n)return[];n=!0,e.setState(e=>({...e,status:e.current?"reconnecting":"connecting"}));let i=[];if(t.connectors?.length)for(let r of t.connectors){let t;t="function"==typeof r?e._internal.connectors.setup(r):r,i.push(t)}else i.push(...e.connectors);try{r=await e.storage?.getItem("recentConnectorId")}catch{}let o={};for(let[,t]of e.state.connections)o[t.connector.id]=1;r&&(o[r]=0);let a=Object.keys(o).length>0?[...i].sort((e,t)=>(o[e.id]??10)-(o[t.id]??10)):i,s=!1,l=[],c=[];for(let t of a){let r=await t.getProvider().catch(()=>void 0);if(!r||c.some(e=>e===r)||!await t.isAuthorized())continue;let n=await t.connect({isReconnecting:!0}).catch(()=>null);n&&(t.emitter.off("connect",e._internal.events.connect),t.emitter.on("change",e._internal.events.change),t.emitter.on("disconnect",e._internal.events.disconnect),e.setState(e=>{let r=new Map(s?e.connections:new Map).set(t.uid,{accounts:n.accounts,chainId:n.chainId,connector:t});return{...e,current:s?e.current:t.uid,connections:r}}),l.push({accounts:n.accounts,chainId:n.chainId,connector:t}),c.push(r),s=!0)}return("reconnecting"===e.state.status||"connecting"===e.state.status)&&(s?e.setState(e=>({...e,status:"connected"})):e.setState(e=>({...e,connections:new Map,current:null,status:"disconnected"}))),n=!1,l}},66357:function(e,t,r){"use strict";r.d(t,{T:function(){return l}});var n=r(81841),i=r(96128),o=r(81946),a=r(52425),s=r(75230);async function l(e,t){let r;let{account:l,chainId:c,connector:u,gas:d,...h}=t;r="object"==typeof l&&"local"===l.type?e.getClient({chainId:c}):await (0,s.e)(e,{account:l,chainId:c,connector:u});let{connector:f}=(0,a.D)(e),p=await (async()=>{if(!(!("data"in t)||!t.data||(u??f)?.supportsSimulation)&&null!==d)return void 0===d?(0,o.s)(r,n.Q,"estimateGas")({...h,account:l,chain:c?{id:c}:null}):d})(),g=(0,o.s)(r,i.T,"sendTransaction");return await g({...h,...l?{account:l}:{},gas:p,chain:c?{id:c}:null})}},21548:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var n=r(22980),i=r(81946),o=r(75230);async function a(e,t){let r;let{account:a,connector:s,...l}=t;return r="object"==typeof a&&"local"===a.type?e.getClient():await (0,o.e)(e,{account:a,connector:s}),(0,i.s)(r,n.l,"signMessage")({...l,...a?{account:a}:{}})}},23510:function(e,t,r){"use strict";r.d(t,{c:function(){return o}});var n=r(87675),i=r(17897);async function o(e,t){let{addEthereumChainParameter:r,chainId:o}=t,a=e.state.connections.get(t.connector?.uid??e.state.current);if(a){let e=a.connector;if(!e.switchChain)throw new i.O({connector:e});return await e.switchChain({addEthereumChainParameter:r,chainId:o})}let s=e.chains.find(e=>e.id===o);if(!s)throw new n.X4;return e.setState(e=>({...e,chainId:o})),s}},14679:function(e,t,r){"use strict";r.d(t,{e:function(){return l}});var n=r(95946),i=r(51973),o=r(23147),a=r(43558),s=r(81946);async function l(e,t){let{chainId:r,timeout:l=0,...c}=t,u=e.getClient({chainId:r}),d=(0,s.s)(u,i.e,"waitForTransactionReceipt"),h=await d({...c,timeout:l});if("reverted"===h.status){let e=(0,s.s)(u,o.f,"getTransaction"),t=await e({hash:h.transactionHash}),r=(0,s.s)(u,a.R,"call"),i=await r({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(i?.data?(0,n.rR)(`0x${i.data.substring(138)}`):"unknown reason")}return{...h,chainId:u.chain.id}}},33397:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});var n=r(74751),i=r(52425);function o(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,i.D)(e),r,{equalityFn(e,t){let{connector:r,...i}=e,{connector:o,...a}=t;return(0,n.v)(i,a)&&r?.id===o?.id&&r?.uid===o?.uid}})}},27319:function(e,t,r){"use strict";function n(e){return e}r.d(t,{K:function(){return n}})},66573:function(e,t,r){"use strict";r.d(t,{L:function(){return f}});var n=r(45775),i=r(39028),o=r(60229),a=r(7760),s=r(92106),l=r(87675),c=r(17897),u=r(27319);let d=/(rabby|trustwallet)/,h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:p(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>p(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:p(e,"isPhantom")}};function f(e={}){let t,r,g,m;let{shimDisconnect:v=!0,unstable_shimAsyncInject:b}=e;function y(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,u.K)(u=>({get icon(){return y().icon},get id(){return y().id},get name(){return y().name},get supportsSimulation(){return d.test(this.id.toLowerCase())},type:f.type,async setup(){let r=await this.getProvider();r&&e.target&&(g||(g=this.onConnect.bind(this),r.on("connect",g)),t||(t=this.onAccountsChanged.bind(this),r.on("accountsChanged",t)))},async connect({chainId:o,isReconnecting:a}={}){let s=await this.getProvider();if(!s)throw new c.M;let l=[];if(a)l=await this.getAccounts().catch(()=>[]);else if(v)try{let e=await s.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(l=e[0]?.caveats?.[0]?.value?.map(e=>n.K(e))).length>0&&(l=await this.getAccounts())}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw e}try{l?.length||a||(l=(await s.request({method:"eth_requestAccounts"})).map(e=>(0,n.K)(e))),g&&(s.removeListener("connect",g),g=void 0),t||(t=this.onAccountsChanged.bind(this),s.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),s.on("chainChanged",r)),m||(m=this.onDisconnect.bind(this),s.on("disconnect",m));let c=await this.getChainId();if(o&&c!==o){let e=await this.switchChain({chainId:o}).catch(e=>{if(e.code===i.ab.code)throw e;return{id:c}});c=e?.id??c}return v&&await u.storage?.removeItem(`${this.id}.disconnected`),e.target||await u.storage?.setItem("injected.connected",!0),{accounts:l,chainId:c}}catch(e){if(e.code===i.ab.code)throw new i.ab(e);if(e.code===i.pT.code)throw new i.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new c.M;r&&(t.removeListener("chainChanged",r),r=void 0),m&&(t.removeListener("disconnect",m),m=void 0),g||(g=this.onConnect.bind(this),t.on("connect",g));try{await (0,o.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}v&&await u.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await u.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new c.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,n.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new c.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=y();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?p(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(v&&await u.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await u.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==b&&!1!==b){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof b?b:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(r=>setTimeout(()=>r(e()),t))]))return!0}throw new c.M}return!!(await (0,a.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new c.M;let n=u.chains.find(e=>e.id===t);if(!n)throw new i.x3(new l.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&u.emitter.emit("change",{chainId:t})}),new Promise(e=>u.emitter.once("change",({chainId:r})=>{r===t&&e()}))]),n}catch(o){if(4902===o.code||o?.data?.originalError?.code===4902)try{let o,a;let{default:l,...c}=n.blockExplorers??{};e?.blockExplorerUrls?o=e.blockExplorerUrls:l&&(o=[l.url,...Object.values(c).map(e=>e.url)]),a=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let u={blockExplorerUrls:o,chainId:(0,s.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:a};if(await r.request({method:"wallet_addEthereumChain",params:[u]}),await this.getChainId()!==t)throw new i.ab(Error("User rejected switch after adding network."));return n}catch(e){throw new i.ab(e)}if(o.code===i.ab.code)throw new i.ab(o);throw new i.x3(o)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(u.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),v&&await u.storage?.removeItem(`${this.id}.disconnected`)}else u.emitter.emit("change",{accounts:e.map(e=>(0,n.K)(e))})},onChainChanged(e){let t=Number(e);u.emitter.emit("change",{chainId:t})},async onConnect(e){let n=await this.getAccounts();if(0===n.length)return;let i=Number(e.chainId);u.emitter.emit("connect",{accounts:n,chainId:i});let o=await this.getProvider();o&&(g&&(o.removeListener("connect",g),g=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),r||(r=this.onChainChanged.bind(this),o.on("chainChanged",r)),m||(m=this.onDisconnect.bind(this),o.on("disconnect",m)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(u.emitter.emit("disconnect"),t&&(r&&(t.removeListener("chainChanged",r),r=void 0),m&&(t.removeListener("disconnect",m),m=void 0),g||(g=this.onConnect.bind(this),t.on("connect",g))))}}))}function p(e,t){function r(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let n=e.ethereum;return n?.providers?n.providers.find(e=>r(e)):n&&r(n)?n:void 0}f.type="injected"},11502:function(e,t,r){"use strict";let n;r.d(t,{_:function(){return C}});var i=r(94898);let o=e=>(t,r,n)=>{let i=n.subscribe;return n.subscribe=(e,t,r)=>{let o=e;if(t){let i=(null==r?void 0:r.equalityFn)||Object.is,a=e(n.getState());o=r=>{let n=e(r);if(!i(a,n)){let e=a;t(a=n,e)}},(null==r?void 0:r.fireImmediately)&&t(a,a)}return i(o)},e(t,r,n)},a=e=>t=>{try{let r=e(t);if(r instanceof Promise)return r;return{then:e=>a(e)(r),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>a(t)(e)}}},s=(e,t)=>(r,n,i)=>{let o,s,l={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set;try{o=l.getStorage()}catch(e){}if(!o)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),r(...e)},n,i);let h=a(l.serialize),f=()=>{let e;let t=h({state:l.partialize({...n()}),version:l.version}).then(e=>o.setItem(l.name,e)).catch(t=>{e=t});if(e)throw e;return t},p=i.setState;i.setState=(e,t)=>{p(e,t),f()};let g=e((...e)=>{r(...e),f()},n,i),m=()=>{var e;if(!o)return;c=!1,u.forEach(e=>e(n()));let t=(null==(e=l.onRehydrateStorage)?void 0:e.call(l,n()))||void 0;return a(o.getItem.bind(o))(l.name).then(e=>{if(e)return l.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===l.version)return e.state;if(l.migrate)return l.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 r(s=l.merge(e,null!=(t=n())?t:g),!0),f()}).then(()=>{null==t||t(s,void 0),c=!0,d.forEach(e=>e(s))}).catch(e=>{null==t||t(void 0,e)})};return i.persist={setOptions:e=>{l={...l,...e},e.getStorage&&(o=e.getStorage())},clearStorage:()=>{null==o||o.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},m(),s||g},l=(e,t)=>(r,n,i)=>{let o,s={storage:function(e,t){let r;try{r=e()}catch(e){return}return{getItem:e=>{var t;let n=e=>null===e?null:JSON.parse(e,void 0),i=null!=(t=r.getItem(e))?t:null;return i instanceof Promise?i.then(n):n(i)},setItem:(e,t)=>r.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>r.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},l=!1,c=new Set,u=new Set,d=s.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),r(...e)},n,i);let h=()=>{let e=s.partialize({...n()});return d.setItem(s.name,{state:e,version:s.version})},f=i.setState;i.setState=(e,t)=>{f(e,t),h()};let p=e((...e)=>{r(...e),h()},n,i),g=()=>{var e,t;if(!d)return;l=!1,c.forEach(e=>{var t;return e(null!=(t=n())?t:p)});let i=(null==(t=s.onRehydrateStorage)?void 0:t.call(s,null!=(e=n())?e:p))||void 0;return a(d.getItem.bind(d))(s.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===s.version)return e.state;if(s.migrate)return s.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 r(o=s.merge(e,null!=(t=n())?t:p),!0),h()}).then(()=>{null==i||i(o,void 0),o=n(),l=!0,u.forEach(e=>e(o))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{s={...s,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>g(),hasHydrated:()=>l,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},s.skipHydration||g(),o||p},c=(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."),s(e,t)):l(e,t),u=e=>{let t;let r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,o={setState:n,getState:i,subscribe:e=>(r.add(e),()=>r.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."),r.clear()}};return t=e(n,i,o),o},d=e=>e?u(e):u;var h=r(66573),f=r(26729);class p{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new f})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let r=t[0];this._emitter.emit(e,{uid:this.uid,...r})}listenerCount(e){return this._emitter.listenerCount(e)}}function g(e,t){return JSON.parse(e,(e,r)=>{let n=r;return n?.__type==="bigint"&&(n=BigInt(n.value)),n?.__type==="Map"&&(n=new Map(n.value)),t?.(e,n)??n})}function m(e,t){return e.slice(0,t).join(".")||"."}function v(e,t){let{length:r}=e;for(let n=0;n<r;++n)if(e[n]===t)return n+1;return 0}function b(e,t,r,n){return JSON.stringify(e,function(e,t){let r="function"==typeof e,n="function"==typeof t,i=[],o=[];return function(a,s){if("object"==typeof s){if(i.length){let e=v(i,this);0===e?i[i.length]=this:(i.splice(e),o.splice(e)),o[o.length]=a;let r=v(i,s);if(0!==r)return n?t.call(this,a,s,m(o,r)):`[ref=${m(o,r)}]`}else i[0]=s,o[0]=a}return r?e.call(this,a,s):s}}((e,r)=>{let n=r;return"bigint"==typeof n&&(n={__type:"bigint",value:r.toString()}),n instanceof Map&&(n={__type:"Map",value:Array.from(r.entries())}),t?.(e,n)??n},n),r??void 0)}let y={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var w=r(87675);let x=256;var _=r(79983);function C(e){let t;let{multiInjectedProviderDiscovery:r=!0,storage:a=function(e){let{deserialize:t=g,key:r="wagmi",serialize:n=b,storage:i=y}=e;function o(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...i,key:r,async getItem(e,n){let a=i.getItem(`${r}.${e}`),s=await o(a);return s?t(s)??null:n??null},async setItem(e,t){let a=`${r}.${e}`;null===t?await o(i.removeItem(a)):await o(i.setItem(a,n(t)))},async removeItem(e){await o(i.removeItem(`${r}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:y}),syncConnectedChain:s=!0,ssr:l=!1,...u}=e,f="undefined"!=typeof window&&r?function(){let e=new Set,t=[],r=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(r=>{t.some(({info:e})=>e.uuid===r.info.uuid)||(t=[...t,r],e.forEach(e=>e(t,{added:[r]})))}),n=r();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),n?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),n?.(),n=r()},subscribe:(r,{emitImmediately:n}={})=>(e.add(r),n&&r(t,{added:t}),()=>e.delete(r))}}():void 0,m=d(()=>u.chains),v=d(()=>[...u.connectors??[],...l?[]:f?.getProviders().map(A)??[]].map(C));function C(e){let t=new p(function(e=11){if(!n||x+e>512){n="",x=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(x,x+++e)}()),r={...e({emitter:t,chains:m.getState(),storage:a,transports:u.transports}),emitter:t,uid:t.uid};return t.on("connect",O),r.setup?.(),r}function A(e){let{info:t}=e,r=e.provider;return(0,h.L)({target:{...t,id:t.rdns,provider:r}})}let k=new Map;function E(){return{chainId:m.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let S="0.0.0-canary-";t=_.i.startsWith(S)?Number.parseInt(_.i.replace(S,"")):Number.parseInt(_.i.split(".")[0]??"0");let T=d(o(a?c(E,{migrate(e,r){if(r===t)return e;let n=E(),i=I(e,n.chainId);return{...n,chainId:i}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:r,name:n,type:i,uid:o}=t.connector;return[e,{...t,connector:{id:r,name:n,type:i,uid:o}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let r=I(e,t.chainId);return{...t,...e,chainId:r}},skipHydration:l,storage:a,version:t}):E));function I(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&m.getState().some(t=>t.id===e.chainId)?e.chainId:t}function P(e){T.setState(t=>{let r=t.connections.get(e.uid);return r?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??r.accounts,chainId:e.chainId??r.chainId,connector:r.connector})}:t})}function O(e){"connecting"!==T.getState().status&&"reconnecting"!==T.getState().status&&T.setState(t=>{let r=v.getState().find(t=>t.uid===e.uid);return r?(r.emitter.listenerCount("connect")&&r.emitter.off("connect",P),r.emitter.listenerCount("change")||r.emitter.on("change",P),r.emitter.listenerCount("disconnect")||r.emitter.on("disconnect",R),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:r}),current:e.uid,status:"connected"}):t})}function R(e){T.setState(t=>{let r=t.connections.get(e.uid);if(r){let e=r.connector;e.emitter.listenerCount("change")&&r.connector.emitter.off("change",P),e.emitter.listenerCount("disconnect")&&r.connector.emitter.off("disconnect",R),e.emitter.listenerCount("connect")||r.connector.emitter.on("connect",O)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let n=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:n.connector.uid}})}return s&&T.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(m.getState().some(t=>t.id===e))return T.setState(t=>({...t,chainId:e??t.chainId}))}),f?.subscribe(e=>{let t=new Map;for(let e of v.getState())t.set(e.id,!0);let r=[];for(let n of e){let e=C(A(n));t.has(e.id)||r.push(e)}(!a||T.persist.hasHydrated())&&v.setState(e=>[...e,...r],!0)}),{get chains(){return m.getState()},get connectors(){return v.getState()},storage:a,getClient:function(e={}){let t;let r=e.chainId??T.getState().chainId,n=m.getState().find(e=>e.id===r);if(e.chainId&&!n)throw new w.X4;{let e=k.get(T.getState().chainId);if(e&&!n)return e;if(!n)throw new w.X4}{let e=k.get(r);if(e)return e}if(u.client)t=u.client({chain:n});else{let e=n.id,r=m.getState().map(e=>e.id),o={};for(let[t,n]of Object.entries(u))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof n){if(e in n)o[t]=n[e];else{if(r.some(e=>e in n))continue;o[t]=n}}else o[t]=n}t=(0,i.e)({...o,chain:n,batch:o.batch??{multicall:!0},transport:t=>u.transports[e]({...t,connectors:v})})}return k.set(r,t),t},get state(){return T.getState()},setState(e){let t;t="function"==typeof e?e(T.getState()):e;let r=E();"object"!=typeof t&&(t=r),Object.keys(r).some(e=>!(e in t))&&(t=r),T.setState(t,!0)},subscribe:(e,t,r)=>T.subscribe(e,t,r?{...r,fireImmediately:r.emitImmediately}:void 0),_internal:{mipd:f,store:T,ssr:!!l,syncConnectedChain:s,transports:u.transports,chains:{setState(e){let t="function"==typeof e?e(m.getState()):e;if(0!==t.length)return m.setState(t,!0)},subscribe:e=>m.subscribe(e)},connectors:{providerDetailToConnector:A,setup:C,setState:e=>v.setState("function"==typeof e?e(v.getState()):e,!0),subscribe:e=>v.subscribe(e)},events:{change:P,connect:O,disconnect:R}}}}},7066:function(e,t,r){"use strict";r.d(t,{G:function(){return l}});var n,i,o=r(79983);let a=()=>`@wagmi/core@${o.i}`;var s=function(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class l extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return a()}constructor(e,t={}){super(),n.add(this),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:"WagmiCoreError"});let r=t.cause instanceof l?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof l&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return s(this,n,"m",i).call(this,this,e)}}n=new WeakSet,i=function e(t,r){return r?.(t)?t:t.cause?s(this,n,"m",e).call(this,t.cause,r):t}},87675:function(e,t,r){"use strict";r.d(t,{$S:function(){return c},JK:function(){return s},X4:function(){return i},XZ:function(){return l},aH:function(){return a},wi:function(){return o}});var n=r(7066);class i extends n.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class o extends n.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class a extends n.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends n.G{constructor({address:e,connector:t}){super(`Account "${e}" not found for connector "${t.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class l extends n.G{constructor({connectionChainId:e,connectorChainId:t}){super(`The current chain of the connector (id: ${t}) does not match the connection's chain (id: ${e}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class c extends n.G{constructor({connector:e}){super(`Connector "${e.name}" unavailable while reconnecting.`,{details:"During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`. All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored. This error commonly occurs for connectors that asynchronously inject after reconnection has already started."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}},17897:function(e,t,r){"use strict";r.d(t,{M:function(){return i},O:function(){return o}});var n=r(7066);class i extends n.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class o extends n.G{constructor({connector:e}){super(`"${e.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},74751:function(e,t,r){"use strict";r.d(t,{v:function(){return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,i;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!==r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let o=Object.keys(t);if((n=o.length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;0!=i--;){let n=o[i];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}}})},81946:function(e,t,r){"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{s:function(){return n}})},79983:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});let n="2.13.5"},10667:function(e,t,r){"use strict";let n,i,o,a,s,l,c,u,d,h,f,p,g,m,v;r.d(t,{WM:function(){return eZ},o1:function(){return e2}}),r(74146);var b=r(50620),y=r(23510),w=r(87675);async function x(e,t){let r;if((r="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new w.wi;try{e.setState(e=>({...e,status:"connecting"})),r.emitter.emit("message",{type:"connecting"});let n=await r.connect({chainId:t.chainId}),i=n.accounts;return r.emitter.off("connect",e._internal.events.connect),r.emitter.on("change",e._internal.events.change),r.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",r.id),e.setState(e=>({...e,connections:new Map(e.connections).set(r.uid,{accounts:i,chainId:n.chainId,connector:r}),current:r.uid,status:"connected"})),{accounts:i,chainId:n.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var _=r(6590),C=r(21548),A=r(81841),k=r(81946),E=r(75230);async function S(e,t){let r;let{chainId:n,connector:i,...o}=t;r=t.account?t.account:(await (0,E.e)(e,{account:t.account,chainId:n,connector:i})).account;let a=e.getClient({chainId:n});return(0,k.s)(a,A.Q,"estimateGas")({...o,account:r})}var T=r(52425),I=r(14679),P=r(61877),O=r(66432);async function R(e,t){let r;let{abi:n,chainId:i,connector:o,...a}=t;r=t.account?t.account:(await (0,E.e)(e,{chainId:i,connector:o})).account;let s=e.getClient({chainId:i}),l=(0,k.s)(s,O.a,"simulateContract"),{result:c,request:u}=await l({...a,abi:n,account:r});return{chainId:s.chain.id,result:c,request:{__mode:"prepared",...u,chainId:i}}}async function M(e,t){let r,n;let{account:i,chainId:o,connector:a,__mode:s,...l}=t;r="object"==typeof i&&"local"===i.type?e.getClient({chainId:o}):await (0,E.e)(e,{account:i,chainId:o,connector:a});let{connector:c}=(0,T.D)(e);if("prepared"===s||c?.supportsSimulation)n=l;else{let{request:t}=await R(e,{...l,account:i,chainId:o});n=t}let u=(0,k.s)(r,P.n,"writeContract");return await u({...n,...i?{account:i}:{},chain:o?{id:o}:null})}var N=r(18011),j=r(95270);function D(e,t){let{chainId:r,...n}=t,i=e.getClient({chainId:r});return(0,k.s)(i,j.r,"getEnsAvatar")(n)}var B=r(33397),L=r(32353);async function $(e,t){let{connector:r}=t,n=e.state.connections.get(r.uid);if(!n)throw new w.aH;return await e.storage?.setItem("recentConnectorId",r.id),e.setState(e=>({...e,current:r.uid})),{accounts:n.accounts,chainId:n.chainId}}var U=r(95602),z=r(97405),F=r(95946),q=r(61836),H=r(15229),W=r(88930),V=r(84192);function Z(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(V.Bd[e])}var G=r(9884);async function K(e,t){let{allowFailure:r=!0,chainId:n,contracts:i,...o}=t,a=e.getClient({chainId:n});return(0,k.s)(a,G.A,"multicall")({allowFailure:r,contracts:i,...o})}var Y=r(88819);async function Q(e,t){let{allowFailure:r=!0,blockNumber:n,blockTag:i,...o}=t,a=t.contracts;try{let t={};for(let[r,n]of a.entries()){let i=n.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:n,index:r})}let s=(await Promise.all(Object.entries(t).map(([t,a])=>K(e,{...o,allowFailure:r,blockNumber:n,blockTag:i,chainId:Number.parseInt(t),contracts:a.map(({contract:e})=>e)})))).flat(),l=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return s.reduce((e,t,r)=>(e&&(e[l[r]]=t),e),[])}catch(o){if(o instanceof z.uq)throw o;let t=()=>a.map(t=>(function(e,t){let{chainId:r,...n}=t,i=e.getClient({chainId:r});return(0,k.s)(i,Y.L,"readContract")(n)})(e,{...t,blockNumber:n,blockTag:i}));if(r)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function J(e,t){let{address:r,blockNumber:n,blockTag:i,chainId:o,token:a,unit:s="ether"}=t;if(a)try{return X(e,{balanceAddress:r,chainId:o,symbolType:"string",tokenAddress:a})}catch(t){if(t instanceof z.uq){let t=await X(e,{balanceAddress:r,chainId:o,symbolType:"bytes32",tokenAddress:a}),n=(0,F.rR)((0,q.f)(t.symbol,{dir:"right"}));return{...t,symbol:n}}throw t}let l=e.getClient({chainId:o}),c=(0,k.s)(l,W.s,"getBalance"),u=await c(n?{address:r,blockNumber:n}:{address:r,blockTag:i}),d=e.chains.find(e=>e.id===o)??l.chain;return{decimals:d.nativeCurrency.decimals,formatted:(0,H.b)(u,Z(s)),symbol:d.nativeCurrency.symbol,value:u}}async function X(e,t){let{balanceAddress:r,chainId:n,symbolType:i,tokenAddress:o,unit:a}=t,s={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:o},[l,c,u]=await Q(e,{allowFailure:!1,contracts:[{...s,functionName:"balanceOf",args:[r],chainId:n},{...s,functionName:"decimals",chainId:n},{...s,functionName:"symbol",chainId:n}]}),d=(0,H.b)(l??"0",Z(a??c));return{decimals:c,formatted:d,symbol:u,value:l}}var ee=r(51785);let et={id:1};var er=r(76404);async function en(e,t){let{account:r,chainId:n,...i}=t,o=r??(0,T.D)(e).address,a=e.getClient({chainId:n});return(0,k.s)(a,er.Z,"prepareTransactionRequest")({...i,...o?{account:o}:{}})}var ei=r(66357),eo=r(36117);class ea extends eo.G{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function es(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new ea({value:e});let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],a=Math.round(Number(`${i}.${o}`));(n=a>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${a}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}var el=r(64635),ec=r(257),eu=r(39240),ed=r(68597),eh=r(39028),ef=r(62914),ep=r(22319),eg=r(77548);async function em(e){if(!e)throw Error("networkControllerClient:getApprovedCaipNetworks - connector is undefined");let t=await e?.getProvider(),r=t?.signer?.session?.namespaces,n=r?.[el.bq.EIP155]?.methods,i=(0,eu.YHE)(r?.[el.bq.EIP155]?.accounts||[]);return{supportsAllNetworks:!!n?.includes(el.bq.ADD_CHAIN_METHOD),approvedCaipNetworkIds:i}}function ev(e){if(!e)throw Error("No CAIP address provided");let t=e.split(":")[2];if(!t)throw Error("Invalid CAIP address");return t}var eb=r(35355);let ey=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function ew(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let e=1;e<n;e++)o.push(i+=r());let a=r(),s=t;t+=a;let l=0,c=0;function u(){return 0==l&&(c=c<<8|e[t++],l=8),c>>--l&1}let d=2147483648-1,h=0;for(let e=0;e<31;e++)h=h<<1|u();let f=[],p=0,g=2147483648;for(;;){let e=Math.floor(((h-p+1)*i-1)/g),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<o[n]?r=n:t=n}if(0==t)break;f.push(t);let a=p+Math.floor(g*o[t]/i),s=p+Math.floor(g*o[t+1]/i)-1;for(;((a^s)&1073741824)==0;)h=h<<1&d|u(),a=a<<1&d,s=s<<1&d|1;for(;a&~s&536870912;)h=1073741824&h|h<<1&d>>>1|u(),a=a<<1^1073741824,s=(1073741824^s)<<1|1073741825;p=a,g=1+s-a}let m=n-4;return f.map(t=>{switch(t-m){case 3:return m+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return m+256+(e[s++]<<8|e[s++]);case 1:return m+e[s++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let i=0,o=0,a=0,s=0;i<r;i++)s=s<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(n[o++]=s>>(a-=8));return n}(e)),r=0,()=>t[r++]}function ex(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e<i;e++)r.push(t+e);t+=i+1}return r}function e_(e){return eA(()=>{let t=ex(e);if(t.length)return t})}function eC(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=eA(t);return ek(i.length,1+e,t).flatMap((e,t)=>{let[o,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[o+t*r,a.map(e=>e+i)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(ek(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function eA(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function ek(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,o=0;i<e;i++){var n;r[i]=o+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function eE(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function eS(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function eT(e,t){let r=e.length,n=r-t.length;for(let i=0;0==n&&i<r;i++)n=e[i]-t[i];return n}function eI(e){return e>>24&255}function eP(e){return 16777215&e}function eO(e){return e>=44032&&e<55204}function eR(e){n||function(){let e=ew("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");for(let[t,r]of(n=new Map(e_(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(ex(e)),o=new Map,a=new Map,eC(e))){if(!i.has(t)&&2==r.length){let[e,n]=r,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(n,t)}o.set(t,r.reverse())}}();let t=[],r=[],s=!1;function l(e){let r=n.get(e);r&&(s=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(eO(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,i=e%28;l(4352+t),l(4449+r),i>0&&l(4519+i)}else{let e=o.get(n);e?r.push(...e):l(n)}if(!r.length)break;n=r.pop()}if(s&&t.length>1){let e=eI(t[0]);for(let r=1;r<t.length;r++){let n=eI(t[r]);if(0==n||e<=n){e=n;continue}let i=r-1;for(;;){let r=t[i+1];if(t[i+1]=t[i],t[i]=r,!i||(e=eI(t[--i]))<=n)break}e=eI(t[r])}}return t}function eM(e){return function(e){let t=[],r=[],n=-1,i=0;for(let o of e){let e=eI(o),s=eP(o);if(-1==n)0==e?n=s:t.push(s);else if(i>0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=s):r.push(s),i=e;else{let o=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;if(eO(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);{let r=a.get(e);return r&&(r=r.get(t))?r:-1}}(n,s);o>=0?n=o:0==i&&0==e?(t.push(n),n=s):(r.push(s),i=e)}}return n>=0&&t.push(n,...r),t}(eR(e))}let eN=e=>Array.from(e);function ej(e,t){return e.P.has(t)||e.Q.has(t)}class eD extends Array{get is_emoji(){return!0}}function eB(){let e,t;if(s)return;let r=ew("AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI"),n=()=>ex(r),i=()=>new Set(n());s=new Map(eC(r)),l=i(),c=n(),u=new Set(n().map(e=>c[e])),c=new Set(c),d=i(),i();let o=e_(r),a=r(),b=()=>new Set(n().flatMap(e=>o[e]).concat(n()));h=eA(e=>{let t=eA(r).map(e=>e+96);if(t.length){let n=e>=a;return t[0]-=32,t=eS(t),n&&(t=`Restricted[${t}]`),{N:t,P:b(),Q:b(),M:!r(),R:n}}}),f=i(),p=new Map;let y=n().concat(eN(f)).sort((e,t)=>e-t);for(let{V:e,M:t}of(y.forEach((e,t)=>{let n=r(),i=y[t]=n?y[t-n]:{V:[],M:new Map};i.V.push(e),f.has(e)||p.set(e,i)}),new Set(p.values()))){let r=[];for(let t of e){let e=h.filter(e=>ej(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),e.forEach(e=>n.G.add(e))}let n=r.flatMap(e=>eN(e.G));for(let{G:e,V:i}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of i)t.set(e,r)}}let w=new Set,x=new Set,_=e=>w.has(e)?x.add(e):w.add(e);for(let e of h){for(let t of e.P)_(t);for(let t of e.Q)_(t)}for(let e of w)p.has(e)||x.has(e)||p.set(e,1);for(let n of(g=new Set(eN(w).concat(eN(eR(w).map(eP)))),m=(e=[],t=ex(r),function t({S:r,B:n},i,o){if(!(4&r)||o!==i[i.length-1])for(let a of(2&r&&(o=i[i.length-1]),1&r&&e.push(i),n))for(let e of a.Q)t(a,[...i,e],o)}(function e(n){return{S:r(),B:eA(()=>{let n=ex(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>eD.from(e)).sort(eT),v=new Map,m)){let e=[v];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function eL(e){return(ez(e)?"":`${e$(eU([e]))} `)+eE(e)}function e$(e){return`"${e}"\u200E`}function eU(e,t=eE){var r;let n=[];r=e[0],eB(),c.has(r)&&n.push("◌");let i=0,o=e.length;for(let r=0;r<o;r++){let o=e[r];ez(o)&&(n.push(eS(e.slice(i,r))),n.push(t(o)),i=r+1)}return n.push(eS(e.slice(i,o))),n.join("")}function ez(e){return eB(),d.has(e)}function eF(e){return Error(`disallowed character: ${eL(e)}`)}function eq(e,t){let r=eL(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function eH(e){return Error(`illegal placement: ${e}`)}function eW(e){return e.filter(e=>65039!=e)}function eV(e){var t;return(t=function(e,t,r){if(!e)return[];eB();let n=0;return e.split(".").map(e=>{let i=function(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}(e),o={input:i,offset:n};n+=i.length+1;try{let e,n=o.tokens=function(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let o=function(e,t){let r,n=v,i=e.length;for(;i&&(n=n.get(e[--i]));){let{V:t}=n;t&&(r=t,e.length=i)}return r}(e);if(o)i.length&&(n.push(t(i)),i=[]),n.push(r(o));else{let t=e.pop();if(g.has(t))i.push(t);else{let e=s.get(t);if(e)i.push(...e);else if(!l.has(t))throw eF(t)}}}return i.length&&n.push(t(i)),n}(i,t,r),a=n.length;if(!a)throw Error("empty label");let d=o.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(d),!(o.emoji=a>1||n[0].is_emoji)&&d.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${eS(e.slice(0,4))}"`)}(d),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(c.has(d[0]))throw eH("leading combining mark");for(let e=1;e<a;e++){let t=n[e];if(!t.is_emoji&&c.has(t[0]))throw eH(`emoji + combining mark: "${eS(n[e-1])} + ${eU([t[0]])}"`)}!function(e){let t=e[0],r=ey.get(t);if(r)throw eH(`leading ${r}`);let n=e.length,i=-1;for(let o=1;o<n;o++){t=e[o];let n=ey.get(t);if(n){if(i==o)throw eH(`${r} + ${n}`);i=o+1,r=n}}if(i==n)throw eH(`trailing ${r}`)}(d);let r=eN(new Set(t)),[i]=function(e){let t=h;for(let r of e){let e=t.filter(e=>ej(e,r));if(!e.length){if(h.some(e=>ej(e,r)))throw eq(t[0],r);throw eF(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!ej(e,r))throw eq(e,r);if(e.M){let e=eR(t).map(eP);for(let t=1,r=e.length;t<r;t++)if(u.has(e[t])){let n=t+1;for(let i;n<r&&u.has(i=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==i)throw Error(`duplicate non-spacing marks: ${eL(i)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${e$(eU(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(i,t),function(e,t){let r;let n=[];for(let e of t){let t=p.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):eN(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>ej(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(i,r),e=i.N}else e="Emoji"}o.type=e}catch(e){o.error=e}return o})}(e,eM,eW)).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${e$(eU(e))}: ${n}`)}return eS(n)}).join(".")}class eZ{constructor(e){this.appKit=void 0,this.options=void 0,this.chain=ec.bq.CHAIN.EVM,this.defaultChain=void 0,this.tokens=el.gk.getCaipTokens(this.options?.tokens),this.getCaipDefaultChain=this.options?.defaultChain,this.siweControllerClient=this.options?.siweConfig;let{wagmiConfig:t,defaultChain:n}=e;if(!t)throw Error("wagmiConfig is undefined");this.wagmiConfig=t,this.defaultChain=function(e){if(e)return{id:`${el.bq.EIP155}:${e.id}`,name:e.name,imageId:el.CK.EIP155NetworkImageIds[e.id],chain:ec.bq.CHAIN.EVM}}(n),this.siweControllerClient=e.siweConfig,this.networkControllerClient={switchCaipNetwork:async e=>{let t=ec.p1.caipNetworkIdToNumber(e?.id);t&&await (0,y.c)(this.wagmiConfig,{chainId:t})},getApprovedCaipNetworksData:async()=>new Promise(e=>{let t=new Map(this.wagmiConfig.state.connections).get(this.wagmiConfig.state.current||"");t?.connector?.id===el.bq.AUTH_CONNECTOR_ID?e({supportsAllNetworks:!1,approvedCaipNetworkIds:el.CK.WalletConnectRpcChainIds.map(e=>`${el.bq.EIP155}:${e}`)}):t?.connector?.id===el.bq.WALLET_CONNECT_CONNECTOR_ID&&e(em(this.wagmiConfig.connectors.find(e=>e.id===el.bq.WALLET_CONNECT_CONNECTOR_ID))),e({approvedCaipNetworkIds:void 0,supportsAllNetworks:!0})})},this.connectionControllerClient={connectWalletConnect:async e=>{let t=this.options?.siweConfig,n=this.wagmiConfig.connectors.find(e=>e.id===el.bq.WALLET_CONNECT_CONNECTOR_ID);if(!n)throw Error("connectionControllerClient:getWalletConnectUri - connector is undefined");let i=await n.getProvider();i.on("display_uri",t=>{e(t)});let o=await i.signer?.client?.core?.crypto?.getClientId();o&&this.appKit?.setClientId(o);let a=ec.p1.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id),s=await t?.getMessageParams?.();if(t?.options?.enabled&&"function"==typeof i?.authenticate&&s&&Object.keys(s||{}).length>0){let{SIWEController:e,getDidChainId:o,getDidAddress:l}=await r.e(5062).then(r.bind(r,25062));await n.setRequestedChainsIds(s.chains);let c=s.chains;a&&(c=[a,...s.chains.filter(e=>e!==a)]);let u=await i.authenticate({nonce:await t.getNonce(),methods:[...b.lI],...s,chains:c}),d=u?.auths?.[0];if(d){let{p:t,s:r}=d,n=o(t.iss)||"",a=l(t.iss);a&&n&&e.setSession({address:a,chainId:parseInt(n,10)});try{let n=i.signer.client.formatAuthMessage({request:t,iss:t.iss});await e.verifyMessage({message:n,signature:r.s,cacao:d})}catch(t){throw console.error("Error verifying message",t),await i.disconnect().catch(console.error),await e.signOut().catch(console.error),t}}this.wagmiConfig.state.current=""}await x(this.wagmiConfig,{connector:n,chainId:a})},connectExternal:async({id:e,provider:t,info:r})=>{let n=this.wagmiConfig.connectors.find(t=>t.id===e);if(!n)throw Error("connectionControllerClient:connectExternal - connector is undefined");this.appKit?.setClientId(null),t&&r&&n.id===el.bq.EIP6963_CONNECTOR_ID&&n.setEip6963Wallet?.({provider:t,info:r});let i=ec.p1.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id);await x(this.wagmiConfig,{connector:n,chainId:i})},checkInstalled:e=>{let t=this.appKit?.getConnectors().find(e=>"INJECTED"===e.type);return e?!!t&&!!window?.ethereum&&e.some(e=>!!window.ethereum?.[String(e)]):!!window.ethereum},disconnect:async()=>{if(await (0,_.z)(this.wagmiConfig),this.appKit?.setClientId(null),this.options?.siweConfig?.options?.signOutOnDisconnect){let{SIWEController:e}=await r.e(5062).then(r.bind(r,25062));await e.signOut()}},signMessage:async e=>{let t=ev(this.appKit?.getCaipAddress()||"");return(0,C.l)(this.wagmiConfig,{message:e,account:t})},estimateGas:async e=>{try{return await S(this.wagmiConfig,{account:e.address,to:e.to,data:e.data,type:"legacy"})}catch(e){return 0n}},sendTransaction:async e=>{let{chainId:t}=(0,T.D)(this.wagmiConfig),r={account:e.address,to:e.to,value:e.value,gas:e.gas,gasPrice:e.gasPrice,data:e.data,chainId:t,type:"legacy"};await en(this.wagmiConfig,r);let n=await (0,ei.T)(this.wagmiConfig,r);return await (0,I.e)(this.wagmiConfig,{hash:n,timeout:25e3}),n},writeContract:async e=>{let t=ev(this.appKit?.getCaipAddress()||""),r=ec.p1.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id);return await M(this.wagmiConfig,{chainId:r,address:e.tokenAddress,account:t,abi:e.abi,functionName:e.method,args:[e.receiverAddress,e.tokenAmount]})},getEnsAddress:async e=>{try{let t=ec.p1.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id),r=!1,n=!1;return e?.endsWith(ec.bq.WC_NAME_SUFFIX)&&(n=await this.appKit?.resolveWalletConnectName(e)||!1),t===et.id&&(r=await function(e,t){let{chainId:r,...n}=t,i=e.getClient({chainId:r});return(0,k.s)(i,N.O,"getEnsAddress")(n)}(this.wagmiConfig,{name:eV(e),chainId:t})),r||n||!1}catch{return!1}},getEnsAvatar:async e=>{let t=ec.p1.caipNetworkIdToNumber(this.appKit?.getCaipNetwork()?.id);return t===et.id&&(await D(this.wagmiConfig,{name:eV(e),chainId:t})||!1)},parseUnits:es,formatUnits:H.b}}construct(e,t){if(!t.projectId)throw Error("projectId is undefined");this.appKit=e,this.options=t,this.tokens=el.gk.getCaipTokens(t.tokens),this.syncRequestedNetworks([...this.wagmiConfig.chains]),this.syncConnectors(this.wagmiConfig.connectors),this.initAuthConnectorListeners([...this.wagmiConfig.connectors]),function(e,t){let{onChange:r}=t;e._internal.connectors.subscribe((e,t)=>{r(Object.values(e),t)})}(this.wagmiConfig,{onChange:e=>this.syncConnectors(e)}),(0,B.u)(this.wagmiConfig,{onChange:e=>this.syncAccount({...e})}),this.appKit?.setEIP6963Enabled(!1!==t.enableEIP6963),this.appKit?.subscribeShouldUpdateToAddress(e=>{if(e){let t=L.E(this.wagmiConfig),r=t[0]?.connector;r&&$(this.wagmiConfig,{connector:r}).then(t=>this.syncAccount({address:e,isConnected:!0,addresses:t.accounts,connector:r,chainId:t.chainId}))}})}subscribeState(e){return this.appKit?.subscribeState(t=>e({...t,selectedNetworkId:ec.p1.caipNetworkIdToNumber(t.selectedNetworkId)}))}syncRequestedNetworks(e){let t=e?.map(e=>({id:`${el.bq.EIP155}:${e.id}`,name:e.name,imageId:el.CK.EIP155NetworkImageIds[e.id],imageUrl:this.options?.chainImages?.[e.id],chain:this.chain}));this.appKit?.setRequestedCaipNetworks(t??[],this.chain)}async syncAccount({address:e,chainId:t,connector:r,addresses:n,status:i}){let o=`${el.bq.EIP155}:${t}:${e}`;this.appKit?.getCaipAddress()!==o&&("connected"===i&&e&&t?(this.syncNetwork(e,t,!0),this.appKit?.setIsConnected(!0,this.chain),this.appKit?.setCaipAddress(o,this.chain),await Promise.all([this.syncProfile(e,t),this.syncBalance(e,t),this.syncConnectedWalletInfo(r),this.appKit?.setApprovedCaipNetworksData(this.chain)]),r&&this.syncConnectedWalletInfo(r),r?.id!==el.bq.AUTH_CONNECTOR_ID&&n?.length&&this.appKit?.setAllAccounts(n.map(e=>({address:e,type:"eoa"})),this.chain)):"disconnected"===i&&(this.appKit?.resetAccount(this.chain),this.appKit?.resetWcConnection(),this.appKit?.resetNetwork(),this.appKit?.setAllAccounts([],this.chain),this.appKit?.setIsConnected(!1,this.chain)))}async syncNetwork(e,t,r){let n=this.wagmiConfig.chains.find(e=>e.id===t);if(n||t){let i=n?.name??t?.toString(),o=Number(n?.id??t),a=`${el.bq.EIP155}:${o}`;if(this.appKit?.setCaipNetwork({id:a,name:i,imageId:el.CK.EIP155NetworkImageIds[o],imageUrl:this.options?.chainImages?.[o],chain:this.chain}),r&&e&&t){let r=`${el.bq.EIP155}:${o}:${e}`;if(this.appKit?.setCaipAddress(r,this.chain),n?.blockExplorers?.default?.url){let t=`${n.blockExplorers.default.url}/address/${e}`;this.appKit?.setAddressExplorerUrl(t,this.chain)}else this.appKit?.setAddressExplorerUrl(void 0,this.chain);await this.syncBalance(e,t)}}}async syncWalletConnectName(e){if(!this.appKit)throw Error("syncWalletConnectName - appKit is undefined");try{let t=await this.appKit.getWalletConnectName(e);if(t[0]){let e=t[0];this.appKit?.setProfileName(e.name,this.chain)}else this.appKit?.setProfileName(null,this.chain)}catch{this.appKit?.setProfileName(null,this.chain)}}async syncProfile(e,t){if(!this.appKit)throw Error("syncProfile - appKit is undefined");try{let{name:t,avatar:r}=await this.appKit.fetchIdentity({address:e});this.appKit?.setProfileName(t,this.chain),this.appKit?.setProfileImage(r,this.chain),t||await this.syncWalletConnectName(e)}catch{if(t===et.id){let r=await function(e,t){let{chainId:r,...n}=t,i=e.getClient({chainId:r});return(0,k.s)(i,U.w,"getEnsName")(n)}(this.wagmiConfig,{address:e,chainId:t});if(r){this.appKit?.setProfileName(r,this.chain);let e=await D(this.wagmiConfig,{name:r,chainId:t});e&&this.appKit?.setProfileImage(e,this.chain)}else await this.syncWalletConnectName(e),this.appKit?.setProfileImage(null,this.chain)}else await this.syncWalletConnectName(e),this.appKit?.setProfileImage(null,this.chain)}}async syncBalance(e,t){let r=this.wagmiConfig.chains.find(e=>e.id===t);if(r){let t=await J(this.wagmiConfig,{address:e,chainId:r.id,token:this.options?.tokens?.[r.id]?.address});this.appKit?.setBalance(t.formatted,t.symbol,this.chain);return}this.appKit?.setBalance(void 0,void 0,this.chain)}async syncConnectedWalletInfo(e){if(!e)throw Error("syncConnectedWalletInfo - connector is undefined");if(e.id===el.bq.WALLET_CONNECT_CONNECTOR_ID&&e.getProvider){let t=await e.getProvider();t.session&&this.appKit?.setConnectedWalletInfo({...t.session.peer.metadata,name:t.session.peer.metadata.name,icon:t.session.peer.metadata.icons?.[0]},this.chain)}else{let t=this.appKit?.getConnectors().find(t=>t.id===e.id);this.appKit?.setConnectedWalletInfo({name:e.name,icon:e.icon||this.appKit.getConnectorImage(t)},this.chain)}}syncConnectors(e){let t=new Set,r=e.filter(e=>!t.has(e.id)&&t.add(e.id)),n=[];r.forEach(({id:e,name:t,type:r,icon:i})=>{el.bq.AUTH_CONNECTOR_ID!==e&&n.push({id:e,explorerId:el.CK.ConnectorExplorerIds[e],imageUrl:this.options?.connectorImages?.[e]??i,name:el.CK.ConnectorNamesMap[e]??t,imageId:el.CK.ConnectorImageIds[e],type:el.CK.ConnectorTypesMap[r]??"EXTERNAL",info:{rdns:e},chain:this.chain})}),this.appKit?.setConnectors(n),this.syncAuthConnector(r)}async syncAuthConnector(e){let t=e.find(({id:e})=>e===el.bq.AUTH_CONNECTOR_ID);if(t){let e=await t.getProvider();this.appKit?.addConnector({id:el.bq.AUTH_CONNECTOR_ID,type:"AUTH",name:"Auth",provider:e,email:t.email,socials:t.socials,showWallets:t.showWallets,chain:this.chain,walletFeatures:t.walletFeatures})}}async initAuthConnectorListeners(e){let t=e.find(({id:e})=>e===el.bq.AUTH_CONNECTOR_ID);t&&(await this.listenAuthConnector(t),await this.listenModal(t))}async listenAuthConnector(e){if("undefined"!=typeof window&&e){this.appKit?.setLoading(!0);let t=await e.getProvider(),r=t.getLoginEmailUsed();this.appKit?.setLoading(r),r&&this.appKit?.setIsConnected(!1,this.chain),t.onRpcRequest(e=>{eb.$D.checkIfRequestExists(e)?eb.$D.checkIfRequestIsSafe(e)||this.appKit?.handleUnsafeRPCRequest():(this.appKit?.open(),console.error(eb.y_.RPC_METHOD_NOT_ALLOWED_MESSAGE,{method:e.method}),setTimeout(()=>{this.appKit?.showErrorMessage(eb.y_.RPC_METHOD_NOT_ALLOWED_UI_MESSAGE)},300),t.rejectRpcRequests())}),t.onRpcError(()=>{this.appKit?.isOpen()&&(this.appKit?.isTransactionStackEmpty()?this.appKit?.close():this.appKit?.popTransactionStack(!0))}),t.onRpcSuccess((e,t)=>{eb.$D.checkIfRequestIsSafe(t)||(this.appKit?.isTransactionStackEmpty()?this.appKit?.close():this.appKit?.popTransactionStack())}),t.onNotConnected(()=>{this.appKit?.getIsConnectedState()||(this.appKit?.setIsConnected(!1,this.chain),this.appKit?.setLoading(!1))}),t.onIsConnected(e=>{this.appKit?.setIsConnected(!0,this.chain),this.appKit?.setSmartAccountDeployed(!!e.smartAccountDeployed,this.chain),this.appKit?.setPreferredAccountType(e.preferredAccountType,this.chain),this.appKit?.setLoading(!1),this.appKit?.setAllAccounts(e.accounts||[{address:e.address,type:e.preferredAccountType||"eoa"}],this.chain)}),t.onGetSmartAccountEnabledNetworks(e=>{this.appKit?.setSmartAccountEnabledNetworks(e,this.chain)}),t.onSetPreferredAccount(({address:t,type:r})=>{t&&(this.appKit?.setPreferredAccountType(r,this.chain),(0,ee.G)(this.wagmiConfig,{connectors:[e]}))})}}async listenModal(e){let t=await e.getProvider();this.subscribeState(e=>{e.open||t.rejectRpcRequests()})}}var eG=r(11502),eK=r(27319),eY=r(17897),eQ=r(45775),eJ=r(92106);function eX(e){let t,n,i,o,a,s,l,c;let u=e.isNewChainsStale??!0;return(0,eK.K)(d=>({id:"walletConnect",name:"WalletConnect",type:eX.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(a||(a=this.onConnect.bind(this),e.on("connect",a)),l||(l=this.onSessionDelete.bind(this),e.on("session_delete",l)))},async connect({chainId:e,...t}={}){try{let r=await this.getProvider();if(!r)throw new eY.M;s||(s=this.onDisplayUri,r.on("display_uri",s));let n=e;if(!n){let e=await d.storage?.getItem("state")??{};n=d.chains.some(t=>t.id===e.chainId)?e.chainId:d.chains[0]?.id}if(!n)throw Error("No chains found on connector.");let u=await this.isChainsStale();if(r.session&&u&&await r.disconnect(),!r.session||u){let e=d.chains.filter(e=>e.id!==n).map(e=>e.id);await r.connect({optionalChains:[n,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(d.chains.map(e=>e.id))}let h=(await r.enable()).map(e=>(0,eQ.K)(e)),f=await this.getChainId();return s&&(r.removeListener("display_uri",s),s=void 0),a&&(r.removeListener("connect",a),a=void 0),i||(i=this.onAccountsChanged.bind(this),r.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),r.on("chainChanged",o)),c||(c=this.onDisconnect.bind(this),r.on("disconnect",c)),l||(l=this.onSessionDelete.bind(this),r.on("session_delete",l)),{accounts:h,chainId:f}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new eh.ab(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{o&&(e?.removeListener("chainChanged",o),o=void 0),c&&(e?.removeListener("disconnect",c),c=void 0),a||(a=this.onConnect.bind(this),e?.on("connect",a)),i&&(e?.removeListener("accountsChanged",i),i=void 0),l&&(e?.removeListener("session_delete",l),l=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,eQ.K)(e))},async getProvider({chainId:i}={}){async function o(){let t=d.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:n}=await Promise.resolve().then(r.bind(r,50620));return await n.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(d.chains.map(e=>{let[t]=function(e){let{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];let n=e.transports?.[t.id]?.({chain:t});return(n?.value?.transports||[n]).map(({value:e})=>e?.url||r)}({chain:e,transports:d.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(n||(n=o()),t=await n,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),i&&await this.switchChain?.({chainId:i}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new eY.M;let n=d.chains.find(e=>e.id===t);if(!n)throw new eh.x3(new w.X4);try{await Promise.all([new Promise(e=>{let r=({chainId:n})=>{n===t&&(d.emitter.off("change",r),e())};d.emitter.on("change",r)}),r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,eJ.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),n}catch(i){if(/(user rejected)/i.test(i.message))throw new eh.ab(i);try{let i,o;i=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[...n.rpcUrls.default.http];let a={blockExplorerUrls:i,chainId:(0,eJ.eC)(t),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};await r.request({method:"wallet_addEthereumChain",params:[a]});let s=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...s,t]),n}catch(e){throw new eh.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():d.emitter.emit("change",{accounts:e.map(e=>(0,eQ.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),r=await this.getAccounts();d.emitter.emit("connect",{accounts:r,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),d.emitter.emit("disconnect");let t=await this.getProvider();i&&(t.removeListener("accountsChanged",i),i=void 0),o&&(t.removeListener("chainChanged",o),o=void 0),c&&(t.removeListener("disconnect",c),c=void 0),l&&(t.removeListener("session_delete",l),l=void 0),a||(a=this.onConnect.bind(this),t.on("connect",a))},onDisplayUri(e){d.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await d.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!u)return!1;let e=d.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let r=await this.getRequestedChainsIds();return!e.every(e=>r.includes(e))},async setRequestedChainsIds(e){await d.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}eX.type="walletConnect";var e0=r(66573);function e1(e={}){let t,n,i,o,a,s,l,c,u;return"3"===e.version||e.headlessMode?(0,eK.K)(s=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:e1.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),r=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,eQ.K)(e));i||(i=this.onAccountsChanged.bind(this),t.on("accountsChanged",i)),o||(o=this.onChainChanged.bind(this),t.on("chainChanged",o)),a||(a=this.onDisconnect.bind(this),t.on("disconnect",a));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===eh.ab.code)throw e;return{id:n}});n=t?.id??n}return{accounts:r,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account)/i.test(e.message))throw new eh.ab(e);throw e}},async disconnect(){let e=await this.getProvider();i&&(e.removeListener("accountsChanged",i),i=void 0),o&&(e.removeListener("chainChanged",o),o=void 0),a&&(e.removeListener("disconnect",a),a=void 0),e.disconnect(),e.close()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,eQ.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))},async getProvider(){if(!n){t=new(await (async()=>{let{default:e}=await Promise.all([r.e(1539),r.e(1228),r.e(8625),r.e(9635),r.e(8116)]).then(r.t.bind(r,89635,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,reloadOnDisconnect:!1});let i=t.walletExtension?.getChainId(),o=s.chains.find(t=>e.chainId?t.id===e.chainId:t.id===i)||s.chains[0],a=e.chainId||o?.id,l=e.jsonRpcUrl||o?.rpcUrls.default.http[0];n=t.makeWeb3Provider(l,a)}return n},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=s.chains.find(e=>e.id===t);if(!r)throw new eh.x3(new w.X4);let n=await this.getProvider();try{return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,eJ.eC)(r.id)}]}),r}catch(i){if(4902===i.code)try{let i,o;i=e?.blockExplorerUrls?e.blockExplorerUrls:r.blockExplorers?.default.url?[r.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:i,chainId:(0,eJ.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:o};return await n.request({method:"wallet_addEthereumChain",params:[a]}),r}catch(e){throw new eh.ab(e)}throw new eh.x3(i)}},onAccountsChanged(e){0===e.length?this.onDisconnect():s.emitter.emit("change",{accounts:e.map(e=>(0,eQ.K)(e))})},onChainChanged(e){let t=Number(e);s.emitter.emit("change",{chainId:t})},async onDisconnect(e){s.emitter.emit("disconnect");let t=await this.getProvider();i&&(t.removeListener("accountsChanged",i),i=void 0),o&&(t.removeListener("chainChanged",o),o=void 0),a&&(t.removeListener("disconnect",a),a=void 0)}})):(0,eK.K)(t=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:e1.type,async connect({chainId:e}={}){try{let t=await this.getProvider(),r=(await t.request({method:"eth_requestAccounts"})).map(e=>(0,eQ.K)(e));l||(l=this.onAccountsChanged.bind(this),t.on("accountsChanged",l)),c||(c=this.onChainChanged.bind(this),t.on("chainChanged",c)),u||(u=this.onDisconnect.bind(this),t.on("disconnect",u));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===eh.ab.code)throw e;return{id:n}});n=t?.id??n}return{accounts:r,chainId:n}}catch(e){if(/(user closed modal|accounts received is empty|user denied account|request rejected)/i.test(e.message))throw new eh.ab(e);throw e}},async disconnect(){let e=await this.getProvider();l&&(e.removeListener("accountsChanged",l),l=void 0),c&&(e.removeListener("chainChanged",c),c=void 0),u&&(e.removeListener("disconnect",u),u=void 0),e.disconnect(),e.close?.()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,eQ.K)(e))},async getChainId(){let e=await this.getProvider();return Number(await e.request({method:"eth_chainId"}))},getProvider:async()=>(s||(s=new(await (async()=>{let{default:e}=await Promise.all([r.e(1539),r.e(5811),r.e(7434)]).then(r.t.bind(r,45811,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({...e,appChainIds:t.chains.map(e=>e.id)}).makeWeb3Provider({...e,options:e.preference??"all"})),s),async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:r}){let n=t.chains.find(e=>e.id===r);if(!n)throw new eh.x3(new w.X4);let i=await this.getProvider();try{return await i.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,eJ.eC)(n.id)}]}),n}catch(t){if(4902===t.code)try{let t,o;t=e?.blockExplorerUrls?e.blockExplorerUrls:n.blockExplorers?.default.url?[n.blockExplorers?.default.url]:[],o=e?.rpcUrls?.length?e.rpcUrls:[n.rpcUrls.default?.http[0]??""];let a={blockExplorerUrls:t,chainId:(0,eJ.eC)(r),chainName:e?.chainName??n.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??n.nativeCurrency,rpcUrls:o};return await i.request({method:"wallet_addEthereumChain",params:[a]}),n}catch(e){throw new eh.ab(e)}throw new eh.x3(t)}},onAccountsChanged(e){0===e.length?this.onDisconnect():t.emitter.emit("change",{accounts:e.map(e=>(0,eQ.K)(e))})},onChainChanged(e){let r=Number(e);t.emitter.emit("change",{chainId:r})},async onDisconnect(e){t.emitter.emit("disconnect");let r=await this.getProvider();l&&(r.removeListener("accountsChanged",l),l=void 0),c&&(r.removeListener("chainChanged",c),c=void 0),u&&(r.removeListener("disconnect",u),u=void 0)}}))}function e2({projectId:e,chains:t,metadata:r,enableCoinbase:n,enableInjected:i,auth:o={},enableWalletConnect:a,enableEIP6963:s,...l}){let c=l?.connectors??[],u=Object.fromEntries(t.map(t=>[t.id,function({chain:e,projectId:t}){let r=eg.j1.getBlockchainApiUrl(),n=e.rpcUrls[0]?.http?.[0];return el.CK.WalletConnectRpcChainIds.includes(e.id)?function(e,t={}){let{key:r="fallback",name:n="Fallback",rank:i=!1,retryCount:o,retryDelay:a}=t;return({chain:t,pollingInterval:s=4e3,timeout:l,...c})=>{let u=e,d=()=>{},h=(0,ep.q)({key:r,name:n,async request({method:e,params:r}){let n=async(i=0)=>{let o=u[i]({...c,chain:t,retryCount:0,timeout:l});try{let t=await o.request({method:e,params:r});return d({method:e,params:r,response:t,transport:o,status:"success"}),t}catch(t){if(d({error:t,method:e,params:r,transport:o,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===eh.KB.code||t.code===eh.ab.code||5e3===t.code)||i===u.length-1)throw t;return n(i+1)}};return n()},retryCount:o,retryDelay:a,type:"fallback"},{onResponse:e=>d=e,transports:u.map(e=>e({chain:t,retryCount:0}))});if(i){let e="object"==typeof i?i:{};!function({chain:e,interval:t=4e3,onTransports:r,sampleCount:n=10,timeout:i=1e3,transports:o,weights:a={}}){let{stability:s=.7,latency:l=.3}=a,c=[],u=async()=>{let a=await Promise.all(o.map(async t=>{let r,n;let o=t({chain:e,retryCount:0,timeout:i}),a=Date.now();try{await o.request({method:"net_listening"}),n=1}catch{n=0}finally{r=Date.now()}return{latency:r-a,success:n}}));c.push(a),c.length>n&&c.shift();let d=Math.max(...c.map(e=>Math.max(...e.map(({latency:e})=>e))));r(o.map((e,t)=>{let r=c.map(e=>e[t].latency),n=r.reduce((e,t)=>e+t,0)/r.length,i=c.map(e=>e[t].success),o=i.reduce((e,t)=>e+t,0)/i.length;return 0===o?[0,t]:[l*(1-n/d)+s*o,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>o[e])),await (0,ef.D)(t),u()};u()}({chain:t,interval:e.interval??s,onTransports:e=>u=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:u,weights:e.weights})}return h}}([(0,ed.d)(`${r}/v1/?chainId=${el.bq.EIP155}:${e.id}&projectId=${t}`,{fetchOptions:{headers:{"Content-Type":"text/plain"}}}),(0,ed.d)(n)]):(0,ed.d)(n)}({chain:t,projectId:e})]));!1!==a&&c.push(eX({projectId:e,metadata:r,showQrModal:!1})),!1!==i&&c.push((0,e0.L)({shimDisconnect:!0})),!1!==n&&c.push(e1({version:"4",appName:r?.name??"Unknown",appLogoUrl:r?.icons[0]??"Unknown",preference:l.coinbasePreference||"all"}));let d={email:!0,showWallets:!0,walletFeatures:!0,socials:["google","x","discord","farcaster","github","apple","facebook"],...o};return(d.email||d.socials?.length)&&c.push(function(e){function t(e){return ec.p1.parseEvmChainId(e)||1}return(0,eK.K)(r=>({id:el.bq.AUTH_CONNECTOR_ID,name:"Web3Modal Auth",type:"w3mAuth",socials:e.socials,email:e.email,showWallets:e.showWallets,walletFeatures:e.walletFeatures,chain:ec.bq.CHAIN.EVM,async connect(e={}){let r=await this.getProvider(),{address:n,chainId:i}=await r.connect({chainId:e.chainId});await r.getSmartAccountEnabledNetworks();let o=t(i);return{accounts:[n],account:n,chainId:o,chain:{id:o,unsuported:!1}}},async disconnect(){let e=await this.getProvider();await e.disconnect()},async getAccounts(){let e=await this.getProvider(),{address:t}=await e.connect();return r.emitter.emit("change",{accounts:[t]}),[t]},async getProvider(){return this.provider||(this.provider=new eb.Sd(e.options.projectId)),Promise.resolve(this.provider)},async getChainId(){let e=await this.getProvider(),{chainId:r}=await e.getChainId();return t(r)},async isAuthorized(){let e=await this.getProvider(),{isConnected:t}=await e.isConnected();return t},async switchChain({chainId:e}){try{let t=r.chains.find(t=>t.id===e);if(!t)throw new eh.x3(Error("chain not found on connector."));let n=await this.getProvider(),i=await n.connect({chainId:e});return r.emitter.emit("change",{chainId:Number(e),accounts:[i.address]}),t}catch(e){if(e instanceof Error)throw new eh.x3(e);throw e}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map(eQ.K)})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){let t=await this.getProvider();await t.disconnect()}}))}({chains:[...t],options:{projectId:e},socials:d.socials,email:d.email,showWallets:d.showWallets,walletFeatures:d.walletFeatures})),(0,eG._)({chains:t,multiInjectedProviderDiscovery:!1!==s,transports:u,...l,connectors:c})}e1.type="coinbaseWallet"},257:function(e,t,r){"use strict";r.d(t,{bq:function(){return T},Em:function(){return l},kg:function(){return k},UE:function(){return S},p1:function(){return c},C6:function(){return A},em:function(){return E},tU:function(){return I}});var n=r(92977),i=r(50017),o=r(47021),a=r(53639);n.extend(o),n.extend(a);let s={...i,name:"en-web3-modal",relativeTime:{future:"in %s",past:"%s ago",s:"%d 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"}};n.locale("en-web3-modal",s);let l={getYear:(e=new Date().toISOString())=>n(e).year(),getRelativeDateFromNow:e=>n(e).locale("en-web3-modal").fromNow(!0),formatDate:(e,t="DD MMM")=>n(e).format(t)},c={caipNetworkIdToNumber:e=>e?Number(e.split(":")[1]):void 0,parseEvmChainId(e){return"string"==typeof e?this.caipNetworkIdToNumber(e):e}};var u=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,d=Math.ceil,h=Math.floor,f="[BigNumber Error] ",p=f+"Number primitive has more than 15 significant digits: ",g=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function m(e){var t=0|e;return e>0||e===t?t:t-1}function v(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function b(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>c^r?1:-1;for(a=0,s=(l=i.length)<(c=o.length)?l:c;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function y(e,t,r,n){if(e<t||e>r||e!==h(e))throw Error(f+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/14)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var C=function e(t){var r,n,i,o,a,s,l,c,C,A=L.prototype={constructor:L,toString:null,valueOf:null},k=new L(1),E=20,S=4,T=-7,I=21,P=-1e7,O=1e7,R=!1,M=1,N=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},D="0123456789abcdefghijklmnopqrstuvwxyz",B=!0;function L(e,t){var r,n,i,o,a,s,l,d,f=this;if(!(f instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){f.s=e.s,!e.c||e.e>O?f.c=f.e=null:e.e<P?f.c=[f.e=0]:(f.e=e.e,f.c=e.c.slice());return}if((s="number"==typeof e)&&0*e==0){if(f.s=1/e<0?(e=-e,-1):1,e===~~e){for(o=0,a=e;a>=10;a/=10,o++);o>O?f.c=f.e=null:(f.e=o,f.c=[e]);return}d=String(e)}else{if(!u.test(d=String(e)))return C(f,d,s);f.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(o=d.indexOf("."))>-1&&(d=d.replace(".","")),(a=d.search(/e/i))>0?(o<0&&(o=a),o+=+d.slice(a+1),d=d.substring(0,a)):o<0&&(o=d.length)}else{if(y(t,2,D.length,"Base"),10==t&&B)return F(f=new L(e),E+f.e+1,S);if(d=String(e),s="number"==typeof e){if(0*e!=0)return C(f,d,s,t);if(f.s=1/e<0?(d=d.slice(1),-1):1,L.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(p+e)}else f.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(r=D.slice(0,t),o=a=0,l=d.length;a<l;a++)if(0>r.indexOf(n=d.charAt(a))){if("."==n){if(a>o){o=l;continue}}else if(!i&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){i=!0,a=-1,o=0;continue}return C(f,String(e),s,t)}s=!1,(o=(d=c(d,t,10,f.s)).indexOf("."))>-1?d=d.replace(".",""):o=d.length}for(a=0;48===d.charCodeAt(a);a++);for(l=d.length;48===d.charCodeAt(--l););if(d=d.slice(a,++l)){if(l-=a,s&&L.DEBUG&&l>15&&(e>9007199254740991||e!==h(e)))throw Error(p+f.s*e);if((o=o-a-1)>O)f.c=f.e=null;else if(o<P)f.c=[f.e=0];else{if(f.e=o,f.c=[],a=(o+1)%14,o<0&&(a+=14),a<l){for(a&&f.c.push(+d.slice(0,a)),l-=14;a<l;)f.c.push(+d.slice(a,a+=14));a=14-(d=d.slice(a)).length}else a-=l;for(;a--;d+="0");f.c.push(+d)}}else f.c=[f.e=0]}function $(e,t,r,n){var i,o,a,s,l;if(null==r?r=S:y(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=v(e.c),l=1==n||2==n&&(a<=T||a>=I)?x(l,a):_(l,a,"0");else if(o=(e=F(new L(e),t,r)).e,s=(l=v(e.c)).length,1==n||2==n&&(t<=o||o<=T)){for(;s<t;l+="0",s++);l=x(l,o)}else if(t-=a,l=_(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function U(e,t){for(var r,n,i=1,o=new L(e[0]);i<e.length;i++)(n=new L(e[i])).s&&(r=b(o,n))!==t&&(0!==r||o.s!==t)||(o=n);return o}function z(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>O?e.c=e.e=null:r<P?e.c=[e.e=0]:(e.e=r,e.c=t),e}function F(e,t,r,n){var i,o,a,s,l,c,u,f=e.c;if(f){n:{for(i=1,s=f[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=14,a=t,u=h((l=f[c=0])/g[i-a-1]%10);else if((c=d((o+1)/14))>=f.length){if(n){for(;f.length<=c;f.push(0));l=u=0,i=1,o%=14,a=o-14+1}else break n}else{for(i=1,l=s=f[c];s>=10;s/=10,i++);o%=14,u=(a=o-14+i)<0?0:h(l/g[i-a-1]%10)}if(n=n||t<0||null!=f[c+1]||(a<0?l:l%g[i-a-1]),n=r<4?(u||n)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?l/g[i-a]:0:f[c-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=g[(14-t%14)%14],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=c,s=1,c--):(f.length=c+1,s=g[14-o],f[c]=a>0?h(l/g[i-a]%g[a])*s:0),n)for(;;){if(0==c){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,1e14==f[0]&&(f[0]=1));break}if(f[c]+=s,1e14!=f[c])break;f[c--]=0,s=1}for(o=f.length;0===f[--o];f.pop());}e.e>O?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function q(e){var t,r=e.e;return null===r?e.toString():(t=v(e.c),t=r<=T||r>=I?x(t,r):_(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(y(r=e[t],0,1e9,t),E=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(y(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(y(r[0],-1e9,0,t),y(r[1],0,1e9,t),T=r[0],I=r[1]):(y(r,-1e9,1e9,t),T=-(I=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)y(r[0],-1e9,-1,t),y(r[1],1,1e9,t),P=r[0],O=r[1];else if(y(r,-1e9,1e9,t),r)P=-(O=r<0?-r:r);else throw Error(f+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(f+"crypto unavailable")}else R=r}else throw Error(f+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(y(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(y(r=e[t],0,1e9,t),N=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))j=r;else throw Error(f+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r);B="0123456789"==r.slice(0,10),D=r}}else throw Error(f+"Object expected: "+e)}return{DECIMAL_PLACES:E,ROUNDING_MODE:S,EXPONENTIAL_AT:[T,I],RANGE:[P,O],CRYPTO:R,MODULO_MODE:M,POW_PRECISION:N,FORMAT:j,ALPHABET:D}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;n:if("[object Array]"==({}).toString.call(n)){if((1===o||-1===o)&&i>=-1e9&&i<=1e9&&i===h(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break n}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==h(r))break n;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(f+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return U(arguments,-1)},L.minimum=L.min=function(){return U(arguments,1)},L.random=(r=9007199254740992*Math.random()&2097151?function(){return h(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,i,o,a,s=0,l=[],c=new L(k);if(null==e?e=E:y(e,0,1e9),o=d(e/14),R){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(o*=2));s<o;)(a=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(l.push(a%1e14),s+=2);s=o/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(o*=7);s<o;)(a=(31&t[s])*281474976710656+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(l.push(a%1e14),s+=7);s=o/7}else throw R=!1,Error(f+"crypto unavailable")}if(!R)for(;s<o;)(a=r())<9e15&&(l[s++]=a%1e14);for(o=l[--s],e%=14,o&&e&&(a=g[14-e],l[s]=h(o/a)*a);0===l[s];l.pop(),s--);if(s<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=14);for(s=1,a=l[0];a>=10;a/=10,s++);s<14&&(i-=14-s)}return c.e=i,c.c=l,c}),L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},c=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,c,u,d,h,f,p,g,m=r.indexOf("."),b=E,y=S;for(m>=0&&(d=N,N=0,r=r.replace(".",""),f=(g=new L(n)).pow(r.length-m),N=d,g.c=t(_(v(f.c),f.e,"0"),10,i,e),g.e=g.c.length),u=d=(p=t(r,n,i,a?(s=D,e):(s=e,D))).length;0==p[--d];p.pop());if(!p[0])return s.charAt(0);if(m<0?--u:(f.c=p,f.e=u,f.s=o,p=(f=l(f,g,b,y,i)).c,h=f.r,u=f.e),m=p[c=u+b+1],d=i/2,h=h||c<0||null!=p[c+1],h=y<4?(null!=m||h)&&(0==y||y==(f.s<0?3:2)):m>d||m==d&&(4==y||h||6==y&&1&p[c-1]||y==(f.s<0?8:7)),c<1||!p[0])r=h?_(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(p.length=c,h)for(--i;++p[--c]>i;)p[c]=0,c||(++u,p=[1].concat(p));for(d=p.length;!p[--d];);for(m=0,r="";m<=d;r+=s.charAt(p[m++]));r=_(r,u,s.charAt(0))}return r}}(),l=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,c=t%1e7,u=t/1e7|0;for(e=e.slice();l--;)n=u*(o=e[l]%1e7)+(a=e[l]/1e7|0)*c,s=((i=c*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+u*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,a,s){var l,c,u,d,f,p,g,v,b,y,w,x,_,C,A,k,E,S=n.s==i.s?1:-1,T=n.c,I=i.c;if(!T||!T[0]||!I||!I[0])return new L(n.s&&i.s&&(T?!I||T[0]!=I[0]:I)?T&&0==T[0]||!I?0*S:S/0:NaN);for(b=(v=new L(S)).c=[],S=o+(c=n.e-i.e)+1,s||(s=1e14,c=m(n.e/14)-m(i.e/14),S=S/14|0),u=0;I[u]==(T[u]||0);u++);if(I[u]>(T[u]||0)&&c--,S<0)b.push(1),d=!0;else{for(C=T.length,k=I.length,u=0,S+=2,(f=h(s/(I[0]+1)))>1&&(I=e(I,f,s),T=e(T,f,s),k=I.length,C=T.length),_=k,w=(y=T.slice(0,k)).length;w<k;y[w++]=0);E=[0].concat(E=I.slice()),A=I[0],I[1]>=s/2&&A++;do{if(f=0,(l=t(I,y,k,w))<0){if(x=y[0],k!=w&&(x=x*s+(y[1]||0)),(f=h(x/A))>1)for(f>=s&&(f=s-1),g=(p=e(I,f,s)).length,w=y.length;1==t(p,y,g,w);)f--,r(p,k<g?E:I,g,s),g=p.length,l=1;else 0==f&&(l=f=1),g=(p=I.slice()).length;if(g<w&&(p=[0].concat(p)),r(y,p,w,s),w=y.length,-1==l)for(;1>t(I,y,k,w);)f++,r(y,k<w?E:I,w,s),w=y.length}else 0===l&&(f++,y=[0]);b[u++]=f,y[0]?y[w++]=T[_]||0:(y=[T[_]],w=1)}while((_++<C||null!=y[0])&&S--);d=null!=y[0],b[0]||b.splice(0,1)}if(1e14==s){for(u=1,S=b[0];S>=10;S/=10,u++);F(v,o+(v.e=u+14*c-1)+1,a,d)}else v.e=c,v.r=+d;return v}}(),n=/^(-?)0([xbo])(?=\w[\w.]*$)/i,i=/^([^.]+)\.$/,o=/^\.([^.]+)$/,a=/^-?(Infinity|NaN)$/,s=/^\s*\+(?=[\w.])|^\s+|\s+$/g,C=function(e,t,r,l){var c,u=r?t:t.replace(s,"");if(a.test(u))e.s=isNaN(u)?null:u<0?-1:1;else{if(!r&&(u=u.replace(n,function(e,t,r){return c="x"==(r=r.toLowerCase())?16:"b"==r?2:8,l&&l!=c?e:t}),l&&(c=l,u=u.replace(i,"$1").replace(o,"0.$1")),t!=u))return new L(u,c);if(L.DEBUG)throw Error(f+"Not a"+(l?" base "+l:"")+" number: "+t);e.s=null}e.c=e.e=null},A.absoluteValue=A.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},A.comparedTo=function(e,t){return b(this,new L(e,t))},A.decimalPlaces=A.dp=function(e,t){var r,n,i;if(null!=e)return y(e,0,1e9),null==t?t=S:y(t,0,8),F(new L(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-m(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},A.dividedBy=A.div=function(e,t){return l(this,new L(e,t),E,S)},A.dividedToIntegerBy=A.idiv=function(e,t){return l(this,new L(e,t),0,1)},A.exponentiatedBy=A.pow=function(e,t){var r,n,i,o,a,s,l,c,u,p=this;if((e=new L(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+q(e));if(null!=t&&(t=new L(t)),s=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return u=new L(Math.pow(+q(p),s?e.s*(2-w(e)):+q(e))),t?u.mod(t):u;if(l=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(n=!l&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||s&&p.c[1]>=24e7:p.c[0]<8e13||s&&p.c[0]<=9999975e7)))return o=p.s<0&&w(e)?-0:0,p.e>-1&&(o=1/o),new L(l?1/o:o);N&&(o=d(N/14+2))}for(s?(r=new L(.5),l&&(e.s=1),c=w(e)):c=(i=Math.abs(+q(e)))%2,u=new L(k);;){if(c){if(!(u=u.times(p)).c)break;o?u.c.length>o&&(u.c.length=o):n&&(u=u.mod(t))}if(i){if(0===(i=h(i/2)))break;c=i%2}else if(F(e=e.times(r),e.e+1,1),e.e>14)c=w(e);else{if(0==(i=+q(e)))break;c=i%2}p=p.times(p),o?p.c&&p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}return n?u:(l&&(u=k.div(u)),t?u.mod(t):o?F(u,N,S,a):u)},A.integerValue=function(e){var t=new L(this);return null==e?e=S:y(e,0,8),F(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===b(this,new L(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return b(this,new L(e,t))>0},A.isGreaterThanOrEqualTo=A.gte=function(e,t){return 1===(t=b(this,new L(e,t)))||0===t},A.isInteger=function(){return!!this.c&&m(this.e/14)>this.c.length-2},A.isLessThan=A.lt=function(e,t){return 0>b(this,new L(e,t))},A.isLessThanOrEqualTo=A.lte=function(e,t){return -1===(t=b(this,new L(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return this.s>0},A.isZero=function(){return!!this.c&&0==this.c[0]},A.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,c=this.c,u=e.c;if(!s||!l){if(!c||!u)return c?(e.s=-t,e):new L(u?this:NaN);if(!c[0]||!u[0])return u[0]?(e.s=-t,e):new L(c[0]?this:3==S?-0:0)}if(s=m(s),l=m(l),c=c.slice(),a=s-l){for((o=a<0)?(a=-a,i=c):(l=s,i=u),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=u.length))?a:t,a=t=0;t<n;t++)if(c[t]!=u[t]){o=c[t]<u[t];break}if(o&&(i=c,c=u,u=i,e.s=-e.s),(t=(n=u.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=1e14-1;n>a;){if(c[--n]<u[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=1e14}c[n]-=u[n]}for(;0==c[0];c.splice(0,1),--l);return c[0]?z(e,c,l):(e.s=3==S?-1:1,e.c=[e.e=0],e)},A.modulo=A.mod=function(e,t){var r,n;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==M?(n=e.s,e.s=1,r=l(this,e,0,3),e.s=n,r.s*=n):r=l(this,e,0,M),(e=this.minus(r.times(e))).c[0]||1!=M||(e.s=this.s),e):new L(this):new L(NaN)},A.multipliedBy=A.times=function(e,t){var r,n,i,o,a,s,l,c,u,d,h,f,p,g=this.c,v=(e=new L(e,t)).c;if(!g||!v||!g[0]||!v[0])return this.s&&e.s&&(!g||g[0]||v)&&(!v||v[0]||g)?(e.s*=this.s,g&&v?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=m(this.e/14)+m(e.e/14),e.s*=this.s,(l=g.length)<(d=v.length)&&(p=g,g=v,v=p,i=l,l=d,d=i),i=l+d,p=[];i--;p.push(0));for(i=d;--i>=0;){for(r=0,h=v[i]%1e7,f=v[i]/1e7|0,o=i+(a=l);o>i;)s=f*(c=g[--a]%1e7)+(u=g[a]/1e7|0)*h,r=((c=h*c+s%1e7*1e7+p[o]+r)/1e14|0)+(s/1e7|0)+f*u,p[o--]=c%1e14;p[o]=r}return r?++n:p.splice(0,1),z(e,p,n)},A.negated=function(){var e=new L(this);return e.s=-e.s||null,e},A.plus=function(e,t){var r,n=this.s;if(t=(e=new L(e,t)).s,!n||!t)return new L(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new L(n/0);if(!a[0]||!s[0])return s[0]?e:new L(a[0]?this:0*n)}if(i=m(i),o=m(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),z(e,a,o)},A.precision=A.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return y(e,1,1e9),null==t?t=S:y(t,0,8),F(new L(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},A.shiftedBy=function(e){return y(e,-9007199254740991,9007199254740991),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,c=E+4,u=new L("0.5");if(1!==a||!o||!o[0])return new L(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+q(this)))||a==1/0?(((t=v(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=m((s+1)/2)-(s<0||s%2),r=new L(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new L(a+""),r.c[0]){for((a=(s=r.e)+c)<3&&(a=0);;)if(i=r,r=u.times(i.plus(l(this,i,c,1))),v(i.c).slice(0,a)===(t=v(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(F(r,r.e+E+2,1),e=!r.times(r).eq(this));break}if(!n&&(F(i,i.e+E+2,0),i.times(i).eq(this))){r=i;break}c+=4,a+=4,n=1}}return F(r,r.e+E+1,S,e)},A.toExponential=function(e,t){return null!=e&&(y(e,0,1e9),e++),$(this,e,t,1)},A.toFixed=function(e,t){return null!=e&&(y(e,0,1e9),e=e+this.e+1),$(this,e,t)},A.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),a=+r.groupSize,s=+r.secondaryGroupSize,l=r.groupSeparator||"",c=o[0],u=o[1],d=this.s<0,h=d?c.slice(1):c,p=h.length;if(s&&(i=a,a=s,s=i,p-=i),a>0&&p>0){for(i=p%a||a,c=h.substr(0,i);i<p;i+=a)c+=l+h.substr(i,a);s>0&&(c+=l+h.slice(i)),d&&(c="-"+c)}n=u?c+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?u.replace(RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):u):c}return(r.prefix||"")+n+(r.suffix||"")},A.toFraction=function(e){var t,r,n,i,o,a,s,c,u,d,h,p,m=this.c;if(null!=e&&(!(s=new L(e)).isInteger()&&(s.c||1!==s.s)||s.lt(k)))throw Error(f+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+q(s));if(!m)return new L(this);for(t=new L(k),u=r=new L(k),n=c=new L(k),p=v(m),o=t.e=p.length-this.e-1,t.c[0]=g[(a=o%14)<0?14+a:a],e=!e||s.comparedTo(t)>0?o>0?t:u:s,a=O,O=1/0,s=new L(p),c.c[0]=0;d=l(s,t,0,1),1!=(i=r.plus(d.times(n))).comparedTo(e);)r=n,n=i,u=c.plus(d.times(i=u)),c=i,t=s.minus(d.times(i=t)),s=i;return i=l(e.minus(r),n,0,1),c=c.plus(i.times(u)),r=r.plus(i.times(n)),c.s=u.s=this.s,o*=2,h=1>l(u,n,o,S).minus(this).abs().comparedTo(l(c,r,o,S).minus(this).abs())?[u,n]:[c,r],O=a,h},A.toNumber=function(){return+q(this)},A.toPrecision=function(e,t){return null!=e&&y(e,1,1e9),$(this,e,t,2)},A.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=T||i>=I?x(v(r.c),i):_(v(r.c),i,"0"):10===e&&B?t=_(v((r=F(new L(r),E+i+1,S)).c),r.e,"0"):(y(e,2,D.length,"Base"),t=c(_(v(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},A.valueOf=A.toJSON=function(){return q(this)},A._isBigNumber=!0,A[Symbol.toStringTag]="BigNumber",A[Symbol.for("nodejs.util.inspect.custom")]=A.valueOf,null!=t&&L.set(t),L}();let A={bigNumber:e=>new C(e),multiply(e,t){if(void 0===e||void 0===t)return C(0);let r=new C(e),n=new C(t);return r.multipliedBy(n)},formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})},k={numericInputKeyDown(e,t,r){let n=e.metaKey||e.ctrlKey,i=e.key,o=i.toLocaleLowerCase(),a=","===i,s="."===i,l=i>="0"&&i<="9";n||"a"!==o&&"c"!==o&&"v"!==o&&"x"!==o||e.preventDefault(),"0"!==t||a||s||"0"!==i||e.preventDefault(),"0"===t&&l&&(r(i),e.preventDefault()),(a||s)&&(t||(r("0."),e.preventDefault()),(t?.includes(".")||t?.includes(","))&&e.preventDefault()),l||["Backspace","Meta","Ctrl","a","A","c","C","x","X","v","V","ArrowLeft","ArrowRight","Tab"].includes(i)||s||a||e.preventDefault()}},E=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],S={URLS:{FAQ:"https://walletconnect.com/faq"}},T={WC_NAME_SUFFIX:".wcn.id",BLOCKCHAIN_API_RPC_URL:"https://rpc.walletconnect.org",PULSE_API_URL:"https://pulse.walletconnect.org",W3M_API_URL:"https://api.web3modal.org",CHAIN:{EVM:"evm",SOLANA:"solana"},CHAIN_NAME_MAP:{evm:"Ethereum",solana:"Solana"}};function I(e,t){return"light"===t?{"--w3m-accent":e?.["--w3m-accent"]||"hsla(231, 100%, 70%, 1)","--w3m-background":"#fff"}:{"--w3m-accent":e?.["--w3m-accent"]||"hsla(230, 100%, 67%, 1)","--w3m-background":"#121313"}}},77548:function(e,t,r){"use strict";r.d(t,{AccountController:function(){return eo},ApiController:function(){return B},WM:function(){return b},fz:function(){return ew},Lr:function(){return q},RY:function(){return R},ConnectionController:function(){return Y},ConnectorController:function(){return _},bq:function(){return l},j1:function(){return c},a:function(){return eb},Xs:function(){return E},IN:function(){return es},fB:function(){return N},ph:function(){return ed},OptionsController:function(){return $},Ie:function(){return T},RouterController:function(){return X},_4:function(){return ex},Si:function(){return ef},SnackController:function(){return W},MO:function(){return m},nY:function(){return en},ThemeController:function(){return w},fw:function(){return eg},sl:function(){return G}});var n=r(73932),i=r(17832),o=r(257);let a="https://secure.walletconnect.org",s=[{label:"Coinbase",name:"coinbase",feeRange:"1-2%",url:""}],l={FOUR_MINUTES_MS:24e4,TEN_SEC_MS:1e4,ONE_SEC_MS:1e3,SECURE_SITE:a,SECURE_SITE_DASHBOARD:`${a}/dashboard`,SECURE_SITE_FAVICON:`${a}/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"],WC_COINBASE_PAY_SDK_CHAINS:["ethereum","arbitrum","polygon","avalanche-c-chain","optimism","celo","base"],WC_COINBASE_PAY_SDK_FALLBACK_CHAIN:"ethereum",WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP:{Ethereum:"ethereum","Arbitrum One":"arbitrum",Polygon:"polygon",Avalanche:"avalanche-c-chain","OP Mainnet":"optimism",Celo:"celo",Base:"base"},WC_COINBASE_ONRAMP_APP_ID:"bf18c88d-495a-463b-b249-0b9d3656cf5e",SWAP_SUGGESTED_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP"],SWAP_POPULAR_TOKENS:["ETH","UNI","1INCH","AAVE","SOL","ADA","AVAX","DOT","LINK","NITRO","GAIA","MILK","TRX","NEAR","GNO","WBTC","DAI","WETH","USDC","USDT","ARB","BAL","BICO","CRV","ENS","MATIC","OP","METAL","DAI","CHAMP","WOLF","SALE","BAL","BUSD","MUST","BTCpx","ROUTE","HEX","WELT","amDAI","VSQ","VISION","AURUM","pSP","SNX","VC","LINK","CHP","amUSDT","SPHERE","FOX","GIDDY","GFC","OMEN","OX_OLD","DE","WNT"],SWAP_SUPPORTED_NETWORKS:["eip155:1","eip155:42161","eip155:10","eip155:324","eip155:8453","eip155:56","eip155:137","eip155:100","eip155:43114","eip155:250","eip155:8217","eip155:1313161554"],NATIVE_TOKEN_ADDRESS:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",CONVERT_SLIPPAGE_TOLERANCE:1},c={isMobile:()=>"undefined"!=typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),checkCaipNetwork:(e,t="")=>e?.id.toLocaleLowerCase().includes(t.toLowerCase()),isAndroid(){let e=window.navigator.userAgent.toLowerCase();return c.isMobile()&&e.includes("android")},isIos(){let e=window.navigator.userAgent.toLowerCase();return c.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isClient:()=>"undefined"!=typeof window,isPairingExpired:e=>!e||e-Date.now()<=l.TEN_SEC_MS,isAllowedRetry:e=>Date.now()-e>=l.ONE_SEC_MS,copyToClopboard(e){navigator.clipboard.writeText(e)},getPairingExpiry:()=>Date.now()+l.FOUR_MINUTES_MS,getNetworkId:e=>e?.split(":")[1],getPlainAddress:e=>e?.split(":")[2],wait:async e=>new Promise(t=>{setTimeout(t,e)}),debounce(e,t=500){let r;return(...n)=>{r&&clearTimeout(r),r=setTimeout(function(){e(...n)},t)}},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),formatNativeUrl(e,t){if(c.isHttpUrl(e))return this.formatUniversalUrl(e,t);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}},formatUniversalUrl(e,t){if(!c.isHttpUrl(e))return this.formatNativeUrl(e,t);let r=e;r.endsWith("/")||(r=`${r}/`);let n=encodeURIComponent(t);return{redirect:`${r}wc?uri=${n}`,href:r}},openHref(e,t,r){window.open(e,t,r||"noreferrer noopener")},returnOpenHref:(e,t,r)=>window.open(e,t,r||"noreferrer noopener"),preloadImage:async e=>Promise.race([new Promise((t,r)=>{let n=new Image;n.onload=t,n.onerror=r,n.crossOrigin="anonymous",n.src=e}),c.wait(2e3)]),formatBalance(e,t){let r="0.000";if("string"==typeof e){let t=Number(e);if(t){let e=Math.floor(1e3*t)/1e3;e&&(r=e.toString())}}return`${r}${t?` ${t}`:""}`},formatBalance2(e,t){let r;if("0"===e)r="0";else if("string"==typeof e){let t=Number(e);t&&(r=t.toString().match(/^-?\d+(?:\.\d{0,3})?/u)?.[0])}return{value:r??"0",rest:"0"===r?"000":"",symbol:t}},getApiUrl:()=>o.bq.W3M_API_URL,getBlockchainApiUrl:()=>o.bq.BLOCKCHAIN_API_RPC_URL,getAnalyticsUrl:()=>o.bq.PULSE_API_URL,getUUID:()=>crypto?.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/gu,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),parseError:e=>"string"==typeof e?e:"string"==typeof e?.issues?.[0]?.message?e.issues[0].message:e instanceof Error?e.message:"Unknown error",sortRequestedNetworks(e,t=[]){let r={};return t&&e&&(e.forEach((e,t)=>{r[e]=t}),t.sort((e,t)=>{let n=r[e.id],i=r[t.id];return void 0!==n&&void 0!==i?n-i:void 0!==n?-1:void 0!==i?1:0})),t},calculateBalance(e){let t=0;for(let r of e)t+=r.value??0;return t},formatTokenBalance(e){let[t,r]=e.toFixed(2).split(".");return{dollars:t,pennies:r}},isAddress:e=>!!(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)&&(/^(?:0x)?[0-9a-f]{40}$/iu.test(e)||/^(?:0x)?[0-9A-F]{40}$/iu.test(e))),uniqueBy(e,t){let r=new Set;return e.filter(e=>{let n=e[t];return!r.has(n)&&(r.add(n),!0)})}};async function u(...e){let t=await fetch(...e);if(!t.ok)throw Error(`HTTP status code: ${t.status}`,{cause:t});return t}class d{constructor({baseUrl:e,clientId:t}){this.baseUrl=e,this.clientId=t}async get({headers:e,signal:t,cache:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"GET",headers:e,signal:t,cache:r})).json()}async getBlob({headers:e,signal:t,...r}){let n=this.createUrl(r);return(await u(n,{method:"GET",headers:e,signal:t})).blob()}async post({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"POST",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async put({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"PUT",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}async delete({body:e,headers:t,signal:r,...n}){let i=this.createUrl(n);return(await u(i,{method:"DELETE",headers:t,body:e?JSON.stringify(e):void 0,signal:r})).json()}createUrl({path:e,params:t}){let r=new URL(e,this.baseUrl);return t&&Object.entries(t).forEach(([e,t])=>{t&&r.searchParams.append(e,t)}),this.clientId&&r.searchParams.append("clientId",this.clientId),r}}let h="WALLETCONNECT_DEEPLINK_CHOICE",f="@w3m/recent",p="@w3m/connected_connector",g="@w3m/connected_social",m={setWalletConnectDeepLink({href:e,name:t}){try{localStorage.setItem(h,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},getWalletConnectDeepLink(){try{let e=localStorage.getItem(h);if(e)return JSON.parse(e)}catch{console.info("Unable to get WalletConnect deep link")}},deleteWalletConnectDeepLink(){try{localStorage.removeItem(h)}catch{console.info("Unable to delete WalletConnect deep link")}},setWeb3ModalRecent(e){try{let t=m.getRecentWallets();t.find(t=>t.id===e.id)||(t.unshift(e),t.length>2&&t.pop(),localStorage.setItem(f,JSON.stringify(t)))}catch{console.info("Unable to set Web3Modal recent")}},getRecentWallets(){try{let e=localStorage.getItem(f);return e?JSON.parse(e):[]}catch{console.info("Unable to get Web3Modal recent")}return[]},setConnectedConnector(e){try{localStorage.setItem(p,e)}catch{console.info("Unable to set Connected Connector")}},getConnectedConnector(){try{return localStorage.getItem(p)}catch{console.info("Unable to get Connected Connector")}},setConnectedSocialProvider(e){try{localStorage.setItem(g,e)}catch{console.info("Unable to set Connected Social Provider")}},getConnectedSocialProvider(){try{return localStorage.getItem(g)}catch{console.info("Unable to get Connected Social Provider")}},getConnectedSocialUsername(){try{return localStorage.getItem("@w3m-storage/SOCIAL_USERNAME")}catch{console.info("Unable to get Connected Social Username")}}},v=(0,i.sj)({walletImages:{},networkImages:{},chainImages:{},connectorImages:{},tokenImages:{},currencyImages:{}}),b={state:v,subscribeNetworkImages:e=>(0,i.Ld)(v.networkImages,()=>e(v.networkImages)),subscribeKey:(e,t)=>(0,n.VW)(v,e,t),subscribe:e=>(0,i.Ld)(v,()=>e(v)),setWalletImage(e,t){v.walletImages[e]=t},setNetworkImage(e,t){v.networkImages[e]=t},setChainImage(e,t){v.chainImages[e]=t},setConnectorImage(e,t){v.connectorImages[e]=t},setTokenImage(e,t){v.tokenImages[e]=t},setCurrencyImage(e,t){v.currencyImages[e]=t}},y=(0,i.sj)({themeMode:"dark",themeVariables:{},w3mThemeVariables:void 0}),w={state:y,subscribe:e=>(0,i.Ld)(y,()=>e(y)),setThemeMode(e){y.themeMode=e;try{let t=_.getAuthConnector();if(t){let r=w.getSnapshot().themeVariables;t.provider.syncTheme({themeMode:e,themeVariables:r,w3mThemeVariables:(0,o.tU)(r,e)})}}catch{console.info("Unable to sync theme to auth connector")}},setThemeVariables(e){y.themeVariables={...y.themeVariables,...e};try{let e=_.getAuthConnector();if(e){let t=w.getSnapshot().themeVariables;e.provider.syncTheme({themeVariables:t,w3mThemeVariables:(0,o.tU)(y.themeVariables,y.themeMode)})}}catch{console.info("Unable to sync theme to auth connector")}},getSnapshot:()=>(0,i.CO)(y)},x=(0,i.sj)({unMergedConnectors:[],connectors:[]}),_={state:x,subscribeKey:(e,t)=>(0,n.VW)(x,e,t),setConnectors(e){e.forEach(this.syncIfAuthConnector),x.unMergedConnectors=[...x.unMergedConnectors,...e],x.connectors=this.mergeMultiChainConnectors(x.unMergedConnectors)},mergeMultiChainConnectors(e){return Array.from(this.generateConnectorMapByName(e).values()).map(e=>e.length>1?{name:e[0]?.name,imageUrl:e[0]?.imageUrl,imageId:e[0]?.imageId,providers:this.getUniqueConnectorsByName(e),type:"MULTI_CHAIN"}:e[0])},generateConnectorMapByName(e){let t=new Map;return e.forEach(e=>{let{name:r}=e;if(!r)return;let n=t.get(r)||[];n.find(t=>t.chain===e.chain)||n.push(e),t.set(r,n)}),t},getUniqueConnectorsByName(e){let t=[];return e.forEach(e=>{t.find(t=>t.chain===e.chain)||t.push({...e,name:o.bq.CHAIN_NAME_MAP[e.chain]})}),t},addConnector(e){this.setConnectors([e])},getAuthConnector:()=>x.connectors.find(e=>"AUTH"===e.type),getAnnouncedConnectorRdns:()=>x.connectors.filter(e=>"ANNOUNCED"===e.type).map(e=>e.info?.rdns),getConnectors:()=>x.connectors,getConnector:(e,t)=>x.connectors.find(r=>r.explorerId===e||r.info?.rdns===t),syncIfAuthConnector(e){if("w3mAuth"!==e.id)return;let t=(0,i.CO)($.state),r=w.getSnapshot().themeMode,n=w.getSnapshot().themeVariables;e?.provider?.syncDappData?.({metadata:t.metadata,sdkVersion:t.sdkVersion,projectId:t.projectId}),e.provider.syncTheme({themeMode:r,themeVariables:n,w3mThemeVariables:(0,o.tU)(n,r)})}},C=new d({baseUrl:c.getAnalyticsUrl(),clientId:null}),A=["MODAL_CREATED"],k=(0,i.sj)({timestamp:Date.now(),data:{type:"track",event:"MODAL_CREATED"}}),E={state:k,subscribe:e=>(0,i.Ld)(k,()=>e(k)),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=$.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},async _sendAnalyticsEvent(e){try{if(A.includes(e.data.event)||"undefined"==typeof window)return;await C.post({path:"/e",headers:E._getApiHeaders(),body:{eventId:c.getUUID(),url:window.location.href,domain:window.location.hostname,timestamp:e.timestamp,props:e.data}})}catch{}},sendEvent(e){k.timestamp=Date.now(),k.data=e,$.state.enableAnalytics&&E._sendAnalyticsEvent(k)}},S=(0,i.sj)({loading:!1,open:!1,selectedNetworkId:void 0,activeChain:void 0}),T={state:S,subscribe:e=>(0,i.Ld)(S,()=>e(S)),set(e){Object.assign(S,{...S,...e})}},I={isConnected:!1,currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]},P={supportsAllNetworks:!0,isDefaultCaipNetwork:!1,smartAccountEnabledNetworks:[]},O=(0,i.sj)({chains:(0,n.Yr)(),activeChain:void 0,activeCaipNetwork:void 0}),R={state:O,subscribeKey:(e,t)=>(0,n.VW)(O,e,t),subscribeChain(e){let t;return(0,i.Ld)(O.chains,()=>{let r=O.activeChain;if(r){let n=O.chains.get(r);t&&t===n||(t=n,e(n))}})},subscribeChainProp(e,t){let r;return(0,i.Ld)(O.chains,()=>{let n=O.activeChain;if(n){let i=O.chains.get(n)?.[e];r!==i&&(r=i,t(i))}})},initialize(e){let t=e?.[0];if(!t)throw Error("Adapter is required to initialize ChainController");O.activeChain=t.chain,T.set({activeChain:t.chain}),this.setActiveCaipNetwork(t.defaultChain),e.forEach(e=>{O.chains.set(e.chain,{chain:e.chain,connectionControllerClient:e.connectionControllerClient,networkControllerClient:e.networkControllerClient,accountState:I,networkState:P})})},setChainNetworkData(e,t,r=!1){if(!e)throw Error("Chain is required to update chain network data");let n=O.chains.get(e);n&&(n.networkState=(0,i.iH)({...n.networkState,...t}),O.chains.set(e,(0,i.iH)(n)),(r||1===O.chains.size||O.activeChain===e)&&N.replaceState(n.networkState))},setChainAccountData(e,t,r=!0){if(!e)throw Error("Chain is required to update chain account data");let n=O.chains.get(e);n&&(n.accountState=(0,i.iH)({...n.accountState,...t}),O.chains.set(e,n),(r||1===O.chains.size||O.activeChain===e)&&eo.replaceState(n.accountState))},setAccountProp(e,t,r){this.setChainAccountData(r,{[e]:t})},setActiveChain(e){let t=e?O.chains.get(e):void 0;t&&t.chain!==O.activeChain&&(O.activeChain=t.chain,O.activeCaipNetwork=t.networkState?.caipNetwork?(0,i.iH)(t.networkState?.caipNetwork):void 0,eo.replaceState(t.accountState),N.replaceState(t.networkState),this.setCaipNetwork(t.chain,t.networkState?.caipNetwork),T.set({activeChain:e,selectedNetworkId:t.networkState?.caipNetwork?.id}))},setActiveCaipNetwork(e){e&&(e.chain!==O.activeChain&&this.setActiveChain(e.chain),O.activeCaipNetwork=(0,i.iH)(e),O.activeChain=e.chain,this.setCaipNetwork(e.chain,e,!0),T.set({activeChain:e.chain,selectedNetworkId:e?.id}))},setCaipNetwork(e,t,r=!1){this.setChainNetworkData(e,{caipNetwork:t},r)},setActiveConnector(e){e&&(O.activeConnector=(0,i.iH)(e))},getNetworkControllerClient(){let e=O.activeChain;if(!e)throw Error("Chain is required to get network controller client");let t=O.chains.get(e);if(!t)throw Error("Chain adapter not found");if(!t.networkControllerClient)throw Error("NetworkController client not set");return t.networkControllerClient},getConnectionControllerClient(e){let t=e||O.activeChain;if(!t)throw Error("Chain is required to get connection controller client");let r=O.chains.get(t);if(!r)throw Error("Chain adapter not found");if(!r.connectionControllerClient)throw Error("ConnectionController client not set");return r.connectionControllerClient},getAccountProp(e,t){let r=O.activeChain;if(t&&(r=t),!r)return;let n=O.chains.get(r)?.accountState;if(n)return n[e]},getNetworkProp(e){let t=O.activeChain;if(!t)return;let r=O.chains.get(t)?.networkState;if(r)return r[e]},resetAccount(e){if(!e)throw Error("Chain is required to set account prop");this.setChainAccountData(e,(0,i.iH)({isConnected:!1,smartAccountDeployed:!1,currentTab:0,caipAddress:void 0,address:void 0,balance:void 0,balanceSymbol:void 0,profileName:void 0,profileImage:void 0,addressExplorerUrl:void 0,tokenBalance:[],connectedWalletInfo:void 0,preferredAccountType:void 0,socialProvider:void 0,socialWindow:void 0,farcasterUrl:void 0}))}},M=(0,i.sj)({supportsAllNetworks:!0,isDefaultCaipNetwork:!1,smartAccountEnabledNetworks:[]}),N={state:M,replaceState(e){e&&Object.assign(M,(0,i.iH)(e))},subscribeKey(e,t){let r;return R.subscribeChainProp("networkState",n=>{if(n){let i=n[e];r!==i&&(r=i,t(i))}})},_getClient:()=>R.getNetworkControllerClient(),initializeDefaultNetwork(){let e=this.getRequestedCaipNetworks();e.length>0&&this.setCaipNetwork(e[0])},setDefaultCaipNetwork(e){e&&(R.setCaipNetwork(e.chain,e,!0),R.setChainNetworkData(e.chain,{isDefaultCaipNetwork:!0}),T.set({selectedNetworkId:e.id}))},setActiveCaipNetwork(e){e&&(R.setActiveCaipNetwork(e),R.setChainNetworkData(e.chain,{caipNetwork:e}),T.set({activeChain:e.chain,selectedNetworkId:e?.id}),R.state.chains.get(e.chain)?.networkState?.allowUnsupportedChain||this.checkIfSupportedNetwork()||this.showUnsupportedChainUI())},setCaipNetwork(e){if(e){if(!e?.chain)throw Error("chain is required to set active network");R.setCaipNetwork(e?.chain,e),R.state.chains.get(e.chain)?.networkState?.allowUnsupportedChain||this.checkIfSupportedNetwork()||this.showUnsupportedChainUI()}},setRequestedCaipNetworks(e,t){R.setChainNetworkData(t,{requestedCaipNetworks:e})},setAllowUnsupportedChain(e,t){R.setChainNetworkData(t||R.state.activeChain,{allowUnsupportedChain:e})},setSmartAccountEnabledNetworks(e,t){R.setChainNetworkData(t,{smartAccountEnabledNetworks:e})},getRequestedCaipNetworks(e){let t;if(!R.state.activeChain)throw Error("activeChain is required to get requested networks");if(e){if(!e)throw Error("chain is required to get requested networks");t=[e]}else t=[...R.state.chains.keys()];let r=[],n=[];return t.forEach(e=>{R.state.chains.get(e)?.networkState?.approvedCaipNetworkIds&&r.push(...R.state.chains.get(e)?.networkState?.approvedCaipNetworkIds||[]),R.state.chains.get(e)?.networkState?.requestedCaipNetworks&&n.push(...R.state.chains.get(e)?.networkState?.requestedCaipNetworks||[])}),c.sortRequestedNetworks(r,n)},async switchActiveNetwork(e){let t=e?R.state.chains.get(e.chain)?.networkControllerClient:void 0;if(!t)throw Error("networkControllerClient not found for given network object");R.setActiveCaipNetwork(e),await t?.switchCaipNetwork(e),e&&E.sendEvent({type:"track",event:"SWITCH_NETWORK",properties:{network:e.id}})},getApprovedCaipNetworkIds(e){if(e){if(!e)throw Error("chain is required to get approved network IDs");return R.state.chains.get(e)?.networkState?.approvedCaipNetworkIds}let t=[];return Object.values(R.state.chains).forEach(e=>{e.networkState.approvedCaipNetworkIds&&t.push(...e.networkState?.approvedCaipNetworkIds||[])}),t},async setApprovedCaipNetworksData(e){let t=R.getNetworkControllerClient(),r=await t.getApprovedCaipNetworksData();if(!e)throw Error("chain is required to set approved network data");R.setChainNetworkData(e,{approvedCaipNetworkIds:r?.approvedCaipNetworkIds,supportsAllNetworks:r?.supportsAllNetworks||!1})},checkIfSupportedNetwork(){let e=R.state.activeChain;if(!e)return!1;let t=R.state.chains.get(e)?.networkState?.caipNetwork,r=this.getRequestedCaipNetworks();return!r.length||r?.some(e=>e.id===t?.id)},checkIfSmartAccountEnabled(){let e=o.p1.caipNetworkIdToNumber(M.caipNetwork?.id);if(!R.state.activeChain)throw Error("activeChain is required to check if smart account is enabled");if(!e)return!1;let t=R.getNetworkProp("smartAccountEnabledNetworks");return!!t?.includes(e)},resetNetwork(){let e=R.state.activeChain;if(!e)throw Error("chain is required to reset network");R.setChainNetworkData(e,{approvedCaipNetworkIds:void 0,supportsAllNetworks:!0,smartAccountEnabledNetworks:[]})},getSupportsAllNetworks(){let e=R.state.activeChain;if(!e)throw Error("chain is required to check if network supports all networks");return R.state.chains.get(e)?.networkState?.supportsAllNetworks},showUnsupportedChainUI(){setTimeout(()=>{es.open({view:"UnsupportedChain"})},300)}},j=new d({baseUrl:c.getApiUrl(),clientId:null}),D=(0,i.sj)({page:1,count:0,featured:[],recommended:[],wallets:[],search:[],isAnalyticsEnabled:!1,excludedRDNS:[]}),B={state:D,subscribeKey:(e,t)=>(0,n.VW)(D,e,t),_getApiHeaders(){let{projectId:e,sdkType:t,sdkVersion:r}=$.state;return{"x-project-id":e,"x-sdk-type":t,"x-sdk-version":r}},_filterOutExtensions:e=>$.state.isUniversalProvider?e.filter(e=>!!(e.mobile_link||e.desktop_link||e.webapp_link)):e,async _fetchWalletImage(e){let t=`${j.baseUrl}/getWalletImage/${e}`,r=await j.getBlob({path:t,headers:B._getApiHeaders()});b.setWalletImage(e,URL.createObjectURL(r))},async _fetchNetworkImage(e){let t=`${j.baseUrl}/public/getAssetImage/${e}`,r=await j.getBlob({path:t,headers:B._getApiHeaders()});b.setNetworkImage(e,URL.createObjectURL(r))},async _fetchConnectorImage(e){let t=`${j.baseUrl}/public/getAssetImage/${e}`,r=await j.getBlob({path:t,headers:B._getApiHeaders()});b.setConnectorImage(e,URL.createObjectURL(r))},async _fetchCurrencyImage(e){let t=`${j.baseUrl}/public/getCurrencyImage/${e}`,r=await j.getBlob({path:t,headers:B._getApiHeaders()});b.setCurrencyImage(e,URL.createObjectURL(r))},async _fetchTokenImage(e){let t=`${j.baseUrl}/public/getTokenImage/${e}`,r=await j.getBlob({path:t,headers:B._getApiHeaders()});b.setTokenImage(e,URL.createObjectURL(r))},async fetchNetworkImages(){let e=N.getRequestedCaipNetworks(),t=e?.map(({imageId:e})=>e).filter(Boolean);t&&await Promise.allSettled(t.map(e=>B._fetchNetworkImage(e)))},async fetchConnectorImages(){let{connectors:e}=_.state,t=e.map(({imageId:e})=>e).filter(Boolean);await Promise.allSettled(t.map(e=>B._fetchConnectorImage(e)))},async fetchCurrencyImages(e=[]){await Promise.allSettled(e.map(e=>B._fetchCurrencyImage(e)))},async fetchTokenImages(e=[]){await Promise.allSettled(e.map(e=>B._fetchTokenImage(e)))},async fetchFeaturedWallets(){let{featuredWalletIds:e}=$.state;if(e?.length){let{data:t}=await j.get({path:"/getWallets",headers:B._getApiHeaders(),params:{page:"1",entries:e?.length?String(e.length):"4",include:e?.join(",")}});t.sort((t,r)=>e.indexOf(t.id)-e.indexOf(r.id));let r=t.map(e=>e.image_id).filter(Boolean);await Promise.allSettled(r.map(e=>B._fetchWalletImage(e))),D.featured=t}},async fetchRecommendedWallets(){let{includeWalletIds:e,excludeWalletIds:t,featuredWalletIds:r}=$.state,n=[...t??[],...r??[]].filter(Boolean),{data:i,count:o}=await j.get({path:"/getWallets",headers:B._getApiHeaders(),params:{page:"1",chains:N.state.caipNetwork?.id,entries:"4",include:e?.join(","),exclude:n?.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=>B._fetchWalletImage(e))),D.recommended=i,D.count=o??0},async fetchWallets({page:e}){let{includeWalletIds:t,excludeWalletIds:r,featuredWalletIds:n}=$.state,i=[...D.recommended.map(({id:e})=>e),...r??[],...n??[]].filter(Boolean),{data:o,count:a}=await j.get({path:"/getWallets",headers:B._getApiHeaders(),params:{page:String(e),entries:"40",chains:N.state.caipNetwork?.id,include:t?.join(","),exclude:i.join(",")}}),s=o.slice(0,20).map(e=>e.image_id).filter(Boolean);await Promise.allSettled(s.map(e=>B._fetchWalletImage(e))),D.wallets=c.uniqueBy([...D.wallets,...B._filterOutExtensions(o)],"id"),D.count=a>D.count?a:D.count,D.page=e},async searchWalletByIds({ids:e}){let{data:t}=await j.get({path:"/getWallets",headers:B._getApiHeaders(),params:{page:"1",entries:String(e.length),chains:N.state.caipNetwork?.id,include:e?.join(",")}});t&&t.forEach(e=>{e?.rdns&&D.excludedRDNS.push(e.rdns)})},async searchWallet({search:e}){let{includeWalletIds:t,excludeWalletIds:r}=$.state;D.search=[];let{data:n}=await j.get({path:"/getWallets",headers:B._getApiHeaders(),params:{page:"1",entries:"100",search:e?.trim(),chains:N.state.caipNetwork?.id,include:t?.join(","),exclude:r?.join(",")}}),i=n.map(e=>e.image_id).filter(Boolean);await Promise.allSettled([...i.map(e=>B._fetchWalletImage(e)),c.wait(300)]),D.search=B._filterOutExtensions(n)},async reFetchWallets(){D.page=1,D.wallets=[],await B.fetchFeaturedWallets(),await B.fetchRecommendedWallets()},prefetch(){let e=[B.fetchFeaturedWallets(),B.fetchRecommendedWallets(),B.fetchNetworkImages(),B.fetchConnectorImages()];void 0===$.state.enableAnalytics&&e.push(B.fetchAnalyticsConfig()),D.prefetchPromise=Promise.race([Promise.allSettled(e)])},async fetchAnalyticsConfig(){let{isAnalyticsEnabled:e}=await j.get({path:"/getAnalyticsConfig",headers:B._getApiHeaders()});$.setEnableAnalytics(e)}},L=(0,i.sj)({projectId:"",sdkType:"w3m",sdkVersion:"html-wagmi-undefined"}),$={state:L,subscribeKey:(e,t)=>(0,n.VW)(L,e,t),setOptions(e){Object.assign(L,e)},setProjectId(e){L.projectId=e},setAllWallets(e){L.allWallets=e},setIncludeWalletIds(e){L.includeWalletIds=e},setExcludeWalletIds(e){L.excludeWalletIds=e,e&&B.searchWalletByIds({ids:e})},setFeaturedWalletIds(e){L.featuredWalletIds=e},setTokens(e){L.tokens=e},setTermsConditionsUrl(e){L.termsConditionsUrl=e},setPrivacyPolicyUrl(e){L.privacyPolicyUrl=e},setCustomWallets(e){L.customWallets=e},setIsSiweEnabled(e){L.isSiweEnabled=e},setIsUniversalProvider(e){L.isUniversalProvider=e},setEnableAnalytics(e){L.enableAnalytics=e},setSdkVersion(e){L.sdkVersion=e},setMetadata(e){L.metadata=e},setOnrampEnabled(e){L.enableOnramp=e},setDisableAppend(e){L.disableAppend=e},setEIP6963Enabled(e){L.enableEIP6963=e},setHasMultipleAddresses(e){L.hasMultipleAddresses=e},setEnableSwaps(e){L.enableSwaps=e}},U={purchaseCurrencies:[{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},{id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"Ether",symbol:"ETH",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]}],paymentCurrencies:[{id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},{id:"EUR",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]}]},z=c.getBlockchainApiUrl(),F=(0,i.sj)({clientId:null,api:new d({baseUrl:z,clientId:null})}),q={state:F,fetchIdentity:({address:e})=>F.api.get({path:`/v1/identity/${e}`,params:{projectId:$.state.projectId,sender:eo.state.address}}),fetchTransactions:({account:e,projectId:t,cursor:r,onramp:n,signal:i,cache:o,chainId:a})=>F.api.get({path:`/v1/account/${e}/history`,params:{projectId:t,cursor:r,onramp:n,chainId:a},signal:i,cache:o}),fetchSwapQuote:({projectId:e,amount:t,userAddress:r,from:n,to:i,gasPrice:o})=>F.api.get({path:"/v1/convert/quotes",headers:{"Content-Type":"application/json"},params:{projectId:e,amount:t,userAddress:r,from:n,to:i,gasPrice:o}}),fetchSwapTokens:({projectId:e,chainId:t})=>F.api.get({path:"/v1/convert/tokens",params:{projectId:e,chainId:t}}),fetchTokenPrice:({projectId:e,addresses:t})=>F.api.post({path:"/v1/fungible/price",body:{projectId:e,currency:"usd",addresses:t},headers:{"Content-Type":"application/json"}}),fetchSwapAllowance({projectId:e,tokenAddress:t,userAddress:r}){let{sdkType:n,sdkVersion:i}=$.state;return F.api.get({path:"/v1/convert/allowance",params:{projectId:e,tokenAddress:t,userAddress:r},headers:{"Content-Type":"application/json","x-sdk-type":n,"x-sdk-version":i}})},fetchGasPrice({projectId:e,chainId:t}){let{sdkType:r,sdkVersion:n}=$.state;return F.api.get({path:"/v1/convert/gas-price",headers:{"Content-Type":"application/json","x-sdk-type":r,"x-sdk-version":n},params:{projectId:e,chainId:t}})},generateSwapCalldata:({amount:e,from:t,projectId:r,to:n,userAddress:i})=>F.api.post({path:"/v1/convert/build-transaction",headers:{"Content-Type":"application/json"},body:{amount:e,eip155:{slippage:l.CONVERT_SLIPPAGE_TOLERANCE},from:t,projectId:r,to:n,userAddress:i}}),generateApproveCalldata({from:e,projectId:t,to:r,userAddress:n}){let{sdkType:i,sdkVersion:o}=$.state;return F.api.get({path:"/v1/convert/build-approve",headers:{"Content-Type":"application/json","x-sdk-type":i,"x-sdk-version":o},params:{projectId:t,userAddress:n,from:e,to:r}})},async getBalance(e,t,r){let{sdkType:n,sdkVersion:i}=$.state;return F.api.get({path:`/v1/account/${e}/balance`,headers:{"x-sdk-type":n,"x-sdk-version":i},params:{currency:"usd",projectId:$.state.projectId,chainId:t,forceUpdate:r}})},lookupEnsName:async e=>F.api.get({path:`/v1/profile/account/${e}${o.bq.WC_NAME_SUFFIX}`,params:{projectId:$.state.projectId,apiVersion:"2"}}),reverseLookupEnsName:async({address:e})=>F.api.get({path:`/v1/profile/reverse/${e}`,params:{sender:eo.state.address,projectId:$.state.projectId,apiVersion:"2"}}),getEnsNameSuggestions:async e=>F.api.get({path:`/v1/profile/suggestions/${e}`,params:{projectId:$.state.projectId}}),registerEnsName:async({coinType:e,address:t,message:r,signature:n})=>F.api.post({path:"/v1/profile/account",body:{coin_type:e,address:t,message:r,signature:n},headers:{"Content-Type":"application/json"}}),generateOnRampURL:async({destinationWallets:e,partnerUserId:t,defaultNetwork:r,purchaseAmount:n,paymentAmount:i})=>(await F.api.post({path:"/v1/generators/onrampurl",params:{projectId:$.state.projectId},body:{destinationWallets:e,defaultNetwork:r,partnerUserId:t,defaultExperience:"buy",presetCryptoAmount:n,presetFiatAmount:i}})).url,async getOnrampOptions(){try{return await F.api.get({path:"/v1/onramp/options",params:{projectId:$.state.projectId}})}catch(e){return U}},async getOnrampQuote({purchaseCurrency:e,paymentCurrency:t,amount:r,network:n}){try{return await F.api.post({path:"/v1/onramp/quote",params:{projectId:$.state.projectId},body:{purchaseCurrency:e,paymentCurrency:t,amount:r,network:n}})}catch(e){return{coinbaseFee:{amount:r,currency:t.id},networkFee:{amount:r,currency:t.id},paymentSubtotal:{amount:r,currency:t.id},paymentTotal:{amount:r,currency:t.id},purchaseAmount:{amount:r,currency:t.id},quoteId:"mocked-quote-id"}}},setClientId(e){F.clientId=e,F.api=new d({baseUrl:z,clientId:e})}},H=(0,i.sj)({message:"",variant:"success",open:!1}),W={state:H,subscribeKey:(e,t)=>(0,n.VW)(H,e,t),showLoading(e){H.message=e,H.variant="loading",H.open=!0},showSuccess(e){H.message=e,H.variant="success",H.open=!0},showError(e){let t=c.parseError(e);H.message=t,H.variant="error",H.open=!0},hide(){H.open=!1}};var V=r(35355);let Z=(0,i.sj)({transactions:[],coinbaseTransactions:{},transactionsByYear:{},lastNetworkInView:void 0,loading:!1,empty:!1,next:void 0}),G={state:Z,subscribe:e=>(0,i.Ld)(Z,()=>e(Z)),setLastNetworkInView(e){Z.lastNetworkInView=e},async fetchTransactions(e,t){let{projectId:r}=$.state;if(!r||!e)throw Error("Transactions can't be fetched without a projectId and an accountAddress");Z.loading=!0;try{let n=await q.fetchTransactions({account:e,projectId:r,cursor:Z.next,onramp:t,cache:"coinbase"===t?"no-cache":void 0,chainId:N.state.caipNetwork?.id}),i=this.filterSpamTransactions(n.data),o=this.filterByConnectedChain(i),a=[...Z.transactions,...o];Z.loading=!1,"coinbase"===t?Z.coinbaseTransactions=this.groupTransactionsByYearAndMonth(Z.coinbaseTransactions,n.data):(Z.transactions=a,Z.transactionsByYear=this.groupTransactionsByYearAndMonth(Z.transactionsByYear,o)),Z.empty=0===a.length,Z.next=n.next?n.next:void 0}catch(t){E.sendEvent({type:"track",event:"ERROR_FETCH_TRANSACTIONS",properties:{address:e,projectId:r,cursor:Z.next,isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),W.showError("Failed to fetch transactions"),Z.loading=!1,Z.empty=!0,Z.next=void 0}},groupTransactionsByYearAndMonth:(e={},t=[])=>(t.forEach(t=>{let r=new Date(t.metadata.minedAt).getFullYear(),n=new Date(t.metadata.minedAt).getMonth(),i=e[r]??{},o=(i[n]??[]).filter(e=>e.id!==t.id);e[r]={...i,[n]:[...o,t].sort((e,t)=>new Date(t.metadata.minedAt).getTime()-new Date(e.metadata.minedAt).getTime())}}),e),filterSpamTransactions:e=>e.filter(e=>!e.transfers.every(e=>e.nft_info?.flags.is_spam===!0)),filterByConnectedChain(e){let t=N.state.caipNetwork?.id;return e.filter(e=>e.metadata.chain===t)},clearCursor(){Z.next=void 0},resetTransactions(){Z.transactions=[],Z.transactionsByYear={},Z.lastNetworkInView=void 0,Z.loading=!1,Z.empty=!1,Z.next=void 0}},K=(0,i.sj)({wcError:!1,buffering:!1}),Y={state:K,subscribeKey:(e,t)=>(0,n.VW)(K,e,t),_getClient:e=>R.getConnectionControllerClient(e),setClient(e){K._client=(0,i.iH)(e)},async connectWalletConnect(){m.setConnectedConnector("WALLET_CONNECT"),await this._getClient().connectWalletConnect(e=>{K.wcUri=e,K.wcPairingExpiry=c.getPairingExpiry()})},async connectExternal(e,t){await this._getClient(t).connectExternal?.(e),R.setActiveChain(t),m.setConnectedConnector(e.type)},async reconnectExternal(e){await this._getClient().reconnectExternal?.(e),m.setConnectedConnector(e.type)},async setPreferredAccountType(e){es.setLoading(!0);let t=_.getAuthConnector();t&&(await t?.provider.setPreferredAccount(e),await this.reconnectExternal(t),es.setLoading(!1),E.sendEvent({type:"track",event:"SET_PREFERRED_ACCOUNT_TYPE",properties:{accountType:e,network:N.state.caipNetwork?.id||""}}))},async signMessage(e){return this._getClient().signMessage(e)},parseUnits(e,t){return this._getClient().parseUnits(e,t)},formatUnits(e,t){return this._getClient().formatUnits(e,t)},async sendTransaction(e){return this._getClient().sendTransaction(e)},async estimateGas(e){return this._getClient().estimateGas(e)},async writeContract(e){return this._getClient().writeContract(e)},async getEnsAddress(e){return this._getClient().getEnsAddress(e)},async getEnsAvatar(e){return this._getClient().getEnsAvatar(e)},checkInstalled(e,t){return this._getClient(t).checkInstalled?.(e)||!1},resetWcConnection(){K.wcUri=void 0,K.wcPairingExpiry=void 0,K.wcLinking=void 0,K.recentWallet=void 0,G.resetTransactions(),m.deleteWalletConnectDeepLink()},setWcLinking(e){K.wcLinking=e},setWcError(e){K.wcError=e,K.buffering=!1},setRecentWallet(e){K.recentWallet=e},setBuffering(e){K.buffering=e},async disconnect(){let e=this._getClient();try{await e.disconnect(),this.resetWcConnection()}catch(e){throw Error("Failed to disconnect")}}},Q={async getTokenList(){let e=N.state.caipNetwork,t=await q.fetchSwapTokens({chainId:e?.id,projectId:$.state.projectId});return t?.tokens?.map(e=>({...e,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0}))||[]},async fetchGasPrice(){let e=$.state.projectId,t=N.state.caipNetwork;return t?await q.fetchGasPrice({projectId:e,chainId:t.id}):null},async fetchSwapAllowance({tokenAddress:e,userAddress:t,sourceTokenAmount:r,sourceTokenDecimals:n}){let i=$.state.projectId,o=await q.fetchSwapAllowance({projectId:i,tokenAddress:e,userAddress:t});if(o?.allowance&&r&&n){let e=Y.parseUnits(r,n)||0;return BigInt(o.allowance)>=e}return!1},async getMyTokensWithBalance(e){let t=eo.state.address,r=N.state.caipNetwork;if(!t||!r)return[];let n=(await q.getBalance(t,r.id,e)).balances.filter(e=>"0"!==e.quantity.decimals);return eo.setTokenBalance(n,R.state.activeChain),this.mapBalancesToSwapTokens(n)},mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:`${e.chainId}:${l.NATIVE_TOKEN_ADDRESS}`,decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]},J=(0,i.sj)({view:"Connect",history:["Connect"],transactionStack:[]}),X={state:J,subscribeKey:(e,t)=>(0,n.VW)(J,e,t),pushTransactionStack(e){J.transactionStack.push(e)},popTransactionStack(e){let t=J.transactionStack.pop();t&&(e?(this.goBack(),t?.onCancel?.()):(t.goBack?this.goBack():t.view&&this.reset(t.view),t?.onSuccess?.()))},push(e,t){e!==J.view&&(J.view=e,J.history.push(e),J.data=t)},reset(e){J.view=e,J.history=[e]},replace(e,t){J.history.length>=1&&J.history.at(-1)!==e&&(J.view=e,J.history[J.history.length-1]=e,J.data=t)},goBack(){if(J.history.length>1){J.history.pop();let[e]=J.history.slice(-1);e&&(J.view=e)}},goBackToIndex(e){if(J.history.length>1){J.history=J.history.slice(0,e+1);let[t]=J.history.slice(-1);t&&(J.view=t)}}},ee={getGasPriceInEther:(e,t)=>Number(t*e)/1e18,getGasPriceInUSD(e,t,r){let n=ee.getGasPriceInEther(t,r);return o.C6.bigNumber(e).multipliedBy(n).toNumber()},getPriceImpact({sourceTokenAmount:e,sourceTokenPriceInUSD:t,toTokenPriceInUSD:r,toTokenAmount:n}){let i=o.C6.bigNumber(e).multipliedBy(t),a=o.C6.bigNumber(n).multipliedBy(r);return i.minus(a).dividedBy(i).multipliedBy(100).toNumber()},getMaxSlippage(e,t){let r=o.C6.bigNumber(e).dividedBy(100);return o.C6.multiply(t,r).toNumber()},getProviderFee:(e,t=.0085)=>o.C6.bigNumber(e).multipliedBy(t).toString(),isInsufficientNetworkTokenForGas:(e,t)=>!!o.C6.bigNumber(e).isZero()||o.C6.bigNumber(o.C6.bigNumber(t||"0")).isGreaterThan(e),isInsufficientSourceTokenForSwap(e,t,r){let n=r?.find(e=>e.address===t)?.quantity?.numeric;return o.C6.bigNumber(n||"0").isLessThan(e)},getToTokenAmount({sourceToken:e,toToken:t,sourceTokenPrice:r,toTokenPrice:n,sourceTokenAmount:i}){if("0"===i||!e||!t)return"0";let a=e.decimals,s=t.decimals;if(n<=0)return"0";let l=o.C6.bigNumber(i).multipliedBy(.0085),c=o.C6.bigNumber(i).minus(l).multipliedBy(o.C6.bigNumber(10).pow(a)),u=o.C6.bigNumber(r).dividedBy(n),d=a-s;return c.multipliedBy(u).dividedBy(o.C6.bigNumber(10).pow(d)).dividedBy(o.C6.bigNumber(10).pow(s)).toFixed(s).toString()}},et={initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:l.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},er=(0,i.sj)(et),en={state:er,subscribe:e=>(0,i.Ld)(er,()=>e(er)),subscribeKey:(e,t)=>(0,n.VW)(er,e,t),getParams(){let e=N.state.caipNetwork,t=eo.state.address,r=`${e?.id}:${l.NATIVE_TOKEN_ADDRESS}`,n=m.getConnectedConnector(),i=_.getAuthConnector();if(!t)throw Error("No address found to swap the tokens from.");let a=eo.state.caipAddress,s=!er.toToken?.address||!er.toToken?.decimals,c=!er.sourceToken?.address||!er.sourceToken?.decimals||!o.C6.bigNumber(er.sourceTokenAmount).isGreaterThan(0),u=!er.sourceTokenAmount;return{networkAddress:r,fromAddress:t,fromCaipAddress:eo.state.caipAddress,sourceTokenAddress:er.sourceToken?.address,toTokenAddress:er.toToken?.address,toTokenAmount:er.toTokenAmount,toTokenDecimals:er.toToken?.decimals,sourceTokenAmount:er.sourceTokenAmount,sourceTokenDecimals:er.sourceToken?.decimals,invalidToToken:s,invalidSourceToken:c,invalidSourceTokenAmount:u,availableToSwap:a&&!s&&!c&&!u,isAuthConnector:i?.walletFeatures&&"AUTH"===n}},setSourceToken(e){if(!e){er.sourceToken=e,er.sourceTokenAmount="",er.sourceTokenPriceInUSD=0;return}er.sourceToken=e,this.setTokenPrice(e.address,"sourceToken")},setSourceTokenAmount(e){er.sourceTokenAmount=e},setToToken(e){if(!e){er.toToken=e,er.toTokenAmount="",er.toTokenPriceInUSD=0;return}er.toToken=e,this.setTokenPrice(e.address,"toToken")},setToTokenAmount(e){er.toTokenAmount=e?o.C6.formatNumberToLocalString(e,6):""},async setTokenPrice(e,t){let{availableToSwap:r}=this.getParams(),n=er.tokensPriceMap[e]||0;n||(er.loadingPrices=!0,n=await this.getAddressPrice(e)),"sourceToken"===t?er.sourceTokenPriceInUSD=n:"toToken"===t&&(er.toTokenPriceInUSD=n),er.loadingPrices&&(er.loadingPrices=!1,r&&this.swapTokens())},switchTokens(){if(er.initializing||!er.initialized)return;let e=er.toToken?{...er.toToken}:void 0,t=er.sourceToken?{...er.sourceToken}:void 0,r=e&&""===er.toTokenAmount?"1":er.toTokenAmount;this.setSourceToken(e),this.setToToken(t),this.setSourceTokenAmount(r),this.setToTokenAmount(""),this.swapTokens()},resetState(){er.myTokensWithBalance=et.myTokensWithBalance,er.tokensPriceMap=et.tokensPriceMap,er.initialized=et.initialized,er.sourceToken=et.sourceToken,er.sourceTokenAmount=et.sourceTokenAmount,er.sourceTokenPriceInUSD=et.sourceTokenPriceInUSD,er.toToken=et.toToken,er.toTokenAmount=et.toTokenAmount,er.toTokenPriceInUSD=et.toTokenPriceInUSD,er.networkPrice=et.networkPrice,er.networkTokenSymbol=et.networkTokenSymbol,er.networkBalanceInUSD=et.networkBalanceInUSD,er.inputError=et.inputError},resetValues(){let{networkAddress:e}=this.getParams(),t=er.tokens?.find(t=>t.address===e);this.setSourceToken(t),this.setToToken(void 0)},getApprovalLoadingState:()=>er.loadingApprovalTransaction,clearError(){er.transactionError=void 0},async initializeState(){if(!er.initializing){if(er.initializing=!0,!er.initialized)try{await this.fetchTokens(),er.initialized=!0}catch(e){er.initialized=!1,W.showError("Failed to initialize swap"),X.goBack()}er.initializing=!1}},async fetchTokens(){let{networkAddress:e}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();let t=er.tokens?.find(t=>t.address===e);t&&(er.networkTokenSymbol=t.symbol,this.setSourceToken(t),this.setSourceTokenAmount("1"))},async getTokenList(){let e=await Q.getTokenList();er.tokens=e,er.popularTokens=e.sort((e,t)=>e.symbol<t.symbol?-1:e.symbol>t.symbol?1:0),er.suggestedTokens=e.filter(e=>!!l.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(e){let t=er.tokensPriceMap[e];if(t)return t;let r=(await q.fetchTokenPrice({projectId:$.state.projectId,addresses:[e]})).fungibles||[],n=[...er.tokens||[],...er.myTokensWithBalance||[]],i=n?.find(t=>t.address===e)?.symbol,o=parseFloat((r.find(e=>e.symbol.toLowerCase()===i?.toLowerCase())?.price||0).toString());return er.tokensPriceMap[e]=o,o},async getNetworkTokenPrice(){let{networkAddress:e}=this.getParams(),t=await q.fetchTokenPrice({projectId:$.state.projectId,addresses:[e]}),r=t.fungibles?.[0],n=r?.price.toString()||"0";er.tokensPriceMap[e]=parseFloat(n),er.networkTokenSymbol=r?.symbol||"",er.networkPrice=n},async getMyTokensWithBalance(e){let t=await Q.getMyTokensWithBalance(e);t&&(await this.getInitialGasPrice(),this.setBalances(t))},setBalances(e){let{networkAddress:t}=this.getParams(),r=N.state.caipNetwork;if(!r)return;let n=e.find(e=>e.address===t);e.forEach(e=>{er.tokensPriceMap[e.address]=e.price||0}),er.myTokensWithBalance=e.filter(e=>e.address.startsWith(r.id)),er.networkBalanceInUSD=n?o.C6.multiply(n.quantity.numeric,n.price).toString():"0"},async getInitialGasPrice(){let e=await Q.fetchGasPrice();if(!e)return{gasPrice:null,gasPriceInUsd:null};let t=e.standard,r=BigInt(t),n=BigInt(15e4),i=ee.getGasPriceInUSD(er.networkPrice,n,r);return er.gasFee=t,er.gasPriceInUSD=i,{gasPrice:r,gasPriceInUSD:er.gasPriceInUSD}},async swapTokens(){let e=eo.state.address,t=er.sourceToken,r=er.toToken,n=o.C6.bigNumber(er.sourceTokenAmount).isGreaterThan(0);if(!r||!t||er.loadingPrices||!n)return;er.loadingQuote=!0;let i=o.C6.bigNumber(er.sourceTokenAmount).multipliedBy(10**t.decimals),a=await q.fetchSwapQuote({userAddress:e,projectId:$.state.projectId,from:t.address,to:r.address,gasPrice:er.gasFee,amount:i.toString()});er.loadingQuote=!1;let s=a?.quotes?.[0]?.toAmount;if(!s)return;let l=o.C6.bigNumber(s).dividedBy(10**r.decimals).toString();this.setToTokenAmount(l),this.hasInsufficientToken(er.sourceTokenAmount,t.address)?er.inputError="Insufficient balance":(er.inputError=void 0,this.setTransactionDetails())},async getTransaction(){let{fromCaipAddress:e,availableToSwap:t}=this.getParams(),r=er.sourceToken,n=er.toToken;if(e&&t&&r&&n&&!er.loadingQuote)try{let t;return er.loadingBuildTransaction=!0,t=await Q.fetchSwapAllowance({userAddress:e,tokenAddress:r.address,sourceTokenAmount:er.sourceTokenAmount,sourceTokenDecimals:r.decimals})?await this.createSwapTransaction():await this.createAllowanceTransaction(),er.loadingBuildTransaction=!1,er.fetchError=!1,t}catch(e){X.goBack(),W.showError("Failed to check allowance"),er.loadingBuildTransaction=!1,er.approvalTransaction=void 0,er.swapTransaction=void 0,er.fetchError=!0;return}},async createAllowanceTransaction(){let{fromCaipAddress:e,fromAddress:t,sourceTokenAddress:r,toTokenAddress:n}=this.getParams();if(e&&n){if(!r)throw Error("createAllowanceTransaction - No source token address found.");try{let i=await q.generateApproveCalldata({projectId:$.state.projectId,from:r,to:n,userAddress:e}),o=await Y.estimateGas({address:t,to:c.getPlainAddress(i.tx.to),data:i.tx.data}),a={data:i.tx.data,to:c.getPlainAddress(i.tx.from),gas:o,gasPrice:BigInt(i.tx.eip155.gasPrice),value:BigInt(i.tx.value),toAmount:er.toTokenAmount};return er.swapTransaction=void 0,er.approvalTransaction=a,a}catch(e){X.goBack(),W.showError("Failed to create approval transaction"),er.approvalTransaction=void 0,er.swapTransaction=void 0,er.fetchError=!0;return}}},async createSwapTransaction(){let{networkAddress:e,fromCaipAddress:t,sourceTokenAmount:r}=this.getParams(),n=er.sourceToken,i=er.toToken;if(!t||!r||!n||!i)return;let o=Y.parseUnits(r,n.decimals).toString();try{let r=await q.generateSwapCalldata({projectId:$.state.projectId,userAddress:t,from:n.address,to:i.address,amount:o}),a=n.address===e,s=BigInt(r.tx.eip155.gas),l=BigInt(r.tx.eip155.gasPrice),u={data:r.tx.data,to:c.getPlainAddress(r.tx.to),gas:s,gasPrice:l,value:a?BigInt(o):BigInt("0"),toAmount:er.toTokenAmount};return er.gasPriceInUSD=ee.getGasPriceInUSD(er.networkPrice,s,l),er.approvalTransaction=void 0,er.swapTransaction=u,u}catch(e){X.goBack(),W.showError("Failed to create transaction"),er.approvalTransaction=void 0,er.swapTransaction=void 0,er.fetchError=!0;return}},async sendTransactionForApproval(e){let{fromAddress:t,isAuthConnector:r}=this.getParams();er.loadingApprovalTransaction=!0;let n="Approve limit increase in your wallet";r?X.pushTransactionStack({view:null,goBack:!0,onSuccess(){W.showLoading(n)}}):W.showLoading(n);try{await Y.sendTransaction({address:t,to:e.to,data:e.data,value:BigInt(e.value),gasPrice:BigInt(e.gasPrice)}),await this.swapTokens(),await this.getTransaction(),er.approvalTransaction=void 0,er.loadingApprovalTransaction=!1}catch(e){er.transactionError=e?.shortMessage,er.loadingApprovalTransaction=!1,W.showError(e?.shortMessage||"Transaction error")}},async sendTransactionForSwap(e){if(!e)return;let{fromAddress:t,toTokenAmount:r,isAuthConnector:n}=this.getParams();er.loadingTransaction=!0;let i=`Swapping ${er.sourceToken?.symbol} to ${o.C6.formatNumberToLocalString(r,3)} ${er.toToken?.symbol}`,a=`Swapped ${er.sourceToken?.symbol} to ${o.C6.formatNumberToLocalString(r,3)} ${er.toToken?.symbol}`;n?X.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){W.showLoading(i),en.resetState()}}):W.showLoading("Confirm transaction in your wallet");try{let r=[er.sourceToken?.address,er.toToken?.address].join(","),i=await Y.sendTransaction({address:t,to:e.to,data:e.data,gas:e.gas,gasPrice:BigInt(e.gasPrice),value:e.value});return er.loadingTransaction=!1,W.showSuccess(a),E.sendEvent({type:"track",event:"SWAP_SUCCESS",properties:{network:N.state.caipNetwork?.id||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),en.resetState(),n||X.replace("Account"),en.getMyTokensWithBalance(r),i}catch(e){er.transactionError=e?.shortMessage,er.loadingTransaction=!1,W.showError(e?.shortMessage||"Transaction error"),E.sendEvent({type:"track",event:"SWAP_ERROR",properties:{network:N.state.caipNetwork?.id||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT}});return}},hasInsufficientToken(e,t){let r=ee.isInsufficientSourceTokenForSwap(e,t,er.myTokensWithBalance);return ee.isInsufficientNetworkTokenForGas(er.networkBalanceInUSD,er.gasPriceInUSD)||r},setTransactionDetails(){let{toTokenAddress:e,toTokenDecimals:t}=this.getParams();e&&t&&(er.gasPriceInUSD=ee.getGasPriceInUSD(er.networkPrice,BigInt(er.gasFee),BigInt(15e4)),er.priceImpact=ee.getPriceImpact({sourceTokenAmount:er.sourceTokenAmount,sourceTokenPriceInUSD:er.sourceTokenPriceInUSD,toTokenPriceInUSD:er.toTokenPriceInUSD,toTokenAmount:er.toTokenAmount}),er.maxSlippage=ee.getMaxSlippage(er.slippage,er.toTokenAmount),er.providerFee=ee.getProviderFee(er.sourceTokenAmount))}},ei=(0,i.sj)({isConnected:!1,currentTab:0,tokenBalance:[],smartAccountDeployed:!1,addressLabels:new Map,allAccounts:[]}),eo={state:ei,replaceState(e){e&&Object.assign(ei,(0,i.iH)(e))},subscribe:e=>R.subscribeChainProp("accountState",t=>{if(t)return e(t)}),subscribeKey(e,t){let r;return R.subscribeChainProp("accountState",n=>{if(n){let i=n[e];r!==i&&(r=i,t(i))}})},setIsConnected(e,t){R.setAccountProp("isConnected",e,t)},getChainIsConnected:e=>R.getAccountProp("isConnected",e),setCaipAddress(e,t){let r=e?c.getPlainAddress(e):void 0;R.setAccountProp("caipAddress",e,t),R.setAccountProp("address",r,t)},setBalance(e,t,r){R.setAccountProp("balance",e,r),R.setAccountProp("balanceSymbol",t,r)},setProfileName(e,t){R.setAccountProp("profileName",e,t)},setProfileImage(e,t){R.setAccountProp("profileImage",e,t)},setAddressExplorerUrl(e,t){R.setAccountProp("addressExplorerUrl",e,t)},setSmartAccountDeployed(e,t){R.setAccountProp("smartAccountDeployed",e,t)},setCurrentTab(e){R.setAccountProp("currentTab",e,R.state.activeChain)},setTokenBalance(e,t){e&&R.setAccountProp("tokenBalance",e,t)},setShouldUpdateToAddress(e,t){R.setAccountProp("shouldUpdateToAddress",e,t)},setAllAccounts(e,t){R.setAccountProp("allAccounts",e,t)},addAddressLabel(e,t,r){let n=R.getAccountProp("addressLabels",r)||new Map;n.set(e,t),R.setAccountProp("addressLabels",n,R.state.activeChain)},removeAddressLabel(e,t){let r=R.getAccountProp("addressLabels",t)||new Map;r.delete(e),R.setAccountProp("addressLabels",r,R.state.activeChain)},setConnectedWalletInfo(e,t){R.setAccountProp("connectedWalletInfo",e,t)},setPreferredAccountType(e,t){R.setAccountProp("preferredAccountType",e,t)},setSocialProvider(e,t){e&&R.setAccountProp("socialProvider",e,t)},setSocialWindow(e,t){e&&R.setAccountProp("socialWindow",(0,i.iH)(e),t)},setFarcasterUrl(e,t){e&&R.setAccountProp("farcasterUrl",e,t)},async fetchTokenBalance(){let e=N.state.caipNetwork?.id,t=N.state.caipNetwork?.chain,r=eo.state.address;try{if(r&&e&&t){let n=await q.getBalance(r,e),i=n.balances.filter(e=>"0"!==e.quantity.decimals);this.setTokenBalance(i,t),en.setBalances(Q.mapBalancesToSwapTokens(n.balances))}}catch(e){W.showError("Failed to fetch token balance")}},resetAccount(e){R.resetAccount(e)}},ea=(0,i.sj)({loading:!1,open:!1,shake:!1}),es={state:ea,subscribe:e=>(0,i.Ld)(ea,()=>e(ea)),subscribeKey:(e,t)=>(0,n.VW)(ea,e,t),async open(e){await B.state.prefetchPromise;let t=eo.state.isConnected;e?.view?X.reset(e.view):t?X.reset("Account"):X.reset("Connect"),ea.open=!0,T.set({open:!0}),E.sendEvent({type:"track",event:"MODAL_OPEN",properties:{connected:t}})},close(){let e=eo.state.isConnected||!1;ea.open=!1,T.set({open:!1}),E.sendEvent({type:"track",event:"MODAL_CLOSE",properties:{connected:e}})},setLoading(e){ea.loading=e,T.set({loading:e})},shake(){ea.shake||(ea.shake=!0,setTimeout(()=>{ea.shake=!1},500))}},el={id:"2b92315d-eab7-5bef-84fa-089a131333f5",name:"USD Coin",symbol:"USDC",networks:[{name:"ethereum-mainnet",display_name:"Ethereum",chain_id:"1",contract_address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"},{name:"polygon-mainnet",display_name:"Polygon",chain_id:"137",contract_address:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}]},ec={id:"USD",payment_method_limits:[{id:"card",min:"10.00",max:"7500.00"},{id:"ach_bank_account",min:"10.00",max:"25000.00"}]},eu=(0,i.sj)({providers:s,selectedProvider:null,error:null,purchaseCurrency:el,paymentCurrency:ec,purchaseCurrencies:[el],paymentCurrencies:[],quotesLoading:!1}),ed={state:eu,subscribe:e=>(0,i.Ld)(eu,()=>e(eu)),subscribeKey:(e,t)=>(0,n.VW)(eu,e,t),setSelectedProvider(e){eu.selectedProvider=e},setPurchaseCurrency(e){eu.purchaseCurrency=e},setPaymentCurrency(e){eu.paymentCurrency=e},setPurchaseAmount(e){this.state.purchaseAmount=e},setPaymentAmount(e){this.state.paymentAmount=e},async getAvailableCurrencies(){let e=await q.getOnrampOptions();eu.purchaseCurrencies=e.purchaseCurrencies,eu.paymentCurrencies=e.paymentCurrencies,eu.paymentCurrency=e.paymentCurrencies[0]||ec,eu.purchaseCurrency=e.purchaseCurrencies[0]||el,await B.fetchCurrencyImages(e.paymentCurrencies.map(e=>e.id)),await B.fetchTokenImages(e.purchaseCurrencies.map(e=>e.symbol))},async getQuote(){eu.quotesLoading=!0;try{let e=await q.getOnrampQuote({purchaseCurrency:eu.purchaseCurrency,paymentCurrency:eu.paymentCurrency,amount:eu.paymentAmount?.toString()||"0",network:eu.purchaseCurrency?.symbol});return eu.quotesLoading=!1,eu.purchaseAmount=Number(e.purchaseAmount.amount),e}catch(e){return eu.error=e.message,eu.quotesLoading=!1,null}finally{eu.quotesLoading=!1}},resetState(){eu.providers=s,eu.selectedProvider=null,eu.error=null,eu.purchaseCurrency=el,eu.paymentCurrency=ec,eu.purchaseCurrencies=[el],eu.paymentCurrencies=[],eu.paymentAmount=void 0,eu.purchaseAmount=void 0,eu.quotesLoading=!1}},eh=(0,i.sj)({loading:!1}),ef={state:eh,subscribe:e=>(0,i.Ld)(eh,()=>e(eh)),subscribeKey:(e,t)=>(0,n.VW)(eh,e,t),setToken(e){e&&(eh.token=(0,i.iH)(e))},setTokenAmount(e){eh.sendTokenAmount=e},setReceiverAddress(e){eh.receiverAddress=e},setReceiverProfileImageUrl(e){eh.receiverProfileImageUrl=e},setReceiverProfileName(e){eh.receiverProfileName=e},setGasPrice(e){eh.gasPrice=e},setGasPriceInUsd(e){eh.gasPriceInUSD=e},setLoading(e){eh.loading=e},sendToken(){this.state.token?.address&&this.state.sendTokenAmount&&this.state.receiverAddress?(E.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token.address,amount:this.state.sendTokenAmount,network:N.state.caipNetwork?.id||""}}),this.sendERC20Token({receiverAddress:this.state.receiverAddress,tokenAddress:this.state.token.address,sendTokenAmount:this.state.sendTokenAmount,decimals:this.state.token.quantity.decimals})):this.state.receiverAddress&&this.state.sendTokenAmount&&this.state.gasPrice&&this.state.token?.quantity.decimals&&(E.sendEvent({type:"track",event:"SEND_INITIATED",properties:{isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol,amount:this.state.sendTokenAmount,network:N.state.caipNetwork?.id||""}}),this.sendNativeToken({receiverAddress:this.state.receiverAddress,sendTokenAmount:this.state.sendTokenAmount,gasPrice:this.state.gasPrice,decimals:this.state.token.quantity.decimals}))},async sendNativeToken(e){X.pushTransactionStack({view:"Account",goBack:!1});let t=e.receiverAddress,r=eo.state.address,n=Y.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{await Y.sendTransaction({to:t,address:r,data:"0x",value:n,gasPrice:e.gasPrice}),W.showSuccess("Transaction started"),E.sendEvent({type:"track",event:"SEND_SUCCESS",properties:{isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:N.state.caipNetwork?.id||""}}),this.resetSend()}catch(t){E.sendEvent({type:"track",event:"SEND_ERROR",properties:{isSmartAccount:eo.state.preferredAccountType===V.y_.ACCOUNT_TYPES.SMART_ACCOUNT,token:this.state.token?.symbol||"",amount:e.sendTokenAmount,network:N.state.caipNetwork?.id||""}}),W.showError("Something went wrong")}},async sendERC20Token(e){X.pushTransactionStack({view:"Account",goBack:!1});let t=Y.parseUnits(e.sendTokenAmount.toString(),Number(e.decimals));try{eo.state.address&&e.sendTokenAmount&&e.receiverAddress&&e.tokenAddress&&(await Y.writeContract({fromAddress:eo.state.address,tokenAddress:c.getPlainAddress(e.tokenAddress),receiverAddress:e.receiverAddress,tokenAmount:t,method:"transfer",abi:o.em}),W.showSuccess("Transaction started"),this.resetSend())}catch(e){W.showError("Something went wrong")}},resetSend(){eh.token=void 0,eh.sendTokenAmount=void 0,eh.receiverAddress=void 0,eh.receiverProfileImageUrl=void 0,eh.receiverProfileName=void 0,eh.loading=!1}},ep=(0,i.sj)({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),eg={state:ep,subscribe:e=>(0,i.Ld)(ep,()=>e(ep)),subscribeKey:(e,t)=>(0,n.VW)(ep,e,t),showTooltip({message:e,triggerRect:t,variant:r}){ep.open=!0,ep.message=e,ep.triggerRect=t,ep.variant=r},hide(){ep.open=!1,ep.message="",ep.triggerRect={width:0,height:0,top:0,left:0}}},em={convertEVMChainIdToCoinType(e){if(e>=2147483648)throw Error("Invalid chainId");return(2147483648|e)>>>0}},ev=(0,i.sj)({suggestions:[],loading:!1}),eb={state:ev,subscribe:e=>(0,i.Ld)(ev,()=>e(ev)),subscribeKey:(e,t)=>(0,n.VW)(ev,e,t),async resolveName(e){try{return await q.lookupEnsName(e)}catch(e){throw Error(e?.reasons?.[0]?.description||"Error resolving name")}},async isNameRegistered(e){try{return await q.lookupEnsName(e),!0}catch{return!1}},async getSuggestions(e){try{ev.loading=!0,ev.suggestions=[];let t=await q.getEnsNameSuggestions(e);return ev.suggestions=t.suggestions.map(e=>({...e,name:e.name.replace(o.bq.WC_NAME_SUFFIX,"")}))||[],ev.suggestions}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching name suggestions"))}finally{ev.loading=!1}},async getNamesForAddress(e){try{if(!N.state.caipNetwork)return[];return await q.reverseLookupEnsName({address:e})}catch(e){throw Error(this.parseEnsApiError(e,"Error fetching names for address"))}},async registerName(e){let t=N.state.caipNetwork;if(!t)throw Error("Network not found");let r=eo.state.address,n=_.getAuthConnector();if(!r||!n)throw Error("Address or auth connector not found");ev.loading=!0;try{let n=JSON.stringify({name:`${e}${o.bq.WC_NAME_SUFFIX}`,attributes:{},timestamp:Math.floor(Date.now()/1e3)});X.pushTransactionStack({view:"RegisterAccountNameSuccess",goBack:!1,replace:!0,onCancel(){ev.loading=!1}});let i=await Y.signMessage(n),a=o.p1.caipNetworkIdToNumber(t.id);if(!a)throw Error("Network not found");let s=em.convertEVMChainIdToCoinType(a);await q.registerEnsName({coinType:s,address:r,signature:i,message:n}),eo.setProfileName(`${e}${o.bq.WC_NAME_SUFFIX}`,R.state.activeChain),X.replace("RegisterAccountNameSuccess")}catch(r){let t=this.parseEnsApiError(r,`Error registering name ${e}`);throw X.replace("RegisterAccountName"),Error(t)}finally{ev.loading=!1}},validateName:e=>/^[a-zA-Z0-9-]{4,}$/u.test(e),parseEnsApiError:(e,t)=>e?.reasons?.[0]?.description||t},ey={evm:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",solana:"a1b58899-f671-4276-6a5e-56ca5bd59700"},ew={async fetchWalletImage(e){if(e)return await B._fetchWalletImage(e),this.getWalletImageById(e)},getWalletImageById(e){if(e)return b.state.walletImages[e]},getWalletImage:e=>e?.image_url?e?.image_url:e?.image_id?b.state.walletImages[e.image_id]:void 0,getNetworkImage:e=>e?.imageUrl?e?.imageUrl:e?.imageId?b.state.networkImages[e.imageId]:void 0,getNetworkImageById(e){if(e)return b.state.networkImages[e]},getConnectorImage:e=>e?.imageUrl?e.imageUrl:e?.imageId?b.state.connectorImages[e.imageId]:void 0,getChainImage:e=>b.state.networkImages[ey[e]]},ex={goBackOrCloseModal(){X.state.history.length>1?X.goBack():es.close()},navigateAfterNetworkSwitch(){let{history:e}=X.state,t=e.findIndex(e=>"Networks"===e);t>=1?X.goBackToIndex(t-1):es.close()},navigateAfterPreferredAccountTypeSelect(){let{isSiweEnabled:e}=$.state;e&&R.state.activeChain===o.bq.CHAIN.EVM?X.push("ConnectingSiwe"):X.push("Account")}}},74146:function(e,t,r){"use strict";var n=r(48764);"undefined"==typeof window||(window.Buffer||(window.Buffer=n.Buffer),window.global||(window.global=window),window.process||(window.process={}),window.process?.env||(window.process={env:{}}))},64635:function(e,t,r){"use strict";var n,i;r.d(t,{bq:function(){return o},gk:function(){return s},CK:function(){return a},XW:function(){return n}});let o={WALLET_CONNECT_CONNECTOR_ID:"walletConnect",INJECTED_CONNECTOR_ID:"injected",WALLET_STANDARD_CONNECTOR_ID:"announced",COINBASE_CONNECTOR_ID:"coinbaseWallet",COINBASE_SDK_CONNECTOR_ID:"coinbaseWalletSDK",SAFE_CONNECTOR_ID:"safe",LEDGER_CONNECTOR_ID:"ledger",EIP6963_CONNECTOR_ID:"eip6963",AUTH_CONNECTOR_ID:"w3mAuth",EIP155:"eip155",ADD_CHAIN_METHOD:"wallet_addEthereumChain",EIP6963_ANNOUNCE_EVENT:"eip6963:announceProvider",EIP6963_REQUEST_EVENT:"eip6963:requestProvider",CONNECTOR_RDNS_MAP:{coinbaseWallet:"com.coinbase.wallet",coinbaseWalletSDK:"com.coinbase.wallet"},VERSION:"5.1.7"},a={ConnectorExplorerIds:{[o.COINBASE_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[o.COINBASE_SDK_CONNECTOR_ID]:"fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa",[o.SAFE_CONNECTOR_ID]:"225affb176778569276e484e1b92637ad061b01e13a048b35a9d280c3b58970f",[o.LEDGER_CONNECTOR_ID]:"19177a98252e07ddfc9af2083ba8e07ef627cb6103467ffebb3f8f4205fd7927"},EIP155NetworkImageIds:{1:"ba0ba0cd-17c6-4806-ad93-f9d174f17900",42161:"3bff954d-5cb0-47a0-9a23-d20192e74600",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",2020:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00",2021:"b8101fc0-9c19-4b6f-ec65-f6dfff106e00","5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp":"a1b58899-f671-4276-6a5e-56ca5bd59700","4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z":"a1b58899-f671-4276-6a5e-56ca5bd59700",EtWTRABZaYq6iMfeYKouRu166VU2xqa1:"a1b58899-f671-4276-6a5e-56ca5bd59700"},ConnectorImageIds:{[o.COINBASE_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[o.COINBASE_SDK_CONNECTOR_ID]:"0c2840c3-5b04-4c44-9661-fbd4b49e1800",[o.SAFE_CONNECTOR_ID]:"461db637-8616-43ce-035a-d89b8a1d5800",[o.LEDGER_CONNECTOR_ID]:"54a1aa77-d202-4f8d-0fb2-5d2bb6db0300",[o.WALLET_CONNECT_CONNECTOR_ID]:"ef1a1fcf-7fe8-4d69-bd6d-fda1345b4400",[o.INJECTED_CONNECTOR_ID]:"07ba87ed-43aa-4adf-4540-9e6a2b9cae00"},ConnectorNamesMap:{[o.INJECTED_CONNECTOR_ID]:"Browser Wallet",[o.WALLET_CONNECT_CONNECTOR_ID]:"WalletConnect",[o.COINBASE_CONNECTOR_ID]:"Coinbase",[o.COINBASE_SDK_CONNECTOR_ID]:"Coinbase",[o.LEDGER_CONNECTOR_ID]:"Ledger",[o.SAFE_CONNECTOR_ID]:"Safe"},ConnectorTypesMap:{[o.INJECTED_CONNECTOR_ID]:"INJECTED",[o.WALLET_CONNECT_CONNECTOR_ID]:"WALLET_CONNECT",[o.EIP6963_CONNECTOR_ID]:"ANNOUNCED",[o.AUTH_CONNECTOR_ID]:"AUTH"},WalletConnectRpcChainIds:[1,5,11155111,10,420,42161,421613,137,80001,42220,1313161554,1313161555,56,97,43114,43113,100,8453,84531,7777777,999,324,280]},s={getCaipTokens(e){if(!e)return;let t={};return Object.entries(e).forEach(([e,r])=>{t[`${o.EIP155}:${e}`]=r}),t}};(i=n||(n={})).Google="google",i.Github="github",i.Apple="apple",i.Facebook="facebook",i.X="x",i.Discord="discord",i.Farcaster="farcaster"},70632:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{MathUtil:function(){return iq},TransactionUtil:function(){return iV},UiHelperUtil:function(){return tE},WuiAccountButton:function(){return tL},WuiAllWalletsImage:function(){return tH},WuiAvatar:function(){return tR},WuiBalance:function(){return nK},WuiBanner:function(){return it},WuiBannerImg:function(){return io},WuiButton:function(){return tY},WuiCard:function(){return x},WuiCardSelect:function(){return t9},WuiCardSelectLoader:function(){return t0},WuiChip:function(){return rt},WuiChipButton:function(){return n6},WuiCompatibleNetwork:function(){return n9},WuiConnectButton:function(){return ri},WuiCtaButton:function(){return rs},WuiDetailsGroup:function(){return rc},WuiDetailsGroupItem:function(){return rh},WuiDropdownMenu:function(){return rg},WuiEmailInput:function(){return r_},WuiEnsInput:function(){return rk},WuiFlex:function(){return tI},WuiGrid:function(){return i$},WuiIcon:function(){return eq},WuiIconBox:function(){return tj},WuiIconButton:function(){return iS},WuiIconLink:function(){return rT},WuiImage:function(){return eV},WuiInputAmount:function(){return iv},WuiInputElement:function(){return rO},WuiInputNumeric:function(){return rN},WuiInputText:function(){return ry},WuiLink:function(){return rB},WuiListAccordion:function(){return nN},WuiListAccount:function(){return iA},WuiListButton:function(){return iP},WuiListContent:function(){return nB},WuiListDescription:function(){return id},WuiListItem:function(){return rU},WuiListNetwork:function(){return nU},WuiListSocial:function(){return iM},WuiListToken:function(){return il},WuiListWallet:function(){return r0},WuiListWalletTransaction:function(){return nq},WuiLoadingHexagon:function(){return eG},WuiLoadingSpinner:function(){return eQ},WuiLoadingThumbnail:function(){return e0},WuiLogo:function(){return r3},WuiLogoSelect:function(){return r4},WuiNetworkButton:function(){return r7},WuiNetworkImage:function(){return t6},WuiNoticeCard:function(){return nO},WuiOtp:function(){return nr},WuiPreviewItem:function(){return iw},WuiProfileButton:function(){return nJ},WuiProfileButtonV2:function(){return n2},WuiPromo:function(){return nV},WuiQrCode:function(){return nl},WuiSearchBar:function(){return nu},WuiSelect:function(){return iD},WuiSeparator:function(){return iF},WuiShimmer:function(){return e3},WuiSnackbar:function(){return nf},WuiTabs:function(){return nm},WuiTag:function(){return rQ},WuiText:function(){return e7},WuiTokenButton:function(){return ny},WuiTokenListItem:function(){return nk},WuiTooltip:function(){return n_},WuiTransactionListItem:function(){return rV},WuiTransactionListItemLoader:function(){return rG},WuiTransactionVisual:function(){return rq},WuiVisual:function(){return tA},WuiVisualThumbnail:function(){return nT},WuiWalletImage:function(){return tz},customElement:function(){return y},initializeTheming:function(){return h},setColorTheme:function(){return f},setThemeVariables:function(){return p},swapInputMaskBottomSvg:function(){return c},swapInputMaskTopSvg:function(){return u}});var a,s,l=r(19064);let c=(0,l.YP)`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
  <mask id="path-1-inside-1_18299_4189">
    <path
      class="input_mask__border"
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
    />
  </mask>
  <path
    class="input_mask__background"
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M138.008 0H40C21.1438 0 11.7157 0 5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H189.992C189.958 4.89122 189.786 7.76279 188.914 10.1564C187.095 15.1562 183.156 19.0947 178.156 20.9145C175.174 22 171.449 22 164 22C156.551 22 152.826 22 149.844 20.9145C144.844 19.0947 140.905 15.1562 139.086 10.1564C138.214 7.76279 138.042 4.89122 138.008 0Z"
  />
  <path
    class="input_mask__border"
    d="M138.008 0L139.008 -0.00694413L139.001 -1H138.008V0ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM189.992 0V-1H188.999L188.992 -0.00694413L189.992 0ZM188.914 10.1564L189.854 10.4984V10.4984L188.914 10.1564ZM178.156 20.9145L177.814 19.9748V19.9748L178.156 20.9145ZM149.844 20.9145L150.186 19.9748V19.9748L149.844 20.9145ZM139.086 10.1564L138.146 10.4984V10.4984L139.086 10.1564ZM40 1H138.008V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM288 99H40V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM189.992 1H288V-1H189.992V1ZM188.992 -0.00694413C188.958 4.90792 188.778 7.60788 187.975 9.81434L189.854 10.4984C190.793 7.9177 190.958 4.87452 190.992 0.00694413L188.992 -0.00694413ZM187.975 9.81434C186.256 14.5364 182.536 18.2561 177.814 19.9748L178.498 21.8542C183.776 19.9333 187.933 15.7759 189.854 10.4984L187.975 9.81434ZM177.814 19.9748C175.039 20.9848 171.536 21 164 21V23C171.362 23 175.308 23.0152 178.498 21.8542L177.814 19.9748ZM164 21C156.464 21 152.961 20.9848 150.186 19.9748L149.502 21.8542C152.692 23.0152 156.638 23 164 23V21ZM150.186 19.9748C145.464 18.2561 141.744 14.5364 140.025 9.81434L138.146 10.4984C140.067 15.7759 144.224 19.9333 149.502 21.8542L150.186 19.9748ZM140.025 9.81434C139.222 7.60788 139.042 4.90792 139.008 -0.00694413L137.008 0.00694413C137.042 4.87452 137.207 7.9177 138.146 10.4984L140.025 9.81434Z"
    mask="url(#path-1-inside-1_18299_4189)"
  />
</svg>`,u=(0,l.YP)`<svg class="input_mask" width="328" height="100" viewBox="0 0 328 100" fill="none">
  <mask id="path-1-inside-1_18299_4168">
    <path
      class="input_mask__border"
      fill-rule="evenodd"
      clip-rule="evenodd"
      d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
    />
  </mask>
  <path
    class="input_mask__background"
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M5.85786 5.85786C0 11.7157 0 21.1438 0 40V60C0 78.8562 0 88.2843 5.85786 94.1421C11.7157 100 21.1438 100 40 100H138.008C138.042 95.1088 138.214 92.2372 139.086 89.8436C140.905 84.8438 144.844 80.9053 149.844 79.0855C152.826 78 156.551 78 164 78C171.449 78 175.174 78 178.156 79.0855C183.156 80.9053 187.095 84.8438 188.914 89.8436C189.786 92.2372 189.958 95.1088 189.992 100H288C306.856 100 316.284 100 322.142 94.1421C328 88.2843 328 78.8562 328 60V40C328 21.1438 328 11.7157 322.142 5.85786C316.284 0 306.856 0 288 0H40C21.1438 0 11.7157 0 5.85786 5.85786Z"
  />
  <path
    class="input_mask__border"
    d="M138.008 100V101H139.001L139.008 100.007L138.008 100ZM139.086 89.8436L138.146 89.5016L139.086 89.8436ZM149.844 79.0855L150.186 80.0252L149.844 79.0855ZM178.156 79.0855L177.814 80.0252L178.156 79.0855ZM188.914 89.8436L189.854 89.5016L188.914 89.8436ZM189.992 100L188.992 100.007L188.999 101H189.992V100ZM322.142 94.1421L322.849 94.8492H322.849L322.142 94.1421ZM322.142 5.85786L322.849 5.15076L322.849 5.15076L322.142 5.85786ZM1 40C1 30.5436 1.00212 23.552 1.72332 18.1878C2.44064 12.8524 3.85281 9.27713 6.56497 6.56497L5.15076 5.15076C2.00506 8.29646 0.488292 12.3641 -0.25885 17.9213C-1.00212 23.4497 -1 30.6002 -1 40H1ZM1 60V40H-1V60H1ZM6.56497 93.435C3.85281 90.7229 2.44064 87.1476 1.72332 81.8122C1.00212 76.448 1 69.4564 1 60H-1C-1 69.3998 -1.00212 76.5503 -0.25885 82.0787C0.488292 87.6358 2.00506 91.7035 5.15076 94.8492L6.56497 93.435ZM40 99C30.5436 99 23.552 98.9979 18.1878 98.2767C12.8524 97.5594 9.27713 96.1472 6.56497 93.435L5.15076 94.8492C8.29646 97.9949 12.3641 99.5117 17.9213 100.259C23.4497 101.002 30.6002 101 40 101V99ZM138.008 99H40V101H138.008V99ZM139.008 100.007C139.042 95.0921 139.222 92.3921 140.025 90.1857L138.146 89.5016C137.207 92.0823 137.042 95.1255 137.008 99.9931L139.008 100.007ZM140.025 90.1857C141.744 85.4636 145.464 81.7439 150.186 80.0252L149.502 78.1458C144.224 80.0667 140.067 84.2241 138.146 89.5016L140.025 90.1857ZM150.186 80.0252C152.961 79.0152 156.464 79 164 79V77C156.638 77 152.692 76.9848 149.502 78.1458L150.186 80.0252ZM164 79C171.536 79 175.039 79.0152 177.814 80.0252L178.498 78.1458C175.308 76.9848 171.362 77 164 77V79ZM177.814 80.0252C182.536 81.7439 186.256 85.4636 187.975 90.1857L189.854 89.5016C187.933 84.2241 183.776 80.0667 178.498 78.1458L177.814 80.0252ZM187.975 90.1857C188.778 92.3921 188.958 95.0921 188.992 100.007L190.992 99.9931C190.958 95.1255 190.793 92.0823 189.854 89.5016L187.975 90.1857ZM288 99H189.992V101H288V99ZM321.435 93.435C318.723 96.1472 315.148 97.5594 309.812 98.2767C304.448 98.9979 297.456 99 288 99V101C297.4 101 304.55 101.002 310.079 100.259C315.636 99.5117 319.704 97.9949 322.849 94.8492L321.435 93.435ZM327 60C327 69.4564 326.998 76.448 326.277 81.8122C325.559 87.1476 324.147 90.7229 321.435 93.435L322.849 94.8492C325.995 91.7035 327.512 87.6358 328.259 82.0787C329.002 76.5503 329 69.3998 329 60H327ZM327 40V60H329V40H327ZM321.435 6.56497C324.147 9.27713 325.559 12.8524 326.277 18.1878C326.998 23.552 327 30.5436 327 40H329C329 30.6002 329.002 23.4497 328.259 17.9213C327.512 12.3642 325.995 8.29646 322.849 5.15076L321.435 6.56497ZM288 1C297.456 1 304.448 1.00212 309.812 1.72332C315.148 2.44064 318.723 3.85281 321.435 6.56497L322.849 5.15076C319.704 2.00506 315.636 0.488292 310.079 -0.25885C304.55 -1.00212 297.4 -1 288 -1V1ZM40 1H288V-1H40V1ZM6.56497 6.56497C9.27713 3.85281 12.8524 2.44064 18.1878 1.72332C23.552 1.00212 30.5436 1 40 1V-1C30.6002 -1 23.4497 -1.00212 17.9213 -0.25885C12.3641 0.488292 8.29646 2.00506 5.15076 5.15076L6.56497 6.56497Z"
    mask="url(#path-1-inside-1_18299_4168)"
  />
</svg>`;var d=r(257);function h(e,t){n=document.createElement("style"),i=document.createElement("style"),o=document.createElement("style"),n.textContent=g(e).core.cssText,i.textContent=g(e).dark.cssText,o.textContent=g(e).light.cssText,document.head.appendChild(n),document.head.appendChild(i),document.head.appendChild(o),f(t)}function f(e){i&&o&&("light"===e?(i.removeAttribute("media"),o.media="enabled"):(o.removeAttribute("media"),i.media="enabled"))}function p(e){n&&i&&o&&(n.textContent=g(e).core.cssText,i.textContent=g(e).dark.cssText,o.textContent=g(e).light.cssText)}function g(e){return{core:(0,l.iv)`
      @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
      @keyframes w3m-shake {
        0% {
          transform: scale(1) rotate(0deg);
        }
        20% {
          transform: scale(1) rotate(-1deg);
        }
        40% {
          transform: scale(1) rotate(1.5deg);
        }
        60% {
          transform: scale(1) rotate(-1.5deg);
        }
        80% {
          transform: scale(1) rotate(1deg);
        }
        100% {
          transform: scale(1) rotate(0deg);
        }
      }
      @keyframes w3m-iframe-fade-out {
        0% {
          opacity: 1;
        }
        100% {
          opacity: 0;
        }
      }
      @keyframes w3m-iframe-zoom-in {
        0% {
          transform: translateY(50px);
          opacity: 0;
        }
        100% {
          transform: translateY(0px);
          opacity: 1;
        }
      }
      @keyframes w3m-iframe-zoom-in-mobile {
        0% {
          transform: scale(0.95);
          opacity: 0;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
      :root {
        --w3m-modal-width: 360px;
        --w3m-color-mix-strength: ${(0,l.$m)(e?.["--w3m-color-mix-strength"]?`${e["--w3m-color-mix-strength"]}%`:"0%")};
        --w3m-font-family: ${(0,l.$m)(e?.["--w3m-font-family"]||"Inter, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;")};
        --w3m-font-size-master: ${(0,l.$m)(e?.["--w3m-font-size-master"]||"10px")};
        --w3m-border-radius-master: ${(0,l.$m)(e?.["--w3m-border-radius-master"]||"4px")};
        --w3m-z-index: ${(0,l.$m)(e?.["--w3m-z-index"]||999)};

        --wui-font-family: var(--w3m-font-family);

        --wui-font-size-mini: calc(var(--w3m-font-size-master) * 0.8);
        --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-medium: calc(var(--w3m-font-size-master) * 1.8);
        --wui-font-size-large: calc(var(--w3m-font-size-master) * 2);
        --wui-font-size-title-6: calc(var(--w3m-font-size-master) * 2.2);
        --wui-font-size-medium-title: calc(var(--w3m-font-size-master) * 2.4);
        --wui-font-size-2xl: calc(var(--w3m-font-size-master) * 4);

        --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-2xl: -1.6px;
        --wui-letter-spacing-medium-title: -0.96px;
        --wui-letter-spacing-title-6: -0.88px;
        --wui-letter-spacing-large: -0.8px;
        --wui-letter-spacing-medium: -0.72px;
        --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-letter-spacing-mini: -0.16px;

        --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-spacing-5xl: 95px;

        --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-2lg: 48px;
        --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-icon-size-xxl: 28px;

        --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-visual-size-size-inherit: inherit;
        --wui-visual-size-sm: 40px;
        --wui-visual-size-md: 55px;
        --wui-visual-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-sm: path(
          'M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z'
        );

        --wui-path-network-md: 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-width-network-sm: 36px;
        --wui-width-network-md: 48px;
        --wui-width-network-lg: 86px;

        --wui-height-network-sm: 40px;
        --wui-height-network-md: 54px;
        --wui-height-network-lg: 96px;

        --wui-icon-size-network-xs: 12px;
        --wui-icon-size-network-sm: 16px;
        --wui-icon-size-network-md: 24px;
        --wui-icon-size-network-lg: 42px;

        --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-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-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-100);

        --wui-avatar-border: var(--wui-avatar-border-base);

        --wui-thumbnail-border: var(--wui-thumbnail-border-base);

        --wui-box-shadow-blue: var(--wui-color-accent-glass-020);
      }

      @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) 20%, transparent);

          --wui-color-accent-100: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 100%,
            transparent
          );
          --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-color-accent-glass-090: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 90%,
            transparent
          );
          --wui-color-accent-glass-080: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 80%,
            transparent
          );
          --wui-color-accent-glass-020: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 20%,
            transparent
          );
          --wui-color-accent-glass-015: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 15%,
            transparent
          );
          --wui-color-accent-glass-010: color-mix(
            in srgb,
            var(--wui-color-accent-base-100) 10%,
            transparent
          );
          --wui-color-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-100)
          );
          --wui-color-fg-125: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-125)
          );
          --wui-color-fg-150: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-150)
          );
          --wui-color-fg-175: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-175)
          );
          --wui-color-fg-200: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-200)
          );
          --wui-color-fg-225: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-225)
          );
          --wui-color-fg-250: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-250)
          );
          --wui-color-fg-275: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-275)
          );
          --wui-color-fg-300: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-fg-300)
          );

          --wui-color-bg-100: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-100)
          );
          --wui-color-bg-125: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-125)
          );
          --wui-color-bg-150: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-150)
          );
          --wui-color-bg-175: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-175)
          );
          --wui-color-bg-200: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-200)
          );
          --wui-color-bg-225: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-225)
          );
          --wui-color-bg-250: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-250)
          );
          --wui-color-bg-275: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-275)
          );
          --wui-color-bg-300: color-mix(
            in srgb,
            var(--w3m-color-mix) var(--w3m-color-mix-strength),
            var(--wui-color-bg-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-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:(0,l.iv)`
      :root {
        --w3m-color-mix: ${(0,l.$m)(e?.["--w3m-color-mix"]||"#fff")};
        --w3m-accent: ${(0,l.$m)((0,d.tU)(e,"dark")["--w3m-accent"])};
        --w3m-default: #fff;

        --wui-color-modal-bg-base: ${(0,l.$m)((0,d.tU)(e,"dark")["--w3m-background"])};
        --wui-color-accent-base-100: var(--w3m-accent);

        --wui-color-blueberry-100: hsla(230, 100%, 67%, 1);
        --wui-color-blueberry-090: hsla(231, 76%, 61%, 1);
        --wui-color-blueberry-080: hsla(230, 59%, 55%, 1);
        --wui-color-blueberry-050: hsla(231, 100%, 70%, 0.1);

        --wui-color-fg-100: #e4e7e7;
        --wui-color-fg-125: #d0d5d5;
        --wui-color-fg-150: #a8b1b1;
        --wui-color-fg-175: #a8b0b0;
        --wui-color-fg-200: #949e9e;
        --wui-color-fg-225: #868f8f;
        --wui-color-fg-250: #788080;
        --wui-color-fg-275: #788181;
        --wui-color-fg-300: #6e7777;

        --wui-color-bg-100: #141414;
        --wui-color-bg-125: #191a1a;
        --wui-color-bg-150: #1e1f1f;
        --wui-color-bg-175: #222525;
        --wui-color-bg-200: #272a2a;
        --wui-color-bg-225: #2c3030;
        --wui-color-bg-250: #313535;
        --wui-color-bg-275: #363b3b;
        --wui-color-bg-300: #3b4040;

        --wui-color-success-base-100: #26d962;
        --wui-color-error-base-100: #f25a67;

        --wui-color-success-glass-001: rgba(38, 217, 98, 0.01);
        --wui-color-success-glass-002: rgba(38, 217, 98, 0.02);
        --wui-color-success-glass-005: rgba(38, 217, 98, 0.05);
        --wui-color-success-glass-010: rgba(38, 217, 98, 0.1);
        --wui-color-success-glass-015: rgba(38, 217, 98, 0.15);
        --wui-color-success-glass-020: rgba(38, 217, 98, 0.2);
        --wui-color-success-glass-025: rgba(38, 217, 98, 0.25);
        --wui-color-success-glass-030: rgba(38, 217, 98, 0.3);
        --wui-color-success-glass-060: rgba(38, 217, 98, 0.6);
        --wui-color-success-glass-080: rgba(38, 217, 98, 0.8);

        --wui-color-error-glass-001: rgba(242, 90, 103, 0.01);
        --wui-color-error-glass-002: rgba(242, 90, 103, 0.02);
        --wui-color-error-glass-005: rgba(242, 90, 103, 0.05);
        --wui-color-error-glass-010: rgba(242, 90, 103, 0.1);
        --wui-color-error-glass-015: rgba(242, 90, 103, 0.15);
        --wui-color-error-glass-020: rgba(242, 90, 103, 0.2);
        --wui-color-error-glass-025: rgba(242, 90, 103, 0.25);
        --wui-color-error-glass-030: rgba(242, 90, 103, 0.3);
        --wui-color-error-glass-060: rgba(242, 90, 103, 0.6);
        --wui-color-error-glass-080: rgba(242, 90, 103, 0.8);

        --wui-color-gray-glass-001: rgba(255, 255, 255, 0.01);
        --wui-color-gray-glass-002: rgba(255, 255, 255, 0.02);
        --wui-color-gray-glass-005: rgba(255, 255, 255, 0.05);
        --wui-color-gray-glass-010: rgba(255, 255, 255, 0.1);
        --wui-color-gray-glass-015: rgba(255, 255, 255, 0.15);
        --wui-color-gray-glass-020: rgba(255, 255, 255, 0.2);
        --wui-color-gray-glass-025: rgba(255, 255, 255, 0.25);
        --wui-color-gray-glass-030: rgba(255, 255, 255, 0.3);
        --wui-color-gray-glass-060: rgba(255, 255, 255, 0.6);
        --wui-color-gray-glass-080: rgba(255, 255, 255, 0.8);
        --wui-color-gray-glass-090: rgba(255, 255, 255, 0.9);

        --wui-icon-box-bg-error-base-100: #3c2426;
        --wui-icon-box-bg-blue-base-100: #20303f;
        --wui-icon-box-bg-success-base-100: #1f3a28;
        --wui-icon-box-bg-inverse-base-100: #243240;

        --wui-all-wallets-bg-100: #222b35;

        --wui-avatar-border-base: #252525;

        --wui-thumbnail-border-base: #252525;
      }
    `,dark:(0,l.iv)`
      :root {
        --w3m-color-mix: ${(0,l.$m)(e?.["--w3m-color-mix"]||"#000")};
        --w3m-accent: ${(0,l.$m)((0,d.tU)(e,"light")["--w3m-accent"])};
        --w3m-default: #000;

        --wui-color-modal-bg-base: ${(0,l.$m)((0,d.tU)(e,"light")["--w3m-background"])};
        --wui-color-accent-base-100: var(--w3m-accent);

        --wui-color-blueberry-100: hsla(231, 100%, 70%, 1);
        --wui-color-blueberry-090: hsla(231, 97%, 72%, 1);
        --wui-color-blueberry-080: hsla(231, 92%, 74%, 1);

        --wui-color-fg-100: #141414;
        --wui-color-fg-125: #2d3131;
        --wui-color-fg-150: #474d4d;
        --wui-color-fg-175: #636d6d;
        --wui-color-fg-200: #798686;
        --wui-color-fg-225: #828f8f;
        --wui-color-fg-250: #8b9797;
        --wui-color-fg-275: #95a0a0;
        --wui-color-fg-300: #9ea9a9;

        --wui-color-bg-100: #ffffff;
        --wui-color-bg-125: #f5fafa;
        --wui-color-bg-150: #f3f8f8;
        --wui-color-bg-175: #eef4f4;
        --wui-color-bg-200: #eaf1f1;
        --wui-color-bg-225: #e5eded;
        --wui-color-bg-250: #e1e9e9;
        --wui-color-bg-275: #dce7e7;
        --wui-color-bg-300: #d8e3e3;

        --wui-color-success-base-100: #26b562;
        --wui-color-error-base-100: #f05142;

        --wui-color-success-glass-001: rgba(38, 181, 98, 0.01);
        --wui-color-success-glass-002: rgba(38, 181, 98, 0.02);
        --wui-color-success-glass-005: rgba(38, 181, 98, 0.05);
        --wui-color-success-glass-010: rgba(38, 181, 98, 0.1);
        --wui-color-success-glass-015: rgba(38, 181, 98, 0.15);
        --wui-color-success-glass-020: rgba(38, 181, 98, 0.2);
        --wui-color-success-glass-025: rgba(38, 181, 98, 0.25);
        --wui-color-success-glass-030: rgba(38, 181, 98, 0.3);
        --wui-color-success-glass-060: rgba(38, 181, 98, 0.6);
        --wui-color-success-glass-080: rgba(38, 181, 98, 0.8);

        --wui-color-error-glass-001: rgba(240, 81, 66, 0.01);
        --wui-color-error-glass-002: rgba(240, 81, 66, 0.02);
        --wui-color-error-glass-005: rgba(240, 81, 66, 0.05);
        --wui-color-error-glass-010: rgba(240, 81, 66, 0.1);
        --wui-color-error-glass-015: rgba(240, 81, 66, 0.15);
        --wui-color-error-glass-020: rgba(240, 81, 66, 0.2);
        --wui-color-error-glass-025: rgba(240, 81, 66, 0.25);
        --wui-color-error-glass-030: rgba(240, 81, 66, 0.3);
        --wui-color-error-glass-060: rgba(240, 81, 66, 0.6);
        --wui-color-error-glass-080: rgba(240, 81, 66, 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-100: #e8f1fa;

        --wui-avatar-border-base: #f3f4f4;

        --wui-thumbnail-border-base: #eaefef;

        --wui-color-gray-glass-001: rgba(0, 0, 0, 0.01);
        --wui-color-gray-glass-002: rgba(0, 0, 0, 0.02);
        --wui-color-gray-glass-005: rgba(0, 0, 0, 0.05);
        --wui-color-gray-glass-010: rgba(0, 0, 0, 0.1);
        --wui-color-gray-glass-015: rgba(0, 0, 0, 0.15);
        --wui-color-gray-glass-020: rgba(0, 0, 0, 0.2);
        --wui-color-gray-glass-025: rgba(0, 0, 0, 0.25);
        --wui-color-gray-glass-030: rgba(0, 0, 0, 0.3);
        --wui-color-gray-glass-060: rgba(0, 0, 0, 0.6);
        --wui-color-gray-glass-080: rgba(0, 0, 0, 0.8);
        --wui-color-gray-glass-090: rgba(0, 0, 0, 0.9);
      }
    `}}let m=(0,l.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;
  }
`,v=(0,l.iv)`
  button,
  a {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition:
      color var(--wui-duration-lg) var(--wui-ease-out-power-1),
      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
      border var(--wui-duration-lg) var(--wui-ease-out-power-1),
      box-shadow var(--wui-duration-lg) var(--wui-ease-out-power-1);
    will-change: background-color, color, border, box-shadow;
    outline: none;
    border: none;
    column-gap: var(--wui-spacing-3xs);
    background-color: transparent;
    text-decoration: none;
  }

  button:disabled > wui-wallet-image,
  button:disabled > wui-all-wallets-image,
  button:disabled > wui-network-image,
  button:disabled > wui-image,
  button:disabled > wui-transaction-visual,
  button:disabled > wui-logo {
    filter: grayscale(1);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-gray-glass-005);
    }

    button:active:enabled {
      background-color: var(--wui-color-gray-glass-010);
    }
  }

  button:disabled > wui-icon-box {
    opacity: 0.5;
  }

  input {
    border: none;
    outline: none;
    appearance: none;
  }
`,b=(0,l.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 y(e){return function(t){return"function"==typeof t?(customElements.get(e)||customElements.define(e,t),t):function(e,t){let{kind:r,elements:n}=t;return{kind:r,elements:n,finisher(t){customElements.get(e)||customElements.define(e,t)}}}(e,t)}}var w=(0,l.iv)`
  :host {
    display: block;
    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
    box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
    background-color: var(--wui-color-modal-bg);
    overflow: hidden;
  }
`;let x=class extends l.oi{render(){return(0,l.dy)`<slot></slot>`}};x.styles=[m,w],x=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([y("wui-card")],x);var _=r(59662),C=(0,l.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;
  }
`;let A=(0,l.YP)`<svg
  width="14"
  height="14"
  viewBox="0 0 14 14"
  fill="none"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    fill="currentColor"
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z"
    fill="#667dff"
  /></svg
>`,k=(0,l.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>`,E=(0,l.YP)`<svg
  fill="none"
  viewBox="0 0 21 20"
>
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z"
    clip-rule="evenodd"
  /></svg
>`,S=(0,l.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>`,T=(0,l.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>`,I=(0,l.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>`,P=(0,l.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>`,O=(0,l.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=(0,l.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>`,M=(0,l.YP)`<svg
  xmlns="http://www.w3.org/2000/svg"
  width="12"
  height="13"
  viewBox="0 0 12 13"
  fill="none"
>
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z"
    fill="currentColor"
  /></svg
>`,N=(0,l.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>`,j=(0,l.YP)`<svg
  xmlns="http://www.w3.org/2000/svg"
  width="12"
  height="13"
  viewBox="0 0 12 13"
  fill="none"
>
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M4.16072 2C4.17367 2 4.18665 2 4.19968 2L7.83857 2C8.36772 1.99998 8.82398 1.99996 9.19518 2.04018C9.5895 2.0829 9.97577 2.17811 10.3221 2.42971C10.5131 2.56849 10.6811 2.73647 10.8198 2.92749C11.0714 3.27379 11.1666 3.66007 11.2094 4.0544C11.2496 4.42561 11.2496 4.88188 11.2495 5.41105V7.58896C11.2496 8.11812 11.2496 8.57439 11.2094 8.94561C11.1666 9.33994 11.0714 9.72621 10.8198 10.0725C10.6811 10.2635 10.5131 10.4315 10.3221 10.5703C9.97577 10.8219 9.5895 10.9171 9.19518 10.9598C8.82398 11 8.36772 11 7.83856 11H4.16073C3.63157 11 3.17531 11 2.80411 10.9598C2.40979 10.9171 2.02352 10.8219 1.67722 10.5703C1.48621 10.4315 1.31824 10.2635 1.17946 10.0725C0.927858 9.72621 0.832652 9.33994 0.78993 8.94561C0.749713 8.5744 0.749733 8.11813 0.749757 7.58896L0.749758 5.45C0.749758 5.43697 0.749758 5.42399 0.749757 5.41104C0.749733 4.88188 0.749713 4.42561 0.78993 4.0544C0.832652 3.66007 0.927858 3.27379 1.17946 2.92749C1.31824 2.73647 1.48621 2.56849 1.67722 2.42971C2.02352 2.17811 2.40979 2.0829 2.80411 2.04018C3.17531 1.99996 3.63157 1.99998 4.16072 2ZM2.96567 3.53145C2.69897 3.56034 2.60687 3.60837 2.55888 3.64324C2.49521 3.6895 2.43922 3.74549 2.39296 3.80916C2.35809 3.85715 2.31007 3.94926 2.28117 4.21597C2.26629 4.35335 2.25844 4.51311 2.25431 4.70832H9.74498C9.74085 4.51311 9.733 4.35335 9.71812 4.21597C9.68922 3.94926 9.6412 3.85715 9.60633 3.80916C9.56007 3.74549 9.50408 3.6895 9.44041 3.64324C9.39242 3.60837 9.30031 3.56034 9.03362 3.53145C8.75288 3.50103 8.37876 3.5 7.79961 3.5H4.19968C3.62053 3.5 3.24641 3.50103 2.96567 3.53145ZM9.74956 6.20832H2.24973V7.55C2.24973 8.12917 2.25076 8.5033 2.28117 8.78404C2.31007 9.05074 2.35809 9.14285 2.39296 9.19084C2.43922 9.25451 2.49521 9.31051 2.55888 9.35677C2.60687 9.39163 2.69897 9.43966 2.96567 9.46856C3.24641 9.49897 3.62053 9.5 4.19968 9.5H7.79961C8.37876 9.5 8.75288 9.49897 9.03362 9.46856C9.30032 9.43966 9.39242 9.39163 9.44041 9.35677C9.50408 9.31051 9.56007 9.25451 9.60633 9.19084C9.6412 9.14285 9.68922 9.05075 9.71812 8.78404C9.74854 8.5033 9.74956 8.12917 9.74956 7.55V6.20832ZM6.74963 8C6.74963 7.58579 7.08541 7.25 7.49961 7.25H8.2496C8.6638 7.25 8.99958 7.58579 8.99958 8C8.99958 8.41422 8.6638 8.75 8.2496 8.75H7.49961C7.08541 8.75 6.74963 8.41422 6.74963 8Z"
    fill="currentColor"
  /></svg
>`,D=(0,l.YP)`<svg fill="none" viewBox="0 0 14 14">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M12.9576 2.23383C13.3807 2.58873 13.4361 3.21947 13.0812 3.64263L6.37159 11.6426C6.19161 11.8572 5.92989 11.9865 5.65009 11.999C5.3703 12.0115 5.09808 11.9062 4.89965 11.7085L0.979321 7.80331C0.588042 7.41354 0.586817 6.78038 0.976585 6.3891C1.36635 5.99782 1.99952 5.99659 2.3908 6.38636L5.53928 9.52268L11.5488 2.35742C11.9037 1.93426 12.5344 1.87893 12.9576 2.23383Z"
    clip-rule="evenodd"
  />
</svg>`,B=(0,l.YP)`<svg
  width="28"
  height="28"
  viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M25.5297 4.92733C26.1221 5.4242 26.1996 6.30724 25.7027 6.89966L12.2836 22.8997C12.0316 23.2001 11.6652 23.3811 11.2735 23.3986C10.8817 23.4161 10.5006 23.2686 10.2228 22.9919L2.38218 15.1815C1.83439 14.6358 1.83268 13.7494 2.37835 13.2016C2.92403 12.6538 3.81046 12.6521 4.35825 13.1978L11.1183 19.9317L23.5573 5.10036C24.0542 4.50794 24.9372 4.43047 25.5297 4.92733Z"
    fill="#26D962"/>
</svg>
`,L=(0,l.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>`,$=(0,l.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>`,U=(0,l.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>`,z=(0,l.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>`,F=(0,l.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>`,q=(0,l.YP)`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
  <path 
    fill-rule="evenodd" 
    clip-rule="evenodd" 
    d="M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z" 
    fill="currentColor"
  />
</svg>`,H=(0,l.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>`,W=(0,l.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>`,V=(0,l.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>`,Z=(0,l.YP)`<svg
  xmlns="http://www.w3.org/2000/svg"
  width="16"
  height="16"
  viewBox="0 0 16 16"
  fill="none"
>
  <path
    fill="currentColor"
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M9.21498 1.28565H10.5944C11.1458 1.28562 11.6246 1.2856 12.0182 1.32093C12.4353 1.35836 12.853 1.44155 13.2486 1.66724C13.7005 1.92498 14.0749 2.29935 14.3326 2.75122C14.5583 3.14689 14.6415 3.56456 14.6789 3.9817C14.7143 4.37531 14.7142 4.85403 14.7142 5.40545V6.78489C14.7142 7.33631 14.7143 7.81503 14.6789 8.20865C14.6415 8.62578 14.5583 9.04345 14.3326 9.43912C14.0749 9.89099 13.7005 10.2654 13.2486 10.5231C12.853 10.7488 12.4353 10.832 12.0182 10.8694C11.7003 10.8979 11.3269 10.9034 10.9045 10.9045C10.9034 11.3269 10.8979 11.7003 10.8694 12.0182C10.832 12.4353 10.7488 12.853 10.5231 13.2486C10.2654 13.7005 9.89099 14.0749 9.43912 14.3326C9.04345 14.5583 8.62578 14.6415 8.20865 14.6789C7.81503 14.7143 7.33631 14.7142 6.78489 14.7142H5.40545C4.85403 14.7142 4.37531 14.7143 3.9817 14.6789C3.56456 14.6415 3.14689 14.5583 2.75122 14.3326C2.29935 14.0749 1.92498 13.7005 1.66724 13.2486C1.44155 12.853 1.35836 12.4353 1.32093 12.0182C1.2856 11.6246 1.28562 11.1458 1.28565 10.5944V9.21498C1.28562 8.66356 1.2856 8.18484 1.32093 7.79122C1.35836 7.37409 1.44155 6.95642 1.66724 6.56074C1.92498 6.10887 2.29935 5.73451 2.75122 5.47677C3.14689 5.25108 3.56456 5.16789 3.9817 5.13045C4.2996 5.10192 4.67301 5.09645 5.09541 5.09541C5.09645 4.67302 5.10192 4.2996 5.13045 3.9817C5.16789 3.56456 5.25108 3.14689 5.47676 2.75122C5.73451 2.29935 6.10887 1.92498 6.56074 1.66724C6.95642 1.44155 7.37409 1.35836 7.79122 1.32093C8.18484 1.2856 8.66356 1.28562 9.21498 1.28565ZM5.09541 7.09552C4.68397 7.09667 4.39263 7.10161 4.16046 7.12245C3.88053 7.14757 3.78516 7.18949 3.74214 7.21403C3.60139 7.29431 3.48478 7.41091 3.4045 7.55166C3.37997 7.59468 3.33804 7.69005 3.31292 7.96999C3.28659 8.26345 3.28565 8.65147 3.28565 9.25708V10.5523C3.28565 11.1579 3.28659 11.5459 3.31292 11.8394C3.33804 12.1193 3.37997 12.2147 3.4045 12.2577C3.48478 12.3985 3.60139 12.5151 3.74214 12.5954C3.78516 12.6199 3.88053 12.6618 4.16046 12.6869C4.45393 12.7133 4.84195 12.7142 5.44755 12.7142H6.74279C7.3484 12.7142 7.73641 12.7133 8.02988 12.6869C8.30981 12.6618 8.40518 12.6199 8.44821 12.5954C8.58895 12.5151 8.70556 12.3985 8.78584 12.2577C8.81038 12.2147 8.8523 12.1193 8.87742 11.8394C8.89825 11.6072 8.90319 11.3159 8.90435 10.9045C8.48219 10.9034 8.10898 10.8979 7.79122 10.8694C7.37409 10.832 6.95641 10.7488 6.56074 10.5231C6.10887 10.2654 5.73451 9.89099 5.47676 9.43912C5.25108 9.04345 5.16789 8.62578 5.13045 8.20865C5.10194 7.89089 5.09645 7.51767 5.09541 7.09552ZM7.96999 3.31292C7.69005 3.33804 7.59468 3.37997 7.55166 3.4045C7.41091 3.48478 7.29431 3.60139 7.21403 3.74214C7.18949 3.78516 7.14757 3.88053 7.12245 4.16046C7.09611 4.45393 7.09517 4.84195 7.09517 5.44755V6.74279C7.09517 7.3484 7.09611 7.73641 7.12245 8.02988C7.14757 8.30981 7.18949 8.40518 7.21403 8.4482C7.29431 8.58895 7.41091 8.70556 7.55166 8.78584C7.59468 8.81038 7.69005 8.8523 7.96999 8.87742C8.26345 8.90376 8.65147 8.9047 9.25708 8.9047H10.5523C11.1579 8.9047 11.5459 8.90376 11.8394 8.87742C12.1193 8.8523 12.2147 8.81038 12.2577 8.78584C12.3985 8.70556 12.5151 8.58895 12.5954 8.4482C12.6199 8.40518 12.6618 8.30981 12.6869 8.02988C12.7133 7.73641 12.7142 7.3484 12.7142 6.74279V5.44755C12.7142 4.84195 12.7133 4.45393 12.6869 4.16046C12.6618 3.88053 12.6199 3.78516 12.5954 3.74214C12.5151 3.60139 12.3985 3.48478 12.2577 3.4045C12.2147 3.37997 12.1193 3.33804 11.8394 3.31292C11.5459 3.28659 11.1579 3.28565 10.5523 3.28565H9.25708C8.65147 3.28565 8.26345 3.28659 7.96999 3.31292Z"
    fill="#788181"
  /></svg
>`,G=(0,l.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>`,K=(0,l.YP)`<svg fill="none" viewBox="0 0 14 6">
  <path style="fill: var(--wui-color-bg-150);" d="M0 1h14L9.21 5.12a3.31 3.31 0 0 1-4.49 0L0 1Z" />
  <path
    style="stroke: var(--wui-color-inverse-100);"
    stroke-opacity=".05"
    d="M1.33 1.5h11.32L8.88 4.75l-.01.01a2.81 2.81 0 0 1-3.8 0l-.02-.01L1.33 1.5Z"
  />
  <path
    style="fill: var(--wui-color-bg-150);"
    d="M1.25.71h11.5L9.21 3.88a3.31 3.31 0 0 1-4.49 0L1.25.71Z"
  />
</svg> `,Y=(0,l.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>`,Q=(0,l.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>`,J=(0,l.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>`,X=(0,l.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>`,ee=(0,l.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>`,et=(0,l.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>`,er=(0,l.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>`,en=(0,l.YP)`<svg style="border-radius: 9999px; overflow: hidden;"  fill="none" viewBox="0 0 1000 1000">
  <rect width="1000" height="1000" rx="9999" ry="9999" fill="#855DCD"/>
  <path fill="#855DCD" d="M0 0h1000v1000H0V0Z" />
  <path
    fill="#fff"
    d="M320 248h354v504h-51.96V521.13h-.5c-5.76-63.8-59.31-113.81-124.54-113.81s-118.78 50-124.53 113.81h-.5V752H320V248Z"
  />
  <path
    fill="#fff"
    d="m225 320 21.16 71.46h17.9v289.09a16.29 16.29 0 0 0-16.28 16.24v19.49h-3.25a16.3 16.3 0 0 0-16.28 16.24V752h182.26v-19.48a16.22 16.22 0 0 0-16.28-16.24h-3.25v-19.5a16.22 16.22 0 0 0-16.28-16.23h-19.52V320H225Zm400.3 360.55a16.3 16.3 0 0 0-15.04 10.02 16.2 16.2 0 0 0-1.24 6.22v19.49h-3.25a16.29 16.29 0 0 0-16.27 16.24V752h182.24v-19.48a16.23 16.23 0 0 0-16.27-16.24h-3.25v-19.5a16.2 16.2 0 0 0-10.04-15 16.3 16.3 0 0 0-6.23-1.23v-289.1h17.9L775 320H644.82v360.55H625.3Z"
  />
</svg>`,ei=(0,l.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>`,eo=(0,l.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>`,ea=(0,l.YP)`<svg fill="none" viewBox="0 0 40 40">
  <path
    fill="#4285F4"
    d="M32.74 20.3c0-.93-.08-1.81-.24-2.66H20.26v5.03h7a6 6 0 0 1-2.62 3.91v3.28h4.22c2.46-2.27 3.88-5.6 3.88-9.56Z"
  />
  <path
    fill="#34A853"
    d="M20.26 33a12.4 12.4 0 0 0 8.6-3.14l-4.22-3.28a7.74 7.74 0 0 1-4.38 1.26 7.76 7.76 0 0 1-7.28-5.36H8.65v3.36A12.99 12.99 0 0 0 20.26 33Z"
  />
  <path
    fill="#FBBC05"
    d="M12.98 22.47a7.79 7.79 0 0 1 0-4.94v-3.36H8.65a12.84 12.84 0 0 0 0 11.66l3.37-2.63.96-.73Z"
  />
  <path
    fill="#EA4335"
    d="M20.26 12.18a7.1 7.1 0 0 1 4.98 1.93l3.72-3.72A12.47 12.47 0 0 0 20.26 7c-5.08 0-9.47 2.92-11.6 7.17l4.32 3.36a7.76 7.76 0 0 1 7.28-5.35Z"
  />
</svg>`,es=(0,l.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>`,el=(0,l.YP)`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
  <path d="M4.98926 3.73932C4.2989 3.73932 3.73926 4.29896 3.73926 4.98932C3.73926 5.67968 4.2989 6.23932 4.98926 6.23932C5.67962 6.23932 6.23926 5.67968 6.23926 4.98932C6.23926 4.29896 5.67962 3.73932 4.98926 3.73932Z" fill="currentColor"/>
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60497 0.500001H6.39504C5.41068 0.499977 4.59185 0.499958 3.93178 0.571471C3.24075 0.64634 2.60613 0.809093 2.04581 1.21619C1.72745 1.44749 1.44749 1.72745 1.21619 2.04581C0.809093 2.60613 0.64634 3.24075 0.571471 3.93178C0.499958 4.59185 0.499977 5.41065 0.500001 6.39501V7.57815C0.499998 8.37476 0.499995 9.05726 0.534869 9.62725C0.570123 10.2034 0.644114 10.7419 0.828442 11.2302C0.925651 11.4877 1.05235 11.7287 1.21619 11.9542C1.44749 12.2726 1.72745 12.5525 2.04581 12.7838C2.60613 13.1909 3.24075 13.3537 3.93178 13.4285C4.59185 13.5001 5.41066 13.5 6.39503 13.5H7.60496C8.58933 13.5 9.40815 13.5001 10.0682 13.4285C10.7593 13.3537 11.3939 13.1909 11.9542 12.7838C12.2726 12.5525 12.5525 12.2726 12.7838 11.9542C13.1909 11.3939 13.3537 10.7593 13.4285 10.0682C13.5 9.40816 13.5 8.58935 13.5 7.60497V6.39505C13.5 5.41068 13.5 4.59185 13.4285 3.93178C13.3537 3.24075 13.1909 2.60613 12.7838 2.04581C12.5525 1.72745 12.2726 1.44749 11.9542 1.21619C11.3939 0.809093 10.7593 0.64634 10.0682 0.571471C9.40816 0.499958 8.58933 0.499977 7.60497 0.500001ZM3.22138 2.83422C3.38394 2.71612 3.62634 2.61627 4.14721 2.55984C4.68679 2.50138 5.39655 2.5 6.45 2.5H7.55C8.60345 2.5 9.31322 2.50138 9.8528 2.55984C10.3737 2.61627 10.6161 2.71612 10.7786 2.83422C10.9272 2.94216 11.0578 3.07281 11.1658 3.22138C11.2839 3.38394 11.3837 3.62634 11.4402 4.14721C11.4986 4.68679 11.5 5.39655 11.5 6.45V6.49703C10.9674 6.11617 10.386 5.84936 9.74213 5.81948C8.40536 5.75745 7.3556 6.73051 6.40509 7.84229C6.33236 7.92737 6.27406 7.98735 6.22971 8.02911L6.1919 8.00514L6.17483 7.99427C6.09523 7.94353 5.98115 7.87083 5.85596 7.80302C5.56887 7.64752 5.18012 7.4921 4.68105 7.4921C4.66697 7.4921 4.6529 7.49239 4.63884 7.49299C3.79163 7.52878 3.09922 8.1106 2.62901 8.55472C2.58751 8.59392 2.54594 8.6339 2.50435 8.6745C2.50011 8.34653 2.5 7.97569 2.5 7.55V6.45C2.5 5.39655 2.50138 4.68679 2.55984 4.14721C2.61627 3.62634 2.71612 3.38394 2.83422 3.22138C2.94216 3.07281 3.07281 2.94216 3.22138 2.83422ZM10.3703 8.14825C10.6798 8.37526 11.043 8.71839 11.4832 9.20889C11.4744 9.44992 11.4608 9.662 11.4402 9.8528C11.3837 10.3737 11.2839 10.6161 11.1658 10.7786C11.0578 10.9272 10.9272 11.0578 10.7786 11.1658C10.6161 11.2839 10.3737 11.3837 9.8528 11.4402C9.31322 11.4986 8.60345 11.5 7.55 11.5H6.45C5.39655 11.5 4.68679 11.4986 4.14721 11.4402C3.62634 11.3837 3.38394 11.2839 3.22138 11.1658C3.15484 11.1174 3.0919 11.0645 3.03298 11.0075C3.10126 10.9356 3.16806 10.8649 3.23317 10.7959L3.29772 10.7276C3.55763 10.4525 3.78639 10.2126 4.00232 10.0087C4.22016 9.80294 4.39412 9.66364 4.53524 9.57742C4.63352 9.51738 4.69022 9.49897 4.71275 9.49345C4.76387 9.49804 4.81803 9.51537 4.90343 9.56162C4.96409 9.59447 5.02355 9.63225 5.11802 9.69238L5.12363 9.69595C5.20522 9.74789 5.32771 9.82587 5.46078 9.89278C5.76529 10.0459 6.21427 10.186 6.74977 10.0158C7.21485 9.86796 7.59367 9.52979 7.92525 9.14195C8.91377 7.98571 9.38267 7.80495 9.64941 7.81733C9.7858 7.82366 10.0101 7.884 10.3703 8.14825Z" fill="currentColor"/>
</svg>`,ec=(0,l.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>`,eu=(0,l.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>`,ed=(0,l.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>`,eh=(0,l.YP)`<svg fill="none" viewBox="0 0 41 40">
  <path
    style="fill: var(--wui-color-fg-100);"
    fill-opacity=".05"
    d="M.6 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z"
  />
  <path
    fill="#949E9E"
    d="M15.6 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM23.1 20.31a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM28.1 22.81a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"
  />
</svg>`,ef=(0,l.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>`,ep=(0,l.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>`,eg=(0,l.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>`,em=(0,l.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>`,ev=(0,l.YP)`<svg
  width="13"
  height="12"
  viewBox="0 0 13 12"
  fill="none"
>
  <path
    fill="currentColor"
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M0.794373 5.99982C0.794373 5.52643 1.17812 5.14268 1.6515 5.14268H5.643V1.15109C5.643 0.677701 6.02675 0.293946 6.50012 0.293945C6.9735 0.293946 7.35725 0.677701 7.35725 1.15109V5.14268H11.3488C11.8221 5.14268 12.2059 5.52643 12.2059 5.99982C12.2059 6.47321 11.8221 6.85696 11.3488 6.85696H7.35725V10.8486C7.35725 11.3219 6.9735 11.7057 6.50012 11.7057C6.02675 11.7057 5.643 11.3219 5.643 10.8486V6.85696H1.6515C1.17812 6.85696 0.794373 6.47321 0.794373 5.99982Z"
  /></svg
>`,eb=(0,l.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>`,ey=(0,l.YP)`<svg
  fill="none"
  viewBox="0 0 21 20"
>
  <path
    fill="currentColor"
    d="M8.8071 0.292893C9.19763 0.683417 9.19763 1.31658 8.8071 1.70711L6.91421 3.6H11.8404C14.3368 3.6 16.5533 5.1975 17.3427 7.56588L17.4487 7.88377C17.6233 8.40772 17.3402 8.97404 16.8162 9.14868C16.2923 9.32333 15.726 9.04017 15.5513 8.51623L15.4453 8.19834C14.9281 6.64664 13.476 5.6 11.8404 5.6H6.91421L8.8071 7.49289C9.19763 7.88342 9.19763 8.51658 8.8071 8.90711C8.41658 9.29763 7.78341 9.29763 7.39289 8.90711L3.79289 5.30711C3.40236 4.91658 3.40236 4.28342 3.79289 3.89289L7.39289 0.292893C7.78341 -0.0976311 8.41658 -0.0976311 8.8071 0.292893ZM4.18377 10.8513C4.70771 10.6767 5.27403 10.9598 5.44868 11.4838L5.55464 11.8017C6.07188 13.3534 7.52401 14.4 9.15964 14.4L14.0858 14.4L12.1929 12.5071C11.8024 12.1166 11.8024 11.4834 12.1929 11.0929C12.5834 10.7024 13.2166 10.7024 13.6071 11.0929L17.2071 14.6929C17.5976 15.0834 17.5976 15.7166 17.2071 16.1071L13.6071 19.7071C13.2166 20.0976 12.5834 20.0976 12.1929 19.7071C11.8024 19.3166 11.8024 18.6834 12.1929 18.2929L14.0858 16.4L9.15964 16.4C6.66314 16.4 4.44674 14.8025 3.65728 12.4341L3.55131 12.1162C3.37667 11.5923 3.65983 11.026 4.18377 10.8513Z"
  /></svg
>`,ew=(0,l.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>`,ex=(0,l.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>`,e_=(0,l.YP)`<svg fill="none" viewBox="0 0 21 20">
  <path
    fill="currentColor"
    fill-rule="evenodd"
    d="M14.3808 4.34812C13.72 4.47798 12.8501 4.7587 11.5748 5.17296L9.00869 6.00646C6.90631 6.68935 5.40679 7.17779 4.38121 7.63178C3.87166 7.85734 3.5351 8.05091 3.32022 8.22035C3.11183 8.38466 3.07011 8.48486 3.05969 8.51817C2.98058 8.77103 2.98009 9.04195 3.05831 9.29509C3.06861 9.32844 3.10998 9.42878 3.31777 9.59384C3.53205 9.76404 3.86792 9.95881 4.37667 10.1862C5.29287 10.5957 6.58844 11.0341 8.35529 11.6164L10.8876 8.59854C11.2426 8.17547 11.8733 8.12028 12.2964 8.47528C12.7195 8.83029 12.7746 9.46104 12.4196 9.88412L9.88738 12.9019C10.7676 14.5408 11.4244 15.7406 11.9867 16.5718C12.299 17.0333 12.5491 17.3303 12.7539 17.5117C12.9526 17.6877 13.0586 17.711 13.0932 17.7154C13.3561 17.7484 13.6228 17.7009 13.8581 17.5791C13.8891 17.563 13.9805 17.5046 14.1061 17.2708C14.2357 17.0298 14.3679 16.6647 14.5015 16.1237C14.7705 15.0349 14.9912 13.4733 15.2986 11.2843L15.6738 8.61249C15.8603 7.28456 15.9857 6.37917 15.9989 5.7059C16.012 5.03702 15.9047 4.8056 15.8145 4.69183C15.7044 4.55297 15.5673 4.43792 15.4114 4.35365C15.2837 4.28459 15.0372 4.2191 14.3808 4.34812ZM7.99373 13.603C6.11919 12.9864 4.6304 12.4902 3.5606 12.0121C2.98683 11.7557 2.4778 11.4808 2.07383 11.1599C1.66337 10.8339 1.31312 10.4217 1.14744 9.88551C0.949667 9.24541 0.950886 8.56035 1.15094 7.92096C1.31852 7.38534 1.67024 6.97442 2.08185 6.64985C2.48697 6.33041 2.99697 6.05734 3.57166 5.80295C4.70309 5.3021 6.30179 4.78283 8.32903 4.12437L11.0196 3.25042C12.2166 2.86159 13.2017 2.54158 13.9951 2.38566C14.8065 2.22618 15.6202 2.19289 16.3627 2.59437C16.7568 2.80747 17.1035 3.09839 17.3818 3.4495C17.9062 4.111 18.0147 4.91815 17.9985 5.74496C17.9827 6.55332 17.8386 7.57903 17.6636 8.82534L17.2701 11.6268C16.9737 13.7376 16.7399 15.4022 16.4432 16.6034C16.2924 17.2135 16.1121 17.7632 15.8678 18.2176C15.6197 18.6794 15.2761 19.0971 14.7777 19.3551C14.1827 19.6632 13.5083 19.7833 12.8436 19.6997C12.2867 19.6297 11.82 19.3563 11.4277 19.0087C11.0415 18.6666 10.6824 18.213 10.3302 17.6925C9.67361 16.722 8.92648 15.342 7.99373 13.603Z"
    clip-rule="evenodd"
  />
  <svg
    xmlns="http://www.w3.org/2000/svg"
    width="21"
    height="20"
    viewBox="0 0 21 20"
    fill="none"
  ></svg></svg
>`,eC=(0,l.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>`,eA=(0,l.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>`,ek=(0,l.YP)`<svg
  width="14"
  height="14"
  viewBox="0 0 14 14"
  fill="none"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    fill-rule="evenodd"
    clip-rule="evenodd"
    d="M13.7306 3.24213C14.0725 3.58384 14.0725 4.13786 13.7306 4.47957L10.7418 7.46737C10.4 7.80908 9.84581 7.80908 9.50399 7.46737C9.16216 7.12567 9.16216 6.57165 9.50399 6.22994L10.9986 4.73585H5.34082C4.85741 4.73585 4.46553 4.3441 4.46553 3.86085C4.46553 3.3776 4.85741 2.98585 5.34082 2.98585L10.9986 2.98585L9.50399 1.49177C9.16216 1.15006 9.16216 0.596037 9.50399 0.254328C9.84581 -0.0873803 10.4 -0.0873803 10.7418 0.254328L13.7306 3.24213ZM9.52515 10.1352C9.52515 10.6185 9.13327 11.0102 8.64986 11.0102L2.9921 11.0102L4.48669 12.5043C4.82852 12.846 4.82852 13.4001 4.48669 13.7418C4.14487 14.0835 3.59066 14.0835 3.24884 13.7418L0.26003 10.754C0.0958806 10.5899 0.0036621 10.3673 0.00366211 10.1352C0.00366212 9.90318 0.0958806 9.68062 0.26003 9.51652L3.24884 6.52872C3.59066 6.18701 4.14487 6.18701 4.48669 6.52872C4.82851 6.87043 4.82851 7.42445 4.48669 7.76616L2.9921 9.26024L8.64986 9.26024C9.13327 9.26024 9.52515 9.65199 9.52515 10.1352Z"
    fill="currentColor"
  />
</svg>

`,eE=(0,l.YP)`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
  <path 
    fill="currentColor"
    fill-rule="evenodd" 
    clip-rule="evenodd" 
    d="M8.3071 0.292893C8.69763 0.683417 8.69763 1.31658 8.3071 1.70711L6.41421 3.6H11.3404C13.8368 3.6 16.0533 5.1975 16.8427 7.56588L16.9487 7.88377C17.1233 8.40772 16.8402 8.97404 16.3162 9.14868C15.7923 9.32333 15.226 9.04017 15.0513 8.51623L14.9453 8.19834C14.4281 6.64664 12.976 5.6 11.3404 5.6H6.41421L8.3071 7.49289C8.69763 7.88342 8.69763 8.51658 8.3071 8.90711C7.91658 9.29763 7.28341 9.29763 6.89289 8.90711L3.29289 5.30711C2.90236 4.91658 2.90236 4.28342 3.29289 3.89289L6.89289 0.292893C7.28341 -0.0976311 7.91658 -0.0976311 8.3071 0.292893ZM3.68377 10.8513C4.20771 10.6767 4.77403 10.9598 4.94868 11.4838L5.05464 11.8017C5.57188 13.3534 7.024 14.4 8.65964 14.4L13.5858 14.4L11.6929 12.5071C11.3024 12.1166 11.3024 11.4834 11.6929 11.0929C12.0834 10.7024 12.7166 10.7024 13.1071 11.0929L16.7071 14.6929C17.0976 15.0834 17.0976 15.7166 16.7071 16.1071L13.1071 19.7071C12.7166 20.0976 12.0834 20.0976 11.6929 19.7071C11.3024 19.3166 11.3024 18.6834 11.6929 18.2929L13.5858 16.4L8.65964 16.4C6.16314 16.4 3.94674 14.8025 3.15728 12.4341L3.05131 12.1162C2.87667 11.5923 3.15983 11.026 3.68377 10.8513Z" 
  />
</svg>`,eS=(0,l.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>`,eT=(0,l.YP)`<svg width="32" height="32" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
  <g clip-path="url(#a)">
    <path fill="url(#b)" d="M0 0h32v32H0z"/>
    <path fill-rule="evenodd" clip-rule="evenodd" d="M7.034 15.252c4.975-2.167 8.293-3.596 9.953-4.287 4.74-1.971 5.725-2.314 6.366-2.325.142-.002.457.033.662.198.172.14.22.33.243.463.022.132.05.435.028.671-.257 2.7-1.368 9.248-1.933 12.27-.24 1.28-.71 1.708-1.167 1.75-.99.091-1.743-.655-2.703-1.284-1.502-.985-2.351-1.598-3.81-2.558-1.684-1.11-.592-1.721.368-2.718.252-.261 4.619-4.233 4.703-4.594.01-.045.02-.213-.08-.301-.1-.09-.246-.059-.353-.035-.15.034-2.55 1.62-7.198 4.758-.682.468-1.298.696-1.851.684-.61-.013-1.782-.344-2.653-.628-1.069-.347-1.918-.53-1.845-1.12.039-.308.462-.623 1.27-.944Z" fill="#fff"/>
  </g>
  <path d="M.5 16C.5 7.44 7.44.5 16 .5 24.56.5 31.5 7.44 31.5 16c0 8.56-6.94 15.5-15.5 15.5C7.44 31.5.5 24.56.5 16Z" stroke="#141414" stroke-opacity=".05"/>
  <defs>
    <linearGradient id="b" x1="1600" y1="0" x2="1600" y2="3176.27" gradientUnits="userSpaceOnUse">
      <stop stop-color="#2AABEE"/>
      <stop offset="1" stop-color="#229ED9"/>
    </linearGradient>
    <clipPath id="a">
      <path d="M0 16C0 7.163 7.163 0 16 0s16 7.163 16 16-7.163 16-16 16S0 24.837 0 16Z" fill="#fff"/>
    </clipPath>
  </defs>
</svg>`,eI=(0,l.YP)`<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg">
  <path d="M7 3.71875C6.0335 3.71875 5.25 2.93525 5.25 1.96875C5.25 1.00225 6.0335 0.21875 7 0.21875C7.9665 0.21875 8.75 1.00225 8.75 1.96875C8.75 2.93525 7.9665 3.71875 7 3.71875Z" fill="#949E9E"/>
  <path d="M7 8.96875C6.0335 8.96875 5.25 8.18525 5.25 7.21875C5.25 6.25225 6.0335 5.46875 7 5.46875C7.9665 5.46875 8.75 6.25225 8.75 7.21875C8.75 8.18525 7.9665 8.96875 7 8.96875Z" fill="#949E9E"/>
  <path d="M5.25 12.4688C5.25 13.4352 6.0335 14.2187 7 14.2187C7.9665 14.2187 8.75 13.4352 8.75 12.4688C8.75 11.5023 7.9665 10.7188 7 10.7188C6.0335 10.7188 5.25 11.5023 5.25 12.4688Z" fill="#949E9E"/>
</svg>`,eP=(0,l.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>`,eO=(0,l.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>`,eR=(0,l.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>`,eM=(0,l.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>`,eN=(0,l.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>
`,ej=(0,l.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>`,eD=(0,l.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>`,eB=(0,l.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>`,eL=(0,l.YP)`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
</svg>`,e$=(0,l.YP)`<svg
 xmlns="http://www.w3.org/2000/svg"
 width="28"
 height="28"
 viewBox="0 0 28 28"
 fill="none">
  <path
    fill="#949E9E"
    fill-rule="evenodd"
    d="M7.974 2.975h12.052c1.248 0 2.296 0 3.143.092.89.096 1.723.307 2.461.844a4.9 4.9 0 0 1 1.084 1.084c.537.738.748 1.57.844 2.461.092.847.092 1.895.092 3.143v6.802c0 1.248 0 2.296-.092 3.143-.096.89-.307 1.723-.844 2.461a4.9 4.9 0 0 1-1.084 1.084c-.738.537-1.57.748-2.461.844-.847.092-1.895.092-3.143.092H7.974c-1.247 0-2.296 0-3.143-.092-.89-.096-1.723-.307-2.461-.844a4.901 4.901 0 0 1-1.084-1.084c-.537-.738-.748-1.571-.844-2.461C.35 19.697.35 18.649.35 17.4v-6.802c0-1.248 0-2.296.092-3.143.096-.89.307-1.723.844-2.461A4.9 4.9 0 0 1 2.37 3.91c.738-.537 1.571-.748 2.461-.844.847-.092 1.895-.092 3.143-.092ZM5.133 5.85c-.652.071-.936.194-1.117.326a2.1 2.1 0 0 0-.465.465c-.132.181-.255.465-.325 1.117-.074.678-.076 1.573-.076 2.917v6.65c0 1.344.002 2.239.076 2.917.07.652.193.936.325 1.117a2.1 2.1 0 0 0 .465.465c.181.132.465.255 1.117.326.678.073 1.574.075 2.917.075h11.9c1.344 0 2.239-.002 2.917-.075.652-.071.936-.194 1.117-.326.179-.13.335-.286.465-.465.132-.181.255-.465.326-1.117.073-.678.075-1.573.075-2.917v-6.65c0-1.344-.002-2.239-.075-2.917-.071-.652-.194-.936-.326-1.117a2.1 2.1 0 0 0-.465-.465c-.181-.132-.465-.255-1.117-.326-.678-.073-1.573-.075-2.917-.075H8.05c-1.343 0-2.239.002-2.917.075Zm.467 7.275a3.15 3.15 0 1 1 6.3 0 3.15 3.15 0 0 1-6.3 0Zm8.75-1.75a1.4 1.4 0 0 1 1.4-1.4h3.5a1.4 1.4 0 0 1 0 2.8h-3.5a1.4 1.4 0 0 1-1.4-1.4Zm0 5.25a1.4 1.4 0 0 1 1.4-1.4H21a1.4 1.4 0 1 1 0 2.8h-5.25a1.4 1.4 0 0 1-1.4-1.4Z"
    clip-rule="evenodd"/>
</svg>`,eU=(0,l.YP)`<svg fill="none" viewBox="0 0 41 40">
  <g clip-path="url(#a)">
    <path fill="#000" d="M.8 0h40v40H.8z" />
    <path
      fill="#fff"
      d="m22.63 18.46 7.14-8.3h-1.69l-6.2 7.2-4.96-7.2H11.2l7.5 10.9-7.5 8.71h1.7l6.55-7.61 5.23 7.61h5.72l-7.77-11.31Zm-9.13-7.03h2.6l11.98 17.13h-2.6L13.5 11.43Z"
    />
  </g>
  <defs>
    <clipPath id="a"><path fill="#fff" d="M.8 20a20 20 0 1 1 40 0 20 20 0 0 1-40 0Z" /></clipPath>
  </defs>
</svg>`;var ez=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eF={add:A,allWallets:k,arrowBottomCircle:E,appStore:S,apple:T,arrowBottom:I,arrowLeft:P,arrowRight:O,arrowTop:R,bank:M,browser:N,card:j,checkmark:B,checkmarkBold:D,chevronBottom:L,chevronLeft:$,chevronRight:U,chevronTop:z,chromeStore:F,clock:q,close:H,compass:V,coinPlaceholder:W,copy:Z,cursor:G,cursorTransparent:K,desktop:Y,disconnect:Q,discord:J,etherscan:X,extension:ee,externalLink:et,facebook:er,farcaster:en,filters:ei,github:eo,google:ea,helpCircle:es,image:el,id:e$,infoCircle:ec,lightbulb:eL,mail:eu,mobile:ed,more:eh,networkPlaceholder:ef,nftPlaceholder:ep,off:eg,playStore:em,plus:ev,qrCode:eb,recycleHorizontal:ey,refresh:ew,search:ex,send:e_,swapHorizontal:eC,swapHorizontalMedium:ek,swapHorizontalBold:eA,swapHorizontalRoundedBold:eE,swapVertical:eS,telegram:eT,threeDots:eI,twitch:eP,twitter:eU,twitterIcon:eO,verify:eR,verifyFilled:eM,wallet:ej,walletConnect:eD,walletPlaceholder:eN,warningCircle:eB,x:eU},eq=class extends l.oi{constructor(){super(...arguments),this.size="md",this.name="copy",this.color="fg-300"}render(){return this.style.cssText=`
      --local-color: var(--wui-color-${this.color});
      --local-width: var(--wui-icon-size-${this.size});
    `,(0,l.dy)`${eF[this.name]}`}};eq.styles=[m,b,C],ez([(0,_.Cb)()],eq.prototype,"size",void 0),ez([(0,_.Cb)()],eq.prototype,"name",void 0),ez([(0,_.Cb)()],eq.prototype,"color",void 0),eq=ez([y("wui-icon")],eq);var eH=(0,l.iv)`
  :host {
    display: block;
    width: var(--local-width);
    height: var(--local-height);
  }

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: inherit;
  }
`,eW=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eV=class extends l.oi{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=`
      --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
      --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
      `,(0,l.dy)`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};eV.styles=[m,b,eH],eW([(0,_.Cb)()],eV.prototype,"src",void 0),eW([(0,_.Cb)()],eV.prototype,"alt",void 0),eW([(0,_.Cb)()],eV.prototype,"size",void 0),eV=eW([y("wui-image")],eV);var eZ=(0,l.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;
  }

  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;
    }
  }
`;let eG=class extends l.oi{render(){return(0,l.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>
    `}};eG.styles=[m,eZ],eG=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([y("wui-loading-hexagon")],eG);var eK=(0,l.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;
  }

  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;
    }
  }
`,eY=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eQ=class extends l.oi{constructor(){super(...arguments),this.color="accent-100",this.size="lg"}render(){return this.style.cssText=`--local-color: ${"inherit"===this.color?"inherit":`var(--wui-color-${this.color})`}`,this.dataset.size=this.size,(0,l.dy)`<svg viewBox="25 25 50 50">
      <circle r="20" cy="50" cx="50"></circle>
    </svg>`}};eQ.styles=[m,eK],eY([(0,_.Cb)()],eQ.prototype,"color",void 0),eY([(0,_.Cb)()],eQ.prototype,"size",void 0),eQ=eY([y("wui-loading-spinner")],eQ);var eJ=(0,l.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);
  }

  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;
    }
  }
`,eX=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e0=class extends l.oi{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){let e=this.radius>50?50:this.radius,t=36-e;return(0,l.dy)`
      <svg viewBox="0 0 110 110" width="110" height="110">
        <rect
          x="2"
          y="2"
          width="106"
          height="106"
          rx=${e}
          stroke-dasharray="${116+t} ${245+t}"
          stroke-dashoffset=${360+1.75*t}
        />
      </svg>
    `}};e0.styles=[m,eJ],eX([(0,_.Cb)({type:Number})],e0.prototype,"radius",void 0),e0=eX([y("wui-loading-thumbnail")],e0);var e1=(0,l.iv)`
  :host {
    display: block;
    box-shadow: inset 0 0 0 1px var(--wui-color-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;
  }

  :host([variant='light']) {
    background: linear-gradient(
      120deg,
      var(--wui-color-bg-150) 5%,
      var(--wui-color-bg-150) 48%,
      var(--wui-color-bg-200) 55%,
      var(--wui-color-bg-200) 60%,
      var(--wui-color-bg-200) calc(60% + 10px),
      var(--wui-color-bg-150) calc(60% + 12px),
      var(--wui-color-bg-150) 100%
    );
    background-size: 250%;
  }

  @keyframes shimmer {
    from {
      background-position: -250% 0;
    }
    to {
      background-position: 250% 0;
    }
  }
`,e2=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e3=class extends l.oi{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`
      width: ${this.width};
      height: ${this.height};
      border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);
    `,(0,l.dy)`<slot></slot>`}};e3.styles=[e1],e2([(0,_.Cb)()],e3.prototype,"width",void 0),e2([(0,_.Cb)()],e3.prototype,"height",void 0),e2([(0,_.Cb)()],e3.prototype,"borderRadius",void 0),e2([(0,_.Cb)()],e3.prototype,"variant",void 0),e3=e2([y("wui-shimmer")],e3);var e5=r(33692),e6=r(50875);let e4=(0,e6.XM)(class extends e6.Xe{constructor(e){if(super(e),e.type!==e6.pX.ATTRIBUTE||"class"!==e.name||e.strings?.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]){if(void 0===this.it){for(let r in this.it=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[r]&&!this.st?.has(r)&&this.it.add(r);return this.render(t)}let r=e.element.classList;for(let e of this.it)e in t||(r.remove(e),this.it.delete(e));for(let e in t){let n=!!t[e];n===this.it.has(e)||this.st?.has(e)||(n?(r.add(e),this.it.add(e)):(r.remove(e),this.it.delete(e)))}return e5.Jb}});var e8=(0,l.iv)`
  :host {
    display: inline-flex !important;
  }

  slot {
    width: 100%;
    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-line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .wui-line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .wui-font-medium-400 {
    font-size: var(--wui-font-size-medium);
    font-weight: var(--wui-font-weight-light);
    letter-spacing: var(--wui-letter-spacing-medium);
  }

  .wui-font-medium-600 {
    font-size: var(--wui-font-size-medium);
    letter-spacing: var(--wui-letter-spacing-medium);
  }

  .wui-font-title-600 {
    font-size: var(--wui-font-size-title);
    letter-spacing: var(--wui-letter-spacing-title);
  }

  .wui-font-title-6-600 {
    font-size: var(--wui-font-size-title-6);
    letter-spacing: var(--wui-letter-spacing-title-6);
  }

  .wui-font-mini-700 {
    font-size: var(--wui-font-size-mini);
    letter-spacing: var(--wui-letter-spacing-mini);
    text-transform: uppercase;
  }

  .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-2xl-500,
  .wui-font-2xl-600,
  .wui-font-2xl-700 {
    font-size: var(--wui-font-size-2xl);
    letter-spacing: var(--wui-letter-spacing-2xl);
  }

  .wui-font-paragraph-400,
  .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-400,
  .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-tiny-400,
  .wui-font-small-400,
  .wui-font-medium-400,
  .wui-font-paragraph-400 {
    font-weight: var(--wui-font-weight-light);
  }

  .wui-font-large-700,
  .wui-font-paragraph-700,
  .wui-font-micro-700,
  .wui-font-mini-700 {
    font-weight: var(--wui-font-weight-bold);
  }

  .wui-font-medium-600,
  .wui-font-medium-title-600,
  .wui-font-title-6-600,
  .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);
  }

  :host([disabled]) {
    opacity: 0.4;
  }
`,e9=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e7=class extends l.oi{constructor(){super(...arguments),this.variant="paragraph-500",this.color="fg-300",this.align="left",this.lineClamp=void 0}render(){let e={[`wui-font-${this.variant}`]:!0,[`wui-color-${this.color}`]:!0,[`wui-line-clamp-${this.lineClamp}`]:!!this.lineClamp};return this.style.cssText=`
      --local-align: ${this.align};
      --local-color: var(--wui-color-${this.color});
    `,(0,l.dy)`<slot class=${e4(e)}></slot>`}};e7.styles=[m,e8],e9([(0,_.Cb)()],e7.prototype,"variant",void 0),e9([(0,_.Cb)()],e7.prototype,"color",void 0),e9([(0,_.Cb)()],e7.prototype,"align",void 0),e9([(0,_.Cb)()],e7.prototype,"lineClamp",void 0),e7=e9([y("wui-text")],e7);let te=(0,l.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> `,tt=(0,l.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> `,tr=(0,l.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>`,tn=(0,l.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> `,ti=(0,l.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> `,to=(0,l.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>`,ta=(0,l.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>`,ts=(0,l.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> `,tl=(0,l.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>`,tc=(0,l.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> `,tu=(0,l.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>`,td=(0,l.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> `,th=(0,l.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> `,tf=(0,l.YP)`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none">
  <g clip-path="url(#clip0_187_29)">
    <path d="M1.18187e-05 15.8055C1.18187e-05 9.8015 -5.19442e-07 6.91338 1.69991e-08 0C4.5 3.72236e-05 9.62249 0 16.5 0L23.5 4.31399e-05C29.9349 4.31399e-05 35.5 0.000206332 40 3.73468e-05C40 2.77754 40 9.36708 40 15.8055V22.8364C40 29.2647 40 33.7962 40 40C31.5 40 29.8337 40 23.4 40H16.6C10.5092 40 6.50004 40 4.04289e-05 40C3.05176e-05 32.2453 1.18187e-05 29.6382 1.18187e-05 22.8364V15.8055Z" fill="#0052FF"/>
    <path d="M20.0236 26.5C16.4342 26.5 13.5236 23.5931 13.5236 20C13.5236 16.4069 16.4342 13.5 20.0236 13.5C23.2411 13.5 25.9134 15.8472 26.4261 18.9167H32.9731C32.4206 12.2433 26.8342 7 20.02 7C12.8411 7 7.02002 12.8211 7.02002 20C7.02002 27.1789 12.8411 33 20.02 33C26.8342 33 32.4206 27.7567 32.9731 21.0833H26.4225C25.9061 24.1528 23.2411 26.5 20.0236 26.5Z" fill="white"/>
  </g>
  <defs>
    <clipPath id="clip0_187_29">
      <rect width="40" height="40" fill="white"/>
    </clipPath>
  </defs>
</svg>`,tp=(0,l.YP)`
  <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
    <g clip-path="url(#a)">
      <path
        d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
        fill="#7D00FF"
      />
      <path
        d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
        stroke="#fff"
        stroke-opacity=".05"
      />
      <path
        d="M28.306 15.381a3.69 3.69 0 1 0 0-7.381 3.69 3.69 0 0 0 0 7.381ZM16.987 32a8.991 8.991 0 1 1 .016-17.983A8.991 8.991 0 0 1 16.988 32Z"
        fill="#fff"
      />
    </g>
    <defs>
      <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    </defs>
  </svg>
`,tg=(0,l.YP)`
  <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
    <g clip-path="url(#a)">
      <path
        d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
        fill="#635BFF"
      />
      <path
        d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
        stroke="#fff"
        stroke-opacity=".05"
      />
      <path
        fill-rule="evenodd"
        clip-rule="evenodd"
        d="M18.299 15.147c0-1.028.844-1.424 2.242-1.424 2.004 0 4.536.607 6.54 1.688V9.213C24.892 8.343 22.73 8 20.541 8c-5.354 0-8.915 2.796-8.915 7.464 0 7.279 10.022 6.118 10.022 9.257 0 1.213-1.055 1.609-2.531 1.609-2.19 0-4.985-.897-7.2-2.11v6.277a18.283 18.283 0 0 0 7.2 1.503c5.485 0 9.257-2.716 9.257-7.437-.027-7.86-10.075-6.462-10.075-9.416Z"
        fill="#fff"
      />
    </g>
    <defs>
      <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    </defs>
  </svg>
`,tm=(0,l.YP)`
  <svg width="40" height="40" fill="none" xmlns="http://www.w3.org/2000/svg">
    <g clip-path="url(#a)">
      <path
        d="M0 16.6c0-6.168 0-9.251 1.314-11.555a10 10 0 0 1 3.731-3.731C7.35 0 10.432 0 16.6 0h6.8c6.168 0 9.252 0 11.555 1.314a10 10 0 0 1 3.731 3.731C40 7.35 40 10.432 40 16.6v6.8c0 6.168 0 9.252-1.314 11.555a10 10 0 0 1-3.731 3.731C32.652 40 29.568 40 23.4 40h-6.8c-6.168 0-9.251 0-11.555-1.314a10 10 0 0 1-3.731-3.731C0 32.652 0 29.568 0 23.4v-6.8Z"
        fill="#fff"
      />
      <path
        d="M.5 16.6c0-3.093 0-5.38.162-7.182.161-1.795.48-3.061 1.086-4.125a9.5 9.5 0 0 1 3.545-3.545C6.357 1.141 7.623.823 9.418.662 11.221.5 13.508.5 16.6.5h6.8c3.093 0 5.38 0 7.182.162 1.795.161 3.062.48 4.125 1.086a9.5 9.5 0 0 1 3.545 3.545c.607 1.064.925 2.33 1.086 4.125.161 1.803.162 4.09.162 7.182v6.8c0 3.093 0 5.38-.162 7.182-.161 1.795-.48 3.062-1.086 4.125a9.5 9.5 0 0 1-3.545 3.545c-1.063.607-2.33.925-4.125 1.086-1.803.161-4.09.162-7.182.162h-6.8c-3.093 0-5.38 0-7.182-.162-1.795-.161-3.061-.48-4.125-1.086a9.5 9.5 0 0 1-3.545-3.545c-.607-1.063-.925-2.33-1.086-4.125C.5 28.779.5 26.492.5 23.4v-6.8Z"
        stroke="#fff"
        stroke-opacity=".05"
      />
      <path
        d="M18.606 12.642a.781.781 0 0 0-.771.66l-1.281 8.125a.78.78 0 0 1 .77-.66h3.755a7.668 7.668 0 0 0 7.57-6.49 6.26 6.26 0 0 0 .075-.843c-.96-.504-2.089-.792-3.325-.792h-6.793Z"
        fill="#001C64"
      />
      <path
        d="M28.724 13.434c-.006.282-.03.564-.075.843a7.668 7.668 0 0 1-7.57 6.491h-3.754a.78.78 0 0 0-.771.66l-1.916 12.15a.634.634 0 0 0 .626.734h4.075a.781.781 0 0 0 .77-.66l1.074-6.807a.781.781 0 0 1 .772-.66h2.4a7.668 7.668 0 0 0 7.57-6.491c.415-2.651-.92-5.064-3.201-6.26Z"
        fill="#0070E0"
      />
      <path
        d="M13.977 7.226a.78.78 0 0 0-.771.658l-3.198 20.277a.634.634 0 0 0 .626.733h4.742l1.178-7.467 1.281-8.125a.782.782 0 0 1 .771-.66H25.4c1.237 0 2.364.289 3.325.792.065-3.4-2.74-6.208-6.599-6.208h-8.148Z"
        fill="#003087"
      />
    </g>
    <defs>
      <clipPath id="a"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
    </defs>
  </svg>
`,tv=(0,l.YP)`<svg width="60" height="60" viewBox="0 0 60 60" fill="none">
<g clip-path="url(#clip0_13859_31161)">
  <path d="M0 24.8995C0 15.6481 0 11.0223 1.97053 7.56763C3.3015 5.2342 5.23468 3.30101 7.56812 1.97004C11.0228 -0.000488281 15.6485 -0.000488281 24.9 -0.000488281H35.1C44.3514 -0.000488281 48.9772 -0.000488281 52.4319 1.97004C54.7653 3.30101 56.6985 5.2342 58.0295 7.56763C60 11.0223 60 15.6481 60 24.8995V35.0995C60 44.351 60 48.9767 58.0295 52.4314C56.6985 54.7648 54.7653 56.698 52.4319 58.029C48.9772 59.9995 44.3514 59.9995 35.1 59.9995H24.9C15.6485 59.9995 11.0228 59.9995 7.56812 58.029C5.23468 56.698 3.3015 54.7648 1.97053 52.4314C0 48.9767 0 44.351 0 35.0995V24.8995Z" fill="#EB8B47"/>
  <path d="M0.5 24.8995C0.5 20.2647 0.50047 16.8216 0.744315 14.1045C0.987552 11.3941 1.46987 9.45455 2.40484 7.81536C3.69145 5.55971 5.56019 3.69096 7.81585 2.40435C9.45504 1.46938 11.3946 0.987064 14.105 0.743826C16.8221 0.499981 20.2652 0.499512 24.9 0.499512H35.1C39.7348 0.499512 43.1779 0.499981 45.895 0.743826C48.6054 0.987064 50.545 1.46938 52.1841 2.40435C54.4398 3.69096 56.3086 5.55971 57.5952 7.81536C58.5301 9.45455 59.0124 11.3941 59.2557 14.1045C59.4995 16.8216 59.5 20.2647 59.5 24.8995V35.0995C59.5 39.7343 59.4995 43.1774 59.2557 45.8945C59.0124 48.6049 58.5301 50.5445 57.5952 52.1837C56.3086 54.4393 54.4398 56.3081 52.1841 57.5947C50.545 58.5296 48.6054 59.012 45.895 59.2552C43.1779 59.499 39.7348 59.4995 35.1 59.4995H24.9C20.2652 59.4995 16.8221 59.499 14.105 59.2552C11.3946 59.012 9.45504 58.5296 7.81585 57.5947C5.56019 56.3081 3.69145 54.4393 2.40484 52.1837C1.46987 50.5445 0.987552 48.6049 0.744315 45.8945C0.50047 43.1774 0.5 39.7343 0.5 35.0995V24.8995Z" stroke="#141414" stroke-opacity="0.1"/>
  <path d="M13 26.0335C13 21.7838 13 19.659 14.0822 18.1694C14.4318 17.6883 14.8548 17.2653 15.3359 16.9157C16.8255 15.8335 18.9503 15.8335 23.2 15.8335H36.8C41.0497 15.8335 43.1745 15.8335 44.6641 16.9157C45.1452 17.2653 45.5682 17.6883 45.9178 18.1694C47 19.659 47 21.7838 47 26.0335V33.9668C47 38.2165 47 40.3414 45.9178 41.831C45.5682 42.312 45.1452 42.7351 44.6641 43.0846C43.1745 44.1668 41.0497 44.1668 36.8 44.1668H23.2C18.9503 44.1668 16.8255 44.1668 15.3359 43.0846C14.8548 42.7351 14.4318 42.312 14.0822 41.831C13 40.3414 13 38.2165 13 33.9668V26.0335Z" fill="#FF974C" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
  <path d="M39.5 36.667H36.6666" stroke="white" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
  <path d="M45.2 23.0645H14.8C14.0501 23.0645 13.6751 23.0645 13.4122 23.2554C13.3273 23.3171 13.2527 23.3918 13.191 23.4767C13 23.7395 13 24.1145 13 24.8645V27.2645C13 28.0144 13 28.3894 13.191 28.6522C13.2527 28.7371 13.3273 28.8118 13.4122 28.8735C13.6751 29.0645 14.0501 29.0645 14.8 29.0645H45.2C45.9499 29.0645 46.3249 29.0645 46.5878 28.8735C46.6727 28.8118 46.7473 28.7371 46.809 28.6522C47 28.3894 47 28.0144 47 27.2645V24.8645C47 24.1145 47 23.7395 46.809 23.4767C46.7473 23.3918 46.6727 23.3171 46.5878 23.2554C46.3249 23.0645 45.9499 23.0645 45.2 23.0645Z" fill="white" fill-opacity="0.4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</g>
<defs>
  <clipPath id="clip0_13859_31161">
    <rect width="60" height="60" fill="white"/>
  </clipPath>
</defs>
</svg>`,tb=(0,l.YP)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  <rect width="64" height="64" rx="30" fill="#1DC956"/>
  <rect x="0.5" y="0.5" width="63" height="63" rx="29.5" stroke="#141414" stroke-opacity="0.1"/>
  <path d="M32.4053 19.8031C35.3901 19.8031 38.0431 20.8349 40.1619 22.8247L45.9656 17.0211C42.4465 13.7416 37.8773 11.7333 32.4053 11.7333C24.4829 11.7333 17.6475 16.2841 14.3127 22.9168L21.056 28.1493C22.6589 23.359 27.136 19.8031 32.4053 19.8031Z" fill="#1DC956" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  <path d="M32.4053 52.2667C37.8773 52.2667 42.465 50.4611 45.8182 47.3658L39.2407 42.2623C37.4351 43.4783 35.1321 44.2153 32.4053 44.2153C27.136 44.2153 22.6589 40.6594 21.056 35.8691L14.3127 41.1016C17.6475 47.7159 24.4829 52.2667 32.4053 52.2667Z" fill="#2BEE6C"/>
  <path d="M21.056 35.8507L19.5636 36.993L14.3127 41.0832M39.2407 42.2623L45.8182 47.3658C42.465 50.4611 37.8773 52.2667 32.4053 52.2667C24.4829 52.2667 17.6475 47.7159 14.3127 41.1016L21.056 35.8691C22.6589 40.6594 27.136 44.2153 32.4053 44.2153C35.1321 44.2153 37.4351 43.4783 39.2407 42.2623Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  <path d="M51.8613 32.4606C51.8613 31.0235 51.7323 29.6417 51.4928 28.3151H32.4053V36.1638H43.3124C42.8334 38.688 41.3963 40.8252 39.2407 42.2623L45.8181 47.3658C49.6503 43.8283 51.8613 38.6327 51.8613 32.4606Z" fill="#1FAD7E" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  <path d="M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" fill="#86F999"/>
  <path d="M21.056 35.8691L14.3127 41.1016M21.056 35.8507C20.6507 34.6347 20.4111 33.345 20.4111 32C20.4111 30.655 20.6507 29.3653 21.056 28.1493L14.3127 22.9169C12.9309 25.6437 12.1387 28.7205 12.1387 32C12.1387 35.2795 12.9309 38.3564 14.3127 41.0831L19.5636 36.993L21.056 35.8507Z" stroke="white" stroke-width="2" stroke-linejoin="round"/>
</svg>
`,ty=(0,l.YP)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  <g clip-path="url(#clip0_241_31635)">
    <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58317 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58317 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9268C60.4784 58.4158 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4158 2.1019 55.9268C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#EB8B47"/>
    <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/>
    <path d="M28.1042 49.2329L13.1024 51.2077L15.0772 36.2059L37.1015 14.1815C39.2441 12.039 40.3154 10.9677 41.5718 10.624C42.4205 10.3918 43.3159 10.3918 44.1645 10.624C45.421 10.9677 46.4922 12.039 48.6348 14.1815L50.1286 15.6753C52.2711 17.8179 53.3424 18.8891 53.6861 20.1456C53.9183 20.9942 53.9183 21.8896 53.6861 22.7383C53.3424 23.9947 52.2711 25.066 50.1286 27.2086L28.1042 49.2329Z" fill="#FF974C" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M38.5962 20.5376L22.4199 36.7139" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M43.7727 25.714L27.5964 41.8903" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M22.3703 36.7635C19.3258 39.808 16.0198 36.6395 16.2616 35.0324" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M27.5466 41.9399C24.5034 44.9831 28.155 48.7098 29.2738 48.0475" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M27.5468 41.9398C23.428 46.0586 18.2516 40.8822 22.3704 36.7634" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M15.8191 50.5214C15.4711 49.5823 14.728 48.8392 13.7889 48.4912" stroke="#E4E7E7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
    <path d="M49.2862 29.5805L34.7275 15.0219" stroke="#E4E7E7" stroke-width="2" stroke-linejoin="round"/>
  </g>
  <defs>
    <clipPath id="clip0_241_31635">
      <rect width="64" height="64" fill="white"/>
    </clipPath>
  </defs>
</svg>
`,tw=(0,l.YP)`<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
  <g clip-path="url(#clip0_241_31636)">
    <path d="M0 26.5595C0 16.6913 0 11.7572 2.1019 8.07217C3.5216 5.58318 5.58366 3.52111 8.07266 2.10141C11.7577 -0.000488281 16.6918 -0.000488281 26.56 -0.000488281H37.44C47.3082 -0.000488281 52.2423 -0.000488281 55.9273 2.10141C58.4163 3.52111 60.4784 5.58318 61.8981 8.07217C64 11.7572 64 16.6913 64 26.5595V37.4395C64 47.3077 64 52.2418 61.8981 55.9269C60.4784 58.4159 58.4163 60.4779 55.9273 61.8976C52.2423 63.9995 47.3082 63.9995 37.44 63.9995H26.56C16.6918 63.9995 11.7577 63.9995 8.07266 61.8976C5.58366 60.4779 3.5216 58.4159 2.1019 55.9269C0 52.2418 0 47.3077 0 37.4395V26.5595Z" fill="#794CFF"/>
    <path d="M0.5 26.5595C0.5 21.6163 0.50047 17.942 0.760736 15.0418C1.02039 12.1485 1.53555 10.0742 2.53621 8.3199C3.91155 5.90869 5.90917 3.91106 8.32039 2.53572C10.0747 1.53506 12.1489 1.01991 15.0423 0.760247C17.9425 0.499981 21.6168 0.499512 26.56 0.499512H37.44C42.3832 0.499512 46.0575 0.499981 48.9577 0.760247C51.8511 1.01991 53.9253 1.53506 55.6796 2.53572C58.0908 3.91106 60.0885 5.90869 61.4638 8.3199C62.4645 10.0742 62.9796 12.1485 63.2393 15.0418C63.4995 17.942 63.5 21.6163 63.5 26.5595V37.4395C63.5 42.3827 63.4995 46.057 63.2393 48.9572C62.9796 51.8506 62.4645 53.9248 61.4638 55.6791C60.0885 58.0903 58.0908 60.088 55.6796 61.4633C53.9253 62.464 51.8511 62.9791 48.9577 63.2388C46.0575 63.499 42.3832 63.4995 37.44 63.4995H26.56C21.6168 63.4995 17.9425 63.499 15.0423 63.2388C12.1489 62.9791 10.0747 62.464 8.32039 61.4633C5.90917 60.088 3.91155 58.0903 2.53621 55.6791C1.53555 53.9248 1.02039 51.8506 0.760736 48.9572C0.50047 46.057 0.5 42.3827 0.5 37.4395V26.5595Z" stroke="#141414" stroke-opacity="0.1"/>
    <path d="M40 39.4595C44.7824 36.693 48 31.5222 48 25.6C48 16.7634 40.8366 9.59998 32 9.59998C23.1634 9.59998 16 16.7634 16 25.6C16 31.5222 19.2176 36.693 24 39.4595V45.8144H40V39.4595Z" fill="#906EF7"/>
    <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#906EF7"/>
    <path d="M24 45.8144V39.4595C19.2176 36.693 16 31.5222 16 25.6C16 16.7634 23.1634 9.59998 32 9.59998C40.8366 9.59998 48 16.7634 48 25.6C48 31.5222 44.7824 36.693 40 39.4595V45.8144M24 45.8144H40M24 45.8144V49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144" stroke="white" stroke-width="2" stroke-linejoin="round"/>
    <path d="M24 49.9689C24 51.8192 24 52.7444 24.3941 53.4353C24.6603 53.902 25.0469 54.2886 25.5136 54.5548C26.2046 54.9489 27.1297 54.9489 28.98 54.9489H35.02C36.8703 54.9489 37.7954 54.9489 38.4864 54.5548C38.9531 54.2886 39.3397 53.902 39.6059 53.4353C40 52.7444 40 51.8192 40 49.9689V45.8144H24V49.9689Z" fill="#643CDD" stroke="white" stroke-width="2" stroke-linejoin="round"/>
    <path d="M29.6735 26.9101V29.1109H34.0753V26.9101C34.0753 25.6945 35.0607 24.7092 36.2762 24.7092C37.4917 24.7092 38.4771 25.6945 38.4771 26.9101C38.4771 28.1256 37.4917 29.1109 36.2762 29.1109H34.0753H29.6735H27.4726C26.2571 29.1109 25.2717 28.1256 25.2717 26.9101C25.2717 25.6945 26.2571 24.7092 27.4726 24.7092C28.6881 24.7092 29.6735 25.6945 29.6735 26.9101Z" fill="#906EF7"/>
    <path d="M29.6735 45.3183V26.9101C29.6735 25.6945 28.6881 24.7092 27.4726 24.7092V24.7092C26.2571 24.7092 25.2717 25.6945 25.2717 26.9101V26.9101C25.2717 28.1256 26.2571 29.1109 27.4726 29.1109H36.2762C37.4917 29.1109 38.4771 28.1256 38.4771 26.9101V26.9101C38.4771 25.6945 37.4917 24.7092 36.2762 24.7092V24.7092C35.0607 24.7092 34.0753 25.6945 34.0753 26.9101V45.3183" stroke="white" stroke-width="2" stroke-linejoin="round"/>
  </g>
  <defs>
    <clipPath id="clip0_241_31636">
      <rect width="64" height="64" fill="white"/>
    </clipPath>
  </defs>
</svg>
`;var tx=(0,l.iv)`
  :host {
    display: block;
    width: var(--local-size);
    height: var(--local-size);
  }

  :host svg {
    width: 100%;
    height: 100%;
  }
`,t_=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tC={browser:te,dao:tt,defi:tr,defiAlt:tn,eth:ti,layers:to,lock:ta,login:ts,network:tl,nft:tc,noun:tu,profile:td,system:th,coinbase:tf,onrampCard:tv,moonpay:tp,stripe:tg,paypal:tm,google:tb,pencil:ty,lightbulb:tw},tA=class extends l.oi{constructor(){super(...arguments),this.name="browser",this.size="md"}render(){return this.style.cssText=`
       --local-size: var(--wui-visual-size-${this.size});
   `,(0,l.dy)`${tC[this.name]}`}};tA.styles=[m,tx],t_([(0,_.Cb)()],tA.prototype,"name",void 0),t_([(0,_.Cb)()],tA.prototype,"size",void 0),tA=t_([y("wui-visual")],tA);var tk=r(35162);let tE={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){try{return new URL(e).hostname}catch(e){return""}},getTruncateString:({string:e,charsStart:t,charsEnd:r,truncate:n})=>e.length<=t+r?e:"end"===n?`${e.substring(0,t)}...`:"start"===n?`...${e.substring(e.length-r)}`:`${e.substring(0,Math.floor(t))}...${e.substring(e.length-Math.floor(r))}`,generateAvatarColors(e){let t=e.toLowerCase().replace(/^0x/iu,"").substring(0,6),r=this.hexToRgb(t),n=getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"),i=100-3*Number(n?.replace("px","")),o=`${i}% ${i}% at 65% 40%`,a=[];for(let e=0;e<5;e+=1){let t=this.tintColor(r,.15*e);a.push(`rgb(${t[0]}, ${t[1]}, ${t[2]})`)}return`
    --local-color-1: ${a[0]};
    --local-color-2: ${a[1]};
    --local-color-3: ${a[2]};
    --local-color-4: ${a[3]};
    --local-color-5: ${a[4]};
    --local-radial-circle: ${o}
   `},hexToRgb(e){let t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},tintColor(e,t){let[r,n,i]=e;return[Math.round(r+(255-r)*t),Math.round(n+(255-n)*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"),splitBalance(e){let t=e.split(".");return 2===t.length?[t[0],t[1]]:["0","00"]},roundNumber:(e,t,r)=>e.toString().length>=t?Number(e).toFixed(r):e,formatNumberToLocalString:(e,t=2)=>void 0===e?"0.00":"number"==typeof e?e.toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t}):parseFloat(e).toLocaleString("en-US",{maximumFractionDigits:t,minimumFractionDigits:t})};var tS=(0,l.iv)`
  :host {
    display: flex;
    width: inherit;
    height: inherit;
  }
`,tT=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tI=class extends l.oi{render(){return this.style.cssText=`
      flex-direction: ${this.flexDirection};
      flex-wrap: ${this.flexWrap};
      flex-basis: ${this.flexBasis};
      flex-grow: ${this.flexGrow};
      flex-shrink: ${this.flexShrink};
      align-items: ${this.alignItems};
      justify-content: ${this.justifyContent};
      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
      padding-top: ${this.padding&&tE.getSpacingStyles(this.padding,0)};
      padding-right: ${this.padding&&tE.getSpacingStyles(this.padding,1)};
      padding-bottom: ${this.padding&&tE.getSpacingStyles(this.padding,2)};
      padding-left: ${this.padding&&tE.getSpacingStyles(this.padding,3)};
      margin-top: ${this.margin&&tE.getSpacingStyles(this.margin,0)};
      margin-right: ${this.margin&&tE.getSpacingStyles(this.margin,1)};
      margin-bottom: ${this.margin&&tE.getSpacingStyles(this.margin,2)};
      margin-left: ${this.margin&&tE.getSpacingStyles(this.margin,3)};
    `,(0,l.dy)`<slot></slot>`}};tI.styles=[m,tS],tT([(0,_.Cb)()],tI.prototype,"flexDirection",void 0),tT([(0,_.Cb)()],tI.prototype,"flexWrap",void 0),tT([(0,_.Cb)()],tI.prototype,"flexBasis",void 0),tT([(0,_.Cb)()],tI.prototype,"flexGrow",void 0),tT([(0,_.Cb)()],tI.prototype,"flexShrink",void 0),tT([(0,_.Cb)()],tI.prototype,"alignItems",void 0),tT([(0,_.Cb)()],tI.prototype,"justifyContent",void 0),tT([(0,_.Cb)()],tI.prototype,"columnGap",void 0),tT([(0,_.Cb)()],tI.prototype,"rowGap",void 0),tT([(0,_.Cb)()],tI.prototype,"gap",void 0),tT([(0,_.Cb)()],tI.prototype,"padding",void 0),tT([(0,_.Cb)()],tI.prototype,"margin",void 0),tI=tT([y("wui-flex")],tI);var tP=(0,l.iv)`
  :host {
    display: block;
    width: var(--local-width);
    height: var(--local-height);
    border-radius: var(--wui-border-radius-3xl);
    box-shadow: 0 0 0 8px var(--wui-color-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-color-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-color-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%
    );
  }
`,tO=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tR=class extends l.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.alt=void 0,this.address=void 0,this.size="xl"}render(){return this.style.cssText=`
    --local-width: var(--wui-icon-box-size-${this.size});
    --local-height: var(--wui-icon-box-size-${this.size});
    `,(0,l.dy)`${this.visualTemplate()}`}visualTemplate(){if(this.imageSrc)return this.dataset.variant="image",(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.alt??"avatar"}></wui-image>`;if(this.address){this.dataset.variant="generated";let e=tE.generateAvatarColors(this.address);return this.style.cssText+=`
 ${e}`,null}return this.dataset.variant="default",null}};tR.styles=[m,tP],tO([(0,_.Cb)()],tR.prototype,"imageSrc",void 0),tO([(0,_.Cb)()],tR.prototype,"alt",void 0),tO([(0,_.Cb)()],tR.prototype,"address",void 0),tO([(0,_.Cb)()],tR.prototype,"size",void 0),tR=tO([y("wui-avatar")],tR);var tM=(0,l.iv)`
  :host {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--wui-color-gray-glass-020);
    border-radius: var(--local-border-radius);
    border: var(--local-border);
    box-sizing: content-box;
    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);
    }
  }
`,tN=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tj=class extends l.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(){let e=this.iconSize||this.size,t="lg"===this.size,r="xl"===this.size,n="gray"===this.background,i="opaque"===this.background,o="accent-100"===this.backgroundColor&&i||"success-100"===this.backgroundColor&&i||"error-100"===this.backgroundColor&&i||"inverse-100"===this.backgroundColor&&i,a=`var(--wui-color-${this.backgroundColor})`;return o?a=`var(--wui-icon-box-bg-${this.backgroundColor})`:n&&(a=`var(--wui-color-gray-${this.backgroundColor})`),this.style.cssText=`
       --local-bg-value: ${a};
       --local-bg-mix: ${o||n?"100%":t?"12%":"16%"};
       --local-border-radius: var(--wui-border-radius-${t?"xxs":r?"s":"3xl"});
       --local-size: var(--wui-icon-box-size-${this.size});
       --local-border: ${"wui-color-bg-125"===this.borderColor?"2px":"1px"} solid ${this.border?`var(--${this.borderColor})`:"transparent"}
   `,(0,l.dy)` <wui-icon color=${this.iconColor} size=${e} name=${this.icon}></wui-icon> `}};tj.styles=[m,v,tM],tN([(0,_.Cb)()],tj.prototype,"size",void 0),tN([(0,_.Cb)()],tj.prototype,"backgroundColor",void 0),tN([(0,_.Cb)()],tj.prototype,"iconColor",void 0),tN([(0,_.Cb)()],tj.prototype,"iconSize",void 0),tN([(0,_.Cb)()],tj.prototype,"background",void 0),tN([(0,_.Cb)({type:Boolean})],tj.prototype,"border",void 0),tN([(0,_.Cb)()],tj.prototype,"borderColor",void 0),tN([(0,_.Cb)()],tj.prototype,"icon",void 0),tj=tN([y("wui-icon-box")],tj);var tD=(0,l.iv)`
  :host {
    display: block;
  }

  button {
    border-radius: var(--wui-border-radius-3xl);
    background: var(--wui-color-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-color-gray-glass-005);
  }

  button:disabled {
    background: var(--wui-color-gray-glass-015);
  }

  button:disabled > wui-text {
    color: var(--wui-color-gray-glass-015);
  }

  button:disabled > wui-flex > wui-text {
    color: var(--wui-color-gray-glass-015);
  }

  button:disabled > wui-image,
  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);
  }

  wui-image,
  wui-icon-box {
    border-radius: var(--wui-border-radius-3xl);
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  }

  wui-flex {
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-005);
    background: var(--wui-color-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-color-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);
    }
  }
`,tB=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tL=class extends l.oi{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.balance=void 0,this.isUnsupportedChain=void 0,this.disabled=!1,this.address="",this.profileName="",this.charsStart=4,this.charsEnd=6}render(){return(0,l.dy)`
      <button
        ?disabled=${this.disabled}
        class=${(0,tk.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">
            ${this.address?tE.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:this.charsStart,charsEnd:this.profileName?0:this.charsEnd,truncate:this.profileName?"end":"middle"}):null}
          </wui-text>
        </wui-flex>
      </button>
    `}balanceTemplate(){if(this.isUnsupportedChain)return(0,l.dy)` <wui-icon-box
          size="sm"
          iconColor="error-100"
          backgroundColor="error-100"
          icon="warningCircle"
        ></wui-icon-box>
        <wui-text variant="paragraph-600" color="inherit"> Switch Network</wui-text>`;if(this.balance){let e=this.networkSrc?(0,l.dy)`<wui-image src=${this.networkSrc}></wui-image>`:(0,l.dy)`
            <wui-icon-box
              size="sm"
              iconColor="fg-200"
              backgroundColor="fg-300"
              icon="networkPlaceholder"
            ></wui-icon-box>
          `;return(0,l.dy)`
        ${e}
        <wui-text variant="paragraph-600" color="inherit"> ${this.balance}</wui-text>
      `}return null}};tL.styles=[m,v,tD],tB([(0,_.Cb)()],tL.prototype,"networkSrc",void 0),tB([(0,_.Cb)()],tL.prototype,"avatarSrc",void 0),tB([(0,_.Cb)()],tL.prototype,"balance",void 0),tB([(0,_.Cb)({type:Boolean})],tL.prototype,"isUnsupportedChain",void 0),tB([(0,_.Cb)({type:Boolean})],tL.prototype,"disabled",void 0),tB([(0,_.Cb)()],tL.prototype,"address",void 0),tB([(0,_.Cb)()],tL.prototype,"profileName",void 0),tB([(0,_.Cb)()],tL.prototype,"charsStart",void 0),tB([(0,_.Cb)()],tL.prototype,"charsEnd",void 0),tL=tB([y("wui-account-button")],tL);var t$=(0,l.iv)`
  :host {
    position: relative;
    background-color: var(--wui-color-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-color-gray-glass-010);
    pointer-events: none;
  }

  :host([name='Extension'])::after {
    border: 1px solid var(--wui-color-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-color-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-150, #1e1f1f);
    padding: 1px;
  }
`,tU=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tz=class extends l.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=`
       --local-border-radius: var(--wui-border-radius-${e});
       --local-size: var(--wui-wallet-image-size-${this.size});
   `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),(0,l.dy)`
      <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
    `}templateVisual(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?(0,l.dy)`<wui-icon
        data-parent-size="md"
        size="md"
        color="inherit"
        name=${this.walletIcon}
      ></wui-icon>`:(0,l.dy)`<wui-icon
      data-parent-size=${this.size}
      size="inherit"
      color="inherit"
      name="walletPlaceholder"
    ></wui-icon>`}};tz.styles=[m,t$],tU([(0,_.Cb)()],tz.prototype,"size",void 0),tU([(0,_.Cb)()],tz.prototype,"name",void 0),tU([(0,_.Cb)()],tz.prototype,"imageSrc",void 0),tU([(0,_.Cb)()],tz.prototype,"walletIcon",void 0),tU([(0,_.Cb)({type:Boolean})],tz.prototype,"installed",void 0),tU([(0,_.Cb)()],tz.prototype,"badgeSize",void 0),tz=tU([y("wui-wallet-image")],tz);var tF=(0,l.iv)`
  :host {
    position: relative;
    border-radius: var(--wui-border-radius-xxs);
    width: 40px;
    height: 40px;
    overflow: hidden;
    background: var(--wui-color-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-color-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;
  }
`,tq=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tH=class extends l.oi{constructor(){super(...arguments),this.walletImages=[]}render(){let e=this.walletImages.length<4;return(0,l.dy)`${this.walletImages.slice(0,4).map(({src:e,walletName:t})=>(0,l.dy)`
            <wui-wallet-image
              size="inherit"
              imageSrc=${e}
              name=${(0,tk.o)(t)}
            ></wui-wallet-image>
          `)}
      ${e?[...Array(4-this.walletImages.length)].map(()=>(0,l.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>`}};tH.styles=[m,tF],tq([(0,_.Cb)({type:Array})],tH.prototype,"walletImages",void 0),tH=tq([y("wui-all-wallets-image")],tH);var tW=(0,l.iv)`
  :host {
    width: var(--local-width);
    position: relative;
  }

  button {
    border: none;
    border-radius: var(--local-border-radius);
    width: var(--local-width);
    white-space: nowrap;
  }

  /* -- Sizes --------------------------------------------------- */
  button[data-size='md'] {
    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
    height: 36px;
  }

  button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
    padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
  }

  button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
    padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
  }

  button[data-size='lg'] {
    padding: var(--wui-spacing-m) var(--wui-spacing-2l);
    height: 48px;
  }

  /* -- Variants --------------------------------------------------------- */
  button[data-variant='main'] {
    background-color: var(--wui-color-accent-100);
    color: var(--wui-color-inverse-100);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  button[data-variant='inverse'] {
    background-color: var(--wui-color-inverse-100);
    color: var(--wui-color-inverse-000);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  button[data-variant='accent'] {
    background-color: var(--wui-color-accent-glass-010);
    color: var(--wui-color-accent-100);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  button[data-variant='accent-error'] {
    background: var(--wui-color-error-glass-015);
    color: var(--wui-color-error-100);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
  }

  button[data-variant='accent-success'] {
    background: var(--wui-color-success-glass-015);
    color: var(--wui-color-success-100);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
  }

  button[data-variant='neutral'] {
    background: transparent;
    color: var(--wui-color-fg-100);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  /* -- Focus states --------------------------------------------------- */
  button[data-variant='main']:focus-visible:enabled {
    background-color: var(--wui-color-accent-090);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-accent-100),
      0 0 0 4px var(--wui-color-accent-glass-020);
  }
  button[data-variant='inverse']:focus-visible:enabled {
    background-color: var(--wui-color-inverse-100);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-gray-glass-010),
      0 0 0 4px var(--wui-color-accent-glass-020);
  }
  button[data-variant='accent']:focus-visible:enabled {
    background-color: var(--wui-color-accent-glass-010);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-accent-100),
      0 0 0 4px var(--wui-color-accent-glass-020);
  }
  button[data-variant='accent-error']:focus-visible:enabled {
    background: var(--wui-color-error-glass-015);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-error-100),
      0 0 0 4px var(--wui-color-error-glass-020);
  }
  button[data-variant='accent-success']:focus-visible:enabled {
    background: var(--wui-color-success-glass-015);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-success-100),
      0 0 0 4px var(--wui-color-success-glass-020);
  }
  button[data-variant='neutral']:focus-visible:enabled {
    background: var(--wui-color-gray-glass-005);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-gray-glass-010),
      0 0 0 4px var(--wui-color-gray-glass-002);
  }

  /* -- Hover & Active states ----------------------------------------------------------- */
  @media (hover: hover) and (pointer: fine) {
    button[data-variant='main']:hover:enabled {
      background-color: var(--wui-color-accent-090);
    }

    button[data-variant='main']:active:enabled {
      background-color: var(--wui-color-accent-080);
    }

    button[data-variant='accent']:hover:enabled {
      background-color: var(--wui-color-accent-glass-015);
    }

    button[data-variant='accent']:active:enabled {
      background-color: var(--wui-color-accent-glass-020);
    }

    button[data-variant='accent-error']:hover:enabled {
      background: var(--wui-color-error-glass-020);
      color: var(--wui-color-error-100);
    }

    button[data-variant='accent-error']:active:enabled {
      background: var(--wui-color-error-glass-030);
      color: var(--wui-color-error-100);
    }

    button[data-variant='accent-success']:hover:enabled {
      background: var(--wui-color-success-glass-020);
      color: var(--wui-color-success-100);
    }

    button[data-variant='accent-success']:active:enabled {
      background: var(--wui-color-success-glass-030);
      color: var(--wui-color-success-100);
    }

    button[data-variant='neutral']:hover:enabled {
      background: var(--wui-color-gray-glass-002);
    }

    button[data-variant='neutral']:active:enabled {
      background: var(--wui-color-gray-glass-005);
    }

    button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
      padding-left: var(--wui-spacing-m);
    }

    button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
      padding-right: var(--wui-spacing-m);
    }
  }

  /* -- Disabled state --------------------------------------------------- */
  button:disabled {
    background-color: var(--wui-color-gray-glass-002);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    color: var(--wui-color-gray-glass-020);
    cursor: not-allowed;
  }

  button > wui-text {
    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: opacity;
    opacity: var(--local-opacity-100);
  }

  ::slotted(*) {
    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: opacity;
    opacity: var(--local-opacity-100);
  }

  wui-loading-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: var(--local-opacity-000);
  }
`,tV=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tZ={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},tG={lg:"paragraph-600",md:"small-600"},tK={lg:"md",md:"md"},tY=class extends l.oi{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=`
    --local-width: ${this.fullWidth?"100%":"auto"};
    --local-opacity-100: ${this.loading?0:1};
    --local-opacity-000: ${this.loading?1:0};
    --local-border-radius: var(--wui-border-radius-${this.borderRadius});
    `;let e=this.textVariant??tG[this.size];return(0,l.dy)`
      <button
        data-variant=${this.variant}
        data-icon-left=${this.hasIconLeft}
        data-icon-right=${this.hasIconRight}
        data-size=${this.size}
        ?disabled=${this.disabled}
        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(){if(this.loading){let e=tK[this.size],t=this.disabled?tZ.disabled:tZ[this.variant];return(0,l.dy)`<wui-loading-spinner color=${t} size=${e}></wui-loading-spinner>`}return(0,l.dy)``}};tY.styles=[m,v,tW],tV([(0,_.Cb)()],tY.prototype,"size",void 0),tV([(0,_.Cb)({type:Boolean})],tY.prototype,"disabled",void 0),tV([(0,_.Cb)({type:Boolean})],tY.prototype,"fullWidth",void 0),tV([(0,_.Cb)({type:Boolean})],tY.prototype,"loading",void 0),tV([(0,_.Cb)()],tY.prototype,"variant",void 0),tV([(0,_.Cb)({type:Boolean})],tY.prototype,"hasIconLeft",void 0),tV([(0,_.Cb)({type:Boolean})],tY.prototype,"hasIconRight",void 0),tV([(0,_.Cb)()],tY.prototype,"borderRadius",void 0),tV([(0,_.Cb)()],tY.prototype,"textVariant",void 0),tY=tV([y("wui-button")],tY);let tQ=(0,l.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>`;var tJ=(0,l.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-color-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-color-gray-glass-010);
    stroke-width: 1px;
  }
`,tX=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let t0=class extends l.oi{constructor(){super(...arguments),this.type="wallet"}render(){return(0,l.dy)`
      ${this.shimmerTemplate()}
      <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
    `}shimmerTemplate(){return"network"===this.type?(0,l.dy)` <wui-shimmer
          data-type=${this.type}
          width="48px"
          height="54px"
          borderRadius="xs"
        ></wui-shimmer>
        ${tQ}`:(0,l.dy)`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};t0.styles=[m,v,tJ],tX([(0,_.Cb)()],t0.prototype,"type",void 0),t0=tX([y("wui-card-select-loader")],t0);let t1=(0,l.YP)`
  <svg fill="none" viewBox="0 0 36 40">
    <path
      d="M15.4 2.1a5.21 5.21 0 0 1 5.2 0l11.61 6.7a5.21 5.21 0 0 1 2.61 4.52v13.4c0 1.87-1 3.59-2.6 4.52l-11.61 6.7c-1.62.93-3.6.93-5.22 0l-11.6-6.7a5.21 5.21 0 0 1-2.61-4.51v-13.4c0-1.87 1-3.6 2.6-4.52L15.4 2.1Z"
    />
  </svg>
`,t2=(0,l.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>`;var t3=(0,l.iv)`
  :host {
    position: relative;
    border-radius: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--local-width);
    height: var(--local-height);
  }

  :host([data-round='true']) {
    background: var(--wui-color-gray-glass-002);
    border-radius: 100%;
    outline: 1px solid var(--wui-color-gray-glass-005);
  }

  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    fill: var(--wui-color-gray-glass-002);
  }

  svg > path {
    stroke: var(--local-stroke);
  }

  wui-image {
    width: 100%;
    height: 100%;
    -webkit-clip-path: var(--local-path);
    clip-path: var(--local-path);
    background: var(--wui-color-gray-glass-002);
  }

  wui-icon {
    transform: translateY(-5%);
    width: var(--local-icon-size);
    height: var(--local-icon-size);
  }
`,t5=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let t6=class extends l.oi{constructor(){super(...arguments),this.size="md",this.name="uknown",this.networkImagesBySize={sm:t1,md:tQ,lg:t2},this.selected=!1,this.round=!1}render(){return this.round?(this.dataset.round="true",this.style.cssText=`
      --local-width: var(--wui-spacing-3xl);
      --local-height: var(--wui-spacing-3xl);
      --local-icon-size: var(--wui-spacing-l);
    `):this.style.cssText=`

      --local-path: var(--wui-path-network-${this.size});
      --local-width:  var(--wui-width-network-${this.size});
      --local-height:  var(--wui-height-network-${this.size});
      --local-icon-size:  var(--wui-icon-size-network-${this.size});
    `,(0,l.dy)`${this.templateVisual()} ${this.svgTemplate()} `}svgTemplate(){return this.round?null:this.networkImagesBySize[this.size]}templateVisual(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};t6.styles=[m,t3],t5([(0,_.Cb)()],t6.prototype,"size",void 0),t5([(0,_.Cb)()],t6.prototype,"name",void 0),t5([(0,_.Cb)({type:Object})],t6.prototype,"networkImagesBySize",void 0),t5([(0,_.Cb)()],t6.prototype,"imageSrc",void 0),t5([(0,_.Cb)({type:Boolean})],t6.prototype,"selected",void 0),t5([(0,_.Cb)({type:Boolean})],t6.prototype,"round",void 0),t6=t5([y("wui-network-image")],t6);var t4=(0,l.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-color-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-color-gray-glass-015);
  }

  [data-selected='true'] {
    background-color: var(--wui-color-accent-glass-020);
  }

  @media (hover: hover) and (pointer: fine) {
    [data-selected='true']:hover:enabled {
      background-color: var(--wui-color-accent-glass-015);
    }
  }

  [data-selected='true']:active:enabled {
    background-color: var(--wui-color-accent-glass-010);
  }
`,t8=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let t9=class extends l.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(0,l.dy)`
      <button data-selected=${(0,tk.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?(0,l.dy)`
        <wui-network-image
          .selected=${this.selected}
          imageSrc=${(0,tk.o)(this.imageSrc)}
          name=${this.name}
        >
        </wui-network-image>
      `:(0,l.dy)`
      <wui-wallet-image
        size="md"
        imageSrc=${(0,tk.o)(this.imageSrc)}
        name=${this.name}
        .installed=${this.installed}
        badgeSize="sm"
      >
      </wui-wallet-image>
    `}};t9.styles=[m,v,t4],t8([(0,_.Cb)()],t9.prototype,"name",void 0),t8([(0,_.Cb)()],t9.prototype,"type",void 0),t8([(0,_.Cb)()],t9.prototype,"imageSrc",void 0),t8([(0,_.Cb)({type:Boolean})],t9.prototype,"disabled",void 0),t8([(0,_.Cb)({type:Boolean})],t9.prototype,"selected",void 0),t8([(0,_.Cb)({type:Boolean})],t9.prototype,"installed",void 0),t9=t8([y("wui-card-select")],t9);var t7=(0,l.iv)`
  a {
    border: 1px solid var(--wui-color-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-color-gray-glass-010);
    color: var(--wui-color-fg-200);
  }

  a[data-variant='success'] {
    column-gap: var(--wui-spacing-xxs);
    border: 1px solid var(--wui-color-success-glass-010);
    background-color: var(--wui-color-success-glass-010);
    color: var(--wui-color-success-100);
  }

  a[data-variant='error'] {
    column-gap: var(--wui-spacing-xxs);
    border: 1px solid var(--wui-color-error-glass-010);
    background-color: var(--wui-color-error-glass-010);
    color: var(--wui-color-error-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'],
  a[data-variant='error'] {
    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),
  a[data-variant='error']: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-color-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,
  a[data-variant='error'] > wui-image {
    width: 14px;
    height: 14px;
  }

  a[data-variant='transparent'] > wui-icon,
  a[data-variant='success'] > wui-icon,
  a[data-variant='shadeSmall'] > wui-icon,
  a[data-variant='error'] > 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-color-gray-glass-015);
  }

  a[data-variant='transparent']:focus-visible {
    background-color: var(--wui-color-gray-glass-005);
  }

  a[data-variant='success']:focus-visible {
    background-color: var(--wui-color-success-glass-015);
  }

  a[data-variant='error']:focus-visible {
    background-color: var(--wui-color-error-glass-015);
  }

  a.disabled {
    color: var(--wui-color-gray-glass-015);
    background-color: var(--wui-color-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-color-gray-glass-015);
    }

    a[data-variant='transparent']:hover {
      background-color: var(--wui-color-gray-glass-005);
    }

    a[data-variant='success']:hover {
      background-color: var(--wui-color-success-glass-015);
    }

    a[data-variant='error']:hover {
      background-color: var(--wui-color-error-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-color-gray-glass-020);
  }

  a[data-variant='transparent']:active {
    background-color: var(--wui-color-gray-glass-010);
  }

  a[data-variant='success']:active {
    background-color: var(--wui-color-success-glass-020);
  }

  a[data-variant='error']:active {
    background-color: var(--wui-color-error-glass-020);
  }
`,re=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rt=class extends l.oi{constructor(){super(...arguments),this.variant="fill",this.imageSrc=void 0,this.disabled=!1,this.icon="externalLink",this.href="",this.text=void 0}render(){let e="success"===this.variant||"transparent"===this.variant||"shadeSmall"===this.variant;return(0,l.dy)`
      <a
        rel="noreferrer"
        target="_blank"
        href=${this.href}
        class=${this.disabled?"disabled":""}
        data-variant=${this.variant}
      >
        ${this.imageTemplate()}
        <wui-text variant=${e?"small-600":"paragraph-600"} color="inherit">
          ${this.title?this.title:tE.getHostName(this.href)}
        </wui-text>
        <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
      </a>
    `}imageTemplate(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc}></wui-image>`:null}};rt.styles=[m,v,t7],re([(0,_.Cb)()],rt.prototype,"variant",void 0),re([(0,_.Cb)()],rt.prototype,"imageSrc",void 0),re([(0,_.Cb)({type:Boolean})],rt.prototype,"disabled",void 0),re([(0,_.Cb)()],rt.prototype,"icon",void 0),re([(0,_.Cb)()],rt.prototype,"href",void 0),re([(0,_.Cb)()],rt.prototype,"text",void 0),rt=re([y("wui-chip")],rt);var rr=(0,l.iv)`
  :host {
    position: relative;
    display: block;
  }

  button {
    background: var(--wui-color-accent-100);
    border: 1px solid var(--wui-color-gray-glass-010);
    border-radius: var(--wui-border-radius-m);
    gap: var(--wui-spacing-xs);
  }

  button.loading {
    background: var(--wui-color-gray-glass-010);
    border: 1px solid var(--wui-color-gray-glass-010);
    pointer-events: none;
  }

  button:disabled {
    background-color: var(--wui-color-gray-glass-015);
    border: 1px solid var(--wui-color-gray-glass-010);
  }

  button:disabled > wui-text {
    color: var(--wui-color-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-color-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 var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: opacity;
    opacity: var(--local-opacity-100);
  }

  button > wui-text {
    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: opacity;
    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;
  }
`,rn=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ri=class extends l.oi{constructor(){super(...arguments),this.size="md",this.loading=!1}render(){let e="md"===this.size?"paragraph-600":"small-600";return(0,l.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?(0,l.dy)`<wui-loading-spinner size=${this.size} color="accent-100"></wui-loading-spinner>`:null}};ri.styles=[m,v,rr],rn([(0,_.Cb)()],ri.prototype,"size",void 0),rn([(0,_.Cb)({type:Boolean})],ri.prototype,"loading",void 0),ri=rn([y("wui-connect-button")],ri);var ro=(0,l.iv)`
  wui-flex {
    width: 100%;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }
`,ra=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rs=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return(0,l.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-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
        </wui-chip-button>
      </wui-flex>
    `}};rs.styles=[m,v,ro],ra([(0,_.Cb)({type:Boolean})],rs.prototype,"disabled",void 0),ra([(0,_.Cb)()],rs.prototype,"label",void 0),ra([(0,_.Cb)()],rs.prototype,"buttonLabel",void 0),rs=ra([y("wui-cta-button")],rs);var rl=(0,l.iv)`
  :host {
    display: block;
    padding: var(--wui-spacing-l) var(--wui-spacing-m);
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    width: 100%;
  }
`;let rc=class extends l.oi{render(){return(0,l.dy)`
      <wui-flex gap="xl" flexDirection="column" justifyContent="space-between" alignItems="center">
        <slot></slot>
      </wui-flex>
    `}};rc.styles=[m,v,rl],rc=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([y("wui-details-group")],rc);var ru=(0,l.iv)`
  :host {
    display: flex;
    flex-direction: row;
    gap: var(--wui-spacing-l);
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
  }
`,rd=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rh=class extends l.oi{constructor(){super(...arguments),this.name=""}render(){return(0,l.dy)`
      <wui-flex justifyContent="space-between" alignItems="center">
        <wui-text variant="paragraph-500" color="fg-200">${this.name}</wui-text>
        <wui-flex gap="xs" alignItems="center">
          <slot></slot>
        </wui-flex>
      </wui-flex>
    `}};rh.styles=[m,v,ru],rd([(0,_.Cb)()],rh.prototype,"name",void 0),rh=rd([y("wui-details-group-item")],rh);var rf=(0,l.iv)`
  :host {
    z-index: calc(var(--w3m-z-index) + 1);
    width: 200px;
    padding: var(--wui-spacing-3xs);
    align-items: center;
    display: inherit;
    border-radius: var(--wui-border-radius-xs);
    border: 1px solid var(--wui-color-gray-glass-002);
    background: var(--wui-color-fg-base-125);
    /* Dark/Elevation/L */
    box-shadow:
      0px 8px 22px -6px rgba(0, 0, 0, 0.12),
      0px 14px 64px -4px rgba(0, 0, 0, 0.12);
  }
`,rp=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rg=class extends l.oi{constructor(){super(...arguments),this.actions=[],this.isOpen=!1}render(){return this.isOpen?(0,l.dy)`
      <wui-flex flexDirection="column" gap="4xs">
        ${this.actions.map(e=>(0,l.dy)`
            <wui-list-item
              icon=${e.icon}
              iconSize="sm"
              variant="icon"
              @click=${e.onClick}
            >
              <wui-text variant="small-400" color="fg-100">${e.label}</wui-text>
            </wui-list-item>
          `)}
      </wui-flex>
    `:null}};rg.styles=[m,v,rf],rp([(0,_.Cb)({type:Array})],rg.prototype,"actions",void 0),rp([(0,_.Cb)({type:Boolean})],rg.prototype,"isOpen",void 0),rg=rp([y("wui-dropdown-menu")],rg);var rm=r(38192),rv=(0,l.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);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    background: var(--wui-color-gray-glass-002);
    font-size: var(--wui-font-size-paragraph);
    letter-spacing: var(--wui-letter-spacing-paragraph);
    color: var(--wui-color-fg-100);
    transition:
      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
      box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
    will-change: background-color, border-color, box-shadow;
    caret-color: var(--wui-color-accent-100);
  }

  input:disabled {
    cursor: not-allowed;
    border: 1px solid var(--wui-color-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 {
    background-color: var(--wui-color-gray-glass-005);
    -webkit-box-shadow:
      inset 0 0 0 1px var(--wui-color-accent-100),
      0px 0px 0px 4px var(--wui-box-shadow-blue);
    -moz-box-shadow:
      inset 0 0 0 1px var(--wui-color-accent-100),
      0px 0px 0px 4px var(--wui-box-shadow-blue);
    box-shadow:
      inset 0 0 0 1px var(--wui-color-accent-100),
      0px 0px 0px 4px var(--wui-box-shadow-blue);
  }

  input:hover:enabled {
    background-color: var(--wui-color-gray-glass-005);
  }

  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 var(--wui-spacing-3xl);
  }

  wui-icon[data-input='md'] {
    left: var(--wui-spacing-l);
  }

  .wui-size-lg {
    padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
    letter-spacing: var(--wui-letter-spacing-medium-title);
    font-size: var(--wui-font-size-medium-title);
    font-weight: var(--wui-font-weight-light);
    line-height: 130%;
    color: var(--wui-color-fg-100);
    height: 64px;
  }

  .wui-padding-right-xs {
    padding-right: var(--wui-spacing-xs);
  }

  .wui-padding-right-s {
    padding-right: var(--wui-spacing-s);
  }

  .wui-padding-right-m {
    padding-right: var(--wui-spacing-m);
  }

  .wui-padding-right-l {
    padding-right: var(--wui-spacing-l);
  }

  .wui-padding-right-xl {
    padding-right: var(--wui-spacing-xl);
  }

  .wui-padding-right-2xl {
    padding-right: var(--wui-spacing-2xl);
  }

  .wui-padding-right-3xl {
    padding-right: var(--wui-spacing-3xl);
  }

  .wui-padding-right-4xl {
    padding-right: var(--wui-spacing-4xl);
  }

  .wui-padding-right-5xl {
    padding-right: var(--wui-spacing-5xl);
  }

  wui-icon + .wui-size-lg,
  wui-loading-spinner + .wui-size-lg {
    padding-left: 50px;
  }

  wui-icon[data-input='lg'] {
    left: var(--wui-spacing-l);
  }

  .wui-size-mdl {
    padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
  }
  wui-icon + .wui-size-mdl,
  wui-loading-spinner + .wui-size-mdl {
    padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
  }
  wui-icon[data-input='mdl'] {
    left: var(--wui-spacing-m);
  }

  input:placeholder-shown ~ ::slotted(wui-input-element),
  input:placeholder-shown ~ ::slotted(wui-icon) {
    opacity: 0;
    pointer-events: none;
  }

  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  input[type='number'] {
    -moz-appearance: textfield;
  }

  ::slotted(wui-input-element),
  ::slotted(wui-icon) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }

  ::slotted(wui-input-element) {
    right: var(--wui-spacing-m);
  }

  ::slotted(wui-icon) {
    right: 0px;
  }
`,rb=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ry=class extends l.oi{constructor(){super(...arguments),this.inputElementRef=(0,rm.V)(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){let e=`wui-padding-right-${this.inputRightPadding}`,t={[`wui-size-${this.size}`]:!0,[e]:!!this.inputRightPadding};return(0,l.dy)`${this.templateIcon()}
      <input
        data-testid="wui-input-text"
        ${(0,rm.i)(this.inputElementRef)}
        class=${e4(t)}
        type=${this.type}
        enterkeyhint=${(0,tk.o)(this.enterKeyHint)}
        ?disabled=${this.disabled}
        placeholder=${this.placeholder}
        @input=${this.dispatchInputChangeEvent.bind(this)}
        .value=${this.value||""}
      />
      <slot></slot>`}templateIcon(){return this.icon?(0,l.dy)`<wui-icon
        data-input=${this.size}
        size=${this.size}
        color="inherit"
        name=${this.icon}
      ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};ry.styles=[m,v,rv],rb([(0,_.Cb)()],ry.prototype,"size",void 0),rb([(0,_.Cb)()],ry.prototype,"icon",void 0),rb([(0,_.Cb)({type:Boolean})],ry.prototype,"disabled",void 0),rb([(0,_.Cb)()],ry.prototype,"placeholder",void 0),rb([(0,_.Cb)()],ry.prototype,"type",void 0),rb([(0,_.Cb)()],ry.prototype,"keyHint",void 0),rb([(0,_.Cb)()],ry.prototype,"value",void 0),rb([(0,_.Cb)()],ry.prototype,"inputRightPadding",void 0),ry=rb([y("wui-input-text")],ry);var rw=(0,l.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);
  }
`,rx=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r_=class extends l.oi{constructor(){super(...arguments),this.disabled=!1}render(){return(0,l.dy)`
      <wui-input-text
        type="email"
        placeholder="Email"
        icon="mail"
        size="mdl"
        .disabled=${this.disabled}
        .value=${this.value}
        data-testid="wui-email-input"
      ></wui-input-text>
      ${this.templateError()}
    `}templateError(){return this.errorMessage?(0,l.dy)`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};r_.styles=[m,rw],rx([(0,_.Cb)()],r_.prototype,"errorMessage",void 0),rx([(0,_.Cb)({type:Boolean})],r_.prototype,"disabled",void 0),rx([(0,_.Cb)()],r_.prototype,"value",void 0),r_=rx([y("wui-email-input")],r_);var rC=(0,l.iv)`
  :host {
    position: relative;
    width: 100%;
    display: inline-block;
    color: var(--wui-color-fg-275);
  }

  .error {
    margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m);
  }

  .base-name {
    position: absolute;
    right: 45px;
    top: 15px;
    text-align: right;
  }
`,rA=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rk=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return(0,l.dy)`
      <wui-input-text
        value=${(0,tk.o)(this.value)}
        ?disabled=${this.disabled}
        .value=${this.value||""}
        data-testid="wui-ens-input"
        inputRightPadding="5xl"
      >
        ${this.baseNameTemplate()} ${this.errorTemplate()}${this.loadingTemplate()}
      </wui-input-text>
    `}baseNameTemplate(){return(0,l.dy)`<wui-text variant="paragraph-400" color="fg-200" class="base-name">
      ${d.bq.WC_NAME_SUFFIX}
    </wui-text>`}loadingTemplate(){return this.loading?(0,l.dy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}errorTemplate(){return this.errorMessage?(0,l.dy)`<wui-text variant="tiny-500" color="error-100" class="error"
        >${this.errorMessage}</wui-text
      >`:null}};rk.styles=[m,rC],rA([(0,_.Cb)()],rk.prototype,"errorMessage",void 0),rA([(0,_.Cb)({type:Boolean})],rk.prototype,"disabled",void 0),rA([(0,_.Cb)()],rk.prototype,"value",void 0),rA([(0,_.Cb)({type:Boolean})],rk.prototype,"loading",void 0),rk=rA([y("wui-ens-input")],rk);var rE=(0,l.iv)`
  button {
    border-radius: var(--local-border-radius);
    color: var(--wui-color-fg-100);
    padding: var(--local-padding);
  }

  @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;
  }
`,rS=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rT=class extends l.oi{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.icon="copy",this.iconColor="inherit"}render(){let e="lg"===this.size?"--wui-border-radius-xs":"--wui-border-radius-xxs",t="lg"===this.size?"--wui-spacing-1xs":"--wui-spacing-2xs";return this.style.cssText=`
    --local-border-radius: var(${e});
    --local-padding: var(${t});
`,(0,l.dy)`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-icon color=${this.iconColor} size=${this.size} name=${this.icon}></wui-icon>
      </button>
    `}};rT.styles=[m,v,b,rE],rS([(0,_.Cb)()],rT.prototype,"size",void 0),rS([(0,_.Cb)({type:Boolean})],rT.prototype,"disabled",void 0),rS([(0,_.Cb)()],rT.prototype,"icon",void 0),rS([(0,_.Cb)()],rT.prototype,"iconColor",void 0),rT=rS([y("wui-icon-link")],rT);var rI=(0,l.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);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-fg-250);
    }

    button:active:enabled {
      background-color: var(--wui-color-fg-225);
    }
  }
`,rP=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rO=class extends l.oi{constructor(){super(...arguments),this.icon="copy"}render(){return(0,l.dy)`
      <button>
        <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
      </button>
    `}};rO.styles=[m,v,rI],rP([(0,_.Cb)()],rO.prototype,"icon",void 0),rO=rP([y("wui-input-element")],rO);var rR=(0,l.iv)`
  :host {
    position: relative;
    display: inline-block;
  }

  input {
    width: 50px;
    height: 50px;
    background: var(--wui-color-gray-glass-010);
    border-radius: var(--wui-border-radius-xs);
    border: 1px solid var(--wui-color-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:
      background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
      border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
      box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
    will-change: background-color, border-color, box-shadow;
    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-color-gray-glass-010);
    background: var(--wui-color-gray-glass-005);
  }

  input:focus:enabled {
    background-color: var(--wui-color-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-color-gray-glass-015);
    }
  }
`,rM=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rN=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return(0,l.dy)`<input
      type="number"
      maxlength="1"
      inputmode="numeric"
      autofocus
      ?disabled=${this.disabled}
      value=${this.value}
    /> `}};rN.styles=[m,v,rR],rM([(0,_.Cb)({type:Boolean})],rN.prototype,"disabled",void 0),rM([(0,_.Cb)({type:String})],rN.prototype,"value",void 0),rN=rM([y("wui-input-numeric")],rN);var rj=(0,l.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-color-gray-glass-015);
  }

  button:hover {
    background-color: var(--wui-color-gray-glass-005);
  }
`,rD=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rB=class extends l.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit"}render(){return(0,l.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>
    `}};rB.styles=[m,v,rj],rD([(0,_.Cb)({type:Boolean})],rB.prototype,"disabled",void 0),rD([(0,_.Cb)()],rB.prototype,"color",void 0),rB=rD([y("wui-link")],rB);var rL=(0,l.iv)`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 11px 18px 11px var(--wui-spacing-s);
    width: 100%;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
    transition:
      color var(--wui-ease-out-power-1) var(--wui-duration-md),
      background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: color, background-color;
  }

  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-color-gray-glass-005);
    border-radius: var(--wui-border-radius-3xl);
  }

  button > wui-icon {
    width: 36px;
    height: 36px;
    transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: opacity;
  }

  button > wui-icon-box[data-variant='blue'] {
    box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
  }

  button > wui-icon-box[data-variant='overlay'] {
    box-shadow: 0 0 0 2px var(--wui-color-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-color-accent-glass-010);
    pointer-events: none;
  }

  button > wui-icon:last-child {
    width: 14px;
    height: 14px;
  }

  button:disabled {
    color: var(--wui-color-gray-glass-020);
  }

  button[data-loading='true'] > wui-icon {
    opacity: 0;
  }

  wui-loading-spinner {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }
`,r$=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rU=class extends l.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(0,l.dy)`
      <button
        ?disabled=${!!this.loading||!!this.disabled}
        data-loading=${this.loading}
        data-iconvariant=${(0,tk.o)(this.iconVariant)}
        ontouchstart
      >
        ${this.loadingTemplate()} ${this.visualTemplate()}
        <wui-flex gap="3xs">
          <slot></slot>
        </wui-flex>
        ${this.chevronTemplate()}
      </button>
    `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return(0,l.dy)`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){let e=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",t="square-blue"===this.iconVariant?"mdl":"md",r=this.iconSize?this.iconSize:t;return(0,l.dy)`
        <wui-icon-box
          data-variant=${this.iconVariant}
          icon=${this.icon}
          iconSize=${r}
          background="transparent"
          iconColor=${e}
          backgroundColor=${e}
          size=${t}
        ></wui-icon-box>
      `}return null}loadingTemplate(){return this.loading?(0,l.dy)`<wui-loading-spinner color="fg-300"></wui-loading-spinner>`:(0,l.dy)``}chevronTemplate(){return this.chevron?(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};rU.styles=[m,v,rL],r$([(0,_.Cb)()],rU.prototype,"icon",void 0),r$([(0,_.Cb)()],rU.prototype,"iconSize",void 0),r$([(0,_.Cb)()],rU.prototype,"variant",void 0),r$([(0,_.Cb)()],rU.prototype,"iconVariant",void 0),r$([(0,_.Cb)({type:Boolean})],rU.prototype,"disabled",void 0),r$([(0,_.Cb)()],rU.prototype,"imageSrc",void 0),r$([(0,_.Cb)()],rU.prototype,"alt",void 0),r$([(0,_.Cb)({type:Boolean})],rU.prototype,"chevron",void 0),r$([(0,_.Cb)({type:Boolean})],rU.prototype,"loading",void 0),rU=r$([y("wui-list-item")],rU),(a=s||(s={})).approve="approved",a.bought="bought",a.borrow="borrowed",a.burn="burnt",a.cancel="canceled",a.claim="claimed",a.deploy="deployed",a.deposit="deposited",a.execute="executed",a.mint="minted",a.receive="received",a.repay="repaid",a.send="sent",a.sell="sold",a.stake="staked",a.trade="swapped",a.unstake="unstaked",a.withdraw="withdrawn";var rz=(0,l.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-color-gray-glass-005);
    background-color: var(--wui-color-gray-glass-005);
  }

  :host > wui-flex wui-image {
    display: block;
  }

  :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));
  }
`,rF=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rq=class extends l.oi{constructor(){super(...arguments),this.images=[],this.secondImage={type:void 0,url:""}}render(){let[e,t]=this.images,r=e?.type==="NFT",n=t?.url?"NFT"===t.type:r;return this.style.cssText=`
    --local-left-border-radius: ${r?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"};
    --local-right-border-radius: ${n?"var(--wui-border-radius-xxs)":"var(--wui-border-radius-s)"};
    `,(0,l.dy)`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`}templateVisual(){let[e,t]=this.images,r=e?.type;return 2===this.images.length&&(e?.url||t?.url)?(0,l.dy)`<div class="swap-images-container">
        ${e?.url?(0,l.dy)`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:null}
        ${t?.url?(0,l.dy)`<wui-image src=${t.url} alt="Transaction image"></wui-image>`:null}
      </div>`:e?.url?(0,l.dy)`<wui-image src=${e.url} alt="Transaction image"></wui-image>`:"NFT"===r?(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="nftPlaceholder"></wui-icon>`:(0,l.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)?(0,l.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"}}};rq.styles=[rz],rF([(0,_.Cb)()],rq.prototype,"type",void 0),rF([(0,_.Cb)()],rq.prototype,"status",void 0),rF([(0,_.Cb)()],rq.prototype,"direction",void 0),rF([(0,_.Cb)({type:Boolean})],rq.prototype,"onlyDirectionIcon",void 0),rF([(0,_.Cb)({type:Array})],rq.prototype,"images",void 0),rF([(0,_.Cb)({type:Object})],rq.prototype,"secondImage",void 0),rq=rF([y("wui-transaction-visual")],rq);var rH=(0,l.iv)`
  :host > wui-flex:first-child {
    align-items: center;
    column-gap: var(--wui-spacing-s);
    padding: 6.5px var(--wui-spacing-xs) 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;
  }
`,rW=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rV=class extends l.oi{constructor(){super(...arguments),this.type="approve",this.onlyDirectionIcon=!1,this.images=[],this.price=[],this.amount=[],this.symbol=[]}render(){return(0,l.dy)`
      <wui-flex>
        <wui-transaction-visual
          .status=${this.status}
          direction=${(0,tk.o)(this.direction)}
          type=${this.type}
          onlyDirectionIcon=${(0,tk.o)(this.onlyDirectionIcon)}
          .images=${this.images}
        ></wui-transaction-visual>
        <wui-flex flexDirection="column" gap="3xs">
          <wui-text variant="paragraph-600" color="fg-100">
            ${s[this.type]||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(){let e=this.descriptions?.[0];return e?(0,l.dy)`
          <wui-text variant="small-500" color="fg-200">
            <span>${e}</span>
          </wui-text>
        `:null}templateSecondDescription(){let e=this.descriptions?.[1];return e?(0,l.dy)`
          <wui-icon class="description-separator-icon" size="xxs" name="arrowRight"></wui-icon>
          <wui-text variant="small-400" color="fg-200">
            <span>${e}</span>
          </wui-text>
        `:null}};rV.styles=[m,rH],rW([(0,_.Cb)()],rV.prototype,"type",void 0),rW([(0,_.Cb)({type:Array})],rV.prototype,"descriptions",void 0),rW([(0,_.Cb)()],rV.prototype,"date",void 0),rW([(0,_.Cb)({type:Boolean})],rV.prototype,"onlyDirectionIcon",void 0),rW([(0,_.Cb)()],rV.prototype,"status",void 0),rW([(0,_.Cb)()],rV.prototype,"direction",void 0),rW([(0,_.Cb)({type:Array})],rV.prototype,"images",void 0),rW([(0,_.Cb)({type:Array})],rV.prototype,"price",void 0),rW([(0,_.Cb)({type:Array})],rV.prototype,"amount",void 0),rW([(0,_.Cb)({type:Array})],rV.prototype,"symbol",void 0),rV=rW([y("wui-transaction-list-item")],rV);var rZ=(0,l.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;
  }
`;let rG=class extends l.oi{render(){return(0,l.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>
    `}};rG.styles=[m,rZ],rG=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([y("wui-transaction-list-item-loader")],rG);var rK=(0,l.iv)`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--wui-spacing-m);
    padding: 0 var(--wui-spacing-3xs) !important;
    border-radius: var(--wui-border-radius-5xs);
  }

  :host > wui-text {
    transform: translateY(5%);
  }

  :host([data-variant='main']) {
    background-color: var(--wui-color-accent-glass-015);
    color: var(--wui-color-accent-100);
  }

  :host([data-variant='shade']) {
    background-color: var(--wui-color-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);
  }

  :host([data-size='lg']) {
    padding: 11px 5px !important;
  }

  :host([data-size='lg']) > wui-text {
    transform: translateY(2%);
  }
`,rY=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rQ=class extends l.oi{constructor(){super(...arguments),this.variant="main",this.size="lg"}render(){this.dataset.variant=this.variant,this.dataset.size=this.size;let e="md"===this.size?"mini-700":"micro-700";return(0,l.dy)`
      <wui-text data-variant=${this.variant} variant=${e} color="inherit">
        <slot></slot>
      </wui-text>
    `}};rQ.styles=[m,rK],rY([(0,_.Cb)()],rQ.prototype,"variant",void 0),rY([(0,_.Cb)()],rQ.prototype,"size",void 0),rQ=rY([y("wui-tag")],rQ);var rJ=(0,l.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-color-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;
  }

  button:disabled {
    background-color: var(--wui-color-gray-glass-015);
    color: var(--wui-color-gray-glass-015);
  }

  button:disabled > wui-tag {
    background-color: var(--wui-color-gray-glass-010);
    color: var(--wui-color-fg-300);
  }

  wui-icon {
    color: var(--wui-color-fg-200) !important;
  }
`,rX=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r0=class extends l.oi{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.installed=!1,this.disabled=!1,this.showAllWallets=!1}render(){return(0,l.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?(0,l.dy)` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?(0,l.dy)` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?(0,l.dy)`<wui-wallet-image
        size="sm"
        imageSrc=${this.imageSrc}
        name=${this.name}
        .installed=${this.installed}
      ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:(0,l.dy)`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.tagLabel&&this.tagVariant?(0,l.dy)`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?(0,l.dy)`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};r0.styles=[m,v,rJ],rX([(0,_.Cb)({type:Array})],r0.prototype,"walletImages",void 0),rX([(0,_.Cb)()],r0.prototype,"imageSrc",void 0),rX([(0,_.Cb)()],r0.prototype,"name",void 0),rX([(0,_.Cb)()],r0.prototype,"tagLabel",void 0),rX([(0,_.Cb)()],r0.prototype,"tagVariant",void 0),rX([(0,_.Cb)()],r0.prototype,"icon",void 0),rX([(0,_.Cb)()],r0.prototype,"walletIcon",void 0),rX([(0,_.Cb)({type:Boolean})],r0.prototype,"installed",void 0),rX([(0,_.Cb)({type:Boolean})],r0.prototype,"disabled",void 0),rX([(0,_.Cb)({type:Boolean})],r0.prototype,"showAllWallets",void 0),r0=rX([y("wui-list-wallet")],r0);var r1=(0,l.iv)`
  :host {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-005);
    overflow: hidden;
  }

  wui-icon {
    width: 100%;
    height: 100%;
  }
`,r2=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r3=class extends l.oi{constructor(){super(...arguments),this.logo="google"}render(){return(0,l.dy)`<wui-icon color="inherit" size="inherit" name=${this.logo}></wui-icon> `}};r3.styles=[m,r1],r2([(0,_.Cb)()],r3.prototype,"logo",void 0),r3=r2([y("wui-logo")],r3);var r5=(0,l.iv)`
  :host {
    display: block;
    width: 100%;
  }

  button {
    width: 100%;
    height: 56px;
    background: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }
`,r6=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r4=class extends l.oi{constructor(){super(...arguments),this.logo="google",this.disabled=!1}render(){return(0,l.dy)`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-logo logo=${this.logo}></wui-logo>
      </button>
    `}};r4.styles=[m,v,r5],r6([(0,_.Cb)()],r4.prototype,"logo",void 0),r6([(0,_.Cb)({type:Boolean})],r4.prototype,"disabled",void 0),r4=r6([y("wui-logo-select")],r4);var r8=(0,l.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-color-gray-glass-010);
    background-color: var(--wui-color-gray-glass-005);
    color: var(--wui-color-fg-100);
  }

  button:disabled {
    border: 1px solid var(--wui-color-gray-glass-005);
    background-color: var(--wui-color-gray-glass-015);
    color: var(--wui-color-gray-glass-015);
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-gray-glass-010);
    }

    button:active:enabled {
      background-color: var(--wui-color-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-color-gray-glass-005);
  }
`,r9=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r7=class extends l.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.isUnsupportedChain=void 0,this.disabled=!1}render(){return(0,l.dy)`
      <button data-testid="w3m-network-button" ?disabled=${this.disabled}>
        ${this.visualTemplate()}
        <wui-text variant="paragraph-600" color="inherit">
          <slot></slot>
        </wui-text>
      </button>
    `}visualTemplate(){return this.isUnsupportedChain?(0,l.dy)`
        <wui-icon-box
          size="sm"
          iconColor="error-100"
          backgroundColor="error-100"
          icon="warningCircle"
        ></wui-icon-box>
      `:this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,l.dy)`
      <wui-icon-box
        size="sm"
        iconColor="inverse-100"
        backgroundColor="fg-100"
        icon="networkPlaceholder"
      ></wui-icon-box>
    `}};r7.styles=[m,v,r8],r9([(0,_.Cb)()],r7.prototype,"imageSrc",void 0),r9([(0,_.Cb)({type:Boolean})],r7.prototype,"isUnsupportedChain",void 0),r9([(0,_.Cb)({type:Boolean})],r7.prototype,"disabled",void 0),r7=r9([y("wui-network-button")],r7);var ne=(0,l.iv)`
  :host {
    position: relative;
    display: block;
  }
`,nt=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nr=class extends l.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)=>{let r=e.target,n=this.getInputElement(r);if(!n)return;["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();let i=n.selectionStart;switch(e.key){case"ArrowLeft":i&&n.setSelectionRange(i+1,i+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===n.value?this.focusInputField("prev",t):this.updateInput(n,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){let e=t+1;if(!this.shouldInputBeEnabled(e))return;let r=this.numerics[e<this.length?e:t],n=r?this.getInputElement(r):void 0;n&&(n.disabled=!1,n.focus())}if("prev"===e){let e=t-1,r=this.numerics[e>-1?e:t],n=r?this.getInputElement(r):void 0;n&&n.focus()}}}firstUpdated(){this.otp&&(this.values=this.otp.split(""));let e=this.shadowRoot?.querySelectorAll("wui-input-numeric");e&&(this.numerics=Array.from(e)),this.numerics[0]?.focus()}render(){return(0,l.dy)`
      <wui-flex gap="xxs" data-testid="wui-otp-input">
        ${Array.from({length:this.length}).map((e,t)=>(0,l.dy)`
            <wui-input-numeric
              @input=${e=>this.handleInput(e,t)}
              @click=${e=>this.selectInput(e)}
              @keydown=${e=>this.handleKeyDown(e,t)}
              .disabled=${!this.shouldInputBeEnabled(t)}
              .value=${this.values[t]||""}
            >
            </wui-input-numeric>
          `)}
      </wui-flex>
    `}updateInput(e,t,r){let n=this.numerics[t],i=e||(n?this.getInputElement(n):void 0);i&&(i.value=r,this.values=this.values.map((e,n)=>n===t?r:e))}selectInput(e){let t=e.target;if(t){let e=this.getInputElement(t);e?.select()}}handleInput(e,t){let r=e.target,n=this.getInputElement(r);if(n){let r=n.value;"insertFromPaste"===e.inputType?this.handlePaste(n,r,t):tE.isNumber(r)&&e.data?(this.updateInput(n,t,e.data),this.focusInputField("next",t)):this.updateInput(n,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,r){let n=t[0];if(n&&tE.isNumber(n)){this.updateInput(e,r,n);let i=t.substring(1);if(r+1<this.length&&i.length){let e=this.numerics[r+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,i,r+1)}else this.focusInputField("next",r)}else this.updateInput(e,r,"")}getInputElement(e){return e.shadowRoot?.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){let e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};nr.styles=[m,ne],nt([(0,_.Cb)({type:Number})],nr.prototype,"length",void 0),nt([(0,_.Cb)({type:String})],nr.prototype,"otp",void 0),nt([(0,_.SB)()],nr.prototype,"values",void 0),nr=nt([y("wui-otp")],nr);var nn=r(54249);function ni(e,t,r){return e!==t&&(e-t<0?t-e:e-t)<=r+.1}let no={generate(e,t,r){let n="#141414",i=[],o=function(e,t){let r=Array.prototype.slice.call(nn.create(e,{errorCorrectionLevel:"Q"}).modules.data,0),n=Math.sqrt(r.length);return r.reduce((e,t,r)=>(r%n==0?e.push([t]):e[e.length-1].push(t))&&e,[])}(e,0),a=t/o.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach(({x:e,y:t})=>{let r=(o.length-7)*a*e,c=(o.length-7)*a*t;for(let e=0;e<s.length;e+=1){let t=a*(7-2*e);i.push((0,l.YP)`
            <rect
              fill=${2===e?n:"transparent"}
              width=${0===e?t-5:t}
              rx= ${0===e?(t-5)*.45:.45*t}
              ry= ${0===e?(t-5)*.45:.45*t}
              stroke=${n}
              stroke-width=${0===e?5:0}
              height=${0===e?t-5:t}
              x= ${0===e?c+a*e+2.5:c+a*e}
              y= ${0===e?r+a*e+2.5:r+a*e}
            />
          `)}});let c=Math.floor((r+25)/a),u=o.length/2-c/2,d=o.length/2+c/2-1,h=[];o.forEach((e,t)=>{e.forEach((e,r)=>{!o[t][r]||t<7&&r<7||t>o.length-8&&r<7||t<7&&r>o.length-8||t>u&&t<d&&r>u&&r<d||h.push([t*a+a/2,r*a+a/2])})});let f={};return h.forEach(([e,t])=>{f[e]?f[e]?.push(t):f[e]=[t]}),Object.entries(f).map(([e,t])=>{let r=t.filter(e=>t.every(t=>!ni(e,t,a)));return[Number(e),r]}).forEach(([e,t])=>{t.forEach(t=>{i.push((0,l.YP)`<circle cx=${e} cy=${t} fill=${n} r=${a/2.5} />`)})}),Object.entries(f).filter(([e,t])=>t.length>1).map(([e,t])=>{let r=t.filter(e=>t.some(t=>ni(e,t,a)));return[Number(e),r]}).map(([e,t])=>{t.sort((e,t)=>e<t?-1:1);let r=[];for(let e of t){let t=r.find(t=>t.some(t=>ni(e,t,a)));t?t.push(e):r.push([e])}return[e,r.map(e=>[e[0],e[e.length-1]])]}).forEach(([e,t])=>{t.forEach(([t,r])=>{i.push((0,l.YP)`
              <line
                x1=${e}
                x2=${e}
                y1=${t}
                y2=${r}
                stroke=${n}
                stroke-width=${a/1.25}
                stroke-linecap="round"
              />
            `)})}),i}};var na=(0,l.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);
  }

  :host([data-clear='true']) > wui-icon {
    display: none;
  }

  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);
  }
`,ns=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nl=class extends l.oi{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`--local-size: ${this.size}px`,(0,l.dy)`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){let e="light"===this.theme?this.size:this.size-32;return(0,l.YP)`
      <svg height=${e} width=${e}>
        ${no.generate(this.uri,e,this.arenaClear?0:e/4)}
      </svg>
    `}templateVisual(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?(0,l.dy)`<wui-icon
        class="farcaster"
        size="inherit"
        color="inherit"
        name="farcaster"
      ></wui-icon>`:(0,l.dy)`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};nl.styles=[m,na],ns([(0,_.Cb)()],nl.prototype,"uri",void 0),ns([(0,_.Cb)({type:Number})],nl.prototype,"size",void 0),ns([(0,_.Cb)()],nl.prototype,"theme",void 0),ns([(0,_.Cb)()],nl.prototype,"imageSrc",void 0),ns([(0,_.Cb)()],nl.prototype,"alt",void 0),ns([(0,_.Cb)({type:Boolean})],nl.prototype,"arenaClear",void 0),ns([(0,_.Cb)({type:Boolean})],nl.prototype,"farcaster",void 0),nl=ns([y("wui-qr-code")],nl);var nc=(0,l.iv)`
  :host {
    position: relative;
    display: inline-block;
    width: 100%;
  }
`;let nu=class extends l.oi{constructor(){super(...arguments),this.inputComponentRef=(0,rm.V)()}render(){return(0,l.dy)`
      <wui-input-text
        ${(0,rm.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(){let e=this.inputComponentRef.value,t=e?.inputElementRef.value;t&&(t.value="",t.focus(),t.dispatchEvent(new Event("input")))}};nu.styles=[m,nc],nu=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([y("wui-search-bar")],nu);var nd=(0,l.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-color-gray-glass-005);
    box-sizing: border-box;
    max-height: 40px;
    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);
  }

  :host wui-loading-spinner {
    margin-left: var(--wui-spacing-3xs);
  }
`,nh=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nf=class extends l.oi{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1}render(){return(0,l.dy)`
      ${this.loading?(0,l.dy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:(0,l.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>
    `}};nf.styles=[m,nd],nh([(0,_.Cb)()],nf.prototype,"backgroundColor",void 0),nh([(0,_.Cb)()],nf.prototype,"iconColor",void 0),nh([(0,_.Cb)()],nf.prototype,"icon",void 0),nh([(0,_.Cb)()],nf.prototype,"message",void 0),nh([(0,_.Cb)()],nf.prototype,"loading",void 0),nf=nh([y("wui-snackbar")],nf);var np=(0,l.iv)`
  :host {
    display: inline-flex;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-3xl);
    padding: var(--wui-spacing-3xs);
    position: relative;
    height: 36px;
    min-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-color-gray-glass-002);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
    transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color, opacity;
  }

  :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: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
    will-change: color;
  }

  button {
    width: var(--local-tab-width);
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color;
  }

  :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 {
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
    color: var(--wui-color-fg-125);
  }

  button:hover:enabled > wui-text,
  button:active:enabled > wui-text {
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
    color: var(--wui-color-fg-125);
  }

  button {
    border-radius: var(--wui-border-radius-3xl);
  }
`,ng=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nm=class extends l.oi{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`
      --local-tab: ${this.activeTab};
      --local-tab-width: ${this.localTabWidth};
    `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((e,t)=>{let r=t===this.activeTab;return(0,l.dy)`
        <button
          ?disabled=${this.disabled}
          @click=${()=>this.onTabClick(t)}
          data-active=${r}
          data-testid="tab-${e.label?.toLowerCase()}"
        >
          ${this.iconTemplate(e)}
          <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))}iconTemplate(e){return e.icon?(0,l.dy)`<wui-icon size="xs" color="inherit" name=${e.icon}></wui-icon>`:null}onTabClick(e){this.buttons&&this.animateTabs(e,!1),this.activeTab=e,this.onTabChange(e)}animateTabs(e,t){let r=this.buttons[this.activeTab],n=this.buttons[e],i=r?.querySelector("wui-text"),o=n?.querySelector("wui-text"),a=n?.getBoundingClientRect(),s=o?.getBoundingClientRect();r&&i&&!t&&e!==this.activeTab&&(i.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),r.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),n&&a&&s&&o&&(e!==this.activeTab||t)&&(this.localTabWidth=`${Math.round(a.width+s.width)+6}px`,n.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"}))}};nm.styles=[m,v,np],ng([(0,_.Cb)({type:Array})],nm.prototype,"tabs",void 0),ng([(0,_.Cb)()],nm.prototype,"onTabChange",void 0),ng([(0,_.Cb)({type:Array})],nm.prototype,"buttons",void 0),ng([(0,_.Cb)({type:Boolean})],nm.prototype,"disabled",void 0),ng([(0,_.Cb)()],nm.prototype,"localTabWidth",void 0),ng([(0,_.SB)()],nm.prototype,"activeTab",void 0),ng([(0,_.SB)()],nm.prototype,"isDense",void 0),nm=ng([y("wui-tabs")],nm);var nv=(0,l.iv)`
  :host {
    display: block;
  }

  :host > button {
    gap: var(--wui-spacing-xxs);
    padding: var(--wui-spacing-xs);
    padding-right: var(--wui-spacing-1xs);
    height: 40px;
    border-radius: var(--wui-border-radius-l);
    background: var(--wui-color-gray-glass-002);
    border-width: 0px;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
  }

  :host > button wui-image {
    width: 24px;
    height: 24px;
    border-radius: var(--wui-border-radius-s);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }
`,nb=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ny=class extends l.oi{constructor(){super(...arguments),this.text=""}render(){return(0,l.dy)`
      <button ontouchstart>
        ${this.tokenTemplate()}
        <wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text>
      </button>
    `}tokenTemplate(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,l.dy)`
      <wui-icon-box
        size="sm"
        iconColor="fg-200"
        backgroundColor="fg-300"
        icon="networkPlaceholder"
      ></wui-icon-box>
    `}};ny.styles=[m,v,nv],nb([(0,_.Cb)()],ny.prototype,"imageSrc",void 0),nb([(0,_.Cb)()],ny.prototype,"text",void 0),ny=nb([y("wui-token-button")],ny);var nw=(0,l.iv)`
  :host {
    display: block;
    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);

    color: var(--wui-color-bg-100);
    position: relative;
  }

  :host([data-variant='shade']) {
    background-color: var(--wui-color-bg-150);
    border: 1px solid var(--wui-color-gray-glass-005);
  }

  :host([data-variant='shade']) > wui-text {
    color: var(--wui-color-fg-150);
  }

  :host([data-variant='fill']) {
    background-color: var(--wui-color-fg-100);
    border: none;
  }

  wui-icon {
    position: absolute;
    width: 12px !important;
    height: 4px !important;
  }

  wui-icon[data-placement='top'] {
    bottom: 0px;
    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);
  }
`,nx=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let n_=class extends l.oi{constructor(){super(...arguments),this.placement="top",this.variant="fill",this.message=""}render(){return this.dataset.variant=this.variant,(0,l.dy)`<wui-icon
        data-placement=${this.placement}
        color="fg-100"
        size="inherit"
        name=${"fill"===this.variant?"cursor":"cursorTransparent"}
      ></wui-icon>
      <wui-text color="inherit" variant="small-500">${this.message}</wui-text>`}};n_.styles=[m,v,nw],nx([(0,_.Cb)()],n_.prototype,"placement",void 0),nx([(0,_.Cb)()],n_.prototype,"variant",void 0),nx([(0,_.Cb)()],n_.prototype,"message",void 0),n_=nx([y("wui-tooltip")],n_);var nC=(0,l.iv)`
  :host {
    height: 60px;
    min-height: 60px;
  }

  :host > wui-flex {
    cursor: pointer;
    height: 100%;
    display: flex;
    column-gap: var(--wui-spacing-s);
    padding: var(--wui-spacing-xs);
    padding-right: var(--wui-spacing-l);
    width: 100%;
    background-color: transparent;
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-250);
    transition:
      background-color var(--wui-ease-out-power-1) var(--wui-duration-lg),
      opacity var(--wui-ease-out-power-1) var(--wui-duration-lg);
    will-change: background-color, opacity;
  }

  @media (hover: hover) and (pointer: fine) {
    :host > wui-flex:hover {
      background-color: var(--wui-color-gray-glass-002);
    }

    :host > wui-flex:active {
      background-color: var(--wui-color-gray-glass-005);
    }
  }

  :host([disabled]) > wui-flex {
    opacity: 0.6;
  }

  :host([disabled]) > wui-flex:hover {
    background-color: transparent;
  }

  :host > wui-flex > wui-flex {
    flex: 1;
  }

  :host > wui-flex > wui-image,
  :host > wui-flex > .token-item-image-placeholder {
    width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-3xl);
    position: relative;
  }

  :host > wui-flex > .token-item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  :host > wui-flex > wui-image::after,
  :host > wui-flex > .token-item-image-placeholder::after {
    position: absolute;
    content: '';
    inset: 0;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
    border-radius: var(--wui-border-radius-l);
  }

  button > wui-icon-box[data-variant='square-blue'] {
    border-radius: var(--wui-border-radius-3xs);
    position: relative;
    border: none;
    width: 36px;
    height: 36px;
  }
`,nA=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nk=class extends l.oi{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.imageSrc=void 0,this.name=void 0,this.symbol=void 0,this.price=void 0,this.amount=void 0,this.visible=!1,this.imageError=!1,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?this.visible=!0:this.visible=!1})},{threshold:.1})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){if(!this.visible)return null;let e=this.amount&&this.price?d.C6.multiply(this.price,this.amount)?.toFixed(3):null;return(0,l.dy)`
      <wui-flex alignItems="center">
        ${this.visualTemplate()}
        <wui-flex flexDirection="column" gap="3xs">
          <wui-flex justifyContent="space-between">
            <wui-text variant="paragraph-500" color="fg-100" lineClamp="1">${this.name}</wui-text>
            ${e?(0,l.dy)`
                  <wui-text variant="paragraph-500" color="fg-100">
                    $${tE.formatNumberToLocalString(e,3)}
                  </wui-text>
                `:null}
          </wui-flex>
          <wui-flex justifyContent="space-between">
            <wui-text variant="small-400" color="fg-200" lineClamp="1">${this.symbol}</wui-text>
            ${this.amount?(0,l.dy)`<wui-text variant="small-400" color="fg-200">
                  ${tE.formatNumberToLocalString(this.amount,4)}
                </wui-text>`:null}
          </wui-flex>
        </wui-flex>
      </wui-flex>
    `}visualTemplate(){return this.imageError?(0,l.dy)`<wui-flex class="token-item-image-placeholder">
        <wui-icon name="image" color="inherit"></wui-icon>
      </wui-flex>`:this.imageSrc?(0,l.dy)`<wui-image
        width="40"
        height="40"
        src=${this.imageSrc}
        @onLoadError=${this.imageLoadError}
      ></wui-image>`:null}imageLoadError(){this.imageError=!0}};nk.styles=[m,v,nC],nA([(0,_.Cb)()],nk.prototype,"imageSrc",void 0),nA([(0,_.Cb)()],nk.prototype,"name",void 0),nA([(0,_.Cb)()],nk.prototype,"symbol",void 0),nA([(0,_.Cb)()],nk.prototype,"price",void 0),nA([(0,_.Cb)()],nk.prototype,"amount",void 0),nA([(0,_.SB)()],nk.prototype,"visible",void 0),nA([(0,_.SB)()],nk.prototype,"imageError",void 0),nk=nA([y("wui-token-list-item")],nk);var nE=(0,l.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;
  }
`,nS=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nT=class extends l.oi{render(){return this.style.cssText=`--local-border-radius: ${this.borderRadiusFull?"1000px":"20px"}; background-color: var(--wui-color-modal-bg);`,(0,l.dy)`${this.templateVisual()}`}templateVisual(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.alt??""}></wui-image>`:(0,l.dy)`<wui-icon
      data-parent-size="md"
      size="inherit"
      color="inherit"
      name="walletPlaceholder"
    ></wui-icon>`}};nT.styles=[m,nE],nS([(0,_.Cb)()],nT.prototype,"imageSrc",void 0),nS([(0,_.Cb)()],nT.prototype,"alt",void 0),nS([(0,_.Cb)({type:Boolean})],nT.prototype,"borderRadiusFull",void 0),nT=nS([y("wui-visual-thumbnail")],nT);var nI=(0,l.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-color-accent-glass-010);
  }

  button:hover {
    background-color: var(--wui-color-accent-glass-015) !important;
  }

  button:active {
    background-color: var(--wui-color-accent-glass-020) !important;
  }
`,nP=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nO=class extends l.oi{constructor(){super(...arguments),this.label="",this.description="",this.icon="wallet"}render(){return(0,l.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>
    `}};nO.styles=[m,v,nI],nP([(0,_.Cb)()],nO.prototype,"label",void 0),nP([(0,_.Cb)()],nO.prototype,"description",void 0),nP([(0,_.Cb)()],nO.prototype,"icon",void 0),nO=nP([y("wui-notice-card")],nO);var nR=(0,l.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-color-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-150), 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;
  }
`,nM=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nN=class extends l.oi{constructor(){super(...arguments),this.textTitle="",this.overflowedContent="",this.toggled=!1,this.enableAccordion=!1,this.scrollElement=void 0,this.scrollHeightElement=0}updated(e){super.updated(e),(e.has("textTitle")||e.has("overflowedContent"))&&setTimeout(()=>{this.checkHeight()},1)}checkHeight(){this.updateComplete.then(()=>{let e=this.shadowRoot?.querySelector(".heightContent"),t=this.shadowRoot?.querySelector(".textContent");if(e&&t){this.scrollElement=e;let r=t?.scrollHeight;r&&r>100&&(this.enableAccordion=!0,this.scrollHeightElement=r,this.requestUpdate())}})}render(){return(0,l.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||!!this.toggled}
          class="overflowedContent"
        >
          <div class="heightContent">
            <wui-text class="textContent" variant="paragraph-400" color="fg-200">
              <pre>${this.overflowedContent}</pre>
            </wui-text>
          </div>
        </div>
      </button>
    `}onClick(){let e=this.shadowRoot?.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"}),e&&e.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?(0,l.dy)` <wui-icon color="fg-100" size="sm" name="chevronBottom"></wui-icon>`:null}};nN.styles=[m,v,nR],nM([(0,_.Cb)()],nN.prototype,"textTitle",void 0),nM([(0,_.Cb)()],nN.prototype,"overflowedContent",void 0),nN=nM([y("wui-list-accordion")],nN);var nj=(0,l.iv)`
  :host {
    display: flex;
    column-gap: var(--wui-spacing-s);
    padding: 17px 18px 17px var(--wui-spacing-m);
    width: 100%;
    background-color: var(--wui-color-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);
  }
`,nD=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nB=class extends l.oi{constructor(){super(...arguments),this.imageSrc=void 0,this.textTitle="",this.textValue=void 0}render(){return(0,l.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?(0,l.dy)`<wui-image src=${this.imageSrc} alt=${this.textTitle}></wui-image>`:this.textValue?(0,l.dy)` <wui-text variant="paragraph-400" color="fg-100"> ${this.textValue} </wui-text>`:(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};nB.styles=[m,v,nj],nD([(0,_.Cb)()],nB.prototype,"imageSrc",void 0),nD([(0,_.Cb)()],nB.prototype,"textTitle",void 0),nD([(0,_.Cb)()],nB.prototype,"textValue",void 0),nB=nD([y("wui-list-content")],nB);var nL=(0,l.iv)`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
    width: 100%;
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-100);
  }

  button > wui-text:nth-child(2) {
    display: flex;
    flex: 1;
  }

  button[data-transparent='true'] {
    pointer-events: none;
    background-color: transparent;
  }

  button:hover {
    background-color: var(--wui-color-gray-glass-002);
  }

  button:active {
    background-color: var(--wui-color-gray-glass-005);
  }

  wui-image {
    width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
    border-radius: 100%;
  }

  button:disabled {
    background-color: var(--wui-color-gray-glass-002);
    opacity: 0.5;
    cursor: not-allowed;
  }

  button:disabled > wui-tag {
    background-color: var(--wui-color-gray-glass-010);
    color: var(--wui-color-fg-300);
  }
`,n$=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nU=class extends l.oi{constructor(){super(...arguments),this.imageSrc="",this.name="",this.disabled=!1,this.selected=!1,this.transparent=!1}render(){return(0,l.dy)`
      <button data-transparent=${this.transparent} ?disabled=${this.disabled} ontouchstart>
        <wui-flex gap="s" alignItems="center">
          ${this.templateNetworkImage()}
          <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text></wui-flex
        >
        ${this.checkmarkTemplate()}
      </button>
    `}checkmarkTemplate(){return this.selected?(0,l.dy)`<wui-icon size="sm" color="accent-100" name="checkmarkBold"></wui-icon>`:null}templateNetworkImage(){return this.imageSrc?(0,l.dy)`<wui-image size="sm" src=${this.imageSrc} name=${this.name}></wui-image>`:this.imageSrc?null:(0,l.dy)`<wui-network-image
        ?round=${!0}
        size="md"
        name=${this.name}
      ></wui-network-image>`}};nU.styles=[m,v,nL],n$([(0,_.Cb)()],nU.prototype,"imageSrc",void 0),n$([(0,_.Cb)()],nU.prototype,"name",void 0),n$([(0,_.Cb)({type:Boolean})],nU.prototype,"disabled",void 0),n$([(0,_.Cb)({type:Boolean})],nU.prototype,"selected",void 0),n$([(0,_.Cb)({type:Boolean})],nU.prototype,"transparent",void 0),nU=n$([y("wui-list-network")],nU);var nz=(0,l.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-color-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);
  }
`,nF=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nq=class extends l.oi{constructor(){super(...arguments),this.amount="",this.networkCurreny="",this.networkImageUrl="",this.receiverAddress="",this.addressExplorerUrl=""}render(){return(0,l.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.addressExplorerUrl}
          title=${this.receiverAddress}
        ></wui-chip>
      </wui-flex>
    `}templateNetworkVisual(){return this.networkImageUrl?(0,l.dy)`<wui-image src=${this.networkImageUrl} alt="Network Image"></wui-image>`:(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};nq.styles=[m,v,nz],nF([(0,_.Cb)()],nq.prototype,"amount",void 0),nF([(0,_.Cb)()],nq.prototype,"networkCurreny",void 0),nF([(0,_.Cb)()],nq.prototype,"networkImageUrl",void 0),nF([(0,_.Cb)()],nq.prototype,"receiverAddress",void 0),nF([(0,_.Cb)()],nq.prototype,"addressExplorerUrl",void 0),nq=nF([y("wui-list-wallet-transaction")],nq);var nH=(0,l.iv)`
  button {
    display: flex;
    gap: var(--wui-spacing-3xs);
    align-items: center;
    padding: 6.25px var(--wui-spacing-xs) 7.25px var(--wui-spacing-s);
    background-color: var(--wui-color-gray-glass-090);
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-060);
    transition: background-color var(--wui-duration-md) var(--wui-ease-inout-power-1);
    will-change: background-color;
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-gray-glass-080);
    }

    button:active:enabled {
      background-color: var(--wui-color-gray-glass-060);
    }
  }
`,nW=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nV=class extends l.oi{constructor(){super(...arguments),this.text=""}render(){return(0,l.dy)`<button ontouchstart>
      <wui-text variant="small-600" color="bg-100">${this.text}</wui-text>
      <wui-icon color="bg-100" size="xs" name="arrowRight"></wui-icon>
    </button>`}};nV.styles=[m,v,nH],nW([(0,_.Cb)()],nV.prototype,"text",void 0),nV=nW([y("wui-promo")],nV);var nZ=(0,l.iv)`
  span {
    font-weight: 500;
    font-size: 40px;
    color: var(--wui-color-fg-100);
    line-height: 130%; /* 52px */
    letter-spacing: -1.6px;
    text-align: center;
  }

  .pennies {
    color: var(--wui-color-fg-200);
  }
`,nG=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nK=class extends l.oi{constructor(){super(...arguments),this.dollars="0",this.pennies="00"}render(){return(0,l.dy)`<span>$${this.dollars}<span class="pennies">.${this.pennies}</span></span>`}};nK.styles=[m,nZ],nG([(0,_.Cb)()],nK.prototype,"dollars",void 0),nG([(0,_.Cb)()],nK.prototype,"pennies",void 0),nK=nG([y("wui-balance")],nK);var nY=(0,l.iv)`
  button {
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-002);
    padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs);
    position: relative;
  }

  wui-avatar {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 0;
    outline: 3px solid var(--wui-color-gray-glass-005);
  }

  wui-icon-box,
  wui-image {
    width: 16px;
    height: 16px;
    border-radius: var(--wui-border-radius-3xl);
    position: absolute;
    left: 26px;
    top: 24px;
  }

  wui-image {
    outline: 2px solid var(--wui-color-bg-125);
  }

  wui-icon-box {
    outline: 2px solid var(--wui-color-bg-200);
    background-color: var(--wui-color-bg-250);
  }
`,nQ=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nJ=class extends l.oi{constructor(){super(...arguments),this.networkSrc=void 0,this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="chevronBottom"}render(){return(0,l.dy)`<button ontouchstart data-testid="wui-profile-button">
      <wui-flex gap="xs" alignItems="center">
        <wui-avatar
          .imageSrc=${this.avatarSrc}
          alt=${this.address}
          address=${this.address}
        ></wui-avatar>
        ${this.networkImageTemplate()}
        <wui-flex gap="xs" alignItems="center">
          <wui-text variant="large-600" color="fg-100">
            ${tE.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
          </wui-text>
          <wui-icon size="sm" color="fg-200" name=${this.icon}></wui-icon>
        </wui-flex>
      </wui-flex>
    </button>`}networkImageTemplate(){return this.networkSrc?(0,l.dy)`<wui-image src=${this.networkSrc}></wui-image>`:(0,l.dy)`
      <wui-icon-box
        size="xxs"
        iconColor="fg-200"
        backgroundColor="bg-100"
        icon="networkPlaceholder"
      ></wui-icon-box>
    `}};nJ.styles=[m,v,nY],nQ([(0,_.Cb)()],nJ.prototype,"networkSrc",void 0),nQ([(0,_.Cb)()],nJ.prototype,"avatarSrc",void 0),nQ([(0,_.Cb)()],nJ.prototype,"profileName",void 0),nQ([(0,_.Cb)()],nJ.prototype,"address",void 0),nQ([(0,_.Cb)()],nJ.prototype,"icon",void 0),nJ=nQ([y("wui-profile-button")],nJ);var nX=(0,l.iv)`
  button {
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-002);
    padding: var(--wui-spacing-xs) var(--wui-spacing-s) var(--wui-spacing-xs) var(--wui-spacing-xs);
    position: relative;
  }

  wui-avatar {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 0;
    outline: 3px solid var(--wui-color-gray-glass-005);
  }

  wui-icon-box,
  wui-image {
    width: 16px;
    height: 16px;
    border-radius: var(--wui-border-radius-3xl);
    position: absolute;
    left: 26px;
    top: 24px;
  }

  wui-image {
    outline: 2px solid var(--wui-color-bg-125);
  }

  wui-icon-box {
    outline: 2px solid var(--wui-color-bg-200);
    background-color: var(--wui-color-bg-250);
  }
`,n0=r(77548),n1=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let n2=class extends l.oi{constructor(){super(...arguments),this.avatarSrc=void 0,this.profileName="",this.address="",this.icon="mail",this.connectedConnector=n0.MO.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector}render(){return(0,l.dy)`<button ontouchstart data-testid="wui-profile-button" @click=${this.handleClick}>
      <wui-flex gap="xs" alignItems="center">
        <wui-avatar
          .imageSrc=${this.avatarSrc}
          alt=${this.address}
          address=${this.address}
        ></wui-avatar>
        ${this.shouldShowIcon?this.getIconTemplate(this.icon):""}
        <wui-flex gap="xs" alignItems="center">
          <wui-text variant="large-600" color="fg-100">
            ${tE.getTruncateString({string:this.profileName||this.address,charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
          </wui-text>
          <wui-icon size="sm" color="fg-200" name="copy" id="copy-address"></wui-icon>
        </wui-flex>
      </wui-flex>
    </button>`}handleClick(e){if(e.target instanceof HTMLElement&&"copy-address"===e.target.id){this.onCopyClick?.(e);return}this.onProfileClick?.(e)}getIconTemplate(e){return(0,l.dy)`
      <wui-icon-box
        size="xxs"
        iconColor="fg-200"
        backgroundColor="bg-100"
        icon="${e||"networkPlaceholder"}"
      ></wui-icon-box>
    `}};n2.styles=[m,v,nX],n1([(0,_.Cb)()],n2.prototype,"avatarSrc",void 0),n1([(0,_.Cb)()],n2.prototype,"profileName",void 0),n1([(0,_.Cb)()],n2.prototype,"address",void 0),n1([(0,_.Cb)()],n2.prototype,"icon",void 0),n1([(0,_.Cb)()],n2.prototype,"onProfileClick",void 0),n1([(0,_.Cb)()],n2.prototype,"onCopyClick",void 0),n2=n1([y("wui-profile-button-v2")],n2);var n3=(0,l.iv)`
  button {
    border: none;
    border-radius: var(--wui-border-radius-3xl);
  }

  button[data-variant='main'] {
    background-color: var(--wui-color-accent-100);
    color: var(--wui-color-inverse-100);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  button[data-variant='accent'] {
    background-color: var(--wui-color-accent-glass-010);
    color: var(--wui-color-accent-100);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  button[data-variant='gray'] {
    background-color: transparent;
    color: var(--wui-color-fg-200);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  button[data-variant='shade'] {
    background-color: transparent;
    color: var(--wui-color-accent-100);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  button[data-size='sm'] {
    height: 32px;
    padding: 0 var(--wui-spacing-s);
  }

  button[data-size='md'] {
    height: 40px;
    padding: 0 var(--wui-spacing-l);
  }

  button[data-size='sm'] > wui-image {
    width: 16px;
    height: 16px;
  }

  button[data-size='md'] > wui-image {
    width: 24px;
    height: 24px;
  }

  button[data-size='sm'] > wui-icon {
    width: 12px;
    height: 12px;
  }

  button[data-size='md'] > wui-icon {
    width: 14px;
    height: 14px;
  }

  wui-image {
    border-radius: var(--wui-border-radius-3xl);
    overflow: hidden;
  }

  button.disabled > wui-icon,
  button.disabled > wui-image {
    filter: grayscale(1);
  }

  button[data-variant='main'] > wui-image {
    box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
  }

  button[data-variant='shade'] > wui-image,
  button[data-variant='gray'] > wui-image {
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  @media (hover: hover) and (pointer: fine) {
    button[data-variant='main']:focus-visible {
      background-color: var(--wui-color-accent-090);
    }

    button[data-variant='main']:hover:enabled {
      background-color: var(--wui-color-accent-090);
    }

    button[data-variant='main']:active:enabled {
      background-color: var(--wui-color-accent-080);
    }

    button[data-variant='accent']:hover:enabled {
      background-color: var(--wui-color-accent-glass-015);
    }

    button[data-variant='accent']:active:enabled {
      background-color: var(--wui-color-accent-glass-020);
    }

    button[data-variant='shade']:focus-visible,
    button[data-variant='gray']:focus-visible,
    button[data-variant='shade']:hover,
    button[data-variant='gray']:hover {
      background-color: var(--wui-color-gray-glass-002);
    }

    button[data-variant='gray']:active,
    button[data-variant='shade']:active {
      background-color: var(--wui-color-gray-glass-005);
    }
  }

  button.disabled {
    color: var(--wui-color-gray-glass-020);
    background-color: var(--wui-color-gray-glass-002);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    pointer-events: none;
  }
`,n5=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let n6=class extends l.oi{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){let e="sm"===this.size?"small-600":"paragraph-600";return(0,l.dy)`
      <button
        class=${this.disabled?"disabled":""}
        data-variant=${this.variant}
        data-size=${this.size}
      >
        ${this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc}></wui-image>`:null}
        <wui-text variant=${e} color="inherit"> ${this.text} </wui-text>
        <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
      </button>
    `}};n6.styles=[m,v,n3],n5([(0,_.Cb)()],n6.prototype,"variant",void 0),n5([(0,_.Cb)()],n6.prototype,"imageSrc",void 0),n5([(0,_.Cb)({type:Boolean})],n6.prototype,"disabled",void 0),n5([(0,_.Cb)()],n6.prototype,"icon",void 0),n5([(0,_.Cb)()],n6.prototype,"size",void 0),n5([(0,_.Cb)()],n6.prototype,"text",void 0),n6=n5([y("wui-chip-button")],n6);var n4=(0,l.iv)`
  button {
    display: flex;
    gap: var(--wui-spacing-xl);
    width: 100%;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xxs);
    padding: var(--wui-spacing-m) var(--wui-spacing-s);
  }

  wui-text {
    width: 100%;
  }

  wui-flex {
    width: auto;
  }

  .network-icon {
    width: var(--wui-spacing-2l);
    height: var(--wui-spacing-2l);
    border-radius: calc(var(--wui-spacing-2l) / 2);
    overflow: hidden;
    box-shadow:
      0 0 0 3px var(--wui-color-gray-glass-002),
      0 0 0 3px var(--wui-color-modal-bg);
  }
`,n8=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let n9=class extends l.oi{constructor(){super(...arguments),this.networkImages=[""],this.text=""}render(){return(0,l.dy)`
      <button ontouchstart>
        <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
        <wui-flex gap="3xs" alignItems="center">
          ${this.networksTemplate()}
          <wui-icon name="chevronRight" size="sm" color="fg-200"></wui-icon>
        </wui-flex>
      </button>
    `}networksTemplate(){let e=this.networkImages.slice(0,5);return(0,l.dy)` <wui-flex class="networks">
      ${e?.map(e=>l.dy` <wui-flex class="network-icon"> <wui-image src=${e}></wui-image> </wui-flex>`)}
    </wui-flex>`}};n9.styles=[m,v,n4],n8([(0,_.Cb)({type:Array})],n9.prototype,"networkImages",void 0),n8([(0,_.Cb)()],n9.prototype,"text",void 0),n9=n8([y("wui-compatible-network")],n9);var n7=(0,l.iv)`
  wui-flex {
    width: 100%;
    background-color: var(--wui-color-gray-glass-005);
    border-radius: var(--wui-border-radius-s);
    padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs)
      var(--wui-spacing-1xs);
  }
`,ie=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let it=class extends l.oi{constructor(){super(...arguments),this.icon="externalLink",this.text=""}render(){return(0,l.dy)`
      <wui-flex gap="1xs" alignItems="center">
        <wui-icon-box
          size="sm"
          iconcolor="fg-200"
          backgroundcolor="fg-200"
          icon=${this.icon}
          background="transparent"
        ></wui-icon-box>
        <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
      </wui-flex>
    `}};it.styles=[m,v,n7],ie([(0,_.Cb)()],it.prototype,"icon",void 0),ie([(0,_.Cb)()],it.prototype,"text",void 0),it=ie([y("wui-banner")],it);var ir=(0,l.iv)`
  wui-flex {
    width: 100%;
    background-color: var(--wui-color-gray-glass-005);
    border-radius: var(--wui-border-radius-m);
    padding: var(--wui-spacing-1xs) var(--wui-spacing-s) var(--wui-spacing-1xs)
      var(--wui-spacing-1xs);
  }
`,ii=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let io=class extends l.oi{constructor(){super(...arguments),this.imageSrc="",this.text="",this.size=""}render(){return(0,l.dy)`
      <wui-flex gap="1xs" alignItems="center">
        <wui-avatar size=${this.size} imageSrc=${this.imageSrc}></wui-avatar>
        <wui-text variant="small-400" color="fg-200">${this.text}</wui-text>
      </wui-flex>
    `}};io.styles=[m,v,ir],ii([(0,_.Cb)()],io.prototype,"imageSrc",void 0),ii([(0,_.Cb)()],io.prototype,"text",void 0),ii([(0,_.Cb)()],io.prototype,"size",void 0),io=ii([y("wui-banner-img")],io);var ia=(0,l.iv)`
  button {
    padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
    background-color: var(--wui-color-gray-glass-002);
  }

  button[data-clickable='false'] {
    pointer-events: none;
    background-color: transparent;
  }

  wui-image,
  wui-icon {
    width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
  }

  wui-image {
    border-radius: var(--wui-border-radius-3xl);
  }
`,is=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let il=class extends l.oi{constructor(){super(...arguments),this.tokenName="",this.tokenImageUrl="",this.tokenValue=0,this.tokenAmount="0.0",this.tokenCurrency="",this.clickable=!1}render(){return(0,l.dy)`
      <button data-clickable=${String(this.clickable)} ontouchstart>
        <wui-flex gap="s" alignItems="center">
          ${this.visualTemplate()}
          <wui-flex flexDirection="column" justifyContent="spaceBetween">
            <wui-text variant="paragraph-500" color="fg-100">${this.tokenName}</wui-text>
            <wui-text variant="small-400" color="fg-200">
              ${tE.formatNumberToLocalString(this.tokenAmount,4)} ${this.tokenCurrency}
            </wui-text>
          </wui-flex>
        </wui-flex>
        <wui-text variant="paragraph-500" color="fg-100">$${this.tokenValue.toFixed(2)}</wui-text>
      </button>
    `}visualTemplate(){return this.tokenName&&this.tokenImageUrl?(0,l.dy)`<wui-image alt=${this.tokenName} src=${this.tokenImageUrl}></wui-image>`:(0,l.dy)`<wui-icon name="coinPlaceholder" color="fg-100"></wui-icon>`}};il.styles=[m,v,ia],is([(0,_.Cb)()],il.prototype,"tokenName",void 0),is([(0,_.Cb)()],il.prototype,"tokenImageUrl",void 0),is([(0,_.Cb)({type:Number})],il.prototype,"tokenValue",void 0),is([(0,_.Cb)()],il.prototype,"tokenAmount",void 0),is([(0,_.Cb)()],il.prototype,"tokenCurrency",void 0),is([(0,_.Cb)({type:Boolean})],il.prototype,"clickable",void 0),il=is([y("wui-list-token")],il);var ic=(0,l.iv)`
  button {
    width: 100%;
    display: flex;
    gap: var(--wui-spacing-s);
    align-items: center;
    justify-content: flex-start;
    padding: var(--wui-spacing-s) var(--wui-spacing-m) var(--wui-spacing-s) var(--wui-spacing-s);
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }

  wui-icon-box {
    width: var(--wui-spacing-2xl);
    height: var(--wui-spacing-2xl);
  }

  wui-flex {
    width: auto;
  }
`,iu=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let id=class extends l.oi{constructor(){super(...arguments),this.icon="card",this.text="",this.description="",this.tag=void 0,this.iconBackgroundColor="accent-100",this.iconColor="accent-100",this.disabled=!1}render(){return(0,l.dy)`
      <button ontouchstart ?disabled=${this.disabled}>
        <wui-icon-box
          iconColor=${this.iconColor}
          backgroundColor=${this.iconBackgroundColor}
          size="inherit"
          icon=${this.icon}
          iconSize="md"
        ></wui-icon-box>
        <wui-flex flexDirection="column" justifyContent="spaceBetween">
          ${this.titleTemplate()}
          <wui-text variant="small-400" color="fg-200"> ${this.description}</wui-text></wui-flex
        >
      </button>
    `}titleTemplate(){return this.tag?(0,l.dy)` <wui-flex alignItems="center" gap="xxs"
        ><wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text
        ><wui-tag tagType="main" size="md">${this.tag}</wui-tag>
      </wui-flex>`:(0,l.dy)`<wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>`}};id.styles=[m,v,ic],iu([(0,_.Cb)()],id.prototype,"icon",void 0),iu([(0,_.Cb)()],id.prototype,"text",void 0),iu([(0,_.Cb)()],id.prototype,"description",void 0),iu([(0,_.Cb)()],id.prototype,"tag",void 0),iu([(0,_.Cb)()],id.prototype,"iconBackgroundColor",void 0),iu([(0,_.Cb)()],id.prototype,"iconColor",void 0),iu([(0,_.Cb)({type:Boolean})],id.prototype,"disabled",void 0),id=iu([y("wui-list-description")],id);var ih=(0,l.iv)`
  :host {
    position: relative;
    display: inline-block;
  }

  input {
    background: transparent;
    width: 100%;
    height: auto;
    font-family: var(--wui-font-family);
    color: var(--wui-color-fg-100);

    font-feature-settings: 'case' on;
    font-size: 32px;
    font-weight: var(--wui-font-weight-light);
    caret-color: var(--wui-color-accent-100);
    line-height: 130%;
    letter-spacing: -1.28px;
    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::placeholder {
    color: var(--wui-color-fg-275);
  }
`;let ip=/[.*+?^${}()|[\]\\]/gu,ig=/[0-9,.]/u;var im=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iv=class extends l.oi{constructor(){super(...arguments),this.inputElementRef=(0,rm.V)(),this.disabled=!1,this.value="",this.placeholder="0"}render(){return this.inputElementRef?.value&&this.value&&(this.inputElementRef.value.value=this.value),(0,l.dy)`<input
      ${(0,rm.i)(this.inputElementRef)}
      type="text"
      inputmode="decimal"
      pattern="[0-9,.]*"
      placeholder=${this.placeholder}
      ?disabled=${this.disabled}
      autofocus
      value=${this.value??""}
      @input=${this.dispatchInputChangeEvent.bind(this)}
    /> `}dispatchInputChangeEvent(e){let t=e.data;if(t&&this.inputElementRef?.value){if(","===t){let e=this.inputElementRef.value.value.replace(",",".");this.inputElementRef.value.value=e,this.value=`${this.value}${e}`}else ig.test(t)||(this.inputElementRef.value.value=this.value.replace(RegExp(t.replace(ip,"\\$&"),"gu"),""))}this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};iv.styles=[m,v,ih],im([(0,_.Cb)({type:Boolean})],iv.prototype,"disabled",void 0),im([(0,_.Cb)({type:String})],iv.prototype,"value",void 0),im([(0,_.Cb)({type:String})],iv.prototype,"placeholder",void 0),iv=im([y("wui-input-amount")],iv);var ib=(0,l.iv)`
  :host {
    display: flex;
    gap: var(--wui-spacing-xs);
    border-radius: var(--wui-border-radius-3xl);
    border: 1px solid var(--wui-color-gray-glass-002);
    background: var(--wui-color-gray-glass-002);
    padding: var(--wui-spacing-2xs) var(--wui-spacing-xs) var(--wui-spacing-2xs)
      var(--wui-spacing-s);
    align-items: center;
  }

  wui-avatar,
  wui-icon,
  wui-image {
    width: 32px;
    height: 32px;
    border: 1px solid var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-3xl);
    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-002);
  }
`,iy=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iw=class extends l.oi{constructor(){super(...arguments),this.text="",this.address="",this.isAddress=!1}render(){return(0,l.dy)`<wui-text variant="large-500" color="fg-100">${this.text}</wui-text>
      ${this.imageTemplate()}`}imageTemplate(){return this.isAddress?(0,l.dy)`<wui-avatar address=${this.address} .imageSrc=${this.imageSrc}></wui-avatar>`:this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc}></wui-image>`:(0,l.dy)`<wui-icon size="inherit" color="fg-200" name="networkPlaceholder"></wui-icon>`}};iw.styles=[m,v,ib],iy([(0,_.Cb)()],iw.prototype,"text",void 0),iy([(0,_.Cb)()],iw.prototype,"address",void 0),iy([(0,_.Cb)()],iw.prototype,"imageSrc",void 0),iy([(0,_.Cb)({type:Boolean})],iw.prototype,"isAddress",void 0),iw=iy([y("wui-preview-item")],iw);var ix=(0,l.iv)`
  button {
    padding: 6.5px var(--wui-spacing-l) 6.5px var(--wui-spacing-xs);
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
    background-color: var(--wui-color-gray-glass-002);
  }

  button[data-clickable='false'] {
    pointer-events: none;
    background-color: transparent;
  }

  wui-image {
    width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
    border-radius: var(--wui-border-radius-3xl);
  }

  wui-avatar {
    width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
    box-shadow: 0 0 0 0;
  }
  .address {
    color: var(--wui-color-fg-base-100);
  }
  .address-description {
    text-transform: capitalize;
    color: var(--wui-color-fg-base-200);
  }

  wui-icon-box {
    position: relative;
    right: 15px;
    top: 15px;
    border: 2px solid var(--wui-color-bg-150);
    background-color: var(--wui-color-bg-125);
  }
`,i_=r(35355),iC=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iA=class extends l.oi{constructor(){super(...arguments),this.accountAddress="",this.accountType="",this.connectedConnector=n0.MO.getConnectedConnector(),this.labels=n0.AccountController.state.addressLabels,this.caipNetwork=n0.fB.state.caipNetwork,this.socialProvider=n0.MO.getConnectedSocialProvider(),this.balance=0,this.fetchingBalance=!0,this.shouldShowIcon=!1,this.selected=!1}connectedCallback(){super.connectedCallback(),n0.Lr.getBalance(this.accountAddress,this.caipNetwork?.id).then(e=>{let t=this.balance;e.balances.length>0&&(t=e.balances.reduce((e,t)=>e+(t?.value||0),0)),this.balance=t,this.fetchingBalance=!1,this.requestUpdate()})}render(){let e=this.getLabel();return this.shouldShowIcon="AUTH"===this.connectedConnector,(0,l.dy)`
      <wui-flex
        flexDirection="row"
        justifyContent="space-between"
        .padding=${["0","0","s","1xs"]}
      >
        <wui-flex gap="md" alignItems="center">
          <wui-avatar address=${this.accountAddress}></wui-avatar>
          ${this.shouldShowIcon?(0,l.dy)`<wui-icon-box
                size="sm"
                iconcolor="fg-200"
                backgroundcolor="fg-300"
                icon=${this.accountType===i_.y_.ACCOUNT_TYPES.EOA?this.socialProvider??"mail":"lightbulb"}
                background="fg-300"
              ></wui-icon-box>`:(0,l.dy)`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`}
          <wui-flex flexDirection="column">
            <wui-text class="address" variant="paragraph-500" color="fg-100"
              >${tE.getTruncateString({string:this.accountAddress,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text
            >
            <wui-text class="address-description" variant="small-400">${e}</wui-text></wui-flex
          >
        </wui-flex>
        <wui-flex gap="s" alignItems="center">
          ${this.fetchingBalance?(0,l.dy)`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`:(0,l.dy)` <wui-text variant="small-400">$${this.balance.toFixed(2)}</wui-text>`}
          <slot name="action"></slot>
        </wui-flex>
      </wui-flex>
    `}getLabel(){let e=this.labels?.get(this.accountAddress);return e||"AUTH"!==this.connectedConnector?(e||"INJECTED"!==this.connectedConnector)&&"ANNOUNCED"!==this.connectedConnector?e||(e="EOA"):e="Injected Account":e=`${"eoa"===this.accountType?this.socialProvider??"Email":"Smart"} Account`,e}};iA.styles=[m,v,ix],iC([(0,_.Cb)()],iA.prototype,"accountAddress",void 0),iC([(0,_.Cb)()],iA.prototype,"accountType",void 0),iC([(0,_.Cb)({type:Boolean})],iA.prototype,"selected",void 0),iC([(0,_.Cb)({type:Function})],iA.prototype,"onSelect",void 0),iA=iC([y("wui-list-account")],iA);var ik=(0,l.iv)`
  :host {
    position: relative;
  }

  button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 100%;
    background-color: var(--wui-color-accent-glass-010);
    border-radius: var(--wui-border-radius-xs);
    border: 1px solid var(--wui-color-accent-glass-010);
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color;
  }

  wui-tooltip {
    padding: 7px var(--wui-spacing-s) 8px var(--wui-spacing-s);
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translate(-50%, -100%);
    opacity: 0;
    display: none;
  }

  @media (hover: hover) and (pointer: fine) {
    button:hover:enabled {
      background-color: var(--wui-color-accent-glass-015);
    }

    button:active:enabled {
      background-color: var(--wui-color-accent-glass-020);
    }
  }
`,iE=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iS=class extends l.oi{constructor(){super(...arguments),this.text="",this.icon="card"}render(){return(0,l.dy)`<button>
      <wui-icon color="accent-100" name=${this.icon} size="lg"></wui-icon>
    </button>`}};iS.styles=[m,v,ik],iE([(0,_.Cb)()],iS.prototype,"text",void 0),iE([(0,_.Cb)()],iS.prototype,"icon",void 0),iS=iE([y("wui-icon-button")],iS);var iT=(0,l.iv)`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 16.5px var(--wui-spacing-l) 16.5px var(--wui-spacing-xs);
    width: 100%;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-100);
    justify-content: center;
    align-items: center;
  }

  button:disabled {
    background-color: var(--wui-color-gray-glass-015);
    color: var(--wui-color-gray-glass-015);
  }
`,iI=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iP=class extends l.oi{constructor(){super(...arguments),this.text="",this.disabled=!1}render(){return(0,l.dy)`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-text align="center" variant="paragraph-500" color="inherit">${this.text}</wui-text>
      </button>
    `}};iP.styles=[m,v,iT],iI([(0,_.Cb)()],iP.prototype,"text",void 0),iI([(0,_.Cb)({type:Boolean})],iP.prototype,"disabled",void 0),iP=iI([y("wui-list-button")],iP);var iO=(0,l.iv)`
  button {
    column-gap: var(--wui-spacing-s);
    padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
    width: 100%;
    justify-content: flex-start;
    background-color: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
    color: var(--wui-color-fg-100);
  }

  wui-text {
    text-transform: capitalize;
  }

  wui-text[data-align='left'] {
    display: flex;
    flex: 1;
  }

  wui-text[data-align='center'] {
    display: flex;
    flex: 1;
    justify-content: center;
  }

  .invisible {
    opacity: 0;
    pointer-events: none;
  }

  button:disabled {
    background-color: var(--wui-color-gray-glass-015);
    color: var(--wui-color-gray-glass-015);
  }
`,iR=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iM=class extends l.oi{constructor(){super(...arguments),this.logo="google",this.name="Continue with google",this.align="left",this.disabled=!1}render(){return(0,l.dy)`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-logo logo=${this.logo}></wui-logo>
        <wui-text
          data-align=${this.align}
          variant="paragraph-500"
          color="inherit"
          align=${this.align}
          >${this.name}</wui-text
        >
        ${this.templatePlacement()}
      </button>
    `}templatePlacement(){return"center"===this.align?(0,l.dy)` <wui-logo class="invisible" logo=${this.logo}></wui-logo>`:null}};iM.styles=[m,v,iO],iR([(0,_.Cb)()],iM.prototype,"logo",void 0),iR([(0,_.Cb)()],iM.prototype,"name",void 0),iR([(0,_.Cb)()],iM.prototype,"align",void 0),iR([(0,_.Cb)({type:Boolean})],iM.prototype,"disabled",void 0),iM=iR([y("wui-list-social")],iM);var iN=(0,l.iv)`
  button {
    display: block;
    display: flex;
    align-items: center;
    padding: var(--wui-spacing-xxs);
    gap: var(--wui-spacing-xxs);
    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
    border-radius: var(--wui-border-radius-xxs);
  }

  wui-image {
    border-radius: 100%;
    width: var(--wui-spacing-xl);
    height: var(--wui-spacing-xl);
  }

  wui-icon-box {
    width: var(--wui-spacing-xl);
    height: var(--wui-spacing-xl);
  }

  button:hover {
    background-color: var(--wui-color-gray-glass-002);
  }

  button:active {
    background-color: var(--wui-color-gray-glass-005);
  }
`,ij=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iD=class extends l.oi{constructor(){super(...arguments),this.imageSrc=""}render(){return(0,l.dy)`<button>
      ${this.imageTemplate()}
      <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
    </button>`}imageTemplate(){return this.imageSrc?(0,l.dy)`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:(0,l.dy)`<wui-icon-box
      size="xxs"
      iconColor="fg-200"
      backgroundColor="fg-100"
      background="opaque"
      icon="networkPlaceholder"
    ></wui-icon-box>`}};iD.styles=[m,v,b,iN],ij([(0,_.Cb)()],iD.prototype,"imageSrc",void 0),iD=ij([y("wui-select")],iD);var iB=(0,l.iv)`
  :host {
    display: grid;
    width: inherit;
    height: inherit;
  }
`,iL=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let i$=class extends l.oi{render(){return this.style.cssText=`
      grid-template-rows: ${this.gridTemplateRows};
      grid-template-columns: ${this.gridTemplateColumns};
      justify-items: ${this.justifyItems};
      align-items: ${this.alignItems};
      justify-content: ${this.justifyContent};
      align-content: ${this.alignContent};
      column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};
      row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};
      gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};
      padding-top: ${this.padding&&tE.getSpacingStyles(this.padding,0)};
      padding-right: ${this.padding&&tE.getSpacingStyles(this.padding,1)};
      padding-bottom: ${this.padding&&tE.getSpacingStyles(this.padding,2)};
      padding-left: ${this.padding&&tE.getSpacingStyles(this.padding,3)};
      margin-top: ${this.margin&&tE.getSpacingStyles(this.margin,0)};
      margin-right: ${this.margin&&tE.getSpacingStyles(this.margin,1)};
      margin-bottom: ${this.margin&&tE.getSpacingStyles(this.margin,2)};
      margin-left: ${this.margin&&tE.getSpacingStyles(this.margin,3)};
    `,(0,l.dy)`<slot></slot>`}};i$.styles=[m,iB],iL([(0,_.Cb)()],i$.prototype,"gridTemplateRows",void 0),iL([(0,_.Cb)()],i$.prototype,"gridTemplateColumns",void 0),iL([(0,_.Cb)()],i$.prototype,"justifyItems",void 0),iL([(0,_.Cb)()],i$.prototype,"alignItems",void 0),iL([(0,_.Cb)()],i$.prototype,"justifyContent",void 0),iL([(0,_.Cb)()],i$.prototype,"alignContent",void 0),iL([(0,_.Cb)()],i$.prototype,"columnGap",void 0),iL([(0,_.Cb)()],i$.prototype,"rowGap",void 0),iL([(0,_.Cb)()],i$.prototype,"gap",void 0),iL([(0,_.Cb)()],i$.prototype,"padding",void 0),iL([(0,_.Cb)()],i$.prototype,"margin",void 0),i$=iL([y("wui-grid")],i$);var iU=(0,l.iv)`
  :host {
    position: relative;
    display: flex;
    width: 100%;
    height: 1px;
    background-color: var(--wui-color-gray-glass-005);
    justify-content: center;
    align-items: center;
  }

  :host > wui-text {
    position: absolute;
    padding: 0px 10px;
    background-color: var(--wui-color-modal-bg);
  }
`,iz=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let iF=class extends l.oi{constructor(){super(...arguments),this.text=""}render(){return(0,l.dy)`${this.template()}`}template(){return this.text?(0,l.dy)`<wui-text variant="small-500" color="fg-200">${this.text}</wui-text>`:null}};iF.styles=[m,iU],iz([(0,_.Cb)()],iF.prototype,"text",void 0),iF=iz([y("wui-separator")],iF);let iq={interpolate(e,t,r){if(2!==e.length||2!==t.length)throw Error("inputRange and outputRange must be an array of length 2");let n=e[0]||0,i=e[1]||0,o=t[0]||0,a=t[1]||0;return r<n?o:r>i?a:(a-o)/(i-n)*(r-n)+o}},iH=["receive","deposit","borrow","claim"],iW=["withdraw","repay","burn"],iV={getMonthName(e){let t=new Date;return t.setMonth(e),t.toLocaleString("en-US",{month:"long"})},getTransactionGroupTitle(e,t){let r=d.Em.getYear(),n=this.getMonthName(t);return e===r?n:`${n} ${e}`},getTransactionImages(e){let[t,r]=e,n=!!t&&e?.every(e=>!!e.nft_info),i=e?.length>1;return e?.length!==2||n?i?e.map(e=>this.getTransactionImage(e)):[this.getTransactionImage(t)]:[this.getTransactionImage(t),this.getTransactionImage(r)]},getTransactionImage:e=>({type:iV.getTransactionTransferTokenType(e),url:iV.getTransactionImageURL(e)}),getTransactionImageURL(e){let t;let r=!!e?.nft_info,n=!!e?.fungible_info;return e&&r?t=e?.nft_info?.content?.preview?.url:e&&n&&(t=e?.fungible_info?.icon?.url),t},getTransactionTransferTokenType:e=>e?.fungible_info?"FUNGIBLE":e?.nft_info?"NFT":void 0,getTransactionDescriptions(e){let t=e?.metadata?.operationType,r=e?.transfers,n=e?.transfers?.length>0,i=e?.transfers?.length>1,o=n&&r?.every(e=>!!e?.fungible_info),[a,s]=r,l=this.getTransferDescription(a);if(this.getTransferDescription(s),!n)return("send"===t||"receive"===t)&&o?[l=tE.getTruncateString({string:e?.metadata.sentFrom,charsStart:4,charsEnd:6,truncate:"middle"}),tE.getTruncateString({string:e?.metadata.sentTo,charsStart:4,charsEnd:6,truncate:"middle"})]:[e.metadata.status];if(i)return r.map(e=>this.getTransferDescription(e));let c="";return iH.includes(t)?c="+":iW.includes(t)&&(c="-"),[l=c.concat(l)]},getTransferDescription(e){let t="";return e&&(e?.nft_info?t=e?.nft_info?.name||"-":e?.fungible_info&&(t=this.getFungibleTransferDescription(e)||"-")),t},getFungibleTransferDescription(e){return e?[this.getQuantityFixedValue(e?.quantity.numeric),e?.fungible_info?.symbol].join(" ").trim():null},getQuantityFixedValue:e=>e?parseFloat(e).toFixed(3):null}},66864:function(e,t,r){"use strict";let n,i,o;r.d(t,{OY:function(){return nz},k_:function(){return n$},xG:function(){return nU},y7:function(){return nL}});var a=r(64635),s=r(77548),l=r(70632),c=r(257);let u=!1;class d{constructor(e){this.initPromise=void 0,this.setIsConnected=(e,t)=>{s.AccountController.setIsConnected(e,t)},this.getIsConnectedState=()=>s.AccountController.state.isConnected,this.setAllAccounts=(e,t)=>{s.AccountController.setAllAccounts(e,t),s.OptionsController.setHasMultipleAddresses(e?.length>1)},this.addAddressLabel=(e,t,r)=>{s.AccountController.addAddressLabel(e,t,r)},this.removeAddressLabel=(e,t)=>{s.AccountController.removeAddressLabel(e,t)},this.getCaipAddress=()=>s.AccountController.state.caipAddress,this.setCaipAddress=(e,t)=>{s.AccountController.setCaipAddress(e,t)},this.setBalance=(e,t,r)=>{s.AccountController.setBalance(e,t,r)},this.setProfileName=(e,t)=>{s.AccountController.setProfileName(e,t)},this.setProfileImage=(e,t)=>{s.AccountController.setProfileImage(e,t)},this.resetAccount=e=>{s.AccountController.resetAccount(e)},this.setCaipNetwork=e=>{s.fB.setCaipNetwork(e)},this.getCaipNetwork=()=>s.fB.state.caipNetwork,this.setRequestedCaipNetworks=(e,t)=>{s.fB.setRequestedCaipNetworks(e,t)},this.getApprovedCaipNetworkIds=()=>s.fB.getApprovedCaipNetworkIds(),this.setApprovedCaipNetworksData=e=>s.fB.setApprovedCaipNetworksData(e),this.resetNetwork=()=>{s.fB.resetNetwork()},this.setConnectors=e=>{s.ConnectorController.setConnectors(e)},this.addConnector=e=>{s.ConnectorController.addConnector(e)},this.getConnectors=()=>s.ConnectorController.getConnectors(),this.resetWcConnection=()=>{s.ConnectionController.resetWcConnection()},this.fetchIdentity=e=>s.Lr.fetchIdentity(e),this.setAddressExplorerUrl=(e,t)=>{s.AccountController.setAddressExplorerUrl(e,t)},this.setSmartAccountDeployed=(e,t)=>{s.AccountController.setSmartAccountDeployed(e,t)},this.setConnectedWalletInfo=(e,t)=>{s.AccountController.setConnectedWalletInfo(e,t)},this.setSmartAccountEnabledNetworks=(e,t)=>{s.fB.setSmartAccountEnabledNetworks(e,t)},this.setPreferredAccountType=(e,t)=>{s.AccountController.setPreferredAccountType(e,t)},this.getWalletConnectName=e=>s.a.getNamesForAddress(e),this.resolveWalletConnectName=async e=>{let t=e.replace(c.bq.WC_NAME_SUFFIX,""),r=await s.a.resolveName(t),n=Object.values(r?.addresses)||[];return n[0]?.address||!1},this.setEIP6963Enabled=e=>{s.OptionsController.setEIP6963Enabled(e)},this.setClientId=e=>{s.Lr.setClientId(e)},this.getConnectorImage=e=>s.fz.getConnectorImage(e),this.handleUnsafeRPCRequest=()=>{this.isOpen()?this.isTransactionStackEmpty()||(this.isTransactionShouldReplaceView()?this.replace("ApproveTransaction"):this.redirect("ApproveTransaction")):this.open({view:"ApproveTransaction"})},this.adapter=e.adapters?.[0],this.initControllers(e),this.initOrContinue()}static getInstance(){return this.instance}async open(e){await this.initOrContinue(),s.IN.open(e)}async close(){await this.initOrContinue(),s.IN.close()}setLoading(e){s.IN.setLoading(e)}getError(){return this.adapter?.getError?.()}getChainId(){return this.adapter?.getChainId?.()}getAddress(){return this.adapter?.getAddress?.()}switchNetwork(e){return this.adapter?.switchNetwork?.(e)}getIsConnected(){return this.adapter?.getIsConnected?.()}getWalletProvider(){return this.adapter?.getWalletProvider?.()}getWalletProviderType(){return this.adapter?.getWalletProviderType?.()}subscribeProvider(e){return this.adapter?.subscribeProvider?.(e)}getThemeMode(){return s.ThemeController.state.themeMode}getThemeVariables(){return s.ThemeController.state.themeVariables}setThemeMode(e){s.ThemeController.setThemeMode(e),(0,l.setColorTheme)(s.ThemeController.state.themeMode)}setThemeVariables(e){s.ThemeController.setThemeVariables(e),(0,l.setThemeVariables)(s.ThemeController.state.themeVariables)}subscribeTheme(e){return s.ThemeController.subscribe(e)}getWalletInfo(){return s.AccountController.state.connectedWalletInfo}subscribeWalletInfo(e){return s.AccountController.subscribeKey("connectedWalletInfo",e)}subscribeShouldUpdateToAddress(e){s.AccountController.subscribeKey("shouldUpdateToAddress",e)}subscribeCaipNetworkChange(e){s.fB.subscribeKey("caipNetwork",e)}getState(){return s.Ie.state}subscribeState(e){return s.Ie.subscribe(e)}showErrorMessage(e){s.SnackController.showError(e)}showSuccessMessage(e){s.SnackController.showSuccess(e)}getEvent(){return{...s.Xs.state}}subscribeEvents(e){return s.Xs.subscribe(e)}replace(e){s.RouterController.replace(e)}redirect(e){s.RouterController.push(e)}popTransactionStack(e){s.RouterController.popTransactionStack(e)}isOpen(){return s.IN.state.open}isTransactionStackEmpty(){return 0===s.RouterController.state.transactionStack.length}isTransactionShouldReplaceView(){return s.RouterController.state.transactionStack[s.RouterController.state.transactionStack.length-1]?.replace}async initControllers(e){if(s.OptionsController.setProjectId(e.projectId),s.OptionsController.setSdkVersion(e.sdkVersion),s.RY.initialize(e.adapters||[]),e.adapters?.forEach(t=>{t.construct?.(this,e),s.fB.setAllowUnsupportedChain(e.allowUnsupportedChain,t.chain),s.fB.setDefaultCaipNetwork(e.defaultChain)}),s.OptionsController.setAllWallets(e.allWallets),s.OptionsController.setIncludeWalletIds(e.includeWalletIds),s.OptionsController.setExcludeWalletIds(e.excludeWalletIds),s.OptionsController.setFeaturedWalletIds(e.featuredWalletIds),s.OptionsController.setTokens(e.tokens),s.OptionsController.setTermsConditionsUrl(e.termsConditionsUrl),s.OptionsController.setPrivacyPolicyUrl(e.privacyPolicyUrl),s.OptionsController.setCustomWallets(e.customWallets),s.OptionsController.setEnableAnalytics(e.enableAnalytics),s.OptionsController.setOnrampEnabled(!1!==e.enableOnramp),s.OptionsController.setEnableSwaps(!1!==e.enableSwaps),e.metadata&&s.OptionsController.setMetadata(e.metadata),e.themeMode&&s.ThemeController.setThemeMode(e.themeMode),e.themeVariables&&s.ThemeController.setThemeVariables(e.themeVariables),e.disableAppend&&s.OptionsController.setDisableAppend(!!e.disableAppend),e.adapters?.find(e=>e.chain===c.bq.CHAIN.EVM)&&e.siweConfig){let{SIWEController:t}=await r.e(5062).then(r.bind(r,25062));t.setSIWEClient(e.siweConfig)}}async initOrContinue(){return!this.initPromise&&!u&&s.j1.isClient()&&(u=!0,this.initPromise=new Promise(async e=>{await Promise.all([Promise.resolve().then(r.bind(r,70632)),r.e(8874).then(r.bind(r,78874))]);let t=document.createElement("w3m-modal");s.OptionsController.state.disableAppend||document.body.insertAdjacentElement("beforeend",t),e()})),this.initPromise}}var h=r(19064),f=r(59662),p=r(35162),g=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let m=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.balance="show",this.charsStart=4,this.charsEnd=6,this.address=s.AccountController.state.address,this.balanceVal=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.profileName=s.AccountController.state.profileName,this.profileImage=s.AccountController.state.profileImage,this.network=s.fB.state.caipNetwork,this.networkImage=this.network?s.fz.getNetworkImage(this.network):void 0,this.isUnsupportedChain=s.fB.state.isUnsupportedChain,this.unsubscribe.push(s.WM.subscribeNetworkImages(()=>{this.networkImage=this.network?.imageId?s.fz.getNetworkImage(this.network):void 0}),s.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="")}),s.fB.subscribeKey("caipNetwork",e=>{this.network=e,this.networkImage=e?.imageId?s.fz.getNetworkImage(e):void 0}),s.fB.subscribeKey("isUnsupportedChain",e=>{this.isUnsupportedChain=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e="show"===this.balance;return(0,h.dy)`
      <wui-account-button
        .disabled=${!!this.disabled}
        .isUnsupportedChain=${this.isUnsupportedChain}
        address=${(0,p.o)(this.address)}
        profileName=${(0,p.o)(this.profileName)}
        networkSrc=${(0,p.o)(this.networkImage)}
        avatarSrc=${(0,p.o)(this.profileImage)}
        balance=${e?s.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(){this.isUnsupportedChain?s.IN.open({view:"UnsupportedChain"}):s.IN.open()}};g([(0,f.Cb)({type:Boolean})],m.prototype,"disabled",void 0),g([(0,f.Cb)()],m.prototype,"balance",void 0),g([(0,f.Cb)()],m.prototype,"charsStart",void 0),g([(0,f.Cb)()],m.prototype,"charsEnd",void 0),g([(0,f.SB)()],m.prototype,"address",void 0),g([(0,f.SB)()],m.prototype,"balanceVal",void 0),g([(0,f.SB)()],m.prototype,"balanceSymbol",void 0),g([(0,f.SB)()],m.prototype,"profileName",void 0),g([(0,f.SB)()],m.prototype,"profileImage",void 0),g([(0,f.SB)()],m.prototype,"network",void 0),g([(0,f.SB)()],m.prototype,"networkImage",void 0),g([(0,f.SB)()],m.prototype,"isUnsupportedChain",void 0),m=g([(0,l.customElement)("w3m-account-button")],m);var v=(0,h.iv)`
  :host {
    display: block;
    width: max-content;
  }
`,b=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let y=class extends h.oi{constructor(){super(...arguments),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=s.AccountController.state.isConnected,this.isLoading=s.IN.state.loading}firstUpdated(){this.unsubscribe.push(s.AccountController.subscribe(e=>{this.isAccount=e.isConnected}),s.IN.subscribeKey("loading",e=>{this.isLoading=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.isAccount&&!this.isLoading?(0,h.dy)`
          <w3m-account-button
            .disabled=${!!this.disabled}
            balance=${(0,p.o)(this.balance)}
            .charsStart=${(0,p.o)(this.charsStart)}
            .charsEnd=${(0,p.o)(this.charsEnd)}
          >
          </w3m-account-button>
        `:(0,h.dy)`
          <w3m-connect-button
            size=${(0,p.o)(this.size)}
            label=${(0,p.o)(this.label)}
            loadingLabel=${(0,p.o)(this.loadingLabel)}
          ></w3m-connect-button>
        `}};y.styles=v,b([(0,f.Cb)({type:Boolean})],y.prototype,"disabled",void 0),b([(0,f.Cb)()],y.prototype,"balance",void 0),b([(0,f.Cb)()],y.prototype,"size",void 0),b([(0,f.Cb)()],y.prototype,"label",void 0),b([(0,f.Cb)()],y.prototype,"loadingLabel",void 0),b([(0,f.Cb)()],y.prototype,"charsStart",void 0),b([(0,f.Cb)()],y.prototype,"charsEnd",void 0),b([(0,f.SB)()],y.prototype,"isAccount",void 0),b([(0,f.SB)()],y.prototype,"isLoading",void 0),y=b([(0,l.customElement)("w3m-button")],y);var w=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let x=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.size="md",this.label="Connect Wallet",this.loadingLabel="Connecting...",this.open=s.IN.state.open,this.loading=s.IN.state.loading,this.unsubscribe.push(s.IN.subscribe(e=>{this.open=e.open,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.loading||this.open;return(0,h.dy)`
      <wui-connect-button
        size=${(0,p.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?s.IN.close():this.loading||s.IN.open()}};w([(0,f.Cb)()],x.prototype,"size",void 0),w([(0,f.Cb)()],x.prototype,"label",void 0),w([(0,f.Cb)()],x.prototype,"loadingLabel",void 0),w([(0,f.SB)()],x.prototype,"open",void 0),w([(0,f.SB)()],x.prototype,"loading",void 0),x=w([(0,l.customElement)("w3m-connect-button")],x);var _=(0,h.iv)`
  :host {
    display: block;
    width: max-content;
  }
`,C=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let A=class extends h.oi{constructor(){super(...arguments),this.unsubscribe=[],this.disabled=!1,this.network=s.fB.state.caipNetwork,this.networkImage=this.network?s.fz.getNetworkImage(this.network):void 0,this.connected=s.AccountController.state.isConnected,this.loading=s.IN.state.loading,this.isUnsupportedChain=s.fB.state.isUnsupportedChain}firstUpdated(){this.unsubscribe.push(s.WM.subscribeNetworkImages(()=>{this.networkImage=this.network?.imageId?s.fz.getNetworkImage(this.network):void 0}),s.fB.subscribeKey("caipNetwork",e=>{this.network=e,this.networkImage=e?.imageId?s.fz.getNetworkImage(e):void 0}),s.AccountController.subscribeKey("isConnected",e=>this.connected=e),s.IN.subscribeKey("loading",e=>this.loading=e),s.fB.subscribeKey("isUnsupportedChain",e=>this.isUnsupportedChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-network-button
        data-testid="wui-network-button"
        .disabled=${!!(this.disabled||this.loading)}
        .isUnsupportedChain=${this.isUnsupportedChain}
        imageSrc=${(0,p.o)(this.networkImage)}
        @click=${this.onClick.bind(this)}
      >
        ${this.getLabel()}
        <slot></slot>
      </wui-network-button>
    `}getLabel(){return this.label?this.label:this.isUnsupportedChain?"Switch Network":this.network?this.network.name:this.connected?"Unknown Network":"Select Network"}onClick(){this.loading||(s.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),s.IN.open({view:"Networks"}))}};A.styles=_,C([(0,f.Cb)({type:Boolean})],A.prototype,"disabled",void 0),C([(0,f.Cb)({type:String})],A.prototype,"label",void 0),C([(0,f.SB)()],A.prototype,"network",void 0),C([(0,f.SB)()],A.prototype,"networkImage",void 0),C([(0,f.SB)()],A.prototype,"connected",void 0),C([(0,f.SB)()],A.prototype,"loading",void 0),C([(0,f.SB)()],A.prototype,"isUnsupportedChain",void 0),A=C([(0,l.customElement)("w3m-network-button")],A);var k=(0,h.iv)`
  :host {
    --prev-height: 0px;
    --new-height: 0px;
    display: block;
  }

  div.w3m-router-container {
    transform: translateY(0);
    opacity: 1;
  }

  div.w3m-router-container[view-direction='prev'] {
    animation:
      slide-left-out 150ms forwards ease,
      slide-left-in 150ms forwards ease;
    animation-delay: 0ms, 200ms;
  }

  div.w3m-router-container[view-direction='next'] {
    animation:
      slide-right-out 150ms forwards ease,
      slide-right-in 150ms forwards ease;
    animation-delay: 0ms, 200ms;
  }

  @keyframes slide-left-out {
    from {
      transform: translateX(0px);
      opacity: 1;
    }
    to {
      transform: translateX(10px);
      opacity: 0;
    }
  }

  @keyframes slide-left-in {
    from {
      transform: translateX(-10px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slide-right-out {
    from {
      transform: translateX(0px);
      opacity: 1;
    }
    to {
      transform: translateX(-10px);
      opacity: 0;
    }
  }

  @keyframes slide-right-in {
    from {
      transform: translateX(10px);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
`;let E={ACCOUNT_TABS:[{label:"Tokens"},{label:"NFTs"},{label:"Activity"}],SECURE_SITE_ORIGIN:r(34155).env.NEXT_PUBLIC_SECURE_SITE_ORIGIN||"https://secure.walletconnect.org",VIEW_DIRECTION:{Next:"next",Prev:"prev"},ANIMATION_DURATIONS:{HeaderText:120,ModalHeight:150,ViewTransition:150}};var S=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let T=class extends h.oi{constructor(){super(),this.resizeObserver=void 0,this.prevHeight="0px",this.prevHistoryLength=1,this.unsubscribe=[],this.view=s.RouterController.state.view,this.viewDirection="",this.unsubscribe.push(s.RouterController.subscribeKey("view",e=>this.onViewChange(e)))}firstUpdated(){this.resizeObserver=new ResizeObserver(([e])=>{let t=`${e?.contentRect.height}px`;"0px"!==this.prevHeight&&(this.style.setProperty("--prev-height",this.prevHeight),this.style.setProperty("--new-height",t),this.style.animation="w3m-view-height 150ms forwards ease",this.style.height="auto"),setTimeout(()=>{this.prevHeight=t,this.style.animation="unset"},E.ANIMATION_DURATIONS.ModalHeight)}),this.resizeObserver.observe(this.getWrapper())}disconnectedCallback(){this.resizeObserver?.unobserve(this.getWrapper()),this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`<div class="w3m-router-container" view-direction="${this.viewDirection}">
      ${this.viewTemplate()}
    </div>`}viewTemplate(){switch(this.view){case"AccountSettings":return(0,h.dy)`<w3m-account-settings-view></w3m-account-settings-view>`;case"Account":return(0,h.dy)`<w3m-account-view></w3m-account-view>`;case"AllWallets":return(0,h.dy)`<w3m-all-wallets-view></w3m-all-wallets-view>`;case"ApproveTransaction":return(0,h.dy)`<w3m-approve-transaction-view></w3m-approve-transaction-view>`;case"BuyInProgress":return(0,h.dy)`<w3m-buy-in-progress-view></w3m-buy-in-progress-view>`;case"ChooseAccountName":return(0,h.dy)`<w3m-choose-account-name-view></w3m-choose-account-name-view>`;case"Connect":default:return(0,h.dy)`<w3m-connect-view></w3m-connect-view>`;case"ConnectingWalletConnect":return(0,h.dy)`<w3m-connecting-wc-view></w3m-connecting-wc-view>`;case"ConnectingExternal":return(0,h.dy)`<w3m-connecting-external-view></w3m-connecting-external-view>`;case"ConnectingSiwe":return(0,h.dy)`<w3m-connecting-siwe-view></w3m-connecting-siwe-view>`;case"ConnectWallets":return(0,h.dy)`<w3m-connect-wallets-view></w3m-connect-wallets-view>`;case"ConnectSocials":return(0,h.dy)`<w3m-connect-socials-view></w3m-connect-socials-view>`;case"ConnectingSocial":return(0,h.dy)`<w3m-connecting-social-view></w3m-connecting-social-view>`;case"Downloads":return(0,h.dy)`<w3m-downloads-view></w3m-downloads-view>`;case"EmailVerifyOtp":return(0,h.dy)`<w3m-email-verify-otp-view></w3m-email-verify-otp-view>`;case"EmailVerifyDevice":return(0,h.dy)`<w3m-email-verify-device-view></w3m-email-verify-device-view>`;case"GetWallet":return(0,h.dy)`<w3m-get-wallet-view></w3m-get-wallet-view>`;case"Networks":return(0,h.dy)`<w3m-networks-view></w3m-networks-view>`;case"SwitchNetwork":return(0,h.dy)`<w3m-network-switch-view></w3m-network-switch-view>`;case"Profile":return(0,h.dy)`<w3m-profile-view></w3m-profile-view>`;case"SelectAddresses":return(0,h.dy)`<w3m-select-addresses-view></w3m-select-addresses-view>`;case"SwitchAddress":return(0,h.dy)`<w3m-switch-address-view></w3m-switch-address-view>`;case"Transactions":return(0,h.dy)`<w3m-transactions-view></w3m-transactions-view>`;case"OnRampProviders":return(0,h.dy)`<w3m-onramp-providers-view></w3m-onramp-providers-view>`;case"OnRampActivity":return(0,h.dy)`<w3m-onramp-activity-view></w3m-onramp-activity-view>`;case"OnRampTokenSelect":return(0,h.dy)`<w3m-onramp-token-select-view></w3m-onramp-token-select-view>`;case"OnRampFiatSelect":return(0,h.dy)`<w3m-onramp-fiat-select-view></w3m-onramp-fiat-select-view>`;case"UpgradeEmailWallet":return(0,h.dy)`<w3m-upgrade-wallet-view></w3m-upgrade-wallet-view>`;case"UpgradeToSmartAccount":return(0,h.dy)`<w3m-upgrade-to-smart-account-view></w3m-upgrade-to-smart-account-view>`;case"UpdateEmailWallet":return(0,h.dy)`<w3m-update-email-wallet-view></w3m-update-email-wallet-view>`;case"UpdateEmailPrimaryOtp":return(0,h.dy)`<w3m-update-email-primary-otp-view></w3m-update-email-primary-otp-view>`;case"UpdateEmailSecondaryOtp":return(0,h.dy)`<w3m-update-email-secondary-otp-view></w3m-update-email-secondary-otp-view>`;case"UnsupportedChain":return(0,h.dy)`<w3m-unsupported-chain-view></w3m-unsupported-chain-view>`;case"Swap":return(0,h.dy)`<w3m-swap-view></w3m-swap-view>`;case"SwapSelectToken":return(0,h.dy)`<w3m-swap-select-token-view></w3m-swap-select-token-view>`;case"SwapPreview":return(0,h.dy)`<w3m-swap-preview-view></w3m-swap-preview-view>`;case"WalletSend":return(0,h.dy)`<w3m-wallet-send-view></w3m-wallet-send-view>`;case"WalletSendSelectToken":return(0,h.dy)`<w3m-wallet-send-select-token-view></w3m-wallet-send-select-token-view>`;case"WalletSendPreview":return(0,h.dy)`<w3m-wallet-send-preview-view></w3m-wallet-send-preview-view>`;case"WhatIsABuy":return(0,h.dy)`<w3m-what-is-a-buy-view></w3m-what-is-a-buy-view>`;case"WalletReceive":return(0,h.dy)`<w3m-wallet-receive-view></w3m-wallet-receive-view>`;case"WalletCompatibleNetworks":return(0,h.dy)`<w3m-wallet-compatible-networks-view></w3m-wallet-compatible-networks-view>`;case"WhatIsAWallet":return(0,h.dy)`<w3m-what-is-a-wallet-view></w3m-what-is-a-wallet-view>`;case"ConnectingMultiChain":return(0,h.dy)`<w3m-connecting-multi-chain-view></w3m-connecting-multi-chain-view>`;case"WhatIsANetwork":return(0,h.dy)`<w3m-what-is-a-network-view></w3m-what-is-a-network-view>`;case"ConnectingFarcaster":return(0,h.dy)`<w3m-connecting-farcaster-view></w3m-connecting-farcaster-view>`;case"SwitchActiveChain":return(0,h.dy)`<w3m-switch-active-chain-view></w3m-switch-active-chain-view>`;case"RegisterAccountName":return(0,h.dy)`<w3m-register-account-name-view></w3m-register-account-name-view>`;case"RegisterAccountNameSuccess":return(0,h.dy)`<w3m-register-account-name-success-view></w3m-register-account-name-success-view>`}}onViewChange(e){s.fw.hide();let t=E.VIEW_DIRECTION.Next,{history:r}=s.RouterController.state;r.length<this.prevHistoryLength&&(t=E.VIEW_DIRECTION.Prev),this.prevHistoryLength=r.length,this.viewDirection=t,setTimeout(()=>{this.view=e},E.ANIMATION_DURATIONS.ViewTransition)}getWrapper(){return this.shadowRoot?.querySelector("div")}};T.styles=k,S([(0,f.SB)()],T.prototype,"view",void 0),S([(0,f.SB)()],T.prototype,"viewDirection",void 0),T=S([(0,l.customElement)("w3m-router")],T);var I=(0,h.iv)`
  :host > wui-flex {
    width: 100%;
    max-width: 360px;
  }

  :host > wui-flex > wui-flex {
    border-radius: var(--wui-border-radius-l);
    width: 100%;
  }

  .amounts-container {
    width: 100%;
  }
`,P=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let O={USD:"$",EUR:"€",GBP:"\xa3"},R=[100,250,500,1e3],M=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.disabled=!1,this.connected=s.AccountController.state.isConnected,this.loading=s.IN.state.loading,this.paymentCurrency=s.ph.state.paymentCurrency,this.paymentAmount=s.ph.state.paymentAmount,this.purchaseAmount=s.ph.state.purchaseAmount,this.quoteLoading=s.ph.state.quotesLoading,this.unsubscribe.push(s.AccountController.subscribeKey("isConnected",e=>{this.connected=e}),s.IN.subscribeKey("loading",e=>{this.loading=e}),s.ph.subscribe(e=>{this.paymentCurrency=e.paymentCurrency,this.paymentAmount=e.paymentAmount,this.purchaseAmount=e.purchaseAmount,this.quoteLoading=e.quotesLoading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" justifyContent="center" alignItems="center">
        <wui-flex flexDirection="column" alignItems="center" gap="xs">
          <w3m-onramp-input
            type="Fiat"
            @inputChange=${this.onPaymentAmountChange.bind(this)}
            .value=${this.paymentAmount||0}
          ></w3m-onramp-input>
          <w3m-onramp-input
            type="Token"
            .value=${this.purchaseAmount||0}
            .loading=${this.quoteLoading}
          ></w3m-onramp-input>
          <wui-flex justifyContent="space-evenly" class="amounts-container" gap="xs">
            ${R.map(e=>(0,h.dy)`<wui-button
                  variant=${this.paymentAmount===e?"accent":"neutral"}
                  size="md"
                  textVariant="paragraph-600"
                  fullWidth
                  @click=${()=>this.selectPresetAmount(e)}
                  >${`${O[this.paymentCurrency?.id||"USD"]} ${e}`}</wui-button
                >`)}
          </wui-flex>
          ${this.templateButton()}
        </wui-flex>
      </wui-flex>
    `}templateButton(){return this.connected?(0,h.dy)`<wui-button
          @click=${this.getQuotes.bind(this)}
          variant="main"
          fullWidth
          size="lg"
          borderRadius="xs"
        >
          Get quotes
        </wui-button>`:(0,h.dy)`<wui-button
          @click=${this.openModal.bind(this)}
          variant="accent"
          fullWidth
          size="lg"
          borderRadius="xs"
        >
          Connect wallet
        </wui-button>`}getQuotes(){this.loading||s.IN.open({view:"OnRampProviders"})}openModal(){s.IN.open({view:"Connect"})}async onPaymentAmountChange(e){s.ph.setPaymentAmount(Number(e.detail)),await s.ph.getQuote()}async selectPresetAmount(e){s.ph.setPaymentAmount(e),await s.ph.getQuote()}};M.styles=I,P([(0,f.Cb)({type:Boolean})],M.prototype,"disabled",void 0),P([(0,f.SB)()],M.prototype,"connected",void 0),P([(0,f.SB)()],M.prototype,"loading",void 0),P([(0,f.SB)()],M.prototype,"paymentCurrency",void 0),P([(0,f.SB)()],M.prototype,"paymentAmount",void 0),P([(0,f.SB)()],M.prototype,"purchaseAmount",void 0),P([(0,f.SB)()],M.prototype,"quoteLoading",void 0),M=P([(0,l.customElement)("w3m-onramp-widget")],M);var N=r(35355),j=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let D=class extends h.oi{constructor(){super(),this.usubscribe=[],this.networkImages=s.WM.state.networkImages,this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.network=s.fB.state.caipNetwork,this.preferredAccountType=s.AccountController.state.preferredAccountType,this.disconnecting=!1,this.loading=!1,this.switched=!1,this.text="",this.usubscribe.push(s.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):s.IN.close()}),s.AccountController.subscribeKey("preferredAccountType",e=>this.preferredAccountType=e),s.fB.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-settings-view: No account provided");let e=this.networkImages[this.network?.imageId??""],t=this.profileName?.split(".")[0];return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        gap="l"
        .padding=${["0","xl","m","xl"]}
      >
        <wui-avatar
          alt=${this.address}
          address=${this.address}
          imageSrc=${(0,p.o)(this.profileImage)}
          size="2lg"
        ></wui-avatar>
        <wui-flex flexDirection="column" alignItems="center">
          <wui-flex gap="3xs" alignItems="center" justifyContent="center">
            <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address">
              ${t?l.UiHelperUtil.getTruncateString({string:t,charsStart:20,charsEnd:0,truncate:"end"}):l.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>
      </wui-flex>
      <wui-flex flexDirection="column" gap="m">
        <wui-flex flexDirection="column" gap="xs" .padding=${["0","l","m","l"]}>
          ${this.authCardTemplate()}
          <w3m-account-auth-button></w3m-account-auth-button>
          <wui-list-item
            .variant=${e?"image":"icon"}
            iconVariant="overlay"
            icon="networkPlaceholder"
            imageSrc=${(0,p.o)(e)}
            ?chevron=${this.isAllowedNetworkSwitch()}
            @click=${this.onNetworks.bind(this)}
            data-testid="account-switch-network-button"
          >
            <wui-text variant="paragraph-500" color="fg-100">
              ${this.network?.name??"Unknown"}
            </wui-text>
          </wui-list-item>
          ${this.togglePreferredAccountBtnTemplate()} ${this.chooseNameButtonTemplate()}
          <wui-list-item
            variant="icon"
            iconVariant="overlay"
            icon="disconnect"
            ?chevron=${!1}
            .loading=${this.disconnecting}
            @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>
      </wui-flex>
    `}chooseNameButtonTemplate(){let e=s.MO.getConnectedConnector();return!s.ConnectorController.getAuthConnector()||"AUTH"!==e||this.profileName?null:(0,h.dy)`
      <wui-list-item
        variant="icon"
        iconVariant="overlay"
        icon="id"
        iconSize="sm"
        ?chevron=${!0}
        @click=${this.onChooseName.bind(this)}
        data-testid="account-choose-name-button"
      >
        <wui-text variant="paragraph-500" color="fg-100">Choose account name </wui-text>
      </wui-list-item>
    `}authCardTemplate(){let e=s.MO.getConnectedConnector(),t=s.ConnectorController.getAuthConnector(),{origin:r}=location;return!t||"AUTH"!==e||r.includes(s.bq.SECURE_SITE)?null:(0,h.dy)`
      <wui-notice-card
        @click=${this.onGoToUpgradeView.bind(this)}
        label="Upgrade your wallet"
        description="Transition to a self-custodial wallet"
        icon="wallet"
        data-testid="w3m-wallet-upgrade-card"
      ></wui-notice-card>
    `}isAllowedNetworkSwitch(){let e=s.fB.getRequestedCaipNetworks(),t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}onCopyAddress(){try{this.profileName?(s.j1.copyToClopboard(this.profileName),s.SnackController.showSuccess("Name copied")):this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}togglePreferredAccountBtnTemplate(){let e=s.fB.checkIfSmartAccountEnabled(),t=s.MO.getConnectedConnector();return s.ConnectorController.getAuthConnector()&&"AUTH"===t&&e?(this.switched||(this.text=this.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account"),(0,h.dy)`
      <wui-list-item
        variant="icon"
        iconVariant="overlay"
        icon="swapHorizontalBold"
        iconSize="sm"
        ?chevron=${!0}
        ?loading=${this.loading}
        @click=${this.changePreferredAccountType.bind(this)}
        data-testid="account-toggle-preferred-account-type"
      >
        <wui-text variant="paragraph-500" color="fg-100">${this.text}</wui-text>
      </wui-list-item>
    `):null}onChooseName(){s.RouterController.push("ChooseAccountName")}async changePreferredAccountType(){let e=s.fB.checkIfSmartAccountEnabled(),t=this.preferredAccountType!==N.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&e?N.y_.ACCOUNT_TYPES.SMART_ACCOUNT:N.y_.ACCOUNT_TYPES.EOA;s.ConnectorController.getAuthConnector()&&(this.loading=!0,await s.ConnectionController.setPreferredAccountType(t),this.text=t===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your smart account",this.switched=!0,s.Si.resetSend(),this.loading=!1,this.requestUpdate())}onNetworks(){this.isAllowedNetworkSwitch()&&s.RouterController.push("Networks")}async onDisconnect(){try{this.disconnecting=!0,await s.ConnectionController.disconnect(),s.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),s.IN.close()}catch{s.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),s.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onGoToUpgradeView(){s.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),s.RouterController.push("UpgradeEmailWallet")}};j([(0,f.SB)()],D.prototype,"address",void 0),j([(0,f.SB)()],D.prototype,"profileImage",void 0),j([(0,f.SB)()],D.prototype,"profileName",void 0),j([(0,f.SB)()],D.prototype,"network",void 0),j([(0,f.SB)()],D.prototype,"preferredAccountType",void 0),j([(0,f.SB)()],D.prototype,"disconnecting",void 0),j([(0,f.SB)()],D.prototype,"loading",void 0),j([(0,f.SB)()],D.prototype,"switched",void 0),j([(0,f.SB)()],D.prototype,"text",void 0),D=j([(0,l.customElement)("w3m-account-settings-view")],D);let B=class extends h.oi{render(){let e=s.MO.getConnectedConnector(),t=s.ConnectorController.getAuthConnector();return(0,h.dy)`
      ${t?.walletFeatures&&"AUTH"===e?this.walletFeaturesTemplate():this.defaultTemplate()}
    `}walletFeaturesTemplate(){return(0,h.dy)`<w3m-account-wallet-features-widget></w3m-account-wallet-features-widget>`}defaultTemplate(){return(0,h.dy)`<w3m-account-default-widget></w3m-account-default-widget>`}};B=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-account-view")],B);var L=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let $=class extends h.oi{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=s.j1.debounce(e=>{this.search=e})}render(){let e=this.search.length>=2;return(0,h.dy)`
      <wui-flex .padding=${["0","s","s","s"]} gap="s">
        <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
        ${this.qrButtonTemplate()}
      </wui-flex>
      ${e?(0,h.dy)`<w3m-all-wallets-search query=${this.search}></w3m-all-wallets-search>`:(0,h.dy)`<w3m-all-wallets-list></w3m-all-wallets-list>`}
    `}onInputChange(e){this.onDebouncedSearch(e.detail)}qrButtonTemplate(){return s.j1.isMobile()?(0,h.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(){s.RouterController.push("ConnectingWalletConnect")}};L([(0,f.SB)()],$.prototype,"search",void 0),$=L([(0,l.customElement)("w3m-all-wallets-view")],$);var U=(0,h.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-visual {
    width: var(--wui-wallet-image-size-lg);
    height: var(--wui-wallet-image-size-lg);
    border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
    position: relative;
    overflow: hidden;
  }

  wui-visual::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  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:
      opacity var(--wui-ease-out-power-2) var(--wui-duration-lg),
      transform var(--wui-ease-out-power-2) var(--wui-duration-lg);
    will-change: opacity, transform;
  }

  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;
  }

  wui-link {
    padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
  }
`,z=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let F=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=s.ph.state.selectedProvider,this.uri=s.ConnectionController.state.wcUri,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.error=!1,this.startTime=null,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(s.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e})),this.watchTransactions()}disconnectedCallback(){this.intervalId&&clearInterval(this.intervalId)}render(){let e="Continue in external window";this.error?e="Buy failed":this.selectedOnRampProvider&&(e=`Buy in ${this.selectedOnRampProvider?.label}`);let t=this.error?"Buy can be declined from your side or due to and error on the provider app":`We’ll notify you once your Buy is processed`;return(0,h.dy)`
      <wui-flex
        data-error=${(0,p.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-visual
            name=${(0,p.o)(this.selectedOnRampProvider?.name)}
            size="lg"
            class="provider-image"
          >
          </wui-visual>

          ${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"}>
            ${e}
          </wui-text>
          <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text>
        </wui-flex>

        ${this.error?this.tryAgainTemplate():null}
      </wui-flex>

      <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>
    `}watchTransactions(){this.selectedOnRampProvider&&"coinbase"===this.selectedOnRampProvider.name&&(this.startTime=Date.now(),this.initializeCoinbaseTransactions())}async initializeCoinbaseTransactions(){await this.watchCoinbaseTransactions(),this.intervalId=setInterval(()=>this.watchCoinbaseTransactions(),4e3)}async watchCoinbaseTransactions(){try{let e=s.AccountController.state.address,t=s.OptionsController.state.projectId;if(!e)throw Error("No address found");(await s.Lr.fetchTransactions({account:e,onramp:"coinbase",projectId:t})).data.filter(e=>new Date(e.metadata.minedAt)>new Date(this.startTime)||"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length?(clearInterval(this.intervalId),s.RouterController.replace("OnRampActivity")):this.startTime&&Date.now()-this.startTime>=18e4&&(clearInterval(this.intervalId),this.error=!0)}catch(e){s.SnackController.showError(e)}}onTryAgain(){this.selectedOnRampProvider&&(this.error=!1,s.j1.openHref(this.selectedOnRampProvider.url,"popupWindow","width=600,height=800,scrollbars=yes"))}tryAgainTemplate(){return this.selectedOnRampProvider?.url?(0,h.dy)`<wui-button size="md" variant="accent" @click=${this.onTryAgain.bind(this)}>
      <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
      Try again
    </wui-button>`:null}loaderTemplate(){let e=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,h.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){if(!this.selectedOnRampProvider?.url){s.SnackController.showError("No link found"),s.RouterController.goBack();return}try{s.j1.copyToClopboard(this.selectedOnRampProvider.url),s.SnackController.showSuccess("Link copied")}catch{s.SnackController.showError("Failed to copy")}}};F.styles=U,z([(0,f.SB)()],F.prototype,"intervalId",void 0),z([(0,f.SB)()],F.prototype,"selectedOnRampProvider",void 0),z([(0,f.SB)()],F.prototype,"uri",void 0),z([(0,f.SB)()],F.prototype,"ready",void 0),z([(0,f.SB)()],F.prototype,"showRetry",void 0),z([(0,f.SB)()],F.prototype,"buffering",void 0),z([(0,f.SB)()],F.prototype,"error",void 0),z([(0,f.SB)()],F.prototype,"startTime",void 0),z([(0,f.Cb)({type:Boolean})],F.prototype,"isMobile",void 0),z([(0,f.Cb)()],F.prototype,"onRetry",void 0),F=z([(0,l.customElement)("w3m-buy-in-progress-view")],F);var q=(0,h.iv)`
  :host > wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    scrollbar-width: none;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  :host > wui-flex::-webkit-scrollbar {
    display: none;
  }

  .all-wallets {
    flex-flow: column;
  }
`,H=r(39158),W=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let V=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["3xs","s","s","s"]}>
        <w3m-email-login-widget></w3m-email-login-widget>
        <w3m-social-login-widget></w3m-social-login-widget>
        ${this.walletListTemplate()}
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}walletListTemplate(){let e=this.connectors.find(e=>"AUTH"===e.type);return e?.socials?e?.showWallets?(0,h.dy)`
          <wui-flex flexDirection="column" gap="xs" .margin=${["xs","0","0","0"]}>
            <w3m-connector-list></w3m-connector-list>
            <wui-flex class="all-wallets">
              <w3m-all-wallets-widget></w3m-all-wallets-widget>
            </wui-flex>
          </wui-flex>
        `:(0,h.dy)`<wui-list-button
        @click=${this.onContinueWalletClick.bind(this)}
        text="Continue with a wallet"
      ></wui-list-button>`:(0,h.dy)`<w3m-wallet-login-list></w3m-wallet-login-list>`}onContinueWalletClick(){s.RouterController.push("ConnectWallets")}};V.styles=q,W([(0,H.S)()],V.prototype,"connectors",void 0),V=W([(0,l.customElement)("w3m-connect-view")],V);var Z=(0,h.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-property: opacity, transform;
    transition-duration: var(--wui-duration-lg);
    transition-timing-function: var(--wui-ease-out-power-2);
    will-change: opacity, transform;
  }

  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;
  }
`,G=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};class K extends h.oi{constructor(){super(),this.wallet=s.RouterController.state.data?.wallet,this.connector=s.RouterController.state.data?.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=s.fz.getWalletImage(this.wallet)??s.fz.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=s.ConnectionController.state.wcUri,this.error=s.ConnectionController.state.wcError,this.ready=!1,this.showRetry=!1,this.buffering=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(s.ConnectionController.subscribeKey("wcUri",e=>{this.uri=e,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),s.ConnectionController.subscribeKey("wcError",e=>this.error=e),s.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();let e=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel,t=`Continue in ${this.name}`;return this.buffering&&(t="Connecting..."),this.error&&(t="Connection declined"),(0,h.dy)`
      <wui-flex
        data-error=${(0,p.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,p.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"}>
            ${t}
          </wui-text>
          <wui-text align="center" variant="small-500" color="fg-200">${e}</wui-text>
        </wui-flex>

        <wui-button
          variant="accent"
          size="md"
          ?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?(0,h.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){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(s.ConnectionController.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){let e=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,h.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(s.j1.copyToClopboard(this.uri),s.SnackController.showSuccess("Link copied"))}catch{s.SnackController.showError("Failed to copy")}}}K.styles=Z,G([(0,f.SB)()],K.prototype,"uri",void 0),G([(0,f.SB)()],K.prototype,"error",void 0),G([(0,f.SB)()],K.prototype,"ready",void 0),G([(0,f.SB)()],K.prototype,"showRetry",void 0),G([(0,f.SB)()],K.prototype,"buffering",void 0),G([(0,f.Cb)({type:Boolean})],K.prototype,"isMobile",void 0),G([(0,f.Cb)()],K.prototype,"onRetry",void 0);let Y=class extends K{constructor(){if(super(),!this.connector)throw Error("w3m-connecting-view: No connector provided");s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.connector.name??"Unknown",platform:"browser"}}),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.id!==a.bq.COINBASE_SDK_CONNECTOR_ID||!this.error)&&(await s.ConnectionController.connectExternal(this.connector,this.connector.chain),s.OptionsController.state.isSiweEnabled?s.RouterController.push("ConnectingSiwe"):s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.connector.name||"Unknown"}}))}catch(e){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};Y=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-external-view")],Y);var Q=(0,h.iv)`
  wui-flex,
  wui-list-wallet {
    width: 100%;
  }
`,J=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let X=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.activeConnector=s.RY.state.activeConnector,this.unsubscribe.push(s.RY.subscribeKey("activeConnector",e=>this.activeConnector=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["m","xl","xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" alignItems="center">
          <wui-wallet-image
            size="lg"
            imageSrc=${(0,p.o)(s.fz.getConnectorImage(this.activeConnector))}
          ></wui-wallet-image>
        </wui-flex>
        <wui-flex
          flexDirection="column"
          alignItems="center"
          gap="xs"
          .padding=${["0","s","0","s"]}
        >
          <wui-text variant="paragraph-500" color="fg-100">
            Select Chain for ${this.activeConnector?.name}
          </wui-text>
          <wui-text align="center" variant="small-500" color="fg-200"
            >Select which chain to connect to your multi chain wallet</wui-text
          >
        </wui-flex>
        <wui-flex
          flexGrow="1"
          flexDirection="column"
          alignItems="center"
          gap="xs"
          .padding=${["xs","0","xs","0"]}
        >
          ${this.networksTemplate()}
        </wui-flex>
      </wui-flex>
    `}networksTemplate(){return this.activeConnector?.providers?.map(e=>h.dy`
        <wui-list-wallet
          imageSrc=${p.o(s.fz.getChainImage(e.chain))}
          name=${e.name}
          @click=${()=>this.onConnector(e)}
        ></wui-list-wallet>
      `)}onConnector(e){s.RY.setActiveChain(e.chain);let t=this.activeConnector?.providers?.find(t=>t.chain===e.chain);if(!t){s.SnackController.showError("Failed to find connector");return}"WALLET_CONNECT"===t.type?s.j1.isMobile()?s.RouterController.push("AllWallets"):s.RouterController.push("ConnectingWalletConnect"):s.RouterController.push("ConnectingExternal",{connector:t})}};X.styles=Q,J([(0,f.SB)()],X.prototype,"activeConnector",void 0),X=J([(0,l.customElement)("w3m-connecting-multi-chain-view")],X);var ee=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let et=class extends h.oi{constructor(){super(),this.interval=void 0,this.lastRetry=Date.now(),this.wallet=s.RouterController.state.data?.wallet,this.platform=void 0,this.platforms=[],this.initializeConnection(),this.interval=setInterval(this.initializeConnection.bind(this),s.bq.TEN_SEC_MS)}disconnectedCallback(){clearTimeout(this.interval)}render(){return this.wallet?(this.determinePlatforms(),(0,h.dy)`
      ${this.headerTemplate()}
      <div>${this.platformTemplate()}</div>
    `):(0,h.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`}async initializeConnection(e=!1){try{let{wcPairingExpiry:t}=s.ConnectionController.state;if(e||s.j1.isPairingExpired(t)){if(await s.ConnectionController.connectWalletConnect(),this.finalizeConnection(),"AUTH"===s.MO.getConnectedConnector()&&s.OptionsController.state.hasMultipleAddresses)s.RouterController.push("SelectAddresses");else if(s.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await r.e(5062).then(r.bind(r,25062));"success"===e.state.status?s.IN.close():s.RouterController.push("ConnectingSiwe")}else s.IN.close()}}catch(e){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),s.ConnectionController.setWcError(!0),s.j1.isAllowedRetry(this.lastRetry)&&(s.SnackController.showError("Declined"),this.lastRetry=Date.now(),this.initializeConnection(!0))}}finalizeConnection(){let{wcLinking:e,recentWallet:t}=s.ConnectionController.state;e&&s.MO.setWalletConnectDeepLink(e),t&&s.MO.setWeb3ModalRecent(t),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:e?"mobile":"qrcode",name:this.wallet?.name||"Unknown"}})}determinePlatforms(){if(!this.wallet)throw Error("w3m-connecting-wc-view:determinePlatforms No wallet");if(this.platform)return;let{mobile_link:e,desktop_link:t,webapp_link:r,injected:n,rdns:i}=this.wallet,o=n?.map(({injected_id:e})=>e).filter(Boolean),a=i?[i]:o??[],l=!s.OptionsController.state.isUniversalProvider&&a.length,c=s.ConnectionController.checkInstalled(a),u=l&&c,d=t&&!s.j1.isMobile();u&&this.platforms.push("browser"),e&&this.platforms.push(s.j1.isMobile()?"mobile":"qrcode"),r&&this.platforms.push("web"),d&&this.platforms.push("desktop"),!u&&l&&this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return(0,h.dy)`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"desktop":return(0,h.dy)`
          <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-desktop>
        `;case"web":return(0,h.dy)`
          <w3m-connecting-wc-web .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-web>
        `;case"mobile":return(0,h.dy)`
          <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
          </w3m-connecting-wc-mobile>
        `;case"qrcode":return(0,h.dy)`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return(0,h.dy)`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?(0,h.dy)`
      <w3m-connecting-header
        .platforms=${this.platforms}
        .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
      >
      </w3m-connecting-header>
    `:null}async onSelectPlatform(e){let t=this.shadowRoot?.querySelector("div");t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=e,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};ee([(0,f.SB)()],et.prototype,"platform",void 0),ee([(0,f.SB)()],et.prototype,"platforms",void 0),et=ee([(0,l.customElement)("w3m-connecting-wc-view")],et);var er=(0,h.iv)`
  .continue-button-container {
    width: 100%;
  }
`,en=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ei=class extends h.oi{constructor(){super(...arguments),this.loading=!1}render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        gap="xxl"
        .padding=${["0","0","l","0"]}
      >
        ${this.onboardingTemplate()} ${this.buttonsTemplate()}
        <wui-link
          @click=${()=>{s.j1.openHref(c.UE.URLS.FAQ,"_blank")}}
        >
          Learn more about names
          <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
        </wui-link>
      </wui-flex>
    `}onboardingTemplate(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      gap="xxl"
      alignItems="center"
      .padding=${["0","xxl","0","xxl"]}
    >
      <wui-flex gap="s" alignItems="center" justifyContent="center">
        <wui-icon-box
          icon="id"
          size="xl"
          iconSize="xxl"
          iconColor="fg-200"
          backgroundColor="fg-200"
        ></wui-icon-box>
      </wui-flex>
      <wui-flex flexDirection="column" alignItems="center" gap="s">
        <wui-text align="center" variant="medium-600" color="fg-100">
          Choose your account name
        </wui-text>
        <wui-text align="center" variant="paragraph-400" color="fg-100">
          Finally say goodbye to 0x addresses, name your account to make it easier to exchange
          assets
        </wui-text>
      </wui-flex>
    </wui-flex>`}buttonsTemplate(){return(0,h.dy)`<wui-flex
      .padding=${["0","2l","0","2l"]}
      gap="s"
      class="continue-button-container"
    >
      <wui-button
        fullWidth
        .loading=${this.loading}
        size="lg"
        borderRadius="xs"
        @click=${this.handleContinue.bind(this)}
        >Choose name
      </wui-button>
    </wui-flex>`}handleContinue(){s.RouterController.push("RegisterAccountName"),s.Xs.sendEvent({type:"track",event:"OPEN_ENS_FLOW",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}})}};ei.styles=er,en([(0,f.SB)()],ei.prototype,"loading",void 0),ei=en([(0,l.customElement)("w3m-choose-account-name-view")],ei);let eo=class extends h.oi{constructor(){super(...arguments),this.wallet=s.RouterController.state.data?.wallet}render(){if(!this.wallet)throw Error("w3m-downloads-view");return(0,h.dy)`
      <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
        ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
        ${this.homepageTemplate()}
      </wui-flex>
    `}chromeTemplate(){return this.wallet?.chrome_store?(0,h.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(){return this.wallet?.app_store?(0,h.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(){return this.wallet?.play_store?(0,h.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(){return this.wallet?.homepage?(0,h.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(){this.wallet?.chrome_store&&s.j1.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};eo=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-downloads-view")],eo);let ea=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
        ${this.recommendedWalletsTemplate()}
        <wui-list-wallet
          name="Explore all"
          showAllWallets
          walletIcon="allWallets"
          icon="externalLink"
          @click=${()=>{s.j1.openHref("https://walletconnect.com/explorer?type=wallet","_blank")}}
        ></wui-list-wallet>
      </wui-flex>
    `}recommendedWalletsTemplate(){let{recommended:e,featured:t}=s.ApiController.state,{customWallets:r}=s.OptionsController.state;return[...t,...r??[],...e].slice(0,4).map(e=>(0,h.dy)`
        <wui-list-wallet
          name=${e.name??"Unknown"}
          tagVariant="main"
          imageSrc=${(0,p.o)(s.fz.getWalletImage(e))}
          @click=${()=>{s.j1.openHref(e.homepage??"https://walletconnect.com/explorer","_blank")}}
        ></wui-list-wallet>
      `)}};ea=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-get-wallet-view")],ea);var es=(0,h.iv)`
  wui-flex {
    width: 100%;
  }

  .suggestion {
    background: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xs);
  }

  .suggestion:hover {
    background-color: var(--wui-color-gray-glass-005);
    cursor: pointer;
  }

  .suggested-name {
    max-width: 75%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  form {
    width: 100%;
  }

  wui-icon-link {
    position: absolute;
    right: 20px;
    transform: translateY(11px);
  }
`,el=r(38192),ec=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eu=class extends h.oi{constructor(){super(),this.formRef=(0,el.V)(),this.usubscribe=[],this.name="",this.error="",this.loading=s.a.state.loading,this.suggestions=s.a.state.suggestions,this.registered=!1,this.profileName=s.AccountController.state.profileName,this.onDebouncedNameInputChange=s.j1.debounce(e=>{s.a.validateName(e)?(this.error="",this.name=e,s.a.getSuggestions(e),s.a.isNameRegistered(e).then(e=>{this.registered=e})):e.length<4?this.error="Name must be at least 4 characters long":this.error="Can only contain letters, numbers and - characters"}),this.usubscribe.push(s.a.subscribe(e=>{this.suggestions=e.suggestions,this.loading=e.loading}),s.AccountController.subscribeKey("profileName",e=>{this.profileName=e,e&&(this.error="You already own a name")}))}firstUpdated(){this.formRef.value?.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.usubscribe.forEach(e=>e()),this.formRef.value?.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        gap="m"
        .padding=${["0","s","m","s"]}
      >
        <form ${(0,el.i)(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
          <wui-ens-input
            @inputChange=${this.onNameInputChange.bind(this)}
            .errorMessage=${this.error}
            .value=${this.name}
          >
          </wui-ens-input>
          ${this.submitButtonTemplate()}
          <input type="submit" hidden />
        </form>
        ${this.templateSuggestions()}
      </wui-flex>
    `}submitButtonTemplate(){return this.isAllowedToSubmit()?(0,h.dy)`
          <wui-icon-link
            size="sm"
            icon="chevronRight"
            iconcolor="accent-100"
            @click=${this.onSubmitName.bind(this)}
          >
          </wui-icon-link>
        `:null}onSelectSuggestion(e){return()=>{this.name=e,this.registered=!1,this.requestUpdate()}}onNameInputChange(e){this.onDebouncedNameInputChange(e.detail)}nameSuggestionTagTemplate(){return this.loading?(0,h.dy)`<wui-loading-spinner size="lg" color="fg-100"></wui-loading-spinner>`:this.registered?(0,h.dy)`<wui-tag variant="shade" size="lg">Registered</wui-tag>`:(0,h.dy)`<wui-tag variant="success" size="lg">Available</wui-tag>`}templateSuggestions(){if(!this.name||this.name.length<4||this.error)return null;let e=this.registered?this.suggestions.filter(e=>e.name!==this.name):[];return(0,h.dy)`<wui-flex flexDirection="column" gap="xxs" alignItems="center">
      <wui-flex
        data-testid="account-name-suggestion"
        .padding=${["m","m","m","m"]}
        justifyContent="space-between"
        class="suggestion"
      >
        <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
          ${this.name}</wui-text
        >${this.nameSuggestionTagTemplate()}
      </wui-flex>
      ${e.map(e=>this.availableNameTemplate(e.name))}
    </wui-flex>`}availableNameTemplate(e){return(0,h.dy)` <wui-flex
      data-testid="account-name-suggestion"
      .padding=${["m","m","m","m"]}
      justifyContent="space-between"
      class="suggestion"
      @click=${this.onSelectSuggestion(e)}
    >
      <wui-text color="fg-100" variant="paragraph-400" class="suggested-name">
        ${e}
      </wui-text>
      <wui-tag variant="success" size="lg">Available</wui-tag>
    </wui-flex>`}isAllowedToSubmit(){return!this.loading&&!this.registered&&!this.error&&!this.profileName&&s.a.validateName(this.name)}async onSubmitName(){try{if(!this.isAllowedToSubmit())return;s.Xs.sendEvent({type:"track",event:"REGISTER_NAME_INITIATED",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name}}),await s.a.registerName(this.name),s.Xs.sendEvent({type:"track",event:"REGISTER_NAME_SUCCESS",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name}})}catch(e){s.SnackController.showError(e.message),s.Xs.sendEvent({type:"track",event:"REGISTER_NAME_ERROR",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:this.name,error:e?.message||"Unknown error"}})}}onEnterKey(e){"Enter"===e.key&&this.isAllowedToSubmit()&&this.onSubmitName()}};eu.styles=es,ec([(0,f.Cb)()],eu.prototype,"errorMessage",void 0),ec([(0,f.SB)()],eu.prototype,"name",void 0),ec([(0,f.SB)()],eu.prototype,"error",void 0),ec([(0,f.SB)()],eu.prototype,"loading",void 0),ec([(0,f.SB)()],eu.prototype,"suggestions",void 0),ec([(0,f.SB)()],eu.prototype,"registered",void 0),ec([(0,f.SB)()],eu.prototype,"profileName",void 0),eu=ec([(0,l.customElement)("w3m-register-account-name-view")],eu);var ed=(0,h.iv)`
  .continue-button-container {
    width: 100%;
  }
`;let eh=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        gap="xxl"
        .padding=${["0","0","l","0"]}
      >
        ${this.onboardingTemplate()} ${this.buttonsTemplate()}
        <wui-link
          @click=${()=>{s.j1.openHref(c.UE.URLS.FAQ,"_blank")}}
        >
          Learn more
          <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
        </wui-link>
      </wui-flex>
    `}onboardingTemplate(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      gap="xxl"
      alignItems="center"
      .padding=${["0","xxl","0","xxl"]}
    >
      <wui-flex gap="s" alignItems="center" justifyContent="center">
        <wui-icon-box
          size="xl"
          iconcolor="success-100"
          backgroundcolor="success-100"
          icon="checkmark"
          background="opaque"
        ></wui-icon-box>
      </wui-flex>
      <wui-flex flexDirection="column" alignItems="center" gap="s">
        <wui-text align="center" variant="medium-600" color="fg-100">
          Account name chosen successfully
        </wui-text>
        <wui-text align="center" variant="paragraph-400" color="fg-100">
          You can now fund your account and trade crypto
        </wui-text>
      </wui-flex>
    </wui-flex>`}buttonsTemplate(){return(0,h.dy)`<wui-flex
      .padding=${["0","2l","0","2l"]}
      gap="s"
      class="continue-button-container"
    >
      <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
        >Let's Go!
      </wui-button>
    </wui-flex>`}redirectToAccount(){s.RouterController.replace("Account")}};eh.styles=ed,eh=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-register-account-name-success-view")],eh);var ef=(0,h.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;
  }

  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;
  }
`;let ep={onNetworkChange:async()=>{if(s.OptionsController.state.isSiweEnabled){let{SIWEController:e}=await r.e(5062).then(r.bind(r,25062));e.state._client?.options?.signOutOnNetworkChange?await e.signOut():s._4.navigateAfterNetworkSwitch()}else s._4.navigateAfterNetworkSwitch()}};var eg=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let em=class extends h.oi{constructor(){super(),this.network=s.RouterController.state.data?.network,this.unsubscribe=[],this.showRetry=!1,this.error=!1}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.onSwitchNetwork()}render(){if(!this.network)throw Error("w3m-network-switch-view: No network provided");this.onShowRetry();let e=this.getLabel(),t=this.getSubLabel();return(0,h.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,p.o)(s.fz.getNetworkImage(this.network))}
          ></wui-network-image>

          ${this.error?null:(0,h.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="accent"
          size="md"
          .disabled=${!this.error}
          @click=${this.onSwitchNetwork.bind(this)}
        >
          <wui-icon color="inherit" slot="iconLeft" name="refresh"></wui-icon>
          Try again
        </wui-button>
      </wui-flex>
    `}getSubLabel(){let e=s.MO.getConnectedConnector();return s.ConnectorController.getAuthConnector()&&"AUTH"===e?"":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"}getLabel(){let e=s.MO.getConnectedConnector();return s.ConnectorController.getAuthConnector()&&"AUTH"===e?`Switching to ${this.network?.name??"Unknown"} network...`:this.error?"Switch declined":"Approve in wallet"}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;let e=this.shadowRoot?.querySelector("wui-button");e?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}async onSwitchNetwork(){try{this.error=!1,this.network&&(await s.fB.switchActiveNetwork(this.network),await ep.onNetworkChange())}catch{this.error=!0}}};em.styles=ef,eg([(0,f.SB)()],em.prototype,"showRetry",void 0),eg([(0,f.SB)()],em.prototype,"error",void 0),em=eg([(0,l.customElement)("w3m-network-switch-view")],em);var ev=(0,h.iv)`
  .container {
    max-height: 360px;
    overflow: auto;
  }

  .container::-webkit-scrollbar {
    display: none;
  }
`,eb=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ey=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.network=s.fB.state.caipNetwork,this.requestedCaipNetworks=s.fB.getRequestedCaipNetworks(),this.search="",this.onDebouncedSearch=s.j1.debounce(e=>{this.search=e},100),this.unsubscribe.push(s.fB.subscribeKey("caipNetwork",e=>this.network=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      ${this.templateSearchInput()}
      <wui-flex
        class="container"
        .padding=${["0","s","s","s"]}
        flexDirection="column"
        gap="xs"
      >
        ${this.networksTemplate()}
      </wui-flex>

      <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>
    `}templateSearchInput(){return(0,h.dy)`
      <wui-flex gap="xs" .padding=${["0","s","s","s"]}>
        <wui-input-text
          @inputChange=${this.onInputChange.bind(this)}
          class="network-search-input"
          size="md"
          placeholder="Search network"
          icon="search"
        ></wui-input-text>
      </wui-flex>
    `}onInputChange(e){this.onDebouncedSearch(e.detail)}onNetworkHelp(){s.Xs.sendEvent({type:"track",event:"CLICK_NETWORK_HELP"}),s.RouterController.push("WhatIsANetwork")}networksTemplate(){let e=s.fB.getRequestedCaipNetworks(),t=s.fB.state.approvedCaipNetworkIds,r=s.fB.state.supportsAllNetworks,n=s.j1.sortRequestedNetworks(t,e);return this.search?this.filteredNetworks=n?.filter(e=>e?.name?.toLowerCase().includes(this.search.toLowerCase())):this.filteredNetworks=n,this.filteredNetworks?.map(e=>h.dy`
        <wui-list-network
          .selected=${this.network?.id===e.id}
          imageSrc=${p.o(s.fz.getNetworkImage(e))}
          type="network"
          name=${e.name??e.id}
          @click=${()=>this.onSwitchNetwork(e)}
          .disabled=${!r&&!t?.includes(e.id)&&e.chain===s.RY.state.activeChain}
          data-testid=${`w3m-network-switch-${e.name??e.id}`}
        ></wui-list-network>
      `)}async onSwitchNetwork(e){let t=s.AccountController.state.isConnected,r=s.AccountController.getChainIsConnected(e.chain),n=s.fB.state.approvedCaipNetworkIds,i=s.fB.state.supportsAllNetworks,o=s.fB.state.caipNetwork,a=s.RouterController.state.data;if(t&&o?.id!==e.id){if(!r){s.RouterController.push("SwitchActiveChain",{switchToChain:e.chain,navigateTo:"Connect",navigateWithReplace:!0});return}n?.includes(e.id)?(await s.fB.switchActiveNetwork(e),await ep.onNetworkChange()):i&&s.RouterController.push("SwitchNetwork",{...a,network:e})}else t||(s.fB.setActiveCaipNetwork(e),r||s.RouterController.push("Connect"))}};ey.styles=ev,eb([(0,f.SB)()],ey.prototype,"network",void 0),eb([(0,f.SB)()],ey.prototype,"requestedCaipNetworks",void 0),eb([(0,f.SB)()],ey.prototype,"filteredNetworks",void 0),eb([(0,f.SB)()],ey.prototype,"search",void 0),ey=eb([(0,l.customElement)("w3m-networks-view")],ey);var ew=(0,h.iv)`
  :host > wui-flex {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    padding: var(--wui-spacing-m);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  :host > wui-flex::-webkit-scrollbar {
    display: none;
  }

  :host > wui-flex > wui-flex {
    width: 100%;
  }

  wui-transaction-list-item-loader {
    width: 100%;
  }
`,ex=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e_=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.selectedOnRampProvider=s.ph.state.selectedProvider,this.loading=!1,this.coinbaseTransactions=s.sl.state.coinbaseTransactions,this.tokenImages=s.WM.state.tokenImages,this.unsubscribe.push(s.ph.subscribeKey("selectedProvider",e=>{this.selectedOnRampProvider=e}),s.WM.subscribeKey("tokenImages",e=>this.tokenImages=e),()=>{clearTimeout(this.refetchTimeout)},s.sl.subscribe(e=>{this.coinbaseTransactions={...e.coinbaseTransactions}})),s.sl.clearCursor(),this.fetchTransactions()}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
        ${this.loading?this.templateLoading():this.templateTransactionsByYear()}
      </wui-flex>
    `}templateTransactions(e){return e?.map(e=>{let t=c.Em.formatDate(e?.metadata?.minedAt),r=e.transfers[0],n=r?.fungible_info;if(!n)return null;let i=n?.icon?.url||this.tokenImages?.[n.symbol||""];return h.dy`
        <w3m-onramp-activity-item
          label="Bought"
          .completed=${"ONRAMP_TRANSACTION_STATUS_SUCCESS"===e.metadata.status}
          .inProgress=${"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status}
          .failed=${"ONRAMP_TRANSACTION_STATUS_FAILED"===e.metadata.status}
          purchaseCurrency=${p.o(n.symbol)}
          purchaseValue=${r.quantity.numeric}
          date=${t}
          icon=${p.o(i)}
          symbol=${p.o(n.symbol)}
        ></w3m-onramp-activity-item>
      `})}templateTransactionsByYear(){return Object.keys(this.coinbaseTransactions).sort().reverse().map(e=>{let t=parseInt(e,10);return Array(12).fill(null).map((e,t)=>t).reverse().map(e=>{let r=l.TransactionUtil.getTransactionGroupTitle(t,e),n=this.coinbaseTransactions[t]?.[e];return n?(0,h.dy)`
          <wui-flex flexDirection="column">
            <wui-flex
              alignItems="center"
              flexDirection="row"
              .padding=${["xs","s","s","s"]}
            >
              <wui-text variant="paragraph-500" color="fg-200">${r}</wui-text>
            </wui-flex>
            <wui-flex flexDirection="column" gap="xs">
              ${this.templateTransactions(n)}
            </wui-flex>
          </wui-flex>
        `:null})})}async fetchTransactions(){await this.fetchCoinbaseTransactions()}async fetchCoinbaseTransactions(){let e=s.AccountController.state.address,t=s.OptionsController.state.projectId;if(!e)throw Error("No address found");if(!t)throw Error("No projectId found");this.loading=!0,await s.sl.fetchTransactions(e,"coinbase"),this.loading=!1,this.refetchLoadingTransactions()}refetchLoadingTransactions(){let e=new Date;if(0===(this.coinbaseTransactions[e.getFullYear()]?.[e.getMonth()]||[]).filter(e=>"ONRAMP_TRANSACTION_STATUS_IN_PROGRESS"===e.metadata.status).length){clearTimeout(this.refetchTimeout);return}this.refetchTimeout=setTimeout(async()=>{let e=s.AccountController.state.address;await s.sl.fetchTransactions(e,"coinbase"),this.refetchLoadingTransactions()},3e3)}templateLoading(){return Array(7).fill((0,h.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e)}};e_.styles=ew,ex([(0,f.SB)()],e_.prototype,"selectedOnRampProvider",void 0),ex([(0,f.SB)()],e_.prototype,"loading",void 0),ex([(0,f.SB)()],e_.prototype,"coinbaseTransactions",void 0),ex([(0,f.SB)()],e_.prototype,"tokenImages",void 0),e_=ex([(0,l.customElement)("w3m-onramp-activity-view")],e_);var eC=(0,h.iv)`
  :host > wui-grid {
    max-height: 360px;
    overflow: auto;
  }

  wui-grid::-webkit-scrollbar {
    display: none;
  }
`,eA=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ek=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=s.ph.state.paymentCurrency,this.currencies=s.ph.state.paymentCurrencies,this.currencyImages=s.WM.state.currencyImages,this.unsubscribe.push(s.ph.subscribe(e=>{this.selectedCurrency=e.paymentCurrency,this.currencies=e.paymentCurrencies}),s.WM.subscribeKey("currencyImages",e=>this.currencyImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
        ${this.currenciesTemplate()}
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}currenciesTemplate(){return this.currencies.map(e=>(0,h.dy)`
        <wui-list-item
          imageSrc=${(0,p.o)(this.currencyImages?.[e.id])}
          @click=${()=>this.selectCurrency(e)}
          variant="image"
        >
          <wui-text variant="paragraph-500" color="fg-100">${e.id}</wui-text>
        </wui-list-item>
      `)}selectCurrency(e){e&&(s.ph.setPaymentCurrency(e),s.IN.close())}};ek.styles=eC,eA([(0,f.SB)()],ek.prototype,"selectedCurrency",void 0),eA([(0,f.SB)()],ek.prototype,"currencies",void 0),eA([(0,f.SB)()],ek.prototype,"currencyImages",void 0),ek=eA([(0,l.customElement)("w3m-onramp-fiat-select-view")],ek);var eE=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eS=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.providers=s.ph.state.providers,this.unsubscribe.push(s.ph.subscribeKey("providers",e=>{this.providers=e}))}firstUpdated(){Promise.all(this.providers.map(async e=>"coinbase"===e.name?await this.getCoinbaseOnRampURL():Promise.resolve(e?.url))).then(e=>{this.providers=this.providers.map((t,r)=>({...t,url:e[r]||""}))})}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
        ${this.onRampProvidersTemplate()}
      </wui-flex>
      <w3m-onramp-providers-footer></w3m-onramp-providers-footer>
    `}onRampProvidersTemplate(){return this.providers.map(e=>(0,h.dy)`
        <w3m-onramp-provider-item
          label=${e.label}
          name=${e.name}
          feeRange=${e.feeRange}
          @click=${()=>{this.onClickProvider(e)}}
          ?disabled=${!e.url}
        ></w3m-onramp-provider-item>
      `)}onClickProvider(e){s.ph.setSelectedProvider(e),s.RouterController.push("BuyInProgress"),s.j1.openHref(e.url,"popupWindow","width=600,height=800,scrollbars=yes"),s.Xs.sendEvent({type:"track",event:"SELECT_BUY_PROVIDER",properties:{provider:e.name,isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}})}async getCoinbaseOnRampURL(){let e=s.AccountController.state.address,t=s.fB.state.caipNetwork;if(!e)throw Error("No address found");if(!t?.name)throw Error("No network found");let r=s.bq.WC_COINBASE_PAY_SDK_CHAIN_NAME_MAP[t.name]??s.bq.WC_COINBASE_PAY_SDK_FALLBACK_CHAIN,n=s.ph.state.purchaseCurrency,i=n?[n.symbol]:s.ph.state.purchaseCurrencies.map(e=>e.symbol);return await s.Lr.generateOnRampURL({defaultNetwork:r,destinationWallets:[{address:e,blockchains:s.bq.WC_COINBASE_PAY_SDK_CHAINS,assets:i}],partnerUserId:e,purchaseAmount:s.ph.state.purchaseAmount})}};eE([(0,f.SB)()],eS.prototype,"providers",void 0),eS=eE([(0,l.customElement)("w3m-onramp-providers-view")],eS);var eT=(0,h.iv)`
  :host > wui-grid {
    max-height: 360px;
    overflow: auto;
  }

  wui-grid::-webkit-scrollbar {
    display: none;
  }
`,eI=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eP=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.selectedCurrency=s.ph.state.purchaseCurrencies,this.tokens=s.ph.state.purchaseCurrencies,this.tokenImages=s.WM.state.tokenImages,this.unsubscribe.push(s.ph.subscribe(e=>{this.selectedCurrency=e.purchaseCurrencies,this.tokens=e.purchaseCurrencies}),s.WM.subscribeKey("tokenImages",e=>this.tokenImages=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","s","s","s"]} gap="xs">
        ${this.currenciesTemplate()}
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}currenciesTemplate(){return this.tokens.map(e=>(0,h.dy)`
        <wui-list-item
          imageSrc=${(0,p.o)(this.tokenImages?.[e.symbol])}
          @click=${()=>this.selectToken(e)}
          variant="image"
        >
          <wui-flex gap="3xs" alignItems="center">
            <wui-text variant="paragraph-500" color="fg-100">${e.name}</wui-text>
            <wui-text variant="small-400" color="fg-200">${e.symbol}</wui-text>
          </wui-flex>
        </wui-list-item>
      `)}selectToken(e){e&&(s.ph.setPurchaseCurrency(e),s.IN.close())}};eP.styles=eT,eI([(0,f.SB)()],eP.prototype,"selectedCurrency",void 0),eI([(0,f.SB)()],eP.prototype,"tokens",void 0),eI([(0,f.SB)()],eP.prototype,"tokenImages",void 0),eP=eI([(0,l.customElement)("w3m-onramp-token-select-view")],eP);var eO=(0,h.iv)`
  :host > wui-flex:first-child {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  :host > wui-flex:first-child::-webkit-scrollbar {
    display: none;
  }

  wui-loading-hexagon {
    position: absolute;
  }

  .action-button {
    width: 100%;
    border-radius: var(--wui-border-radius-xs);
  }

  .action-button:disabled {
    border-color: 1px solid var(--wui-color-gray-glass-005);
  }

  .swap-inputs-container {
    position: relative;
  }

  .replace-tokens-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: var(--wui-spacing-1xs);
    border-radius: var(--wui-border-radius-xs);
    background-color: var(--wui-color-modal-bg-base);
    padding: var(--wui-spacing-xxs);
  }

  .replace-tokens-button-container > button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    padding: var(--wui-spacing-xs);
    border: none;
    border-radius: var(--wui-border-radius-xxs);
    background: var(--wui-color-gray-glass-002);
    transition: background-color var(--wui-duration-md) var(--wui-ease-out-power-1);
    will-change: background-color;
    z-index: 20;
  }

  .replace-tokens-button-container > button:hover {
    background: var(--wui-color-gray-glass-005);
  }

  .details-container > wui-flex {
    background: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xxs);
    width: 100%;
  }

  .details-container > wui-flex > button {
    border: none;
    background: none;
    padding: var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);
    transition: background 0.2s linear;
  }

  .details-container > wui-flex > button:hover {
    background: var(--wui-color-gray-glass-002);
  }

  .details-content-container {
    padding: var(--wui-spacing-1xs);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .details-content-container > wui-flex {
    width: 100%;
  }

  .details-row {
    width: 100%;
    padding: var(--wui-spacing-s) var(--wui-spacing-xl);
    border-radius: var(--wui-border-radius-xxs);
    background: var(--wui-color-gray-glass-002);
  }
`,eR=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eM=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!1,this.caipNetworkId=s.fB.state.caipNetwork?.id,this.initialized=s.nY.state.initialized,this.loadingQuote=s.nY.state.loadingQuote,this.loadingPrices=s.nY.state.loadingPrices,this.loadingTransaction=s.nY.state.loadingTransaction,this.sourceToken=s.nY.state.sourceToken,this.sourceTokenAmount=s.nY.state.sourceTokenAmount,this.sourceTokenPriceInUSD=s.nY.state.sourceTokenPriceInUSD,this.toToken=s.nY.state.toToken,this.toTokenAmount=s.nY.state.toTokenAmount,this.toTokenPriceInUSD=s.nY.state.toTokenPriceInUSD,this.inputError=s.nY.state.inputError,this.gasPriceInUSD=s.nY.state.gasPriceInUSD,this.fetchError=s.nY.state.fetchError,this.onDebouncedGetSwapCalldata=s.j1.debounce(async()=>{await s.nY.swapTokens()},200),s.fB.subscribeKey("caipNetwork",e=>{this.caipNetworkId!==e?.id&&(this.caipNetworkId=e?.id,s.nY.resetState(),s.nY.initializeState())}),this.unsubscribe.push(s.IN.subscribeKey("open",e=>{e||s.nY.resetState()}),s.RouterController.subscribeKey("view",e=>{e.includes("Swap")||s.nY.resetValues()}),s.nY.subscribe(e=>{this.initialized=e.initialized,this.loadingQuote=e.loadingQuote,this.loadingPrices=e.loadingPrices,this.loadingTransaction=e.loadingTransaction,this.sourceToken=e.sourceToken,this.sourceTokenAmount=e.sourceTokenAmount,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError,this.gasPriceInUSD=e.gasPriceInUSD,this.fetchError=e.fetchError}))}firstUpdated(){s.nY.initializeState(),this.watchTokensAndValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s">
        ${this.initialized?this.templateSwap():this.templateLoading()}
      </wui-flex>
    `}watchTokensAndValues(){this.interval=setInterval(()=>{s.nY.getNetworkTokenPrice(),s.nY.getMyTokensWithBalance(),s.nY.swapTokens()},1e4)}templateSwap(){return(0,h.dy)`
      <wui-flex flexDirection="column" gap="s">
        <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container">
          ${this.templateTokenInput("sourceToken",this.sourceToken)}
          ${this.templateTokenInput("toToken",this.toToken)} ${this.templateReplaceTokensButton()}
        </wui-flex>
        ${this.templateDetails()} ${this.templateActionButton()}
      </wui-flex>
    `}actionButtonLabel(){return this.fetchError?"Swap":this.sourceToken&&this.toToken?this.sourceTokenAmount?this.inputError?this.inputError:"Review swap":"Enter amount":"Select token"}templateReplaceTokensButton(){return(0,h.dy)`
      <wui-flex class="replace-tokens-button-container">
        <button @click=${this.onSwitchTokens.bind(this)}>
          <wui-icon name="recycleHorizontal" color="fg-250" size="lg"></wui-icon>
        </button>
      </wui-flex>
    `}templateLoading(){return(0,h.dy)`
      <wui-flex flexDirection="column" gap="l">
        <wui-flex flexDirection="column" alignItems="center" gap="xs" class="swap-inputs-container">
          <w3m-swap-input-skeleton target="sourceToken"></w3m-swap-input-skeleton>
          <w3m-swap-input-skeleton target="toToken"></w3m-swap-input-skeleton>
          ${this.templateReplaceTokensButton()}
        </wui-flex>
        ${this.templateActionButton()}
      </wui-flex>
    `}templateTokenInput(e,t){let r=s.nY.state.myTokensWithBalance?.find(e=>e?.address===t?.address),n="toToken"===e?this.toTokenAmount:this.sourceTokenAmount,i="toToken"===e?this.toTokenPriceInUSD:this.sourceTokenPriceInUSD,o=parseFloat(n)*i;return"toToken"===e&&(o-=this.gasPriceInUSD||0),(0,h.dy)`<w3m-swap-input
      .value=${"toToken"===e?this.toTokenAmount:this.sourceTokenAmount}
      ?disabled=${this.loadingQuote&&"toToken"===e}
      .onSetAmount=${this.handleChangeAmount.bind(this)}
      target=${e}
      .token=${t}
      .balance=${r?.quantity?.numeric}
      .price=${r?.price}
      .marketValue=${o}
      .onSetMaxValue=${this.onSetMaxValue.bind(this)}
    ></w3m-swap-input>`}onSetMaxValue(e,t){let r="sourceToken"===e?this.sourceToken:this.toToken,n=r?.address===s.bq.NATIVE_TOKEN_ADDRESS,i="0";if(!t){i="0",this.handleChangeAmount(e,i);return}if(!this.gasPriceInUSD){i=t,this.handleChangeAmount(e,i);return}let o=c.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.sourceTokenPriceInUSD),a=n?c.C6.bigNumber(t).minus(o):c.C6.bigNumber(t);this.handleChangeAmount(e,a.isGreaterThan(0)?a.toFixed(20):"0")}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,h.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}handleChangeAmount(e,t){s.nY.clearError(),"sourceToken"===e?s.nY.setSourceTokenAmount(t):s.nY.setToTokenAmount(t),this.onDebouncedGetSwapCalldata()}templateActionButton(){let e=!this.toToken||!this.sourceToken,t=!this.sourceTokenAmount,r=this.loadingQuote||this.loadingPrices||this.loadingTransaction,n=r||e||t||this.inputError;return(0,h.dy)` <wui-flex gap="xs">
      <wui-button
        data-testid="swap-action-button"
        class="action-button"
        fullWidth
        size="lg"
        borderRadius="xs"
        variant=${e?"neutral":"main"}
        .loading=${r}
        .disabled=${n}
        @click=${this.onSwapPreview.bind(this)}
      >
        ${this.actionButtonLabel()}
      </wui-button>
    </wui-flex>`}onSwitchTokens(){s.nY.switchTokens()}onSwapPreview(){if(this.fetchError){s.nY.swapTokens();return}s.Xs.sendEvent({type:"track",event:"INITIATE_SWAP",properties:{network:this.caipNetworkId||"",swapFromToken:this.sourceToken?.symbol||"",swapToToken:this.toToken?.symbol||"",swapFromAmount:this.sourceTokenAmount||"",swapToAmount:this.toTokenAmount||"",isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("SwapPreview")}};eM.styles=eO,eR([(0,f.SB)()],eM.prototype,"interval",void 0),eR([(0,f.SB)()],eM.prototype,"detailsOpen",void 0),eR([(0,f.SB)()],eM.prototype,"caipNetworkId",void 0),eR([(0,f.SB)()],eM.prototype,"initialized",void 0),eR([(0,f.SB)()],eM.prototype,"loadingQuote",void 0),eR([(0,f.SB)()],eM.prototype,"loadingPrices",void 0),eR([(0,f.SB)()],eM.prototype,"loadingTransaction",void 0),eR([(0,f.SB)()],eM.prototype,"sourceToken",void 0),eR([(0,f.SB)()],eM.prototype,"sourceTokenAmount",void 0),eR([(0,f.SB)()],eM.prototype,"sourceTokenPriceInUSD",void 0),eR([(0,f.SB)()],eM.prototype,"toToken",void 0),eR([(0,f.SB)()],eM.prototype,"toTokenAmount",void 0),eR([(0,f.SB)()],eM.prototype,"toTokenPriceInUSD",void 0),eR([(0,f.SB)()],eM.prototype,"inputError",void 0),eR([(0,f.SB)()],eM.prototype,"gasPriceInUSD",void 0),eR([(0,f.SB)()],eM.prototype,"fetchError",void 0),eM=eR([(0,l.customElement)("w3m-swap-view")],eM);var eN=(0,h.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-visual {
    width: var(--wui-wallet-image-size-lg);
    height: var(--wui-wallet-image-size-lg);
    border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
    position: relative;
    overflow: hidden;
  }

  wui-visual::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: calc(var(--wui-border-radius-5xs) * 9 - var(--wui-border-radius-xxs));
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  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:
      opacity var(--wui-ease-out-power-2) var(--wui-duration-lg),
      transform var(--wui-ease-out-power-2) var(--wui-duration-lg);
    will-change: opacity, transform;
  }

  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;
  }

  wui-link {
    padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
  }
`,ej=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eD=class extends h.oi{constructor(){super(...arguments),this.unsubscribe=[],this.switchToChain=s.RouterController.state.data?.switchToChain,this.navigateTo=s.RouterController.state.data?.navigateTo,this.navigateWithReplace=s.RouterController.state.data?.navigateWithReplace,this.activeChain=s.RY.state.activeChain}firstUpdated(){this.unsubscribe.push(s.RY.subscribeKey("activeChain",e=>this.activeChain=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.activeChain?c.bq.CHAIN_NAME_MAP[this.activeChain]:"current",t=this.switchToChain?c.bq.CHAIN_NAME_MAP[this.switchToChain]:"supported";return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" flexDirection="column" alignItems="center" gap="xl">
          <wui-visual name="eth"></wui-visual>
          <wui-text variant="paragraph-500" color="fg-100" align="center">Switch to EVM</wui-text>
          <wui-text variant="small-400" color="fg-200" align="center">
            This feature is not supported on the ${e} chain. Switch to
            ${t} chain to proceed using it.
          </wui-text>
          <wui-button size="md" @click=${this.switchActiveChain.bind(this)}>Switch</wui-button>
        </wui-flex>
      </wui-flex>
    `}switchActiveChain(){this.switchToChain&&(s.RY.setActiveChain(this.switchToChain),this.navigateTo?this.navigateWithReplace?s.RouterController.replace(this.navigateTo):s.RouterController.push(this.navigateTo):s.RouterController.goBack())}};eD.styles=eN,ej([(0,f.Cb)()],eD.prototype,"activeChain",void 0),eD=ej([(0,l.customElement)("w3m-switch-active-chain-view")],eD);var eB=(0,h.iv)`
  :host > wui-flex:first-child {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  :host > wui-flex:first-child::-webkit-scrollbar {
    display: none;
  }

  .preview-container,
  .details-container {
    width: 100%;
  }

  .token-image {
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
    border-radius: 12px;
  }

  wui-loading-hexagon {
    position: absolute;
  }

  .token-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wui-spacing-xxs);
    padding: var(--wui-spacing-xs);
    height: 40px;
    border: none;
    border-radius: 80px;
    background: var(--wui-color-gray-glass-002);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    cursor: pointer;
    transition: background 0.2s linear;
  }

  .token-item:hover {
    background: var(--wui-color-gray-glass-005);
  }

  .preview-token-details-container {
    width: 100%;
  }

  .details-row {
    width: 100%;
    padding: var(--wui-spacing-s) var(--wui-spacing-xl);
    border-radius: var(--wui-border-radius-xxs);
    background: var(--wui-color-gray-glass-002);
  }

  .action-buttons-container {
    width: 100%;
    gap: var(--wui-spacing-xs);
  }

  .action-buttons-container > button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    height: 48px;
    border-radius: var(--wui-border-radius-xs);
    border: none;
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }

  .action-buttons-container > button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
  }

  .action-button > wui-loading-spinner {
    display: inline-block;
  }

  .cancel-button:hover,
  .action-button:hover {
    cursor: pointer;
  }

  .action-buttons-container > wui-button.cancel-button {
    flex: 2;
  }

  .action-buttons-container > wui-button.action-button {
    flex: 4;
  }

  .action-buttons-container > button.action-button > wui-text {
    color: white;
  }

  .details-container > wui-flex {
    background: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xxs);
    width: 100%;
  }

  .details-container > wui-flex > button {
    border: none;
    background: none;
    padding: var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);
    transition: background 0.2s linear;
  }

  .details-container > wui-flex > button:hover {
    background: var(--wui-color-gray-glass-002);
  }

  .details-content-container {
    padding: var(--wui-spacing-1xs);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .details-content-container > wui-flex {
    width: 100%;
  }

  .details-row {
    width: 100%;
    padding: var(--wui-spacing-s) var(--wui-spacing-xl);
    border-radius: var(--wui-border-radius-xxs);
    background: var(--wui-color-gray-glass-002);
  }
`,eL=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e$=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.detailsOpen=!0,this.approvalTransaction=s.nY.state.approvalTransaction,this.swapTransaction=s.nY.state.swapTransaction,this.sourceToken=s.nY.state.sourceToken,this.sourceTokenAmount=s.nY.state.sourceTokenAmount??"",this.sourceTokenPriceInUSD=s.nY.state.sourceTokenPriceInUSD,this.toToken=s.nY.state.toToken,this.toTokenAmount=s.nY.state.toTokenAmount??"",this.toTokenPriceInUSD=s.nY.state.toTokenPriceInUSD,this.caipNetwork=s.fB.state.caipNetwork,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.gasPriceInUSD=s.nY.state.gasPriceInUSD,this.inputError=s.nY.state.inputError,this.loadingQuote=s.nY.state.loadingQuote,this.loadingApprovalTransaction=s.nY.state.loadingApprovalTransaction,this.loadingBuildTransaction=s.nY.state.loadingBuildTransaction,this.loadingTransaction=s.nY.state.loadingTransaction,this.unsubscribe.push(s.AccountController.subscribeKey("balanceSymbol",e=>{this.balanceSymbol!==e&&s.RouterController.goBack()}),s.fB.subscribeKey("caipNetwork",e=>{this.caipNetwork!==e&&(this.caipNetwork=e)}),s.nY.subscribe(e=>{this.approvalTransaction=e.approvalTransaction,this.swapTransaction=e.swapTransaction,this.sourceToken=e.sourceToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toToken=e.toToken,this.gasPriceInUSD=e.gasPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.sourceTokenAmount=e.sourceTokenAmount??"",this.toTokenAmount=e.toTokenAmount??"",this.inputError=e.inputError,e.inputError&&s.RouterController.goBack(),this.loadingQuote=e.loadingQuote,this.loadingApprovalTransaction=e.loadingApprovalTransaction,this.loadingBuildTransaction=e.loadingBuildTransaction,this.loadingTransaction=e.loadingTransaction}))}firstUpdated(){s.nY.getTransaction(),this.refreshTransaction()}disconnectedCallback(){this.unsubscribe.forEach(e=>e?.()),clearInterval(this.interval)}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","l","l","l"]} gap="s">
        ${this.templateSwap()}
      </wui-flex>
    `}refreshTransaction(){this.interval=setInterval(()=>{s.nY.getApprovalLoadingState()||s.nY.getTransaction()},1e4)}templateSwap(){let e=`${l.UiHelperUtil.formatNumberToLocalString(parseFloat(this.sourceTokenAmount))} ${this.sourceToken?.symbol}`,t=`${l.UiHelperUtil.formatNumberToLocalString(parseFloat(this.toTokenAmount))} ${this.toToken?.symbol}`,r=parseFloat(this.sourceTokenAmount)*this.sourceTokenPriceInUSD,n=parseFloat(this.toTokenAmount)*this.toTokenPriceInUSD-(this.gasPriceInUSD||0),i=l.UiHelperUtil.formatNumberToLocalString(r),o=l.UiHelperUtil.formatNumberToLocalString(n),a=this.loadingQuote||this.loadingBuildTransaction||this.loadingTransaction||this.loadingApprovalTransaction;return(0,h.dy)`
      <wui-flex flexDirection="column" alignItems="center" gap="l">
        <wui-flex class="preview-container" flexDirection="column" alignItems="flex-start" gap="l">
          <wui-flex
            class="preview-token-details-container"
            alignItems="center"
            justifyContent="space-between"
            gap="l"
          >
            <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs">
              <wui-text variant="small-400" color="fg-150">Send</wui-text>
              <wui-text variant="paragraph-400" color="fg-100">$${i}</wui-text>
            </wui-flex>
            <wui-token-button
              flexDirection="row-reverse"
              text=${e}
              imageSrc=${this.sourceToken?.logoUri}
            >
            </wui-token-button>
          </wui-flex>
          <wui-icon name="recycleHorizontal" color="fg-200" size="md"></wui-icon>
          <wui-flex
            class="preview-token-details-container"
            alignItems="center"
            justifyContent="space-between"
            gap="l"
          >
            <wui-flex flexDirection="column" alignItems="flex-start" gap="4xs">
              <wui-text variant="small-400" color="fg-150">Receive</wui-text>
              <wui-text variant="paragraph-400" color="fg-100">$${o}</wui-text>
            </wui-flex>
            <wui-token-button
              flexDirection="row-reverse"
              text=${t}
              imageSrc=${this.toToken?.logoUri}
            >
            </wui-token-button>
          </wui-flex>
        </wui-flex>

        ${this.templateDetails()}

        <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="xs">
          <wui-icon size="sm" color="fg-200" name="infoCircle"></wui-icon>
          <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text>
        </wui-flex>

        <wui-flex
          class="action-buttons-container"
          flexDirection="row"
          alignItems="center"
          justifyContent="space-between"
          gap="xs"
        >
          <wui-button
            class="cancel-button"
            fullWidth
            size="lg"
            borderRadius="xs"
            variant="neutral"
            @click=${this.onCancelTransaction.bind(this)}
          >
            <wui-text variant="paragraph-600" color="fg-200">Cancel</wui-text>
          </wui-button>
          <wui-button
            class="action-button"
            fullWidth
            size="lg"
            borderRadius="xs"
            variant="main"
            ?loading=${a}
            ?disabled=${a}
            @click=${this.onSendTransaction.bind(this)}
          >
            <wui-text variant="paragraph-600" color="inverse-100">
              ${this.actionButtonLabel()}
            </wui-text>
          </wui-button>
        </wui-flex>
      </wui-flex>
    `}templateDetails(){return this.sourceToken&&this.toToken&&!this.inputError?(0,h.dy)`<w3m-swap-details .detailsOpen=${this.detailsOpen}></w3m-swap-details>`:null}actionButtonLabel(){return this.loadingApprovalTransaction?"Approving...":this.approvalTransaction?"Approve":"Swap"}onCancelTransaction(){s.RouterController.goBack()}onSendTransaction(){this.approvalTransaction?s.nY.sendTransactionForApproval(this.approvalTransaction):s.nY.sendTransactionForSwap(this.swapTransaction)}};e$.styles=eB,eL([(0,f.SB)()],e$.prototype,"interval",void 0),eL([(0,f.SB)()],e$.prototype,"detailsOpen",void 0),eL([(0,f.SB)()],e$.prototype,"approvalTransaction",void 0),eL([(0,f.SB)()],e$.prototype,"swapTransaction",void 0),eL([(0,f.SB)()],e$.prototype,"sourceToken",void 0),eL([(0,f.SB)()],e$.prototype,"sourceTokenAmount",void 0),eL([(0,f.SB)()],e$.prototype,"sourceTokenPriceInUSD",void 0),eL([(0,f.SB)()],e$.prototype,"toToken",void 0),eL([(0,f.SB)()],e$.prototype,"toTokenAmount",void 0),eL([(0,f.SB)()],e$.prototype,"toTokenPriceInUSD",void 0),eL([(0,f.SB)()],e$.prototype,"caipNetwork",void 0),eL([(0,f.SB)()],e$.prototype,"balanceSymbol",void 0),eL([(0,f.SB)()],e$.prototype,"gasPriceInUSD",void 0),eL([(0,f.SB)()],e$.prototype,"inputError",void 0),eL([(0,f.SB)()],e$.prototype,"loadingQuote",void 0),eL([(0,f.SB)()],e$.prototype,"loadingApprovalTransaction",void 0),eL([(0,f.SB)()],e$.prototype,"loadingBuildTransaction",void 0),eL([(0,f.SB)()],e$.prototype,"loadingTransaction",void 0),e$=eL([(0,l.customElement)("w3m-swap-preview-view")],e$);var eU=(0,h.iv)`
  :host {
    --tokens-scroll--top-opacity: 0;
    --tokens-scroll--bottom-opacity: 1;
    --suggested-tokens-scroll--left-opacity: 0;
    --suggested-tokens-scroll--right-opacity: 1;
  }

  :host > wui-flex:first-child {
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: none;
    scrollbar-height: none;
  }

  :host > wui-flex:first-child::-webkit-scrollbar {
    display: none;
  }

  wui-loading-hexagon {
    position: absolute;
  }

  .suggested-tokens-container {
    overflow-x: auto;
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 0px,
      rgba(200, 200, 200, calc(1 - var(--suggested-tokens-scroll--left-opacity))) 1px,
      black 50px,
      black 90px,
      black calc(100% - 90px),
      black calc(100% - 50px),
      rgba(155, 155, 155, calc(1 - var(--suggested-tokens-scroll--right-opacity))) calc(100% - 1px),
      rgba(0, 0, 0, calc(1 - var(--suggested-tokens-scroll--right-opacity))) 100%
    );
  }

  .suggested-tokens-container::-webkit-scrollbar {
    display: none;
  }

  .tokens-container {
    border-top: 1px solid var(--wui-color-gray-glass-005);
    height: 100%;
    max-height: 390px;
  }

  .tokens {
    width: 100%;
    overflow-y: auto;
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, calc(1 - var(--tokens-scroll--top-opacity))) 0px,
      rgba(200, 200, 200, calc(1 - var(--tokens-scroll--top-opacity))) 1px,
      black 50px,
      black 90px,
      black calc(100% - 90px),
      black calc(100% - 50px),
      rgba(155, 155, 155, calc(1 - var(--tokens-scroll--bottom-opacity))) calc(100% - 1px),
      rgba(0, 0, 0, calc(1 - var(--tokens-scroll--bottom-opacity))) 100%
    );
  }

  .network-search-input,
  .select-network-button {
    height: 40px;
  }

  .select-network-button {
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--wui-spacing-xs);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
    background-color: transparent;
    border-radius: var(--wui-border-radius-xxs);
    padding: var(--wui-spacing-xs);
    align-items: center;
    transition: background-color 0.2s linear;
  }

  .select-network-button:hover {
    background-color: var(--wui-color-gray-glass-002);
  }

  .select-network-button > wui-image {
    width: 26px;
    height: 26px;
    border-radius: var(--wui-border-radius-xs);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
  }
`,ez=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eF=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.targetToken=s.RouterController.state.data?.target,this.sourceToken=s.nY.state.sourceToken,this.sourceTokenAmount=s.nY.state.sourceTokenAmount,this.toToken=s.nY.state.toToken,this.myTokensWithBalance=s.nY.state.myTokensWithBalance,this.popularTokens=s.nY.state.popularTokens,this.searchValue="",this.unsubscribe.push(s.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.myTokensWithBalance=e.myTokensWithBalance}))}updated(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e?.addEventListener("scroll",this.handleSuggestedTokensScroll.bind(this));let t=this.renderRoot?.querySelector(".tokens");t?.addEventListener("scroll",this.handleTokenListScroll.bind(this))}disconnectedCallback(){super.disconnectedCallback();let e=this.renderRoot?.querySelector(".suggested-tokens-container"),t=this.renderRoot?.querySelector(".tokens");e?.removeEventListener("scroll",this.handleSuggestedTokensScroll.bind(this)),t?.removeEventListener("scroll",this.handleTokenListScroll.bind(this)),clearInterval(this.interval)}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" gap="s">
        ${this.templateSearchInput()} ${this.templateSuggestedTokens()} ${this.templateTokens()}
      </wui-flex>
    `}onSelectToken(e){"sourceToken"===this.targetToken?s.nY.setSourceToken(e):(s.nY.setToToken(e),this.sourceToken&&this.sourceTokenAmount&&s.nY.swapTokens()),s.RouterController.goBack()}templateSearchInput(){return(0,h.dy)`
      <wui-flex .padding=${["3xs","s","0","s"]} gap="xs">
        <wui-input-text
          data-testid="swap-select-token-search-input"
          class="network-search-input"
          size="sm"
          placeholder="Search token"
          icon="search"
          .value=${this.searchValue}
          @inputChange=${this.onSearchInputChange.bind(this)}
        ></wui-input-text>
      </wui-flex>
    `}templateTokens(){let e=this.myTokensWithBalance?Object.values(this.myTokensWithBalance):[],t=this.popularTokens?this.popularTokens:[],r=this.filterTokensWithText(e,this.searchValue),n=this.filterTokensWithText(t,this.searchValue);return(0,h.dy)`
      <wui-flex class="tokens-container">
        <wui-flex class="tokens" .padding=${["0","s","s","s"]} flexDirection="column">
          ${r?.length>0?(0,h.dy)`
                <wui-flex justifyContent="flex-start" padding="s">
                  <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text>
                </wui-flex>
                ${r.map(e=>{let t=e.symbol===this.sourceToken?.symbol||e.symbol===this.toToken?.symbol;return(0,h.dy)`
                    <wui-token-list-item
                      data-testid="swap-select-token-item-${e.symbol}"
                      name=${e.name}
                      ?disabled=${t}
                      symbol=${e.symbol}
                      price=${e?.price}
                      amount=${e?.quantity?.numeric}
                      imageSrc=${e.logoUri}
                      @click=${()=>{t||this.onSelectToken(e)}}
                    >
                    </wui-token-list-item>
                  `})}
              `:null}

          <wui-flex justifyContent="flex-start" padding="s">
            <wui-text variant="paragraph-500" color="fg-200">Tokens</wui-text>
          </wui-flex>
          ${n?.length>0?n.map(e=>(0,h.dy)`
                  <wui-token-list-item
                    data-testid="swap-select-token-item-${e.symbol}"
                    name=${e.name}
                    symbol=${e.symbol}
                    imageSrc=${e.logoUri}
                    @click=${()=>this.onSelectToken(e)}
                  >
                  </wui-token-list-item>
                `):null}
        </wui-flex>
      </wui-flex>
    `}templateSuggestedTokens(){let e=s.nY.state.suggestedTokens?s.nY.state.suggestedTokens.slice(0,8):null;return e?(0,h.dy)`
      <wui-flex class="suggested-tokens-container" .padding=${["0","s","0","s"]} gap="xs">
        ${e.map(e=>(0,h.dy)`
            <wui-token-button
              text=${e.symbol}
              imageSrc=${e.logoUri}
              @click=${()=>this.onSelectToken(e)}
            >
            </wui-token-button>
          `)}
      </wui-flex>
    `:null}onSearchInputChange(e){this.searchValue=e.detail}handleSuggestedTokensScroll(){let e=this.renderRoot?.querySelector(".suggested-tokens-container");e&&(e.style.setProperty("--suggested-tokens-scroll--left-opacity",l.MathUtil.interpolate([0,100],[0,1],e.scrollLeft).toString()),e.style.setProperty("--suggested-tokens-scroll--right-opacity",l.MathUtil.interpolate([0,100],[0,1],e.scrollWidth-e.scrollLeft-e.offsetWidth).toString()))}handleTokenListScroll(){let e=this.renderRoot?.querySelector(".tokens");e&&(e.style.setProperty("--tokens-scroll--top-opacity",l.MathUtil.interpolate([0,100],[0,1],e.scrollTop).toString()),e.style.setProperty("--tokens-scroll--bottom-opacity",l.MathUtil.interpolate([0,100],[0,1],e.scrollHeight-e.scrollTop-e.offsetHeight).toString()))}filterTokensWithText(e,t){return e.filter(e=>`${e.symbol} ${e.name} ${e.address}`.toLowerCase().includes(t.toLowerCase()))}};eF.styles=eU,ez([(0,f.SB)()],eF.prototype,"interval",void 0),ez([(0,f.SB)()],eF.prototype,"targetToken",void 0),ez([(0,f.SB)()],eF.prototype,"sourceToken",void 0),ez([(0,f.SB)()],eF.prototype,"sourceTokenAmount",void 0),ez([(0,f.SB)()],eF.prototype,"toToken",void 0),ez([(0,f.SB)()],eF.prototype,"myTokensWithBalance",void 0),ez([(0,f.SB)()],eF.prototype,"popularTokens",void 0),ez([(0,f.SB)()],eF.prototype,"searchValue",void 0),eF=ez([(0,l.customElement)("w3m-swap-select-token-view")],eF);var eq=(0,h.iv)`
  :host > wui-flex:first-child {
    height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  :host > wui-flex:first-child::-webkit-scrollbar {
    display: none;
  }
`;let eH=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex flexDirection="column" .padding=${["0","m","m","m"]} gap="s">
        <w3m-activity-list page="activity"></w3m-activity-list>
      </wui-flex>
    `}};eH.styles=eq,eH=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-transactions-view")],eH);let eW=[{images:["network","layers","system"],title:"The system’s 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."}],eV=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        .padding=${["xxl","xl","xl","xl"]}
        alignItems="center"
        gap="xl"
      >
        <w3m-help-widget .data=${eW}></w3m-help-widget>
        <wui-button
          variant="main"
          size="md"
          @click=${()=>{s.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>
    `}};eV=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-what-is-a-network-view")],eV);let eZ=[{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."}],eG=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        .padding=${["xxl","xl","xl","xl"]}
        alignItems="center"
        gap="xl"
      >
        <w3m-help-widget .data=${eZ}></w3m-help-widget>
        <wui-button variant="main" size="md" @click=${this.onGetWallet.bind(this)}>
          <wui-icon color="inherit" slot="iconLeft" name="wallet"></wui-icon>
          Get a wallet
        </wui-button>
      </wui-flex>
    `}onGetWallet(){s.Xs.sendEvent({type:"track",event:"CLICK_GET_WALLET"}),s.RouterController.push("GetWallet")}};eG=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-what-is-a-wallet-view")],eG);let eK=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        .padding=${["xxl","3xl","xl","3xl"]}
        alignItems="center"
        gap="xl"
      >
        <wui-visual name="onrampCard"></wui-visual>
        <wui-flex flexDirection="column" gap="xs" alignItems="center">
          <wui-text align="center" variant="paragraph-500" color="fg-100">
            Quickly and easily buy digital assets!
          </wui-text>
          <wui-text align="center" variant="small-400" color="fg-200">
            Simply select your preferred onramp provider and add digital assets to your account
            using your credit card or bank transfer
          </wui-text>
        </wui-flex>
        <wui-button @click=${s.RouterController.goBack}>
          <wui-icon size="sm" color="inherit" name="add" slot="iconLeft"></wui-icon>
          Buy
        </wui-button>
      </wui-flex>
    `}};eK=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-what-is-a-buy-view")],eK);var eY=(0,h.iv)`
  wui-loading-spinner {
    margin: 9px auto;
  }

  .email-display,
  .email-display wui-text {
    max-width: 100%;
  }
`,eQ=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let eJ=class extends h.oi{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=N.$D.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=s.RouterController.state.data?.email,this.authConnector=s.ConnectorController.getAuthConnector()}render(){if(!this.email)throw Error("w3m-email-otp-widget: No email provided");let e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["l","0","l","0"]}
        gap="l"
      >
        <wui-flex
          class="email-display"
          flexDirection="column"
          alignItems="center"
          .padding=${["0","xl","0","xl"]}
        >
          <wui-text variant="paragraph-400" color="fg-100" align="center">
            Enter the code we sent to
          </wui-text>
          <wui-text variant="paragraph-500" color="fg-100" lineClamp="1" align="center">
            ${this.email}
          </wui-text>
        </wui-flex>

        <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text>

        ${this.loading?(0,h.dy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,h.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?(0,h.dy)`
                    <wui-text variant="small-400" align="center" color="error-100">
                      ${this.error}. Try Again
                    </wui-text>
                  `:null}
            </wui-flex>`}

        <wui-flex alignItems="center" gap="xs">
          <wui-text variant="small-400" color="fg-200">${t.title}</wui-text>
          <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}>
            ${t.action}
          </wui-link>
        </wui-flex>
      </wui-flex>
    `}startOTPTimeout(){this.timeoutTimeLeft=N.$D.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=N.$D.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{!this.loading&&(this.otp=e.detail,this.authConnector&&6===this.otp.length&&(this.loading=!0,await this.onOtpSubmit?.(this.otp)))}catch(e){this.error=s.j1.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!s.ConnectorController.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),s.SnackController.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){s.SnackController.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};eJ.styles=eY,eQ([(0,f.SB)()],eJ.prototype,"loading",void 0),eQ([(0,f.SB)()],eJ.prototype,"timeoutTimeLeft",void 0),eQ([(0,f.SB)()],eJ.prototype,"error",void 0),eJ=eQ([(0,l.customElement)("w3m-email-otp-widget")],eJ);var eX=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e0=class extends eJ{constructor(){super(),this.unsubscribe=[],this.smartAccountDeployed=s.AccountController.state.smartAccountDeployed,this.onOtpSubmit=async e=>{try{if(this.authConnector){let t=s.fB.checkIfSmartAccountEnabled();await this.authConnector.provider.connectOtp({otp:e}),s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),await s.ConnectionController.connectExternal(this.authConnector,this.authConnector.chain),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),s.AccountController.state.allAccounts.length>1?s.RouterController.push("SelectAddresses"):t&&!this.smartAccountDeployed?s.RouterController.push("UpgradeToSmartAccount"):s.IN.close()}}catch(e){throw s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))},this.unsubscribe.push(s.AccountController.subscribeKey("smartAccountDeployed",e=>{this.smartAccountDeployed=e}))}};eX([(0,f.SB)()],e0.prototype,"smartAccountDeployed",void 0),e0=eX([(0,l.customElement)("w3m-email-verify-otp-view")],e0);var e1=(0,h.iv)`
  wui-icon-box {
    height: var(--wui-icon-box-size-xl);
    width: var(--wui-icon-box-size-xl);
  }
`,e2=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e3=class extends h.oi{constructor(){super(),this.email=s.RouterController.state.data?.email,this.authConnector=s.ConnectorController.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){if(!this.email)throw Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw Error("w3m-email-verify-device-view: No auth connector provided");return(0,h.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" gap="xs">
            <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(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),s.Xs.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),s.RouterController.replace("EmailVerifyOtp",{email:this.email})}catch(e){s.RouterController.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),s.SnackController.showSuccess("Code email resent")}}catch(e){s.SnackController.showError(e)}finally{this.loading=!1}}};e3.styles=e1,e2([(0,f.SB)()],e3.prototype,"loading",void 0),e3=e2([(0,l.customElement)("w3m-email-verify-device-view")],e3);var e5=(0,h.iv)`
  div {
    width: 100%;
    height: 400px;
  }

  [data-ready='false'] {
    transform: scale(1.05);
  }

  @media (max-width: 430px) {
    [data-ready='false'] {
      transform: translateY(-50px);
    }
  }
`,e6=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e4=class extends h.oi{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(s.IN.subscribeKey("open",e=>{e||(this.onHideIframe(),s.RouterController.popTransactionStack())}),s.IN.subscribeKey("shake",e=>{e?this.iframe.style.animation="w3m-shake 500ms var(--wui-ease-out-power-2)":this.iframe.style.animation="none"}))}disconnectedCallback(){this.onHideIframe(),this.unsubscribe.forEach(e=>e()),this.bodyObserver?.unobserve(window.document.body)}async firstUpdated(){await this.syncTheme(),this.iframe.style.display="block",this.bodyObserver=new ResizeObserver(e=>{let t=e?.[0]?.contentBoxSize,r=t?.[0]?.inlineSize;this.iframe.style.height="400px",r&&r<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset"):(this.iframe.style.width="360px",this.iframe.style.left="calc(50% - 180px)",this.iframe.style.top="calc(50% - 200px + 32px)",this.iframe.style.bottom="unset"),this.ready=!0,this.onShowIframe()}),this.bodyObserver.observe(window.document.body)}render(){return(0,h.dy)`<div data-ready=${this.ready}></div>`}onShowIframe(){let e=window.innerWidth<=430;this.iframe.style.animation=e?"w3m-iframe-zoom-in-mobile 200ms var(--wui-ease-out-power-2)":"w3m-iframe-zoom-in 200ms var(--wui-ease-out-power-2)"}onHideIframe(){this.iframe.style.display="none",this.iframe.style.animation="w3m-iframe-fade-out 200ms var(--wui-ease-out-power-2)"}async syncTheme(){let e=s.ConnectorController.getAuthConnector();if(e){let t=s.ThemeController.getSnapshot().themeMode,r=s.ThemeController.getSnapshot().themeVariables;await e.provider.syncTheme({themeVariables:r,w3mThemeVariables:(0,c.tU)(r,t)})}}};e4.styles=e5,e6([(0,f.SB)()],e4.prototype,"ready",void 0),e4=e6([(0,l.customElement)("w3m-approve-transaction-view")],e4);let e8=class extends h.oi{render(){return(0,h.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=${s.bq.SECURE_SITE_DASHBOARD}
          imageSrc=${s.bq.SECURE_SITE_FAVICON}
          data-testid="w3m-secure-website-button"
        >
        </wui-chip>
        <wui-text variant="small-400" color="fg-200">
          You will have to reconnect for security reasons
        </wui-text>
      </wui-flex>
    `}};e8=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-upgrade-wallet-view")],e8);var e9=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let e7=class extends h.oi{constructor(){super(...arguments),this.authConnector=s.ConnectorController.getAuthConnector(),this.loading=!1,this.setPreferSmartAccount=async()=>{if(this.authConnector)try{this.loading=!0,await s.ConnectionController.setPreferredAccountType(N.y_.ACCOUNT_TYPES.SMART_ACCOUNT),this.loading=!1,s._4.navigateAfterPreferredAccountTypeSelect()}catch(e){s.SnackController.showError("Error upgrading to smart account")}}}render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        gap="xxl"
        .padding=${["0","0","l","0"]}
      >
        ${this.onboardingTemplate()} ${this.buttonsTemplate()}
        <wui-link
          @click=${()=>{s.j1.openHref(c.UE.URLS.FAQ,"_blank")}}
        >
          Learn more
          <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
        </wui-link>
      </wui-flex>
    `}onboardingTemplate(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      gap="xxl"
      alignItems="center"
      .padding=${["0","xxl","0","xxl"]}
    >
      <wui-flex gap="s" alignItems="center" justifyContent="center">
        <wui-visual name="google"></wui-visual>
        <wui-visual name="pencil"></wui-visual>
        <wui-visual name="lightbulb"></wui-visual>
      </wui-flex>
      <wui-flex flexDirection="column" alignItems="center" gap="s">
        <wui-text align="center" variant="medium-600" color="fg-100">
          Discover Smart Accounts
        </wui-text>
        <wui-text align="center" variant="paragraph-400" color="fg-100">
          Access advanced features such as username, social login, improved security and a smoother
          user experience!
        </wui-text>
      </wui-flex>
    </wui-flex>`}buttonsTemplate(){return(0,h.dy)`<wui-flex .padding=${["0","2l","0","2l"]} gap="s">
      <wui-button
        variant="accent"
        @click=${this.redirectToAccount.bind(this)}
        size="lg"
        borderRadius="xs"
      >
        Do it later
      </wui-button>
      <wui-button
        .loading=${this.loading}
        size="lg"
        borderRadius="xs"
        @click=${this.setPreferSmartAccount.bind(this)}
        >Continue
      </wui-button>
    </wui-flex>`}redirectToAccount(){s.RouterController.push("Account")}};e9([(0,f.SB)()],e7.prototype,"authConnector",void 0),e9([(0,f.SB)()],e7.prototype,"loading",void 0),e7=e9([(0,l.customElement)("w3m-upgrade-to-smart-account-view")],e7);var te=(0,h.iv)`
  wui-email-input {
    width: 100%;
  }

  form {
    width: 100%;
    display: block;
    position: relative;
  }
`,tt=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tr=class extends h.oi{constructor(){super(...arguments),this.formRef=(0,el.V)(),this.initialEmail=s.RouterController.state.data?.email??"",this.email="",this.loading=!1}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return(0,h.dy)`
      <wui-flex flexDirection="column" padding="m" gap="m">
        <form ${(0,el.i)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}>
          <wui-email-input
            value=${this.initialEmail}
            .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="neutral" fullWidth @click=${s.RouterController.goBack}>
            Cancel
          </wui-button>

          <wui-button
            size="md"
            variant="main"
            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();let t=s.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let r=await t.provider.updateEmail({email:this.email});s.Xs.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===r.action?s.RouterController.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email}):s.RouterController.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email})}catch(e){s.SnackController.showError(e),this.loading=!1}}};tr.styles=te,tt([(0,f.SB)()],tr.prototype,"email",void 0),tt([(0,f.SB)()],tr.prototype,"loading",void 0),tr=tt([(0,l.customElement)("w3m-update-email-wallet-view")],tr);let tn=class extends eJ{constructor(){super(),this.email=s.RouterController.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),s.RouterController.replace("UpdateEmailSecondaryOtp",s.RouterController.state.data))}catch(e){throw s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{s.RouterController.replace("UpdateEmailWallet",s.RouterController.state.data)}}};tn=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-update-email-primary-otp-view")],tn);let ti=class extends eJ{constructor(){super(),this.email=s.RouterController.state.data?.newEmail,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),s.RouterController.reset("Account"))}catch(e){throw s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL"}),e}},this.onStartOver=()=>{s.RouterController.replace("UpdateEmailWallet",s.RouterController.state.data)}}};ti=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-update-email-secondary-otp-view")],ti);var to=(0,h.iv)`
  :host > wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
  }

  :host > wui-flex::-webkit-scrollbar {
    display: none;
  }
`,ta=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ts=class extends h.oi{constructor(){super(...arguments),this.swapUnsupportedChain=s.RouterController.state.data?.swapUnsupportedChain,this.disconecting=!1}render(){return(0,h.dy)`
      <wui-flex class="container" flexDirection="column" gap="0">
        <wui-flex
          class="container"
          flexDirection="column"
          .padding=${["m","xl","xs","xl"]}
          alignItems="center"
          gap="xl"
        >
          ${this.descriptionTemplate()}
        </wui-flex>

        <wui-flex flexDirection="column" padding="s" gap="xs">
          ${this.networksTemplate()}
        </wui-flex>

        <wui-separator text="or"></wui-separator>
        <wui-flex flexDirection="column" padding="s" gap="xs">
          <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>
      </wui-flex>
    `}descriptionTemplate(){return this.swapUnsupportedChain?(0,h.dy)`
        <wui-text variant="small-400" color="fg-200" align="center">
          The swap feature doesn’t support your current network. Switch to an available option to
          continue.
        </wui-text>
      `:(0,h.dy)`
      <wui-text variant="small-400" color="fg-200" align="center">
        This app doesn’t support your current network. Switch to an available option to continue.
      </wui-text>
    `}networksTemplate(){let e=s.fB.getRequestedCaipNetworks(),t=s.fB.state.approvedCaipNetworkIds,r=s.j1.sortRequestedNetworks(t,e);return(this.swapUnsupportedChain?r.filter(e=>s.bq.SWAP_SUPPORTED_NETWORKS.includes(e.id)):r).map(e=>(0,h.dy)`
        <wui-list-network
          imageSrc=${(0,p.o)(s.fz.getNetworkImage(e))}
          name=${e.name??"Unknown"}
          @click=${()=>this.onSwitchNetwork(e)}
        >
        </wui-list-network>
      `)}async onDisconnect(){try{this.disconecting=!0,await s.ConnectionController.disconnect(),s.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),s.IN.close()}catch{s.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),s.SnackController.showError("Failed to disconnect")}finally{this.disconecting=!1}}async onSwitchNetwork(e){let t=s.AccountController.state.isConnected,r=s.fB.state.approvedCaipNetworkIds,n=s.fB.state.supportsAllNetworks,i=s.fB.state.caipNetwork,o=s.RouterController.state.data;t&&i?.id!==e.id?r?.includes(e.id)?(await s.fB.switchActiveNetwork(e),await ep.onNetworkChange()):n&&s.RouterController.push("SwitchNetwork",{...o,network:e}):t||(s.fB.setActiveCaipNetwork(e),s.RouterController.push("Connect"))}};ts.styles=to,ta([(0,f.SB)()],ts.prototype,"disconecting",void 0),ts=ta([(0,l.customElement)("w3m-unsupported-chain-view")],ts);var tl=(0,h.iv)`
  wui-compatible-network {
    margin-top: var(--wui-spacing-l);
  }
`,tc=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tu=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.address=s.AccountController.state.address,this.profileName=s.AccountController.state.profileName,this.network=s.fB.state.caipNetwork,this.preferredAccountType=s.AccountController.state.preferredAccountType,this.unsubscribe.push(s.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileName=e.profileName,this.preferredAccountType=e.preferredAccountType):s.SnackController.showError("Account not found")}),s.fB.subscribeKey("caipNetwork",e=>{e?.id&&(this.network=e)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-wallet-receive-view: No account provided");let e=s.fz.getNetworkImage(this.network);return(0,h.dy)` <wui-flex
      flexDirection="column"
      .padding=${["0","l","l","l"]}
      alignItems="center"
    >
      <wui-chip-button
        data-testid="receive-address-copy-button"
        @click=${this.onCopyClick.bind(this)}
        text=${l.UiHelperUtil.getTruncateString({string:this.profileName||this.address||"",charsStart:this.profileName?18:4,charsEnd:this.profileName?0:4,truncate:this.profileName?"end":"middle"})}
        icon="copy"
        size="sm"
        imageSrc=${e||""}
        variant="gray"
      ></wui-chip-button>
      <wui-flex
        flexDirection="column"
        .padding=${["l","0","0","0"]}
        alignItems="center"
        gap="s"
      >
        <wui-qr-code
          size=${232}
          theme=${s.ThemeController.state.themeMode}
          uri=${this.address}
          ?arenaClear=${!0}
          data-testid="wui-qr-code"
        ></wui-qr-code>
        <wui-text variant="paragraph-500" color="fg-100" align="center">
          Copy your address or scan this QR code
        </wui-text>
      </wui-flex>
      ${this.networkTemplate()}
    </wui-flex>`}networkTemplate(){let e=s.fB.getRequestedCaipNetworks(),t=s.fB.checkIfSmartAccountEnabled(),r=s.fB.state.caipNetwork;if(this.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&t)return r?(0,h.dy)`<wui-compatible-network
        @click=${this.onReceiveClick.bind(this)}
        text="Only receive assets on this network"
        .networkImages=${[s.fz.getNetworkImage(r)??""]}
      ></wui-compatible-network>`:null;let n=(e?.filter(e=>e?.imageId)?.slice(0,5)).map(s.fz.getNetworkImage).filter(Boolean);return(0,h.dy)`<wui-compatible-network
      @click=${this.onReceiveClick.bind(this)}
      text="Only receive assets on these networks"
      .networkImages=${n}
    ></wui-compatible-network>`}onReceiveClick(){s.RouterController.push("WalletCompatibleNetworks")}onCopyClick(){try{this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}};tu.styles=tl,tc([(0,f.SB)()],tu.prototype,"address",void 0),tc([(0,f.SB)()],tu.prototype,"profileName",void 0),tc([(0,f.SB)()],tu.prototype,"network",void 0),tc([(0,f.SB)()],tu.prototype,"preferredAccountType",void 0),tu=tc([(0,l.customElement)("w3m-wallet-receive-view")],tu);var td=(0,h.iv)`
  :host > wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
  }

  :host > wui-flex::-webkit-scrollbar {
    display: none;
  }
`,th=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tf=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.preferredAccountType=s.AccountController.state.preferredAccountType,this.unsubscribe.push(s.AccountController.subscribeKey("preferredAccountType",e=>{this.preferredAccountType=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      .padding=${["xs","s","m","s"]}
      gap="xs"
    >
      <wui-banner
        icon="warningCircle"
        text="You can only receive assets on these networks"
      ></wui-banner>
      ${this.networkTemplate()}
    </wui-flex>`}networkTemplate(){let e=s.fB.getRequestedCaipNetworks(),t=s.fB.state.approvedCaipNetworkIds,r=s.fB.state.caipNetwork,n=s.fB.checkIfSmartAccountEnabled(),i=s.j1.sortRequestedNetworks(t,e);if(n&&this.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT){if(!r)return null;i=[r]}return i.map(e=>(0,h.dy)`
        <wui-list-network
          imageSrc=${(0,p.o)(s.fz.getNetworkImage(e))}
          name=${e.name??"Unknown"}
          ?transparent=${!0}
        >
        </wui-list-network>
      `)}};tf.styles=td,th([(0,f.SB)()],tf.prototype,"preferredAccountType",void 0),tf=th([(0,l.customElement)("w3m-wallet-compatible-networks-view")],tf);var tp=(0,h.iv)`
  :host {
    display: block;
  }

  wui-flex {
    position: relative;
  }

  wui-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-xs) !important;
    border: 5px solid var(--wui-color-bg-125);
    background: var(--wui-color-bg-175);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
  }

  wui-button {
    --local-border-radius: var(--wui-border-radius-xs) !important;
  }

  .inputContainer {
    height: fit-content;
  }
`,tg=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tm=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.token=s.Si.state.token,this.sendTokenAmount=s.Si.state.sendTokenAmount,this.receiverAddress=s.Si.state.receiverAddress,this.receiverProfileName=s.Si.state.receiverProfileName,this.loading=s.Si.state.loading,this.gasPriceInUSD=s.Si.state.gasPriceInUSD,this.message="Preview Send",this.fetchNetworkPrice(),this.unsubscribe.push(s.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.loading=e.loading}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.getMessage(),(0,h.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}>
      <wui-flex class="inputContainer" gap="xs" flexDirection="column">
        <w3m-input-token
          .token=${this.token}
          .sendTokenAmount=${this.sendTokenAmount}
          .gasPriceInUSD=${this.gasPriceInUSD}
        ></w3m-input-token>
        <wui-icon-box
          size="inherit"
          backgroundColor="fg-300"
          iconSize="lg"
          iconColor="fg-250"
          background="opaque"
          icon="arrowBottom"
        ></wui-icon-box>
        <w3m-input-address
          .value=${this.receiverProfileName?this.receiverProfileName:this.receiverAddress}
        ></w3m-input-address>
      </wui-flex>
      <wui-flex .margin=${["l","0","0","0"]}>
        <wui-button
          @click=${this.onButtonClick.bind(this)}
          ?disabled=${!this.message.startsWith("Preview Send")}
          size="lg"
          variant="main"
          ?loading=${this.loading}
          fullWidth
        >
          ${this.message}
        </wui-button>
      </wui-flex>
    </wui-flex>`}async fetchNetworkPrice(){await s.nY.getNetworkTokenPrice();let e=await s.nY.getInitialGasPrice();e?.gasPrice&&e?.gasPriceInUSD&&(s.Si.setGasPrice(e.gasPrice),s.Si.setGasPriceInUsd(e.gasPriceInUSD))}onButtonClick(){s.RouterController.push("WalletSendPreview")}getMessage(){this.message="Preview Send",this.receiverAddress&&!s.j1.isAddress(this.receiverAddress)&&(this.message="Invalid Address"),this.receiverAddress||(this.message="Add Address"),this.sendTokenAmount&&this.token&&this.sendTokenAmount>Number(this.token.quantity.numeric)&&(this.message="Insufficient Funds"),this.sendTokenAmount||(this.message="Add Amount"),this.sendTokenAmount&&this.token?.price&&!(this.sendTokenAmount*this.token.price)&&(this.message="Incorrect Value"),this.token||(this.message="Select Token")}};tm.styles=tp,tg([(0,f.SB)()],tm.prototype,"token",void 0),tg([(0,f.SB)()],tm.prototype,"sendTokenAmount",void 0),tg([(0,f.SB)()],tm.prototype,"receiverAddress",void 0),tg([(0,f.SB)()],tm.prototype,"receiverProfileName",void 0),tg([(0,f.SB)()],tm.prototype,"loading",void 0),tg([(0,f.SB)()],tm.prototype,"gasPriceInUSD",void 0),tg([(0,f.SB)()],tm.prototype,"message",void 0),tm=tg([(0,l.customElement)("w3m-wallet-send-view")],tm);var tv=(0,h.iv)`
  .contentContainer {
    height: 440px;
    overflow: scroll;
    scrollbar-width: none;
  }

  .contentContainer::-webkit-scrollbar {
    display: none;
  }

  wui-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-xxs);
  }
`,tb=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ty=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=s.AccountController.state.tokenBalance,this.search="",this.onDebouncedSearch=s.j1.debounce(e=>{this.search=e}),this.unsubscribe.push(s.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex flexDirection="column">
        ${this.templateSearchInput()} <wui-separator></wui-separator> ${this.templateTokens()}
      </wui-flex>
    `}templateSearchInput(){return(0,h.dy)`
      <wui-flex gap="xs" padding="s">
        <wui-input-text
          @inputChange=${this.onInputChange.bind(this)}
          class="network-search-input"
          size="sm"
          placeholder="Search token"
          icon="search"
        ></wui-input-text>
      </wui-flex>
    `}templateTokens(){return this.tokens=this.tokenBalance?.filter(e=>e.chainId===s.fB.state.caipNetwork?.id),this.search?this.filteredTokens=this.tokenBalance?.filter(e=>e.name.toLowerCase().includes(this.search.toLowerCase())):this.filteredTokens=this.tokens,(0,h.dy)`
      <wui-flex
        class="contentContainer"
        flexDirection="column"
        .padding=${["0","s","0","s"]}
      >
        <wui-flex justifyContent="flex-start" .padding=${["m","s","s","s"]}>
          <wui-text variant="paragraph-500" color="fg-200">Your tokens</wui-text>
        </wui-flex>
        <wui-flex flexDirection="column" gap="xs">
          ${this.filteredTokens&&this.filteredTokens.length>0?this.filteredTokens.map(e=>(0,h.dy)`<wui-list-token
                    @click=${this.handleTokenClick.bind(this,e)}
                    ?clickable=${!0}
                    tokenName=${e.name}
                    tokenImageUrl=${e.iconUrl}
                    tokenAmount=${e.quantity.numeric}
                    tokenValue=${e.value}
                    tokenCurrency=${e.symbol}
                  ></wui-list-token>`):(0,h.dy)`<wui-flex
                .padding=${["4xl","0","0","0"]}
                alignItems="center"
                flexDirection="column"
                gap="l"
              >
                <wui-icon-box
                  icon="coinPlaceholder"
                  size="inherit"
                  iconColor="fg-200"
                  backgroundColor="fg-200"
                  iconSize="lg"
                ></wui-icon-box>
                <wui-flex
                  class="textContent"
                  gap="xs"
                  flexDirection="column"
                  justifyContent="center"
                  flexDirection="column"
                >
                  <wui-text variant="paragraph-500" align="center" color="fg-100"
                    >No tokens found</wui-text
                  >
                  <wui-text variant="small-400" align="center" color="fg-200"
                    >Your tokens will appear here</wui-text
                  >
                </wui-flex>
                <wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>
              </wui-flex>`}
        </wui-flex>
      </wui-flex>
    `}onBuyClick(){s.RouterController.push("OnRampProviders")}onInputChange(e){this.onDebouncedSearch(e.detail)}handleTokenClick(e){s.Si.setToken(e),s.Si.setTokenAmount(void 0),s.RouterController.goBack()}};ty.styles=tv,tb([(0,f.SB)()],ty.prototype,"tokenBalance",void 0),tb([(0,f.SB)()],ty.prototype,"tokens",void 0),tb([(0,f.SB)()],ty.prototype,"filteredTokens",void 0),tb([(0,f.SB)()],ty.prototype,"search",void 0),ty=tb([(0,l.customElement)("w3m-wallet-send-select-token-view")],ty);var tw=(0,h.iv)`
  wui-avatar,
  wui-image {
    display: ruby;
    width: 32px;
    height: 32px;
    border-radius: var(--wui-border-radius-3xl);
  }

  .sendButton {
    width: 70%;
    --local-width: 100% !important;
    --local-border-radius: var(--wui-border-radius-xs) !important;
  }

  .cancelButton {
    width: 30%;
    --local-width: 100% !important;
    --local-border-radius: var(--wui-border-radius-xs) !important;
  }
`,tx=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let t_=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.token=s.Si.state.token,this.sendTokenAmount=s.Si.state.sendTokenAmount,this.receiverAddress=s.Si.state.receiverAddress,this.receiverProfileName=s.Si.state.receiverProfileName,this.receiverProfileImageUrl=s.Si.state.receiverProfileImageUrl,this.gasPriceInUSD=s.Si.state.gasPriceInUSD,this.caipNetwork=s.fB.state.caipNetwork,this.unsubscribe.push(s.Si.subscribe(e=>{this.token=e.token,this.sendTokenAmount=e.sendTokenAmount,this.receiverAddress=e.receiverAddress,this.gasPriceInUSD=e.gasPriceInUSD,this.receiverProfileName=e.receiverProfileName,this.receiverProfileImageUrl=e.receiverProfileImageUrl}),s.fB.subscribeKey("caipNetwork",e=>this.caipNetwork=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)` <wui-flex flexDirection="column" .padding=${["0","l","l","l"]}>
      <wui-flex gap="xs" flexDirection="column" .padding=${["0","xs","0","xs"]}>
        <wui-flex alignItems="center" justifyContent="space-between">
          <wui-flex flexDirection="column" gap="4xs">
            <wui-text variant="small-400" color="fg-150">Send</wui-text>
            ${this.sendValueTemplate()}
          </wui-flex>
          <wui-preview-item
            text="${this.sendTokenAmount?l.UiHelperUtil.roundNumber(this.sendTokenAmount,6,5):"unknown"} ${this.token?.symbol}"
            .imageSrc=${this.token?.iconUrl}
          ></wui-preview-item>
        </wui-flex>
        <wui-flex>
          <wui-icon color="fg-200" size="md" name="arrowBottom"></wui-icon>
        </wui-flex>
        <wui-flex alignItems="center" justifyContent="space-between">
          <wui-text variant="small-400" color="fg-150">To</wui-text>
          <wui-preview-item
            text="${this.receiverProfileName?l.UiHelperUtil.getTruncateString({string:this.receiverProfileName,charsStart:20,charsEnd:0,truncate:"end"}):l.UiHelperUtil.getTruncateString({string:this.receiverAddress?this.receiverAddress:"",charsStart:4,charsEnd:4,truncate:"middle"})}"
            address=${this.receiverAddress??""}
            .imageSrc=${this.receiverProfileImageUrl??void 0}
            .isAddress=${!0}
          ></wui-preview-item>
        </wui-flex>
      </wui-flex>
      <wui-flex flexDirection="column" .padding=${["xxl","0","0","0"]}>
        <w3m-wallet-send-details
          .caipNetwork=${this.caipNetwork}
          .receiverAddress=${this.receiverAddress}
          .networkFee=${this.gasPriceInUSD}
        ></w3m-wallet-send-details>
        <wui-flex justifyContent="center" gap="xxs" .padding=${["s","0","0","0"]}>
          <wui-icon size="sm" color="fg-200" name="warningCircle"></wui-icon>
          <wui-text variant="small-400" color="fg-200">Review transaction carefully</wui-text>
        </wui-flex>
        <wui-flex justifyContent="center" gap="s" .padding=${["l","0","0","0"]}>
          <wui-button
            class="cancelButton"
            @click=${this.onCancelClick.bind(this)}
            size="lg"
            variant="neutral"
          >
            Cancel
          </wui-button>
          <wui-button
            class="sendButton"
            @click=${this.onSendClick.bind(this)}
            size="lg"
            variant="main"
          >
            Send
          </wui-button>
        </wui-flex>
      </wui-flex></wui-flex
    >`}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,h.dy)`<wui-text variant="paragraph-400" color="fg-100"
        >$${e.toFixed(2)}</wui-text
      >`}return null}onSendClick(){s.Si.sendToken()}onCancelClick(){s.RouterController.goBack()}};t_.styles=tw,tx([(0,f.SB)()],t_.prototype,"token",void 0),tx([(0,f.SB)()],t_.prototype,"sendTokenAmount",void 0),tx([(0,f.SB)()],t_.prototype,"receiverAddress",void 0),tx([(0,f.SB)()],t_.prototype,"receiverProfileName",void 0),tx([(0,f.SB)()],t_.prototype,"receiverProfileImageUrl",void 0),tx([(0,f.SB)()],t_.prototype,"gasPriceInUSD",void 0),tx([(0,f.SB)()],t_.prototype,"caipNetwork",void 0),t_=tx([(0,l.customElement)("w3m-wallet-send-preview-view")],t_);var tC=(0,h.iv)`
  wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
  }
  wui-flex::-webkit-scrollbar {
    display: none;
  }
`;let tA=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex flexDirection="column" padding="s" gap="xs">
        <w3m-wallet-login-list></w3m-wallet-login-list>
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}};tA.styles=tC,tA=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connect-wallets-view")],tA);var tk=(0,h.iv)`
  wui-flex {
    max-height: clamp(360px, 540px, 80vh);
    overflow: scroll;
    scrollbar-width: none;
  }
  wui-flex::-webkit-scrollbar {
    display: none;
  }
`;let tE=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex flexDirection="column" padding="s" gap="xs">
        <w3m-social-login-list></w3m-social-login-list>
      </wui-flex>
      <w3m-legal-footer></w3m-legal-footer>
    `}};tE.styles=tk,tE=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connect-socials-view")],tE);var tS=(0,h.iv)`
  wui-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--wui-border-radius-m);
  }
  @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;
  }
  .capitalize {
    text-transform: capitalize;
  }
`,tT=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tI=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.socialProvider=s.AccountController.state.socialProvider,this.socialWindow=s.AccountController.state.socialWindow,this.error=!1,this.connecting=!1,this.message="Connect in the provider window",this.authConnector=s.ConnectorController.getAuthConnector(),this.handleSocialConnection=async e=>{if(e.data?.resultUri){if(e.origin===E.SECURE_SITE_ORIGIN){window.removeEventListener("message",this.handleSocialConnection,!1);try{if(this.authConnector&&!this.connecting){this.socialWindow&&(this.socialWindow.close(),s.AccountController.setSocialWindow(void 0,s.RY.state.activeChain)),this.connecting=!0,this.updateMessage();let t=e.data.resultUri;await this.authConnector.provider.connectSocial(t),this.socialProvider&&(s.MO.setConnectedSocialProvider(this.socialProvider),await s.ConnectionController.connectExternal(this.authConnector,this.authConnector.chain),s.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_SUCCESS",properties:{provider:this.socialProvider}}))}}catch(e){this.error=!0,this.updateMessage(),this.socialProvider&&s.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}}else s.RouterController.goBack(),s.SnackController.showError("Untrusted Origin"),this.socialProvider&&s.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:this.socialProvider}})}},this.unsubscribe.push(s.AccountController.subscribe(e=>{e.socialProvider&&(this.socialProvider=e.socialProvider),e.socialWindow&&(this.socialWindow=e.socialWindow),e.address&&s.IN.state.open&&s.IN.close()})),this.authConnector&&this.connectSocial()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),window.removeEventListener("message",this.handleSocialConnection,!1)}render(){return(0,h.dy)`
      <wui-flex
        data-error=${(0,p.o)(this.error)}
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" alignItems="center">
          <wui-logo logo=${(0,p.o)(this.socialProvider)}></wui-logo>
          ${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 align="center" variant="paragraph-500" color="fg-100"
            >Log in with
            <span class="capitalize">${this.socialProvider??"Social"}</span></wui-text
          >
          <wui-text align="center" variant="small-400" color=${this.error?"error-100":"fg-200"}
            >${this.message}</wui-text
          ></wui-flex
        >
      </wui-flex>
    `}loaderTemplate(){let e=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,h.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}connectSocial(){let e=setInterval(()=>{this.socialWindow?.closed&&(this.connecting||"ConnectingSocial"!==s.RouterController.state.view||s.RouterController.goBack(),clearInterval(e))},1e3);window.addEventListener("message",this.handleSocialConnection,!1)}updateMessage(){this.error?this.message="Something went wrong":this.connecting?this.message="Retrieving user data":this.message="Connect in the provider window"}};tI.styles=tS,tT([(0,f.SB)()],tI.prototype,"socialProvider",void 0),tT([(0,f.SB)()],tI.prototype,"socialWindow",void 0),tT([(0,f.SB)()],tI.prototype,"error",void 0),tT([(0,f.SB)()],tI.prototype,"connecting",void 0),tT([(0,f.SB)()],tI.prototype,"message",void 0),tI=tT([(0,l.customElement)("w3m-connecting-social-view")],tI);var tP=(0,h.iv)`
  wui-flex {
    width: 100%;
  }

  wui-icon-link {
    margin-right: calc(var(--wui-icon-box-size-md) * -1);
  }

  .account-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .account-links wui-flex {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: red;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 10px;
    flex: 1 0 0;

    border-radius: var(--XS, 16px);
    border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
    background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color;
  }

  .account-links wui-flex:hover {
    background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15));
  }

  .account-links wui-flex wui-icon {
    width: var(--S, 20px);
    height: var(--S, 20px);
  }

  .account-links wui-flex wui-icon svg path {
    stroke: #47a1ff;
  }

  .account-settings-button {
    padding: calc(var(--wui-spacing-m) - 1px) var(--wui-spacing-2l);
    height: 40px;
    border-radius: var(--wui-border-radius-xxs);
    border: 1px solid var(--wui-color-gray-glass-002);
    background: var(--wui-color-gray-glass-002);
    cursor: pointer;
  }

  .account-settings-button:hover {
    background: var(--wui-color-gray-glass-005);
  }
`,tO=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tR=class extends h.oi{constructor(){super(),this.usubscribe=[],this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.accounts=s.AccountController.state.allAccounts,this.usubscribe.push(s.AccountController.subscribeKey("address",e=>{e?this.address=e:s.IN.close()})),this.usubscribe.push(s.AccountController.subscribeKey("profileImage",e=>{this.profileImage=e})),this.usubscribe.push(s.AccountController.subscribeKey("profileName",e=>{this.profileName=e}))}disconnectedCallback(){this.usubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-profile-view: No account provided");let e=this.profileName?.split(".")[0];return(0,h.dy)`
      <wui-flex flexDirection="column" gap="l" .padding=${["0","xl","m","xl"]}>
        <wui-flex flexDirection="column" alignItems="center" gap="l">
          <wui-avatar
            alt=${this.address}
            address=${this.address}
            imageSrc=${(0,p.o)(this.profileImage)}
            size="2lg"
          ></wui-avatar>
          <wui-flex flexDirection="column" alignItems="center">
            <wui-flex gap="3xs" alignItems="center" justifyContent="center">
              <wui-text variant="title-6-600" color="fg-100" data-testid="account-settings-address">
                ${e?l.UiHelperUtil.getTruncateString({string:e,charsStart:20,charsEnd:0,truncate:"end"}):l.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>
        </wui-flex>
        <wui-flex
          data-testid="account-settings-button"
          justifyContent="center"
          alignItems="center"
          class="account-settings-button"
          @click=${()=>s.RouterController.push("AccountSettings")}
        >
          <wui-text variant="paragraph-500" color="fg-100">Account Settings</wui-text>
        </wui-flex>
        ${this.accountsTemplate()}
      </wui-flex>
    `}accountsTemplate(){return(0,h.dy)`<wui-flex flexDirection="column">
      <wui-flex .padding=${["3xs","m","s","s"]}>
        <wui-text color="fg-200" variant="paragraph-400">Your accounts</wui-text>
      </wui-flex>
      <wui-flex flexDirection="column" gap="xxs">
        ${this.accounts.map(e=>this.accountTemplate(e))}
      </wui-flex>
    </wui-flex>`}async onSwitchAccount(e){s.AccountController.setShouldUpdateToAddress(e.address,s.RY.state.activeChain);let t=s.ConnectorController.getAuthConnector();t&&(await t.provider.setPreferredAccount(e.type),await t.provider.connect())}accountTemplate(e){return(0,h.dy)`<wui-list-account accountAddress=${e.address} accountType=${e.type}>
      ${e.address===this.address?"":(0,h.dy)`<wui-button
            slot="action"
            textVariant="small-600"
            size="sm"
            variant="accent"
            @click=${()=>this.onSwitchAccount(e)}
            >Switch</wui-button
          >`}
    </wui-list-account>`}onCopyAddress(){try{this.profileName?(s.j1.copyToClopboard(this.profileName),s.SnackController.showSuccess("Name copied")):this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}};tR.styles=tP,tO([(0,f.SB)()],tR.prototype,"address",void 0),tO([(0,f.SB)()],tR.prototype,"profileImage",void 0),tO([(0,f.SB)()],tR.prototype,"profileName",void 0),tO([(0,f.SB)()],tR.prototype,"accounts",void 0),tR=tO([(0,l.customElement)("w3m-profile-view")],tR);var tM=(0,h.iv)`
  input[type='checkbox'] {
    all: revert;
    width: var(--wui-spacing-xl);
    height: var(--wui-spacing-xl);
    accent-color: var(--wui-color-accent-100);
  }
`,tN=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tj=class extends h.oi{constructor(){super(),this.metadata=s.OptionsController.state.metadata,this.allAccounts=s.AccountController.state.allAccounts,this.selectedAccounts=s.AccountController.state.allAccounts,this.selectAll=!0,this.approved=!1,this.isApproving=!1,this.getAddressTemplate=e=>{let t=this.selectedAccounts.some(t=>t.address===e.address);return(0,h.dy)`<wui-list-account accountAddress="${e.address}" accountType="${e.type}">
      <input
        id="${e.address}"
        slot="action"
        type="checkbox"
        .checked="${t}"
        @change="${this.handleClick(e)}"
      />
    </wui-list-account>`},this.onSelectAll=e=>{let t=e.target.checked;this.selectAll=this.selectedAccounts.length===this.allAccounts.length,this.allAccounts.forEach(e=>{this.onSelect(e,t)})},this.onSelect=(e,t)=>{t?this.selectedAccounts.push(e):this.selectedAccounts=this.selectedAccounts.filter(t=>t.address!==e.address),this.selectedAccounts.length>0&&(this.selectAll=this.selectedAccounts.length===this.allAccounts.length)},s.AccountController.subscribeKey("allAccounts",e=>{this.allAccounts=e})}render(){return(0,h.dy)`
    <wui-flex justifyContent="center" .padding=${["xl","0","xl","0"]}>
      <wui-banner-img imageSrc="${(0,p.o)(this.metadata?.icons[0])}" text="${(0,p.o)(this.metadata?.url)}" size="sm"></wui-banner>
    </wui-flex>
    <wui-flex .padding=${["0","xl","0","xl"]} flexDirection="row" justifyContent="space-between">
        <wui-text variant="paragraph-400" color="fg-200">Select all</wui-text>
        <input type="checkbox" .checked=${this.selectAll}  @click=${this.onSelectAll.bind(this)} />
    </wui-flex>
      <wui-flex flexDirection="column" .padding=${["l","xl","xl","xl"]}>
        ${this.allAccounts.map(e=>this.getAddressTemplate(e))}
      </wui-flex>
      <wui-flex .padding=${["l","xl","xl","xl"]} gap="s" justifyContent="space-between">
        <wui-button
          size="md"
          ?fullwidth=${!0}
          variant="neutral"
          @click=${this.onCancel.bind(this)}
          data-testid="w3m-connecting-siwe-cancel"
        >
          Cancel
        </wui-button>
        <wui-button
          size="md"
          ?fullwidth=${!0}
          variant="main"
          .disabled=${0===this.selectedAccounts.length}
          @click=${this.onContinue.bind(this)}
          ?loading=${this.isApproving}
        >
          ${this.isApproving?"Signing...":"Continue"}
        </wui-button>
      </wui-flex>
    `}handleClick(e){return t=>{let r=t.target;this.onSelect?.({...e},r?.checked)}}onContinue(){this.selectedAccounts.length>0?(this.isApproving=!0,s.AccountController.setAllAccounts(this.selectedAccounts,s.RY.state.activeChain),s.AccountController.setShouldUpdateToAddress(this.selectedAccounts[0]?.address??"",s.RY.state.activeChain),this.approved=!0,this.isApproving=!1,s.IN.close()):this.onCancel()}async onCancel(){let{isConnected:e}=s.AccountController.state;e?(await s.ConnectionController.disconnect(),s.IN.close()):s.RouterController.push("Connect")}disconnectedCallback(){super.disconnectedCallback(),this.approved||this.onCancel()}};tj.styles=tM,tN([(0,f.SB)()],tj.prototype,"allAccounts",void 0),tN([(0,f.SB)()],tj.prototype,"selectedAccounts",void 0),tN([(0,f.SB)()],tj.prototype,"selectAll",void 0),tN([(0,f.SB)()],tj.prototype,"approved",void 0),tN([(0,f.SB)()],tj.prototype,"isApproving",void 0),tj=tN([(0,l.customElement)("w3m-select-addresses-view")],tj);var tD=(0,h.iv)`
  wui-avatar {
    width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
    box-shadow: 0 0 0 0;
  }

  wui-icon-box {
    position: relative;
    right: 15px;
    top: 15px;
    border: 2px solid var(--wui-color-bg-150);
    background-color: var(--wui-color-bg-125);
  }
`,tB=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tL=class extends h.oi{constructor(){super(),this.metadata=s.OptionsController.state.metadata,this.allAccounts=s.AccountController.state.allAccounts||[],this.balances={},this.labels=s.AccountController.state.addressLabels,this.currentAddress=s.AccountController.state.address||"",this.connectedConnector=s.MO.getConnectedConnector(),this.shouldShowIcon="AUTH"===this.connectedConnector,this.caipNetwork=s.fB.state.caipNetwork,s.AccountController.subscribeKey("allAccounts",e=>{this.allAccounts=e})}connectedCallback(){super.connectedCallback(),this.allAccounts.forEach(e=>{s.Lr.getBalance(e.address,this.caipNetwork?.id).then(t=>{let r=this.balances[e.address]||0;t.balances.length>0&&(r=t.balances.reduce((e,t)=>e+(t?.value||0),0)),this.balances[e.address]=r,this.requestUpdate()})})}getAddressIcon(e){return"smartAccount"===e?"lightbulb":"mail"}render(){return(0,h.dy)`
      <wui-flex justifyContent="center" .padding=${["xl","0","xl","0"]}>
        <wui-banner-img
          imageSrc=${(0,p.o)(this.metadata?.icons[0])}
          text=${(0,p.o)(this.metadata?.url)}
          size="sm"
        ></wui-banner-img>
      </wui-flex>
      <wui-flex flexDirection="column" gap="xxl" .padding=${["l","xl","xl","xl"]}>
        ${this.allAccounts.map((e,t)=>this.getAddressTemplate(e,t))}
      </wui-flex>
    `}getAddressTemplate(e,t){let r=this.labels?.get(e.address);return(0,h.dy)`
      <wui-flex
        flexDirection="row"
        justifyContent="space-between"
        data-testid="switch-address-item"
      >
        <wui-flex alignItems="center">
          <wui-avatar address=${e.address}></wui-avatar>
          ${this.shouldShowIcon?(0,h.dy)`<wui-icon-box
                size="sm"
                iconcolor="fg-200"
                backgroundcolor="glass-002"
                background="gray"
                icon="${this.getAddressIcon(e.type)}"
                ?border=${!0}
              ></wui-icon-box>`:(0,h.dy)`<wui-flex .padding="${["0","0","0","s"]}"></wui-flex>`}
          <wui-flex flexDirection="column">
            <wui-text class="address" variant="paragraph-500" color="fg-100"
              >${r||l.UiHelperUtil.getTruncateString({string:e.address,charsStart:4,charsEnd:6,truncate:"middle"})}</wui-text
            >
            <wui-text class="address-description" variant="small-400">
              ${"number"==typeof this.balances[e.address]?`$${this.balances[e.address]?.toFixed(2)}`:(0,h.dy)`<wui-loading-spinner size="sm" color="accent-100"></wui-loading-spinner>`}
            </wui-text>
          </wui-flex>
        </wui-flex>
        <wui-flex gap="s" alignItems="center">
          ${e.address?.toLowerCase()===this.currentAddress?.toLowerCase()?"":(0,h.dy)`
                <wui-button
                  data-testid=${`w3m-switch-address-button-${t}`}
                  textVariant="small-600"
                  size="md"
                  variant="accent"
                  @click=${()=>this.onSwitchAddress(e.address)}
                  >Switch to</wui-button
                >
              `}
        </wui-flex>
      </wui-flex>
    `}onSwitchAddress(e){s.AccountController.setShouldUpdateToAddress(e,s.RY.state.activeChain),s.IN.close()}};tL.styles=tD,tB([(0,f.SB)()],tL.prototype,"allAccounts",void 0),tB([(0,f.SB)()],tL.prototype,"balances",void 0),tL=tB([(0,l.customElement)("w3m-switch-address-view")],tL);var t$=(0,h.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;
  }

  wui-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--wui-border-radius-m);
  }

  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);
  }
`,tU=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tz=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.socialProvider=s.AccountController.state.socialProvider,this.uri=s.AccountController.state.farcasterUrl,this.ready=!1,this.loading=!1,this.authConnector=s.ConnectorController.getAuthConnector(),this.forceUpdate=()=>{this.requestUpdate()},this.unsubscribe.push(s.AccountController.subscribeKey("farcasterUrl",e=>{e&&(this.uri=e,this.connectFarcaster())}),s.AccountController.subscribeKey("socialProvider",e=>{e&&(this.socialProvider=e)})),window.addEventListener("resize",this.forceUpdate)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.timeout),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,h.dy)`${this.platformTemplate()}`}platformTemplate(){return s.j1.isMobile()?(0,h.dy)`${this.mobileTemplate()}`:(0,h.dy)`${this.desktopTemplate()}`}desktopTemplate(){return this.loading?(0,h.dy)`${this.loadingTemplate()}`:(0,h.dy)`${this.qrTemplate()}`}qrTemplate(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      alignItems="center"
      .padding=${["0","xl","xl","xl"]}
      gap="xl"
    >
      <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>`}loadingTemplate(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-flex justifyContent="center" alignItems="center">
          <wui-logo logo="farcaster"></wui-logo>
          ${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 align="center" variant="paragraph-500" color="fg-100">
            Loading user data
          </wui-text>
          <wui-text align="center" variant="small-400" color="fg-200">
            Please wait a moment while we load your data.
          </wui-text>
        </wui-flex>
      </wui-flex>
    `}mobileTemplate(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      alignItems="center"
      .padding=${["3xl","xl","xl","xl"]}
      gap="xl"
    >
      <wui-flex justifyContent="center" alignItems="center">
        <wui-logo logo="farcaster"></wui-logo>
        ${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 align="center" variant="paragraph-500" color="fg-100"
          >Continue in Farcaster</span></wui-text
        >
        <wui-text align="center" variant="small-400" color="fg-200"
          >Accept connection request in the app</wui-text
        ></wui-flex
      >
      ${this.mobileLinkTemplate()}
    </wui-flex>`}loaderTemplate(){let e=s.ThemeController.state.themeVariables["--w3m-border-radius-master"],t=e?parseInt(e.replace("px",""),10):4;return(0,h.dy)`<wui-loading-thumbnail radius=${9*t}></wui-loading-thumbnail>`}async connectFarcaster(){if(this.authConnector)try{await this.authConnector?.provider.connectFarcaster(),this.socialProvider&&s.MO.setConnectedSocialProvider(this.socialProvider),this.loading=!0,await s.ConnectionController.connectExternal(this.authConnector,this.authConnector.chain),this.loading=!1,s.IN.close()}catch(e){s.RouterController.goBack(),s.SnackController.showError(e)}}mobileLinkTemplate(){return(0,h.dy)`<wui-button
      size="md"
      ?loading=${this.loading}
      ?disabled=${!this.uri||this.loading}
      @click=${()=>{this.uri&&s.j1.openHref(this.uri,"_blank")}}
    >
      Open farcaster</wui-button
    >`}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},0))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40;return(0,h.dy)` <wui-qr-code
      size=${e}
      theme=${s.ThemeController.state.themeMode}
      uri=${this.uri}
      ?farcaster=${!0}
      data-testid="wui-qr-code"
    ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,h.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>`}onCopyUri(){try{this.uri&&(s.j1.copyToClopboard(this.uri),s.SnackController.showSuccess("Link copied"))}catch{s.SnackController.showError("Failed to copy")}}};tz.styles=t$,tU([(0,f.SB)()],tz.prototype,"socialProvider",void 0),tU([(0,f.SB)()],tz.prototype,"uri",void 0),tU([(0,f.SB)()],tz.prototype,"ready",void 0),tU([(0,f.SB)()],tz.prototype,"loading",void 0),tz=tU([(0,l.customElement)("w3m-connecting-farcaster-view")],tz);var tF=(0,h.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 tq(e){let{connectors:t}=s.ConnectorController.state,r=t.filter(e=>"ANNOUNCED"===e.type).reduce((e,t)=>(t.info?.rdns&&(e[t.info.rdns]=!0),e),{});return e.map(e=>({...e,installed:!!e.rdns&&!!r[e.rdns??""]})).sort((e,t)=>Number(t.installed)-Number(e.installed))}var tH=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tW="local-paginator",tV=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.initial=!s.ApiController.state.wallets.length,this.wallets=s.ApiController.state.wallets,this.recommended=s.ApiController.state.recommended,this.featured=s.ApiController.state.featured,this.unsubscribe.push(s.ApiController.subscribeKey("wallets",e=>this.wallets=e),s.ApiController.subscribeKey("recommended",e=>this.recommended=e),s.ApiController.subscribeKey("featured",e=>this.featured=e))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.paginationObserver?.disconnect()}render(){return(0,h.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(){let e=this.shadowRoot?.querySelector("wui-grid");this.initial&&e&&(await s.ApiController.fetchWallets({page:1}),await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.initial=!1,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(e,t){return[...Array(e)].map(()=>(0,h.dy)`
        <wui-card-select-loader type="wallet" id=${(0,p.o)(t)}></wui-card-select-loader>
      `)}walletsTemplate(){return tq([...this.featured,...this.recommended,...this.wallets]).map(e=>(0,h.dy)`
        <w3m-all-wallets-list-item
          @click=${()=>this.onConnectWallet(e)}
          .wallet=${e}
        ></w3m-all-wallets-list-item>
      `)}paginationLoaderTemplate(){let{wallets:e,recommended:t,featured:r,count:n}=s.ApiController.state,i=window.innerWidth<352?3:4,o=e.length+t.length,a=Math.ceil(o/i)*i-o+i;return(a-=e.length?r.length%i:0,0===n&&r.length>0)?null:0===n||[...r,...e,...t].length<n?this.shimmerTemplate(a,tW):null}createPaginationObserver(){let e=this.shadowRoot?.querySelector(`#${tW}`);e&&(this.paginationObserver=new IntersectionObserver(([e])=>{if(e?.isIntersecting&&!this.initial){let{page:e,count:t,wallets:r}=s.ApiController.state;r.length<t&&s.ApiController.fetchWallets({page:e+1})}}),this.paginationObserver.observe(e))}onConnectWallet(e){let t=s.ConnectorController.getConnector(e.id,e.rdns);t?s.RouterController.push("ConnectingExternal",{connector:t}):s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};tV.styles=tF,tH([(0,f.SB)()],tV.prototype,"initial",void 0),tH([(0,f.SB)()],tV.prototype,"wallets",void 0),tH([(0,f.SB)()],tV.prototype,"recommended",void 0),tH([(0,f.SB)()],tV.prototype,"featured",void 0),tV=tH([(0,l.customElement)("w3m-all-wallets-list")],tV);var tZ=(0,h.iv)`
  button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 76px;
    row-gap: var(--wui-spacing-xs);
    padding: var(--wui-spacing-xs) var(--wui-spacing-0);
    background-color: var(--wui-color-gray-glass-002);
    border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
    will-change: background-color, color;
    outline: none;
    border: none;
  }

  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:hover:enabled {
    background-color: var(--wui-color-gray-glass-005);
  }

  button:disabled > wui-text {
    color: var(--wui-color-gray-glass-015);
  }

  [data-selected='true'] {
    background-color: var(--wui-color-accent-glass-020);
  }

  @media (hover: hover) and (pointer: fine) {
    [data-selected='true']:hover:enabled {
      background-color: var(--wui-color-accent-glass-015);
    }
  }

  [data-selected='true']:active:enabled {
    background-color: var(--wui-color-accent-glass-010);
  }
`,tG=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tK=class extends h.oi{constructor(){super(),this.observer=new IntersectionObserver(()=>void 0),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){return(0,h.dy)`
      <button ontouchstart>
        ${this.imageTemplate()}
        <wui-text variant="tiny-500" color="inherit">${this.wallet?.name}</wui-text>
      </button>
    `}imageTemplate(){return(this.visible||this.imageSrc)&&!this.imageLoading?(0,h.dy)`
      <wui-wallet-image
        size="md"
        imageSrc=${(0,p.o)(this.imageSrc)}
        name=${this.wallet?.name}
        .installed=${this.wallet?.installed}
        badgeSize="sm"
      >
      </wui-wallet-image>
    `:this.shimmerTemplate()}shimmerTemplate(){return(0,h.dy)`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=s.fz.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await s.fz.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};tK.styles=tZ,tG([(0,f.SB)()],tK.prototype,"visible",void 0),tG([(0,f.SB)()],tK.prototype,"imageSrc",void 0),tG([(0,f.SB)()],tK.prototype,"imageLoading",void 0),tG([(0,f.Cb)()],tK.prototype,"wallet",void 0),tK=tG([(0,l.customElement)("w3m-all-wallets-list-item")],tK);var tY=(0,h.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;
  }
`,tQ=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let tJ=class extends h.oi{constructor(){super(...arguments),this.prevQuery="",this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?(0,h.dy)`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query.trim()!==this.prevQuery.trim()&&(this.prevQuery=this.query,this.loading=!0,await s.ApiController.searchWallet({search:this.query}),this.loading=!1)}walletsTemplate(){let{search:e}=s.ApiController.state,t=tq(e);return e.length?(0,h.dy)`
      <wui-grid
        .padding=${["0","s","s","s"]}
        gridTemplateColumns="repeat(4, 1fr)"
        rowGap="l"
        columnGap="xs"
      >
        ${t.map(e=>(0,h.dy)`
            <w3m-all-wallets-list-item
              @click=${()=>this.onConnectWallet(e)}
              .wallet=${e}
            ></w3m-all-wallets-list-item>
          `)}
      </wui-grid>
    `:(0,h.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){let t=s.ConnectorController.getConnector(e.id,e.rdns);t?s.RouterController.push("ConnectingExternal",{connector:t}):s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};tJ.styles=tY,tQ([(0,f.SB)()],tJ.prototype,"loading",void 0),tQ([(0,f.Cb)()],tJ.prototype,"query",void 0),tJ=tQ([(0,l.customElement)("w3m-all-wallets-search")],tJ);var tX=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let t0=class extends h.oi{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(s.ConnectionController.subscribeKey("buffering",e=>this.buffering=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.generateTabs();return(0,h.dy)`
      <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
        <wui-tabs
          ?disabled=${this.buffering}
          .tabs=${e}
          .onTabChange=${this.onTabChange.bind(this)}
        ></wui-tabs>
      </wui-flex>
    `}generateTabs(){let 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(({platform:e})=>e),e}onTabChange(e){let t=this.platformTabs[e];t&&this.onSelectPlatfrom?.(t)}};tX([(0,f.Cb)({type:Array})],t0.prototype,"platforms",void 0),tX([(0,f.Cb)()],t0.prototype,"onSelectPlatfrom",void 0),tX([(0,f.SB)()],t0.prototype,"buffering",void 0),t0=tX([(0,l.customElement)("w3m-connecting-header")],t0);let t1=class extends K{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;let{connectors:e}=s.ConnectorController.state,t=e.find(e=>"ANNOUNCED"===e.type&&e.info?.rdns===this.wallet?.rdns),r=e.find(e=>"INJECTED"===e.type);t?await s.ConnectionController.connectExternal(t,t.chain):r&&await s.ConnectionController.connectExternal(r,r.chain),s.IN.close(),s.Xs.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(e){s.Xs.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:e?.message??"Unknown"}}),this.error=!0}}};t1=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-browser")],t1);let t2=class extends K{constructor(){if(super(),!this.wallet)throw Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;let{desktop_link:e,name:t}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(e,this.uri);s.ConnectionController.setWcLinking({name:t,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_blank")}catch{this.error=!0}}};t2=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-desktop")],t2);let t3=class extends K{constructor(){if(super(),!this.wallet)throw 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)),s.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(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;let{mobile_link:e,name:t}=this.wallet,{redirect:r,href:n}=s.j1.formatNativeUrl(e,this.uri);s.ConnectionController.setWcLinking({name:t,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_self")}catch{this.error=!0}}onBuffering(){let e=s.j1.isIos();document?.visibilityState==="visible"&&!this.error&&e&&(s.ConnectionController.setBuffering(!0),setTimeout(()=>{s.ConnectionController.setBuffering(!1)},5e3))}};t3=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-mobile")],t3);var t5=(0,h.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;
  }
`;let t6=class extends K{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["0","xl","xl","xl"]}
        gap="xl"
      >
        <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},0))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;let e=this.getBoundingClientRect().width-40,t=this.wallet?this.wallet.name:void 0;return s.ConnectionController.setWcLinking(void 0),s.ConnectionController.setRecentWallet(this.wallet),(0,h.dy)` <wui-qr-code
      size=${e}
      theme=${s.ThemeController.state.themeMode}
      uri=${this.uri}
      imageSrc=${(0,p.o)(s.fz.getWalletImage(this.wallet))}
      alt=${(0,p.o)(t)}
      data-testid="wui-qr-code"
    ></wui-qr-code>`}copyTemplate(){let e=!this.uri||!this.ready;return(0,h.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>`}};t6.styles=t5,t6=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-qrcode")],t6);let t4=class extends h.oi{constructor(){if(super(),this.wallet=s.RouterController.state.data?.wallet,!this.wallet)throw Error("w3m-connecting-wc-unsupported: No wallet provided");s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return(0,h.dy)`
      <wui-flex
        flexDirection="column"
        alignItems="center"
        .padding=${["3xl","xl","xl","xl"]}
        gap="xl"
      >
        <wui-wallet-image
          size="lg"
          imageSrc=${(0,p.o)(s.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>
    `}};t4=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-unsupported")],t4);let t8=class extends K{constructor(){if(super(),!this.wallet)throw 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",s.Xs.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;let{webapp_link:e,name:t}=this.wallet,{redirect:r,href:n}=s.j1.formatUniversalUrl(e,this.uri);s.ConnectionController.setWcLinking({name:t,href:n}),s.ConnectionController.setRecentWallet(this.wallet),s.j1.openHref(r,"_blank")}catch{this.error=!0}}};t8=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connecting-wc-web")],t8);var t9=(0,h.iv)`
  :host {
    width: 100%;
  }

  .details-container > wui-flex {
    background: var(--wui-color-gray-glass-002);
    border-radius: var(--wui-border-radius-xxs);
    width: 100%;
  }

  .details-container > wui-flex > button {
    border: none;
    background: none;
    padding: var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);
    cursor: pointer;
  }

  .details-content-container {
    padding: var(--wui-spacing-1xs);
    padding-top: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .details-content-container > wui-flex {
    width: 100%;
  }

  .details-row {
    width: 100%;
    padding: var(--wui-spacing-s);
    padding-left: var(--wui-spacing-s);
    padding-right: var(--wui-spacing-1xs);
    border-radius: calc(var(--wui-border-radius-5xs) + var(--wui-border-radius-4xs));
    background: var(--wui-color-gray-glass-002);
  }

  .details-row-title {
    white-space: nowrap;
  }

  .details-row.provider-free-row {
    padding-right: var(--wui-spacing-xs);
  }
`,t7=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let re=s.bq.CONVERT_SLIPPAGE_TOLERANCE,rt=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.networkName=s.fB.state.caipNetwork?.name,this.detailsOpen=!1,this.sourceToken=s.nY.state.sourceToken,this.toToken=s.nY.state.toToken,this.toTokenAmount=s.nY.state.toTokenAmount,this.sourceTokenPriceInUSD=s.nY.state.sourceTokenPriceInUSD,this.toTokenPriceInUSD=s.nY.state.toTokenPriceInUSD,this.gasPriceInUSD=s.nY.state.gasPriceInUSD,this.priceImpact=s.nY.state.priceImpact,this.maxSlippage=s.nY.state.maxSlippage,this.networkTokenSymbol=s.nY.state.networkTokenSymbol,this.inputError=s.nY.state.inputError,this.unsubscribe.push(s.nY.subscribe(e=>{this.sourceToken=e.sourceToken,this.toToken=e.toToken,this.toTokenAmount=e.toTokenAmount,this.gasPriceInUSD=e.gasPriceInUSD,this.priceImpact=e.priceImpact,this.maxSlippage=e.maxSlippage,this.sourceTokenPriceInUSD=e.sourceTokenPriceInUSD,this.toTokenPriceInUSD=e.toTokenPriceInUSD,this.inputError=e.inputError}))}render(){let e=this.toTokenAmount&&this.maxSlippage?c.C6.bigNumber(this.toTokenAmount).minus(this.maxSlippage).toString():null;if(!this.sourceToken||!this.toToken||this.inputError)return null;let t=this.sourceTokenPriceInUSD&&this.toTokenPriceInUSD?1/this.toTokenPriceInUSD*this.sourceTokenPriceInUSD:0;return(0,h.dy)`
      <wui-flex flexDirection="column" alignItems="center" gap="1xs" class="details-container">
        <wui-flex flexDirection="column">
          <button @click=${this.toggleDetails.bind(this)}>
            <wui-flex justifyContent="space-between" .padding=${["0","xs","0","xs"]}>
              <wui-flex justifyContent="flex-start" flexGrow="1" gap="xs">
                <wui-text variant="small-400" color="fg-100">
                  1 ${this.sourceToken.symbol} =
                  ${l.UiHelperUtil.formatNumberToLocalString(t,3)}
                  ${this.toToken.symbol}
                </wui-text>
                <wui-text variant="small-400" color="fg-200">
                  $${l.UiHelperUtil.formatNumberToLocalString(this.sourceTokenPriceInUSD)}
                </wui-text>
              </wui-flex>
              <wui-icon name="chevronBottom"></wui-icon>
            </wui-flex>
          </button>
          ${this.detailsOpen?(0,h.dy)`
                <wui-flex flexDirection="column" gap="xs" class="details-content-container">
                  <wui-flex flexDirection="column" gap="xs">
                    <wui-flex
                      justifyContent="space-between"
                      alignItems="center"
                      class="details-row"
                    >
                      <wui-flex alignItems="center" gap="xs">
                        <wui-text class="details-row-title" variant="small-400" color="fg-150">
                          Network cost
                        </wui-text>
                        <w3m-tooltip-trigger
                          text=${`Network cost is paid in ${this.networkTokenSymbol} on the ${this.networkName} network in order to execute transaction.`}
                        >
                          <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
                        </w3m-tooltip-trigger>
                      </wui-flex>
                      <wui-text variant="small-400" color="fg-100">
                        $${l.UiHelperUtil.formatNumberToLocalString(this.gasPriceInUSD,3)}
                      </wui-text>
                    </wui-flex>
                  </wui-flex>
                  ${this.priceImpact?(0,h.dy)` <wui-flex flexDirection="column" gap="xs">
                        <wui-flex
                          justifyContent="space-between"
                          alignItems="center"
                          class="details-row"
                        >
                          <wui-flex alignItems="center" gap="xs">
                            <wui-text class="details-row-title" variant="small-400" color="fg-150">
                              Price impact
                            </wui-text>
                            <w3m-tooltip-trigger
                              text="Price impact reflects the change in market price due to your trade"
                            >
                              <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
                            </w3m-tooltip-trigger>
                          </wui-flex>
                          <wui-flex>
                            <wui-text variant="small-400" color="fg-200">
                              ${l.UiHelperUtil.formatNumberToLocalString(this.priceImpact,3)}%
                            </wui-text>
                          </wui-flex>
                        </wui-flex>
                      </wui-flex>`:null}
                  ${this.maxSlippage&&this.sourceToken.symbol?(0,h.dy)`<wui-flex flexDirection="column" gap="xs">
                        <wui-flex
                          justifyContent="space-between"
                          alignItems="center"
                          class="details-row"
                        >
                          <wui-flex alignItems="center" gap="xs">
                            <wui-text class="details-row-title" variant="small-400" color="fg-150">
                              Max. slippage
                            </wui-text>
                            <w3m-tooltip-trigger
                              text=${`Max slippage sets the minimum amount you must receive for the transaction to proceed. ${e?`Transaction will be reversed if you receive less than ${l.UiHelperUtil.formatNumberToLocalString(e,6)} ${this.toToken.symbol} due to price changes.`:""}`}
                            >
                              <wui-icon size="xs" color="fg-250" name="infoCircle"></wui-icon>
                            </w3m-tooltip-trigger>
                          </wui-flex>
                          <wui-flex>
                            <wui-text variant="small-400" color="fg-200">
                              ${l.UiHelperUtil.formatNumberToLocalString(this.maxSlippage,6)}
                              ${this.toToken.symbol} ${re}%
                            </wui-text>
                          </wui-flex>
                        </wui-flex>
                      </wui-flex>`:null}
                  <wui-flex flexDirection="column" gap="xs">
                    <wui-flex
                      justifyContent="space-between"
                      alignItems="center"
                      class="details-row provider-free-row"
                    >
                      <wui-flex alignItems="center" gap="xs">
                        <wui-text class="details-row-title" variant="small-400" color="fg-150">
                          Provider fee
                        </wui-text>
                      </wui-flex>
                      <wui-flex>
                        <wui-text variant="small-400" color="fg-200">0.85%</wui-text>
                      </wui-flex>
                    </wui-flex>
                  </wui-flex>
                </wui-flex>
              `:null}
        </wui-flex>
      </wui-flex>
    `}toggleDetails(){this.detailsOpen=!this.detailsOpen}};rt.styles=[t9],t7([(0,f.SB)()],rt.prototype,"networkName",void 0),t7([(0,f.Cb)()],rt.prototype,"detailsOpen",void 0),t7([(0,f.SB)()],rt.prototype,"sourceToken",void 0),t7([(0,f.SB)()],rt.prototype,"toToken",void 0),t7([(0,f.SB)()],rt.prototype,"toTokenAmount",void 0),t7([(0,f.SB)()],rt.prototype,"sourceTokenPriceInUSD",void 0),t7([(0,f.SB)()],rt.prototype,"toTokenPriceInUSD",void 0),t7([(0,f.SB)()],rt.prototype,"gasPriceInUSD",void 0),t7([(0,f.SB)()],rt.prototype,"priceImpact",void 0),t7([(0,f.SB)()],rt.prototype,"maxSlippage",void 0),t7([(0,f.SB)()],rt.prototype,"networkTokenSymbol",void 0),t7([(0,f.SB)()],rt.prototype,"inputError",void 0),rt=t7([(0,l.customElement)("w3m-swap-details")],rt);var rr=(0,h.iv)`
  :host > wui-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--wui-border-radius-s);
    background-color: var(--wui-color-gray-glass-002);
    padding: var(--wui-spacing-xl);
    padding-right: var(--wui-spacing-s);
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
    position: relative;
    transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-lg);
    will-change: background-color;
  }

  :host wui-flex.focus {
    box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-005);
  }

  :host > wui-flex .swap-input,
  :host > wui-flex .swap-token-button {
    z-index: 10;
  }

  :host > wui-flex .swap-input {
    -webkit-mask-image: linear-gradient(
      270deg,
      transparent 0px,
      transparent 8px,
      black 24px,
      black 25px,
      black 32px,
      black 100%
    );
    mask-image: linear-gradient(
      270deg,
      transparent 0px,
      transparent 8px,
      black 24px,
      black 25px,
      black 32px,
      black 100%
    );
  }

  :host > wui-flex .swap-input input {
    background: none;
    border: none;
    height: 42px;
    width: 100%;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -1.28px;
    outline: none;
    caret-color: var(--wui-color-accent-100);
    color: var(--wui-color-fg-100);
    padding: 0px;
  }

  :host > wui-flex .swap-input input:focus-visible {
    outline: none;
  }

  :host > wui-flex .swap-input input::-webkit-outer-spin-button,
  :host > wui-flex .swap-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .max-value-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: var(--wui-color-gray-glass-020);
    padding-left: 0px;
  }

  .market-value {
    min-height: 18px;
  }
`,rn=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ri=class extends h.oi{constructor(){super(...arguments),this.focused=!1,this.price=0,this.target="sourceToken",this.onSetAmount=null,this.onSetMaxValue=null}render(){let e=this.marketValue||"0",t=c.C6.bigNumber(e).isGreaterThan("0");return(0,h.dy)`
      <wui-flex class="${this.focused?"focus":""}" justifyContent="space-between">
        <wui-flex
          flex="1"
          flexDirection="column"
          alignItems="flex-start"
          justifyContent="center"
          class="swap-input"
        >
          <input
            data-testid="swap-input-${this.target}"
            @focusin=${()=>this.onFocusChange(!0)}
            @focusout=${()=>this.onFocusChange(!1)}
            ?disabled=${this.disabled}
            .value=${this.value}
            @input=${this.dispatchInputChangeEvent}
            @keydown=${this.handleKeydown}
            placeholder="0"
            type="text"
            inputmode="decimal"
          />
          <wui-text class="market-value" variant="small-400" color="fg-200">
            ${t?`$${l.UiHelperUtil.formatNumberToLocalString(this.marketValue,3)}`:null}
          </wui-text>
        </wui-flex>
        ${this.templateTokenSelectButton()}
      </wui-flex>
    `}handleKeydown(e){return c.kg.numericInputKeyDown(e,this.value,e=>this.onSetAmount?.(this.target,e))}dispatchInputChangeEvent(e){if(!this.onSetAmount)return;let t=e.target.value.replace(/[^0-9.]/gu,"");","===t||"."===t?this.onSetAmount(this.target,"0."):t.endsWith(",")?this.onSetAmount(this.target,t.replace(",",".")):this.onSetAmount(this.target,t)}setMaxValueToInput(){this.onSetMaxValue?.(this.target,this.balance)}templateTokenSelectButton(){return this.token?(0,h.dy)`
      <wui-flex
        class="swap-token-button"
        flexDirection="column"
        alignItems="flex-end"
        justifyContent="center"
        gap="xxs"
      >
        <wui-token-button
          data-testid="swap-input-token-${this.target}"
          text=${this.token.symbol}
          imageSrc=${this.token.logoUri}
          @click=${this.onSelectToken.bind(this)}
        >
        </wui-token-button>
        <wui-flex alignItems="center" gap="xxs"> ${this.tokenBalanceTemplate()} </wui-flex>
      </wui-flex>
    `:(0,h.dy)` <wui-button
        data-testid="swap-select-token-button-${this.target}"
        class="swap-token-button"
        size="md"
        variant="accent"
        @click=${this.onSelectToken.bind(this)}
      >
        Select token
      </wui-button>`}tokenBalanceTemplate(){let e=c.C6.multiply(this.balance,this.price),t=!!e&&e?.isGreaterThan(5e-5);return(0,h.dy)`
      ${t?(0,h.dy)`<wui-text variant="small-400" color="fg-200">
            ${l.UiHelperUtil.formatNumberToLocalString(this.balance,3)}
          </wui-text>`:null}
      ${"sourceToken"===this.target?this.tokenActionButtonTemplate(t):null}
    `}tokenActionButtonTemplate(e){return e?(0,h.dy)` <button class="max-value-button" @click=${this.setMaxValueToInput.bind(this)}>
        <wui-text color="accent-100" variant="small-600">Max</wui-text>
      </button>`:(0,h.dy)` <button class="max-value-button" @click=${this.onBuyToken.bind(this)}>
      <wui-text color="accent-100" variant="small-600">Buy</wui-text>
    </button>`}onFocusChange(e){this.focused=e}onSelectToken(){s.Xs.sendEvent({type:"track",event:"CLICK_SELECT_TOKEN_TO_SWAP"}),s.RouterController.push("SwapSelectToken",{target:this.target})}onBuyToken(){s.RouterController.push("OnRampProviders")}};ri.styles=[rr],rn([(0,f.Cb)()],ri.prototype,"focused",void 0),rn([(0,f.Cb)()],ri.prototype,"balance",void 0),rn([(0,f.Cb)()],ri.prototype,"value",void 0),rn([(0,f.Cb)()],ri.prototype,"price",void 0),rn([(0,f.Cb)()],ri.prototype,"marketValue",void 0),rn([(0,f.Cb)()],ri.prototype,"disabled",void 0),rn([(0,f.Cb)()],ri.prototype,"target",void 0),rn([(0,f.Cb)()],ri.prototype,"token",void 0),rn([(0,f.Cb)()],ri.prototype,"onSetAmount",void 0),rn([(0,f.Cb)()],ri.prototype,"onSetMaxValue",void 0),ri=rn([(0,l.customElement)("w3m-swap-input")],ri);var ro=(0,h.iv)`
  :host {
    width: 100%;
  }

  :host > wui-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--wui-border-radius-s);
    padding: var(--wui-spacing-xl);
    padding-right: var(--wui-spacing-s);
    background-color: var(--wui-color-gray-glass-002);
    box-shadow: inset 0px 0px 0px 1px var(--wui-color-gray-glass-002);
    width: 100%;
    height: 100px;
    box-sizing: border-box;
    position: relative;
  }

  wui-shimmer.market-value {
    opacity: 0;
  }

  :host > wui-flex > svg.input_mask {
    position: absolute;
    inset: 0;
    z-index: 5;
  }

  :host wui-flex .input_mask__border,
  :host wui-flex .input_mask__background {
    transition: fill var(--wui-duration-md) var(--wui-ease-out-power-1);
    will-change: fill;
  }

  :host wui-flex .input_mask__border {
    fill: var(--wui-color-gray-glass-020);
  }

  :host wui-flex .input_mask__background {
    fill: var(--wui-color-gray-glass-002);
  }
`,ra=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rs=class extends h.oi{constructor(){super(...arguments),this.target="sourceToken"}render(){return(0,h.dy)`
      <wui-flex class justifyContent="space-between">
        <wui-flex
          flex="1"
          flexDirection="column"
          alignItems="flex-start"
          justifyContent="center"
          class="swap-input"
          gap="xxs"
        >
          <wui-shimmer width="80px" height="40px" borderRadius="xxs" variant="light"></wui-shimmer>
        </wui-flex>
        ${this.templateTokenSelectButton()}
      </wui-flex>
    `}templateTokenSelectButton(){return(0,h.dy)`
      <wui-flex
        class="swap-token-button"
        flexDirection="column"
        alignItems="flex-end"
        justifyContent="center"
        gap="xxs"
      >
        <wui-shimmer width="80px" height="40px" borderRadius="3xl" variant="light"></wui-shimmer>
      </wui-flex>
    `}};rs.styles=[ro],ra([(0,f.Cb)()],rs.prototype,"target",void 0),rs=ra([(0,l.customElement)("w3m-swap-input-skeleton")],rs);var rl=(0,h.iv)`
  :host {
    height: 64px;
  }

  wui-text {
    text-transform: capitalize;
  }

  wui-flex.w3m-header-title {
    transform: translateY(0);
    opacity: 1;
  }

  wui-flex.w3m-header-title[view-direction='prev'] {
    animation:
      slide-down-out 120ms forwards var(--wui-ease-out-power-2),
      slide-down-in 120ms forwards var(--wui-ease-out-power-2);
    animation-delay: 0ms, 200ms;
  }

  wui-flex.w3m-header-title[view-direction='next'] {
    animation:
      slide-up-out 120ms forwards var(--wui-ease-out-power-2),
      slide-up-in 120ms forwards var(--wui-ease-out-power-2);
    animation-delay: 0ms, 200ms;
  }

  wui-icon-link[data-hidden='true'] {
    opacity: 0 !important;
    pointer-events: none;
  }

  @keyframes slide-up-out {
    from {
      transform: translateY(0px);
      opacity: 1;
    }
    to {
      transform: translateY(3px);
      opacity: 0;
    }
  }

  @keyframes slide-up-in {
    from {
      transform: translateY(-3px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes slide-down-out {
    from {
      transform: translateY(0px);
      opacity: 1;
    }
    to {
      transform: translateY(-3px);
      opacity: 0;
    }
  }

  @keyframes slide-down-in {
    from {
      transform: translateY(3px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
`,rc=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let ru=["Swap","SwapSelectToken","SwapPreview"];function rd(){let e=s.RouterController.state.data?.connector?.name,t=s.RouterController.state.data?.wallet?.name,r=s.RouterController.state.data?.network?.name,n=t??e,i=s.ConnectorController.getConnectors(),o=1===i.length&&i[0]?.id==="w3m-email";return{Connect:`Connect ${o?"Email":""} Wallet`,ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExternal:n??"Connect Wallet",ConnectingWalletConnect:n??"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:n?`Get ${n}`:"Downloads",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Profile:void 0,SelectAddresses:"Select accounts",SwitchNetwork:r??"Switch Network",SwitchAddress:"Switch Address",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpgradeToSmartAccount:void 0,UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:s.AccountController.state.socialProvider?s.AccountController.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain"}}let rh=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.heading=rd()[s.RouterController.state.view],this.network=s.fB.state.caipNetwork,this.buffering=!1,this.showBack=!1,this.isSiweEnabled=s.OptionsController.state.isSiweEnabled,this.prevHistoryLength=1,this.view=s.RouterController.state.view,this.viewDirection="",this.headerText=rd()[s.RouterController.state.view],this.unsubscribe.push(s.RouterController.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=rd()[e]},E.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),s.ConnectionController.subscribeKey("buffering",e=>this.buffering=e),s.fB.subscribeKey("caipNetwork",e=>this.network=e))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`
      <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
        ${this.dynamicButtonTemplate()} ${this.titleTemplate()} ${this.closeButtonTemplate()}
      </wui-flex>
    `}onWalletHelp(){s.Xs.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),s.RouterController.push("WhatIsAWallet")}async onClose(){if(this.isSiweEnabled){let{SIWEController:e}=await r.e(5062).then(r.bind(r,25062)),t="ApproveTransaction"===s.RouterController.state.view;"success"!==e.state.status&&t?s.RouterController.popTransactionStack(!0):s.IN.close()}else s.IN.close()}closeButtonTemplate(){let e="ConnectingSiwe"===s.RouterController.state.view;return this.isSiweEnabled&&e?(0,h.dy)`<div style="width:40px" />`:(0,h.dy)`
      <wui-icon-link
        ?disabled=${this.buffering}
        icon="close"
        @click=${this.onClose.bind(this)}
        data-testid="w3m-header-close"
      ></wui-icon-link>
    `}titleTemplate(){let e=ru.includes(this.view);return(0,h.dy)`
      <wui-flex
        view-direction="${this.viewDirection}"
        class="w3m-header-title"
        alignItems="center"
        gap="xs"
      >
        <wui-text variant="paragraph-700" color="fg-100">${this.headerText}</wui-text>
        ${e?(0,h.dy)`<wui-tag variant="main">Beta</wui-tag>`:null}
      </wui-flex>
    `}dynamicButtonTemplate(){let{view:e}=s.RouterController.state;return"Account"===e?(0,h.dy)`<wui-select
        id="dynamic"
        data-testid="w3m-account-select-network"
        active-network=${this.network?.name}
        @click=${this.onNetworks.bind(this)}
        imageSrc=${(0,p.o)(s.fz.getNetworkImage(this.network))}
      ></wui-select>`:this.showBack&&!("ApproveTransaction"===e||"UpgradeToSmartAccount"===e||"ConnectingSiwe"===e)?(0,h.dy)`<wui-icon-link
        id="dynamic"
        icon="chevronLeft"
        ?disabled=${this.buffering}
        @click=${this.onGoBack.bind(this)}
      ></wui-icon-link>`:(0,h.dy)`<wui-icon-link
      data-hidden=${"Connect"!==e}
      id="dynamic"
      icon="helpCircle"
      @click=${this.onWalletHelp.bind(this)}
    ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(s.Xs.sendEvent({type:"track",event:"CLICK_NETWORKS"}),s.RouterController.push("Networks"))}isAllowedNetworkSwitch(){let e=s.fB.getRequestedCaipNetworks(),t=!!e&&e.length>1,r=e?.find(({id:e})=>e===this.network?.id);return t||!r}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=s.RouterController.state,t=E.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=E.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=s.RouterController.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){s.RouterController.goBack()}};rh.styles=rl,rc([(0,f.SB)()],rh.prototype,"heading",void 0),rc([(0,f.SB)()],rh.prototype,"network",void 0),rc([(0,f.SB)()],rh.prototype,"buffering",void 0),rc([(0,f.SB)()],rh.prototype,"showBack",void 0),rc([(0,f.SB)()],rh.prototype,"isSiweEnabled",void 0),rc([(0,f.SB)()],rh.prototype,"prevHistoryLength",void 0),rc([(0,f.SB)()],rh.prototype,"view",void 0),rc([(0,f.SB)()],rh.prototype,"viewDirection",void 0),rc([(0,f.SB)()],rh.prototype,"headerText",void 0),rh=rc([(0,l.customElement)("w3m-header")],rh);var rf=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rp=class extends h.oi{constructor(){super(...arguments),this.data=[]}render(){return(0,h.dy)`
      <wui-flex flexDirection="column" alignItems="center" gap="l">
        ${this.data.map(e=>(0,h.dy)`
            <wui-flex flexDirection="column" alignItems="center" gap="xl">
              <wui-flex flexDirection="row" justifyContent="center" gap="1xs">
                ${e.images.map(e=>(0,h.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>
    `}};rf([(0,f.Cb)({type:Array})],rp.prototype,"data",void 0),rp=rf([(0,l.customElement)("w3m-help-widget")],rp);var rg=(0,h.iv)`
  :host {
    width: 100%;
  }

  :host > wui-flex {
    width: 100%;
    padding: var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xs);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--wui-spacing-s);
  }

  :host > wui-flex:hover {
    background-color: var(--wui-color-gray-glass-002);
  }

  .purchase-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: var(--wui-icon-box-size-lg);
    height: var(--wui-icon-box-size-lg);
  }

  .purchase-image-container wui-image {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: calc(var(--wui-icon-box-size-lg) / 2);
  }

  .purchase-image-container wui-image::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: calc(var(--wui-icon-box-size-lg) / 2);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  .purchase-image-container wui-icon-box {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(20%, 20%);
  }
`,rm=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rv=class extends h.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="Bought",this.purchaseValue="",this.purchaseCurrency="",this.date="",this.completed=!1,this.inProgress=!1,this.failed=!1,this.onClick=null,this.symbol=""}firstUpdated(){this.icon||this.fetchTokenImage()}render(){return(0,h.dy)`
      <wui-flex>
        ${this.imageTemplate()}
        <wui-flex flexDirection="column" gap="4xs" flexGrow="1">
          <wui-flex gap="xxs" alignItems="center" justifyContent="flex-start">
            ${this.statusIconTemplate()}
            <wui-text variant="paragraph-500" color="fg-100"> ${this.label}</wui-text>
          </wui-flex>
          <wui-text variant="small-400" color="fg-200">
            + ${this.purchaseValue} ${this.purchaseCurrency}
          </wui-text>
        </wui-flex>
        ${this.inProgress?(0,h.dy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,h.dy)`<wui-text variant="micro-700" color="fg-300"><span>${this.date}</span></wui-text>`}
      </wui-flex>
    `}async fetchTokenImage(){await s.ApiController._fetchTokenImage(this.purchaseCurrency)}statusIconTemplate(){return this.inProgress?null:this.completed?this.boughtIconTemplate():this.errorIconTemplate()}errorIconTemplate(){return(0,h.dy)`<wui-icon-box
      size="xxs"
      iconColor="error-100"
      backgroundColor="error-100"
      background="opaque"
      icon="close"
      borderColor="wui-color-bg-125"
    ></wui-icon-box>`}imageTemplate(){let e=this.icon||`https://avatar.vercel.sh/andrew.svg?size=50&text=${this.symbol}`;return(0,h.dy)`<wui-flex class="purchase-image-container">
      <wui-image src=${e}></wui-image>
    </wui-flex>`}boughtIconTemplate(){return(0,h.dy)`<wui-icon-box
      size="xxs"
      iconColor="success-100"
      backgroundColor="success-100"
      background="opaque"
      icon="arrowBottom"
      borderColor="wui-color-bg-125"
    ></wui-icon-box>`}};rv.styles=[rg],rm([(0,f.Cb)({type:Boolean})],rv.prototype,"disabled",void 0),rm([(0,f.Cb)()],rv.prototype,"color",void 0),rm([(0,f.Cb)()],rv.prototype,"label",void 0),rm([(0,f.Cb)()],rv.prototype,"purchaseValue",void 0),rm([(0,f.Cb)()],rv.prototype,"purchaseCurrency",void 0),rm([(0,f.Cb)()],rv.prototype,"date",void 0),rm([(0,f.Cb)({type:Boolean})],rv.prototype,"completed",void 0),rm([(0,f.Cb)({type:Boolean})],rv.prototype,"inProgress",void 0),rm([(0,f.Cb)({type:Boolean})],rv.prototype,"failed",void 0),rm([(0,f.Cb)()],rv.prototype,"onClick",void 0),rm([(0,f.Cb)()],rv.prototype,"symbol",void 0),rm([(0,f.Cb)()],rv.prototype,"icon",void 0),rv=rm([(0,l.customElement)("w3m-onramp-activity-item")],rv);var rb=(0,h.iv)`
  :host {
    width: 100%;
  }

  wui-loading-spinner {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
  }

  .currency-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: var(--wui-spacing-1xs);
    height: 40px;
    padding: var(--wui-spacing-xs) var(--wui-spacing-1xs) var(--wui-spacing-xs)
      var(--wui-spacing-xs);
    min-width: 95px;
    border-radius: var(--FULL, 1000px);
    border: 1px solid var(--wui-color-gray-glass-002);
    background: var(--wui-color-gray-glass-002);
    cursor: pointer;
  }

  .currency-container > wui-image {
    height: 24px;
    width: 24px;
    border-radius: 50%;
  }
`,ry=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rw=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.type="Token",this.value=0,this.currencies=[],this.selectedCurrency=this.currencies?.[0],this.currencyImages=s.WM.state.currencyImages,this.tokenImages=s.WM.state.tokenImages,this.unsubscribe.push(s.ph.subscribeKey("purchaseCurrency",e=>{e&&"Fiat"!==this.type&&(this.selectedCurrency=this.formatPurchaseCurrency(e))}),s.ph.subscribeKey("paymentCurrency",e=>{e&&"Token"!==this.type&&(this.selectedCurrency=this.formatPaymentCurrency(e))}),s.ph.subscribe(e=>{"Fiat"===this.type?this.currencies=e.purchaseCurrencies.map(this.formatPurchaseCurrency):this.currencies=e.paymentCurrencies.map(this.formatPaymentCurrency)}),s.WM.subscribe(e=>{this.currencyImages={...e.currencyImages},this.tokenImages={...e.tokenImages}}))}firstUpdated(){s.ph.getAvailableCurrencies()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.selectedCurrency?.symbol||"",t=this.currencyImages[e]||this.tokenImages[e];return(0,h.dy)`<wui-input-text type="number" size="lg" value=${this.value}>
      ${this.selectedCurrency?(0,h.dy)` <wui-flex
            class="currency-container"
            justifyContent="space-between"
            alignItems="center"
            gap="xxs"
            @click=${()=>s.IN.open({view:`OnRamp${this.type}Select`})}
          >
            <wui-image src=${(0,p.o)(t)}></wui-image>
            <wui-text color="fg-100">${this.selectedCurrency.symbol}</wui-text>
          </wui-flex>`:(0,h.dy)`<wui-loading-spinner></wui-loading-spinner>`}
    </wui-input-text>`}formatPaymentCurrency(e){return{name:e.id,symbol:e.id}}formatPurchaseCurrency(e){return{name:e.name,symbol:e.symbol}}};rw.styles=rb,ry([(0,f.Cb)({type:String})],rw.prototype,"type",void 0),ry([(0,f.Cb)({type:Number})],rw.prototype,"value",void 0),ry([(0,f.SB)()],rw.prototype,"currencies",void 0),ry([(0,f.SB)()],rw.prototype,"selectedCurrency",void 0),ry([(0,f.SB)()],rw.prototype,"currencyImages",void 0),ry([(0,f.SB)()],rw.prototype,"tokenImages",void 0),rw=ry([(0,l.customElement)("w3m-onramp-input")],rw);var rx=(0,h.iv)`
  button {
    padding: var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xs);
    border: none;
    outline: none;
    background-color: var(--wui-color-gray-glass-002);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--wui-spacing-s);
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color;
  }

  button:hover {
    background-color: var(--wui-color-gray-glass-005);
  }

  .provider-image {
    width: var(--wui-spacing-3xl);
    min-width: var(--wui-spacing-3xl);
    height: var(--wui-spacing-3xl);
    border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
    position: relative;
    overflow: hidden;
  }

  .provider-image::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: calc(var(--wui-border-radius-xs) - calc(var(--wui-spacing-s) / 2));
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
  }

  .network-icon {
    width: var(--wui-spacing-m);
    height: var(--wui-spacing-m);
    border-radius: calc(var(--wui-spacing-m) / 2);
    overflow: hidden;
    box-shadow:
      0 0 0 3px var(--wui-color-gray-glass-002),
      0 0 0 3px var(--wui-color-modal-bg);
    transition: box-shadow var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: box-shadow;
  }

  button:hover .network-icon {
    box-shadow:
      0 0 0 3px var(--wui-color-gray-glass-005),
      0 0 0 3px var(--wui-color-modal-bg);
  }
`,r_=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rC=class extends h.oi{constructor(){super(...arguments),this.disabled=!1,this.color="inherit",this.label="",this.feeRange="",this.loading=!1,this.onClick=null}render(){return(0,h.dy)`
      <button ?disabled=${this.disabled} ontouchstart>
        <wui-visual name=${(0,p.o)(this.name)} class="provider-image"></wui-visual>
        <wui-flex flexDirection="column" gap="4xs">
          <wui-text variant="paragraph-500" color="fg-100">${this.label}</wui-text>
          <wui-flex alignItems="center" justifyContent="flex-start" gap="l">
            <wui-text variant="tiny-500" color="fg-100">
              <wui-text variant="tiny-400" color="fg-200">Fees</wui-text>
              ${this.feeRange}
            </wui-text>
            <wui-flex gap="xxs">
              <wui-icon name="bank" size="xs" color="fg-150"></wui-icon>
              <wui-icon name="card" size="xs" color="fg-150"></wui-icon>
            </wui-flex>
            ${this.networksTemplate()}
          </wui-flex>
        </wui-flex>
        ${this.loading?(0,h.dy)`<wui-loading-spinner color="fg-200" size="md"></wui-loading-spinner>`:(0,h.dy)`<wui-icon name="chevronRight" color="fg-200" size="sm"></wui-icon>`}
      </button>
    `}networksTemplate(){let e=s.fB.getRequestedCaipNetworks(),t=e?.filter(e=>e?.imageId)?.slice(0,5);return(0,h.dy)`
      <wui-flex class="networks">
        ${t?.map(e=>h.dy`
            <wui-flex class="network-icon">
              <wui-image src=${p.o(s.fz.getNetworkImage(e))}></wui-image>
            </wui-flex>
          `)}
      </wui-flex>
    `}};rC.styles=[rx],r_([(0,f.Cb)({type:Boolean})],rC.prototype,"disabled",void 0),r_([(0,f.Cb)()],rC.prototype,"color",void 0),r_([(0,f.Cb)()],rC.prototype,"name",void 0),r_([(0,f.Cb)()],rC.prototype,"label",void 0),r_([(0,f.Cb)()],rC.prototype,"feeRange",void 0),r_([(0,f.Cb)({type:Boolean})],rC.prototype,"loading",void 0),r_([(0,f.Cb)()],rC.prototype,"onClick",void 0),rC=r_([(0,l.customElement)("w3m-onramp-provider-item")],rC);var rA=(0,h.iv)`
  wui-flex {
    background-color: var(--wui-color-gray-glass-005);
  }

  a {
    text-decoration: none;
    color: var(--wui-color-fg-175);
    font-weight: 500;
  }
`;let rk=class extends h.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=s.OptionsController.state;return e||t?(0,h.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(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=s.OptionsController.state;return e&&t?"and":""}termsTemplate(){let{termsConditionsUrl:e}=s.OptionsController.state;return e?(0,h.dy)`<a href=${e}>Terms of Service</a>`:null}privacyTemplate(){let{privacyPolicyUrl:e}=s.OptionsController.state;return e?(0,h.dy)`<a href=${e}>Privacy Policy</a>`:null}};rk.styles=[rA],rk=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-legal-footer")],rk);var rE=(0,h.iv)`
  :host {
    display: block;
    padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
  }
`,rS=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rT=class extends h.oi{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;let{name:e,app_store:t,play_store:r,chrome_store:n,homepage:i}=this.wallet,o=s.j1.isMobile(),a=s.j1.isIos(),c=s.j1.isAndroid(),u=[t,r,i,n].filter(Boolean).length>1,d=l.UiHelperUtil.getTruncateString({string:e,charsStart:12,charsEnd:0,truncate:"end"});return u&&!o?(0,h.dy)`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${()=>s.RouterController.push("Downloads",{wallet:this.wallet})}
        ></wui-cta-button>
      `:!u&&i?(0,h.dy)`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onHomePage.bind(this)}
        ></wui-cta-button>
      `:t&&a?(0,h.dy)`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onAppStore.bind(this)}
        ></wui-cta-button>
      `:r&&c?(0,h.dy)`
        <wui-cta-button
          label=${`Don't have ${d}?`}
          buttonLabel="Get"
          @click=${this.onPlayStore.bind(this)}
        ></wui-cta-button>
      `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&s.j1.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&s.j1.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&s.j1.openHref(this.wallet.homepage,"_blank")}};rT.styles=[rE],rS([(0,f.Cb)({type:Object})],rT.prototype,"wallet",void 0),rT=rS([(0,l.customElement)("w3m-mobile-download-links")],rT);var rI=(0,h.iv)`
  wui-flex {
    border-top: 1px solid var(--wui-color-gray-glass-005);
  }

  a {
    text-decoration: none;
    color: var(--wui-color-fg-175);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wui-spacing-3xs);
  }
`;let rP=class extends h.oi{render(){let{termsConditionsUrl:e,privacyPolicyUrl:t}=s.OptionsController.state;return e||t?(0,h.dy)`
      <wui-flex
        .padding=${["m","s","s","s"]}
        flexDirection="column"
        alignItems="center"
        justifyContent="center"
        gap="s"
      >
        <wui-text color="fg-250" variant="small-400" align="center">
          We work with the best providers to give you the lowest fees and best support. More options
          coming soon!
        </wui-text>

        ${this.howDoesItWorkTemplate()}
      </wui-flex>
    `:null}howDoesItWorkTemplate(){return(0,h.dy)` <wui-link @click=${this.onWhatIsBuy.bind(this)}>
      <wui-icon size="xs" color="accent-100" slot="iconLeft" name="helpCircle"></wui-icon>
      How does it work?
    </wui-link>`}onWhatIsBuy(){s.Xs.sendEvent({type:"track",event:"SELECT_WHAT_IS_A_BUY",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("WhatIsABuy")}};rP.styles=[rI],rP=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-onramp-providers-footer")],rP);var rO=(0,h.iv)`
  :host {
    display: block;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    top: 11px;
    left: 50%;
    width: max-content;
  }
`,rR=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rM={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},rN=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=s.SnackController.state.open,this.unsubscribe.push(s.SnackController.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=s.SnackController.state,r=rM[t];return(0,h.dy)`
      <wui-snackbar
        message=${e}
        backgroundColor=${r?.backgroundColor}
        iconColor=${r?.iconColor}
        icon=${r?.icon}
        .loading=${"loading"===t}
      ></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(()=>s.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"})}};rN.styles=rO,rR([(0,f.SB)()],rN.prototype,"open",void 0),rN=rR([(0,l.customElement)("w3m-snackbar")],rN);var rj=(0,h.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: 50%;
    transform: translateY(-50%);
  }

  wui-icon-link {
    right: var(--wui-spacing-xs);
  }

  wui-loading-spinner {
    right: var(--wui-spacing-m);
  }
`,rD=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rB=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.formRef=(0,el.V)(),this.connectors=s.ConnectorController.state.connectors,this.email="",this.loading=!1,this.error="",this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){let e=this.connectors.find(e=>"AUTH"===e.type),t=this.connectors.length>1;return e?.email?(0,h.dy)`
      <form ${(0,el.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.socials||!t?null:(0,h.dy)`<wui-flex .padding=${["xxs","0","0","0"]}>
            <wui-separator text="or"></wui-separator>
          </wui-flex>`}
    `:null}submitButtonTemplate(){return!this.loading&&this.email.length>3?(0,h.dy)`
          <wui-icon-link
            size="sm"
            icon="chevronRight"
            iconcolor="accent-100"
            @click=${this.onSubmitEmail.bind(this)}
          >
          </wui-icon-link>
        `:null}loadingTemplate(){return this.loading?(0,h.dy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:null}onEmailInputChange(e){this.email=e.detail.trim(),this.error=""}async onSubmitEmail(e){if(![c.bq.CHAIN.EVM,c.bq.CHAIN.SOLANA].find(e=>e===s.RY.state.activeChain)){s.RouterController.push("SwitchActiveChain",{switchToChain:c.bq.CHAIN.EVM});return}try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=s.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-email-login-widget: Auth connector not found");let{action:r}=await t.provider.connectEmail({email:this.email});s.Xs.sendEvent({type:"track",event:"EMAIL_SUBMITTED"}),"VERIFY_OTP"===r?(s.Xs.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),s.RouterController.push("EmailVerifyOtp",{email:this.email})):"VERIFY_DEVICE"===r&&s.RouterController.push("EmailVerifyDevice",{email:this.email})}catch(t){let e=s.j1.parseError(t);e?.includes("Invalid email")?this.error="Invalid email. Try again.":s.SnackController.showError(t)}finally{this.loading=!1}}onFocusEvent(){s.Xs.sendEvent({type:"track",event:"EMAIL_LOGIN_SELECTED"})}};rB.styles=rj,rD([(0,f.SB)()],rB.prototype,"connectors",void 0),rD([(0,f.SB)()],rB.prototype,"email",void 0),rD([(0,f.SB)()],rB.prototype,"loading",void 0),rD([(0,f.SB)()],rB.prototype,"error",void 0),rB=rD([(0,l.customElement)("w3m-email-login-widget")],rB);var rL=(0,h.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);
  }

  wui-list-item > wui-text {
    flex: 1;
  }

  w3m-transactions-view {
    max-height: 200px;
  }

  .tab-content-container {
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .tab-content-container::-webkit-scrollbar {
    display: none;
  }

  .account-button {
    width: auto;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wui-spacing-s);
    height: 48px;
    padding: var(--wui-spacing-xs);
    padding-right: var(--wui-spacing-s);
    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
    background-color: var(--wui-color-gray-glass-002);
    border-radius: 24px;
    transition: background-color 0.2s linear;
  }

  .account-button:hover {
    background-color: var(--wui-color-gray-glass-005);
  }

  .avatar-container {
    position: relative;
  }

  wui-avatar.avatar {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  }

  wui-avatar.network-avatar {
    width: 16px;
    height: 16px;
    position: absolute;
    left: 100%;
    top: 100%;
    transform: translate(-75%, -75%);
    box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
  }

  .account-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .account-links wui-flex {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: red;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 10px;
    flex: 1 0 0;
    border-radius: var(--XS, 16px);
    border: 1px solid var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
    background: var(--dark-accent-glass-010, rgba(71, 161, 255, 0.1));
    transition:
      background-color var(--wui-ease-out-power-1) var(--wui-duration-md),
      opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
    will-change: background-color, opacity;
  }

  .account-links wui-flex:hover {
    background: var(--dark-accent-glass-015, rgba(71, 161, 255, 0.15));
  }

  .account-links wui-flex wui-icon {
    width: var(--S, 20px);
    height: var(--S, 20px);
  }

  .account-links wui-flex wui-icon svg path {
    stroke: #667dff;
  }
`,r$=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rU=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.disconnecting=!1,this.balance=s.AccountController.state.balance,this.balanceSymbol=s.AccountController.state.balanceSymbol,this.unsubscribe.push(s.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):this.disconnecting||s.SnackController.showError("Account not found")}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.address)throw Error("w3m-account-view: No account provided");return(0,h.dy)`<wui-flex
        flexDirection="column"
        .padding=${["0","xl","m","xl"]}
        alignItems="center"
        gap="l"
      >
        ${s.RY.state.activeChain===c.bq.CHAIN.EVM?this.multiAccountTemplate():this.singleAccountTemplate()}
        <wui-flex flexDirection="column" alignItems="center">
          <wui-text variant="paragraph-500" color="fg-200">
            ${s.j1.formatBalance(this.balance,this.balanceSymbol)}
          </wui-text>
        </wui-flex>
        ${this.explorerBtnTemplate()}
      </wui-flex>

      <wui-flex flexDirection="column" gap="xs" .padding=${["0","s","s","s"]}>
        ${this.authCardTemplate()} <w3m-account-auth-button></w3m-account-auth-button>
        ${this.onrampTemplate()} ${this.swapsTemplate()} ${this.activityTemplate()}
        <wui-list-item
          variant="icon"
          iconVariant="overlay"
          icon="disconnect"
          ?chevron=${!1}
          .loading=${this.disconnecting}
          @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>`}onrampTemplate(){let{enableOnramp:e}=s.OptionsController.state,t=s.RY.state.activeChain===c.bq.CHAIN.SOLANA;return!e||t?null:(0,h.dy)`
      <wui-list-item
        data-testid="w3m-account-default-onramp-button"
        iconVariant="blue"
        icon="card"
        ?chevron=${!0}
        @click=${this.handleClickPay.bind(this)}
      >
        <wui-text variant="paragraph-500" color="fg-100">Buy crypto</wui-text>
      </wui-list-item>
    `}activityTemplate(){let e=s.RY.state.activeChain===c.bq.CHAIN.SOLANA;return(0,h.dy)` <wui-list-item
      iconVariant="blue"
      icon="clock"
      iconSize="sm"
      ?chevron=${!e}
      ?disabled=${e}
      @click=${this.onTransactions.bind(this)}
    >
      <wui-text variant="paragraph-500" color="fg-100" ?disabled=${e}> Activity </wui-text>
      ${e?(0,h.dy)`<wui-tag variant="main">Coming soon</wui-tag>`:""}
    </wui-list-item>`}swapsTemplate(){let{enableSwaps:e}=s.OptionsController.state;return e&&s.RY.state.activeChain!==c.bq.CHAIN.SOLANA?(0,h.dy)`
      <wui-list-item
        iconVariant="blue"
        icon="recycleHorizontal"
        ?chevron=${!0}
        @click=${this.handleClickSwap.bind(this)}
      >
        <wui-text variant="paragraph-500" color="fg-100">Swap</wui-text>
      </wui-list-item>
    `:null}authCardTemplate(){let e=s.MO.getConnectedConnector(),t=s.ConnectorController.getAuthConnector(),{origin:r}=location;return!t||"AUTH"!==e||r.includes(s.bq.SECURE_SITE)?null:(0,h.dy)`
      <wui-notice-card
        @click=${this.onGoToUpgradeView.bind(this)}
        label="Upgrade your wallet"
        description="Transition to a self-custodial wallet"
        icon="wallet"
        data-testid="w3m-wallet-upgrade-card"
      ></wui-notice-card>
    `}handleSwitchAccountsView(){s.RouterController.push("SwitchAddress")}handleClickPay(){s.RouterController.push("OnRampProviders")}handleClickSwap(){s.RouterController.push("Swap")}explorerBtnTemplate(){return s.AccountController.state.addressExplorerUrl?(0,h.dy)`
      <wui-button size="md" variant="neutral" @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}singleAccountTemplate(){return(0,h.dy)`
      <wui-avatar
        alt=${(0,p.o)(this.address)}
        address=${(0,p.o)(this.address)}
        imageSrc=${(0,p.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?l.UiHelperUtil.getTruncateString({string:this.profileName,charsStart:20,charsEnd:0,truncate:"end"}):l.UiHelperUtil.getTruncateString({string:this.address?this.address:"",charsStart:4,charsEnd:4,truncate:"middle"})}
          </wui-text>
          <wui-icon-link
            size="md"
            icon="copy"
            iconColor="fg-200"
            @click=${this.onCopyAddress}
          ></wui-icon-link> </wui-flex
      ></wui-flex>
    `}multiAccountTemplate(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=s.AccountController.state.allAccounts?.find(e=>e.address===this.address),t=s.AccountController.state.addressLabels.get(this.address);return(0,h.dy)`
      <wui-profile-button-v2
        .onProfileClick=${this.handleSwitchAccountsView.bind(this)}
        address=${(0,p.o)(this.address)}
        icon="${e?.type===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&s.RY.state.activeChain===c.bq.CHAIN.EVM?"lightbulb":"mail"}"
        avatarSrc=${(0,p.o)(this.profileImage?this.profileImage:void 0)}
        profileName=${(0,p.o)(t||this.profileName)}
        .onCopyClick=${this.onCopyAddress.bind(this)}
      ></wui-profile-button-v2>
    `}onCopyAddress(){try{this.address&&(s.j1.copyToClopboard(this.address),s.SnackController.showSuccess("Address copied"))}catch{s.SnackController.showError("Failed to copy")}}onTransactions(){s.Xs.sendEvent({type:"track",event:"CLICK_TRANSACTIONS",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("Transactions")}async onDisconnect(){try{this.disconnecting=!0,await s.ConnectionController.disconnect(),s.Xs.sendEvent({type:"track",event:"DISCONNECT_SUCCESS"}),s.IN.close()}catch{s.Xs.sendEvent({type:"track",event:"DISCONNECT_ERROR"}),s.SnackController.showError("Failed to disconnect")}finally{this.disconnecting=!1}}onExplorer(){let e=s.AccountController.state.addressExplorerUrl;e&&s.j1.openHref(e,"_blank")}onGoToUpgradeView(){s.Xs.sendEvent({type:"track",event:"EMAIL_UPGRADE_FROM_MODAL"}),s.RouterController.push("UpgradeEmailWallet")}};rU.styles=rL,r$([(0,f.SB)()],rU.prototype,"address",void 0),r$([(0,f.SB)()],rU.prototype,"profileImage",void 0),r$([(0,f.SB)()],rU.prototype,"profileName",void 0),r$([(0,f.SB)()],rU.prototype,"disconnecting",void 0),r$([(0,f.SB)()],rU.prototype,"balance",void 0),r$([(0,f.SB)()],rU.prototype,"balanceSymbol",void 0),rU=r$([(0,l.customElement)("w3m-account-default-widget")],rU);var rz=(0,h.iv)`
  wui-flex {
    width: 100%;
  }

  wui-promo {
    position: absolute;
    top: -32px;
  }

  wui-profile-button {
    margin-top: calc(-1 * var(--wui-spacing-2l));
  }

  wui-promo + wui-profile-button {
    margin-top: var(--wui-spacing-2l);
  }

  wui-tabs {
    width: 100%;
  }

  .contentContainer {
    height: 280px;
  }

  .contentContainer > wui-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-xxs);
  }

  .contentContainer > .textContent {
    width: 65%;
  }
`,rF=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rq=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.address=s.AccountController.state.address,this.profileImage=s.AccountController.state.profileImage,this.profileName=s.AccountController.state.profileName,this.smartAccountDeployed=s.AccountController.state.smartAccountDeployed,this.network=s.fB.state.caipNetwork,this.currentTab=s.AccountController.state.currentTab,this.tokenBalance=s.AccountController.state.tokenBalance,this.preferredAccountType=s.AccountController.state.preferredAccountType,this.unsubscribe.push(s.AccountController.subscribe(e=>{e.address?(this.address=e.address,this.profileImage=e.profileImage,this.profileName=e.profileName,this.currentTab=e.currentTab,this.tokenBalance=e.tokenBalance,this.smartAccountDeployed=e.smartAccountDeployed,this.preferredAccountType=e.preferredAccountType):s.IN.close()}),s.fB.subscribeKey("caipNetwork",e=>{this.network=e})),this.watchSwapValues()}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),clearInterval(this.watchTokenBalance)}firstUpdated(){s.AccountController.fetchTokenBalance()}render(){if(!this.address)throw Error("w3m-account-view: No account provided");let e=s.fz.getNetworkImage(this.network);return(0,h.dy)`<wui-flex
      flexDirection="column"
      .padding=${["0","xl","m","xl"]}
      alignItems="center"
      gap="m"
    >
      ${this.network&&(0,h.dy)`<wui-network-icon .network=${this.network}></wui-network-icon>`}
      ${this.activateAccountTemplate()}
      <wui-profile-button
        @click=${this.onProfileButtonClick.bind(this)}
        address=${(0,p.o)(this.address)}
        networkSrc=${(0,p.o)(e)}
        icon="chevronBottom"
        avatarSrc=${(0,p.o)(this.profileImage?this.profileImage:void 0)}
        profileName=${this.profileName}
        data-testid="w3m-profile-button"
      ></wui-profile-button>
      ${this.tokenBalanceTemplate()}
      <wui-flex gap="s">
        <w3m-tooltip-trigger text="Buy">
          <wui-icon-button
            data-testid="wallet-features-onramp-button"
            @click=${this.onBuyClick.bind(this)}
            icon="card"
          ></wui-icon-button>
        </w3m-tooltip-trigger>
        ${this.swapsTemplate()}
        <w3m-tooltip-trigger text="Receive">
          <wui-icon-button
            data-testid="wallet-features-receive-button"
            @click=${this.onReceiveClick.bind(this)}
            icon="arrowBottomCircle"
          >
          </wui-icon-button>
        </w3m-tooltip-trigger>
        <w3m-tooltip-trigger text="Send">
          <wui-icon-button
            data-testid="wallet-features-send-button"
            @click=${this.onSendClick.bind(this)}
            icon="send"
          ></wui-icon-button>
        </w3m-tooltip-trigger>
      </wui-flex>

      <wui-tabs
        .onTabChange=${this.onTabChange.bind(this)}
        .activeTab=${this.currentTab}
        localTabWidth=${s.j1.isMobile()&&window.innerWidth<430?`${(window.innerWidth-48)/3}px`:"104px"}
        .tabs=${E.ACCOUNT_TABS}
      ></wui-tabs>
      ${this.listContentTemplate()}
    </wui-flex>`}swapsTemplate(){let{enableSwaps:e}=s.OptionsController.state;return e?(0,h.dy)`
      <w3m-tooltip-trigger text="Swap">
        <wui-icon-button
          data-testid="wallet-features-swap-button"
          @click=${this.onSwapClick.bind(this)}
          icon="recycleHorizontal"
        >
        </wui-icon-button>
      </w3m-tooltip-trigger>
    `:null}watchSwapValues(){this.watchTokenBalance=setInterval(()=>s.AccountController.fetchTokenBalance(),1e4)}listContentTemplate(){return 0===this.currentTab?(0,h.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`:1===this.currentTab?(0,h.dy)`<w3m-account-nfts-widget></w3m-account-nfts-widget>`:2===this.currentTab?(0,h.dy)`<w3m-account-activity-widget></w3m-account-activity-widget>`:(0,h.dy)`<w3m-account-tokens-widget></w3m-account-tokens-widget>`}tokenBalanceTemplate(){if(this.tokenBalance&&this.tokenBalance?.length>=0){let e=s.j1.calculateBalance(this.tokenBalance),{dollars:t="0",pennies:r="00"}=s.j1.formatTokenBalance(e);return(0,h.dy)`<wui-balance dollars=${t} pennies=${r}></wui-balance>`}return(0,h.dy)`<wui-balance dollars="0" pennies="00"></wui-balance>`}activateAccountTemplate(){return!s.fB.checkIfSmartAccountEnabled()||this.preferredAccountType!==N.y_.ACCOUNT_TYPES.EOA||this.smartAccountDeployed?null:(0,h.dy)` <wui-promo
      text=${"Activate your account"}
      @click=${this.onUpdateToSmartAccount.bind(this)}
      data-testid="activate-smart-account-promo"
    ></wui-promo>`}onTabChange(e){s.AccountController.setCurrentTab(e)}onProfileButtonClick(){s.RouterController.push("Profile")}onBuyClick(){s.RouterController.push("OnRampProviders")}onSwapClick(){this.network?.id&&!s.bq.SWAP_SUPPORTED_NETWORKS.includes(this.network?.id)?s.RouterController.push("UnsupportedChain",{swapUnsupportedChain:!0}):(s.Xs.sendEvent({type:"track",event:"OPEN_SWAP",properties:{network:this.network?.id||"",isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("Swap"))}onReceiveClick(){s.RouterController.push("WalletReceive")}onSendClick(){s.Xs.sendEvent({type:"track",event:"OPEN_SEND",properties:{network:this.network?.id||"",isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("WalletSend")}onUpdateToSmartAccount(){s.RouterController.push("UpgradeToSmartAccount")}};rq.styles=rz,rF([(0,f.SB)()],rq.prototype,"watchTokenBalance",void 0),rF([(0,f.SB)()],rq.prototype,"address",void 0),rF([(0,f.SB)()],rq.prototype,"profileImage",void 0),rF([(0,f.SB)()],rq.prototype,"profileName",void 0),rF([(0,f.SB)()],rq.prototype,"smartAccountDeployed",void 0),rF([(0,f.SB)()],rq.prototype,"network",void 0),rF([(0,f.SB)()],rq.prototype,"currentTab",void 0),rF([(0,f.SB)()],rq.prototype,"tokenBalance",void 0),rF([(0,f.SB)()],rq.prototype,"preferredAccountType",void 0),rq=rF([(0,l.customElement)("w3m-account-wallet-features-widget")],rq);var rH=(0,h.iv)`
  :host {
    width: 100%;
    max-height: 280px;
    overflow: scroll;
    scrollbar-width: none;
  }

  :host::-webkit-scrollbar {
    display: none;
  }
`;let rW=class extends h.oi{render(){return(0,h.dy)`<w3m-activity-list page="account"></w3m-activity-list>`}};rW.styles=rH,rW=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-account-activity-widget")],rW);var rV=(0,h.iv)`
  .contentContainer {
    height: 280px;
  }

  .contentContainer > wui-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-xxs);
  }

  .contentContainer > .textContent {
    width: 65%;
  }
`;let rZ=class extends h.oi{render(){return(0,h.dy)`${this.nftTemplate()}`}nftTemplate(){return(0,h.dy)` <wui-flex
      class="contentContainer"
      alignItems="center"
      justifyContent="center"
      flexDirection="column"
      gap="l"
    >
      <wui-icon-box
        icon="wallet"
        size="inherit"
        iconColor="fg-200"
        backgroundColor="fg-200"
        iconSize="lg"
      ></wui-icon-box>
      <wui-flex
        class="textContent"
        gap="xs"
        flexDirection="column"
        justifyContent="center"
        flexDirection="column"
      >
        <wui-text variant="paragraph-500" align="center" color="fg-100">Coming soon</wui-text>
        <wui-text variant="small-400" align="center" color="fg-200"
          >Stay tuned for our upcoming NFT feature</wui-text
        >
      </wui-flex>
      <wui-link @click=${this.onReceiveClick.bind(this)}>Receive funds</wui-link>
    </wui-flex>`}onReceiveClick(){s.RouterController.push("WalletReceive")}};rZ.styles=rV,rZ=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-account-nfts-widget")],rZ);var rG=(0,h.iv)`
  :host {
    width: 100%;
  }

  wui-flex {
    width: 100%;
  }

  .contentContainer {
    max-height: 280px;
    overflow: scroll;
    scrollbar-width: none;
  }

  .contentContainer::-webkit-scrollbar {
    display: none;
  }
`,rK=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rY=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.tokenBalance=s.AccountController.state.tokenBalance,this.unsubscribe.push(s.AccountController.subscribe(e=>{this.tokenBalance=e.tokenBalance}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)`${this.tokenTemplate()}`}tokenTemplate(){return this.tokenBalance&&this.tokenBalance?.length>0?(0,h.dy)`<wui-flex class="contentContainer" flexDirection="column" gap="xs">
        ${this.tokenItemTemplate()}
      </wui-flex>`:(0,h.dy)` <wui-flex flexDirection="column" gap="xs"
      ><wui-list-description
        @click=${this.onBuyClick.bind(this)}
        text="Buy Crypto"
        description="Easy with card or bank account"
        icon="card"
        iconColor="success-100"
        iconBackgroundColor="success-100"
        tag="popular"
      ></wui-list-description
      ><wui-list-description
        @click=${this.onReceiveClick.bind(this)}
        text="Receive funds"
        description="Transfer tokens on your wallet"
        icon="arrowBottomCircle"
        iconColor="fg-200"
        iconBackgroundColor="fg-200"
      ></wui-list-description
    ></wui-flex>`}tokenItemTemplate(){return this.tokenBalance?.map(e=>h.dy`<wui-list-token
          tokenName=${e.name}
          tokenImageUrl=${e.iconUrl}
          tokenAmount=${e.quantity.numeric}
          tokenValue=${e.value}
          tokenCurrency=${e.symbol}
        ></wui-list-token>`)}onReceiveClick(){s.RouterController.push("WalletReceive")}onBuyClick(){s.Xs.sendEvent({type:"track",event:"SELECT_BUY_CRYPTO",properties:{isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),s.RouterController.push("OnRampProviders")}};rY.styles=rG,rK([(0,f.SB)()],rY.prototype,"tokenBalance",void 0),rY=rK([(0,l.customElement)("w3m-account-tokens-widget")],rY);var rQ=(0,h.iv)`
  :host {
    min-height: 100%;
  }

  .group-container[last-group='true'] {
    padding-bottom: var(--wui-spacing-m);
  }

  .contentContainer {
    height: 280px;
  }

  .contentContainer > wui-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--wui-border-radius-xxs);
  }

  .contentContainer > .textContent {
    width: 65%;
  }

  .emptyContainer {
    height: 100%;
  }
`,rJ=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let rX="last-transaction",r0=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.page="activity",this.address=s.AccountController.state.address,this.transactionsByYear=s.sl.state.transactionsByYear,this.loading=s.sl.state.loading,this.empty=s.sl.state.empty,this.next=s.sl.state.next,s.sl.clearCursor(),this.unsubscribe.push(s.AccountController.subscribe(e=>{e.isConnected&&this.address!==e.address&&(this.address=e.address,s.sl.resetTransactions(),s.sl.fetchTransactions(e.address))}),s.fB.subscribeKey("caipNetwork",()=>{this.updateTransactionView()}),s.sl.subscribe(e=>{this.transactionsByYear=e.transactionsByYear,this.loading=e.loading,this.empty=e.empty,this.next=e.next}))}firstUpdated(){this.updateTransactionView(),this.createPaginationObserver()}updated(){this.setPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,h.dy)` ${this.empty?null:this.templateTransactionsByYear()}
    ${this.loading?this.templateLoading():null}
    ${!this.loading&&this.empty?this.templateEmpty():null}`}updateTransactionView(){let e=s.fB.state.caipNetwork?.id;s.sl.state.lastNetworkInView!==e&&(s.sl.resetTransactions(),s.sl.fetchTransactions(this.address)),s.sl.setLastNetworkInView(e)}templateTransactionsByYear(){return Object.keys(this.transactionsByYear).sort().reverse().map(e=>{let t=parseInt(e,10),r=Array(12).fill(null).map((e,r)=>({groupTitle:l.TransactionUtil.getTransactionGroupTitle(t,r),transactions:this.transactionsByYear[t]?.[r]})).filter(({transactions:e})=>e).reverse();return r.map(({groupTitle:e,transactions:t},n)=>{let i=n===r.length-1;return t?(0,h.dy)`
          <wui-flex
            flexDirection="column"
            class="group-container"
            last-group="${i?"true":"false"}"
          >
            <wui-flex
              alignItems="center"
              flexDirection="row"
              .padding=${["xs","s","s","s"]}
            >
              <wui-text variant="paragraph-500" color="fg-200">${e}</wui-text>
            </wui-flex>
            <wui-flex flexDirection="column" gap="xs">
              ${this.templateTransactions(t,i)}
            </wui-flex>
          </wui-flex>
        `:null})})}templateRenderTransaction(e,t){let{date:r,descriptions:n,direction:i,isAllNFT:o,images:a,status:s,transfers:c,type:u}=this.getTransactionListItemProps(e),d=c?.length>1;return c?.length!==2||o?d?c.map((e,n)=>{let i=l.TransactionUtil.getTransferDescription(e),o=t&&n===c.length-1;return(0,h.dy)` <wui-transaction-list-item
          date=${r}
          direction=${e.direction}
          id=${o&&this.next?rX:""}
          status=${s}
          type=${u}
          .onlyDirectionIcon=${!0}
          .images=${[a[n]]}
          .descriptions=${[i]}
        ></wui-transaction-list-item>`}):(0,h.dy)`
      <wui-transaction-list-item
        date=${r}
        .direction=${i}
        id=${t&&this.next?rX:""}
        status=${s}
        type=${u}
        .images=${a}
        .descriptions=${n}
      ></wui-transaction-list-item>
    `:(0,h.dy)`
        <wui-transaction-list-item
          date=${r}
          .direction=${i}
          id=${t&&this.next?rX:""}
          status=${s}
          type=${u}
          .images=${a}
          .descriptions=${n}
        ></wui-transaction-list-item>
      `}templateTransactions(e,t){return e.map((r,n)=>{let i=t&&n===e.length-1;return(0,h.dy)`${this.templateRenderTransaction(r,i)}`})}emptyStateActivity(){return(0,h.dy)`<wui-flex
      class="emptyContainer"
      flexGrow="1"
      flexDirection="column"
      justifyContent="center"
      alignItems="center"
      .padding=${["3xl","xl","3xl","xl"]}
      gap="xl"
    >
      <wui-icon-box
        backgroundColor="gray-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>`}emptyStateAccount(){return(0,h.dy)`<wui-flex
      class="contentContainer"
      alignItems="center"
      justifyContent="center"
      flexDirection="column"
      gap="l"
    >
      <wui-icon-box
        icon="swapHorizontal"
        size="inherit"
        iconColor="fg-200"
        backgroundColor="fg-200"
        iconSize="lg"
      ></wui-icon-box>
      <wui-flex
        class="textContent"
        gap="xs"
        flexDirection="column"
        justifyContent="center"
        flexDirection="column"
      >
        <wui-text variant="paragraph-500" align="center" color="fg-100">No activity yet</wui-text>
        <wui-text variant="small-400" align="center" color="fg-200"
          >Your next transactions will appear here</wui-text
        >
      </wui-flex>
      <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link>
    </wui-flex>`}templateEmpty(){return"account"===this.page?(0,h.dy)`${this.emptyStateAccount()}`:(0,h.dy)`${this.emptyStateActivity()}`}templateLoading(){return"activity"===this.page?Array(7).fill((0,h.dy)` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map(e=>e):null}onReceiveClick(){s.RouterController.push("WalletReceive")}createPaginationObserver(){let{projectId:e}=s.OptionsController.state;this.paginationObserver=new IntersectionObserver(([t])=>{t?.isIntersecting&&!this.loading&&(s.sl.fetchTransactions(this.address),s.Xs.sendEvent({type:"track",event:"LOAD_MORE_TRANSACTIONS",properties:{address:this.address,projectId:e,cursor:this.next,isSmartAccount:s.AccountController.state.preferredAccountType===N.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}))},{}),this.setPaginationObserver()}setPaginationObserver(){this.paginationObserver?.disconnect();let e=this.shadowRoot?.querySelector(`#${rX}`);e&&this.paginationObserver?.observe(e)}getTransactionListItemProps(e){let t=c.Em.formatDate(e?.metadata?.minedAt),r=l.TransactionUtil.getTransactionDescriptions(e),n=e?.transfers,i=e?.transfers?.[0],o=!!i&&e?.transfers?.every(e=>!!e.nft_info),a=l.TransactionUtil.getTransactionImages(n);return{date:t,direction:i?.direction,descriptions:r,isAllNFT:o,images:a,status:e.metadata?.status,transfers:n,type:e.metadata?.operationType}}};r0.styles=rQ,rJ([(0,f.Cb)()],r0.prototype,"page",void 0),rJ([(0,f.SB)()],r0.prototype,"address",void 0),rJ([(0,f.SB)()],r0.prototype,"transactionsByYear",void 0),rJ([(0,f.SB)()],r0.prototype,"loading",void 0),rJ([(0,f.SB)()],r0.prototype,"empty",void 0),rJ([(0,f.SB)()],r0.prototype,"next",void 0),r0=rJ([(0,l.customElement)("w3m-activity-list")],r0);var r1=(0,h.iv)`
  :host {
    width: 100%;
    height: 100px;
    border-radius: var(--wui-border-radius-s);
    border: 1px solid var(--wui-color-gray-glass-002);
    background-color: var(--wui-color-gray-glass-002);
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
    will-change: background-color;
  }

  :host(:hover) {
    background-color: var(--wui-color-gray-glass-005);
  }

  wui-flex {
    width: 100%;
    height: fit-content;
  }

  wui-button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  wui-input-amount {
    mask-image: linear-gradient(
      270deg,
      transparent 0px,
      transparent 8px,
      black 24px,
      black 25px,
      black 32px,
      black 100%
    );
  }

  .totalValue {
    width: 100%;
  }
`,r2=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r3=class extends h.oi{render(){return(0,h.dy)` <wui-flex
      flexDirection="column"
      gap="4xs"
      .padding=${["xl","s","l","l"]}
    >
      <wui-flex alignItems="center">
        <wui-input-amount
          @inputChange=${this.onInputChange.bind(this)}
          ?disabled=${!this.token}
          .value=${this.sendTokenAmount?String(this.sendTokenAmount):""}
        ></wui-input-amount>
        ${this.buttonTemplate()}
      </wui-flex>
      <wui-flex alignItems="center" justifyContent="space-between">
        ${this.sendValueTemplate()}
        <wui-flex alignItems="center" gap="4xs" justifyContent="flex-end">
          ${this.maxAmountTemplate()} ${this.actionTemplate()}
        </wui-flex>
      </wui-flex>
    </wui-flex>`}buttonTemplate(){return this.token?(0,h.dy)`<wui-token-button
        text=${this.token.symbol}
        imageSrc=${this.token.iconUrl}
        @click=${this.handleSelectButtonClick.bind(this)}
      >
      </wui-token-button>`:(0,h.dy)`<wui-button
      size="md"
      variant="accent"
      @click=${this.handleSelectButtonClick.bind(this)}
      >Select token</wui-button
    >`}handleSelectButtonClick(){s.RouterController.push("WalletSendSelectToken")}sendValueTemplate(){if(this.token&&this.sendTokenAmount){let e=this.token.price*this.sendTokenAmount;return(0,h.dy)`<wui-text class="totalValue" variant="small-400" color="fg-200"
        >${e?`$${l.UiHelperUtil.formatNumberToLocalString(e,2)}`:"Incorrect value"}</wui-text
      >`}return null}maxAmountTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,h.dy)` <wui-text variant="small-400" color="error-100">
          ${l.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
        </wui-text>`:(0,h.dy)` <wui-text variant="small-400" color="fg-200">
        ${l.UiHelperUtil.roundNumber(Number(this.token.quantity.numeric),6,5)}
      </wui-text>`:null}actionTemplate(){return this.token?this.sendTokenAmount&&this.sendTokenAmount>Number(this.token.quantity.numeric)?(0,h.dy)`<wui-link @click=${this.onBuyClick.bind(this)}>Buy</wui-link>`:(0,h.dy)`<wui-link @click=${this.onMaxClick.bind(this)}>Max</wui-link>`:null}onInputChange(e){s.Si.setTokenAmount(e.detail)}onMaxClick(){if(this.token&&this.gasPriceInUSD){let e=c.C6.bigNumber(this.gasPriceInUSD.toFixed(5)).dividedBy(this.token.price),t=void 0===this.token.address?c.C6.bigNumber(this.token.quantity.numeric).minus(e):c.C6.bigNumber(this.token.quantity.numeric);s.Si.setTokenAmount(Number(t.toFixed(20)))}}onBuyClick(){s.RouterController.push("OnRampProviders")}};r3.styles=r1,r2([(0,f.Cb)({type:Object})],r3.prototype,"token",void 0),r2([(0,f.Cb)({type:Number})],r3.prototype,"sendTokenAmount",void 0),r2([(0,f.Cb)({type:Number})],r3.prototype,"gasPriceInUSD",void 0),r3=r2([(0,l.customElement)("w3m-input-token")],r3);var r5=(0,h.iv)`
  :host {
    width: 100%;
    height: 100px;
    border-radius: var(--wui-border-radius-s);
    border: 1px solid var(--wui-color-gray-glass-002);
    background-color: var(--wui-color-gray-glass-002);
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
    will-change: background-color;
    position: relative;
  }

  :host(:hover) {
    background-color: var(--wui-color-gray-glass-005);
  }

  wui-flex {
    width: 100%;
    height: fit-content;
  }

  wui-button {
    display: ruby;
    color: var(--wui-color-fg-100);
    margin: 0 var(--wui-spacing-xs);
  }

  .instruction {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .paste {
    display: inline-flex;
  }

  textarea {
    background: transparent;
    width: 100%;
    font-family: var(--w3m-font-family);
    font-size: var(--wui-font-size-medium);
    font-style: normal;
    font-weight: var(--wui-font-weight-light);
    line-height: 130%;
    letter-spacing: var(--wui-letter-spacing-medium);
    color: var(--wui-color-fg-100);
    caret-color: var(--wui-color-accent-100);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    padding: 0px;
    border: none;
    outline: none;
    appearance: none;
    resize: none;
    overflow: hidden;
  }
`,r6=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r4=class extends h.oi{constructor(){super(...arguments),this.inputElementRef=(0,el.V)(),this.instructionElementRef=(0,el.V)(),this.instructionHidden=!!this.value,this.pasting=!1,this.onDebouncedSearch=s.j1.debounce(async e=>{let t=await s.ConnectionController.getEnsAddress(e);if(s.Si.setLoading(!1),t){s.Si.setReceiverProfileName(e),s.Si.setReceiverAddress(t);let r=await s.ConnectionController.getEnsAvatar(e);r&&s.Si.setReceiverProfileImageUrl(r)}else s.Si.setReceiverAddress(e),s.Si.setReceiverProfileName(void 0),s.Si.setReceiverProfileImageUrl(void 0)})}firstUpdated(){this.value&&(this.instructionHidden=!0),this.checkHidden()}render(){return(0,h.dy)` <wui-flex
      @click=${this.onBoxClick.bind(this)}
      flexDirection="column"
      justifyContent="center"
      gap="4xs"
      .padding=${["2xl","l","xl","l"]}
    >
      <wui-text
        ${(0,el.i)(this.instructionElementRef)}
        class="instruction"
        color="fg-300"
        variant="medium-400"
      >
        Type or
        <wui-button
          class="paste"
          size="md"
          variant="neutral"
          iconLeft="copy"
          @click=${this.onPasteClick.bind(this)}
        >
          <wui-icon size="sm" color="inherit" slot="iconLeft" name="copy"></wui-icon>
          Paste
        </wui-button>
        address
      </wui-text>
      <textarea
        spellcheck="false"
        ?disabled=${!this.instructionHidden}
        ${(0,el.i)(this.inputElementRef)}
        @input=${this.onInputChange.bind(this)}
        @blur=${this.onBlur.bind(this)}
        .value=${this.value??""}
        autocomplete="off"
      >
${this.value??""}</textarea
      >
    </wui-flex>`}async focusInput(){this.instructionElementRef.value&&(this.instructionHidden=!0,await this.toggleInstructionFocus(!1),this.instructionElementRef.value.style.pointerEvents="none",this.inputElementRef.value?.focus(),this.inputElementRef.value&&(this.inputElementRef.value.selectionStart=this.inputElementRef.value.selectionEnd=this.inputElementRef.value.value.length))}async focusInstruction(){this.instructionElementRef.value&&(this.instructionHidden=!1,await this.toggleInstructionFocus(!0),this.instructionElementRef.value.style.pointerEvents="auto",this.inputElementRef.value?.blur())}async toggleInstructionFocus(e){this.instructionElementRef.value&&await this.instructionElementRef.value.animate([{opacity:e?0:1},{opacity:e?1:0}],{duration:100,easing:"ease",fill:"forwards"}).finished}onBoxClick(){this.value||this.instructionHidden||this.focusInput()}onBlur(){this.value||!this.instructionHidden||this.pasting||this.focusInstruction()}checkHidden(){this.instructionHidden&&this.focusInput()}async onPasteClick(){this.pasting=!0;let e=await navigator.clipboard.readText();s.Si.setReceiverAddress(e),this.focusInput()}onInputChange(e){this.pasting=!1;let t=e.target;t.value&&!this.instructionHidden&&this.focusInput(),s.Si.setLoading(!0),this.onDebouncedSearch(t.value)}};r4.styles=r5,r6([(0,f.Cb)()],r4.prototype,"value",void 0),r6([(0,f.SB)()],r4.prototype,"instructionHidden",void 0),r6([(0,f.SB)()],r4.prototype,"pasting",void 0),r4=r6([(0,l.customElement)("w3m-input-address")],r4);var r8=(0,h.iv)`
  :host {
    display: flex;
    width: auto;
    flex-direction: column;
    gap: var(--wui-border-radius-1xs);
    border-radius: var(--wui-border-radius-s);
    background: var(--wui-color-gray-glass-002);
    padding: var(--wui-spacing-s) var(--wui-spacing-1xs) var(--wui-spacing-1xs)
      var(--wui-spacing-1xs);
  }

  wui-text {
    padding: 0 var(--wui-spacing-1xs);
  }

  wui-flex {
    margin-top: var(--wui-spacing-1xs);
  }

  .network {
    cursor: pointer;
    transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-lg);
    will-change: background-color;
  }

  .network:focus-visible {
    border: 1px solid var(--wui-color-accent-100);
    background-color: var(--wui-color-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);
  }

  .network:hover {
    background-color: var(--wui-color-gray-glass-005);
  }

  .network:active {
    background-color: var(--wui-color-gray-glass-010);
  }
`,r9=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let r7=class extends h.oi{render(){return(0,h.dy)` <wui-text variant="small-400" color="fg-200">Details</wui-text>
      <wui-flex flexDirection="column" gap="xxs">
        <wui-list-content textTitle="Network cost" textValue="$${(0,p.o)(l.UiHelperUtil.formatNumberToLocalString(this.networkFee,2))}"></wui-list-content></wui-list-content>
        <wui-list-content
          textTitle="Address"
          textValue=${l.UiHelperUtil.getTruncateString({string:this.receiverAddress??"",charsStart:4,charsEnd:4,truncate:"middle"})}
        >
        </wui-list-content>
        ${this.networkTemplate()}
      </wui-flex>`}networkTemplate(){return this.caipNetwork?.name?(0,h.dy)` <wui-list-content
        @click=${()=>this.onNetworkClick(this.caipNetwork)}
        class="network"
        textTitle="Network"
        imageSrc=${(0,p.o)(s.fz.getNetworkImage(this.caipNetwork))}
      ></wui-list-content>`:null}onNetworkClick(e){e&&s.RouterController.push("Networks",{network:e})}};r7.styles=r8,r9([(0,f.Cb)()],r7.prototype,"receiverAddress",void 0),r9([(0,f.Cb)({type:Object})],r7.prototype,"caipNetwork",void 0),r9([(0,f.Cb)({type:Number})],r7.prototype,"networkFee",void 0),r7=r9([(0,l.customElement)("w3m-wallet-send-details")],r7);var ne=(0,h.iv)`
  :host {
    pointer-events: none;
  }

  :host > wui-flex {
    display: var(--w3m-tooltip-display);
    opacity: var(--w3m-tooltip-opacity);
    padding: 9px var(--wui-spacing-s) 10px var(--wui-spacing-s);
    border-radius: var(--wui-border-radius-xxs);
    color: var(--wui-color-bg-100);
    position: fixed;
    top: var(--w3m-tooltip-top);
    left: var(--w3m-tooltip-left);
    transform: translate(calc(-50% + var(--w3m-tooltip-parent-width)), calc(-100% - 8px));
    max-width: calc(var(--w3m-modal-width) - var(--wui-spacing-xl));
    transition: opacity 0.2s var(--wui-ease-out-power-2);
    will-change: opacity;
  }

  :host([data-variant='shade']) > wui-flex {
    background-color: var(--wui-color-bg-150);
    border: 1px solid var(--wui-color-gray-glass-005);
  }

  :host([data-variant='shade']) > wui-flex > wui-text {
    color: var(--wui-color-fg-150);
  }

  :host([data-variant='fill']) > wui-flex {
    background-color: var(--wui-color-fg-100);
    border: none;
  }

  wui-icon {
    position: absolute;
    width: 12px !important;
    height: 4px !important;
    color: var(--wui-color-bg-150);
  }

  wui-icon[data-placement='top'] {
    bottom: 0px;
    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);
  }
`,nt=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nr=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.open=s.fw.state.open,this.message=s.fw.state.message,this.triggerRect=s.fw.state.triggerRect,this.variant=s.fw.state.variant,this.unsubscribe.push(s.fw.subscribe(e=>{this.open=e.open,this.message=e.message,this.triggerRect=e.triggerRect,this.variant=e.variant}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){this.dataset.variant=this.variant;let e=this.triggerRect.top,t=this.triggerRect.left;return this.style.cssText=`
    --w3m-tooltip-top: ${e}px;
    --w3m-tooltip-left: ${t}px;
    --w3m-tooltip-parent-width: ${this.triggerRect.width/2}px;
    --w3m-tooltip-display: ${this.open?"flex":"none"};
    --w3m-tooltip-opacity: ${this.open?1:0};
    `,(0,h.dy)`<wui-flex>
      <wui-icon data-placement="top" color="fg-100" size="inherit" name="cursor"></wui-icon>
      <wui-text color="inherit" variant="small-500">${this.message}</wui-text>
    </wui-flex>`}};nr.styles=[ne],nt([(0,f.SB)()],nr.prototype,"open",void 0),nt([(0,f.SB)()],nr.prototype,"message",void 0),nt([(0,f.SB)()],nr.prototype,"triggerRect",void 0),nt([(0,f.SB)()],nr.prototype,"variant",void 0),nr=nt([(0,l.customElement)("w3m-tooltip")],nr);var nn=(0,h.iv)`
  :host {
    width: 100%;
    display: block;
  }
`,ni=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let no=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.text="",this.open=s.fw.state.open,this.unsubscribe.push(s.RouterController.subscribeKey("view",()=>{s.fw.hide()}),s.IN.subscribeKey("open",e=>{e||s.fw.hide()}),s.fw.subscribeKey("open",e=>{this.open=e}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e()),s.fw.hide()}render(){return(0,h.dy)`
      <div
        @pointermove=${this.onMouseEnter.bind(this)}
        @pointerleave=${this.onMouseLeave.bind(this)}
      >
        ${this.renderChildren()}
      </div>
    `}renderChildren(){return(0,h.dy)`<slot></slot> `}onMouseEnter(){let e=this.getBoundingClientRect();this.open||s.fw.showTooltip({message:this.text,triggerRect:{width:e.width,height:e.height,left:e.left,top:e.top},variant:"shade"})}onMouseLeave(e){this.contains(e.relatedTarget)||s.fw.hide()}};no.styles=[nn],ni([(0,f.Cb)()],no.prototype,"text",void 0),ni([(0,f.SB)()],no.prototype,"open",void 0),no=ni([(0,l.customElement)("w3m-tooltip-trigger")],no);var na=(0,h.iv)`
  :host > wui-flex:first-child {
    margin-top: var(--wui-spacing-s);
  }
  wui-separator {
    margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-m)
      calc(var(--wui-spacing-m) * -1);
    width: calc(100% + var(--wui-spacing-s) * 2);
  }
`,ns=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nl=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?(0,h.dy)`
      <wui-flex
        class="container"
        flexDirection="column"
        gap="xs"
        .padding=${["0","0","xs","0"]}
        data-testid="w3m-social-login-widget"
      >
        ${this.topViewTemplate()}${this.bottomViewTemplate()}
      </wui-flex>
      ${this.separatorTemplate()}
    `:null}topViewTemplate(){return this.connector?.socials?.length?2===this.connector.socials.length?(0,h.dy)` <wui-flex gap="xs">
        ${this.connector.socials.slice(0,2).map(e=>(0,h.dy)`<wui-logo-select
              data-testid=${`social-selector-${e}`}
              @click=${()=>{this.onSocialClick(e)}}
              logo=${e}
            ></wui-logo-select>`)}
      </wui-flex>`:(0,h.dy)` <wui-list-social
      data-testid=${`social-selector-${this.connector?.socials?.[0]}`}
      @click=${()=>{this.onSocialClick(this.connector?.socials?.[0])}}
      logo=${(0,p.o)(this.connector.socials[0])}
      align="center"
      name=${`Continue with ${this.connector.socials[0]}`}
    ></wui-list-social>`:null}bottomViewTemplate(){return!this.connector?.socials?.length||this.connector?.socials.length<=2?null:this.connector?.socials.length>6?(0,h.dy)`<wui-flex gap="xs">
        ${this.connector.socials.slice(1,5).map(e=>(0,h.dy)`<wui-logo-select
              data-testid=${`social-selector-${e}`}
              @click=${()=>{this.onSocialClick(e)}}
              logo=${e}
            ></wui-logo-select>`)}
        <wui-logo-select logo="more" @click=${this.onMoreSocialsClick.bind(this)}></wui-logo-select>
      </wui-flex>`:(0,h.dy)`<wui-flex gap="xs">
      ${this.connector.socials.slice(1,this.connector.socials.length).map(e=>(0,h.dy)`<wui-logo-select
            data-testid=${`social-selector-${e}`}
            @click=${()=>{this.onSocialClick(e)}}
            logo=${e}
          ></wui-logo-select>`)}
    </wui-flex>`}separatorTemplate(){return this.connectors.find(e=>"WALLET_CONNECT"===e.type)?(0,h.dy)`<wui-separator text="or"></wui-separator>`:null}onMoreSocialsClick(){s.RouterController.push("ConnectSocials")}async onSocialClick(e){if(e&&(s.AccountController.setSocialProvider(e,s.RY.state.activeChain),s.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===a.XW.Farcaster){s.RouterController.push("ConnectingFarcaster");let e=s.ConnectorController.getAuthConnector();if(e&&!s.AccountController.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();s.AccountController.setFarcasterUrl(t,s.RY.state.activeChain)}catch(e){s.RouterController.goBack(),s.SnackController.showError(e)}}else{s.RouterController.push("ConnectingSocial");let t=s.ConnectorController.getAuthConnector();this.popupWindow=s.j1.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:r}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&r)s.AccountController.setSocialWindow(this.popupWindow,s.RY.state.activeChain),this.popupWindow.location.href=r;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),s.SnackController.showError("Something went wrong")}}}};nl.styles=na,ns([(0,f.SB)()],nl.prototype,"connectors",void 0),nl=ns([(0,l.customElement)("w3m-social-login-widget")],nl);let nc=class extends h.oi{render(){return(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        <w3m-connector-list></w3m-connector-list>
        <w3m-all-wallets-widget></w3m-all-wallets-widget>
      </wui-flex>
    `}};nc=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-wallet-login-list")],nc);var nu=(0,h.iv)`
  :host {
    margin-top: var(--wui-spacing-3xs);
  }
  wui-separator {
    margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
      calc(var(--wui-spacing-m) * -1);
    width: calc(100% + var(--wui-spacing-s) * 2);
  }
`,nd=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nh=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.connector=this.connectors.find(e=>"AUTH"===e.type),this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>{this.connectors=e,this.connector=this.connectors.find(e=>"AUTH"===e.type)}))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){return this.connector?.socials?(0,h.dy)` <wui-flex flexDirection="column" gap="xs">
      ${this.connector.socials.map(e=>(0,h.dy)`<wui-list-social
            @click=${()=>{this.onSocialClick(e)}}
            name=${e}
            logo=${e}
          ></wui-list-social>`)}
    </wui-flex>`:null}async onSocialClick(e){if(e&&(s.AccountController.setSocialProvider(e,s.RY.state.activeChain),s.Xs.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}})),e===a.XW.Farcaster){s.RouterController.push("ConnectingFarcaster");let e=s.ConnectorController.getAuthConnector();if(e&&!s.AccountController.state.farcasterUrl)try{let{url:t}=await e.provider.getFarcasterUri();s.AccountController.setFarcasterUrl(t,s.RY.state.activeChain)}catch(e){s.RouterController.goBack(),s.SnackController.showError(e)}}else{s.RouterController.push("ConnectingSocial");let t=s.ConnectorController.getAuthConnector();this.popupWindow=s.j1.returnOpenHref("","popupWindow","width=600,height=800,scrollbars=yes");try{if(t&&e){let{uri:r}=await t.provider.getSocialRedirectUri({provider:e});if(this.popupWindow&&r)s.AccountController.setSocialWindow(this.popupWindow,s.RY.state.activeChain),this.popupWindow.location.href=r;else throw this.popupWindow?.close(),Error("Something went wrong")}}catch(e){this.popupWindow?.close(),s.SnackController.showError("Something went wrong")}}}};nh.styles=nu,nd([(0,f.SB)()],nh.prototype,"connectors",void 0),nh=nd([(0,l.customElement)("w3m-social-login-list")],nh);var nf=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let np=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"ANNOUNCED"===e.type);return e?.length?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${e.map(e=>e.info?.rdns&&s.ApiController.state.excludedRDNS&&s.ApiController.state.excludedRDNS.includes(e?.info?.rdns)?null:(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getConnectorImage(e))}
              name=${e.name??"Unknown"}
              @click=${()=>this.onConnector(e)}
              tagVariant="success"
              tagLabel="installed"
              data-testid=${`wallet-selector-${e.id}`}
              .installed=${!0}
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?s.j1.isMobile()?s.RouterController.push("AllWallets"):s.RouterController.push("ConnectingWalletConnect"):s.RouterController.push("ConnectingExternal",{connector:e})}};nf([(0,f.SB)()],np.prototype,"connectors",void 0),np=nf([(0,l.customElement)("w3m-connect-announced-widget")],np);var ng=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nm=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{customWallets:e}=s.OptionsController.state;if(!e?.length)return this.style.cssText="display: none",null;let t=this.filterOutDuplicateWallets(e);return(0,h.dy)`<wui-flex flexDirection="column" gap="xs">
      ${t.map(e=>(0,h.dy)`
          <wui-list-wallet
            imageSrc=${(0,p.o)(s.fz.getWalletImage(e))}
            name=${e.name??"Unknown"}
            @click=${()=>this.onConnectWallet(e)}
            data-testid=${`wallet-selector-${e.id}`}
          >
          </wui-list-wallet>
        `)}
    </wui-flex>`}filterOutDuplicateWallets(e){let t=s.MO.getRecentWallets(),r=this.connectors.map(e=>e.info?.rdns).filter(Boolean),n=t.map(e=>e.rdns).filter(Boolean),i=r.concat(n);if(i.includes("io.metamask.mobile")&&s.j1.isMobile()){let e=i.indexOf("io.metamask.mobile");i[e]="io.metamask"}return e.filter(e=>!i.includes(String(e?.rdns)))}onConnectWallet(e){s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};ng([(0,f.SB)()],nm.prototype,"connectors",void 0),nm=ng([(0,l.customElement)("w3m-connect-custom-widget")],nm);let nv={filterOutDuplicatesByRDNS(e){let t=s.OptionsController.state.enableEIP6963?s.ConnectorController.state.connectors:[],r=s.MO.getRecentWallets(),n=t.map(e=>e.info?.rdns).filter(Boolean),i=r.map(e=>e.rdns).filter(Boolean),o=n.concat(i);if(o.includes("io.metamask.mobile")&&s.j1.isMobile()){let e=o.indexOf("io.metamask.mobile");o[e]="io.metamask"}return e.filter(e=>!o.includes(String(e?.rdns)))},filterOutDuplicatesByIds(e){let t=s.ConnectorController.state.connectors,r=s.MO.getRecentWallets(),n=t.map(e=>e.explorerId),i=r.map(e=>e.id),o=n.concat(i);return e.filter(e=>!o.includes(e?.id))},filterOutDuplicateWallets(e){let t=this.filterOutDuplicatesByRDNS(e);return this.filterOutDuplicatesByIds(t)}},nb=class extends h.oi{constructor(){super(...arguments),this.unsubscribe=[]}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{featured:e}=s.ApiController.state;if(!e.length)return this.style.cssText="display: none",null;let t=nv.filterOutDuplicateWallets(e);return(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${t.map(e=>(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getWalletImage(e))}
              name=${e.name??"Unknown"}
              @click=${()=>this.onConnectWallet(e)}
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `}onConnectWallet(e){let t=s.ConnectorController.getConnector(e.id,e.rdns);t?s.RouterController.push("ConnectingExternal",{connector:t}):s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nb=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connect-featured-widget")],nb);var ny=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nw=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"INJECTED"===e.type);return e?.length&&(1!==e.length||e[0]?.name!=="Browser Wallet"||s.j1.isMobile())?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${e.map(e=>s.j1.isMobile()||"Browser Wallet"!==e.name?s.ConnectionController.checkInstalled(void 0,e.chain)?e.info?.rdns&&s.ApiController.state.excludedRDNS&&s.ApiController.state.excludedRDNS.includes(e?.info?.rdns)?null:(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getConnectorImage(e))}
              .installed=${!0}
              name=${e.name??"Unknown"}
              tagVariant="success"
              tagLabel="installed"
              data-testid=${`wallet-selector-${e.id}`}
              @click=${()=>this.onConnector(e)}
            >
            </wui-list-wallet>
          `:(this.style.cssText="display: none",null):null)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnector(e){s.RY.setActiveConnector(e),s.RouterController.push("ConnectingExternal",{connector:e})}};ny([(0,f.SB)()],nw.prototype,"connectors",void 0),nw=ny([(0,l.customElement)("w3m-connect-injected-widget")],nw);var nx=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let n_=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"MULTI_CHAIN"===e.type&&"WalletConnect"!==e.name);return e?.length?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${e.map(e=>(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getConnectorImage(e))}
              .installed=${!0}
              name=${e.name??"Unknown"}
              tagVariant="shade"
              tagLabel="multichain"
              data-testid=${`wallet-selector-${e.id}`}
              @click=${()=>this.onConnector(e)}
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnector(e){s.RY.setActiveConnector(e),s.RouterController.push("ConnectingMultiChain")}};nx([(0,f.SB)()],n_.prototype,"connectors",void 0),n_=nx([(0,l.customElement)("w3m-connect-multi-chain-widget")],n_);var nC=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nA=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.filter(e=>"EXTERNAL"===e.type).filter(e=>"coinbaseWalletSDK"!==e.id);return e?.length?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${e.map(e=>(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getConnectorImage(e))}
              .installed=${!0}
              name=${e.name??"Unknown"}
              data-testid=${`wallet-selector-external-${e.id}`}
              @click=${()=>this.onConnector(e)}
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnector(e){s.RouterController.push("ConnectingExternal",{connector:e})}};nC([(0,f.SB)()],nA.prototype,"connectors",void 0),nA=nC([(0,l.customElement)("w3m-connect-external-widget")],nA);let nk=class extends h.oi{render(){let e=s.MO.getRecentWallets();return e?.length?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${e.map(e=>(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getWalletImage(e))}
              name=${e.name??"Unknown"}
              @click=${()=>this.onConnectWallet(e)}
              tagLabel="recent"
              tagVariant="shade"
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnectWallet(e){s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nk=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-connect-recent-widget")],nk);var nE=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nS=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(!this.connectors.find(e=>"WALLET_CONNECT"===e.type))return null;let{recommended:e}=s.ApiController.state,{customWallets:t,featuredWalletIds:r}=s.OptionsController.state,{connectors:n}=s.ConnectorController.state,i=s.MO.getRecentWallets(),o=n.filter(e=>"INJECTED"===e.type||"ANNOUNCED"===e.type).filter(e=>"Browser Wallet"!==e.name);if(r||t||!e.length)return this.style.cssText="display: none",null;let a=o.length+i.length,l=nv.filterOutDuplicateWallets(e).slice(0,Math.max(0,2-a));return l.length?(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        ${l.map(e=>(0,h.dy)`
            <wui-list-wallet
              imageSrc=${(0,p.o)(s.fz.getWalletImage(e))}
              name=${e?.name??"Unknown"}
              @click=${()=>this.onConnectWallet(e)}
            >
            </wui-list-wallet>
          `)}
      </wui-flex>
    `:(this.style.cssText="display: none",null)}onConnectWallet(e){let t=s.ConnectorController.getConnector(e.id,e.rdns);t?s.RouterController.push("ConnectingExternal",{connector:t}):s.RouterController.push("ConnectingWalletConnect",{wallet:e})}};nE([(0,f.SB)()],nS.prototype,"connectors",void 0),nS=nE([(0,l.customElement)("w3m-connect-recommended-widget")],nS);var nT=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nI=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){if(s.j1.isMobile())return this.style.cssText="display: none",null;let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type);return e?(0,h.dy)`
      <wui-list-wallet
        imageSrc=${(0,p.o)(s.fz.getConnectorImage(e))}
        name=${e.name??"Unknown"}
        @click=${()=>this.onConnector(e)}
        tagLabel="qr code"
        tagVariant="main"
        data-testid="wallet-selector-walletconnect"
      >
      </wui-list-wallet>
    `:(this.style.cssText="display: none",null)}onConnector(e){"WALLET_CONNECT"===e.type?s.j1.isMobile()?s.RouterController.push("AllWallets"):s.RouterController.push("ConnectingWalletConnect"):s.RouterController.push("ConnectingExternal",{connector:e})}};nT([(0,f.SB)()],nI.prototype,"connectors",void 0),nI=nT([(0,l.customElement)("w3m-connect-walletconnect-widget")],nI);var nP=(0,h.iv)`
  :host {
    margin-top: var(--wui-spacing-3xs);
  }
  wui-separator {
    margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
      calc(var(--wui-spacing-m) * -1);
    width: calc(100% + var(--wui-spacing-s) * 2);
  }
`,nO=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nR=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{custom:e,recent:t,announced:r,injected:n,multiChain:i,recommended:o,featured:a,external:s}=this.getConnectorsByType();return(0,h.dy)`
      <wui-flex flexDirection="column" gap="xs">
        <w3m-connect-walletconnect-widget></w3m-connect-walletconnect-widget>
        ${t.length?(0,h.dy)`<w3m-connect-recent-widget></w3m-connect-recent-widget>`:null}
        ${i.length?(0,h.dy)`<w3m-connect-multi-chain-widget></w3m-connect-multi-chain-widget>`:null}
        ${r.length?(0,h.dy)`<w3m-connect-announced-widget></w3m-connect-announced-widget>`:null}
        ${n.length?(0,h.dy)`<w3m-connect-injected-widget></w3m-connect-injected-widget>`:null}
        ${a.length?(0,h.dy)`<w3m-connect-featured-widget></w3m-connect-featured-widget>`:null}
        ${e?.length?(0,h.dy)`<w3m-connect-custom-widget></w3m-connect-custom-widget>`:null}
        ${s.length?(0,h.dy)`<w3m-connect-external-widget></w3m-connect-external-widget>`:null}
        ${o.length?(0,h.dy)`<w3m-connect-recommended-widget></w3m-connect-recommended-widget>`:null}
      </wui-flex>
    `}getConnectorsByType(){let{featured:e,recommended:t}=s.ApiController.state,{customWallets:r}=s.OptionsController.state,n=s.MO.getRecentWallets(),i=nv.filterOutDuplicateWallets(t),o=nv.filterOutDuplicateWallets(e),a=this.connectors.filter(e=>"MULTI_CHAIN"===e.type),l=this.connectors.filter(e=>"ANNOUNCED"===e.type),u=this.connectors.filter(e=>"INJECTED"===e.type),d=this.connectors.filter(e=>"EXTERNAL"===e.type),h=s.RY.state.activeChain!==c.bq.CHAIN.EVM||s.OptionsController.state.enableEIP6963;return{custom:r,recent:n,external:d,multiChain:a,announced:h?l:[],injected:h?u:[],recommended:i,featured:o}}};nR.styles=nP,nO([(0,f.SB)()],nR.prototype,"connectors",void 0),nR=nO([(0,l.customElement)("w3m-connector-list")],nR);var nM=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a};let nN=class extends h.oi{constructor(){super(),this.unsubscribe=[],this.connectors=s.ConnectorController.state.connectors,this.count=s.ApiController.state.count,this.unsubscribe.push(s.ConnectorController.subscribeKey("connectors",e=>this.connectors=e),s.ApiController.subscribeKey("count",e=>this.count=e))}disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let e=this.connectors.find(e=>"WALLET_CONNECT"===e.type),{allWallets:t}=s.OptionsController.state;if(!e||"HIDE"===t||"ONLY_MOBILE"===t&&!s.j1.isMobile())return null;let r=s.ApiController.state.featured.length,n=this.count+r,i=n<10?n:10*Math.floor(n/10),o=i<n?`${i}+`:`${i}`;return(0,h.dy)`
      <wui-list-wallet
        name="All Wallets"
        walletIcon="allWallets"
        showAllWallets
        @click=${this.onAllWallets.bind(this)}
        tagLabel=${o}
        tagVariant="shade"
        data-testid="all-wallets"
      ></wui-list-wallet>
    `}onAllWallets(){s.Xs.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),s.RouterController.push("AllWallets")}};nM([(0,f.SB)()],nN.prototype,"connectors",void 0),nM([(0,f.SB)()],nN.prototype,"count",void 0),nN=nM([(0,l.customElement)("w3m-all-wallets-widget")],nN);let nj=class extends h.oi{constructor(){super(...arguments),this.socialProvider=s.MO.getConnectedSocialProvider(),this.socialUsername=s.MO.getConnectedSocialUsername()}render(){let e=s.MO.getConnectedConnector(),t=s.ConnectorController.getAuthConnector();if(!t||"AUTH"!==e)return this.style.cssText="display: none",null;let r=t.provider.getEmail()??"";return(0,h.dy)`
      <wui-list-item
        variant="icon"
        iconVariant="overlay"
        icon=${this.socialProvider??"mail"}
        iconSize=${this.socialProvider?"xxl":"sm"}
        data-testid="w3m-account-email-update"
        ?chevron=${!this.socialProvider}
        @click=${()=>{this.onGoToUpdateEmail(r,this.socialProvider)}}
      >
        <wui-text variant="paragraph-500" color="fg-100">${this.getAuthName(r)}</wui-text>
      </wui-list-item>
    `}onGoToUpdateEmail(e,t){t||s.RouterController.push("UpdateEmailWallet",{email:e})}getAuthName(e){return this.socialUsername?"discord"===this.socialProvider&&this.socialUsername.endsWith("0")?this.socialUsername.slice(0,-1):this.socialUsername:e.length>30?`${e.slice(0,-3)}...`:e}};nj=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}([(0,l.customElement)("w3m-account-auth-button")],nj);var nD=r(10667),nB=r(67294);function nL(){if(!n)throw Error('Please call "createWeb3Modal" before using "useWeb3ModalTheme" hook');let[e,t]=(0,nB.useState)(n.getThemeMode()),[r,i]=(0,nB.useState)(n.getThemeVariables());return(0,nB.useEffect)(()=>{let e=n?.subscribeTheme(e=>{t(e.themeMode),i(e.themeVariables)});return()=>{e?.()}},[]),{themeMode:e,themeVariables:r,setThemeMode:function(e){e&&n?.setThemeMode(e)},setThemeVariables:function(e){e&&n?.setThemeVariables(e)}}}function n$(){if(!n)throw Error('Please call "createWeb3Modal" before using "useWeb3Modal" hook');return{open:async function(e){await n?.open(e)},close:async function(){await n?.close()}}}function nU(){if(!n)throw Error('Please call "createWeb3Modal" before using "useWeb3ModalState" hook');let[e,t]=(0,nB.useState)(n.getState());return(0,nB.useEffect)(()=>{let e=n?.subscribeState(e=>{t({...e})});return()=>{e?.()}},[]),e}function nz(e){return o=new nD.WM({wagmiConfig:e.wagmiConfig,siweConfig:e.siweConfig,defaultChain:e.defaultChain}),n=i=new d({...e,defaultChain:o.defaultChain,adapters:[o],sdkType:"w3m",sdkVersion:`react-wagmi-${a.bq.VERSION}`}),i}},35355:function(e,t,r){"use strict";let n;r.d(t,{$D:function(){return rv},Sd:function(){return r_},y_:function(){return g}}),r(74146);var i,o,a,s,l,c,u,d=r(34155);let h=d.env.NEXT_PUBLIC_SECURE_SITE_SDK_URL||"https://secure.walletconnect.org/sdk",f=d.env.NEXT_PUBLIC_DEFAULT_LOG_LEVEL||"error",p={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",PREFERRED_ACCOUNT_TYPE:"PREFERRED_ACCOUNT_TYPE",SMART_ACCOUNT_ENABLED:"SMART_ACCOUNT_ENABLED",SMART_ACCOUNT_ENABLED_NETWORKS:"SMART_ACCOUNT_ENABLED_NETWORKS",SOCIAL_USERNAME:"SOCIAL_USERNAME",SOCIAL:"@w3m/connected_social",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_CONNECT_SOCIAL:"@w3m-app/CONNECT_SOCIAL",APP_GET_SOCIAL_REDIRECT_URI:"@w3m-app/GET_SOCIAL_REDIRECT_URI",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_UPDATE_EMAIL_PRIMARY_OTP:"@w3m-app/UPDATE_EMAIL_PRIMARY_OTP",APP_UPDATE_EMAIL_SECONDARY_OTP:"@w3m-app/UPDATE_EMAIL_SECONDARY_OTP",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",APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS:"@w3m-app/GET_SMART_ACCOUNT_ENABLED_NETWORKS",APP_INIT_SMART_ACCOUNT:"@w3m-app/INIT_SMART_ACCOUNT",APP_SET_PREFERRED_ACCOUNT:"@w3m-app/SET_PREFERRED_ACCOUNT",APP_CONNECT_FARCASTER:"@w3m-app/CONNECT_FARCASTER",APP_GET_FARCASTER_URI:"@w3m-app/GET_FARCASTER_URI",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_CONNECT_SOCIAL_SUCCESS:"@w3m-frame/CONNECT_SOCIAL_SUCCESS",FRAME_CONNECT_SOCIAL_ERROR:"@w3m-frame/CONNECT_SOCIAL_ERROR",FRAME_CONNECT_FARCASTER_SUCCESS:"@w3m-frame/CONNECT_FARCASTER_SUCCESS",FRAME_CONNECT_FARCASTER_ERROR:"@w3m-frame/CONNECT_FARCASTER_ERROR",FRAME_GET_FARCASTER_URI_SUCCESS:"@w3m-frame/GET_FARCASTER_URI_SUCCESS",FRAME_GET_FARCASTER_URI_ERROR:"@w3m-frame/GET_FARCASTER_URI_ERROR",FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_SUCCESS",FRAME_GET_SOCIAL_REDIRECT_URI_ERROR:"@w3m-frame/GET_SOCIAL_REDIRECT_URI_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_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_PRIMARY_OTP_ERROR",FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_SUCCESS",FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR:"@w3m-frame/UPDATE_EMAIL_SECONDARY_OTP_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",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS",FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR:"@w3m-frame/GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR",FRAME_INIT_SMART_ACCOUNT_SUCCESS:"@w3m-frame/INIT_SMART_ACCOUNT_SUCCESS",FRAME_INIT_SMART_ACCOUNT_ERROR:"@w3m-frame/INIT_SMART_ACCOUNT_ERROR",FRAME_SET_PREFERRED_ACCOUNT_SUCCESS:"@w3m-frame/SET_PREFERRED_ACCOUNT_SUCCESS",FRAME_SET_PREFERRED_ACCOUNT_ERROR:"@w3m-frame/SET_PREFERRED_ACCOUNT_ERROR",RPC_RESPONSE_TYPE_ERROR:"RPC_RESPONSE_ERROR",RPC_RESPONSE_TYPE_TX:"RPC_RESPONSE_TRANSACTION_HASH",RPC_RESPONSE_TYPE_OBJECT:"RPC_RESPONSE_OBJECT"},g={SAFE_RPC_METHODS:["eth_accounts","eth_blockNumber","eth_call","eth_chainId","eth_estimateGas","eth_feeHistory","eth_gasPrice","eth_getAccount","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockReceipts","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getProof","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_maxPriorityFeePerGas","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_sendRawTransaction","eth_syncing","eth_uninstallFilter","wallet_getCapabilities","wallet_getCallsStatus","eth_getUserOperationReceipt","eth_estimateUserOperationGas","eth_getUserOperationByHash","eth_supportedEntryPoints"],NOT_SAFE_RPC_METHODS:["personal_sign","eth_signTypedData_v4","eth_sendTransaction","solana_signMessage","solana_signTransaction","solana_signAllTransactions","solana_signAndSendTransaction","wallet_sendCalls","wallet_grantPermissions","eth_sendUserOperation"],GET_CHAIN_ID:"eth_chainId",RPC_METHOD_NOT_ALLOWED_MESSAGE:"Requested RPC call is not allowed",RPC_METHOD_NOT_ALLOWED_UI_MESSAGE:"Action not allowed",ACCOUNT_TYPES:{EOA:"eoa",SMART_ACCOUNT:"smartAccount"}};(i=s||(s={})).assertEqual=e=>e,i.assertIs=function(e){},i.assertNever=function(e){throw Error()},i.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},i.getValidEnumValues=e=>{let t=i.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return i.objectValues(r)},i.objectValues=e=>i.objectKeys(e).map(function(t){return e[t]}),i.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},i.find=(e,t)=>{for(let r of e)if(t(r))return r},i.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,i.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},i.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(l||(l={})).mergeShapes=(e,t)=>({...e,...t});let m=s.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),v=e=>{switch(typeof e){case"undefined":return m.undefined;case"string":return m.string;case"number":return isNaN(e)?m.nan:m.number;case"boolean":return m.boolean;case"function":return m.function;case"bigint":return m.bigint;case"symbol":return m.symbol;case"object":if(Array.isArray(e))return m.array;if(null===e)return m.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return m.promise;if("undefined"!=typeof Map&&e instanceof Map)return m.map;if("undefined"!=typeof Set&&e instanceof Set)return m.set;if("undefined"!=typeof Date&&e instanceof Date)return m.date;return m.object;default:return m.unknown}},b=s.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 y extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}toString(){return this.message}get message(){return JSON.stringify(this.issues,s.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}y.create=e=>new y(e);let w=(e,t)=>{let r;switch(e.code){case b.invalid_type:r=e.received===m.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,s.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:r=`Unrecognized key(s) in object: ${s.joinValues(e.keys,", ")}`;break;case b.invalid_union:r="Invalid input";break;case b.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${s.joinValues(e.options)}`;break;case b.invalid_enum_value:r=`Invalid enum value. Expected ${s.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:r="Invalid function arguments";break;case b.invalid_return_type:r="Invalid function return type";break;case b.invalid_date:r="Invalid date";break;case b.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:s.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case b.too_small:r="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 b.too_big:r="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 b.custom:r="Invalid input";break;case b.invalid_intersection_types:r="Intersection results could not be merged";break;case b.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:r="Number must be finite";break;default:r=t.defaultError,s.assertNever(e)}return{message:r}},x=w;function _(){return x}let C=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,o=[...r,...i.path||[]],a={...i,path:o},s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(a,{data:t,defaultError:s}).message;return{...i,path:o,message:i.message||s}};function A(e,t){let r=C({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,_(),w].filter(e=>!!e)});e.common.issues.push(r)}class k{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return E;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return k.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return E;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let E=Object.freeze({status:"aborted"}),S=e=>({status:"dirty",value:e}),T=e=>({status:"valid",value:e}),I=e=>"aborted"===e.status,P=e=>"dirty"===e.status,O=e=>"valid"===e.status,R=e=>"undefined"!=typeof Promise&&e instanceof Promise;(o=c||(c={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},o.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class M{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}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}}let N=(e,t)=>{if(O(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new y(e.common.issues);return this._error=t,this._error}}};function j(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=n?n:t.defaultError}:{message:null!=r?r:t.defaultError},description:i}}class D{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 v(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new k,ctx:{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(R(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)},i=this._parseSync({data:e,path:n.path,parent:n});return N(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)},n=this._parse({data:e,path:r.path,parent:r});return N(r,await (R(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),o=()=>n.addIssue({code:b.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(o(),!1)):!!i||(o(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ew({schema:this,typeName:u.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ex.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return en.create(this,this._def)}promise(){return ey.create(this,this._def)}or(e){return eo.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new ew({...j(this._def),schema:this,typeName:u.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eC({...j(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:u.ZodDefault})}brand(){return new eS({typeName:u.ZodBranded,type:this,...j(this._def)})}catch(e){return new eA({...j(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:u.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return eI.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let B=/^c[^\s-]{8,}$/i,L=/^[a-z][a-z0-9]*$/,$=/^[0-9A-HJKMNP-TV-Z]{26}$/,U=/^[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,z=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,F=/^(((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}))$/,q=/^(([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})))$/,H=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class W extends D{_parse(e){let t;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==m.string){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.string,received:t.parsedType}),E}let r=new k;for(let a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if("max"===a.kind)e.data.length>a.value&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if("length"===a.kind){let n=e.data.length>a.value,i=e.data.length<a.value;(n||i)&&(t=this._getOrReturnCtx(e,t),n?A(t,{code:b.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):i&&A(t,{code:b.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if("email"===a.kind)z.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"email",code:b.invalid_string,message:a.message}),r.dirty());else if("emoji"===a.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"emoji",code:b.invalid_string,message:a.message}),r.dirty());else if("uuid"===a.kind)U.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:b.invalid_string,message:a.message}),r.dirty());else if("cuid"===a.kind)B.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:b.invalid_string,message:a.message}),r.dirty());else if("cuid2"===a.kind)L.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"cuid2",code:b.invalid_string,message:a.message}),r.dirty());else if("ulid"===a.kind)$.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"ulid",code:b.invalid_string,message:a.message}),r.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(n){A(t=this._getOrReturnCtx(e,t),{validation:"url",code:b.invalid_string,message:a.message}),r.dirty()}else if("regex"===a.kind)a.regex.lastIndex=0,a.regex.test(e.data)||(A(t=this._getOrReturnCtx(e,t),{validation:"regex",code:b.invalid_string,message:a.message}),r.dirty());else if("trim"===a.kind)e.data=e.data.trim();else if("includes"===a.kind)e.data.includes(a.value,a.position)||(A(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty());else if("toLowerCase"===a.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===a.kind)e.data=e.data.toUpperCase();else if("startsWith"===a.kind)e.data.startsWith(a.value)||(A(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty());else if("endsWith"===a.kind)e.data.endsWith(a.value)||(A(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty());else if("datetime"===a.kind)H(a).test(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:b.invalid_string,validation:"datetime",message:a.message}),r.dirty());else if("ip"===a.kind){var i,o;i=e.data,("v4"===(o=a.version)||!o)&&F.test(i)||("v6"===o||!o)&&q.test(i)||(A(t=this._getOrReturnCtx(e,t),{validation:"ip",code:b.invalid_string,message:a.message}),r.dirty())}else s.assertNever(a);return{status:r.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:b.invalid_string,...c.errToObj(r)})}_addCheck(e){return new W({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...c.errToObj(e)})}url(e){return this._addCheck({kind:"url",...c.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...c.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...c.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...c.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...c.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...c.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...c.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:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...c.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...c.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...c.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...c.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...c.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...c.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...c.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...c.errToObj(t)})}nonempty(e){return this.min(1,c.errToObj(e))}trim(){return new W({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new W({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new W({...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(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}W.create=e=>{var t;return new W({checks:[],typeName:u.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...j(e)})};class V extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==m.number){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.number,received:t.parsedType}),E}let r=new k;for(let n of this._def.checks)"int"===n.kind?s.isInteger(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:b.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(A(t=this._getOrReturnCtx(e,t),{code:b.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:b.not_finite,message:n.message}),r.dirty()):s.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,c.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.toString(t))}setLimit(e,t,r,n){return new V({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.toString(n)}]})}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:c.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:c.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:c.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:c.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:c.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let 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&&s.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}V.create=e=>new V({checks:[],typeName:u.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...j(e)});class Z extends D{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==m.bigint){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.bigint,received:t.parsedType}),E}let r=new k;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(A(t=this._getOrReturnCtx(e,t),{code:b.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):s.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,c.toString(t))}gt(e,t){return this.setLimit("min",e,!1,c.toString(t))}lte(e,t){return this.setLimit("max",e,!0,c.toString(t))}lt(e,t){return this.setLimit("max",e,!1,c.toString(t))}setLimit(e,t,r,n){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:c.toString(n)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:c.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:c.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:c.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:c.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:c.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Z.create=e=>{var t;return new Z({checks:[],typeName:u.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...j(e)})};class G extends D{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==m.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.boolean,received:t.parsedType}),E}return T(e.data)}}G.create=e=>new G({typeName:u.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...j(e)});class K extends D{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==m.date){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.date,received:t.parsedType}),E}if(isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:b.invalid_date}),E;let r=new k;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(A(t=this._getOrReturnCtx(e,t),{code:b.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):s.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new K({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:c.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:c.toString(t)})}get minDate(){let e=null;for(let 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(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}K.create=e=>new K({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:u.ZodDate,...j(e)});class Y extends D{_parse(e){if(this._getType(e)!==m.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.symbol,received:t.parsedType}),E}return T(e.data)}}Y.create=e=>new Y({typeName:u.ZodSymbol,...j(e)});class Q extends D{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.undefined,received:t.parsedType}),E}return T(e.data)}}Q.create=e=>new Q({typeName:u.ZodUndefined,...j(e)});class J extends D{_parse(e){if(this._getType(e)!==m.null){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.null,received:t.parsedType}),E}return T(e.data)}}J.create=e=>new J({typeName:u.ZodNull,...j(e)});class X extends D{constructor(){super(...arguments),this._any=!0}_parse(e){return T(e.data)}}X.create=e=>new X({typeName:u.ZodAny,...j(e)});class ee extends D{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T(e.data)}}ee.create=e=>new ee({typeName:u.ZodUnknown,...j(e)});class et extends D{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.never,received:t.parsedType}),E}}et.create=e=>new et({typeName:u.ZodNever,...j(e)});class er extends D{_parse(e){if(this._getType(e)!==m.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.void,received:t.parsedType}),E}return T(e.data)}}er.create=e=>new er({typeName:u.ZodVoid,...j(e)});class en extends D{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==m.array)return A(t,{code:b.invalid_type,expected:m.array,received:t.parsedType}),E;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(A(t,{code:e?b.too_big:b.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(A(t,{code:b.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(A(t,{code:b.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new M(t,e,t.path,r)))).then(e=>k.mergeArray(r,e));let i=[...t.data].map((e,r)=>n.type._parseSync(new M(t,e,t.path,r)));return k.mergeArray(r,i)}get element(){return this._def.type}min(e,t){return new en({...this._def,minLength:{value:e,message:c.toString(t)}})}max(e,t){return new en({...this._def,maxLength:{value:e,message:c.toString(t)}})}length(e,t){return new en({...this._def,exactLength:{value:e,message:c.toString(t)}})}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({type:e,minLength:null,maxLength:null,exactLength:null,typeName:u.ZodArray,...j(t)});class ei extends D{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=s.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==m.object){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.object,received:t.parsedType}),E}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in r.data)i.includes(e)||o.push(e);let a=[];for(let e of i){let t=n[e],i=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new M(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(A(r,{code:b.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new M(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>k.mergeObjectSync(t,e)):k.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return c.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,o,a;let s=null!==(o=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==o?o:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=c.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:u.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return s.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return s.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ex.create(e(i))}return new ei({...t._def,shape:()=>r})}return t instanceof en?new en({...t._def,type:e(t.element)}):t instanceof ex?ex.create(e(t.unwrap())):t instanceof e_?e_.create(e(t.unwrap())):t instanceof ec?ec.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return s.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return s.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ex;)e=e._def.innerType;t[r]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return em(s.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:u.ZodObject,...j(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:u.ZodObject,...j(t)}),ei.lazycreate=(e,t)=>new ei({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:u.ZodObject,...j(t)});class eo extends D{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new y(e.ctx.common.issues));return A(t,{code:b.invalid_union,unionErrors:r}),E});{let e;let n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},o=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new y(e));return A(t,{code:b.invalid_union,unionErrors:i}),E}}get options(){return this._def.options}}eo.create=(e,t)=>new eo({options:e,typeName:u.ZodUnion,...j(t)});let ea=e=>{if(e instanceof ep)return ea(e.schema);if(e instanceof ew)return ea(e.innerType());if(e instanceof eg)return[e.value];if(e instanceof ev)return e.options;if(e instanceof eb)return Object.keys(e.enum);if(e instanceof eC)return ea(e._def.innerType);if(e instanceof Q)return[void 0];else if(e instanceof J)return[null];else return null};class es extends D{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.object)return A(t,{code:b.invalid_type,expected:m.object,received:t.parsedType}),E;let r=this.discriminator,n=t.data[r],i=this.optionsMap.get(n);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}):(A(t,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),E)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=ea(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new es({typeName:u.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...j(r)})}}class el extends D{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(I(e)||I(n))return E;let i=function e(t,r){let n=v(t),i=v(r);if(t===r)return{valid:!0,data:t};if(n===m.object&&i===m.object){let n=s.objectKeys(r),i=s.objectKeys(t).filter(e=>-1!==n.indexOf(e)),o={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};o[n]=i.data}return{valid:!0,data:o}}if(n===m.array&&i===m.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let o=e(t[i],r[i]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===m.date&&i===m.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return i.valid?((P(e)||P(n))&&t.dirty(),{status:t.value,value:i.data}):(A(r,{code:b.invalid_intersection_types}),E)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}el.create=(e,t,r)=>new el({left:e,right:t,typeName:u.ZodIntersection,...j(r)});class ec extends D{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.array)return A(r,{code:b.invalid_type,expected:m.array,received:r.parsedType}),E;if(r.data.length<this._def.items.length)return A(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),E;!this._def.rest&&r.data.length>this._def.items.length&&(A(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new M(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>k.mergeArray(t,e)):k.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ec({...this._def,rest:e})}}ec.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ec({items:e,typeName:u.ZodTuple,rest:null,...j(t)})};class eu extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.object)return A(r,{code:b.invalid_type,expected:m.object,received:r.parsedType}),E;let n=[],i=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:i._parse(new M(r,e,r.path,e)),value:o._parse(new M(r,r.data[e],r.path,e))});return r.common.async?k.mergeObjectAsync(t,n):k.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new eu(t instanceof D?{keyType:e,valueType:t,typeName:u.ZodRecord,...j(r)}:{keyType:W.create(),valueType:e,typeName:u.ZodRecord,...j(t)})}}class ed extends D{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.map)return A(r,{code:b.invalid_type,expected:m.map,received:r.parsedType}),E;let n=this._def.keyType,i=this._def.valueType,o=[...r.data.entries()].map(([e,t],o)=>({key:n._parse(new M(r,e,r.path,[o,"key"])),value:i._parse(new M(r,t,r.path,[o,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return E;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return E;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ed.create=(e,t,r)=>new ed({valueType:t,keyType:e,typeName:u.ZodMap,...j(r)});class eh extends D{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==m.set)return A(r,{code:b.invalid_type,expected:m.set,received:r.parsedType}),E;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(A(r,{code:b.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(A(r,{code:b.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let i=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return E;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>i._parse(new M(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>o(e)):o(a)}min(e,t){return new eh({...this._def,minSize:{value:e,message:c.toString(t)}})}max(e,t){return new eh({...this._def,maxSize:{value:e,message:c.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eh.create=(e,t)=>new eh({valueType:e,minSize:null,maxSize:null,typeName:u.ZodSet,...j(t)});class ef extends D{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==m.function)return A(t,{code:b.invalid_type,expected:m.function,received:t.parsedType}),E;function r(e,r){return C({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter(e=>!!e),issueData:{code:b.invalid_arguments,argumentsError:r}})}function n(e,r){return C({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,_(),w].filter(e=>!!e),issueData:{code:b.invalid_return_type,returnTypeError:r}})}let i={errorMap:t.common.contextualErrorMap},o=t.data;if(this._def.returns instanceof ey){let e=this;return T(async function(...t){let a=new y([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(o,this,s);return await e._def.returns._def.type.parseAsync(l,i).catch(e=>{throw a.addIssue(n(l,e)),a})})}{let e=this;return T(function(...t){let a=e._def.args.safeParse(t,i);if(!a.success)throw new y([r(t,a.error)]);let s=Reflect.apply(o,this,a.data),l=e._def.returns.safeParse(s,i);if(!l.success)throw new y([n(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ef({...this._def,args:ec.create(e).rest(ee.create())})}returns(e){return new ef({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new ef({args:e||ec.create([]).rest(ee.create()),returns:t||ee.create(),typeName:u.ZodFunction,...j(r)})}}class ep extends D{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>new ep({getter:e,typeName:u.ZodLazy,...j(t)});class eg extends D{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:b.invalid_literal,expected:this._def.value}),E}return{status:"valid",value:e.data}}get value(){return this._def.value}}function em(e,t){return new ev({values:e,typeName:u.ZodEnum,...j(t)})}eg.create=(e,t)=>new eg({value:e,typeName:u.ZodLiteral,...j(t)});class ev extends D{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return A(t,{expected:s.joinValues(r),received:t.parsedType,code:b.invalid_type}),E}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return A(t,{received:t.data,code:b.invalid_enum_value,options:r}),E}return T(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return ev.create(e)}exclude(e){return ev.create(this.options.filter(t=>!e.includes(t)))}}ev.create=em;class eb extends D{_parse(e){let t=s.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==m.string&&r.parsedType!==m.number){let e=s.objectValues(t);return A(r,{expected:s.joinValues(e),received:r.parsedType,code:b.invalid_type}),E}if(-1===t.indexOf(e.data)){let e=s.objectValues(t);return A(r,{received:r.data,code:b.invalid_enum_value,options:e}),E}return T(e.data)}get enum(){return this._def.values}}eb.create=(e,t)=>new eb({values:e,typeName:u.ZodNativeEnum,...j(t)});class ey extends D{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==m.promise&&!1===t.common.async?(A(t,{code:b.invalid_type,expected:m.promise,received:t.parsedType}),E):T((t.parsedType===m.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ey.create=(e,t)=>new ey({type:e,typeName:u.ZodPromise,...j(t)});class ew extends D{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===u.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{A(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);return r.common.issues.length?{status:"dirty",value:r.data}:r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?E:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?E:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>O(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!O(e))return e;let o=n.transform(e.value,i);if(o instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}}s.assertNever(n)}}ew.create=(e,t,r)=>new ew({schema:e,typeName:u.ZodEffects,effect:t,...j(r)}),ew.createWithPreprocess=(e,t,r)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:u.ZodEffects,...j(r)});class ex extends D{_parse(e){return this._getType(e)===m.undefined?T(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>new ex({innerType:e,typeName:u.ZodOptional,...j(t)});class e_ extends D{_parse(e){return this._getType(e)===m.null?T(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:u.ZodNullable,...j(t)});class eC extends D{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===m.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eC.create=(e,t)=>new eC({innerType:e,typeName:u.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...j(t)});class eA extends D{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return R(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new y(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new y(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eA.create=(e,t)=>new eA({innerType:e,typeName:u.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...j(t)});class ek extends D{_parse(e){if(this._getType(e)!==m.nan){let t=this._getOrReturnCtx(e);return A(t,{code:b.invalid_type,expected:m.nan,received:t.parsedType}),E}return{status:"valid",value:e.data}}}ek.create=e=>new ek({typeName:u.ZodNaN,...j(e)});let eE=Symbol("zod_brand");class eS extends D{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends D{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),S(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?E:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:u.ZodPipeline})}}class eI extends D{_parse(e){let t=this._def.innerType._parse(e);return O(t)&&(t.value=Object.freeze(t.value)),t}}eI.create=(e,t)=>new eI({innerType:e,typeName:u.ZodReadonly,...j(t)});let eP=(e,t={},r)=>e?X.create().superRefine((n,i)=>{var o,a;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,s=null===(a=null!==(o=e.fatal)&&void 0!==o?o:r)||void 0===a||a;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:s})}}):X.create(),eO={object:ei.lazycreate};(a=u||(u={})).ZodString="ZodString",a.ZodNumber="ZodNumber",a.ZodNaN="ZodNaN",a.ZodBigInt="ZodBigInt",a.ZodBoolean="ZodBoolean",a.ZodDate="ZodDate",a.ZodSymbol="ZodSymbol",a.ZodUndefined="ZodUndefined",a.ZodNull="ZodNull",a.ZodAny="ZodAny",a.ZodUnknown="ZodUnknown",a.ZodNever="ZodNever",a.ZodVoid="ZodVoid",a.ZodArray="ZodArray",a.ZodObject="ZodObject",a.ZodUnion="ZodUnion",a.ZodDiscriminatedUnion="ZodDiscriminatedUnion",a.ZodIntersection="ZodIntersection",a.ZodTuple="ZodTuple",a.ZodRecord="ZodRecord",a.ZodMap="ZodMap",a.ZodSet="ZodSet",a.ZodFunction="ZodFunction",a.ZodLazy="ZodLazy",a.ZodLiteral="ZodLiteral",a.ZodEnum="ZodEnum",a.ZodEffects="ZodEffects",a.ZodNativeEnum="ZodNativeEnum",a.ZodOptional="ZodOptional",a.ZodNullable="ZodNullable",a.ZodDefault="ZodDefault",a.ZodCatch="ZodCatch",a.ZodPromise="ZodPromise",a.ZodBranded="ZodBranded",a.ZodPipeline="ZodPipeline",a.ZodReadonly="ZodReadonly";let eR=W.create,eM=V.create,eN=ek.create,ej=Z.create,eD=G.create,eB=K.create,eL=Y.create,e$=Q.create,eU=J.create,ez=X.create,eF=ee.create,eq=et.create,eH=er.create,eW=en.create,eV=ei.create,eZ=ei.strictCreate,eG=eo.create,eK=es.create,eY=el.create,eQ=ec.create,eJ=eu.create,eX=ed.create,e0=eh.create,e1=ef.create,e2=ep.create,e3=eg.create,e5=ev.create,e6=eb.create,e4=ey.create,e8=ew.create,e9=ex.create,e7=e_.create,te=ew.createWithPreprocess,tt=eT.create;var tr=Object.freeze({__proto__:null,defaultErrorMap:w,setErrorMap:function(e){x=e},getErrorMap:_,makeIssue:C,EMPTY_PATH:[],addIssueToContext:A,ParseStatus:k,INVALID:E,DIRTY:S,OK:T,isAborted:I,isDirty:P,isValid:O,isAsync:R,get util(){return s},get objectUtil(){return l},ZodParsedType:m,getParsedType:v,ZodType:D,ZodString:W,ZodNumber:V,ZodBigInt:Z,ZodBoolean:G,ZodDate:K,ZodSymbol:Y,ZodUndefined:Q,ZodNull:J,ZodAny:X,ZodUnknown:ee,ZodNever:et,ZodVoid:er,ZodArray:en,ZodObject:ei,ZodUnion:eo,ZodDiscriminatedUnion:es,ZodIntersection:el,ZodTuple:ec,ZodRecord:eu,ZodMap:ed,ZodSet:eh,ZodFunction:ef,ZodLazy:ep,ZodLiteral:eg,ZodEnum:ev,ZodNativeEnum:eb,ZodPromise:ey,ZodEffects:ew,ZodTransformer:ew,ZodOptional:ex,ZodNullable:e_,ZodDefault:eC,ZodCatch:eA,ZodNaN:ek,BRAND:eE,ZodBranded:eS,ZodPipeline:eT,ZodReadonly:eI,custom:eP,Schema:D,ZodSchema:D,late:eO,get ZodFirstPartyTypeKind(){return u},coerce:{string:e=>W.create({...e,coerce:!0}),number:e=>V.create({...e,coerce:!0}),boolean:e=>G.create({...e,coerce:!0}),bigint:e=>Z.create({...e,coerce:!0}),date:e=>K.create({...e,coerce:!0})},any:ez,array:eW,bigint:ej,boolean:eD,date:eB,discriminatedUnion:eK,effect:e8,enum:e5,function:e1,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eP(t=>t instanceof e,t),intersection:eY,lazy:e2,literal:e3,map:eX,nan:eN,nativeEnum:e6,never:eq,null:eU,nullable:e7,number:eM,object:eV,oboolean:()=>eD().optional(),onumber:()=>eM().optional(),optional:e9,ostring:()=>eR().optional(),pipeline:tt,preprocess:te,promise:e4,record:eJ,set:e0,strictObject:eZ,string:eR,symbol:eL,transformer:e8,tuple:eQ,undefined:e$,union:eG,unknown:eF,void:eH,NEVER:E,ZodIssueCode:b,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:y});let tn=tr.object({message:tr.string()});function ti(e){return tr.literal(p[e])}tr.object({accessList:tr.array(tr.string()),blockHash:tr.string().nullable(),blockNumber:tr.string().nullable(),chainId:tr.string().or(tr.number()),from:tr.string(),gas:tr.string(),hash:tr.string(),input:tr.string().nullable(),maxFeePerGas:tr.string(),maxPriorityFeePerGas:tr.string(),nonce:tr.string(),r:tr.string(),s:tr.string(),to:tr.string(),transactionIndex:tr.string().nullable(),type:tr.string(),v:tr.string(),value:tr.string()});let to=tr.object({chainId:tr.string().or(tr.number())}),ta=tr.object({email:tr.string().email()}),ts=tr.object({otp:tr.string()}),tl=tr.object({uri:tr.string()}),tc=tr.object({chainId:tr.optional(tr.string().or(tr.number())),preferredAccountType:tr.optional(tr.string())}),tu=tr.object({provider:tr.enum(["google","github","apple","facebook","x","discord"])}),td=tr.object({email:tr.string().email()}),th=tr.object({otp:tr.string()}),tf=tr.object({otp:tr.string()}),tp=tr.object({themeMode:tr.optional(tr.enum(["light","dark"])),themeVariables:tr.optional(tr.record(tr.string(),tr.string().or(tr.number()))),w3mThemeVariables:tr.optional(tr.record(tr.string(),tr.string()))}),tg=tr.object({metadata:tr.object({name:tr.string(),description:tr.string(),url:tr.string(),icons:tr.array(tr.string())}).optional(),sdkVersion:tr.string(),projectId:tr.string()}),tm=tr.object({type:tr.string()}),tv=tr.object({action:tr.enum(["VERIFY_DEVICE","VERIFY_OTP"])}),tb=tr.object({url:tr.string()}),ty=tr.object({userName:tr.string()}),tw=tr.object({email:tr.string(),address:tr.string(),chainId:tr.string().or(tr.number()),accounts:tr.array(tr.object({address:tr.string(),type:tr.enum([g.ACCOUNT_TYPES.EOA,g.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),userName:tr.string().optional()}),tx=tr.object({action:tr.enum(["VERIFY_PRIMARY_OTP","VERIFY_SECONDARY_OTP"])}),t_=tr.object({email:tr.string().email().optional().nullable(),address:tr.string(),chainId:tr.string().or(tr.number()),smartAccountDeployed:tr.optional(tr.boolean()),accounts:tr.array(tr.object({address:tr.string(),type:tr.enum([g.ACCOUNT_TYPES.EOA,g.ACCOUNT_TYPES.SMART_ACCOUNT])})).optional(),preferredAccountType:tr.optional(tr.string())}),tC=tr.object({uri:tr.string()}),tA=tr.object({isConnected:tr.boolean()}),tk=tr.object({chainId:tr.string().or(tr.number())}),tE=tr.object({chainId:tr.string().or(tr.number())}),tS=tr.object({newEmail:tr.string().email()}),tT=tr.object({smartAccountEnabledNetworks:tr.array(tr.number())});tr.object({address:tr.string(),isDeployed:tr.boolean()});let tI=tr.object({type:tr.string(),address:tr.string()}),tP=tr.any(),tO=tr.object({method:tr.literal("eth_accounts")}),tR=tr.object({method:tr.literal("eth_blockNumber")}),tM=tr.object({method:tr.literal("eth_call"),params:tr.array(tr.any())}),tN=tr.object({method:tr.literal("eth_chainId")}),tj=tr.object({method:tr.literal("eth_estimateGas"),params:tr.array(tr.any())}),tD=tr.object({method:tr.literal("eth_feeHistory"),params:tr.array(tr.any())}),tB=tr.object({method:tr.literal("eth_gasPrice")}),tL=tr.object({method:tr.literal("eth_getAccount"),params:tr.array(tr.any())}),t$=tr.object({method:tr.literal("eth_getBalance"),params:tr.array(tr.any())}),tU=tr.object({method:tr.literal("eth_getBlockByHash"),params:tr.array(tr.any())}),tz=tr.object({method:tr.literal("eth_getBlockByNumber"),params:tr.array(tr.any())}),tF=tr.object({method:tr.literal("eth_getBlockReceipts"),params:tr.array(tr.any())}),tq=tr.object({method:tr.literal("eth_getBlockTransactionCountByHash"),params:tr.array(tr.any())}),tH=tr.object({method:tr.literal("eth_getBlockTransactionCountByNumber"),params:tr.array(tr.any())}),tW=tr.object({method:tr.literal("eth_getCode"),params:tr.array(tr.any())}),tV=tr.object({method:tr.literal("eth_getFilterChanges"),params:tr.array(tr.any())}),tZ=tr.object({method:tr.literal("eth_getFilterLogs"),params:tr.array(tr.any())}),tG=tr.object({method:tr.literal("eth_getLogs"),params:tr.array(tr.any())}),tK=tr.object({method:tr.literal("eth_getProof"),params:tr.array(tr.any())}),tY=tr.object({method:tr.literal("eth_getStorageAt"),params:tr.array(tr.any())}),tQ=tr.object({method:tr.literal("eth_getTransactionByBlockHashAndIndex"),params:tr.array(tr.any())}),tJ=tr.object({method:tr.literal("eth_getTransactionByBlockNumberAndIndex"),params:tr.array(tr.any())}),tX=tr.object({method:tr.literal("eth_getTransactionByHash"),params:tr.array(tr.any())}),t0=tr.object({method:tr.literal("eth_getTransactionCount"),params:tr.array(tr.any())}),t1=tr.object({method:tr.literal("eth_getTransactionReceipt"),params:tr.array(tr.any())}),t2=tr.object({method:tr.literal("eth_getUncleCountByBlockHash"),params:tr.array(tr.any())}),t3=tr.object({method:tr.literal("eth_getUncleCountByBlockNumber"),params:tr.array(tr.any())}),t5=tr.object({method:tr.literal("eth_maxPriorityFeePerGas")}),t6=tr.object({method:tr.literal("eth_newBlockFilter")}),t4=tr.object({method:tr.literal("eth_newFilter"),params:tr.array(tr.any())}),t8=tr.object({method:tr.literal("eth_newPendingTransactionFilter")}),t9=tr.object({method:tr.literal("eth_sendRawTransaction"),params:tr.array(tr.any())}),t7=tr.object({method:tr.literal("eth_syncing"),params:tr.array(tr.any())}),re=tr.object({method:tr.literal("eth_uninstallFilter"),params:tr.array(tr.any())}),rt=tr.object({method:tr.literal("personal_sign"),params:tr.array(tr.any())}),rr=tr.object({method:tr.literal("eth_signTypedData_v4"),params:tr.array(tr.any())}),rn=tr.object({method:tr.literal("eth_sendTransaction"),params:tr.array(tr.any())}),ri=tr.object({method:tr.literal("solana_signMessage"),params:tr.object({message:tr.string(),pubkey:tr.string()})}),ro=tr.object({method:tr.literal("solana_signTransaction"),params:tr.object({transaction:tr.string()})}),ra=tr.object({method:tr.literal("solana_signAllTransactions"),params:tr.object({transactions:tr.array(tr.string())})}),rs=tr.object({method:tr.literal("solana_signAndSendTransaction"),params:tr.object({transaction:tr.string(),options:tr.object({skipPreflight:tr.boolean().optional(),preflightCommitment:tr.enum(["processed","confirmed","finalized","recent","single","singleGossip","root","max"]).optional(),maxRetries:tr.number().optional(),minContextSlot:tr.number().optional()}).optional()})}),rl=tr.object({method:tr.literal("wallet_sendCalls"),params:tr.array(tr.object({chainId:tr.string().or(tr.number()).optional(),from:tr.string().optional(),version:tr.string().optional(),capabilities:tr.any().optional(),calls:tr.array(tr.object({to:tr.string().startsWith("0x"),data:tr.string().startsWith("0x").optional(),value:tr.string().optional()}))}))}),rc=tr.object({method:tr.literal("wallet_getCallsStatus"),params:tr.array(tr.string())}),ru=tr.object({method:tr.literal("wallet_getCapabilities")}),rd=tr.object({method:tr.literal("wallet_grantPermissions"),params:tr.array(tr.any())}),rh=tr.object({token:tr.string()}),rf=tr.object({id:tr.string().optional()}),rp={appEvent:rf.extend({type:ti("APP_SWITCH_NETWORK"),payload:to}).or(rf.extend({type:ti("APP_CONNECT_EMAIL"),payload:ta})).or(rf.extend({type:ti("APP_CONNECT_DEVICE")})).or(rf.extend({type:ti("APP_CONNECT_OTP"),payload:ts})).or(rf.extend({type:ti("APP_CONNECT_SOCIAL"),payload:tl})).or(rf.extend({type:ti("APP_GET_FARCASTER_URI")})).or(rf.extend({type:ti("APP_CONNECT_FARCASTER")})).or(rf.extend({type:ti("APP_GET_USER"),payload:tr.optional(tc)})).or(rf.extend({type:ti("APP_GET_SOCIAL_REDIRECT_URI"),payload:tu})).or(rf.extend({type:ti("APP_SIGN_OUT")})).or(rf.extend({type:ti("APP_IS_CONNECTED"),payload:tr.optional(rh)})).or(rf.extend({type:ti("APP_GET_CHAIN_ID")})).or(rf.extend({type:ti("APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS")})).or(rf.extend({type:ti("APP_INIT_SMART_ACCOUNT")})).or(rf.extend({type:ti("APP_SET_PREFERRED_ACCOUNT"),payload:tm})).or(rf.extend({type:ti("APP_RPC_REQUEST"),payload:rt.or(rn).or(tO).or(tR).or(tM).or(tN).or(tj).or(tD).or(tB).or(tL).or(t$).or(tU).or(tz).or(tF).or(tq).or(tH).or(tW).or(tV).or(tZ).or(tG).or(tK).or(tY).or(tQ).or(tJ).or(tX).or(t0).or(t1).or(t2).or(t3).or(t5).or(t6).or(t4).or(t8).or(t9).or(t7).or(re).or(rt).or(rr).or(rn).or(ri).or(ro).or(ra).or(rs).or(rc).or(rl).or(ru).or(rd)})).or(rf.extend({type:ti("APP_UPDATE_EMAIL"),payload:td})).or(rf.extend({type:ti("APP_UPDATE_EMAIL_PRIMARY_OTP"),payload:th})).or(rf.extend({type:ti("APP_UPDATE_EMAIL_SECONDARY_OTP"),payload:tf})).or(rf.extend({type:ti("APP_SYNC_THEME"),payload:tp})).or(rf.extend({type:ti("APP_SYNC_DAPP_DATA"),payload:tg})),frameEvent:rf.extend({type:ti("FRAME_SWITCH_NETWORK_ERROR"),payload:tn}).or(rf.extend({type:ti("FRAME_SWITCH_NETWORK_SUCCESS"),payload:tE})).or(rf.extend({type:ti("FRAME_CONNECT_EMAIL_SUCCESS"),payload:tv})).or(rf.extend({type:ti("FRAME_CONNECT_EMAIL_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_GET_FARCASTER_URI_SUCCESS"),payload:tb})).or(rf.extend({type:ti("FRAME_GET_FARCASTER_URI_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_CONNECT_FARCASTER_SUCCESS"),payload:ty})).or(rf.extend({type:ti("FRAME_CONNECT_FARCASTER_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_CONNECT_OTP_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_CONNECT_OTP_SUCCESS")})).or(rf.extend({type:ti("FRAME_CONNECT_DEVICE_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_CONNECT_DEVICE_SUCCESS")})).or(rf.extend({type:ti("FRAME_CONNECT_SOCIAL_SUCCESS"),payload:tw})).or(rf.extend({type:ti("FRAME_CONNECT_SOCIAL_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_GET_USER_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_GET_USER_SUCCESS"),payload:t_})).or(rf.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_GET_SOCIAL_REDIRECT_URI_SUCCESS"),payload:tC})).or(rf.extend({type:ti("FRAME_SIGN_OUT_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_SIGN_OUT_SUCCESS")})).or(rf.extend({type:ti("FRAME_IS_CONNECTED_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_IS_CONNECTED_SUCCESS"),payload:tA})).or(rf.extend({type:ti("FRAME_GET_CHAIN_ID_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_GET_CHAIN_ID_SUCCESS"),payload:tk})).or(rf.extend({type:ti("FRAME_RPC_REQUEST_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_RPC_REQUEST_SUCCESS"),payload:tP})).or(rf.extend({type:ti("FRAME_SESSION_UPDATE"),payload:rh})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_SUCCESS"),payload:tx})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_PRIMARY_OTP_SUCCESS")})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_UPDATE_EMAIL_SECONDARY_OTP_SUCCESS"),payload:tS})).or(rf.extend({type:ti("FRAME_SYNC_THEME_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_SYNC_THEME_SUCCESS")})).or(rf.extend({type:ti("FRAME_SYNC_DAPP_DATA_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_SYNC_DAPP_DATA_SUCCESS")})).or(rf.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS"),payload:tT})).or(rf.extend({type:ti("FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_INIT_SMART_ACCOUNT_ERROR"),payload:tn})).or(rf.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_SUCCESS"),payload:tI})).or(rf.extend({type:ti("FRAME_SET_PREFERRED_ACCOUNT_ERROR"),payload:tn}))},rg={set(e,t){rv.isClient&&localStorage.setItem(`${p.STORAGE_KEY}${e}`,t)},get:e=>rv.isClient?localStorage.getItem(`${p.STORAGE_KEY}${e}`):null,delete(e,t){rv.isClient&&(t?localStorage.removeItem(e):localStorage.removeItem(`${p.STORAGE_KEY}${e}`))}},rm={transactionHash:/^0x(?:[A-Fa-f0-9]{64})$/u,signedMessage:/^0x(?:[a-fA-F0-9]{62,})$/u},rv={checkIfAllowedToTriggerEmail(){let e=rg.get(p.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4)throw Error(`Please try again after ${Math.ceil((3e4-t)/1e3)} seconds`)}},getTimeToNextEmailLogin(){let e=rg.get(p.LAST_EMAIL_LOGIN_TIME);if(e){let t=Date.now()-Number(e);if(t<3e4)return Math.ceil((3e4-t)/1e3)}return 0},checkIfRequestExists:e=>g.NOT_SAFE_RPC_METHODS.includes(e.method)||g.SAFE_RPC_METHODS.includes(e.method),getResponseType:e=>"string"==typeof e&&(e?.match(rm.transactionHash)||e?.match(rm.signedMessage))?p.RPC_RESPONSE_TYPE_TX:p.RPC_RESPONSE_TYPE_OBJECT,checkIfRequestIsSafe:e=>g.SAFE_RPC_METHODS.includes(e.method),isClient:"undefined"!=typeof window};var rb=r(257);class ry{constructor(e,t=!1,r="eip155:1"){if(this.iframe=null,this.rpcUrl=rb.bq.BLOCKCHAIN_API_RPC_URL,this.events={registerFrameEventHandler:(e,t,r)=>{function n({data:r}){if(!r.type?.includes(p.FRAME_EVENT_KEY))return;let i=rp.frameEvent.parse(r);i.id===e&&(t(i),window.removeEventListener("message",n))}rv.isClient&&(window.addEventListener("message",n),r.addEventListener("abort",()=>{window.removeEventListener("message",n)}))},onFrameEvent:e=>{rv.isClient&&window.addEventListener("message",({data:t})=>{t.type?.includes(p.FRAME_EVENT_KEY)&&e(rp.frameEvent.parse(t))})},onAppEvent:e=>{rv.isClient&&window.addEventListener("message",({data:t})=>{t.type?.includes(p.APP_EVENT_KEY)&&e(rp.appEvent.parse(t))})},postAppEvent:e=>{if(rv.isClient){if(!this.iframe?.contentWindow)throw Error("W3mFrame: iframe is not set");rp.appEvent.parse(e),this.iframe.contentWindow.postMessage(e,"*")}},postFrameEvent:e=>{if(rv.isClient){if(!parent)throw Error("W3mFrame: parent is not set");rp.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}}),rv.isClient)){let t=document.createElement("iframe");t.id="w3m-iframe",t.src=`${h}?projectId=${e}&chainId=${r}`,t.name="w3m-secure-iframe",t.style.position="fixed",t.style.zIndex="999999",t.style.display="none",t.style.animationDelay="0s, 50ms",t.style.borderBottomLeftRadius="clamp(0px, var(--wui-border-radius-l), 44px)",t.style.borderBottomRightRadius="clamp(0px, var(--wui-border-radius-l), 44px)",document.body.appendChild(t),this.iframe=t,this.iframe.onload=()=>{this.frameLoadPromiseResolver?.resolve(void 0)},this.iframe.onerror=()=>{this.frameLoadPromiseResolver?.reject("Unable to load email login dependency")}}}get networks(){return Object.assign({},...["eip155:1","eip155:5","eip155:11155111","eip155:10","eip155:420","eip155:42161","eip155:421613","eip155:137","eip155:80001","eip155:42220","eip155:1313161554","eip155:1313161555","eip155:56","eip155:97","eip155:43114","eip155:43113","eip155:324","eip155:280","eip155:100","eip155:8453","eip155:84531","eip155:7777777","eip155:999","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z","solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"].map(e=>({[e]:{rpcUrl:`${this.rpcUrl}/v1/?chainId=${e}&projectId=${this.projectId}`,chainId:e}})))}}var rw=r(12044);class rx{constructor(e){let t=(0,rw.jI)({level:f}),{logger:r,chunkLoggerController:n}=(0,rw.Rt)({opts:t});this.logger=(0,rw.Ep)(r,this.constructor.name),this.chunkLoggerController=n,"undefined"!=typeof window&&this.chunkLoggerController?.downloadLogsBlobInBrowser&&(window.downloadAppKitLogsBlob||(window.downloadAppKitLogsBlob={}),window.downloadAppKitLogsBlob.sdk=()=>{this.chunkLoggerController?.downloadLogsBlobInBrowser&&this.chunkLoggerController.downloadLogsBlobInBrowser({projectId:e})})}}class r_{constructor(e,t){this.openRpcRequests=[],this.w3mLogger=new rx(e),this.w3mFrame=new ry(e,!0,t)}getLoginEmailUsed(){return!!rg.get(p.EMAIL_LOGIN_USED_KEY)}getEmail(){return rg.get(p.EMAIL)}async connectEmail(e){try{rv.checkIfAllowedToTriggerEmail();let t=await this.appEvent({type:p.APP_CONNECT_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting email"),e}}async connectDevice(){try{return this.appEvent({type:p.APP_CONNECT_DEVICE})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting device"),e}}async connectOtp(e){try{return this.appEvent({type:p.APP_CONNECT_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting otp"),e}}async isConnected(){try{let e=await this.appEvent({type:p.APP_IS_CONNECTED});return e.isConnected||this.deleteAuthLoginCache(),e}catch(e){throw this.deleteAuthLoginCache(),this.w3mLogger.logger.error({error:e},"Error checking connection"),e}}async getChainId(){try{let e=await this.appEvent({type:p.APP_GET_CHAIN_ID});return this.setLastUsedChainId(e.chainId),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting chain id"),e}}async getSocialRedirectUri(e){try{return this.appEvent({type:p.APP_GET_SOCIAL_REDIRECT_URI,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting social redirect uri"),e}}async updateEmail(e){try{let t=await this.appEvent({type:p.APP_UPDATE_EMAIL,payload:e});return this.setNewLastEmailLoginTime(),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email"),e}}async updateEmailPrimaryOtp(e){try{return this.appEvent({type:p.APP_UPDATE_EMAIL_PRIMARY_OTP,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email primary otp"),e}}async updateEmailSecondaryOtp(e){try{let t=await this.appEvent({type:p.APP_UPDATE_EMAIL_SECONDARY_OTP,payload:e});return this.setLoginSuccess(t.newEmail),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error updating email secondary otp"),e}}async syncTheme(e){try{return this.appEvent({type:p.APP_SYNC_THEME,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing theme"),e}}async syncDappData(e){try{return this.appEvent({type:p.APP_SYNC_DAPP_DATA,payload:e})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error syncing dapp data"),e}}async getSmartAccountEnabledNetworks(){try{let e=await this.appEvent({type:p.APP_GET_SMART_ACCOUNT_ENABLED_NETWORKS});return this.persistSmartAccountEnabledNetworks(e.smartAccountEnabledNetworks),e}catch(e){throw this.persistSmartAccountEnabledNetworks([]),this.w3mLogger.logger.error({error:e},"Error getting smart account enabled networks"),e}}async setPreferredAccount(e){try{return this.appEvent({type:p.APP_SET_PREFERRED_ACCOUNT,payload:{type:e}})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error setting preferred account"),e}}async connect(e){try{let t=e?.chainId??this.getLastUsedChainId()??1,r=await this.appEvent({type:p.APP_GET_USER,payload:{...e,chainId:t}});return this.setLoginSuccess(r.email),this.setLastUsedChainId(r.chainId),r}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting"),e}}async connectSocial(e){try{let t=await this.appEvent({type:p.APP_CONNECT_SOCIAL,payload:{uri:e}});return t.userName&&this.setSocialLoginSuccess(t.userName),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting social"),e}}async getFarcasterUri(){try{return await this.appEvent({type:p.APP_GET_FARCASTER_URI})}catch(e){throw this.w3mLogger.logger.error({error:e},"Error getting farcaster uri"),e}}async connectFarcaster(){try{let e=await this.appEvent({type:p.APP_CONNECT_FARCASTER});return e.userName&&this.setSocialLoginSuccess(e.userName),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error connecting farcaster"),e}}async switchNetwork(e){try{let t=await this.appEvent({type:p.APP_SWITCH_NETWORK,payload:{chainId:e}});return this.setLastUsedChainId(t.chainId),t}catch(e){throw this.w3mLogger.logger.error({error:e},"Error switching network"),e}}async disconnect(){try{let e=await this.appEvent({type:p.APP_SIGN_OUT});return this.deleteAuthLoginCache(),e}catch(e){throw this.w3mLogger.logger.error({error:e},"Error disconnecting"),e}}async request(e){try{if(g.GET_CHAIN_ID===e.method)return this.getLastUsedChainId();this.rpcRequestHandler?.(e);let t=await this.appEvent({type:p.APP_RPC_REQUEST,payload:e});return this.rpcSuccessHandler?.(t,e),t}catch(t){throw this.rpcErrorHandler?.(t,e),this.w3mLogger.logger.error({error:t},"Error requesting"),t}}onRpcRequest(e){this.rpcRequestHandler=e}onRpcSuccess(e){this.rpcSuccessHandler=e}onRpcError(e){this.rpcErrorHandler=e}onIsConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_GET_USER_SUCCESS&&e(t.payload)})}onNotConnected(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_IS_CONNECTED_ERROR&&e(),t.type!==p.FRAME_IS_CONNECTED_SUCCESS||t.payload.isConnected||e()})}async getCapabilities(){try{return await this.request({method:"wallet_getCapabilities"})||{}}catch{return{}}}onSetPreferredAccount(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_SET_PREFERRED_ACCOUNT_SUCCESS?e(t.payload):t.type===p.FRAME_SET_PREFERRED_ACCOUNT_ERROR&&e({type:g.ACCOUNT_TYPES.EOA})})}onGetSmartAccountEnabledNetworks(e){this.w3mFrame.events.onFrameEvent(t=>{t.type===p.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_SUCCESS?e(t.payload.smartAccountEnabledNetworks):t.type===p.FRAME_GET_SMART_ACCOUNT_ENABLED_NETWORKS_ERROR&&e([])})}getAvailableChainIds(){return Object.keys(this.w3mFrame.networks)}rejectRpcRequests(){try{this.openRpcRequests.forEach(({abortController:e,method:t})=>{g.SAFE_RPC_METHODS.includes(t)||e.abort()}),this.openRpcRequests=[]}catch(e){this.w3mLogger.logger.error({error:e},"Error aborting RPC request")}}async appEvent(e){await this.w3mFrame.frameLoadPromise;let t=e.type.replace("@w3m-app/","");return new Promise((r,n)=>{let i=Math.random().toString(36).substring(7);this.w3mLogger.logger.info?.({event:e,id:i},"Sending app event"),this.w3mFrame.events.postAppEvent({...e,id:i});let o=new AbortController;"RPC_REQUEST"===t&&(this.openRpcRequests=[...this.openRpcRequests,{...e.payload,abortController:o}]),o.signal.addEventListener("abort",()=>{"RPC_REQUEST"===t&&n(Error("Request was aborted"))}),this.w3mFrame.events.registerFrameEventHandler(i,function(e){e.type===`@w3m-frame/${t}_SUCCESS`?("payload"in e&&r(e.payload),r(void 0)):e.type===`@w3m-frame/${t}_ERROR`&&("payload"in e&&n(Error(e.payload?.message||"An error occurred")),n(Error("An error occurred")))},o.signal)})}setNewLastEmailLoginTime(){rg.set(p.LAST_EMAIL_LOGIN_TIME,Date.now().toString())}setSocialLoginSuccess(e){rg.set(p.SOCIAL_USERNAME,e)}setLoginSuccess(e){e&&rg.set(p.EMAIL,e),rg.set(p.EMAIL_LOGIN_USED_KEY,"true"),rg.delete(p.LAST_EMAIL_LOGIN_TIME)}deleteAuthLoginCache(){rg.delete(p.EMAIL_LOGIN_USED_KEY),rg.delete(p.EMAIL),rg.delete(p.LAST_USED_CHAIN_KEY),rg.delete(p.SOCIAL_USERNAME),rg.delete(p.SOCIAL,!0)}setLastUsedChainId(e){rg.set(p.LAST_USED_CHAIN_KEY,String(e))}getLastUsedChainId(){return Number(rg.get(p.LAST_USED_CHAIN_KEY))}persistSmartAccountEnabledNetworks(e){rg.set(p.SMART_ACCOUNT_ENABLED_NETWORKS,e.join(","))}}},84917:function(e,t,r){"use strict";function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:function(){return n},cN:function(){return a},eL:function(){return i},lh:function(){return o}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^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)?$/,a=/^\(.+?\).*?$/},70794:function(e,t,r){"use strict";var n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",l=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function c(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function d(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,l=e.e,c=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=l==c,!i||!o)return n?0:!i^r?1:-1;if(!n)return l>c^r?1:-1;for(a=0,s=(l=i.length)<(c=o.length)?l:c;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return l==c?0:l>c^r?1:-1}function h(e,t,r,n){if(e<t||e>r||e!==o(e))throw Error(a+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function f(e){var t=e.c.length-1;return c(e.e/14)==t&&e.c[t]%2!=0}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(n=e.length,++t>n){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}var m=function e(t){var r,m,v,b,y,w,x,_,C,A=L.prototype={constructor:L,toString:null,valueOf:null},k=new L(1),E=20,S=4,T=-7,I=21,P=-1e7,O=1e7,R=!1,M=1,N=0,j={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},D="0123456789abcdefghijklmnopqrstuvwxyz",B=!0;function L(e,t){var r,i,a,l,c,u,d,f,p=this;if(!(p instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){p.s=e.s,!e.c||e.e>O?p.c=p.e=null:e.e<P?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,c=e;c>=10;c/=10,l++);l>O?p.c=p.e=null:(p.e=l,p.c=[e]);return}f=String(e)}else{if(!n.test(f=String(e)))return C(p,f,u);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(l=f.indexOf("."))>-1&&(f=f.replace(".","")),(c=f.search(/e/i))>0?(l<0&&(l=c),l+=+f.slice(c+1),f=f.substring(0,c)):l<0&&(l=f.length)}else{if(h(t,2,D.length,"Base"),10==t&&B)return F(p=new L(e),E+p.e+1,S);if(f=String(e),u="number"==typeof e){if(0*e!=0)return C(p,f,u,t);if(p.s=1/e<0?(f=f.slice(1),-1):1,L.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=D.slice(0,t),l=c=0,d=f.length;c<d;c++)if(0>r.indexOf(i=f.charAt(c))){if("."==i){if(c>l){l=d;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,c=-1,l=0;continue}return C(p,String(e),u,t)}u=!1,(l=(f=_(f,t,10,p.s)).indexOf("."))>-1?f=f.replace(".",""):l=f.length}for(c=0;48===f.charCodeAt(c);c++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(c,++d)){if(d-=c,u&&L.DEBUG&&d>15&&(e>9007199254740991||e!==o(e)))throw Error(s+p.s*e);if((l=l-c-1)>O)p.c=p.e=null;else if(l<P)p.c=[p.e=0];else{if(p.e=l,p.c=[],c=(l+1)%14,l<0&&(c+=14),c<d){for(c&&p.c.push(+f.slice(0,c)),d-=14;c<d;)p.c.push(+f.slice(c,c+=14));c=14-(f=f.slice(c)).length}else c-=d;for(;c--;f+="0");p.c.push(+f)}}else p.c=[p.e=0]}function $(e,t,r,n){var i,o,a,s,l;if(null==r?r=S:h(r,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)l=u(e.c),l=1==n||2==n&&(a<=T||a>=I)?p(l,a):g(l,a,"0");else if(o=(e=F(new L(e),t,r)).e,s=(l=u(e.c)).length,1==n||2==n&&(t<=o||o<=T)){for(;s<t;l+="0",s++);l=p(l,o)}else if(t-=a,l=g(l,o,"0"),o+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=o-s)>0)for(o+1==s&&(l+=".");t--;l+="0");return e.s<0&&i?"-"+l:l}function U(e,t){for(var r,n=1,i=new L(e[0]);n<e.length;n++)if((r=new L(e[n])).s)t.call(i,r)&&(i=r);else{i=r;break}return i}function z(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>O?e.c=e.e=null:r<P?e.c=[e.e=0]:(e.e=r,e.c=t),e}function F(e,t,r,n){var a,s,c,u,d,h,f,p=e.c;if(p){n:{for(a=1,u=p[0];u>=10;u/=10,a++);if((s=t-a)<0)s+=14,c=t,f=(d=p[h=0])/l[a-c-1]%10|0;else if((h=i((s+1)/14))>=p.length){if(n){for(;p.length<=h;p.push(0));d=f=0,a=1,s%=14,c=s-14+1}else break n}else{for(a=1,d=u=p[h];u>=10;u/=10,a++);s%=14,f=(c=s-14+a)<0?0:d/l[a-c-1]%10|0}if(n=n||t<0||null!=p[h+1]||(c<0?d:d%l[a-c-1]),n=r<4?(f||n)&&(0==r||r==(e.s<0?3:2)):f>5||5==f&&(4==r||n||6==r&&(s>0?c>0?d/l[a-c]:0:p[h-1])%10&1||r==(e.s<0?8:7)),t<1||!p[0])return p.length=0,n?(t-=e.e+1,p[0]=l[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==s?(p.length=h,u=1,h--):(p.length=h+1,u=l[14-s],p[h]=c>0?o(d/l[a-c]%l[c])*u:0),n)for(;;){if(0==h){for(s=1,c=p[0];c>=10;c/=10,s++);for(c=p[0]+=u,u=1;c>=10;c/=10,u++);s!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[h]+=u,1e14!=p[h])break;p[h--]=0,u=1}for(s=p.length;0===p[--s];p.pop());}e.e>O?e.c=e.e=null:e.e<P&&(e.c=[e.e=0])}return e}function q(e){var t,r=e.e;return null===r?e.toString():(t=u(e.c),t=r<=T||r>=I?p(t,r):g(t,r,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,r;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(h(r=e[t],0,1e9,t),E=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(h(r=e[t],0,8,t),S=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(h(r[0],-1e9,0,t),h(r[1],0,1e9,t),T=r[0],I=r[1]):(h(r,-1e9,1e9,t),T=-(I=r<0?-r:r))),e.hasOwnProperty(t="RANGE")){if((r=e[t])&&r.pop)h(r[0],-1e9,-1,t),h(r[1],1,1e9,t),P=r[0],O=r[1];else if(h(r,-1e9,1e9,t),r)P=-(O=r<0?-r:r);else throw Error(a+t+" cannot be zero: "+r)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(r=e[t])===r){if(r){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))R=r;else throw R=!r,Error(a+"crypto unavailable")}else R=r}else throw Error(a+t+" not true or false: "+r)}if(e.hasOwnProperty(t="MODULO_MODE")&&(h(r=e[t],0,9,t),M=r),e.hasOwnProperty(t="POW_PRECISION")&&(h(r=e[t],0,1e9,t),N=r),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(r=e[t]))j=r;else throw Error(a+t+" not an object: "+r)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(a+t+" invalid: "+r);B="0123456789"==r.slice(0,10),D=r}}else throw Error(a+"Object expected: "+e)}return{DECIMAL_PLACES:E,ROUNDING_MODE:S,EXPONENTIAL_AT:[T,I],RANGE:[P,O],CRYPTO:R,MODULO_MODE:M,POW_PRECISION:N,FORMAT:j,ALPHABET:D}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,r,n=e.c,i=e.e,s=e.s;n:if("[object Array]"==({}).toString.call(n)){if((1===s||-1===s)&&i>=-1e9&&i<=1e9&&i===o(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break n}if((t=(i+1)%14)<1&&(t+=14),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=1e14||r!==o(r))break n;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return U(arguments,A.lt)},L.minimum=L.min=function(){return U(arguments,A.gt)},L.random=(r=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,n,s,c,u,d=0,f=[],p=new L(k);if(null==e?e=E:h(e,0,1e9),c=i(e/14),R){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(c*=2));d<c;)(u=131072*t[d]+(t[d+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[d]=n[0],t[d+1]=n[1]):(f.push(u%1e14),d+=2);d=c/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(c*=7);d<c;)(u=(31&t[d])*281474976710656+1099511627776*t[d+1]+4294967296*t[d+2]+16777216*t[d+3]+(t[d+4]<<16)+(t[d+5]<<8)+t[d+6])>=9e15?crypto.randomBytes(7).copy(t,d):(f.push(u%1e14),d+=7);d=c/7}else throw R=!1,Error(a+"crypto unavailable")}if(!R)for(;d<c;)(u=r())<9e15&&(f[d++]=u%1e14);for(c=f[--d],e%=14,c&&e&&(u=l[14-e],f[d]=o(c/u)*u);0===f[d];f.pop(),d--);if(d<0)f=[s=0];else{for(s=-1;0===f[0];f.splice(0,1),s-=14);for(d=1,u=f[0];u>=10;u/=10,d++);d<14&&(s-=14-d)}return p.e=s,p.c=f,p}),L.sum=function(){for(var e=1,t=arguments,r=new L(t[0]);e<t.length;)r=r.plus(t[e++]);return r},_=function(){var e="0123456789";function t(e,t,r,n){for(var i,o,a=[0],s=0,l=e.length;s<l;){for(o=a.length;o--;a[o]*=t);for(a[0]+=n.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>r-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(r,n,i,o,a){var s,l,c,d,h,f,p,m,v=r.indexOf("."),b=E,y=S;for(v>=0&&(d=N,N=0,r=r.replace(".",""),f=(m=new L(n)).pow(r.length-v),N=d,m.c=t(g(u(f.c),f.e,"0"),10,i,e),m.e=m.c.length),c=d=(p=t(r,n,i,a?(s=D,e):(s=e,D))).length;0==p[--d];p.pop());if(!p[0])return s.charAt(0);if(v<0?--c:(f.c=p,f.e=c,f.s=o,p=(f=x(f,m,b,y,i)).c,h=f.r,c=f.e),v=p[l=c+b+1],d=i/2,h=h||l<0||null!=p[l+1],h=y<4?(null!=v||h)&&(0==y||y==(f.s<0?3:2)):v>d||v==d&&(4==y||h||6==y&&1&p[l-1]||y==(f.s<0?8:7)),l<1||!p[0])r=h?g(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(p.length=l,h)for(--i;++p[--l]>i;)p[l]=0,l||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=s.charAt(p[v++]));r=g(r,c,s.charAt(0))}return r}}(),x=function(){function e(e,t,r){var n,i,o,a,s=0,l=e.length,c=t%1e7,u=t/1e7|0;for(e=e.slice();l--;)n=u*(o=e[l]%1e7)+(a=e[l]/1e7|0)*c,s=((i=c*o+n%1e7*1e7+s)/r|0)+(n/1e7|0)+u*a,e[l]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,a,s,l){var u,d,h,f,p,g,m,v,b,y,w,x,_,C,A,k,E,S=n.s==i.s?1:-1,T=n.c,I=i.c;if(!T||!T[0]||!I||!I[0])return new L(n.s&&i.s&&(T?!I||T[0]!=I[0]:I)?T&&0==T[0]||!I?0*S:S/0:NaN);for(b=(v=new L(S)).c=[],S=a+(d=n.e-i.e)+1,l||(l=1e14,d=c(n.e/14)-c(i.e/14),S=S/14|0),h=0;I[h]==(T[h]||0);h++);if(I[h]>(T[h]||0)&&d--,S<0)b.push(1),f=!0;else{for(C=T.length,k=I.length,h=0,S+=2,(p=o(l/(I[0]+1)))>1&&(I=e(I,p,l),T=e(T,p,l),k=I.length,C=T.length),_=k,w=(y=T.slice(0,k)).length;w<k;y[w++]=0);E=[0].concat(E=I.slice()),A=I[0],I[1]>=l/2&&A++;do{if(p=0,(u=t(I,y,k,w))<0){if(x=y[0],k!=w&&(x=x*l+(y[1]||0)),(p=o(x/A))>1)for(p>=l&&(p=l-1),m=(g=e(I,p,l)).length,w=y.length;1==t(g,y,m,w);)p--,r(g,k<m?E:I,m,l),m=g.length,u=1;else 0==p&&(u=p=1),m=(g=I.slice()).length;if(m<w&&(g=[0].concat(g)),r(y,g,w,l),w=y.length,-1==u)for(;1>t(I,y,k,w);)p++,r(y,k<w?E:I,w,l),w=y.length}else 0===u&&(p++,y=[0]);b[h++]=p,y[0]?y[w++]=T[_]||0:(y=[T[_]],w=1)}while((_++<C||null!=y[0])&&S--);f=null!=y[0],b[0]||b.splice(0,1)}if(1e14==l){for(h=1,S=b[0];S>=10;S/=10,h++);F(v,a+(v.e=h+14*d-1)+1,s,f)}else v.e=d,v.r=+f;return v}}(),m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,v=/^([^.]+)\.$/,b=/^\.([^.]+)$/,y=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,C=function(e,t,r,n){var i,o=r?t:t.replace(w,"");if(y.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(m,function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t}),n&&(i=n,o=o.replace(v,"$1").replace(b,"0.$1")),t!=o))return new L(o,i);if(L.DEBUG)throw Error(a+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},A.absoluteValue=A.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},A.comparedTo=function(e,t){return d(this,new L(e,t))},A.decimalPlaces=A.dp=function(e,t){var r,n,i;if(null!=e)return h(e,0,1e9),null==t?t=S:h(t,0,8),F(new L(this),e+this.e+1,t);if(!(r=this.c))return null;if(n=((i=r.length-1)-c(this.e/14))*14,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},A.dividedBy=A.div=function(e,t){return x(this,new L(e,t),E,S)},A.dividedToIntegerBy=A.idiv=function(e,t){return x(this,new L(e,t),0,1)},A.exponentiatedBy=A.pow=function(e,t){var r,n,s,l,c,u,d,h,p,g=this;if((e=new L(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+q(e));if(null!=t&&(t=new L(t)),u=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new L(Math.pow(+q(g),u?2-f(e):+q(e))),t?p.mod(t):p;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(n=!d&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||u&&g.c[1]>=24e7:g.c[0]<8e13||u&&g.c[0]<=9999975e7)))return l=g.s<0&&f(e)?-0:0,g.e>-1&&(l=1/l),new L(d?1/l:l);N&&(l=i(N/14+2))}for(u?(r=new L(.5),d&&(e.s=1),h=f(e)):h=(s=Math.abs(+q(e)))%2,p=new L(k);;){if(h){if(!(p=p.times(g)).c)break;l?p.c.length>l&&(p.c.length=l):n&&(p=p.mod(t))}if(s){if(0===(s=o(s/2)))break;h=s%2}else if(F(e=e.times(r),e.e+1,1),e.e>14)h=f(e);else{if(0==(s=+q(e)))break;h=s%2}g=g.times(g),l?g.c&&g.c.length>l&&(g.c.length=l):n&&(g=g.mod(t))}return n?p:(d&&(p=k.div(p)),t?p.mod(t):l?F(p,N,S,c):p)},A.integerValue=function(e){var t=new L(this);return null==e?e=S:h(e,0,8),F(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===d(this,new L(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return d(this,new L(e,t))>0},A.isGreaterThanOrEqualTo=A.gte=function(e,t){return 1===(t=d(this,new L(e,t)))||0===t},A.isInteger=function(){return!!this.c&&c(this.e/14)>this.c.length-2},A.isLessThan=A.lt=function(e,t){return 0>d(this,new L(e,t))},A.isLessThanOrEqualTo=A.lte=function(e,t){return -1===(t=d(this,new L(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return this.s>0},A.isZero=function(){return!!this.c&&0==this.c[0]},A.minus=function(e,t){var r,n,i,o,a=this.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,l=e.e/14,u=this.c,d=e.c;if(!s||!l){if(!u||!d)return u?(e.s=-t,e):new L(d?this:NaN);if(!u[0]||!d[0])return d[0]?(e.s=-t,e):new L(u[0]?this:3==S?-0:0)}if(s=c(s),l=c(l),u=u.slice(),a=s-l){for((o=a<0)?(a=-a,i=u):(l=s,i=d),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=u.length)<(t=d.length))?a:t,a=t=0;t<n;t++)if(u[t]!=d[t]){o=u[t]<d[t];break}if(o&&(i=u,u=d,d=i,e.s=-e.s),(t=(n=d.length)-(r=u.length))>0)for(;t--;u[r++]=0);for(t=1e14-1;n>a;){if(u[--n]<d[n]){for(r=n;r&&!u[--r];u[r]=t);--u[r],u[n]+=1e14}u[n]-=d[n]}for(;0==u[0];u.splice(0,1),--l);return u[0]?z(e,u,l):(e.s=3==S?-1:1,e.c=[e.e=0],e)},A.modulo=A.mod=function(e,t){var r,n;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==M?(n=e.s,e.s=1,r=x(this,e,0,3),e.s=n,r.s*=n):r=x(this,e,0,M),(e=this.minus(r.times(e))).c[0]||1!=M||(e.s=this.s),e):new L(this):new L(NaN)},A.multipliedBy=A.times=function(e,t){var r,n,i,o,a,s,l,u,d,h,f,p,g,m=this.c,v=(e=new L(e,t)).c;if(!m||!v||!m[0]||!v[0])return this.s&&e.s&&(!m||m[0]||v)&&(!v||v[0]||m)?(e.s*=this.s,m&&v?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(n=c(this.e/14)+c(e.e/14),e.s*=this.s,(l=m.length)<(h=v.length)&&(g=m,m=v,v=g,i=l,l=h,h=i),i=l+h,g=[];i--;g.push(0));for(i=h;--i>=0;){for(r=0,f=v[i]%1e7,p=v[i]/1e7|0,o=i+(a=l);o>i;)s=p*(u=m[--a]%1e7)+(d=m[a]/1e7|0)*f,r=((u=f*u+s%1e7*1e7+g[o]+r)/1e14|0)+(s/1e7|0)+p*d,g[o--]=u%1e14;g[o]=r}return r?++n:g.splice(0,1),z(e,g,n)},A.negated=function(){var e=new L(this);return e.s=-e.s||null,e},A.plus=function(e,t){var r,n=this.s;if(t=(e=new L(e,t)).s,!n||!t)return new L(NaN);if(n!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new L(n/0);if(!a[0]||!s[0])return s[0]?e:new L(a[0]?this:0*n)}if(i=c(i),o=c(o),a=a.slice(),n=i-o){for(n>0?(o=i,r=s):(n=-n,r=a),r.reverse();n--;r.push(0));r.reverse()}for((n=a.length)-(t=s.length)<0&&(r=s,s=a,a=r,t=n),n=0;t;)n=(a[--t]=a[t]+s[t]+n)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return n&&(a=[n].concat(a),++o),z(e,a,o)},A.precision=A.sd=function(e,t){var r,n,i;if(null!=e&&!!e!==e)return h(e,1,1e9),null==t?t=S:h(t,0,8),F(new L(this),e,t);if(!(r=this.c))return null;if(n=14*(i=r.length-1)+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&this.e+1>n&&(n=this.e+1),n},A.shiftedBy=function(e){return h(e,-9007199254740991,9007199254740991),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,r,n,i,o=this.c,a=this.s,s=this.e,l=E+4,d=new L("0.5");if(1!==a||!o||!o[0])return new L(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+q(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=c((s+1)/2)-(s<0||s%2),r=new L(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new L(a+""),r.c[0]){for((a=(s=r.e)+l)<3&&(a=0);;)if(i=r,r=d.times(i.plus(x(this,i,l,1))),u(i.c).slice(0,a)===(t=u(r.c)).slice(0,a)){if(r.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(n||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(F(r,r.e+E+2,1),e=!r.times(r).eq(this));break}if(!n&&(F(i,i.e+E+2,0),i.times(i).eq(this))){r=i;break}l+=4,a+=4,n=1}}return F(r,r.e+E+1,S,e)},A.toExponential=function(e,t){return null!=e&&(h(e,0,1e9),e++),$(this,e,t,1)},A.toFixed=function(e,t){return null!=e&&(h(e,0,1e9),e=e+this.e+1),$(this,e,t)},A.toFormat=function(e,t,r){var n;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=j;else if("object"!=typeof r)throw Error(a+"Argument not an object: "+r);if(n=this.toFixed(e,t),this.c){var i,o=n.split("."),s=+r.groupSize,l=+r.secondaryGroupSize,c=r.groupSeparator||"",u=o[0],d=o[1],h=this.s<0,f=h?u.slice(1):u,p=f.length;if(l&&(i=s,s=l,l=i,p-=i),s>0&&p>0){for(i=p%s||s,u=f.substr(0,i);i<p;i+=s)u+=c+f.substr(i,s);l>0&&(u+=c+f.slice(i)),h&&(u="-"+u)}n=d?u+(r.decimalSeparator||"")+((l=+r.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):d):u}return(r.prefix||"")+n+(r.suffix||"")},A.toFraction=function(e){var t,r,n,i,o,s,c,d,h,f,p,g,m=this.c;if(null!=e&&(!(c=new L(e)).isInteger()&&(c.c||1!==c.s)||c.lt(k)))throw Error(a+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+q(c));if(!m)return new L(this);for(t=new L(k),h=r=new L(k),n=d=new L(k),g=u(m),o=t.e=g.length-this.e-1,t.c[0]=l[(s=o%14)<0?14+s:s],e=!e||c.comparedTo(t)>0?o>0?t:h:c,s=O,O=1/0,c=new L(g),d.c[0]=0;f=x(c,t,0,1),1!=(i=r.plus(f.times(n))).comparedTo(e);)r=n,n=i,h=d.plus(f.times(i=h)),d=i,t=c.minus(f.times(i=t)),c=i;return i=x(e.minus(r),n,0,1),d=d.plus(i.times(h)),r=r.plus(i.times(n)),d.s=h.s=this.s,o*=2,p=1>x(h,n,o,S).minus(this).abs().comparedTo(x(d,r,o,S).minus(this).abs())?[h,n]:[d,r],O=s,p},A.toNumber=function(){return+q(this)},A.toPrecision=function(e,t){return null!=e&&h(e,1,1e9),$(this,e,t,2)},A.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(null==e?t=i<=T||i>=I?p(u(r.c),i):g(u(r.c),i,"0"):10===e&&B?t=g(u((r=F(new L(r),E+i+1,S)).c),r.e,"0"):(h(e,2,D.length,"Base"),t=_(g(u(r.c),i,"0"),10,e,n,!0)),n<0&&r.c[0]&&(t="-"+t)),t},A.valueOf=A.toJSON=function(){return q(this)},A._isBigNumber=!0,A[Symbol.toStringTag]="BigNumber",A[Symbol.for("nodejs.util.inspect.custom")]=A.valueOf,null!=t&&L.set(t),L}();t.Z=m},12064:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(33234),i=r(40406),o=r(81593);function a(e,t,r){void 0===r&&(r={});var a=(0,i.i)(e)?e:(0,n.B)(e);return(0,o.b8)("",a,t,r),{stop:function(){return a.stop()},isAnimating:function(){return a.isAnimating()}}}},48488:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});var n=function(e){return Array.isArray(e)}},81593:function(e,t,r){"use strict";r.d(t,{ev:function(){return eu},b8:function(){return ed}});var n=r(70655),i=r(24394),o=r(6773);function a(e,t){return e*Math.sqrt(1-t*t)}let s=["duration","bounce"],l=["stiffness","damping","mass"];function c(e,t){return t.some(t=>void 0!==e[t])}function u(e){var{from:t=0,to:r=1,restSpeed:u=2,restDelta:h}=e,f=(0,n.__rest)(e,["from","to","restSpeed","restDelta"]);let p={done:!1,value:t},{stiffness:g,damping:m,mass:v,velocity:b,duration:y,isResolvedFromDuration:w}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!c(e,l)&&c(e,s)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let s,l;(0,i.K)(e<=1e4,"Spring duration must be 10 seconds or less");let c=1-t;c=(0,o.u)(.05,1,c),e=(0,o.u)(.01,10,e/1e3),c<1?(s=t=>{let n=t*c,i=n*e;return .001-(n-r)/a(t,c)*Math.exp(-i)},l=t=>{let n=t*c*e,i=Math.pow(c,2)*Math.pow(t,2)*e,o=a(Math.pow(t,2),c);return(n*r+r-i)*Math.exp(-n)*(-s(t)+.001>0?-1:1)/o}):(s=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),l=t=>e*e*(r-t)*Math.exp(-t*e));let u=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(s,l,5/e);if(e*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*n;return{stiffness:t,damping:2*c*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(f),x=d,_=d;function C(){let e=b?-(b/1e3):0,n=r-t,i=m/(2*Math.sqrt(g*v)),o=Math.sqrt(g/v)/1e3;if(void 0===h&&(h=Math.min(Math.abs(r-t)/100,.4)),i<1){let t=a(o,i);x=a=>r-Math.exp(-i*o*a)*((e+i*o*n)/t*Math.sin(t*a)+n*Math.cos(t*a)),_=r=>{let a=Math.exp(-i*o*r);return i*o*a*(Math.sin(t*r)*(e+i*o*n)/t+n*Math.cos(t*r))-a*(Math.cos(t*r)*(e+i*o*n)-t*n*Math.sin(t*r))}}else if(1===i)x=t=>r-Math.exp(-o*t)*(n+(e+o*n)*t);else{let t=o*Math.sqrt(i*i-1);x=a=>{let s=Math.exp(-i*o*a),l=Math.min(t*a,300);return r-s*((e+i*o*n)*Math.sinh(l)+t*n*Math.cosh(l))/t}}}return C(),{next:e=>{let t=x(e);if(w)p.done=e>=y;else{let n=1e3*_(e),i=Math.abs(r-t)<=h;p.done=Math.abs(n)<=u&&i}return p.value=p.done?r:t,p},flipTarget:()=>{b=-b,[t,r]=[r,t],C()}}}u.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let d=e=>0;var h=r(9326),f=r(72453),p=r(22960),g=r(78059),m=r(34582);function v(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function b({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=v(s,n,e+1/3),o=v(s,n,e),a=v(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let y=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},w=[p.$,g.m,m.J],x=e=>w.find(t=>t.test(e)),_=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,C=(e,t)=>{let r=x(e),n=x(t);(0,i.k)(!!r,_(e)),(0,i.k)(!!n,_(t));let o=r.parse(e),a=n.parse(t);r===m.J&&(o=b(o),r=g.m),n===m.J&&(a=b(a),n=g.m);let s=Object.assign({},o);return e=>{for(let t in s)"alpha"!==t&&(s[t]=y(o[t],a[t],e));return s.alpha=(0,f.C)(o.alpha,a.alpha,e),r.transform(s)}};var A=r(87405),k=r(28407),E=r(80734),S=r(9897);function T(e,t){return(0,E.e)(e)?r=>(0,f.C)(e,t,r):A.$.test(e)?C(e,t):R(e,t)}let I=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>T(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},P=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=T(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function O(e){let t=k.P.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}let R=(e,t)=>{let r=k.P.createTransformer(t),n=O(e),o=O(t);return n.numHSL===o.numHSL&&n.numRGB===o.numRGB&&n.numNumbers>=o.numNumbers?(0,S.z)(I(n.parsed,o.parsed),r):((0,i.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},M=(e,t)=>r=>(0,f.C)(e,t,r);function N(e,t,{clamp:r=!0,ease:n,mixer:a}={}){let s=e.length;(0,i.k)(s===t.length,"Both input and output ranges must be the same length"),(0,i.k)(!n||!Array.isArray(n)||n.length===s-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let l=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?M:"string"==typeof n?A.$.test(n)?C:R:Array.isArray(n)?I:"object"==typeof n?P:void 0),a=e.length-1;for(let r=0;r<a;r++){let n=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]:t;n=(0,S.z)(e,n)}i.push(n)}return i}(t,n,a),c=2===s?function([e,t],[r]){return n=>r((0,h.Y)(e,t,n))}(e,l):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;t<r&&!(e[t]>i)&&t!==n;t++);o=t-1}let s=(0,h.Y)(e[o],e[o+1],i);return t[o](s)}}(e,l);return r?t=>c((0,o.u)(e[0],e[s-1],t)):c}var j=r(84710);function D({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=(n&&n.length===a.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(a)).map(e=>e*i);function l(){return N(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||j.mZ).splice(0,a.length-1)})}let c=l();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=l()}}}let B={keyframes:D,spring:u,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,l=t+s,c=void 0===o?l:o(l);return c!==l&&(s=c-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};var L=r(54735);function $(e,t,r=0){return e-t-r}let U=e=>{let t=({delta:t})=>e(t);return{start:()=>L.ZP.update(t,!0),stop:()=>L.qY.update(t)}};function z(e){let t,r,i;var o,{from:a,autoplay:s=!0,driver:l=U,elapsed:c=0,repeat:d=0,repeatType:h="loop",repeatDelay:f=0,onPlay:p,onStop:g,onComplete:m,onRepeat:v,onUpdate:b}=e,y=(0,n.__rest)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:w}=y,x=0,_=y.duration,C=!1,A=!0,k=function(e){if(Array.isArray(e.to))return D;if(B[e.type])return B[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return u;return D}(y);(null===(o=k.needsInterpolation)||void 0===o?void 0:o.call(k,a,w))&&(i=N([0,100],[a,w],{clamp:!1}),a=0,w=100);let E=k(Object.assign(Object.assign({},y),{from:a,to:w}));return s&&(null==p||p(),(t=l(function(e){if(A||(e=-e),c+=e,!C){let e=E.next(Math.max(0,c));r=e.value,i&&(r=i(r)),C=A?e.done:c<=0}if(null==b||b(r),C){if(0===x&&(null!=_||(_=c)),x<d){var n,o;n=c,o=_,(A?n>=o+f:n<=-f)&&(x++,"reverse"===h?c=function(e,t,r=0,n=!0){return n?$(t+-e,t,r):t-(e-t)+r}(c,_,f,A=x%2==0):(c=$(c,_,f),"mirror"===h&&E.flipTarget()),C=!1,v&&v())}else t.stop(),m&&m()}})).start()),{stop:()=>{null==g||g(),t.stop()}}}var F=r(99296),q=r(86917);let H=(e,t)=>1-3*t+3*e,W=(e,t)=>3*t-6*e,V=e=>3*e,Z=(e,t,r)=>((H(t,r)*e+W(t,r))*e+V(t))*e,G=(e,t,r)=>3*H(t,r)*e*e+2*W(t,r)*e+V(t);var K={linear:j.GE,easeIn:j.YQ,easeInOut:j.mZ,easeOut:j.Vv,circIn:j.Z7,circInOut:j.X7,circOut:j.Bn,backIn:j.G2,backInOut:j.XL,backOut:j.CG,anticipate:j.LU,bounceIn:j.h9,bounceInOut:j.yD,bounceOut:j.gJ},Y=function(e){if(Array.isArray(e)){(0,i.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,n.__read)(e,4);return function(e,t,r,n){if(e===t&&r===n)return j.GE;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=Z(.1*t,e,r);return o=>0===o||1===o?o:Z(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;let a=n+(t-i[--o])/(i[o+1]-i[o])*.1,s=G(a,e,r);return s>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=G(t,r,n);if(0===i)break;let o=Z(t,r,n)-e;t-=o/i}return t}(t,a,e,r):0===s?a:function(e,t,r,n,i){let o,a;let s=0;do(o=Z(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?((0,i.k)(void 0!==K[e],"Invalid easing type '".concat(e,"'")),K[e]):e},Q=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&k.P.test(t)&&!t.startsWith("url("))},J=r(48488),X=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},ee=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},et=function(){return{type:"keyframes",ease:"linear",duration:.3}},er=function(e){return{type:"keyframes",duration:.8,values:e}},en={x:X,y:X,z:X,rotate:X,rotateX:X,rotateY:X,rotateZ:X,scaleX:ee,scaleY:ee,scale:ee,opacity:et,backgroundColor:et,color:et,default:ee},ei=function(e,t){var r;return r=(0,J.C)(t)?er:en[e]||en.default,(0,n.__assign)({to:t},r(t))},eo=r(79135),ea=r(8715),es=!1;function el(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function ec(e){return"number"==typeof e?0:(0,eo.T)("",e)}function eu(e,t){return e[t]||e.default||e}function ed(e,t,r,o){return void 0===o&&(o={}),t.start(function(a){var s,l,c,u,d,h,f,p,g,m,v,b=(u=r,f=null!==(d=(h=eu(o,e)).from)&&void 0!==d?d:t.get(),p=Q(e,u),"none"===f&&p&&"string"==typeof u?f=(0,eo.T)(e,u):el(f)&&"string"==typeof u?f=ec(u):!Array.isArray(u)&&el(u)&&"string"==typeof f&&(u=ec(f)),g=Q(e,f),(0,i.K)(g===p,"You are trying to animate ".concat(e,' from "').concat(f,'" to "').concat(u,'". ').concat(f," is not an animatable value - to enable this animation set ").concat(f," to a value animatable to ").concat(u," via the `style` property.")),g&&p&&!1!==h.type?function(){var r,o,s,l,c,d,p,g,m,v,b,y,w,x={from:f,to:u,velocity:t.getVelocity(),onComplete:a,onUpdate:function(e){return t.set(e)}};return"inertia"===h.type||"decay"===h.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:h,onStop:f}){let p;function g(e){return void 0!==r&&e<r||void 0!==n&&e>n}function m(e){return void 0===r?n:void 0===n?r:Math.abs(r-e)<Math.abs(n-e)?r:n}function v(e){null==p||p.stop(),p=z(Object.assign(Object.assign({},e),{driver:u,onUpdate:t=>{var r;null==d||d(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:h,onStop:f}))}function b(e){v(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:l},e))}if(g(e))b({from:e,velocity:t,to:m(e)});else{let n,a,s=i*t+e;void 0!==c&&(s=c(s));let u=m(s),d=u===r?-1:1;v({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:g(s)?e=>{n=a,a=e,t=(0,F.R)(e-n,(0,L.$B)().delta),(1===d&&e>u||-1===d&&e<u)&&b({from:e,to:u,velocity:t})}:void 0})}return{stop:()=>null==p?void 0:p.stop()}}((0,n.__assign)((0,n.__assign)({},x),h)):z((0,n.__assign)((0,n.__assign)({},(r=h,o=x,s=e,Array.isArray(o.to)&&(null!==(l=r.duration)&&void 0!==l||(r.duration=.8)),Array.isArray(o.to)&&null===o.to[0]&&(o.to=(0,n.__spreadArray)([],(0,n.__read)(o.to),!1),o.to[0]=o.from),(c=r).when,c.delay,c.delayChildren,c.staggerChildren,c.staggerDirection,c.repeat,c.repeatType,c.repeatDelay,c.from,Object.keys((0,n.__rest)(c,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(r=(0,n.__assign)((0,n.__assign)({},r),ei(s,o.to))),(0,n.__assign)((0,n.__assign)({},o),(p=(d=r).ease,g=d.times,m=d.yoyo,v=d.flip,b=d.loop,y=(0,n.__rest)(d,["ease","times","yoyo","flip","loop"]),w=(0,n.__assign)({},y),g&&(w.offset=g),y.duration&&(w.duration=(0,q.w)(y.duration)),y.repeatDelay&&(w.repeatDelay=(0,q.w)(y.repeatDelay)),p&&(w.ease=Array.isArray(p)&&"number"!=typeof p[0]?p.map(Y):Y(p)),"tween"===y.type&&(w.type="keyframes"),(m||b||v)&&((0,i.K)(!es,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),es=!0,m?w.repeatType="reverse":b?w.repeatType="loop":v&&(w.repeatType="mirror"),w.repeat=b||m||v||y.repeat),"spring"!==y.type&&(w.type="keyframes"),w)))),{onUpdate:function(e){var t;x.onUpdate(e),null===(t=h.onUpdate)||void 0===t||t.call(h,e)},onComplete:function(){var e;x.onComplete(),null===(e=h.onComplete)||void 0===e||e.call(h)}}))}:function(){var e,r,n=(0,ea.Y)(u);return t.set(n),a(),null===(e=null==h?void 0:h.onUpdate)||void 0===e||e.call(h,n),null===(r=null==h?void 0:h.onComplete)||void 0===r||r.call(h),{stop:function(){}}}),y=null!==(c=null!==(l=(eu(s=o,e)||{}).delay)&&void 0!==l?l:s.delay)&&void 0!==c?c:0,w=function(){return v=b()};return y?m=window.setTimeout(w,(0,q.w)(y)):w(),function(){clearTimeout(m),null==v||v.stop()}})}},21190:function(e,t,r){"use strict";r.d(t,{M:function(){return v}});var n=r(70655),i=r(67294),o=r(49304),a=r(54735),s=r(58868);function l(){var e=(0,i.useRef)(!1);return(0,s.L)(function(){return e.current=!0,function(){e.current=!1}},[]),e}var c=r(240),u=r(96681),d=r(76316),h=function(e){var t=e.children,r=e.initial,o=e.isPresent,a=e.onExitComplete,s=e.custom,l=e.presenceAffectsLayout,h=(0,u.h)(f),p=(0,d.M)(),g=(0,i.useMemo)(function(){return{id:p,initial:r,isPresent:o,custom:s,onExitComplete:function(e){var t,r;h.set(e,!0);try{for(var i=(0,n.__values)(h.values()),o=i.next();!o.done;o=i.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return h.set(e,!1),function(){return h.delete(e)}}}},l?void 0:[o]);return(0,i.useMemo)(function(){h.forEach(function(e,t){return h.set(t,!1)})},[o]),i.useEffect(function(){o||h.size||null==a||a()},[o]),i.createElement(c.O.Provider,{value:g},t)};function f(){return new Map}var p=r(25364),g=r(65411),m=function(e){return e.key||""},v=function(e){var t,r,c,u,d,f,v=e.children,b=e.custom,y=e.initial,w=void 0===y||y,x=e.onExitComplete,_=e.exitBeforeEnter,C=e.presenceAffectsLayout,A=void 0===C||C,k=(0,n.__read)((t=l(),c=(r=(0,n.__read)((0,i.useState)(0),2))[0],u=r[1],d=(0,i.useCallback)(function(){t.current&&u(c+1)},[c]),[(0,i.useCallback)(function(){return a.ZP.postRender(d)},[d]),c]),1)[0],E=(0,i.useContext)(p.p).forceRender;E&&(k=E);var S=l(),T=(f=[],i.Children.forEach(v,function(e){(0,i.isValidElement)(e)&&f.push(e)}),f),I=T,P=new Set,O=(0,i.useRef)(I),R=(0,i.useRef)(new Map).current,M=(0,i.useRef)(!0);if((0,s.L)(function(){M.current=!1,function(e,t){e.forEach(function(e){var r=m(e);t.set(r,e)})}(T,R),O.current=I}),(0,g.z)(function(){M.current=!0,R.clear(),P.clear()}),M.current)return i.createElement(i.Fragment,null,I.map(function(e){return i.createElement(h,{key:m(e),isPresent:!0,initial:!!w&&void 0,presenceAffectsLayout:A},e)}));I=(0,n.__spreadArray)([],(0,n.__read)(I),!1);for(var N=O.current.map(m),j=T.map(m),D=N.length,B=0;B<D;B++){var L=N[B];-1===j.indexOf(L)&&P.add(L)}return _&&P.size&&(I=[]),P.forEach(function(e){if(-1===j.indexOf(e)){var t=R.get(e);if(t){var r=N.indexOf(e);I.splice(r,0,i.createElement(h,{key:m(t),isPresent:!1,onExitComplete:function(){R.delete(e),P.delete(e);var t=O.current.findIndex(function(t){return t.key===e});if(O.current.splice(t,1),!P.size){if(O.current=T,!1===S.current)return;k(),x&&x()}},custom:b,presenceAffectsLayout:A},t))}}}),I=I.map(function(e){var t=e.key;return P.has(t)?e:i.createElement(h,{key:m(e),isPresent:!0,presenceAffectsLayout:A},e)}),"production"!==o.O&&_&&I.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),i.createElement(i.Fragment,null,P.size?I:I.map(function(e){return(0,i.cloneElement)(e)}))}},15947:function(e,t,r){"use strict";r.d(t,{hO:function(){return s},oO:function(){return a}});var n=r(67294),i=r(240),o=r(76316);function a(){var e=(0,n.useContext)(i.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,a=e.register,s=(0,o.M)();return(0,n.useEffect)(function(){return a(s)},[]),!t&&r?[!1,function(){return null==r?void 0:r(s)}]:[!0]}function s(){var e;return null===(e=(0,n.useContext)(i.O))||e.isPresent}},25364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});var n=(0,r(67294).createContext)({})},16014:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});var n=(0,r(67294).createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(67294).createContext)(null)},24262:function(e,t,r){"use strict";r.d(t,{E:function(){return na}});var n,i,o,a,s,l=r(70655),c=r(67294),u=r(49304),d=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},h={measureLayout:d(["layout","layoutId","drag"]),animation:d(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:d(["exit"]),drag:d(["drag","dragControls"]),focus:d(["whileFocus"]),hover:d(["whileHover","onHoverStart","onHoverEnd"]),tap:d(["whileTap","onTap","onTapStart","onTapCancel"]),pan:d(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:d(["whileInView","onViewportEnter","onViewportLeave"])},f=r(24394),p=(0,c.createContext)({strict:!1}),g=Object.keys(h),m=g.length,v=r(16014),b=(0,c.createContext)({}),y=r(240),w=r(58868),x=r(11741),_={current:null},C=!1;function A(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function k(e){return Array.isArray(e)}function E(e){return"string"==typeof e||k(e)}function S(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function T(e,t,r){var n,i,o=e.getProps();return S(o,t,null!=r?r:o.custom,(n={},e.forEachValue(function(e,t){return n[t]=e.get()}),n),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function I(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||E(e.initial)||E(e.animate)||E(e.whileHover)||E(e.whileDrag)||E(e.whileTap)||E(e.whileFocus)||E(e.exit)}function P(e){return!!(I(e)||e.variants)}function O(e){return Array.isArray(e)?e.join(" "):e}var R=r(96681),M={hasAnimatedSinceResize:!0,hasEverUpdated:!1},N=1,j=r(25364),D=(0,c.createContext)({}),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(c.Component),L=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function $(e){if("string"!=typeof e||e.includes("-"));else if(L.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var U={},z=["","X","Y","Z"],F=["transformPerspective","x","y","z"];function q(e,t){return F.indexOf(e)-F.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return z.forEach(function(t){return F.push(e+t)})});var H=new Set(F);function W(e){return H.has(e)}var V=new Set(["originX","originY","originZ"]);function Z(e,t){var r=t.layout,n=t.layoutId;return W(e)||V.has(e)||(r||void 0!==n)&&(!!U[e]||"opacity"===e)}var G=r(40406),K={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Y(e){return e.startsWith("--")}var Q=r(36173);function J(e,t,r,n){var i,o,a,s,l=e.style,c=e.vars,u=e.transform,d=e.transformKeys,h=e.transformOrigin;d.length=0;var f=!1,p=!1,g=!0;for(var m in t){var v=t[m];if(Y(m)){c[m]=v;continue}var b=Q.j[m],y=b&&"number"==typeof v?b.transform(v):v;if(W(m)){if(f=!0,u[m]=y,d.push(m),!g)continue;v!==(null!==(s=b.default)&&void 0!==s?s:0)&&(g=!1)}else V.has(m)?(h[m]=y,p=!0):l[m]=y}f?l.transform=function(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=t.allowTransformNone,l="";o.sort(q);for(var c=!1,u=o.length,d=0;d<u;d++){var h=o[d];l+="".concat(K[h]||h,"(").concat(i[h],") "),"z"===h&&(c=!0)}return!c&&(void 0===a||a)?l+="translateZ(0)":l=l.trim(),n?l=n(i,r?"":l):(void 0===s||s)&&r&&(l="none"),l}(e,r,g,n):n?l.transform=n({},""):!t.transform&&l.transform&&(l.transform="none"),p&&(l.transformOrigin=(i=h.originX,o=h.originY,a=h.originZ,"".concat(void 0===i?"50%":i," ").concat(void 0===o?"50%":o," ").concat(void 0===a?0:a)))}var X=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function ee(e,t,r){for(var n in t)(0,G.i)(t[n])||Z(n,r)||(e[n]=t[n])}var et=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function er(e){return et.has(e)}var en=function(e){return!er(e)};try{(n=require("@emotion/is-prop-valid").default)&&(en=function(e){return e.startsWith("on")?!er(e):n(e)})}catch(e){}var ei=r(2969);function eo(e,t,r){return"string"==typeof e?e:ei.px.transform(t+r*e)}var ea={offset:"stroke-dashoffset",array:"stroke-dasharray"},es={offset:"strokeDashoffset",array:"strokeDasharray"};function el(e,t,r,n){var i,o,a,s,c,u,d,h,f,p,g=t.attrX,m=t.attrY,v=t.originX,b=t.originY,y=t.pathLength,w=t.pathSpacing,x=t.pathOffset;J(e,(0,l.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var _=e.attrs,C=e.style,A=e.dimensions;_.transform&&(A&&(C.transform=_.transform),delete _.transform),A&&(void 0!==v||void 0!==b||C.transform)&&(C.transformOrigin=(i=void 0!==v?v:.5,o=void 0!==b?b:.5,a=eo(i,A.x,A.width),s=eo(o,A.y,A.height),"".concat(a," ").concat(s))),void 0!==g&&(_.x=g),void 0!==m&&(_.y=m),void 0!==y&&(d=!1,void 0===(c=void 0===w?1:w)&&(c=1),void 0===(u=void 0===x?0:x)&&(u=0),void 0===d&&(d=!0),_.pathLength=1,_[(h=d?ea:es).offset]=ei.px.transform(-u),f=ei.px.transform(y),p=ei.px.transform(c),_[h.array]="".concat(f," ").concat(p))}var ec=function(){return(0,l.__assign)((0,l.__assign)({},X()),{attrs:{}})},eu=/([a-z])([A-Z])/g,ed=function(e){return e.replace(eu,"$1-$2").toLowerCase()};function eh(e,t,r,n){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,n&&n.getProjectionStyles(r)),o)e.style.setProperty(a,o[a])}var ef=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function ep(e,t,r,n){for(var i in eh(e,t,void 0,n),t.attrs)e.setAttribute(ef.has(i)?i:ed(i),t.attrs[i])}function eg(e){var t=e.style,r={};for(var n in t)((0,G.i)(t[n])||Z(n,e))&&(r[n]=t[n]);return r}function em(e){var t=eg(e);for(var r in e)(0,G.i)(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function ev(e){return"object"==typeof e&&"function"==typeof e.start}var eb=r(8715);function ey(e){var t=(0,G.i)(e)?e.get():e;return(0,eb.p)(t)?t.toValue():t}function ew(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:function(e,t,r,n){var i={},o=(null==r?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=ey(a[s]);var c=e.initial,u=e.animate,d=I(e),h=P(e);t&&h&&!d&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=u||(u=t.animate));var f=o||!1===c,p=f?u:c;return p&&"boolean"!=typeof p&&!ev(p)&&(Array.isArray(p)?p:[p]).forEach(function(t){var r=S(e,t);if(r){var n=r.transitionEnd;r.transition;var o=(0,l.__rest)(r,["transitionEnd","transition"]);for(var a in o){var s=o[a];if(Array.isArray(s)){var c=f?s.length-1:0;s=s[c]}null!==s&&(i[a]=s)}for(var a in n)i[a]=n[a]}}),i}(t,r,n,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var ex=function(e){return function(t,r){var n=(0,c.useContext)(b),i=(0,c.useContext)(y.O);return r?ew(e,t,n,i):(0,R.h)(function(){return ew(e,t,n,i)})}},e_={useVisualState:ex({scrapeMotionValuesFromProps:em,createRenderState:ec,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}el(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),ep(t,n)}})},eC={useVisualState:ex({scrapeMotionValuesFromProps:eg,createRenderState:X})};function eA(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function ek(e,t,r,n){(0,c.useEffect)(function(){var i=e.current;if(r&&i)return eA(i,t,r,n)},[e,t,r,n])}function eE(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(i=a||(a={})).Animate="animate",i.Hover="whileHover",i.Tap="whileTap",i.Drag="whileDrag",i.Focus="whileFocus",i.InView="whileInView",i.Exit="exit";var eS={pageX:0,pageY:0};function eT(e,t){var r,n,i;return void 0===t&&(t="page"),{point:e.touches?(void 0===(r=t)&&(r="page"),{x:(n=e.touches[0]||e.changedTouches[0]||eS)[r+"X"],y:n[r+"Y"]}):(void 0===(i=t)&&(i="page"),{x:e[i+"X"],y:e[i+"Y"]})}}var eI=function(e,t){void 0===t&&(t=!1);var r=function(t){return e(t,eT(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}:r},eP={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},eO={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function eR(e){if(x.j&&null===window.onpointerdown);else if(x.j&&null===window.ontouchstart)return eO[e];else if(x.j&&null===window.onmousedown)return eP[e];return e}function eM(e,t,r,n){return eA(e,eR(t),eI(r,"pointerdown"===t),n)}function eN(e,t,r,n){return ek(e,eR(t),r&&eI(r,"pointerdown"===t),n)}function ej(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var eD=ej("dragHorizontal"),eB=ej("dragVertical");function eL(e){var t=!1;if("y"===e)t=eB();else if("x"===e)t=eD();else{var r=eD(),n=eB();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function e$(){var e=eL(!0);return!e||(e(),!1)}function eU(e,t,r){return function(n,i){var o;!eE(n)||e$()||(null===(o=e.animationState)||void 0===o||o.setActive(a.Hover,t),null==r||r(n,i))}}var ez=function(e,t){return!!t&&(e===t||ez(e,t.parentElement))},eF=r(65411),eq=r(9897),eH=new Set,eW=new WeakMap,eV=new WeakMap,eZ=function(e){var t;null===(t=eW.get(e.target))||void 0===t||t(e)},eG=function(e){e.forEach(eZ)},eK={some:0,all:1},eY=function(e){return function(t){return e(t),null}},eQ={inView:eY(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=void 0===o?{}:o,d=(0,c.useRef)({hasEnteredView:!1,isInView:!1}),h=!!(r||n||i);s.once&&d.current.hasEnteredView&&(h=!1),("undefined"==typeof IntersectionObserver?function(e,t,r,n){var i=n.fallback,o=void 0===i||i;(0,c.useEffect)(function(){if(e&&o){if("production"!==u.O){var n;n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",eH.has(n)||(console.warn(n),eH.add(n))}requestAnimationFrame(function(){t.hasEnteredView=!0;var e,n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(a.InView,!0)})}},[e])}:function(e,t,r,n){var i=n.root,o=n.margin,s=n.amount,u=void 0===s?"some":s,d=n.once;(0,c.useEffect)(function(){if(e){var n,s,c,h,f,p,g,m,v={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof u?u:eK[u]};return n=r.getInstance(),s=function(e){var n,i=e.isIntersecting;if(t.isInView!==i){if(t.isInView=i,d&&!i&&t.hasEnteredView)return;i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(a.InView,i);var o=r.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;null==s||s(e)}},c=v.root,h=(0,l.__rest)(v,["root"]),f=c||document,eV.has(f)||eV.set(f,{}),(p=eV.get(f))[g=JSON.stringify(h)]||(p[g]=new IntersectionObserver(eG,(0,l.__assign)({root:c},h))),m=p[g],eW.set(n,s),m.observe(n),function(){eW.delete(n),m.unobserve(n)}}},[e,i,o,u])})(h,d.current,t,s)}),tap:eY(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||r||n||i,l=(0,c.useRef)(!1),u=(0,c.useRef)(null),d={passive:!(r||t||n||m)};function h(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function f(){var e;return h(),l.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(a.Tap,!1),!e$()}function p(e,r){f()&&(ez(o.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function g(e,t){f()&&(null==n||n(e,t))}function m(e,t){var n;h(),l.current||(l.current=!0,u.current=(0,eq.z)(eM(window,"pointerup",p,d),eM(window,"pointercancel",g,d)),null===(n=o.animationState)||void 0===n||n.setActive(a.Tap,!0),null==r||r(e,t))}eN(o,"pointerdown",s?m:void 0,d),(0,eF.z)(h)}),focus:eY(function(e){var t=e.whileFocus,r=e.visualElement;ek(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(a.Focus,!0)}:void 0),ek(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(a.Focus,!1)}:void 0)}),hover:eY(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;eN(i,"pointerenter",t||n?eU(i,!0,t):void 0,{passive:!t}),eN(i,"pointerleave",r||n?eU(i,!1,r):void 0,{passive:!r})})},eJ=r(15947),eX=r(48488);function e0(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var e1=r(81593),e2=r(28407),e3=r(33234),e5=r(79135),e6=r(87405),e4=r(11248),e8=function(e){return function(t){return t.test(e)}},e9=[e4.Rx,ei.px,ei.aQ,ei.RW,ei.vw,ei.vh,{test:function(e){return"auto"===e},parse:function(e){return e}}],e7=function(e){return e9.find(e8(e))},te=(0,l.__spreadArray)((0,l.__spreadArray)([],(0,l.__read)(e9),!1),[e6.$,e2.P],!1);function tt(e,t,r){void 0===r&&(r={});var n,i=T(e,t,r.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return tr(e,i,r)}:function(){return Promise.resolve()},c=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var i,o,s,c,u,d,h,f=a.delayChildren;return i=(void 0===f?0:f)+n,o=a.staggerChildren,s=a.staggerDirection,c=r,void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=1),u=[],d=(e.variantChildren.size-1)*o,h=1===s?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),d-e*o},Array.from(e.variantChildren).sort(tn).forEach(function(e,r){u.push(tt(e,t,(0,l.__assign)((0,l.__assign)({},c),{delay:i+h(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(u)}:function(){return Promise.resolve()},u=a.when;if(!u)return Promise.all([s(),c(r.delay)]);var d=(0,l.__read)("beforeChildren"===u?[s,c]:[c,s],2),h=d[0],f=d[1];return h().then(f)}function tr(e,t,r){var n,i=void 0===r?{}:r,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,c=i.type,u=e.makeTargetAnimatable(t),d=u.transition,h=void 0===d?e.getDefaultTransition():d,f=u.transitionEnd,p=(0,l.__rest)(u,["transition","transitionEnd"]);s&&(h=s);var g=[],m=c&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[c]);for(var v in p){var b=e.getValue(v),y=p[v];if(!(!b||void 0===y||m&&function(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,i}(m,v))){var w=(0,l.__assign)({delay:a},h);e.shouldReduceMotion&&W(v)&&(w=(0,l.__assign)((0,l.__assign)({},w),{type:!1,delay:0}));var x=(0,e1.b8)(v,b,y,w);g.push(x)}}return Promise.all(g).then(function(){f&&function(e,t){var r=T(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd;n.transition;var o=(0,l.__rest)(n,["transitionEnd","transition"]);for(var a in o=(0,l.__assign)((0,l.__assign)({},o),void 0===i?{}:i)){var s=(0,eb.Y)(o[a]);e.hasValue(a)?e.getValue(a).set(s):e.addValue(a,(0,e3.B)(s))}}(e,f)})}function tn(e,t){return e.sortNodePosition(t)}var ti=[a.Animate,a.InView,a.Focus,a.Hover,a.Tap,a.Drag,a.Exit],to=(0,l.__spreadArray)([],(0,l.__read)(ti),!1).reverse(),ta=ti.length;function ts(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var tl={animation:eY(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(t){return Promise.all(t.map(function(t){return function(e,t,r){if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var n;n=Promise.all(t.map(function(t){return tt(e,t,r)}))}else if("string"==typeof t)n=tt(e,t,r);else{var i="function"==typeof t?T(e,t,r.custom):t;n=tr(e,i,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))},n=((t={})[a.Animate]=ts(!0),t[a.InView]=ts(),t[a.Hover]=ts(),t[a.Tap]=ts(),t[a.Drag]=ts(),t[a.Focus]=ts(),t[a.Exit]=ts(),t),i={},o=!0,s=function(t,r){var n=T(e,r);if(n){n.transition;var i=n.transitionEnd,o=(0,l.__rest)(n,["transition","transitionEnd"]);t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),o),i)}return t};function c(t,a){for(var c,u=e.getProps(),d=e.getVariantContext(!0)||{},h=[],f=new Set,p={},g=1/0,m=0;m<ta;m++)!function(r){var i,m=to[r],v=n[m],b=null!==(c=u[m])&&void 0!==c?c:d[m],y=E(b),w=m===a?v.isActive:null;!1===w&&(g=r);var x=b===d[m]&&b!==u[m]&&y;if(x&&o&&e.manuallyAnimateOnMount&&(x=!1),v.protectedKeys=(0,l.__assign)({},p),!(!v.isActive&&null===w||!b&&!v.prevProp||ev(b))&&"boolean"!=typeof b){var _=(i=v.prevProp,"string"==typeof b?b!==i:!!k(b)&&!e0(b,i)),C=_||m===a&&v.isActive&&!x&&y||r>g&&y,A=Array.isArray(b)?b:[b],S=A.reduce(s,{});!1===w&&(S={});var T=v.prevResolvedValues,I=void 0===T?{}:T,P=(0,l.__assign)((0,l.__assign)({},I),S),O=function(e){C=!0,f.delete(e),v.needsAnimating[e]=!0};for(var R in P){var M=S[R],N=I[R];p.hasOwnProperty(R)||(M!==N?(0,eX.C)(M)&&(0,eX.C)(N)?!e0(M,N)||_?O(R):v.protectedKeys[R]=!0:void 0!==M?O(R):f.add(R):void 0!==M&&f.has(R)?O(R):v.protectedKeys[R]=!0)}v.prevProp=b,v.prevResolvedValues=S,v.isActive&&(p=(0,l.__assign)((0,l.__assign)({},p),S)),o&&e.blockInitialAnimation&&(C=!1),C&&!x&&h.push.apply(h,(0,l.__spreadArray)([],(0,l.__read)(A.map(function(e){return{animation:e,options:(0,l.__assign)({type:m},t)}})),!1))}}(m);if(i=(0,l.__assign)({},p),f.size){var v={};f.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(v[t]=r)}),h.push({animation:v})}var b=!!h.length;return o&&!1===u.initial&&!e.manuallyAnimateOnMount&&(b=!1),o=!1,b?r(h):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:c,setActive:function(t,r,i){if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var o,a=c(i,t);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),ev(r)&&(0,c.useEffect)(function(){return r.subscribe(t)},[r])}),exit:eY(function(e){var t=e.custom,r=e.visualElement,n=(0,l.__read)((0,eJ.oO)(),2),i=n[0],o=n[1],s=(0,c.useContext)(y.O);(0,c.useEffect)(function(){r.isPresent=i;var e,n,l=null===(e=r.animationState)||void 0===e?void 0:e.setActive(a.Exit,!i,{custom:null!==(n=null==s?void 0:s.custom)&&void 0!==n?n:t});i||null==l||l.then(o)},[i])})},tc=r(54735),tu=r(86917);let td=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),th=e=>td(e)&&e.hasOwnProperty("z");var tf=r(80734);let tp=(e,t)=>Math.abs(e-t);function tg(e,t){return(0,tf.e)(e)&&(0,tf.e)(t)?tp(e,t):td(e)&&td(t)?Math.sqrt(Math.pow(tp(e.x,t.x),2)+Math.pow(tp(e.y,t.y),2)+Math.pow(th(e)&&th(t)?tp(e.z,t.z):0,2)):void 0}var tm=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=ty(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=tg(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,o=(0,tc.$B)().timestamp;n.history.push((0,l.__assign)((0,l.__assign)({},i),{timestamp:o}));var a=n.handlers,s=a.onStart,c=a.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),c&&c(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(n.lastMoveEvent=e,n.lastMoveEventInfo=tv(t,n.transformPagePoint),eE(e)&&0===e.buttons){n.handlePointerUp(e,t);return}tc.ZP.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,o=r.onSessionEnd,a=ty(tv(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,a),o&&o(e,a)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=tv(eT(e),this.transformPagePoint),a=o.point,s=(0,tc.$B)().timestamp;this.history=[(0,l.__assign)((0,l.__assign)({},a),{timestamp:s})];var c=t.onSessionStart;c&&c(e,ty(o,this.history)),this.removeListeners=(0,eq.z)(eM(window,"pointermove",this.handlePointerMove),eM(window,"pointerup",this.handlePointerUp),eM(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),tc.qY.update(this.updatePoint)},e}();function tv(e,t){return t?{point:t(e.point)}:e}function tb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ty(e,t){var r=e.point;return{point:r,delta:tb(r,tw(t)),offset:tb(r,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=tw(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>(0,tu.w)(.1)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function tw(e){return e[e.length-1]}var tx=r(72453),t_=r(9326),tC=r(6773);function tA(e){return e.max-e.min}function tk(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),tg(e,t)<r}function tE(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=(0,tx.C)(t.min,t.max,e.origin),e.scale=tA(r)/tA(t),(tk(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=(0,tx.C)(r.min,r.max,e.origin)-e.originPoint,(tk(e.translate)||isNaN(e.translate))&&(e.translate=0)}function tS(e,t,r,n){tE(e.x,t.x,r.x,null==n?void 0:n.originX),tE(e.y,t.y,r.y,null==n?void 0:n.originY)}function tT(e,t,r){e.min=r.min+t.min,e.max=e.min+tA(t)}function tI(e,t,r){e.min=t.min-r.min,e.max=e.min+tA(t)}function tP(e,t,r){tI(e.x,t.x,r.x),tI(e.y,t.y,r.y)}function tO(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function tR(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=(0,l.__read)([i,n],2))[0],i=r[1]),{min:n,max:i}}function tM(e,t,r){return{min:tN(e,t),max:tN(e,r)}}function tN(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}var tj=function(){return{translate:0,scale:1,origin:0,originPoint:0}},tD=function(){return{x:tj(),y:tj()}},tB=function(){return{min:0,max:0}},tL=function(){return{x:tB(),y:tB()}};function t$(e){return[e("x"),e("y")]}function tU(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function tz(e){return void 0===e||1===e}function tF(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!tz(t)||!tz(r)||!tz(n)}function tq(e){var t,r;return tF(e)||(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r||e.z||e.rotate||e.rotateX||e.rotateY}function tH(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function tW(e,t,r,n,i){void 0===t&&(t=0),void 0===r&&(r=1),e.min=tH(e.min,t,r,n,i),e.max=tH(e.max,t,r,n,i)}function tV(e,t){var r=t.x,n=t.y;tW(e.x,r.translate,r.scale,r.originPoint),tW(e.y,n.translate,n.scale,n.originPoint)}function tZ(e,t){e.min=e.min+t,e.max=e.max+t}function tG(e,t,r){var n=(0,l.__read)(r,3),i=n[0],o=n[1],a=n[2],s=void 0!==t[a]?t[a]:.5,c=(0,tx.C)(e.min,e.max,s);tW(e,t[i],t[o],c,t.scale)}var tK=["x","scaleX","originX"],tY=["y","scaleY","originY"];function tQ(e,t){tG(e.x,t,tK),tG(e.y,t,tY)}function tJ(e,t){return tU(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var tX=new WeakMap,t0=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tL(),this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,i=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new tm(e,{onSessionStart:function(e){r.stopAnimation(),i&&r.snapToCursor(eT(e,"page").point)},onStart:function(e,t){var n,i=r.getProps(),o=i.drag,s=i.dragPropagation,l=i.onDragStart;(!o||s||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=eL(o),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),t$(function(e){var t,n,i=r.getAxisMotionValue(e).get()||0;if(ei.aQ.test(i)){var o=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];if(o){var a=tA(o);i=parseFloat(i)/100*a}}r.originPoint[e]=i}),null==l||l(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(a.Drag,!0))},onMove:function(e,t){var n=r.getProps(),i=n.dragPropagation,o=n.dragDirectionLock,a=n.onDirectionLock,s=n.onDrag;if(i||r.openGlobalLock){var l,c,u=t.offset;if(o&&null===r.currentDirection){r.currentDirection=(void 0===l&&(l=10),c=null,Math.abs(u.y)>l?c="y":Math.abs(u.x)>l&&(c="x"),c),null!==r.currentDirection&&(null==a||a(r.currentDirection));return}r.updateAxis("x",t.point,u),r.updateAxis("y",t.point,u),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(a.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&t1(e,n,this.currentDirection)){var i,o,a,s,l,c=this.getAxisMotionValue(e),u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=u,o=this.constraints[e],a=this.elastic[e],s=o.min,l=o.max,void 0!==s&&i<s?i=a?(0,tx.C)(s,i,a.min):Math.max(i,s):void 0!==l&&i>l&&(i=a?(0,tx.C)(l,i,a.max):Math.min(i,l)),u=i),c.set(u)}},e.prototype.resolveConstraints=function(){var e,t,r,n,i,o,a=this,s=this.getProps(),l=s.dragConstraints,c=s.dragElastic,u=(this.visualElement.projection||{}).layout,d=this.constraints;l&&A(l)?this.constraints||(this.constraints=this.resolveRefConstraints()):l&&u?this.constraints=(e=u.actual,t=l.top,r=l.left,n=l.bottom,i=l.right,{x:tO(e.x,r,i),y:tO(e.y,t,n)}):this.constraints=!1,this.elastic=(void 0===(o=c)&&(o=.35),!1===o?o=0:!0===o&&(o=.35),{x:tM(o,"left","right"),y:tM(o,"top","bottom")}),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&t$(function(e){if(a.getAxisMotionValue(e)){var t,r,n;a.constraints[e]=(t=u.actual[e],r=a.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n)}})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!A(t))return!1;var n=t.current;(0,f.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=(s=i.root,l=tJ(n,this.visualElement.getTransformPagePoint()),(c=s.scroll)&&(tZ(l.x,c.x),tZ(l.y,c.y)),l),a={x:tR((u=i.layout.actual).x,o.x),y:tR(u.y,o.y)};if(r){var s,l,c,u,d,h,p,g=r((h=(d=a).x,{top:(p=d.y).min,right:h.max,bottom:p.max,left:h.min}));this.hasMutatedConstraints=!!g,g&&(a=tU(g))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,o=r.dragElastic,a=r.dragTransition,s=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{};return Promise.all(t$(function(r){if(t1(r,n,t.currentDirection)){var c,d=null!==(c=null==u?void 0:u[r])&&void 0!==c?c:{};s&&(d={min:0,max:0});var h=(0,l.__assign)((0,l.__assign)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a),d);return t.startAxisValueAnimation(r,h)}})).then(c)},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);return(0,e1.b8)(e,r,0,t)},e.prototype.stopAnimation=function(){var e=this;t$(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;t$(function(r){if(t1(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r],a=o.min,s=o.max;i.set(e[r]-(0,tx.C)(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,o=this.visualElement.projection;if(A(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};t$(function(e){var r=t.getAxisMotionValue(e);if(r){var n,i,o,s,l,c=r.get();a[e]=(n={min:c,max:c},i=t.constraints[e],o=.5,s=tA(n),(l=tA(i))>s?o=(0,t_.Y)(i.min,i.max-s,n.min):s>l&&(o=(0,t_.Y)(n.min,n.max-l,i.min)),(0,tC.u)(0,1,o))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),t$(function(e){if(t1(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;r.set((0,tx.C)(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;tX.set(this.visualElement,this);var r=eM(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){A(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var a=eA(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(t$(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){a(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=e.dragDirectionLock,n=e.dragPropagation,i=e.dragConstraints,o=e.dragElastic,a=e.dragMomentum;return(0,l.__assign)((0,l.__assign)({},e),{drag:void 0!==t&&t,dragDirectionLock:void 0!==r&&r,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==i&&i,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a})},e}();function t1(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var t2={pan:eY(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=(0,c.useRef)(null),s=(0,c.useContext)(v._).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){a.current=null,n&&n(e,t)}};(0,c.useEffect)(function(){null!==a.current&&a.current.updateHandlers(l)}),eN(o,"pointerdown",(t||r||n||i)&&function(e){a.current=new tm(e,l,{transformPagePoint:s})}),(0,eF.z)(function(){return a.current&&a.current.end()})}),drag:eY(function(e){var t=e.dragControls,r=e.visualElement,n=(0,R.h)(function(){return new t0(r)});(0,c.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,c.useEffect)(function(){return n.addListeners()},[n])})},t3=r(21560),t5=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],t6=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,u=e.removeValueFromRenderState,d=e.sortNodePosition,h=e.scrapeMotionValuesFromProps;return function(e,t){var f,p,g,m,v,b=e.parent,y=e.props,w=e.presenceId,x=e.blockInitialAnimation,_=e.visualState,C=e.shouldReduceMotion;void 0===t&&(t={});var A=!1,k=_.latestValues,S=_.renderState,T=(f=t5.map(function(){return new t3.L}),p={},g={clearAllListeners:function(){return f.forEach(function(e){return e.clear()})},updatePropListeners:function(e){t5.forEach(function(t){var r,n="on"+t,i=e[n];null===(r=p[t])||void 0===r||r.call(p),i&&(p[t]=g[n](i))})}},f.forEach(function(e,t){g["on"+t5[t]]=function(t){return e.add(t)},g["notify"+t5[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,(0,l.__spreadArray)([],(0,l.__read)(t),!1))}}),g),O=new Map,R=new Map,M={},N=(0,l.__assign)({},k);function j(){m&&A&&(D(),s(m,S,y.style,H.projection))}function D(){n(H,S,k,t,y)}function B(){T.notifyUpdate(k)}function L(e,t){var r=t.onChange(function(t){k[e]=t,y.onUpdate&&tc.ZP.update(B,!1,!0)}),n=t.onRenderRequest(H.scheduleRender);R.set(e,function(){r(),n()})}var $=h(y);for(var U in $){var z=$[U];void 0!==k[U]&&(0,G.i)(z)&&z.set(k[U],!1)}var F=I(y),q=P(y),H=(0,l.__assign)((0,l.__assign)({treeType:r,current:null,depth:b?b.depth+1:0,parent:b,children:new Set,presenceId:w,shouldReduceMotion:C,variantChildren:q?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(null==b?void 0:b.isMounted()),blockInitialAnimation:x,isMounted:function(){return!!m},mount:function(e){A=!0,m=H.current=e,H.projection&&H.projection.mount(e),q&&b&&!F&&(v=null==b?void 0:b.addVariantChild(H)),O.forEach(function(e,t){return L(t,e)}),null==b||b.children.add(H),H.setProps(y)},unmount:function(){var e;null===(e=H.projection)||void 0===e||e.unmount(),tc.qY.update(B),tc.qY.render(j),R.forEach(function(e){return e()}),null==v||v(),null==b||b.children.delete(H),T.clearAllListeners(),m=void 0,A=!1},addVariantChild:function(e){var t,r=H.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&r===e.treeType?d(H.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return q?H:null==b?void 0:b.getClosestVariantNode()},getLayoutId:function(){return y.layoutId},getInstance:function(){return m},getStaticValue:function(e){return k[e]},setStaticValue:function(e,t){return k[e]=t},getLatestValues:function(){return k},setVisibility:function(e){H.isVisible!==e&&(H.isVisible=e,H.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(H,e,y,t)},measureViewportBox:function(){return a(m,y)},addValue:function(e,t){H.hasValue(e)&&H.removeValue(e),O.set(e,t),k[e]=t.get(),L(e,t)},removeValue:function(e){var t;O.delete(e),null===(t=R.get(e))||void 0===t||t(),R.delete(e),delete k[e],u(e,S)},hasValue:function(e){return O.has(e)},getValue:function(e,t){var r=O.get(e);return void 0===r&&void 0!==t&&(r=(0,e3.B)(t),H.addValue(e,r)),r},forEachValue:function(e){return O.forEach(e)},readValue:function(e){var r;return null!==(r=k[e])&&void 0!==r?r:c(m,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(i){var t=i(y,e);if(void 0!==t&&!(0,G.i)(t))return t}return N[e]}},T),{build:function(){return D(),S},scheduleRender:function(){tc.ZP.render(j,!1,!0)},syncRender:j,setProps:function(e){(e.transformTemplate||y.transformTemplate)&&H.scheduleRender(),y=e,T.updatePropListeners(e),M=function(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if((0,G.i)(o))e.addValue(i,o);else if((0,G.i)(a))e.addValue(i,(0,e3.B)(o));else if(a!==o){if(e.hasValue(i)){var s=e.getValue(i);s.hasAnimated||s.set(o)}else e.addValue(i,(0,e3.B)(null!==(n=e.getStaticValue(i))&&void 0!==n?n:o))}}for(var i in r)void 0===t[i]&&e.removeValue(i);return t}(H,h(y),M)},getProps:function(){return y},getVariant:function(e){var t;return null===(t=y.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return y.transition},getTransformPagePoint:function(){return y.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==b?void 0:b.getVariantContext();if(!F){var t=(null==b?void 0:b.getVariantContext())||{};return void 0!==y.initial&&(t.initial=y.initial),t}for(var r={},n=0;n<t8;n++){var i=t4[n],o=y[i];(E(o)||!1===o)&&(r[i]=o)}return r}});return H}},t4=(0,l.__spreadArray)(["initial"],(0,l.__read)(ti),!1),t8=t4.length;function t9(e){return"string"==typeof e&&e.startsWith("var(--")}var t7=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function re(e,t,r){void 0===r&&(r=1),(0,f.k)(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=(0,l.__read)(function(e){var t=t7.exec(e);if(!t)return[,];var r=(0,l.__read)(t,3);return[r[1],r[2]]}(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():t9(o)?re(o,t,r+1):o}}var rt=new Set(["width","height","top","left","right","bottom","x","y"]),rr=function(e){return rt.has(e)},rn=function(e,t){e.set(t,!1),e.set(t)},ri=function(e){return e===e4.Rx||e===ei.px};(o=s||(s={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";var ro=function(e,t){return parseFloat(e.split(", ")[t])},ra=function(e,t){return function(r,n){var i=n.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return ro(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?ro(a[1],e):0}},rs=new Set(["x","y","z"]),rl=F.filter(function(e){return!rs.has(e)}),rc={width:function(e,t){var r=e.x,n=t.paddingLeft,i=t.paddingRight;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},height:function(e,t){var r=e.y,n=t.paddingTop,i=t.paddingBottom;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:ra(4,13),y:ra(5,14)},ru=function(e,t,r){var n=t.measureViewportBox(),i=getComputedStyle(t.getInstance()),o=i.display,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){a[e]=rc[e](n,i)}),t.syncRender();var s=t.measureViewportBox();return r.forEach(function(r){rn(t.getValue(r),a[r]),e[r]=rc[r](s,i)}),e},rd=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=(0,l.__assign)({},t),n=(0,l.__assign)({},n);var i=Object.keys(t).filter(rr),o=[],a=!1,s=[];if(i.forEach(function(i){var l,c=e.getValue(i);if(e.hasValue(i)){var u=r[i],d=e7(u),h=t[i];if((0,eX.C)(h)){var p=h.length,g=null===h[0]?1:0;d=e7(u=h[g]);for(var m=g;m<p;m++)l?(0,f.k)(e7(h[m])===l,"All keyframes must be of the same type"):(l=e7(h[m]),(0,f.k)(l===d||ri(d)&&ri(l),"Keyframes must be of the same dimension as the current value"))}else l=e7(h);if(d!==l){if(ri(d)&&ri(l)){var v,b=c.get();"string"==typeof b&&c.set(parseFloat(b)),"string"==typeof h?t[i]=parseFloat(h):Array.isArray(h)&&l===ei.px&&(t[i]=h.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===u||0===h)?0===u?c.set(l.transform(u)):t[i]=d.transform(h):(a||(v=[],rl.forEach(function(t){var r=e.getValue(t);void 0!==r&&(v.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))}),v.length&&e.syncRender(),o=v,a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],rn(c,h))}}}),!s.length)return{target:t,transitionEnd:n};var c=s.indexOf("height")>=0?window.pageYOffset:null,u=ru(t,e,s);return o.length&&o.forEach(function(t){var r=(0,l.__read)(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:u,transitionEnd:n}},rh=function(e,t,r,n){var i,o,a=function(e,t,r){var n,i=(0,l.__rest)(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};for(var a in r&&(r=(0,l.__assign)({},r)),e.forEachValue(function(e){var t=e.get();if(t9(t)){var r=re(t,o);r&&e.set(r)}}),i){var s=i[a];if(t9(s)){var c=re(s,o);c&&(i[a]=c,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=s)))}}return{target:i,transitionEnd:r}}(e,t,n);return i=t=a.target,o=n=a.transitionEnd,Object.keys(i).some(rr)?rd(e,i,r,o):{target:i,transitionEnd:o}},rf=r(2728),rp={treeType:"dom",readValueFromInstance:function(e,t){if(W(t)){var r=(0,rf.A)(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Y(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return tJ(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var o=t.transition,a=t.transitionEnd,s=(0,l.__rest)(t,["transition","transitionEnd"]),c=function(e,t,r){var n,i,o={};for(var a in e)o[a]=null!==(n=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t))&&void 0!==n?n:null===(i=r.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),c&&(c=i(c))),n){!function(e,t,r){var n,i,o,a=Object.keys(t).filter(function(t){return!e.hasValue(t)}),s=a.length;if(s)for(var l=0;l<s;l++){var c,u,d,h=a[l],f=t[h],p=null;Array.isArray(f)&&(p=f[0]),null===p&&(p=null!==(i=null!==(n=r[h])&&void 0!==n?n:e.readValue(h))&&void 0!==i?i:t[h]),null!=p&&("string"==typeof p&&(c=p,/^\-?\d*\.?\d+$/.test(c)||(u=p,/^0[^.\s]+$/.test(u)))?p=parseFloat(p):(d=p,!te.find(e8(d))&&e2.P.test(f)&&(p=(0,e5.T)(h,f))),e.addValue(h,(0,e3.B)(p)),null!==(o=r[h])&&void 0!==o||(r[h]=p),e.setBaseTarget(h,p))}}(e,s,c);var u=rh(e,s,c,a);a=u.transitionEnd,s=u.target}return(0,l.__assign)({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:eg,build:function(e,t,r,n,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),J(t,r,n,i.transformTemplate)},render:eh},rg=t6(rp),rm=t6((0,l.__assign)((0,l.__assign)({},rp),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return W(t)?(null===(r=(0,rf.A)(t))||void 0===r?void 0:r.default)||0:(t=ef.has(t)?t:ed(t),e.getAttribute(t))},scrapeMotionValuesFromProps:em,build:function(e,t,r,n,i){el(t,r,n,i.transformTemplate)},render:ep})),rv=function(e,t){return $(e)?rm(t,{enableHardwareAcceleration:!1}):rg(t,{enableHardwareAcceleration:!0})};function rb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ry={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!ei.px.test(e))return e;e=parseFloat(e)}var r=rb(e,t.target.x),n=rb(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},rw="_$css",rx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,o=t.layoutId,a=r.projection;Object.assign(U,r_),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==i?void 0:i.register)&&o&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions((0,l.__assign)((0,l.__assign)({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),M.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,i=r.visualElement,o=r.drag,a=r.isPresent,s=i.projection;return s&&(s.isPresent=a,o||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent===a||(a?s.promote():s.relegate()||tc.ZP.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,r=e.layoutGroup,n=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==r?void 0:r.group)&&r.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(c.Component),r_={borderRadius:(0,l.__assign)((0,l.__assign)({},ry),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ry,borderTopRightRadius:ry,borderBottomLeftRadius:ry,borderBottomRightRadius:ry,boxShadow:{correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(t7,function(e){return a.push(e),rw}));var s=e2.P.parse(e);if(s.length>5)return i;var l=e2.P.createTransformer(e),c="number"!=typeof s[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;s[0+c]/=u,s[1+c]/=d;var h=(0,tx.C)(u,d,.5);"number"==typeof s[2+c]&&(s[2+c]/=h),"number"==typeof s[3+c]&&(s[3+c]/=h);var f=l(s);if(o){var p=0;f=f.replace(rw,function(){var e=a[p];return p++,e})}return f}}},rC=r(12064),rA=r(84710),rk=["TopLeft","TopRight","BottomLeft","BottomRight"],rE=rk.length,rS=function(e){return"string"==typeof e?parseFloat(e):e},rT=function(e){return"number"==typeof e||ei.px.test(e)};function rI(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var rP=rR(0,.5,rA.Bn),rO=rR(.5,.95,rA.GE);function rR(e,t,r){return function(n){return n<e?0:n>t?1:r((0,t_.Y)(e,t,n))}}function rM(e,t){e.min=t.min,e.max=t.max}function rN(e,t){rM(e.x,t.x),rM(e.y,t.y)}function rj(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function rD(e,t,r,n,i){var o=(0,l.__read)(r,3),a=o[0],s=o[1],c=o[2];!function(e,t,r,n,i,o,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===a&&(a=e),ei.aQ.test(t)&&(t=parseFloat(t),t=(0,tx.C)(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=(0,tx.C)(o.min,o.max,n);e===o&&(s-=t),e.min=rj(e.min,t,r,s,i),e.max=rj(e.max,t,r,s,i)}}(e,t[a],t[s],t[c],t.scale,n,i)}var rB=["x","scaleX","originX"],rL=["y","scaleY","originY"];function r$(e,t,r,n){rD(e.x,t,rB,null==r?void 0:r.x,null==n?void 0:n.x),rD(e.y,t,rL,null==r?void 0:r.y,null==n?void 0:n.y)}function rU(e){return 0===e.translate&&1===e.scale}function rz(e){return rU(e.x)&&rU(e.y)}function rF(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var rq=r(10010),rH=function(){function e(){this.members=[]}return e.prototype.add=function(e){(0,rq.y4)(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if((0,rq.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function rW(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,l=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(u,")"))?"none":o}var rV=function(e,t){return e.depth-t.depth},rZ=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){(0,rq.y4)(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){(0,rq.cl)(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(rV),this.isDirty=!1,this.children.forEach(e)},e}();function rG(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())},this.updateProjection=function(){i.nodes.forEach(r1),i.nodes.forEach(r2)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?(0,l.__spreadArray)((0,l.__spreadArray)([],(0,l.__read)(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new rZ)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new t3.L),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,(0,l.__spreadArray)([],(0,l.__read)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,o=i.layoutId,a=i.layout,s=i.visualElement;if(s&&!s.getInstance()&&s.mount(e),this.root.nodes.add(this),null===(c=this.parent)||void 0===c||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(a||o)&&(this.isLayoutDirty=!0),t){var c,u,d=function(){return n.root.updateBlockedByResize=!1};t(e,function(){n.root.updateBlockedByResize=!0,clearTimeout(u),u=window.setTimeout(d,250),M.hasAnimatedSinceResize&&(M.hasAnimatedSinceResize=!1,n.nodes.forEach(r0))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||a)&&this.addEventListener("didUpdate",function(e){var t,r,i,o,a,c=e.delta,u=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,h=e.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var f=null!==(r=null!==(t=n.options.transition)&&void 0!==t?t:s.getDefaultTransition())&&void 0!==r?r:r9,p=s.getProps(),g=p.onLayoutAnimationStart,m=p.onLayoutAnimationComplete,v=!n.targetLayout||!rF(n.targetLayout,h)||d,b=!u&&d;if((null===(i=n.resumeFrom)||void 0===i?void 0:i.instance)||b||u&&(v||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(c,b);var y=(0,l.__assign)((0,l.__assign)({},(0,e1.ev)(f,"layout")),{onPlay:g,onComplete:m});s.shouldReduceMotion&&(y.delay=0,y.type=!1),n.startAnimation(y)}else u||0!==n.animationProgress||n.finishAnimation(),n.isLead()&&(null===(a=(o=n.options).onExitComplete)||void 0===a||a.call(o));n.targetLayout=h})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,tc.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(r3))},e.prototype.willUpdate=function(e){if(void 0===e&&(e=!0),this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var t,r,n,i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,l=a.layout;if(void 0!==s||l){var c=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rJ);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(r7),this.potentialNodes.clear()),this.nodes.forEach(rX),this.nodes.forEach(rK),this.nodes.forEach(rY),this.clearAllSnapshots(),tc.iW.update(),tc.iW.preRender(),tc.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(rQ),this.sharedNodes.forEach(r5)},e.prototype.scheduleUpdateProjection=function(){tc.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;tc.ZP.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));nt(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e,t=0;t<this.path.length;t++)this.path[t].updateScroll();var r=this.measure();nt(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected=tL(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){if(o){var e,t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!rz(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==n?void 0:n(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(r||tq(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return tL();var t=e.measureViewportBox(),r=this.root.scroll;return r&&(tZ(t.x,r.x),tZ(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t=tL();rN(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],i=n.scroll,o=n.options,a=n.isScrollRoot;if(n!==this.root&&i&&o.layoutScroll){if(a){rN(t,e);var s=this.root.scroll;s&&(tZ(t.x,-s.x),tZ(t.y,-s.y))}tZ(t.x,i.x),tZ(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r=tL();rN(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tQ(r,{x:-i.scroll.x,y:-i.scroll.y}),tq(i.latestValues)&&tQ(r,i.latestValues)}return tq(this.latestValues)&&tQ(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r=tL();rN(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];if(i.instance&&tq(i.latestValues)){tF(i.latestValues)&&i.updateSnapshot();var o=tL();rN(o,i.measure()),r$(r,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return tq(this.latestValues)&&r$(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,r,n,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=tL(),this.relativeTargetOrigin=tL(),tP(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),rN(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=tL(),this.targetWithTransforms=tL()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(n=this.relativeParent)||void 0===n?void 0:n.target))?(e=this.target,t=this.relativeTarget,r=this.relativeParent.target,tT(e.x,t.x,r.x),tT(e.y,t.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):rN(this.target,this.layout.actual),tV(this.target,this.targetDelta)):rN(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=tL(),this.relativeTargetOrigin=tL(),tP(this.relativeTargetOrigin,this.target,this.relativeParent.target),rN(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(!(!this.parent||tq(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=!!((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var i=this.getLead();rN(this.layoutCorrected,this.layout.actual),function(e,t,r,n){void 0===n&&(n=!1);var i,o,a,s,l=r.length;if(l){t.x=t.y=1;for(var c=0;c<l;c++)s=(a=r[c]).projectionDelta,(null===(o=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&tQ(e,{x:-a.scroll.x,y:-a.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,tV(e,s)),n&&tq(a.latestValues)&&tQ(e,a.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta=tD(),this.projectionDeltaWithTransform=tD());var a=this.treeScale.x,s=this.treeScale.y,l=this.projectionTransform;tS(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=rW(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=(0,l.__assign)({},this.latestValues),s=tD();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c=tL(),u=null==i?void 0:i.isShared,d=1>=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),h=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(r8));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,l,f=t/1e3;r6(s.x,e.x,f),r6(s.y,e.y,f),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(l=n.relativeParent)||void 0===l?void 0:l.layout)&&(tP(c,n.layout.actual,n.relativeParent.layout.actual),r=n.relativeTarget,i=n.relativeTargetOrigin,r4(r.x,i.x,c.x,f),r4(r.y,i.y,c.y,f)),u&&(n.animationValues=a,function(e,t,r,n,i,o){var a,s,l,c;i?(e.opacity=(0,tx.C)(0,null!==(a=r.opacity)&&void 0!==a?a:1,rP(n)),e.opacityExit=(0,tx.C)(null!==(s=t.opacity)&&void 0!==s?s:1,0,rO(n))):o&&(e.opacity=(0,tx.C)(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var u=0;u<rE;u++){var d="border".concat(rk[u],"Radius"),h=rI(t,d),f=rI(r,d);(void 0!==h||void 0!==f)&&(h||(h=0),f||(f=0),0===h||0===f||rT(h)===rT(f)?(e[d]=Math.max((0,tx.C)(rS(h),rS(f),n),0),(ei.aQ.test(f)||ei.aQ.test(h))&&(e[d]+="%")):e[d]=f)}(t.rotate||r.rotate)&&(e.rotate=(0,tx.C)(t.rotate||0,r.rotate||0,n))}(a,o,n.latestValues,f,h,d)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=f},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(tc.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tc.ZP.update(function(){M.hasAnimatedSinceResize=!0,n.currentAnimation=(0,rC.j)(0,1e3,(0,l.__assign)((0,l.__assign)({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}})),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.layout,i=e.latestValues;t&&r&&n&&(rN(t,r),tQ(t,i),tS(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new rH),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<z.length;n++){var i="rotate"+z[n];e.getStaticValue(i)&&(t=!0,r[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){void 0===e&&(e={});var t,r,n,i,o,a,s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var l=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=ey(e.pointerEvents)||"",s.transform=l?l(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var u={};return this.options.layoutId&&(u.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,u.pointerEvents=ey(e.pointerEvents)||""),this.hasProjected&&!tq(this.latestValues)&&(u.transform=l?l({},""):"none",this.hasProjected=!1),u}var d=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=rW(this.projectionDeltaWithTransform,this.treeScale,d),l&&(s.transform=l(d,s.transform));var h=this.projectionDelta,f=h.x,p=h.y;for(var g in s.transformOrigin="".concat(100*f.origin,"% ").concat(100*p.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(n=d.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:s.opacity=c===this?null!==(o=d.opacity)&&void 0!==o?o:"":null!==(a=d.opacityExit)&&void 0!==a?a:0,U)if(void 0!==d[g]){var m=U[g],v=m.correct,b=m.applyTo,y=v(d[g],c);if(b)for(var w=b.length,x=0;x<w;x++)s[b[x]]=y;else s[g]=y}return this.options.layoutId&&(s.pointerEvents=c===this?ey(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(rJ),this.root.sharedNodes.clear()},e}()}function rK(e){e.updateLayout()}function rY(e){var t,r,n,i,o=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,l=a.measured;"size"===e.options.animationType?t$(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=tA(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&t$(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=tA(s[e]);t.max=t.min+r});var c=tD();tS(c,s,o.layout);var u=tD();o.isShared?tS(u,e.applyTransform(l,!0),o.measured):tS(u,s,o.layout);var d=!rz(c),h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,p=f.snapshot,g=f.layout;if(p&&g){var m=tL();tP(m,o.layout,p.layout);var v=tL();tP(v,s,g.actual),rF(m,v)||(h=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else e.isLead()&&(null===(i=(n=e.options).onExitComplete)||void 0===i||i.call(n));e.options.transition=void 0}function rQ(e){e.clearSnapshot()}function rJ(e){e.clearMeasurements()}function rX(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function r0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function r1(e){e.resolveTargetDelta()}function r2(e){e.calcProjection()}function r3(e){e.resetRotation()}function r5(e){e.removeLeadSnapshot()}function r6(e,t,r){e.translate=(0,tx.C)(t.translate,0,r),e.scale=(0,tx.C)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function r4(e,t,r,n){e.min=(0,tx.C)(t.min,r.min,n),e.max=(0,tx.C)(t.max,r.max,n)}function r8(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var r9={duration:.45,ease:[.4,0,.1,1]};function r7(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function ne(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function nt(e){ne(e.x),ne(e.y)}var nr=rG({attachResizeListener:function(e,t){return eA(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),nn={current:void 0},ni=rG({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!nn.current){var e=new nr(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),nn.current=e}return nn.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return"fixed"===window.getComputedStyle(e).position}}),no=(0,l.__assign)((0,l.__assign)((0,l.__assign)((0,l.__assign)({},tl),eQ),t2),{measureLayout:function(e){var t=(0,l.__read)((0,eJ.oO)(),2),r=t[0],n=t[1],i=(0,c.useContext)(j.p);return c.createElement(rx,(0,l.__assign)({},e,{layoutGroup:i,switchLayoutGroup:(0,c.useContext)(D),isPresent:r,safeToRemove:n}))}}),na=function(e){function t(t,r){var n,i,o,a,s,d,k;return void 0===r&&(r={}),i=(n=e(t,r)).preloadedFeatures,o=n.createVisualElement,a=n.projectionNodeConstructor,s=n.useRender,d=n.useVisualState,k=n.Component,i&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?h.projectionNodeConstructor=e[t]:h[t].Component=e[t])}(i),(0,c.forwardRef)(function(e,t){var r,n,S,T,P,L,$,U,z,F,q,H,W,V,Z,G,K,Y,Q,J,X,ee,et,er,en,ei,eo,ea=(H=e.layoutId,(W=null===(q=(0,c.useContext)(j.p))||void 0===q?void 0:q.id)&&void 0!==H?W+"-"+H:H);e=(0,l.__assign)((0,l.__assign)({},e),{layoutId:ea});var es=(0,c.useContext)(v._),el=null,ec=(Z=(V=function(e,t){if(I(e)){var r=e.initial,n=e.animate;return{initial:!1===r||E(r)?r:void 0,animate:E(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(b))).initial,G=V.animate,(0,c.useMemo)(function(){return{initial:Z,animate:G}},[O(Z),O(G)])),eu=es.isStatic?void 0:(0,R.h)(function(){if(M.hasEverUpdated)return N++}),ed=d(e,es.isStatic);return!es.isStatic&&x.j&&(ec.visualElement=(K=(0,l.__assign)((0,l.__assign)({},es),e),Y=o,Q=(0,c.useContext)(p),J=(0,c.useContext)(b).visualElement,X=(0,c.useContext)(y.O),C||function(){if(C=!0,x.j){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return _.current=e.matches};e.addListener(t),t()}else _.current=!1}}(),ee=(0,l.__read)((0,c.useState)(_.current),1)[0],er="never"!==(et=(0,c.useContext)(v._).reducedMotion)&&("always"===et||ee),en=(0,c.useRef)(void 0),Y||(Y=Q.renderer),!en.current&&Y&&(en.current=Y(k,{visualState:ed,parent:J,props:K,presenceId:null==X?void 0:X.id,blockInitialAnimation:(null==X?void 0:X.initial)===!1,shouldReduceMotion:er})),ei=en.current,(0,w.L)(function(){null==ei||ei.syncRender()}),(0,c.useEffect)(function(){var e;null===(e=null==ei?void 0:ei.animationState)||void 0===e||e.animateChanges()}),(0,w.L)(function(){return function(){return null==ei?void 0:ei.notifyUnmount()}},[]),ei),r=e,n=ec.visualElement,S=a||h.projectionNodeConstructor,P=r.layoutId,L=r.layout,$=r.drag,U=r.dragConstraints,z=r.layoutScroll,F=(0,c.useContext)(D),!S||!n||(null==n?void 0:n.projection)||(n.projection=new S(eu,n.getLatestValues(),null===(T=n.parent)||void 0===T?void 0:T.projection),n.projection.setOptions({layoutId:P,layout:L,alwaysMeasureLayout:!!$||U&&A(U),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof L?L:"both",initialPromotionConfig:F,layoutScroll:z})),el=function(e,t,r){var n=[],i=(0,c.useContext)(p);if(!t)return null;"production"!==u.O&&r&&i.strict&&(0,f.k)(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<m;o++){var a=g[o],s=h[a],d=s.isEnabled,v=s.Component;d(e)&&v&&n.push(c.createElement(v,(0,l.__assign)({key:a},e,{visualElement:t})))}return n}(e,ec.visualElement,i)),c.createElement(B,{visualElement:ec.visualElement,props:(0,l.__assign)((0,l.__assign)({},es),e)},el,c.createElement(b.Provider,{value:ec},s(k,e,eu,(eo=ec.visualElement,(0,c.useCallback)(function(e){var r;e&&(null===(r=ed.mount)||void 0===r||r.call(ed,e)),eo&&(e?eo.mount(e):eo.unmount()),t&&("function"==typeof t?t(e):A(t)&&(t.current=e))},[eo])),ed,es.isStatic,ec.visualElement)))})}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}(function(e,t){var r,n,i;return r=t.forwardMotionProps,n=$(e)?e_:eC,(0,l.__assign)((0,l.__assign)({},n),{preloadedFeatures:no,useRender:(void 0===(i=void 0!==r&&r)&&(i=!1),function(e,t,r,n,o,a){var s=o.latestValues,u=($(e)?function(e,t){var r=(0,c.useMemo)(function(){var r=ec();return el(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,l.__assign)((0,l.__assign)({},r.attrs),{style:(0,l.__assign)({},r.style)})},[t]);if(e.style){var n={};ee(n,e.style,e),r.style=(0,l.__assign)((0,l.__assign)({},n),r.style)}return r}:function(e,t,r){var n,i,o={},a=(ee(n={},e.style||{},e),Object.assign(n,(i=e.transformTemplate,(0,c.useMemo)(function(){var e=X();J(e,t,{enableHardwareAcceleration:!r},i);var n=e.vars,o=e.style;return(0,l.__assign)((0,l.__assign)({},n),o)},[t]))),e.transformValues&&(n=e.transformValues(n)),n);return e.drag&&!1!==e.dragListener&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),o.style=a,o})(t,s,a),d=function(e,t,r){var n={};for(var i in e)(en(i)||!0===r&&er(i)||!t&&!er(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,i),h=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},d),u),{ref:n});return r&&(h["data-projection-id"]=r),(0,c.createElement)(e,h)}),createVisualElement:rv,projectionNodeConstructor:ni,Component:e})})},79135:function(e,t,r){"use strict";r.d(t,{T:function(){return a}});var n=r(25738),i=r(28407),o=r(2728);function a(e,t){var r,a=(0,o.A)(e);return a!==n.h&&(a=i.P),null===(r=a.getAnimatableNone)||void 0===r?void 0:r.call(a,t)}},2728:function(e,t,r){"use strict";r.d(t,{A:function(){return l}});var n=r(70655),i=r(87405),o=r(25738),a=r(36173),s=(0,n.__assign)((0,n.__assign)({},a.j),{color:i.$,backgroundColor:i.$,outlineColor:i.$,fill:i.$,stroke:i.$,borderColor:i.$,borderTopColor:i.$,borderRightColor:i.$,borderBottomColor:i.$,borderLeftColor:i.$,filter:o.h,WebkitFilter:o.h}),l=function(e){return s[e]}},36173:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(2969),i=r(11248),o=r(70655),a=(0,o.__assign)((0,o.__assign)({},i.Rx),{transform:Math.round}),s={borderWidth:n.px,borderTopWidth:n.px,borderRightWidth:n.px,borderBottomWidth:n.px,borderLeftWidth:n.px,borderRadius:n.px,radius:n.px,borderTopLeftRadius:n.px,borderTopRightRadius:n.px,borderBottomRightRadius:n.px,borderBottomLeftRadius:n.px,width:n.px,maxWidth:n.px,height:n.px,maxHeight:n.px,size:n.px,top:n.px,right:n.px,bottom:n.px,left:n.px,padding:n.px,paddingTop:n.px,paddingRight:n.px,paddingBottom:n.px,paddingLeft:n.px,margin:n.px,marginTop:n.px,marginRight:n.px,marginBottom:n.px,marginLeft:n.px,rotate:n.RW,rotateX:n.RW,rotateY:n.RW,rotateZ:n.RW,scale:i.bA,scaleX:i.bA,scaleY:i.bA,scaleZ:i.bA,skew:n.RW,skewX:n.RW,skewY:n.RW,distance:n.px,translateX:n.px,translateY:n.px,translateZ:n.px,x:n.px,y:n.px,z:n.px,perspective:n.px,transformPerspective:n.px,opacity:i.Fq,originX:n.$C,originY:n.$C,originZ:n.px,zIndex:a,fillOpacity:i.Fq,strokeOpacity:i.Fq,numOctaves:a}},10010:function(e,t,r){"use strict";function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return i},y4:function(){return n}})},11741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});var n="undefined"!=typeof document},49304:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(34155),i=(void 0===n||n.env,"production")},8715:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},p:function(){return i}});var n=r(48488),i=function(e){return!!(e&&"object"==typeof e&&e.mix&&e.toValue)},o=function(e){return(0,n.C)(e)?e[e.length-1]||0:e}},21560:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(10010),i=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return(0,n.y4)(this.subscriptions,e),function(){return(0,n.cl)(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;i<n;i++){var o=this.subscriptions[i];o&&o(e,t,r)}}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}()},86917:function(e,t,r){"use strict";r.d(t,{w:function(){return n}});var n=function(e){return 1e3*e}},96681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(67294);function i(e){var t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},76316:function(e,t,r){"use strict";r.d(t,{M:function(){return a}});var n=r(96681),i=0,o=function(){return i++},a=function(){return(0,n.h)(o)}},58868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(67294),i=r(11741).j?n.useLayoutEffect:n.useEffect},65411:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(67294);function i(e){return(0,n.useEffect)(function(){return function(){return e()}},[])}},33234:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var n=r(54735),i=r(99296),o=r(21560),a=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new o.L,this.velocityUpdateSubscribers=new o.L,this.renderSubscribers=new o.L,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var i=(0,n.$B)(),o=i.delta,a=i.timestamp;t.lastUpdated!==a&&(t.timeDelta=o,t.lastUpdated=a,n.ZP.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return n.ZP.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function s(e){return new a(e)}},40406:function(e,t,r){"use strict";r.d(t,{i:function(){return n}});var n=function(e){return!!(null!==e&&"object"==typeof e&&e.getVelocity)}},54735:function(e,t,r){"use strict";r.d(t,{qY:function(){return f},ZP:function(){return y},iW:function(){return p},$B:function(){return b}});let n=1/60*1e3,i="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(i()),n),a=!0,s=!1,l=!1,c={delta:0,timestamp:0},u=["read","update","preRender","render","postRender"],d=u.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,c=l?t:r;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;r<n;r++){let n=t[r];n(l),a.has(n)&&(s.schedule(n),e())}i=!1,o&&(o=!1,s.process(l))}};return s}(()=>s=!0),e),{}),h=u.reduce((e,t)=>{let r=d[t];return e[t]=(e,t=!1,n=!1)=>(s||v(),r.schedule(e,t,n)),e},{}),f=u.reduce((e,t)=>(e[t]=d[t].cancel,e),{}),p=u.reduce((e,t)=>(e[t]=()=>d[t].process(c),e),{}),g=e=>d[e].process(c),m=e=>{s=!1,c.delta=a?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,l=!0,u.forEach(g),l=!1,s&&(a=!1,o(m))},v=()=>{s=!0,a=!0,l||o(m)},b=()=>c;var y=h},50875:function(e,t,r){"use strict";r.d(t,{XM:function(){return i},Xe:function(){return o},pX:function(){return n}});let n={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=e=>(...t)=>({_$litDirective$:e,values:t});class o{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},33692:function(e,t,r){"use strict";r.d(t,{Jb:function(){return E},Ld:function(){return S},YP:function(){return k},_$LH:function(){return z},dy:function(){return A},sY:function(){return q}});let n=globalThis,i=n.trustedTypes,o=i?i.createPolicy("lit-html",{createHTML:e=>e}):void 0,a="$lit$",s=`lit$${(Math.random()+"").slice(9)}$`,l="?"+s,c=`<${l}>`,u=document,d=()=>u.createComment(""),h=e=>null===e||"object"!=typeof e&&"function"!=typeof e,f=Array.isArray,p=e=>f(e)||"function"==typeof e?.[Symbol.iterator],g="[ 	\n\f\r]",m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,b=/>/g,y=RegExp(`>|${g}(?:([^\\s"'>=/]+)(${g}*=${g}*(?:[^ 	
\f\r"'\`<>=]|("|')|))|$)`,"g"),w=/'/g,x=/"/g,_=/^(?:script|style|textarea|title)$/i,C=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),A=C(1),k=C(2),E=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),T=new WeakMap,I=u.createTreeWalker(u,129);function P(e,t){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(t):t}let O=(e,t)=>{let r=e.length-1,n=[],i,o=2===t?"<svg>":"",l=m;for(let t=0;t<r;t++){let r=e[t],u,d,h=-1,f=0;for(;f<r.length&&(l.lastIndex=f,null!==(d=l.exec(r)));)f=l.lastIndex,l===m?"!--"===d[1]?l=v:void 0!==d[1]?l=b:void 0!==d[2]?(_.test(d[2])&&(i=RegExp("</"+d[2],"g")),l=y):void 0!==d[3]&&(l=y):l===y?">"===d[0]?(l=i??m,h=-1):void 0===d[1]?h=-2:(h=l.lastIndex-d[2].length,u=d[1],l=void 0===d[3]?y:'"'===d[3]?x:w):l===x||l===w?l=y:l===v||l===b?l=m:(l=y,i=void 0);let p=l===y&&e[t+1].startsWith("/>")?" ":"";o+=l===m?r+c:h>=0?(n.push(u),r.slice(0,h)+a+r.slice(h)+s+p):r+s+(-2===h?t:p)}return[P(e,o+(e[r]||"<?>")+(2===t?"</svg>":"")),n]};class R{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let o=0,c=0,u=e.length-1,h=this.parts,[f,p]=O(e,t);if(this.el=R.createElement(f,r),I.currentNode=this.el.content,2===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=I.nextNode())&&h.length<u;){if(1===n.nodeType){if(n.hasAttributes())for(let e of n.getAttributeNames())if(e.endsWith(a)){let t=p[c++],r=n.getAttribute(e).split(s),i=/([.?@])?(.*)/.exec(t);h.push({type:1,index:o,name:i[2],strings:r,ctor:"."===i[1]?B:"?"===i[1]?L:"@"===i[1]?$:D}),n.removeAttribute(e)}else e.startsWith(s)&&(h.push({type:6,index:o}),n.removeAttribute(e));if(_.test(n.tagName)){let e=n.textContent.split(s),t=e.length-1;if(t>0){n.textContent=i?i.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],d()),I.nextNode(),h.push({type:2,index:++o});n.append(e[t],d())}}}else if(8===n.nodeType){if(n.data===l)h.push({type:2,index:o});else{let e=-1;for(;-1!==(e=n.data.indexOf(s,e+1));)h.push({type:7,index:o}),e+=s.length-1}}o++}}static createElement(e,t){let r=u.createElement("template");return r.innerHTML=e,r}}function M(e,t,r=e,n){if(t===E)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl,o=h(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),void 0===o?i=void 0:(i=new o(e))._$AT(e,r,n),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=M(e,i._$AS(e,t.values),i,n)),t}class N{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){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??u).importNode(t,!0);I.currentNode=n;let i=I.nextNode(),o=0,a=0,s=r[0];for(;void 0!==s;){if(o===s.index){let t;2===s.type?t=new j(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new U(i,this,e)),this._$AV.push(t),s=r[++a]}o!==s?.index&&(i=I.nextNode(),o++)}return I.currentNode=u,n}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class j{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){h(e=M(this,e,t))?e===S||null==e||""===e?(this._$AH!==S&&this._$AR(),this._$AH=S):e!==this._$AH&&e!==E&&this._(e):void 0!==e._$litType$?this.g(e):void 0!==e.nodeType?this.$(e):p(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==S&&h(this._$AH)?this._$AA.nextSibling.data=e:this.$(u.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=R.createElement(P(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new N(n,this),r=e.u(this.options);e.p(t),this.$(r),this._$AH=e}}_$AC(e){let t=T.get(e.strings);return void 0===t&&T.set(e.strings,t=new R(e)),t}T(e){f(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let i of e)n===t.length?t.push(r=new j(this.k(d()),this.k(d()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=S,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=S}_$AI(e,t=this,r,n){let i=this.strings,o=!1;if(void 0===i)(o=!h(e=M(this,e,t,0))||e!==this._$AH&&e!==E)&&(this._$AH=e);else{let n,a;let s=e;for(e=i[0],n=0;n<i.length-1;n++)(a=M(this,s[r+n],t,n))===E&&(a=this._$AH[n]),o||=!h(a)||a!==this._$AH[n],a===S?e=S:e!==S&&(e+=(a??"")+i[n+1]),this._$AH[n]=a}o&&!n&&this.O(e)}O(e){e===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class B extends D{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===S?void 0:e}}class L extends D{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==S)}}class $ extends D{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=M(this,e,t,0)??S)===E)return;let r=this._$AH,n=e===S&&r!==S||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==S&&(r===S||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class U{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){M(this,e)}}let z={j:a,P:s,A:l,C:1,M:O,L:N,R:p,V:M,D:j,I:D,H:L,N:$,U:B,B:U},F=n.litHtmlPolyfillSupport;F?.(R,j),(n.litHtmlVersions??=[]).push("3.1.0");let q=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=r?.renderBefore??null;n._$litPart$=i=new j(t.insertBefore(d(),e),e,void 0,r??{})}return i._$AI(e),i}},59662:function(e,t,r){"use strict";r.d(t,{Cb:function(){return n.C},SB:function(){return i.S}});var n=r(99662),i=r(39158)},35162:function(e,t,r){"use strict";r.d(t,{o:function(){return i}});var n=r(33692);let i=e=>e??n.Ld},38192:function(e,t,r){"use strict";r.d(t,{V:function(){return p},i:function(){return v}});var n=r(33692);let{D:i}=n._$LH,o=e=>void 0===e.strings;var a=r(50875);let s=(e,t)=>{let r=e._$AN;if(void 0===r)return!1;for(let e of r)e._$AO?.(t,!1),s(e,t);return!0},l=e=>{let t,r;do{if(void 0===(t=e._$AM))break;(r=t._$AN).delete(e),e=t}while(0===r?.size)},c=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(void 0===r)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),h(t)}};function u(e){void 0!==this._$AN?(l(this),this._$AM=e,c(this)):this._$AM=e}function d(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(void 0!==i&&0!==i.size){if(t){if(Array.isArray(n))for(let e=r;e<n.length;e++)s(n[e],!1),l(n[e]);else null!=n&&(s(n,!1),l(n))}else s(this,e)}}let h=e=>{e.type==a.pX.CHILD&&(e._$AP??=d,e._$AQ??=u)};class f extends a.Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,r){super._$AT(e,t,r),c(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(s(this,e),l(this))}setValue(e){if(o(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}let p=()=>new g;class g{}let m=new WeakMap,v=(0,a.XM)(class extends f{render(e){return n.Ld}update(e,[t]){let r=t!==this.G;return r&&void 0!==this.G&&this.ot(void 0),(r||this.rt!==this.lt)&&(this.G=t,this.ct=e.options?.host,this.ot(this.lt=e.element)),n.Ld}ot(e){if("function"==typeof this.G){let t=this.ct??globalThis,r=m.get(t);void 0===r&&(r=new WeakMap,m.set(t,r)),void 0!==r.get(this.G)&&this.G.call(this.ct,void 0),r.set(this.G,e),void 0!==e&&this.G.call(this.ct,e)}else this.G.value=e}get rt(){return"function"==typeof this.G?m.get(this.ct??globalThis)?.get(this.G):this.G?.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}})},19064:function(e,t,r){"use strict";r.d(t,{oi:function(){return o},iv:function(){return n.iv},dy:function(){return i.dy},YP:function(){return i.YP},$m:function(){return n.$m}});var n=r(23588),i=r(33692);class o extends n.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,i.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.Jb}}o._$litElement$=!0,o.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:o});let a=globalThis.litElementPolyfillSupport;a?.({LitElement:o}),(globalThis.litElementVersions??=[]).push("4.0.2")},91835:function(e,t,r){"use strict";r.d(t,{gh:function(){return eF}});var n={};r.r(n),r.d(n,{identity:function(){return R}});var i={};r.r(i),r.d(i,{base2:function(){return M}});var o={};r.r(o),r.d(o,{base8:function(){return N}});var a={};r.r(a),r.d(a,{base10:function(){return j}});var s={};r.r(s),r.d(s,{base16:function(){return D},base16upper:function(){return B}});var l={};r.r(l),r.d(l,{base32:function(){return L},base32hex:function(){return F},base32hexpad:function(){return H},base32hexpadupper:function(){return W},base32hexupper:function(){return q},base32pad:function(){return U},base32padupper:function(){return z},base32upper:function(){return $},base32z:function(){return V}});var c={};r.r(c),r.d(c,{base36:function(){return Z},base36upper:function(){return G}});var u={};r.r(u),r.d(u,{base58btc:function(){return K},base58flickr:function(){return Y}});var d={};r.r(d),r.d(d,{base64:function(){return Q},base64pad:function(){return J},base64url:function(){return X},base64urlpad:function(){return ee}});var h={};r.r(h),r.d(h,{base256emoji:function(){return ei}});var f={};r.r(f),r.d(f,{sha256:function(){return ev},sha512:function(){return eb}});var p={};r.r(p),r.d(p,{identity:function(){return ey}});var g={};r.r(g),r.d(g,{code:function(){return ex},decode:function(){return eC},encode:function(){return e_},name:function(){return ew}});var m={};r.r(m),r.d(m,{code:function(){return eS},decode:function(){return eI},encode:function(){return eT},name:function(){return eE}});var v=function(e,t){if(e.length>=255)throw TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==r[a])throw TypeError(o+" is ambiguous");r[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 TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[0]){for(var n=0,i=0;e[t]===l;)n++,t++;for(var o=(e.length-t)*c+1>>>0,a=new Uint8Array(o);e[t];){var u=r[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 Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(n+(o-f)),g=n;f!==o;)p[g++]=a[f++];return p}}}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 TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,n=0,i=0,o=t.length;i!==o&&0===t[i];)i++,r++;for(var a=(o-i)*u+1>>>0,c=new Uint8Array(a);i!==o;){for(var d=t[i],h=0,f=a-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%s>>>0,d=d/s>>>0;if(0!==d)throw Error("Non-zero carry");n=h,i++}for(var p=a-n;p!==a&&0===c[p];)p++;for(var g=l.repeat(r);p<a;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:d,decode:function(e){var r=d(e);if(r)return r;throw Error(`Non-${t} character`)}}};new Uint8Array(0);let b=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0},y=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 Error("Unknown type, must be binary type")},w=e=>new TextEncoder().encode(e),x=e=>new TextDecoder().decode(e);class _{constructor(e,t,r){this.name=e,this.prefix=t,this.baseEncode=r}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class C{constructor(e,t,r){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=r}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 k(this,e)}}class A{constructor(e){this.decoders=e}or(e){return k(this,e)}decode(e){let t=e[0],r=this.decoders[t];if(r)return r.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}let k=(e,t)=>new A({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class E{constructor(e,t,r,n){this.name=e,this.prefix=t,this.baseEncode=r,this.baseDecode=n,this.encoder=new _(e,t,r),this.decoder=new C(e,t,n)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}let S=({name:e,prefix:t,encode:r,decode:n})=>new E(e,t,r,n),T=({prefix:e,name:t,alphabet:r})=>{let{encode:n,decode:i}=v(r,t);return S({prefix:e,name:t,encode:n,decode:e=>y(i(e))})},I=(e,t,r,n)=>{let i={};for(let e=0;e<t.length;++e)i[t[e]]=e;let o=e.length;for(;"="===e[o-1];)--o;let a=new Uint8Array(o*r/8|0),s=0,l=0,c=0;for(let t=0;t<o;++t){let o=i[e[t]];if(void 0===o)throw SyntaxError(`Non-${n} character`);l=l<<r|o,(s+=r)>=8&&(s-=8,a[c++]=255&l>>s)}if(s>=r||255&l<<8-s)throw SyntaxError("Unexpected end of data");return a},P=(e,t,r)=>{let n="="===t[t.length-1],i=(1<<r)-1,o="",a=0,s=0;for(let n=0;n<e.length;++n)for(s=s<<8|e[n],a+=8;a>r;)a-=r,o+=t[i&s>>a];if(a&&(o+=t[i&s<<r-a]),n)for(;o.length*r&7;)o+="=";return o},O=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>S({prefix:t,name:e,encode:e=>P(e,n,r),decode:t=>I(t,n,r,e)}),R=S({prefix:"\0",name:"identity",encode:e=>x(e),decode:e=>w(e)}),M=O({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),N=O({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),j=T({prefix:"9",name:"base10",alphabet:"0123456789"}),D=O({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),B=O({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),L=O({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=O({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),U=O({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),z=O({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),F=O({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),q=O({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),H=O({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),W=O({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),V=O({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Z=T({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),G=T({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),K=T({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Y=T({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Q=O({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),J=O({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),X=O({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ee=O({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),et=Array.from("\uD83D\uDE80\uD83E\uDE90☄\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☀\uD83D\uDCBB\uD83D\uDDA5\uD83D\uDCBE\uD83D\uDCBF\uD83D\uDE02❤\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☺\uD83D\uDC4C\uD83E\uDD17\uD83D\uDC9C\uD83D\uDE14\uD83D\uDE0E\uD83D\uDE07\uD83C\uDF39\uD83E\uDD26\uD83C\uDF89\uD83D\uDC9E✌✨\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❣\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✋\uD83D\uDE1A\uD83D\uDE1D\uD83D\uDE34\uD83C\uDF1F\uD83D\uDE2C\uD83D\uDE43\uD83C\uDF40\uD83C\uDF37\uD83D\uDE3B\uD83D\uDE13⭐✅\uD83E\uDD7A\uD83C\uDF08\uD83D\uDE08\uD83E\uDD18\uD83D\uDCA6✔\uD83D\uDE23\uD83C\uDFC3\uD83D\uDC90☹\uD83C\uDF8A\uD83D\uDC98\uD83D\uDE20☝\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⚽\uD83E\uDD19☕\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⚡\uD83C\uDF1E\uD83C\uDF88❌✊\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✈\uD83C\uDF80\uD83C\uDF7A\uD83E\uDD13\uD83D\uDE19\uD83D\uDC9F\uD83C\uDF31\uD83D\uDE16\uD83D\uDC76\uD83E\uDD74▶➡❓\uD83D\uDC8E\uD83D\uDCB8⬇\uD83D\uDE28\uD83C\uDF1A\uD83E\uDD8B\uD83D\uDE37\uD83D\uDD7A⚠\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☎\uD83D\uDCA7\uD83D\uDE2F\uD83D\uDC86\uD83D\uDC46\uD83C\uDFA4\uD83D\uDE47\uD83C\uDF51❄\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"),er=et.reduce((e,t,r)=>(e[r]=t,e),[]),en=et.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]),ei=S({prefix:"\uD83D\uDE80",name:"base256emoji",encode:function(e){return e.reduce((e,t)=>e+=er[t],"")},decode:function(e){let t=[];for(let r of e){let e=en[r.codePointAt(0)];if(void 0===e)throw Error(`Non-base256emoji character: ${r}`);t.push(e)}return new Uint8Array(t)}});var eo=function e(t,r,n){r=r||[];for(var i=n=n||0;t>=2147483648;)r[n++]=255&t|128,t/=128;for(;-128&t;)r[n++]=255&t|128,t>>>=7;return r[n]=0|t,e.bytes=n-i+1,r},ea=function e(t,r){var n,i=0,r=r||0,o=0,a=r,s=t.length;do{if(a>=s)throw e.bytes=0,RangeError("Could not decode varint");n=t[a++],i+=o<28?(127&n)<<o:(127&n)*Math.pow(2,o),o+=7}while(n>=128);return e.bytes=a-r,i};let es=(e,t=0)=>[ea(e,t),ea.bytes],el=(e,t,r=0)=>(eo(e,t,r),t),ec=e=>e<128?1:e<16384?2:e<2097152?3:e<268435456?4:e<34359738368?5:e<4398046511104?6:e<562949953421312?7:e<72057594037927940?8:e<0x7fffffffffffffff?9:10,eu=(e,t)=>{let r=t.byteLength,n=ec(e),i=n+ec(r),o=new Uint8Array(i+r);return el(e,o,0),el(r,o,n),o.set(t,i),new ef(e,r,t,o)},ed=e=>{let t=y(e),[r,n]=es(t),[i,o]=es(t.subarray(n)),a=t.subarray(n+o);if(a.byteLength!==i)throw Error("Incorrect length");return new ef(r,i,a,t)},eh=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&b(e.bytes,t.bytes);class ef{constructor(e,t,r,n){this.code=e,this.size=t,this.digest=r,this.bytes=n}}let ep=({name:e,code:t,encode:r})=>new eg(e,t,r);class eg{constructor(e,t,r){this.name=e,this.code=t,this.encode=r}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?eu(this.code,t):t.then(e=>eu(this.code,e))}throw Error("Unknown type, must be binary type")}}let em=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),ev=ep({name:"sha2-256",code:18,encode:em("SHA-256")}),eb=ep({name:"sha2-512",code:19,encode:em("SHA-512")}),ey={code:0,name:"identity",encode:y,digest:e=>eu(0,y(e))},ew="raw",ex=85,e_=e=>y(e),eC=e=>y(e),eA=new TextEncoder,ek=new TextDecoder,eE="json",eS=512,eT=e=>eA.encode(JSON.stringify(e)),eI=e=>JSON.parse(ek.decode(e));class eP{constructor(e,t,r,n){this.code=t,this.version=e,this.multihash=r,this.bytes=n,this.byteOffset=n.byteOffset,this.byteLength=n.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:e$,byteLength:e$,code:eL,version:eL,multihash:eL,bytes:eL,_baseCache:e$,asCID:e$})}toV0(){if(0===this.version)return this;{let{code:e,multihash:t}=this;if(e!==eN)throw Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==ej)throw Error("Cannot convert non sha2-256 multihash CID to CIDv0");return eP.createV0(t)}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,r=eu(e,t);return eP.createV1(this.code,r)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&eh(this.multihash,e.multihash)}toString(e){let{bytes:t,version:r,_baseCache:n}=this;return 0===r?eR(t,n,e||K.encoder):eM(t,n,e||L.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return eU(/^0\.0/,ez),!!(e&&(e[eB]||e.asCID===e))}get toBaseEncodedString(){throw Error("Deprecated, use .toString()")}get codec(){throw Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw Error('"multibaseName" property is deprecated')}get prefix(){throw Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof eP)return e;if(null!=e&&e.asCID===e){let{version:t,code:r,multihash:n,bytes:i}=e;return new eP(t,r,n,i||eD(t,r,n.bytes))}if(null==e||!0!==e[eB])return null;{let{version:t,multihash:r,code:n}=e,i=ed(r);return eP.create(t,n,i)}}static create(e,t,r){if("number"!=typeof t)throw Error("String codecs are no longer supported");switch(e){case 0:if(t===eN)return new eP(e,t,r,r.bytes);throw Error(`Version 0 CID must use dag-pb (code: ${eN}) block encoding`);case 1:{let n=eD(e,t,r.bytes);return new eP(e,t,r,n)}default:throw Error("Invalid version")}}static createV0(e){return eP.create(0,eN,e)}static createV1(e,t){return eP.create(1,e,t)}static decode(e){let[t,r]=eP.decodeFirst(e);if(r.length)throw Error("Incorrect length");return t}static decodeFirst(e){let t=eP.inspectBytes(e),r=t.size-t.multihashSize,n=y(e.subarray(r,r+t.multihashSize));if(n.byteLength!==t.multihashSize)throw Error("Incorrect length");let i=n.subarray(t.multihashSize-t.digestSize),o=new ef(t.multihashCode,t.digestSize,i,n);return[0===t.version?eP.createV0(o):eP.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0,r=()=>{let[r,n]=es(e.subarray(t));return t+=n,r},n=r(),i=eN;if(18===n?(n=0,t=0):1===n&&(i=r()),0!==n&&1!==n)throw RangeError(`Invalid CID version ${n}`);let o=t,a=r(),s=r(),l=t+s;return{version:n,codec:i,multihashCode:a,digestSize:s,multihashSize:l-o,size:l}}static parse(e,t){let[r,n]=eO(e,t),i=eP.decode(n);return i._baseCache.set(r,e),i}}let eO=(e,t)=>{switch(e[0]){case"Q":return[K.prefix,(t||K).decode(`${K.prefix}${e}`)];case K.prefix:return[K.prefix,(t||K).decode(e)];case L.prefix:return[L.prefix,(t||L).decode(e)];default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},eR=(e,t,r)=>{let{prefix:n}=r;if(n!==K.prefix)throw Error(`Cannot string encode V0 in ${r.name} encoding`);let i=t.get(n);if(null!=i)return i;{let i=r.encode(e).slice(1);return t.set(n,i),i}},eM=(e,t,r)=>{let{prefix:n}=r,i=t.get(n);if(null!=i)return i;{let i=r.encode(e);return t.set(n,i),i}},eN=112,ej=18,eD=(e,t,r)=>{let n=ec(e),i=n+ec(t),o=new Uint8Array(i+r.byteLength);return el(e,o,0),el(t,o,n),o.set(r,i),o},eB=Symbol.for("@ipld/js-cid/CID"),eL={writable:!1,configurable:!1,enumerable:!0},e$={writable:!1,enumerable:!1,configurable:!1},eU=(e,t)=>{if(e.test("0.0.0-dev"))console.warn(t);else throw Error(t)},ez=`CID.isCID(v) is deprecated and will be removed in the next major release.
Following code pattern:

if (CID.isCID(value)) {
  doSomethingWithCID(value)
}

Is replaced with:

const cid = CID.asCID(value)
if (cid) {
  // Make sure to use cid instead of value
  doSomethingWithCID(cid)
}
`,eF={...n,...i,...o,...a,...s,...l,...c,...u,...d,...h};({...f,...p})},99640:function(e,t,r){"use strict";function n(e){let t=new Set,r="/"+e.pathname.split("/").map(r=>{if(r.startsWith("[[...")&&r.endsWith("]]")){let n=r.slice(5,-2);return t.add(n),e.query?.[n]?.join("/")}if(r.startsWith("[...")&&r.endsWith("]")){let n=r.slice(4,-1);return t.add(n),e.query[n].join("/")}if(r.startsWith("[")&&r.endsWith("]")){let n=r.slice(1,-1);return t.add(n),e.query[n]}return r}).filter(Boolean).join("/"),n=new URLSearchParams;for(let r in e.query)if(!t.has(r)){let t=e.query[r];Array.isArray(t)?t.forEach(e=>n.append(r,e)):n.append(r,t)}return r+(n.toString().length>0?"?"+n.toString():"")+(e.hash?"#"+e.hash:"")}r.d(t,{B:function(){return n}})},84710:function(e,t,r){"use strict";r.d(t,{LU:function(){return b},G2:function(){return g},XL:function(){return v},CG:function(){return m},h9:function(){return C},yD:function(){return A},gJ:function(){return _},Z7:function(){return h},X7:function(){return p},Bn:function(){return f},YQ:function(){return c},mZ:function(){return d},Vv:function(){return u},GE:function(){return l}});let n=e=>t=>1-e(1-t),i=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o=e=>t=>t*t*((e+1)*t-e),a=4/11,s=8/11,l=e=>e,c=e=>Math.pow(e,2),u=n(c),d=i(c),h=e=>1-Math.sin(Math.acos(e)),f=n(h),p=i(f),g=o(1.525),m=n(g),v=i(g),b=(e=>{let t=o(e);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(1.525),y=4356/361,w=35442/1805,x=16061/1805,_=e=>{if(1===e||0===e)return e;let t=e*e;return e<a?7.5625*t:e<s?9.075*t-9.9*e+3.4:e<.9?y*t-w*e+x:10.8*e*e-20.52*e+10.72},C=n(_),A=e=>e<.5?.5*(1-_(1-2*e)):.5*_(2*e-1)+.5},6773:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});let n=(e,t,r)=>Math.min(Math.max(r,e),t)},80734:function(e,t,r){"use strict";r.d(t,{e:function(){return n}});let n=e=>"number"==typeof e},72453:function(e,t,r){"use strict";r.d(t,{C:function(){return n}});let n=(e,t,r)=>-r*e+r*t+e},9897:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},9326:function(e,t,r){"use strict";r.d(t,{Y:function(){return n}});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},99296:function(e,t,r){"use strict";function n(e,t){return t?1e3/t*e:0}r.d(t,{R:function(){return n}})},42708:function(e,t,r){"use strict";r.d(t,{YD:function(){return c}});var n=r(67294),i=Object.defineProperty,o=new Map,a=new WeakMap,s=0,l=void 0;function c({threshold:e,delay:t,trackVisibility:r,rootMargin:i,root:c,triggerOnce:u,skip:d,initialInView:h,fallbackInView:f,onChange:p}={}){var g;let[m,v]=n.useState(null),b=n.useRef(),[y,w]=n.useState({inView:!!h,entry:void 0});b.current=p,n.useEffect(()=>{let n;if(!d&&m)return n=function(e,t,r={},n=l){if(void 0===window.IntersectionObserver&&void 0!==n){let i=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:c,elements:u}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?(r=e.root)?(a.has(r)||(s+=1,a.set(r,s.toString())),a.get(r)):"0":e[t]}`}).toString(),r=o.get(t);if(!r){let n;let i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:i},o.set(t,r)}return r}(r),d=u.get(e)||[];return u.has(e)||u.set(e,d),d.push(t),c.observe(e),function(){d.splice(d.indexOf(t),1),0===d.length&&(u.delete(e),c.unobserve(e)),0===u.size&&(c.disconnect(),o.delete(i))}}(m,(e,t)=>{w({inView:e,entry:t}),b.current&&b.current(e,t),t.isIntersecting&&u&&n&&(n(),n=void 0)},{root:c,rootMargin:i,threshold:e,trackVisibility:r,delay:t},f),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,m,c,i,u,d,r,f,t]);let x=null==(g=y.entry)?void 0:g.target,_=n.useRef();m||!x||u||d||_.current===x||(_.current=x,w({inView:!!h,entry:void 0}));let C=[v,y.inView,y.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}n.Component},22960:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(78059);let i={test:(0,r(23953).i)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.m.transform}},34582:function(e,t,r){"use strict";r.d(t,{J:function(){return s}});var n=r(11248),i=r(2969),o=r(16777),a=r(23953);let s={test:(0,a.i)("hsl","hue"),parse:(0,a.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,o.Nw)(t))+", "+i.aQ.transform((0,o.Nw)(r))+", "+(0,o.Nw)(n.Fq.transform(a))+")"}},87405:function(e,t,r){"use strict";r.d(t,{$:function(){return s}});var n=r(16777),i=r(22960),o=r(34582),a=r(78059);let s={test:e=>a.m.test(e)||i.$.test(e)||o.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):o.J.test(e)?o.J.parse(e):i.$.parse(e),transform:e=>(0,n.HD)(e)?e:e.hasOwnProperty("red")?a.m.transform(e):o.J.transform(e)}},78059:function(e,t,r){"use strict";r.d(t,{m:function(){return l}});var n=r(11248),i=r(16777),o=r(23953);let a=(0,i.uZ)(0,255),s=Object.assign(Object.assign({},n.Rx),{transform:e=>Math.round(a(e))}),l={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+s.transform(e)+", "+s.transform(t)+", "+s.transform(r)+", "+(0,i.Nw)(n.Fq.transform(o))+")"}},23953:function(e,t,r){"use strict";r.d(t,{d:function(){return o},i:function(){return i}});var n=r(16777);let i=(e,t)=>r=>!!((0,n.HD)(r)&&n.mj.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),o=(e,t,r)=>i=>{if(!(0,n.HD)(i))return i;let[o,a,s,l]=i.match(n.KP);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}}},25738:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var n=r(28407),i=r(16777);let o=new Set(["brightness","contrast","saturate","opacity"]);function a(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(i.KP)||[];if(!n)return e;let a=r.replace(n,""),s=o.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+a+")"}let s=/([a-z-]*)\(.*?\)/g,l=Object.assign(Object.assign({},n.P),{getAnimatableNone:e=>{let t=e.match(s);return t?t.map(a).join(" "):e}})},28407:function(e,t,r){"use strict";r.d(t,{P:function(){return h}});var n=r(87405),i=r(11248),o=r(16777);let a="${c}",s="${n}";function l(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,l=e.match(o.dA);l&&(r=l.length,e=e.replace(o.dA,a),t.push(...l.map(n.$.parse)));let c=e.match(o.KP);return c&&(e=e.replace(o.KP,s),t.push(...c.map(i.Rx.parse))),{values:t,numColors:r,tokenised:e}}function c(e){return l(e).values}function u(e){let{values:t,numColors:r,tokenised:i}=l(e),c=t.length;return e=>{let t=i;for(let i=0;i<c;i++)t=t.replace(i<r?a:s,i<r?n.$.transform(e[i]):(0,o.Nw)(e[i]));return t}}let d=e=>"number"==typeof e?0:e,h={test:function(e){var t,r,n,i;return isNaN(e)&&(0,o.HD)(e)&&(null!==(r=null===(t=e.match(o.KP))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(o.dA))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:c,createTransformer:u,getAnimatableNone:function(e){let t=c(e);return u(e)(t.map(d))}}},11248:function(e,t,r){"use strict";r.d(t,{Fq:function(){return o},Rx:function(){return i},bA:function(){return a}});var n=r(16777);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},o=Object.assign(Object.assign({},i),{transform:(0,n.uZ)(0,1)}),a=Object.assign(Object.assign({},i),{default:1})},2969:function(e,t,r){"use strict";r.d(t,{$C:function(){return u},RW:function(){return o},aQ:function(){return a},px:function(){return s},vh:function(){return l},vw:function(){return c}});var n=r(16777);let i=e=>({test:t=>(0,n.HD)(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),o=i("deg"),a=i("%"),s=i("px"),l=i("vh"),c=i("vw"),u=Object.assign(Object.assign({},a),{parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)})},16777:function(e,t,r){"use strict";r.d(t,{HD:function(){return l},KP:function(){return o},Nw:function(){return i},dA:function(){return a},mj:function(){return s},uZ:function(){return n}});let n=(e,t)=>r=>Math.max(Math.min(r,t),e),i=e=>e%1?Number(e.toFixed(5)):e,o=/(-)?([\d]*\.?[\d])+/g,a=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,s=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function l(e){return"string"==typeof e}},94622:function(e,t,r){"use strict";function n(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function i(e,t){t||(t=e.reduce((e,t)=>e+t.length,0));let r=n(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}r.d(t,{zo:function(){return i},mL:function(){return u},BB:function(){return d}});var o=r(91835);function a(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}let s=a("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),l=a("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{let t=n((e=e.substring(1)).length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),c={utf8:s,"utf-8":s,hex:o.gh.base16,latin1:l,ascii:l,binary:l,...o.gh};function u(e,t="utf8"){let r=c[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e,"utf8"):r.decoder.decode(`${r.prefix}${e}`)}function d(e,t="utf8"){let r=c[t];if(!r)throw Error(`Unsupported encoding "${t}"`);return("utf8"===t||"utf-8"===t)&&null!=globalThis.Buffer&&null!=globalThis.Buffer.from?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}},17832:function(e,t,r){"use strict";r.d(t,{sj:function(){return f},iH:function(){return m},CO:function(){return g},Ld:function(){return p}}),Symbol();let n=Symbol(),i=Object.getPrototypeOf,o=new WeakMap,a=e=>e&&(o.has(e)?o.get(e):i(e)===Object.prototype||i(e)===Array.prototype),s=e=>a(e)&&e[n]||null,l=(e,t=!0)=>{o.set(e,t)},c=e=>"object"==typeof e&&null!==e,u=new WeakMap,d=new WeakSet,[h]=((e=Object.is,t=(e,t)=>new Proxy(e,t),r=e=>c(e)&&!d.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),n=e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}},i=new WeakMap,o=(e,t,r=n)=>{let a=i.get(e);if((null==a?void 0:a[0])===t)return a[1];let s=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return l(s,!0),i.set(e,[t,s]),Reflect.ownKeys(e).forEach(t=>{if(Object.getOwnPropertyDescriptor(s,t))return;let n=Reflect.get(e,t),i={value:n,enumerable:!0,configurable:!0};if(d.has(n))l(n,!1);else if(n instanceof Promise)delete i.value,i.get=()=>r(n);else if(u.has(n)){let[e,t]=u.get(n);i.value=o(e,t(),r)}Object.defineProperty(s,t,i)}),Object.preventExtensions(s)},a=new WeakMap,h=[1,1],f=n=>{if(!c(n))throw Error("object required");let i=a.get(n);if(i)return i;let l=h[0],p=new Set,g=(e,t=++h[0])=>{l!==t&&(l=t,p.forEach(r=>r(e,t)))},m=h[1],v=(e=++h[1])=>(m===e||p.size||(m=e,y.forEach(([t])=>{let r=t[1](e);r>l&&(l=r)})),l),b=e=>(t,r)=>{let n=[...t];n[1]=[e,...n[1]],g(n,r)},y=new Map,w=(e,t)=>{if(y.has(e))throw Error("prop listener already exists");if(p.size){let r=t[3](b(e));y.set(e,[t,r])}else y.set(e,[t])},x=e=>{var t;let r=y.get(e);r&&(y.delete(e),null==(t=r[1])||t.call(r))},_=e=>{p.add(e),1===p.size&&y.forEach(([e,t],r)=>{if(t)throw Error("remove already exists");let n=e[3](b(r));y.set(r,[e,n])});let t=()=>{p.delete(e),0===p.size&&y.forEach(([e,t],r)=>{t&&(t(),y.set(r,[e]))})};return t},C=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),A={deleteProperty(e,t){let r=Reflect.get(e,t);x(t);let n=Reflect.deleteProperty(e,t);return n&&g(["delete",[t],r]),n},set(t,n,i,o){let l=Reflect.has(t,n),h=Reflect.get(t,n,o);if(l&&(e(h,i)||a.has(i)&&e(h,a.get(i))))return!0;x(n),c(i)&&(i=s(i)||i);let p=i;if(i instanceof Promise)i.then(e=>{i.status="fulfilled",i.value=e,g(["resolve",[n],e])}).catch(e=>{i.status="rejected",i.reason=e,g(["reject",[n],e])});else{!u.has(i)&&r(i)&&(p=f(i));let e=!d.has(p)&&u.get(p);e&&w(n,e)}return Reflect.set(t,n,p,o),g(["set",[n],i,h]),!0}},k=t(C,A);a.set(n,k);let E=[C,v,o,_];return u.set(k,E),Reflect.ownKeys(n).forEach(e=>{let t=Object.getOwnPropertyDescriptor(n,e);"value"in t&&(k[e]=n[e],delete t.value,delete t.writable),Object.defineProperty(C,e,t)}),k})=>[f,u,d,e,t,r,n,i,o,a,h])();function f(e={}){return h(e)}function p(e,t,r){let n;let i=u.get(e);i||console.warn("Please use proxy object");let o=[],a=i[3],s=!1,l=a(e=>{if(o.push(e),r){t(o.splice(0));return}n||(n=Promise.resolve().then(()=>{n=void 0,s&&t(o.splice(0))}))});return s=!0,()=>{s=!1,l()}}function g(e,t){let r=u.get(e);r||console.warn("Please use proxy object");let[n,i,o]=r;return o(n,i(),t)}function m(e){return d.add(e),e}},73932:function(e,t,r){"use strict";r.d(t,{VW:function(){return i},Yr:function(){return o}});var n=r(17832);function i(e,t,r,i){let o=e[t];return(0,n.Ld)(e,()=>{let n=e[t];Object.is(o,n)||r(o=n)},i)}function o(e){let t=(0,n.sj)({data:Array.from(e||[]),has(e){return this.data.some(t=>t[0]===e)},set(e,t){let r=this.data.find(t=>t[0]===e);return r?r[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find(t=>t[0]===e))?void 0:t[1]},delete(e){let t=this.data.findIndex(t=>t[0]===e);return -1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return new Map(this.data)},forEach(e){this.data.forEach(t=>{e(t[1],t[0],this)})},keys(){return this.data.map(e=>e[0]).values()},values(){return this.data.map(e=>e[1]).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}Symbol()},14503:function(e,t,r){"use strict";function n(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}r.d(t,{T:function(){return n}})},18011:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n=r(16693),i=r(7210),o=r(55629),a=r(47864),s=r(61836),l=r(92106),c=r(74526),u=r(75719),d=r(48063),h=r(93714),f=r(88819);async function p(e,{blockNumber:t,blockTag:r,coinType:p,name:g,gatewayUrls:m,strict:v,universalResolverAddress:b}){let y=b;if(!y){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");y=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a=(0,o.R)({abi:n.X$,functionName:"addr",...null!=p?{args:[(0,u.V)(g),BigInt(p)]}:{args:[(0,u.V)(g)]}}),c={address:y,abi:n.k3,functionName:"resolve",args:[(0,l.NC)((0,d.T)(g)),a],blockNumber:t,blockTag:r},v=(0,h.s)(e,f.L,"readContract"),b=m?await v({...c,args:[...c.args,m]}):await v(c);if("0x"===b[0])return null;let w=(0,i.k)({abi:n.X$,args:null!=p?[(0,u.V)(g),BigInt(p)]:void 0,functionName:"addr",data:b[0]});if("0x"===w||"0x00"===(0,s.f)(w))return null;return w}catch(e){if(v)throw e;if((0,c.c)(e,"resolve"))return null;throw e}}},95270:function(e,t,r){"use strict";r.d(t,{r:function(){return A}});var n=r(88819),i=r(36117);class o extends i.G{constructor({data: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(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends i.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class s extends i.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class l extends i.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let c=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,u=/^(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,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,d=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,h=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function f(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function g({uri:e,gatewayUrls:t}){let r=d.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),o=e.match(c),{protocol:a,subpath:l,target:f,subtarget:g=""}=o?.groups||{},m="ipns:/"===a||"ipns/"===l,v="ipfs:/"===a||"ipfs/"===l||u.test(e);if(e.startsWith("http")&&!m&&!v){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((m||v)&&f)return{uri:`${n}/${m?"ipns":"ipfs"}/${f}${g}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&f)return{uri:`${i}/${f}${g||""}`,isOnChain:!1,isEncoded:!1};let b=e.replace(h,"");if(b.startsWith("<svg")&&(b=`data:image/svg+xml;base64,${btoa(b)}`),b.startsWith("data:")||b.startsWith("{"))return{uri:b,isOnChain:!0,isEncoded:!1};throw new s({uri:e})}function m(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new o({data:e});return e.image||e.image_url||e.image_data}async function v({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await b({gatewayUrls:e,uri:m(r)})}catch{throw new s({uri:t})}}async function b({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=g({uri:t,gatewayUrls:e});if(n||await f(r))return r;throw new s({uri:t})}async function y(e,{nft:t}){if("erc721"===t.namespace)return(0,n.L)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.L)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new l({namespace:t.namespace})}async function w(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?x(e,{gatewayUrls:t,record:r}):b({uri:r,gatewayUrls:t})}async function x(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[o,s]=r.split(":"),[l,c]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!s)throw new a({reason:"Chain ID not found"});if(!c)throw new a({reason:"Contract address not found"});if(!i)throw new a({reason:"Token ID not found"});if(!l)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s),namespace:l.toLowerCase(),contractAddress:c,tokenID:i}}(r),{uri:i,isOnChain:o,isEncoded:s}=g({uri:await y(e,{nft:n}),gatewayUrls:t});if(o&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return b({uri:m(JSON.parse(s?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let l=n.tokenID;return"erc1155"===n.namespace&&(l=l.replace("0x","").padStart(64,"0")),v({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,l)})}var _=r(93714),C=r(16171);async function A(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:o,strict:a,universalResolverAddress:s}){let l=await (0,_.s)(e,C.g,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:s,gatewayUrls:o,strict:a});if(!l)return null;try{return await w(e,{record:l,gatewayUrls:n})}catch{return null}}},95602:function(e,t,r){"use strict";r.d(t,{w:function(){return u}});var n=r(16693),i=r(47864),o=r(92106),a=r(74526),s=r(48063),l=r(93714),c=r(88819);async function u(e,{address:t,blockNumber:r,blockTag:u,gatewayUrls:d,strict:h,universalResolverAddress:f}){let p=f;if(!p){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");p=(0,i.L)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let g=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let i={address:p,abi:n.du,functionName:"reverse",args:[(0,o.NC)((0,s.T)(g))],blockNumber:r,blockTag:u},a=(0,l.s)(e,c.L,"readContract"),[h,f]=d?await a({...i,args:[...i.args,d]}):await a(i);if(t.toLowerCase()!==f.toLowerCase())return null;return h}catch(e){if(h)throw e;if((0,a.c)(e,"reverse"))return null;throw e}}},16171:function(e,t,r){"use strict";r.d(t,{g:function(){return f}});var n=r(16693),i=r(7210),o=r(55629),a=r(47864),s=r(92106),l=r(74526),c=r(75719),u=r(48063),d=r(93714),h=r(88819);async function f(e,{blockNumber:t,blockTag:r,name:f,key:p,gatewayUrls:g,strict:m,universalResolverAddress:v}){let b=v;if(!b){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");b=(0,a.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{let a={address:b,abi:n.k3,functionName:"resolve",args:[(0,s.NC)((0,u.T)(f)),(0,o.R)({abi:n.nZ,functionName:"text",args:[(0,c.V)(f),p]})],blockNumber:t,blockTag:r},l=(0,d.s)(e,h.L,"readContract"),m=g?await l({...a,args:[...a.args,g]}):await l(a);if("0x"===m[0])return null;let v=(0,i.k)({abi:n.nZ,functionName:"text",data:m[0]});return""===v?null:v}catch(e){if(m)throw e;if((0,l.c)(e,"resolve"))return null;throw e}}},43558:function(e,t,r){"use strict";r.d(t,{R:function(){return ee}});var n=r(84917);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,s=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,l=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,c=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,u=/^receive\(\) external payable$/,d=new Set(["indexed"]),h=new Set(["calldata","memory","storage"]);class f extends Error{constructor(e,t={}){let r=t.cause instanceof f?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof f&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.5"].join("\n")),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:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class p extends f{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class g extends f{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class m extends f{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class v extends f{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class b extends f{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class y extends f{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class w extends f{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class x extends f{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class _ extends f{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class C extends f{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class A extends f{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class k extends f{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let E=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),S=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,T=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,I=/^u?int$/;function P(e,t){var r,i,o;let a;let s=(r=t?.type)?`${r}:${e}`:e;if(E.has(s))return E.get(s);let l=n.cN.test(e),c=(0,n.Zw)(l?T:S,e);if(!c)throw new m({param:e});if(c.name&&("address"===(i=c.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||n.eL.test(i)||n.lh.test(i)||M.test(i)))throw new v({param:e,name:c.name});let u=c.name?{name:c.name}:{},d="indexed"===c.modifier?{indexed:!0}:{},f=t?.structs??{},p={};if(l){a="tuple";let e=O(c.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(P(e[n],{structs:f}));p={components:t}}else if(c.type in f)a="tuple",p={components:f[c.type]};else if(I.test(c.type))a=`${c.type}256`;else if(a=c.type,t?.type!=="struct"&&!R(a))throw new g({type:a});if(c.modifier){if(!t?.modifiers?.has?.(c.modifier))throw new b({param:e,type:t?.type,modifier:c.modifier});if(h.has(c.modifier)&&(o=a,!c.array&&"bytes"!==o&&"string"!==o&&"tuple"!==o))throw new y({param:e,type:t?.type,modifier:c.modifier})}let w={type:`${a}${c.array??""}`,...u,...d,...p};return E.set(s,w),w}function O(e,t=[],r="",n=0){let i=e.trim().length;for(let o=0;o<i;o++){let i=e[o],a=e.slice(o+1);switch(i){case",":return 0===n?O(a,[...t,r.trim()]):O(a,t,`${r}${i}`,n);case"(":return O(a,t,`${r}${i}`,n+1);case")":return O(a,t,`${r}${i}`,n-1);default:return O(a,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new k({current:r,depth:n});return t.push(r.trim()),t}function R(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.eL.test(e)||n.lh.test(e)}let M=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,N=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function j(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!s.test(r))continue;let o=(0,n.Zw)(s,r);if(!o)throw new x({signature:r,type:"struct"});let a=o.properties.split(";"),l=[],c=a.length;for(let e=0;e<c;e++){let t=a[e].trim();if(!t)continue;let r=P(t,{type:"struct"});l.push(r)}if(!l.length)throw new C({signature:r});t[o.name]=l}let i={},o=Object.entries(t),a=o.length;for(let e=0;e<a;e++){let[r,a]=o[e];i[r]=function e(t,r,i=new Set){let o=[],a=t.length;for(let s=0;s<a;s++){let a=t[s];if(n.cN.test(a.type))o.push(a);else{let t=(0,n.Zw)(N,a.type);if(!t?.type)throw new w({abiParameter:a});let{array:s,type:l}=t;if(l in r){if(i.has(l))throw new A({type:l});o.push({...a,type:`tuple${s??""}`,components:e(r[l]??[],r,new Set([...i,l]))})}else if(R(l))o.push(a);else throw new p({type:l})}}return o}(a,t)}return i}(e),r=[],f=e.length;for(let p=0;p<f;p++){let f=e[p];s.test(f)||r.push(function(e,t={}){if(a.test(e)){let r=(0,n.Zw)(a,e);if(!r)throw new x({signature:e,type:"function"});let i=O(r.parameters),o=[],s=i.length;for(let e=0;e<s;e++)o.push(P(i[e],{modifiers:h,structs:t,type:"function"}));let l=[];if(r.returns){let e=O(r.returns),n=e.length;for(let r=0;r<n;r++)l.push(P(e[r],{modifiers:h,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:o,outputs:l}}if(o.test(e)){let r=(0,n.Zw)(o,e);if(!r)throw new x({signature:e,type:"event"});let i=O(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(P(i[e],{modifiers:d,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}if(i.test(e)){let r=(0,n.Zw)(i,e);if(!r)throw new x({signature:e,type:"error"});let o=O(r.parameters),a=[],s=o.length;for(let e=0;e<s;e++)a.push(P(o[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}if(l.test(e)){let r=(0,n.Zw)(l,e);if(!r)throw new x({signature:e,type:"constructor"});let i=O(r.parameters),o=[],a=i.length;for(let e=0;e<a;e++)o.push(P(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:o}}if(c.test(e))return{type:"fallback"};if(u.test(e))return{type:"receive",stateMutability:"payable"};throw new _({signature:e})}(f,t))}return r}var D=r(14503),B=r(16693),L=r(18590),$=r(36117),U=r(80377),z=r(97405),F=r(7210),q=r(30286),H=r(55629),W=r(47864),V=r(92106),Z=r(26445),G=r(87469),K=r(61163),Y=r(74688),Q=r(32357),J=r(50150),X=r(35721);async function ee(e,t){let{account:n=e.account,batch:i=!!e.batch?.multicall,blockNumber:o,blockTag:a="latest",accessList:s,blobs:l,code:c,data:u,factory:d,factoryData:h,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:v,nonce:b,to:y,value:w,stateOverride:x,..._}=t,C=n?(0,D.T)(n):void 0;if(c&&(d||h))throw new $.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(c&&y)throw new $.G("Cannot provide both `code` & `to` as parameters.");let A=c&&u,k=d&&h&&y&&u,E=A||k,S=A?function(e){let{code:t,data:r}=e;return(0,q.w)({abi:j(["constructor(bytes, bytes)"]),bytecode:L.NO,args:[t,r]})}({code:c,data:u}):k?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return(0,q.w)({abi:j(["constructor(address, bytes, address, bytes)"]),bytecode:L.pG,args:[i,t,r,n]})}({data:u,factory:d,factoryData:h,to:y}):u;try{(0,X.F)(t);let r=(o?(0,V.eC)(o):void 0)||a,n=(0,J.mF)(x),c=e.chain?.formatters?.transactionRequest?.format,u=(c||Y.tG)({...(0,K.K)(_,{format:c}),from:C?.address,accessList:s,blobs:l,data:S,gas:f,gasPrice:p,maxFeePerBlobGas:g,maxFeePerGas:m,maxPriorityFeePerGas:v,nonce:b,to:E?void 0:y,value:w});if(i&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:u})&&!n)try{return await et(e,{...u,blockNumber:o,blockTag:a})}catch(e){if(!(e instanceof U.pZ)&&!(e instanceof U.mm))throw e}let d=await e.request({method:"eth_call",params:n?[u,r,n]:[u,r]});if("0x"===d)return{data:void 0};return{data:d}}catch(a){let n=function(e){if(!(e instanceof $.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:i,offchainLookupSignature:o}=await r.e(1785).then(r.bind(r,21785));if(!1!==e.ccipRead&&n?.slice(0,10)===o&&y)return{data:await i(e,{data:n,to:y})};if(E&&n?.slice(0,10)==="0x101bb98d")throw new z.Mo({factory:d});throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,G.k)(e,r);return t instanceof Z.cj?e:t})();return new z.cg(n,{docsPath:t,...r})}(a,{...t,account:C,chain:e.chain})}}async function et(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:o="latest",data:a,multicallAddress:s,to:l}=t,c=s;if(!c){if(!e.chain)throw new U.pZ;c=(0,W.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let u=(i?(0,V.eC)(i):void 0)||o,{schedule:d}=(0,Q.S)({id:`${e.uid}.${u}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,H.R)({abi:B.F8,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:c},u]});return(0,F.k)({abi:B.F8,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:h,success:f}]=await d({data:a,to:l});if(!f)throw new z.VQ({data:h});return"0x"===h?{data:void 0}:{data:h}}},43861:function(e,t,r){"use strict";r.d(t,{C:function(){return c},X:function(){return l}});var n=r(15371),i=r(93714),o=r(79379),a=r(75016),s=r(24453);async function l(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:l=e.chain,request:c,type:u="eip1559"}=t||{},d=await (async()=>"function"==typeof l?.fees?.baseFeeMultiplier?l.fees.baseFeeMultiplier({block:r,client:e,request:c}):l?.fees?.baseFeeMultiplier??1.2)();if(d<1)throw new n.Fz;let h=10**(d.toString().split(".")[1]?.length??0),f=e=>e*BigInt(Math.ceil(d*h))/BigInt(h),p=r||await (0,i.s)(e,a.Q,"getBlock")({});if("function"==typeof l?.fees?.estimateFeesPerGas){let t=await l.fees.estimateFeesPerGas({block:r,client:e,multiply:f,request:c,type:u});if(null!==t)return t}if("eip1559"===u){if("bigint"!=typeof p.baseFeePerGas)throw new n.e5;let t="bigint"==typeof c?.maxPriorityFeePerGas?c.maxPriorityFeePerGas:await (0,o.h)(e,{block:p,chain:l,request:c}),r=f(p.baseFeePerGas);return{maxFeePerGas:c?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:c?.gasPrice??f(await (0,i.s)(e,s.o,"getGasPrice")({}))}}},81841:function(e,t,r){"use strict";r.d(t,{Q:function(){return y}});var n=r(14503),i=r(36117),o=r(91213),a=r(92106),s=r(39625),l=r(67795),c=r(33639);class u extends i.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,c.xr)({from:t?.address,to:f,value:void 0!==p&&`${(0,s.d)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==a&&`${(0,l.o)(a)} gwei`,maxFeePerGas:void 0!==u&&`${(0,l.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,l.o)(d)} gwei`,nonce:h})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var d=r(26445),h=r(87469),f=r(61163),p=r(74688),g=r(50150),m=r(35721),v=r(76404),b=r(88930);async function y(e,t){let r=t.account??e.account,s=r?(0,n.T)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:c,blobVersionedHashes:u,blockNumber:d,blockTag:h,data:y,gas:w,gasPrice:x,maxFeePerBlobGas:_,maxFeePerGas:C,maxPriorityFeePerGas:A,nonce:k,value:E,stateOverride:S,...T}=await (0,v.Z)(e,{...t,parameters:s?.type==="local"?void 0:["blobVersionedHashes"]}),I=(d?(0,a.eC)(d):void 0)||h,P=(0,g.mF)(S),O=await (async()=>T.to?T.to:n&&n.length>0?await (0,o.z)({authorization:n[0]}).catch(()=>{throw new i.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,m.F)(t);let R=e.chain?.formatters?.transactionRequest?.format,M=(R||p.tG)({...(0,f.K)(T,{format:R}),from:s?.address,accessList:r,authorizationList:n,blobs:c,blobVersionedHashes:u,data:y,gas:w,gasPrice:x,maxFeePerBlobGas:_,maxFeePerGas:C,maxPriorityFeePerGas:A,nonce:k,to:O,value:E});function l(t){let{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??"latest",i]:r?[n,r]:[n]})}let N=BigInt(await l({block:I,request:M,rpcStateOverride:P}));if(n){let t=await (0,b.s)(e,{address:M.from}),r=await Promise.all(n.map(async e=>{let{contractAddress:r}=e,n=await l({block:I,request:{authorizationList:void 0,data:y,from:s?.address,to:r,value:(0,a.eC)(t)},rpcStateOverride:P}).catch(()=>100000n);return 2n*BigInt(n)}));N+=r.reduce((e,t)=>e+t,0n)}return N}catch(r){throw function(e,{docsPath:t,...r}){return new u((()=>{let t=(0,h.k)(e,r);return t instanceof d.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:s,chain:e.chain})}}},79379:function(e,t,r){"use strict";r.d(t,{_:function(){return l},h:function(){return c}});var n=r(15371),i=r(95946),o=r(93714),a=r(75016),s=r(24453);async function l(e,t){return c(e,t)}async function c(e,t){let{block:r,chain:l=e.chain,request:c}=t||{};try{let t=l?.fees?.maxPriorityFeePerGas??l?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,o.s)(e,a.Q,"getBlock")({}),i=await t({block:n,client:e,request:c});if(null===i)throw Error();return i}if(void 0!==t)return t;let n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.y_)(n)}catch{let[t,i]=await Promise.all([r?Promise.resolve(r):(0,o.s)(e,a.Q,"getBlock")({}),(0,o.s)(e,s.o,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.e5;let l=i-t.baseFeePerGas;if(l<0n)return 0n;return l}}},88930:function(e,t,r){"use strict";r.d(t,{s:function(){return i}});var n=r(92106);async function i(e,{address:t,blockNumber:r,blockTag:i="latest"}){let o=r?(0,n.eC)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,o||i]}))}},75016:function(e,t,r){"use strict";r.d(t,{Q:function(){return a}});var n=r(79814),i=r(92106),o=r(43310);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,includeTransactions:s}={}){let l=s??!1,c=void 0!==r?(0,i.eC)(r):void 0,u=null;if(!(u=t?await e.request({method:"eth_getBlockByHash",params:[t,l]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||(a??"latest"),l]},{dedupe:!!c})))throw new n.f({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||o.Z)(u)}},97712:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});let n=new Map,i=new Map;async function o(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let o=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,n),o=t(e,i);return{clear:()=>{r.clear(),o.clear()},promise:r,response:o}}(t),a=o.response.get();if(a&&r>0&&new Date().getTime()-a.created.getTime()<r)return a.data;let s=o.promise.get();s||(s=e(),o.promise.set(s));try{let e=await s;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}let a=e=>`blockNumber.${e}`;async function s(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await o(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},79524:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(95946);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.ly)(t)}},24453:function(e,t,r){"use strict";async function n(e){return BigInt(await e.request({method:"eth_gasPrice"}))}r.d(t,{o:function(){return n}})},23147:function(e,t,r){"use strict";r.d(t,{f:function(){return a}});var n=r(33639),i=r(92106),o=r(6073);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:s,index:l}){let c=a||"latest",u=void 0!==r?(0,i.eC)(r):void 0,d=null;if(s?d=await e.request({method:"eth_getTransactionByHash",params:[s]},{dedupe:!0}):t?d=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.eC)(l)]},{dedupe:!0}):(u||c)&&(d=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[u||c,(0,i.eC)(l)]},{dedupe:!!u})),!d)throw new n.Bh({blockHash:t,blockNumber:r,blockTag:c,hash:s,index:l});return(e.chain?.formatters?.transaction?.format||o.Tr)(d)}},86162:function(e,t,r){"use strict";r.d(t,{K:function(){return o}});var n=r(95946),i=r(92106);async function o(e,{address:t,blockTag:r="latest",blockNumber:o}){let a=await e.request({method:"eth_getTransactionCount",params:[t,o?(0,i.eC)(o):r]},{dedupe:!!o});return(0,n.ly)(a)}},34085:function(e,t,r){"use strict";r.d(t,{a:function(){return l}});var n=r(33639),i=r(95946),o=r(53992),a=r(6073);let s={"0x0":"reverted","0x1":"success"};async function l(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...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=>(0,o.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?s[e.status]:null,type:e.type?a.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(r)}},9884:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(16693),i=r(57412),o=r(36117),a=r(97405),s=r(7210),l=r(55629),c=r(47864),u=r(72365),d=r(93714),h=r(88819);async function f(e,t){let{allowFailure:r=!0,batchSize:f,blockNumber:p,blockTag:g,multicallAddress:m,stateOverride:v}=t,b=t.contracts,y=f??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),w=m;if(!w){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");w=(0,c.L)({blockNumber:p,chain:e.chain,contract:"multicall3"})}let x=[[]],_=0,C=0;for(let e=0;e<b.length;e++){let{abi:t,address:n,args:i,functionName:o}=b[e];try{let e=(0,l.R)({abi:t,args:i,functionName:o});C+=(e.length-2)/2,y>0&&C>y&&x[_].length>0&&(_++,C=(e.length-2)/2,x[_]=[]),x[_]=[...x[_],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,u.S)(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:o});if(!r)throw e;x[_]=[...x[_],{allowFailure:!0,callData:"0x",target:n}]}}let A=await Promise.allSettled(x.map(t=>(0,d.s)(e,h.L,"readContract")({abi:n.F8,address:w,args:[t],blockNumber:p,blockTag:g,functionName:"aggregate3",stateOverride:v}))),k=[];for(let e=0;e<A.length;e++){let t=A[e];if("rejected"===t.status){if(!r)throw t.reason;for(let r=0;r<x[e].length;r++)k.push({status:"failure",error:t.reason,result:void 0});continue}let n=t.value;for(let t=0;t<n.length;t++){let{returnData:o,success:l}=n[t],{callData:c}=x[e][t],{abi:d,address:h,functionName:f,args:p}=b[k.length];try{if("0x"===c)throw new i.wb;if(!l)throw new a.VQ({data:o});let e=(0,s.k)({abi:d,args:p,data:o,functionName:f});k.push(r?{result:e,status:"success"}:e)}catch(t){let e=(0,u.S)(t,{abi:d,address:h,args:p,docsPath:"/docs/contract/multicall",functionName:f});if(!r)throw e;k.push({error:e,result:void 0,status:"failure"})}}}if(k.length!==b.length)throw new o.G("multicall results mismatch");return k}},88819:function(e,t,r){"use strict";r.d(t,{L:function(){return l}});var n=r(7210),i=r(55629),o=r(72365),a=r(93714),s=r(43558);async function l(e,t){let{abi:r,address:l,args:c,functionName:u,...d}=t,h=(0,i.R)({abi:r,args:c,functionName:u});try{let{data:t}=await (0,a.s)(e,s.R,"call")({...d,data:h,to:l});return(0,n.k)({abi:r,args:c,functionName:u,data:t||"0x"})}catch(e){throw(0,o.S)(e,{abi:r,address:l,args:c,docsPath:"/docs/contract/readContract",functionName:u})}}},66432:function(e,t,r){"use strict";r.d(t,{a:function(){return c}});var n=r(14503),i=r(7210),o=r(55629),a=r(72365),s=r(93714),l=r(43558);async function c(e,t){let{abi:r,address:c,args:u,dataSuffix:d,functionName:h,...f}=t,p=f.account?(0,n.T)(f.account):e.account,g=(0,o.R)({abi:r,args:u,functionName:h});try{let{data:n}=await (0,s.s)(e,l.R,"call")({batch:!1,data:`${g}${d?d.replace("0x",""):""}`,to:c,...f,account:p}),o=(0,i.k)({abi:r,args:u,functionName:h,data:n||"0x"}),a=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:o,request:{abi:a,address:c,args:u,dataSuffix:d,functionName:h,...f,account:p}}}catch(e){throw(0,a.S)(e,{abi:r,address:c,args:u,docsPath:"/docs/contract/simulateContract",functionName:h,sender:p?.address})}}},51973:function(e,t,r){"use strict";r.d(t,{e:function(){return f}});var n=r(79814),i=r(33639),o=r(93714),a=r(22514),s=r(7760),l=r(96070),c=r(75016),u=r(23147),d=r(34085),h=r(65185);async function f(e,{confirmations:t=1,hash:r,onReplaced:f,pollingInterval:p=e.pollingInterval,retryCount:g=6,retryDelay:m=({count:e})=>200*~~(1<<e),timeout:v}){let b,y,w;let x=(0,l.P)(["waitForTransactionReceipt",e.uid,r]),_=0,C=!1;return new Promise((l,A)=>{v&&setTimeout(()=>A(new i.mc({hash:r})),v);let k=(0,a.N7)(x,{onReplaced:f,resolve:l,reject:A},a=>{let l=(0,o.s)(e,h.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber(h){let f=e=>{l(),e(),k()},p=h;if(!C){_>g&&f(()=>a.reject(new i.mc({hash:r})));try{if(w){if(t>1&&(!w.blockNumber||p-w.blockNumber+1n<t))return;f(()=>a.resolve(w));return}if(b||(C=!0,await (0,s.J)(async()=>{(b=await (0,o.s)(e,u.f,"getTransaction")({hash:r})).blockNumber&&(p=b.blockNumber)},{delay:m,retryCount:g}),C=!1),w=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:r}),t>1&&(!w.blockNumber||p-w.blockNumber+1n<t))return;f(()=>a.resolve(w))}catch(r){if(r instanceof i.Bh||r instanceof i.Yb){if(!b){C=!1;return}try{y=b,C=!0;let r=await (0,s.J)(()=>(0,o.s)(e,c.Q,"getBlock")({blockNumber:p,includeTransactions:!0}),{delay:m,retryCount:g,shouldRetry:({error:e})=>e instanceof n.f});C=!1;let i=r.transactions.find(({from:e,nonce:t})=>e===y.from&&t===y.nonce);if(!i||(w=await (0,o.s)(e,d.a,"getTransactionReceipt")({hash:i.hash}),t>1&&(!w.blockNumber||p-w.blockNumber+1n<t)))return;let l="replaced";i.to===y.to&&i.value===y.value?l="repriced":i.from===i.to&&0n===i.value&&(l="cancelled"),f(()=>{a.onReplaced?.({reason:l,replacedTransaction:y,transaction:i,transactionReceipt:w}),a.resolve(w)})}catch(e){f(()=>a.reject(e))}}else f(()=>a.reject(r))}finally{_++}}}})})})}},65185:function(e,t,r){"use strict";r.d(t,{q:function(){return c}});var n=r(95946),i=r(93714),o=r(22514),a=r(23),s=r(96070),l=r(97712);function c(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:c,onError:u,poll:d,pollingInterval:h=e.pollingInterval}){let f;return(void 0!==d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{let n=(0,s.P)(["watchBlockNumber",e.uid,t,r,h]);return(0,o.N7)(n,{onBlockNumber:c,onError:u},n=>(0,a.$)(async()=>{try{let t=await (0,i.s)(e,l.z,"getBlockNumber")({cacheTime:0});if(f){if(t===f)return;if(t-f>1&&r)for(let e=f+1n;e<t;e++)n.onBlockNumber(e,f),f=e}(!f||t>f)&&(n.onBlockNumber(t,f),f=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:h}))})():(()=>{let i=(0,s.P)(["watchBlockNumber",e.uid,t,r]);return(0,o.N7)(i,{onBlockNumber:c,onError:u},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let o=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await o.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.y_)(e.result?.number);t.onBlockNumber(i,f),f=i},onError(e){t.onError?.(e)}});i=a,r||i()}catch(e){u?.(e)}})(),()=>i()})})()}},76404:function(e,t,r){"use strict";r.d(t,{Q:function(){return A},Z:function(){return k}});var n=r(14503),i=r(43861),o=r(81841),a=r(75016),s=r(86162),l=r(15371),c=r(11187),u=r(92106);function d(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,c.nr)(e)):e.blobs,i=[];for(let e of n)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,u.ci)(e))}function h(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,c.nr)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,c.nr)(e)):e.commitments,o=[];for(let e=0;e<n.length;e++){let r=n[e],a=i[e];o.push(Uint8Array.from(t.computeBlobKzgProof(r,a)))}return"bytes"===r?o:o.map(e=>(0,u.ci)(e))}var f=r(53932),p=r(15102),g=r(36117);class m extends g.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class v extends g.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}var b=r(11221),y=r(39135),w=r(93714),x=r(35721),_=r(33639),C=r(79524);let A=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function k(e,t){let r,g;let{account:k=e.account,blobs:E,chain:S,gas:T,kzg:I,nonce:P,nonceManager:O,parameters:R=A,type:M}=t,N=k?(0,n.T)(k):void 0,j={...t,...N?{from:N?.address}:{}};async function D(){return r||(r=await (0,w.s)(e,a.Q,"getBlock")({blockTag:"latest"}))}async function B(){return g||(S?S.id:void 0!==t.chainId?t.chainId:g=await (0,w.s)(e,C.L,"getChainId")({}))}if((R.includes("blobVersionedHashes")||R.includes("sidecars"))&&E&&I){let e=d({blobs:E,kzg:I});if(R.includes("blobVersionedHashes")){let t=function(e){let{commitments:t,version:r}=e,n=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(let e of t)i.push(function(e){let{commitment:t,version:r=1}=e,n=e.to??("string"==typeof t?"hex":"bytes"),i=function(e,t){let r=(0,f.J)((0,p.v)(e,{strict:!1})?(0,c.O0)(e):e);return"bytes"===(t||"hex")?r:(0,u.NC)(r)}(t,"bytes");return i.set([r],0),"bytes"===n?i:(0,u.ci)(i)}({commitment:e,to:n,version:r}));return i}({commitments:e,to:"hex"});j.blobVersionedHashes=t}if(R.includes("sidecars")){let t=h({blobs:E,commitments:e,kzg:I}),r=function(e){let{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,c.nr)(e.data):e.data,n=(0,y.d)(r);if(!n)throw new v;if(n>761855)throw new m({maxSize:761855,size:n});let i=[],o=!0,a=0;for(;o;){let e=(0,b.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(a,a+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),o=!1;break}t++,a+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,u.ci)(e.bytes))}({data:t,to:n}),o=e.commitments??d({blobs:i,kzg:r,to:n}),a=e.proofs??h({blobs:i,commitments:o,kzg:r,to:n}),s=[];for(let e=0;e<i.length;e++)s.push({blob:i[e],commitment:o[e],proof:a[e]});return s}({blobs:E,commitments:e,proofs:t,to:"hex"});j.sidecars=r}}if(R.includes("chainId")&&(j.chainId=await B()),R.includes("nonce")&&void 0===P&&N){if(O){let t=await B();j.nonce=await O.consume({address:N.address,chainId:t,client:e})}else j.nonce=await (0,w.s)(e,s.K,"getTransactionCount")({address:N.address,blockTag:"pending"})}if((R.includes("fees")||R.includes("type"))&&void 0===M)try{j.type=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new _.j3({transaction:e})}(j)}catch{let e=await D();j.type="bigint"==typeof e?.baseFeePerGas?"eip1559":"legacy"}if(R.includes("fees")){if("legacy"!==j.type&&"eip2930"!==j.type){if(void 0===j.maxFeePerGas||void 0===j.maxPriorityFeePerGas){let r=await D(),{maxFeePerGas:n,maxPriorityFeePerGas:o}=await (0,i.C)(e,{block:r,chain:S,request:j});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<o)throw new l.ld({maxPriorityFeePerGas:o});j.maxPriorityFeePerGas=o,j.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new l.e5;let r=await D(),{gasPrice:n}=await (0,i.C)(e,{block:r,chain:S,request:j,type:"legacy"});j.gasPrice=n}}return R.includes("gas")&&void 0===T&&(j.gas=await (0,w.s)(e,o.Q,"estimateGas")({...j,account:N?{address:N.address,type:"json-rpc"}:void 0})),(0,x.F)(j),delete j.parameters,j}},99238:function(e,t,r){"use strict";async function n(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}r.d(t,{p:function(){return n}})},96128:function(e,t,r){"use strict";r.d(t,{T:function(){return b}});var n=r(14503),i=r(8998),o=r(36117),a=r(91213),s=r(33840),l=r(26445),c=r(33639),u=r(87469),d=r(61163),h=r(74688),f=r(93714),p=r(35721),g=r(79524),m=r(76404),v=r(99238);async function b(e,t){let{account:r=e.account,chain:b=e.chain,accessList:y,authorizationList:w,blobs:x,data:_,gas:C,gasPrice:A,maxFeePerBlobGas:k,maxFeePerGas:E,maxPriorityFeePerGas:S,nonce:T,value:I,...P}=t;if(!r)throw new i.o({docsPath:"/docs/actions/wallet/sendTransaction"});let O=(0,n.T)(r);try{(0,p.F)(t);let r=await (async()=>t.to?t.to:w&&w.length>0?await (0,a.z)({authorization:w[0]}).catch(()=>{throw new o.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if("json-rpc"===O.type){let t;null!==b&&(t=await (0,f.s)(e,g.L,"getChainId")({}),(0,s.q)({currentChainId:t,chain:b}));let n=e.chain?.formatters?.transactionRequest?.format,i=(n||h.tG)({...(0,d.K)(P,{format:n}),accessList:y,authorizationList:w,blobs:x,chainId:t,data:_,from:O.address,gas:C,gasPrice:A,maxFeePerBlobGas:k,maxFeePerGas:E,maxPriorityFeePerGas:S,nonce:T,to:r,value:I});return await e.request({method:"eth_sendTransaction",params:[i]},{retryCount:0})}if("local"===O.type){let t=await (0,f.s)(e,m.Z,"prepareTransactionRequest")({account:O,accessList:y,authorizationList:w,blobs:x,chain:b,data:_,gas:C,gasPrice:A,maxFeePerBlobGas:k,maxFeePerGas:E,maxPriorityFeePerGas:S,nonce:T,nonceManager:O.nonceManager,parameters:[...m.Q,"sidecars"],value:I,...P,to:r}),n=b?.serializers?.transaction,i=await O.signTransaction(t,{serializer:n});return await (0,f.s)(e,v.p,"sendRawTransaction")({serializedTransaction:i})}if("smart"===O.type)throw new i.Y({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new i.Y({docsPath:"/docs/actions/wallet/sendTransaction",type:O.type})}catch(e){if(e instanceof i.Y)throw e;throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,u.k)(e,r);return t instanceof l.cj?e:t})();return new c.mk(n,{docsPath:t,...r})}(e,{...t,account:O,chain:t.chain||void 0})}}},22980:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var n=r(14503),i=r(8998),o=r(92106);async function a(e,{account:t=e.account,message:r}){if(!t)throw new i.o({docsPath:"/docs/actions/wallet/signMessage"});let a=(0,n.T)(t);if(a.signMessage)return a.signMessage({message:r});let s="string"==typeof r?(0,o.$G)(r):r.raw instanceof Uint8Array?(0,o.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[s,a.address]},{retryCount:0})}},61877:function(e,t,r){"use strict";r.d(t,{n:function(){return c}});var n=r(14503),i=r(8998),o=r(55629),a=r(72365),s=r(93714),l=r(96128);async function c(e,t){let{abi:r,account:c=e.account,address:u,args:d,dataSuffix:h,functionName:f,...p}=t;if(!c)throw new i.o({docsPath:"/docs/contract/writeContract"});let g=(0,n.T)(c),m=(0,o.R)({abi:r,args:d,functionName:f});try{return await (0,s.s)(e,l.T,"sendTransaction")({data:`${m}${h?h.replace("0x",""):""}`,to:u,account:g,...p})}catch(e){throw(0,a.S)(e,{abi:r,address:u,args:d,docsPath:"/docs/contract/writeContract",functionName:f,sender:g.address})}}},94898:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(14503),i=r(75632);function o(e){let{batch:t,cacheTime:r=e.pollingInterval??4e3,ccipRead:o,key:a="base",name:s="Base Client",pollingInterval:l=4e3,type:c="base"}=e,u=e.chain,d=e.account?(0,n.T)(e.account):void 0,{config:h,request:f,value:p}=e.transport({chain:u,pollingInterval:l}),g={account:d,batch:t,cacheTime:r,ccipRead:o,chain:u,key:a,name:s,pollingInterval:l,request:f,transport:{...h,...p},type:c,uid:(0,i.h)()};return Object.assign(g,{extend:function e(t){return r=>{let n=r(t);for(let e in g)delete n[e];let i={...t,...n};return Object.assign(i,{extend:e(i)})}}(g)})}},22319:function(e,t,r){"use strict";r.d(t,{q:function(){return h}});var n=r(36117),i=r(78863),o=r(39028),a=r(92106),s=r(93054);let l=new(r(79773)).k(8192);var c=r(7760),u=r(96070),d=r(75632);function h({key:e,name:t,request:r,retryCount:h=3,retryDelay:f=150,timeout:p,type:g},m){return{config:{key:e,name:t,request:r,retryCount:h,retryDelay:f,timeout:p,type:g},request:function(e,t={}){return async(r,d={})=>{let{dedupe:h=!1,retryDelay:f=150,retryCount:p=3,uid:g}={...t,...d},m=h?(0,s.w)((0,a.$G)(`${g}.${(0,u.P)(r)}`)):void 0;return function(e,{enabled:t=!0,id:r}){if(!t||!r)return e();if(l.get(r))return l.get(r);let n=e().finally(()=>l.delete(r));return l.set(r,n),n}(()=>(0,c.J)(async()=>{try{return await e(r)}catch(e){switch(e.code){case o.s7.code:throw new o.s7(e);case o.B.code:throw new o.B(e);case o.LX.code:throw new o.LX(e,{method:r.method});case o.nY.code:throw new o.nY(e);case o.XS.code:throw new o.XS(e);case o.yR.code:throw new o.yR(e);case o.Og.code:throw new o.Og(e);case o.pT.code:throw new o.pT(e);case o.KB.code:throw new o.KB(e);case o.gS.code:throw new o.gS(e,{method:r.method});case o.Pv.code:throw new o.Pv(e);case o.GD.code:throw new o.GD(e);case o.ab.code:throw new o.ab(e);case o.PE.code:throw new o.PE(e);case o.Ts.code:throw new o.Ts(e);case o.u5.code:throw new o.u5(e);case o.I0.code:throw new o.I0(e);case o.x3.code:throw new o.x3(e);case 5e3:throw new o.ab(e);default:if(e instanceof n.G)throw e;throw new o.ir(e)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof i.Gg){let e=t?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*Number.parseInt(e)}return~~(1<<e)*f},retryCount:p,shouldRetry:({error:e})=>"code"in e&&"number"==typeof e.code?-1===e.code||e.code===o.Pv.code||e.code===o.XS.code:!(e instanceof i.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}),{enabled:h,id:m})}}(r,{retryCount:h,retryDelay:f,uid:(0,d.h)()}),value:m}}},68597:function(e,t,r){"use strict";r.d(t,{d:function(){return d}});var n=r(78863),i=r(36117);class o extends i.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}var a=r(32357),s=r(60229),l=r(96070);let c={current:0,take(){return this.current++},reset(){this.current=0}};var u=r(22319);function d(e,t={}){let{batch:r,fetchOptions:i,key:d="http",name:h="HTTP JSON-RPC",onFetchRequest:f,onFetchResponse:p,retryDelay:g}=t;return({chain:m,retryCount:v,timeout:b})=>{let{batchSize:y=1e3,wait:w=0}="object"==typeof r?r:{},x=t.retryCount??v,_=b??t.timeout??1e4,C=e||m?.rpcUrls.default.http[0];if(!C)throw new o;let A=function(e,t={}){return{async request(r){let{body:i,onRequest:o=t.onRequest,onResponse:a=t.onResponse,timeout:u=t.timeout??1e4}=r,d={...t.fetchOptions??{},...r.fetchOptions??{}},{headers:h,method:f,signal:p}=d;try{let t;let r=await (0,s.F)(async({signal:t})=>{let r={...d,body:Array.isArray(i)?(0,l.P)(i.map(e=>({jsonrpc:"2.0",id:e.id??c.take(),...e}))):(0,l.P)({jsonrpc:"2.0",id:i.id??c.take(),...i}),headers:{"Content-Type":"application/json",...h},method:f||"POST",signal:p||(u>0?t:null)},n=new Request(e,r);return o&&await o(n),await fetch(e,r)},{errorInstance:new n.W5({body:i,url:e}),timeout:u,signal:!0});if(a&&await a(r),r.headers.get("Content-Type")?.startsWith("application/json")?t=await r.json():(t=await r.text(),t=JSON.parse(t||"{}")),!r.ok)throw new n.Gg({body:i,details:(0,l.P)(t.error)||r.statusText,headers:r.headers,status:r.status,url:e});return t}catch(t){if(t instanceof n.Gg||t instanceof n.W5)throw t;throw new n.Gg({body:i,cause:t,url:e})}}}}(C,{fetchOptions:i,onRequest:f,onResponse:p,timeout:_});return(0,u.q)({key:d,name:h,async request({method:e,params:t}){let i={method:e,params:t},{schedule:o}=(0,a.S)({id:C,wait:w,shouldSplitBatch:e=>e.length>y,fn:e=>A.request({body:e}),sort:(e,t)=>e.id-t.id}),s=async e=>r?o(e):[await A.request({body:e})],[{error:l,result:c}]=await s(i);if(l)throw new n.bs({body:i,error:l,url:C});return c},retryCount:x,retryDelay:g,timeout:_,type:"http"},{fetchOptions:i,url:C})}}},16693:function(e,t,r){"use strict";r.d(t,{$o:function(){return c},F8:function(){return n},X$:function(){return l},du:function(){return a},k3:function(){return o},nZ:function(){return s}});let n=[{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"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",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"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],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"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],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:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},18590:function(e,t,r){"use strict";r.d(t,{NO:function(){return n},ST:function(){return o},pG:function(){return i}});let n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",o="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},21746:function(e,t,r){"use strict";r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return o}});let n={1:"An `assert` condition failed.",17:"Arithmetic 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"}},84192:function(e,t,r){"use strict";r.d(t,{Bd:function(){return o},Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9},o={ether:-18,gwei:-9}},57412:function(e,t,r){"use strict";r.d(t,{CI:function(){return A},FM:function(){return p},Gy:function(){return _},KY:function(){return w},M4:function(){return d},MX:function(){return b},S4:function(){return y},SM:function(){return x},cO:function(){return s},dh:function(){return C},fM:function(){return a},fs:function(){return h},gr:function(){return u},hn:function(){return k},lC:function(){return g},mv:function(){return m},wM:function(){return E},wb:function(){return c},xB:function(){return l},xL:function(){return v},yP:function(){return f}});var n=r(80522),i=r(39135),o=r(36117);class a extends o.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends o.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class l extends o.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`],name:"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=e,this.params=t,this.size=r}}class c extends o.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class u extends o.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
Expected length: ${e}
Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends o.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class h extends o.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
Expected length (params): ${e}
Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends o.G{constructor(e,{docsPath: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}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class p extends o.G{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends o.G{constructor(e,{docsPath: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}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends o.G{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends o.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class b extends o.G{constructor(e,{docsPath: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.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class y extends o.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class w extends o.G{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends o.G{constructor({abiItem:e,data:t,params:r,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,n.h)(r,{includeName:!0})})`,`Data:   ${t} (${i} bytes)`],name:"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=e,this.data=t,this.params=r,this.size=i}}class _ extends o.G{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,n.t)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class A extends o.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class k extends o.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class E extends o.G{constructor(e){super(`"${e}" is not a valid definition type.
Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}},8998:function(e,t,r){"use strict";r.d(t,{Y:function(){return o},o:function(){return i}});var n=r(36117);class i extends n.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends n.G{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}},26087:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var n=r(36117);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},36117:function(e,t,r){"use strict";r.d(t,{G:function(){return o}});let n="2.21.5",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:n};class o extends Error{constructor(e,t={}){let r=t.cause instanceof o?t.cause.details:t.cause?.message?t.cause.message:t.details,a=t.cause instanceof o&&t.cause.docsPath||t.docsPath,s=i.getDocsUrl?.({...t,docsPath:a});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,r):r?null:t}(this,e)}}},79814:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(36117);class i extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},80377:function(e,t,r){"use strict";r.d(t,{Bk:function(){return a},Yl:function(){return o},mm:function(){return i},pZ:function(){return s}});var n=r(36117);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class o extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class a extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class s extends n.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}},97405:function(e,t,r){"use strict";r.d(t,{cg:function(){return v},uq:function(){return b},Lu:function(){return y},Dk:function(){return w},Mo:function(){return x},VQ:function(){return _}});var n=r(14503),i=r(21746),o=r(86899),a=r(80522),s=r(96070);function l({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,s.P)(t[r]):t[r]}`).join(", ")})`}var c=r(40840),u=r(39625),d=r(67795),h=r(57412),f=r(36117),p=r(20443),g=r(33639),m=r(29008);class v extends f.G{constructor(e,{account:t,docsPath:r,chain:i,data:o,gas:a,gasPrice:s,maxFeePerGas:l,maxPriorityFeePerGas:c,nonce:h,to:f,value:m,stateOverride:v}){let b=t?(0,n.T)(t):void 0,y=(0,g.xr)({from:b?.address,to:f,value:void 0!==m&&`${(0,u.d)(m)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:a,gasPrice:void 0!==s&&`${(0,d.o)(s)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,d.o)(c)} gwei`,nonce:h});v&&(y+=`
${(0,p.Bj)(v)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class b extends f.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:o,sender:s}){let u=(0,c.mE)({abi:t,args:r,name:o}),d=u?l({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,h=u?(0,a.t)(u,{includeName:!0}):void 0,f=(0,g.xr)({address:n&&(0,m.C)(n),function:h,args:d&&"()"!==d&&`${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:s});super(e.shortMessage||`An unknown error occurred while executing the contract function "${o}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],f&&"Contract Call:",f].filter(Boolean),name:"ContractFunctionExecutionError"}),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}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=o,this.sender=s}}class y extends f.G{constructor({abi:e,data:t,functionName:r,message:n}){let s,c,u,d,f;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:s}=f=(0,o.p)({abi:e,data:t});if("Error"===n)u=s[0];else if("Panic"===n){let[e]=s;u=i.$[e]}else{let e=r?(0,a.t)(r,{includeName:!0}):void 0,t=r&&s?l({abiItem:r,args:s,includeFunctionName:!1,includeName:!1}):void 0;c=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){s=e}else n&&(u=n);s instanceof h.yP&&(d=s.signature,c=[`Unable to decode signature "${d}" 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=${d}.`]),super(u&&"execution reverted"!==u||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,u||d].join("\n"):`The contract function "${r}" reverted.`,{cause:s,metaMessages:c,name:"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=f,this.reason=u,this.signature=d}}class w extends f.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class x extends f.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class _ extends f.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},66238:function(e,t,r){"use strict";r.d(t,{KD:function(){return a},T_:function(){return i},lQ:function(){return o}});var n=r(36117);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},69760:function(e,t,r){"use strict";r.d(t,{$s:function(){return o},W_:function(){return a},mV:function(){return i}});var n=r(36117);class i extends n.G{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class a extends n.G{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${t} ${r} long, but is ${e} ${r} long.`,{name:"InvalidBytesLengthError"})}}},87788:function(e,t,r){"use strict";r.d(t,{J5:function(){return i},M6:function(){return a},yr:function(){return o}});var n=r(36117);class i extends n.G{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class o extends n.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},15371:function(e,t,r){"use strict";r.d(t,{Fz:function(){return o},e5:function(){return a},ld:function(){return s}});var n=r(67795),i=r(36117);class o extends i.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends i.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class s extends i.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},26445:function(e,t,r){"use strict";r.d(t,{C_:function(){return d},G$:function(){return s},Hh:function(){return a},M_:function(){return o},WF:function(){return h},ZI:function(){return l},cj:function(){return m},cs:function(){return g},dR:function(){return f},pZ:function(){return p},se:function(){return u},vU:function(){return c}});var n=r(67795),i=r(36117);class o extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"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({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}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({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}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({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){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\`.`,{cause:e,name:"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({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{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."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class h extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"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 m extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},78863:function(e,t,r){"use strict";r.d(t,{Gg:function(){return a},W5:function(){return l},bs:function(){return s}});var n=r(96070),i=r(36117),o=r(29008);class a extends i.G{constructor({body:e,cause:t,details:r,headers:i,status:a,url:s}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,o.G)(s)}`,e&&`Request body: ${(0,n.P)(e)}`].filter(Boolean),name:"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=e,this.headers=i,this.status=a,this.url=s}}class s extends i.G{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,o.G)(r)}`,`Request body: ${(0,n.P)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code}}class l extends i.G{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,o.G)(t)}`,`Request body: ${(0,n.P)(e)}`],name:"TimeoutError"})}}},39028:function(e,t,r){"use strict";r.d(t,{B:function(){return l},GD:function(){return b},I0:function(){return C},KB:function(){return g},LX:function(){return c},Og:function(){return f},PE:function(){return w},Pv:function(){return v},Ts:function(){return x},XS:function(){return d},ab:function(){return y},gS:function(){return m},ir:function(){return k},nY:function(){return u},pT:function(){return p},s7:function(){return s},u5:function(){return _},x3:function(){return A},yR:function(){return h}});var n=r(36117),i=r(78863);class o extends n.G{constructor(e,{code:t,docsPath:r,metaMessages:n,name:o,shortMessage:a}){super(a,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:o||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof i.bs?e.code:t??-1}}class a extends o{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends o{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class l extends o{constructor(e){super(e,{code:l.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e,{method:t}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class u extends o{constructor(e){super(e,{code:u.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class h extends o{constructor(e){super(e,{code:h.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class f extends o{constructor(e){super(e,{code:f.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends o{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class g extends o{constructor(e){super(e,{code:g.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class m extends o{constructor(e,{method:t}={}){super(e,{code:m.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not implemented.`})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class v extends o{constructor(e){super(e,{code:v.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class b extends o{constructor(e){super(e,{code:b.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class y extends a{constructor(e){super(e,{code:y.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends a{constructor(e){super(e,{code:w.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class x extends a{constructor(e,{method:t}={}){super(e,{code:x.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class _ extends a{constructor(e){super(e,{code:_.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class C extends a{constructor(e){super(e,{code:C.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class A extends a{constructor(e){super(e,{code:A.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class k extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},20443:function(e,t,r){"use strict";r.d(t,{Bj:function(){return s},Nc:function(){return i},Z8:function(){return o}});var n=r(36117);class i extends n.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class o extends n.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function a(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
`,"")}function s(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
`;return r.nonce&&(n+=`      nonce: ${r.nonce}
`),r.balance&&(n+=`      balance: ${r.balance}
`),r.code&&(n+=`      code: ${r.code}
`),r.state&&(n+="      state:\n"+a(r.state)),r.stateDiff&&(n+="      stateDiff:\n"+a(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}},33639:function(e,t,r){"use strict";r.d(t,{Bh:function(){return u},Yb:function(){return d},j3:function(){return l},mc:function(){return h},mk:function(){return c},xY:function(){return s},xr:function(){return a}});var n=r(39625),i=r(67795),o=r(36117);function a(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class s extends o.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class l extends o.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",a(e),"}","","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","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class c extends o.G{constructor(e,{account:t,docsPath:r,chain:o,data:s,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:h,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",a({chain:o&&`${o?.name} (id: ${o?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,n.d)(p)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:s,gas:l,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:h})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class u extends o.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(o=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block number "${t}" at index "${i}"`),n&&(o=`Transaction with hash "${n}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends o.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class h extends o.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},29008:function(e,t,r){"use strict";r.d(t,{C:function(){return n},G:function(){return i}});let n=e=>e,i=e=>e},91213:function(e,t,r){"use strict";r.d(t,{z:function(){return d}});var n=r(21845),i=r(57040),o=r(11187),a=r(92106),s=r(36117),l=r(11221);function c(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new s.G("Length is too large.")}var u=r(93054);async function d(e){let{authorization:t,signature:r}=e;return(0,n.R)({hash:function(e){let{chainId:t,contractAddress:r,nonce:n,to:s}=e,d=(0,u.w)((0,i.SM)(["0x05",function(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=c(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,o.nr)(e):e,r=c(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,l.q)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,a.ci)(n.bytes):n.bytes}([(0,a.eC)(t),r,(0,a.eC)(n)])]));return"bytes"===s?(0,o.nr)(d):d}(t),signature:r??t})}},78398:function(e,t,r){"use strict";r.d(t,{r:function(){return g}});var n=r(57412),i=r(45775),o=r(11221),a=r(39135),s=r(3972),l=r(61836),c=r(87788),u=r(95946),d=r(92106);function h(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,u.ly)(r,t)}var f=r(11187),p=r(45444);function g(e,t){let r="string"==typeof t?(0,f.nr)(t):t,g=(0,o.q)(r);if(0===(0,a.d)(r)&&e.length>0)throw new n.wb;if((0,a.d)(t)&&32>(0,a.d)(t))throw new n.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,a.d)(t)});let v=0,b=[];for(let t=0;t<e.length;++t){let r=e[t];g.setPosition(v);let[o,a]=function e(t,r,{staticPosition:o}){let a=(0,p.S)(r.type);if(a){let[n,i]=a;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+h(t.readBytes(32)),o=n+32;t.setPosition(n);let a=h(t.readBytes(32)),s=m(r),l=0,c=[];for(let n=0;n<a;++n){t.setPosition(o+(s?32*n:l));let[i,a]=e(t,r,{staticPosition:o});l+=a,c.push(i)}return t.setPosition(i+32),[c,32]}if(m(r)){let o=i+h(t.readBytes(32)),a=[];for(let i=0;i<n;++i){t.setPosition(o+32*i);let[n]=e(t,r,{staticPosition:o});a.push(n)}return t.setPosition(i+32),[a,32]}let o=0,a=[];for(let s=0;s<n;++s){let[n,s]=e(t,r,{staticPosition:i+o});o+=s,a.push(n)}return[a,o]}(t,{...r,type:i},{length:n,staticPosition:o})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),o=i?[]:{},a=0;if(m(r)){let s=n+h(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(s+a);let[c,u]=e(t,l,{staticPosition:s});a+=u,o[i?n:l?.name]=c}return t.setPosition(n+32),[o,32]}for(let s=0;s<r.components.length;++s){let l=r.components[s],[c,u]=e(t,l,{staticPosition:n});o[i?s:l?.name]=c,a+=u}return[o,a]}(t,r,{staticPosition:o});if("address"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,s.T4)(t,-20))),32]}(t);if("bool"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,u.Yf)(r,{size:t.size}),r=(0,l.f)(r)),r.length>1||r[0]>1)throw new c.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=h(e.readBytes(32));e.setPosition(r+t);let n=h(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,r,{staticPosition:o});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,u.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,u.y_)(r,t)}(i,{signed:r}):h(i,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=h(e.readBytes(32));e.setPosition(t+r);let n=h(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),o=function(e,t={}){let r=e;return void 0!==t.size&&((0,u.Yf)(r,{size:t.size}),r=(0,l.f)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,l.f)(i));return e.setPosition(t+32),[o,32]}(t,{staticPosition:o});throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(g,r,{staticPosition:0});v+=a,b.push(o)}return b}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let r=(0,p.S)(e.type);return!!(r&&m({...e,type:r[1]}))}},86899:function(e,t,r){"use strict";r.d(t,{p:function(){return c}});var n=r(21746),i=r(57412),o=r(3972),a=r(58034),s=r(78398),l=r(80522);function c(e){let{abi:t,data:r}=e,c=(0,o.tP)(r,0,4);if("0x"===c)throw new i.wb;let u=[...t||[],n.Up,n.hZ].find(e=>"error"===e.type&&c===(0,a.C)((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)(r,4)):void 0,errorName:u.name}}},7210:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n=r(57412),i=r(78398),o=r(40840);let a="/docs/contract/decodeFunctionResult";function s(e){let{abi:t,args:r,functionName:s,data:l}=e,c=t[0];if(s){let e=(0,o.mE)({abi:t,args:r,name:s});if(!e)throw new n.xL(s,{docsPath:a});c=e}if("function"!==c.type)throw new n.xL(void 0,{docsPath:a});if(!c.outputs)throw new n.MX(c.name,{docsPath:a});let u=(0,i.r)(c.outputs,l);return u&&u.length>1?u:u&&1===u.length?u[0]:void 0}},45444:function(e,t,r){"use strict";r.d(t,{E:function(){return h},S:function(){return p}});var n=r(57412),i=r(26087),o=r(36117),a=r(49321),s=r(57040),l=r(61769),c=r(39135),u=r(3972),d=r(92106);function h(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=f(function({params:e,values:t}){let r=[];for(let h=0;h<e.length;h++)r.push(function e({param:t,value:r}){let h=p(t.type);if(h){let[i,o]=h;return function(t,{length:r,param:i}){let o=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!o&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let a=!1,l=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(a=!0),l.push(n)}if(o||a){let e=f(l);if(o){let t=(0,d.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,s.zo)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(l.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:o}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let o=0;o<r.components.length;o++){let a=r.components[o],s=Array.isArray(t)?o:a.name,l=e({param:a,value:t[s]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?f(i):(0,s.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,a.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new o.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,d.C4)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,c.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,l.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.zo)([(0,l.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,d.$G)(e),r=Math.ceil((0,c.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,u.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,l.gc)((0,d.eC)((0,c.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function f(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,c.d)(i)}let r=[],n=[],i=0;for(let o=0;o<e.length;o++){let{dynamic:a,encoded:s}=e[o];a?(r.push((0,d.eC)(t+i,{size:32})),n.push(s),i+=(0,c.d)(s)):r.push(s)}return(0,s.zo)([...r,...n])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},30286:function(e,t,r){"use strict";r.d(t,{w:function(){return s}});var n=r(57412),i=r(57040),o=r(45444);let a="/docs/contract/encodeDeployData";function s(e){let{abi:t,args:r,bytecode:s}=e;if(!r||0===r.length)return s;let l=t.find(e=>"type"in e&&"constructor"===e.type);if(!l)throw new n.fM({docsPath:a});if(!("inputs"in l)||!l.inputs||0===l.inputs.length)throw new n.cO({docsPath:a});let c=(0,o.E)(l.inputs,r);return(0,i.SM)([s,c])}},55629:function(e,t,r){"use strict";r.d(t,{R:function(){return u}});var n=r(57040),i=r(45444),o=r(57412),a=r(58034),s=r(80522),l=r(40840);let c="/docs/contract/encodeFunctionData";function u(e){let{args:t}=e,{abi:r,functionName:u}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,l.mE)({abi:t,args:r,name:n});if(!e)throw new o.xL(n,{docsPath:c});i=e}if("function"!==i.type)throw new o.xL(void 0,{docsPath:c});return{abi:[i],functionName:(0,a.C)((0,s.t)(i))}}(e),d=r[0],h="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,n.SM)([u,h??"0x"])}},80522:function(e,t,r){"use strict";r.d(t,{h:function(){return o},t:function(){return i}});var n=r(57412);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${o(e.inputs,{includeName:t})})`}function o(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${o(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},40840:function(e,t,r){"use strict";r.d(t,{mE:function(){return l}});var n=r(57412),i=r(15102),o=r(49321),a=r(96005),s=r(58034);function l(e){let t;let{abi:r,args:l=[],name:c}=e,u=(0,i.v)(c,{strict:!1}),d=r.filter(e=>u?"function"===e.type?(0,s.C)(e)===c:"event"===e.type&&(0,a.n)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return(0,o.U)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^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(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let a=t[i],s=r[i];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return e(a.components,s.components,n[i]);let l=[a.type,s.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&(0,o.U)(n[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||d[0]}}},45775:function(e,t,r){"use strict";r.d(t,{K:function(){return u},x:function(){return c}});var n=r(26087),i=r(11187),o=r(93054),a=r(79773),s=r(49321);let l=new a.k(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let r=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,o.w)((0,i.qX)(r),"bytes"),a=(t?r.substring(`${t}0x`.length):r).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&n[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let s=`0x${a.join("")}`;return l.set(`${e}.${t}`,s),s}function u(e,t){if(!(0,s.U)(e,{strict:!1}))throw new n.b({address:e});return c(e,t)}},49321:function(e,t,r){"use strict";r.d(t,{U:function(){return s}});var n=r(79773),i=r(45775);let o=/^0x[a-fA-F0-9]{40}$/,a=new n.k(8192);function s(e,t){let{strict:r=!0}=t??{},n=`${e}.${r}`;if(a.has(n))return a.get(n);let s=!!o.test(e)&&(e.toLowerCase()===e||!r||(0,i.x)(e)===e);return a.set(n,s),s}},33840:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(80377);function i({chain:e,currentChainId:t}){if(!e)throw new n.Bk;if(t!==e.id)throw new n.Yl({chain:e,currentChainId:t})}},47864:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(80377);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},11221:function(e,t,r){"use strict";r.d(t,{q:function(){return o}});var n=r(66238);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function o(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(i);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},57040:function(e,t,r){"use strict";function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},15102:function(e,t,r){"use strict";function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}r.d(t,{v:function(){return n}})},61769:function(e,t,r){"use strict";r.d(t,{gc:function(){return o},vk:function(){return i}});var n=r(69760);function i(e,{dir:t,size:r=32}={}){return"string"==typeof e?o(e,{dir:t,size:r}):function(e,{dir:t,size:r=32}={}){if(null===r)return e;if(e.length>r)throw new n.$s({size:e.length,targetSize:r,type:"bytes"});let i=new Uint8Array(r);for(let n=0;n<r;n++){let o="right"===t;i[o?n:r-n-1]=e[o?n:e.length-n-1]}return i}(e,{dir:t,size:r})}function o(e,{dir:t,size:r=32}={}){if(null===r)return e;let i=e.replace("0x","");if(i.length>2*r)throw new n.$s({size:Math.ceil(i.length/2),targetSize:r,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*r,"0")}`}},39135:function(e,t,r){"use strict";r.d(t,{d:function(){return i}});var n=r(15102);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},3972:function(e,t,r){"use strict";r.d(t,{T4:function(){return c},p5:function(){return u},tP:function(){return a}});var n=r(69760),i=r(15102),o=r(39135);function a(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?u(e,t,r,{strict:n}):c(e,t,r,{strict:n})}function s(e,t){if("number"==typeof t&&t>0&&t>(0,o.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,o.d)(e)})}function l(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,o.d)(e)!==r-t)throw new n.mV({offset:r,position:"end",size:(0,o.d)(e)})}function c(e,t,r,{strict:n}={}){s(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}function u(e,t,r,{strict:n}={}){s(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}},61836:function(e,t,r){"use strict";function n(e,{dir:t="left"}={}){let r="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<r.length-1&&"0"===r["left"===t?e:r.length-e-1].toString();e++)n++;return(r="left"===t?r.slice(n):r.slice(0,r.length-n),"string"==typeof e)?(1===r.length&&"right"===t&&(r=`${r}0`),`0x${r.length%2==1?`0${r}`:r}`):r}r.d(t,{f:function(){return n}})},95946:function(e,t,r){"use strict";r.d(t,{Yf:function(){return s},ly:function(){return c},rR:function(){return u},y_:function(){return l}});var n=r(87788),i=r(39135),o=r(61836),a=r(11187);function s(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function l(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let n=BigInt(e);if(!r)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){return Number(l(e,t))}function u(e,t={}){let r=(0,a.nr)(e);return t.size&&(s(r,{size:t.size}),r=(0,o.f)(r,{dir:"right"})),new TextDecoder().decode(r)}},11187:function(e,t,r){"use strict";r.d(t,{O0:function(){return c},nr:function(){return h},qX:function(){return f}});var n=r(36117),i=r(15102),o=r(61769),a=r(95946),s=r(92106);let l=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?h((0,s.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return(r[0]=Number(e),"number"==typeof t.size)?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{size:t.size})):r}(e,t):(0,i.v)(e)?h(e,t):f(e,t)}let 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,t={}){let r=e;t.size&&((0,a.Yf)(r,{size:t.size}),r=(0,o.vk)(r,{dir:"right",size:t.size}));let i=r.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,l=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=d(i.charCodeAt(t++)),o=d(i.charCodeAt(t++));if(void 0===r||void 0===o)throw new n.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*r+o}return l}function f(e,t={}){let r=l.encode(e);return"number"==typeof t.size?((0,a.Yf)(r,{size:t.size}),(0,o.vk)(r,{dir:"right",size:t.size})):r}},92106:function(e,t,r){"use strict";r.d(t,{$G:function(){return h},C4:function(){return l},NC:function(){return s},ci:function(){return c},eC:function(){return u}});var n=r(87788),i=r(61769),o=r(95946);let a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function s(e,t={}){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,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,o.Yf)(r,{size:t.size}),(0,i.vk)(r,{size:t.size})):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=a[e[t]];let n=`0x${r}`;return"number"==typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:"right",size:t.size})):n}function u(e,t={}){let r;let{signed:o,size:a}=t,s=BigInt(e);a?r=o?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof r&&o?-r-1n:0;if(r&&s>r||s<l){let t="bigint"==typeof e?"n":"";throw new n.J5({max:r?`${r}${t}`:void 0,min:`${l}${t}`,signed:o,size:a,value:`${e}${t}`})}let c=`0x${(o&&s<0?(1n<<BigInt(8*a))+BigInt(s):s).toString(16)}`;return a?(0,i.vk)(c,{size:a}):c}let d=new TextEncoder;function h(e,t={}){return c(d.encode(e),t)}},11511:function(e,t,r){"use strict";r.d(t,{i:function(){return i}});var n=r(15102);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.v)(t)?t:null}},74526:function(e,t,r){"use strict";r.d(t,{c:function(){return a}});var n=r(21746),i=r(36117),o=r(97405);function a(e,t){if(!(e instanceof i.G))return!1;let r=e.walk(e=>e instanceof o.Lu);return r instanceof o.Lu&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.data?.errorName==="ResolverNotContract"||r.data?.errorName==="ResolverError"||r.data?.errorName==="HttpError"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.$[50])}},75719:function(e,t,r){"use strict";r.d(t,{V:function(){return l}});var n=r(57040),i=r(11187),o=r(92106),a=r(93054),s=r(11511);function l(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,o.ci)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let o=(0,s.i)(r[e]),l=o?(0,i.O0)(o):(0,a.w)((0,i.qX)(r[e]),"bytes");t=(0,a.w)((0,n.zo)([t,l]),"bytes")}return(0,o.ci)(t)}},48063:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(11187),i=r(92106),o=r(93054),a=r(11511);function s(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.qX)(t).byteLength+2),s=0,l=t.split(".");for(let e=0;e<l.length;e++){let t=(0,n.qX)(l[e]);if(t.byteLength>255){var c;t=(0,n.qX)((c=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.i)(e)||(0,o.w)((0,n.qX)(e)):(0,i.ci)(t)}(l[e]),`[${c.slice(2)}]`))}r[s]=t.length,r.set(t,s+1),s+=t.length+1}return r.byteLength!==s+1?r.slice(0,s+1):r}},72365:function(e,t,r){"use strict";r.d(t,{S:function(){return s}});var n=r(57412),i=r(36117),o=r(97405),a=r(39028);function s(e,{abi:t,address:r,args:s,docsPath:l,functionName:c,sender:u}){let{code:d,data:h,message:f,shortMessage:p}=e instanceof o.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},g=e instanceof n.wb?new o.Dk({functionName:c}):[3,a.XS.code].includes(d)&&(h||f||p)?new o.Lu({abi:t,data:"object"==typeof h?h.data:h,functionName:c,message:p??f}):e;return new o.uq(g,{abi:t,args:s,contractAddress:r,docsPath:l,functionName:c,sender:u})}},87469:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});var n=r(36117),i=r(26445);function o(e,t){let r=(e.details||"").toLowerCase(),o=e instanceof n.G?e.walk(e=>e.code===i.M_.code):e;return o instanceof n.G?new i.M_({cause:e,message:o.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:e}):i.WF.nodeMessage.test(r)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:e}):i.cs.nodeMessage.test(r)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},43310:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(6073);function i(e){let t=e.transactions?.map(e=>"string"==typeof e?e:n.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}},61163:function(e,t,r){"use strict";function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}r.d(t,{K:function(){return n}})},53992:function(e,t,r){"use strict";function n(e,{args:t,eventName:r}={}){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,...r?{args:t,eventName:r}:{}}}r.d(t,{U:function(){return n}})},6073:function(e,t,r){"use strict";r.d(t,{Tr:function(){return o},c8:function(){return i}});var n=r(95946);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?i[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 e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),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.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},74688:function(e,t,r){"use strict";r.d(t,{tG:function(){return o}});var n=r(92106);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function o(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,n.eC)(e.chainId),nonce:(0,n.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.eC)(e.value)),t}},93714:function(e,t,r){"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{s:function(){return n}})},93054:function(e,t,r){"use strict";r.d(t,{w:function(){return I}});var n=r(93527);let i=BigInt(4294967296-1),o=BigInt(32),a=(e,t,r)=>e<<r|t>>>32-r,s=(e,t,r)=>t<<r|e>>>32-r,l=(e,t,r)=>t<<r-32|e>>>64-r,c=(e,t,r)=>e<<r-32|t>>>64-r;var u=r(66409);let d=[],h=[],f=[],p=BigInt(0),g=BigInt(1),m=BigInt(2),v=BigInt(7),b=BigInt(256),y=BigInt(113);for(let e=0,t=g,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],d.push(2*(5*n+r)),h.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>v)*y)%b)&m&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[w,x]=function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;a<e.length;a++){let{h:s,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>o&i)}:{h:0|Number(e>>o&i),l:0|Number(e&i)}}(e[a],t);[r[a],n[a]]=[s,l]}return[r,n]}(f,!0),_=(e,t,r)=>r>32?l(e,t,r):a(e,t,r),C=(e,t,r)=>r>32?c(e,t,r):s(e,t,r);class A extends u.kb{constructor(e,t,r,i=!1,o=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),function(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,o=r[i],a=r[i+1],s=_(o,a,1)^r[n],l=C(o,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=l}let t=e[2],i=e[3];for(let r=0;r<24;r++){let n=h[r],o=_(t,i,n),a=C(t,i,n),s=d[r];t=e[s],i=e[s+1],e[s]=o,e[s+1]=a}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=w[n],e[1]^=x[n]}r.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:r}=this,i=(e=(0,u.O0)(e)).length;for(let n=0;n<i;){let o=Math.min(t-this.pos,i-n);for(let t=0;t<o;t++)r[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:r}=this;for(let n=0,i=e.length;n<i;){this.posOut>=r&&this.keccak();let o=Math.min(r-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:i,enableXOF:o}=this;return e||(e=new A(t,r,n,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=n,e.enableXOF=o,e.destroyed=this.destroyed,e}}let k=(0,u.hE)(()=>new A(136,1,32));var E=r(15102),S=r(11187),T=r(92106);function I(e,t){let r=k((0,E.v)(e,{strict:!1})?(0,S.O0)(e):e);return"bytes"===(t||"hex")?r:(0,T.NC)(r)}},96005:function(e,t,r){"use strict";r.d(t,{n:function(){return n}});let n=r(65526).r},58034:function(e,t,r){"use strict";r.d(t,{C:function(){return o}});var n=r(3972),i=r(65526);let o=e=>(0,n.tP)((0,i.r)(e),0,4)},65526:function(e,t,r){"use strict";r.d(t,{r:function(){return d}});var n=r(11187),i=r(93054);let o=e=>(0,i.w)((0,n.O0)(e));var a=r(84917);let s=/^tuple(?<array>(\[(\d*)\])*)$/;function l(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(s.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=", ");let i=(0,a.Zw)(s,t.type);return r+=`)${i?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}var c=r(36117);let u=e=>(function(e){let t=!0,r="",n=0,i="",o=!1;for(let a=0;a<e.length;a++){let s=e[a];if(["(",")",","].includes(s)&&(t=!0),"("===s&&n++,")"===s&&n--,t){if(0===n){if(" "===s&&["event","function",""].includes(i))i="";else if(i+=s,")"===s){o=!0;break}continue}if(" "===s){","!==e[a-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=s,r+=s}}if(!o)throw new c.G("Unable to normalize signature.");return i})("string"==typeof e?e:"function"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${l(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${l(e.inputs)})`:"error"===e.type?`error ${e.name}(${l(e.inputs)})`:"constructor"===e.type?`constructor(${l(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable");function d(e){return o(u(e))}},79773:function(e,t,r){"use strict";r.d(t,{k:function(){return n}});class n extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},22514:function(e,t,r){"use strict";r.d(t,{N7:function(){return a}});let n=new Map,i=new Map,o=0;function a(e,t,r){let a=++o,s=()=>n.get(e)||[],l=()=>{let t=s();n.set(e,t.filter(e=>e.id!==a))},c=()=>{let t=i.get(e);1===s().length&&t&&t(),l()},u=s();if(n.set(e,[...u,{id:a,fns:t}]),u&&u.length>0)return c;let d={};for(let e in t)d[e]=(...t)=>{let r=s();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let h=r(d);return"function"==typeof h&&i.set(e,h),c}},23:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(62914);function i(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let o=!0,a=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));let l=await r?.(s)??i;await (0,n.D)(l);let c=async()=>{o&&(await e({unpoll:a}),await (0,n.D)(i),c())};c()})(),a}},32357:function(e,t,r){"use strict";r.d(t,{S:function(){return i}});let n=new Map;function i({fn:e,id:t,shouldSplitBatch:r,wait:i=0,sort:o}){let a=async()=>{let t=c();s();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{o&&Array.isArray(e)&&e.sort(o);for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.resolve?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{pendingPromise:n}=t[r];n.reject?.(e)}})},s=()=>n.delete(t),l=()=>c().map(({args:e})=>e),c=()=>n.get(t)||[],u=e=>n.set(t,[...c(),e]);return{flush:s,async schedule(e){let t={},n=new Promise((e,r)=>{t.resolve=e,t.reject=r});return(r?.([...l(),e])&&a(),c().length>0)?u({args:e,pendingPromise:t}):(u({args:e,pendingPromise:t}),setTimeout(a,i)),n}}}},7760:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(62914);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:i=()=>!0}={}){return new Promise((o,a)=>{let s=async({count:l=0}={})=>{let c=async({error:e})=>{let r="function"==typeof t?t({count:l,error:e}):t;r&&await (0,n.D)(r),s({count:l+1})};try{let t=await e();o(t)}catch(e){if(l<r&&await i({count:l,error:e}))return c({error:e});a(e)}};s()})}},60229:function(e,t,r){"use strict";function n(e,{errorInstance:t=Error("timed out"),timeout:r,signal:n}){return new Promise((i,o)=>{(async()=>{let a;try{let s=new AbortController;r>0&&(a=setTimeout(()=>{n?s.abort():o(t)},r)),i(await e({signal:s?.signal||null}))}catch(e){e?.name==="AbortError"&&o(t),o(e)}finally{clearTimeout(a)}})()})}r.d(t,{F:function(){return n}})},21845:function(e,t,r){"use strict";r.d(t,{R:function(){return u}});var n=r(45775),i=r(93054),o=r(15102),a=r(95946),s=r(92106);async function l({hash:e,signature:t}){let n=(0,o.v)(e)?e:(0,s.NC)(e),{secp256k1:i}=await r.e(7051).then(r.bind(r,17051)),l=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:o}=t,s=c(Number(o??n));return new i.Signature((0,a.y_)(e),(0,a.y_)(r)).addRecoveryBit(s)}let e=(0,o.v)(t)?t:(0,s.NC)(t),r=c((0,a.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${l}`}function c(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function u({hash:e,signature:t}){return function(e){let t=(0,i.w)(`0x${e.substring(4)}`).substring(26);return(0,n.x)(`0x${t}`)}(await l({hash:e,signature:t}))}},50150:function(e,t,r){"use strict";r.d(t,{mF:function(){return c}});var n=r(26087),i=r(69760),o=r(20443),a=r(49321),s=r(92106);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.W_({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function c(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,a.U)(r,{strict:!1}))throw new n.b({address:r});if(t[r])throw new o.Nc({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,c={};if(void 0!==a&&(c.code=a),void 0!==t&&(c.balance=(0,s.eC)(t)),void 0!==r&&(c.nonce=(0,s.eC)(r)),void 0!==n&&(c.state=l(n)),void 0!==i){if(c.state)throw new o.Z8;c.stateDiff=l(i)}return c}(i)}return t}},96070:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});let n=(e,t,r)=>JSON.stringify(e,(e,r)=>{let n="bigint"==typeof r?r.toString():r;return"function"==typeof t?t(e,n):n},r)},35721:function(e,t,r){"use strict";r.d(t,{F:function(){return c}});var n=r(14503);let i=2n**256n-1n;var o=r(26087),a=r(26445),s=r(33639),l=r(49321);function c(e){let{account:t,gasPrice:r,maxFeePerGas:c,maxPriorityFeePerGas:u,to:d}=e,h=t?(0,n.T)(t):void 0;if(h&&!(0,l.U)(h.address))throw new o.b({address:h.address});if(d&&!(0,l.U)(d))throw new o.b({address:d});if(void 0!==r&&(void 0!==c||void 0!==u))throw new s.xY;if(c&&c>i)throw new a.Hh({maxFeePerGas:c});if(u&&c&&u>c)throw new a.cs({maxFeePerGas:c,maxPriorityFeePerGas:u})}},75632:function(e,t,r){"use strict";let n;r.d(t,{h:function(){return o}});let i=256;function o(e=11){if(!n||i+e>512){n="",i=0;for(let e=0;e<256;e++)n+=(256+256*Math.random()|0).toString(16).substring(1)}return n.substring(i,i+++e)}},39625:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(84192),i=r(15229);function o(e,t="wei"){return(0,i.b)(e,n.ez[t])}},67795:function(e,t,r){"use strict";r.d(t,{o:function(){return o}});var n=r(84192),i=r(15229);function o(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},15229:function(e,t,r){"use strict";function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,o]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return o=o.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${o?`.${o}`:""}`}r.d(t,{b:function(){return n}})},62914:function(e,t,r){"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{D:function(){return n}})},49739:function(e,t,r){"use strict";r.d(t,{V:function(){return a},F:function(){return s}});var n=r(67294),i=r(51785);function o(e){let{children:t,config:r,initialState:o,reconnectOnMount:a=!0}=e,{onMount:s}=function(e,t){let{initialState:r,reconnectOnMount:n}=t;return r&&!e._internal.store.persist.hasHydrated()&&e.setState({...r,chainId:e.chains.some(e=>e.id===r.chainId)?r.chainId:e.chains[0].id,connections:n?r.connections:new Map,status:n?"reconnecting":"disconnected"}),{async onMount(){if(e._internal.ssr){await e._internal.store.persist.rehydrate();let t=e._internal.mipd?.getProviders().map(e._internal.connectors.providerDetailToConnector).map(e._internal.connectors.setup);e._internal.connectors.setState(e=>[...e,...t??[]])}n?(0,i.G)(e):e.storage&&e.setState(e=>({...e,connections:new Map}))}}}(r,{initialState:o,reconnectOnMount:a});r._internal.ssr||s();let l=(0,n.useRef)(!0);return(0,n.useEffect)(()=>{if(l.current&&r._internal.ssr)return s(),()=>{l.current=!1}},[]),t}let a=(0,n.createContext)(void 0);function s(e){let{children:t,config:r}=e;return(0,n.createElement)(o,e,(0,n.createElement)(a.Provider,{value:r},t))}},92321:function(e,t,r){"use strict";r.d(t,{m:function(){return u}});var n=r(33397),i=r(52425),o=r(37122),a=r(74751),s=r(67294),l=r(52798);let c=e=>"object"==typeof e&&!Array.isArray(e);function u(e={}){let t=(0,o.Z)(e);return function(e,t,r=t,n=a.v){let i=(0,s.useRef)([]),o=(0,l.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(c(e)&&c(t)&&i.current.length){for(let r of i.current)if(!n(e[r],t[r]))return!1;return!0}return n(e,t)});if(c(o)){let e={...o},t={};for(let[r,n]of Object.entries(e))t={...t,[r]:{configurable:!1,enumerable:!0,get:()=>(i.current.includes(r)||i.current.push(r),n)}};return Object.defineProperties(e,t),e}return o}(e=>(0,n.u)(t,{onChange:e}),()=>(0,i.D)(t))}},37122:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(67294),i=r(49739),o=r(7066);let a=()=>"wagmi@2.12.10";class s extends o.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return a()}}class l extends s{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function c(e={}){let t=e.config??(0,n.useContext)(i.V);if(!t)throw new l;return t}},18597:function(e){"use strict";e.exports={i8:"6.5.7"}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(9090)}),_N_E=e.O()}]);
//# sourceMappingURL=_app-299a137798c3da5d.js.map