PageSourceSearch

https://frakt-protocol-toolz.vercel.app/_next/static/chunks/pages/_app-6b96059f0b886de1.js

js frakt-protocol-toolz.vercel.app collected 2026-10-03 06:58:16 UTC 691,193 bytes, 314 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{8417:function(e,t,r){"use strict";r.d(t,{Z:function(){return V}});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++}
vendor: 6,756 bytes, line 1
1,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 u(e,t){return 0|e.charCodeAt(t)}function c(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,y=0,b="";function v(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(v("",null,null,"",null,null,0),e,{length:-e.length},t)}function A(){return y=m<g?u(b,m++):0,p++,10===y&&(p=1,f++),y}function x(){return u(b,m)}function S(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 k(e){return f=p=1,g=d(b=e),m=0,[]}function M(e){var t,r;return(t=m-1,r=function e(t){for(;A();)switch(y){case t:return m;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:A()}return m}(91===e?e+2:40===e?e+1:e),c(b,t,r)).trim()}var E="-ms-",I="-moz-",_="-webkit-",C="comm",B="rule",T="decl",D="@keyframes";function j(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case T:return e.return=e.return||e.value;case C:return"";case D:return e.return=e.value+"{"+j(e.children,n)+"}";case B:e.value=e.props.join(",")}return d(r=j(e.children,n))?e.return=e.value+"{"+r+"}":""}function N(e,t,r,n,o,a,l,u,d,h,f){for(var p=o-1,g=0===o?a:[""],m=g.length,y=0,b=0,w=0;y<n;++y)for(var A=0,x=c(e,p+1,p=i(b=l[y])),S=e;A<m;++A)(S=(b>0?g[A]+" "+x:s(x,/&\f/g,g[A])).trim())&&(d[w++]=S);return v(e,t,r,0===o?B:u,d,h,f)}function O(e,t,r,n){return v(e,t,r,T,c(e,0,n),c(e,n+1,-1),n)}var L=function(e,t,r){for(var n=0,i=0;n=i,i=x(),38===n&&12===i&&(t[r]=1),!S(i);)A();return c(b,e,m)},P=function(e,t){var r=-1,n=44;do switch(S(n)){case 0:38===n&&12===x()&&(t[r]=1),e[r]+=L(m-1,t,r);break;case 2:e[r]+=M(n);break;case 4:if(44===n){e[++r]=58===x()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=A());return e},R=function(e,t){var r;return r=P(k(e),t),b="",r},F=new WeakMap,U=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)||F.get(r))&&!n){F.set(e,!0);for(var i=[],o=R(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},W=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},H=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case T:e.return=function e(t,r){switch(45^u(t,0)?(((r<<2^u(t,0))<<2^u(t,1))<<2^u(t,2))<<2^u(t,3):0){case 5103:return _+"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;case 5349:case 4246:case 4810:case 6968:case 2756:return _+t+I+t+E+t+t;case 6828:case 4268:return _+t+E+t+t;case 6165:return _+t+E+"flex-"+t+t;case 5187:return _+t+s(t,/(\w+).+(:[^]+)/,_+"box-$1$2"+E+"flex-$1$2")+t;case 5443:return _+t+E+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return _+t+E+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return _+t+E+s(t,"shrink","negative")+t;case 5292:return _+t+E+s(t,"basis","preferred-size")+t;case 6060:return _+"box-"+s(t,"-grow","")+_+t+E+s(t,"grow","positive")+t;case 4554:return _+s(t,/([^-])(transform)/g,"$1"+_+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+E+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,_+"$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(u(t,r+1)){case 109:if(45!==u(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+I+(108==u(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!==u(t,r+1))break;case 6444:switch(u(t,d(t)-3-(~l(t,"!important")&&10))){case 107:return s(t,":",":"+_)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(45===u(t,14)?"inline-":"")+"box$3$1"+_+"$2$3$1"+E+"$2box$3")+t}break;case 5936:switch(u(t,r+11)){case 114:return _+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return _+t+E+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return _+t+E+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return _+t+E+t+t}return t}(e.value,e.length);break;case D:return j([w(e,{value:s(e.value,"@","@"+_)})],n);case B:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return j([w(e,{props:[s(t,/:(read-\w+)/,":"+I+"$1")]})],n);case"::placeholder":return j([w(e,{props:[s(t,/:(plac\w+)/,":"+_+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+I+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,E+"input-$1")]})],n)}return""}).join("")}}],V=function(e){var t,r,i,a,g,w=e.key;if("css"===w){var E=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(E,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var I=e.stylisPlugins||H,_={},B=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)_[t[r]]=!0;B.push(e)});var T=(r=(t=[U,W].concat(I,[z,(i=function(e){g.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}),D=function(e){var t,r;return j((r=function e(t,r,n,i,a,g,w,k,E){for(var I,_=0,B=0,T=w,D=0,j=0,z=0,L=1,P=1,R=1,F=0,U="",W=a,H=g,V=i,Q=U;P;)switch(z=F,F=A()){case 40:if(108!=z&&58==u(Q,T-1)){-1!=l(Q+=s(M(F),"&","&\f"),"&\f")&&(R=-1);break}case 34:case 39:case 91:Q+=M(F);break;case 9:case 10:case 13:case 32:Q+=function(e){for(;y=x();)if(y<33)A();else break;return S(e)>2||S(y)>3?"":" "}(z);break;case 92:Q+=function(e,t){for(var r;--t&&A()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>
170)||!(y<97)););return r=m+(t<6&&32==x()&&32==A()),c(b,e,r)}(m-1,7);continue;case 47:switch(x()){case 42:case 47:h(v(I=function(e,t){for(;A();)if(e+y===57)break;else if(e+y===84&&47===x())break;return"/*"+c(b,t,m-1)+"*"+o(47===e?e:A())}(A(),m),r,n,C,o(y),c(I,2,-2),0),E);break;default:Q+="/"}break;case 123*L:k[_++]=d(Q)*R;case 125*L:case 59:case 0:switch(F){case 0:case 125:P=0;case 59+B:-1==R&&(Q=s(Q,/\f/g,"")),j>0&&d(Q)-T&&h(j>32?O(Q+";",i,n,T-1):O(s(Q," ","")+";",i,n,T-2),E);break;case 59:Q+=";";default:if(h(V=N(Q,r,n,_,B,a,k,U,W=[],H=[],T),g),123===F){if(0===B)e(Q,r,V,V,W,g,T,k,H);else switch(99===D&&110===u(Q,3)?100:D){case 100:case 108:case 109:case 115:e(t,V,V,i&&h(N(t,V,V,0,0,a,k,U,a,W=[],T),H),a,H,T,k,i?W:H);break;default:e(Q,V,V,V,[""],H,0,k,H)}}}_=B=j=0,L=R=1,U=Q="",T=w;break;case 58:T=1+d(Q),j=z;default:if(L<1){if(123==F)--L;else if(125==F&&0==L++&&125==(y=m>0?u(b,--m):0,p--,10===y&&(p=1,f--),y))continue}switch(Q+=o(F),F*L){case 38:R=B>0?1:(Q+="\f",-1);break;case 44:k[_++]=(d(Q)-1)*R,R=1;break;case 64:45===x()&&(Q+=M(A())),D=x(),B=T=d(U=Q+=function(e){for(;!S(x());)A();return c(b,e,m)}(m)),F++;break;case 45:45===z&&2==d(Q)&&(L=0)}}return g}("",null,null,null,[""],t=k(t=e),0,[0],t),b="",r),T)},L={key:w,sheet:new n({key:w,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:_,registered:{},insert:function(e,t,r,n){g=r,D(e?e+"{"+t.styles+"}":t.styles),n&&(L.inserted[t.name]=!0)}};return L.sheet.hydrate(B),L}},5042:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},1463:function(e,t,r){"use strict";r.d(t,{C:function(){return u},T:function(){return d},a:function(){return f},i:function(){return s},w:function(){return c}});var n=r(7294),i=r(8417),o=r(7462),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}};r(8137),r(7278);var s=!0,l=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null),u=l.Provider,c=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(l),r)})};s||(c=function(e){return function(t){var r=(0,n.useContext)(l);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(l.Provider,{value:r},e(t,r))):e(t,r)}});var d=n.createContext({}),h=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),f=function(e){var t=n.useContext(d);return e.theme!==t&&(t=h(t)(e.theme)),n.createElement(d.Provider,{value:t},e.children)}},917:function(e,t,r){"use strict";r.d(t,{F4:function(){return c},xB:function(){return l}});var n=r(1463),i=r(7294),o=r(444),a=r(7278),s=r(8137);r(8417),r(8679);var l=(0,n.w)(function(e,t){var r=e.styles,l=(0,s.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,c=l.name,d=l.styles,h=l.next;void 0!==h;)c+=" "+h.name,d+=h.styles,h=h.next;var f=!0===t.compat,p=t.insert("",{name:c,styles:d},t.sheet,f);return f?null:i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:p},u.nonce=t.sheet.nonce,u))}var g=i.useRef();return(0,a.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])),g.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=g.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,s.O)(t)}var c=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_"}}}},8137:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
1idRow: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},o=r(5042),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||l(e)||"number"!=typeof t||0===t?t:t+"px"};function h(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+=h(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+=c(o)+":"+d(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+=c(o)+":"+d(o,a[s])+";");else{var l=h(e,t,a);switch(o){case"animation":case"animationName":n+=c(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,h(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var f=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=h(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=h(r,t,e[l]),o&&(a+=s[l]);f.lastIndex=0;for(var u="";null!==(i=f.exec(a));)u+="-"+i[1];return{name: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)}(a)+u,styles:a,next:n}}},7278:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,i=r(7294),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},444: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)}}},7665:function(e){"use strict";e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<e.length;n++){var i=e.charAt(n),o=i.charCodeAt(0);if(255!==t[o])throw TypeError(i+" is ambiguous");t[o]=n}var a=e.length,s=e.charAt(0),l=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var r=0,n=0,i=0;e[r]===s;)n++,r++;for(var o=(e.length-r)*l+1>>>0,u=new Uint8Array(o);e[r];){var c=t[e.charCodeAt(r)];if(255===c)return;for(var d=0,h=o-1;(0!==c||d<i)&&-1!==h;h--,d++)c+=a*u[h]>>>0,u[h]=c%256>>>0,c=c/256>>>0;if(0!==c)throw Error("Non-zero carry");i=d,r++}for(var f=o-i;f!==o&&0===u[f];)f++;for(var p=new Uint8Array(n+(o-f)),g=n;f!==o;)p[g++]=u[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 l=(o-i)*u+1>>>0,c=new Uint8Array(l);i!==o;){for(var d=t[i],h=0,f=l-1;(0!==d||h<n)&&-1!==f;f--,h++)d+=256*c[f]>>>0,c[f]=d%a>>>0,d=d/a>>>0;if(0!==d)throw Error("Non-zero carry");n=h,i++}for(var p=l-n;p!==l&&0===c[p];)p++;for(var g=s.repeat(r);p<l;++p)g+=e.charAt(c[p]);return g},decodeUnsafe:c,decode:function(e){var t=c(e);if(t)return t;throw Error("Non-base"+a+" character")}}}},5019:function(e,t,r){let n=r(7665);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},6702:function(e,t,r){"use strict";t._O=t.Jq=t.KB=t.u8=t.cv=void 0,t.Ik=t.A9=t.n_=t.gM=void 0;let n=r(8764);function i(e){if(!(e instanceof Uint8Array))throw TypeError("b must be a Uint8Array")}function o(e){return i(e),n.Buffer.from(e.buffer,e.byteOffset,e.length)}class a{constructor(e,t){if(!Number.isInteger(e))throw TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(e){let t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}}function s(e,t){return t.property?e+"["+t.property+"]":e}class l extends a{isCount(){throw Error("ExternalLayout is abstract")}}class u extends l{constructor(e,t=0,r){if(!(e instanceof a))throw TypeError("layout must be a Layout");if(!Number.isInteger(t))throw TypeError("offset must be integer or undefined");super(e.span,r||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof c||this.layout instanceof d}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,r=0){return this.layout.encode(e,t,r+this.offset)}}class c extends a{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t=0){return o(e).readUIntLE(t,this.span)}encode(e,t,r=0){return o(t).writeUIntLE(e,r,this.span),this.span}}class d extends a{constructor(e,t){if(super(e,t),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(e,t=0){return o(e).readUIntBE(t,this.span)}encode(e,t,r=0){return o(t).writeUIntBE(e,r,this.span),this.span}}function h(e){let t=Math.floor(e/4294967296);return{hi32:t,lo32:e-4294967296*t}}function f(e,t){return 4294967296*e+t}class p extends a{constructor(e){super(8,e)}decode(e,t=0){let r=o(e),n=r.readUInt32LE(t),i=r.readUInt32LE(t+4);return f(i,n)}encode(e,t,r=0){let n=h(e),i=o(t);return i.writeUInt32LE(n.lo32,r),i.writeUInt32LE(n.hi32,r+4),8}}class g extends a{constructor(e){super(8,e)}decode(e,t=0){let r=o(e),n=r.readUInt32LE(t),i=r.readInt32LE(t+4);return f(i,n)}encode(e,t,r=0){let n=h(e),i=o(t);return i.writeUInt32LE(n.lo32,r),i.writeInt32LE(n.hi32,r+4),8}}class m extends a{constructor(e,t,r){if(!(e instanceof a))throw TypeError("elementLayout must be a Layout");if(!(t instanceof l&&t.isCount()||Number.isInteger(t)&&0<=t))throw TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let n=-1;t instanceof l||!(0<e.span)||(n=t*e.span),super(n,r),this.elementLayout=e,this.count=t}getSpan(e,t=0){if(0<=this.span)return this.span;let r=0,n=this.count;if(n instanceof l&&(n=n.decode(e,t)),0<this.elementLayout.span)r=n*this.elementLayout.span;else{let i=0;for(;i<n;)r+=this.elementLayout.getSpan(e,t+r),++i}return r}decode(e,t=0){let r=[],n=0,i=this.count;for(i instanceof l&&(i=i.decode(e,t));n<i;)r.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),n+=1;return r}encode(e,t,r=0){let n=this.elementLayout,i=e.reduce((e,i)=>e+n.encode(i,t,r+e),0);return this.count instanceof l&&this.count.encode(e.length,t,r),i}}class y extends a{constructor(e,t,r){if(!(Array.isArray(e)&&e.reduce((e,t)=>
1e&&t instanceof a,!0)))throw TypeError("fields must be array of Layout instances");for(let n of("boolean"==typeof t&&void 0===r&&(r=t,t=void 0),e))if(0>n.span&&void 0===n.property)throw Error("fields cannot contain unnamed variable-length layout");let n=-1;try{n=e.reduce((e,t)=>e+t.getSpan(),0)}catch(e){}super(n,t),this.fields=e,this.decodePrefixes=!!r}getSpan(e,t=0){if(0<=this.span)return this.span;let r=0;try{r=this.fields.reduce((r,n)=>{let i=n.getSpan(e,t);return t+=i,r+i},0)}catch(e){throw RangeError("indeterminate span")}return r}decode(e,t=0){i(e);let r=this.makeDestinationObject();for(let n of this.fields)if(void 0!==n.property&&(r[n.property]=n.decode(e,t)),t+=n.getSpan(e,t),this.decodePrefixes&&e.length===t)break;return r}encode(e,t,r=0){let n=r,i=0,o=0;for(let n of this.fields){let a=n.span;if(o=0<a?a:0,void 0!==n.property){let i=e[n.property];void 0!==i&&(o=n.encode(i,t,r),0>a&&(a=n.getSpan(t,r)))}i=r,r+=a}return i+o-n}fromArray(e){let t=this.makeDestinationObject();for(let r of this.fields)void 0!==r.property&&0<e.length&&(t[r.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw TypeError("property must be string");for(let t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw TypeError("property must be string");let t=0;for(let r of this.fields){if(r.property===e)return t;0>r.span?t=-1:0<=t&&(t+=r.span)}}}class b{constructor(e){this.property=e}decode(e,t){throw Error("UnionDiscriminator is abstract")}encode(e,t,r){throw Error("UnionDiscriminator is abstract")}}class v extends b{constructor(e,t){if(!(e instanceof l&&e.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,r){return this.layout.encode(e,t,r)}}class w extends a{constructor(e,t,r){let n;if(e instanceof c||e instanceof d)n=new v(new u(e));else if(e instanceof l&&e.isCount())n=new v(e);else if(e instanceof b)n=e;else throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===t&&(t=null),!(null===t||t instanceof a))throw TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let i=-1;t&&0<=(i=t.span)&&(e instanceof c||e instanceof d)&&(i+=n.layout.span),super(i,r),this.discriminator=n,this.usesPrefixDiscriminator=e instanceof c||e instanceof d,this.defaultLayout=t,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return o(e)},this.configGetSourceVariant=function(e){o=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;let r=this.getVariant(e,t);if(!r)throw Error("unable to determine span for unrecognized variant");return r.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;let t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(let t in this.registry){let r=this.registry[t];if(r.property&&Object.prototype.hasOwnProperty.call(e,r.property))return r}throw Error("unable to infer src variant")}decode(e,t=0){let r;let n=this.discriminator,i=n.decode(e,t),o=this.registry[i];if(void 0===o){let o=this.defaultLayout,a=0;this.usesPrefixDiscriminator&&(a=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[o.property]=o.decode(e,t+a)}else r=o.decode(e,t);return r}encode(e,t,r=0){let n=this.getSourceVariant(e);if(void 0===n){let n=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=n.layout.span),n.encode(e[n.property],t,r),o+i.encode(e[i.property],t,r+o)}return n.encode(e,t,r)}addVariant(e,t,r){let n=new A(this,e,t,r);return this.registry[e]=n,n}getVariant(e,t=0){let r;return r=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[r]}}class A extends a{constructor(e,t,r,n){if(!(e instanceof w))throw TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof r&&void 0===n&&(n=r,r=null),r){if(!(r instanceof a))throw TypeError("layout must be a Layout");
1if(null!==e.defaultLayout&&0<=r.span&&r.span>e.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof n)throw TypeError("variant must have a String property")}let i=e.span;0>e.span&&0<=(i=r?r.span:0)&&e.usesPrefixDiscriminator&&(i+=e.discriminator.layout.span),super(i,n),this.union=e,this.variant=t,this.layout=r||null}getSpan(e,t=0){if(0<=this.span)return this.span;let r=0;this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span);let n=0;return this.layout&&(n=this.layout.getSpan(e,t+r)),r+n}decode(e,t=0){let r=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw Error("variant mismatch");let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(e,t+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(e,t,r=0){let n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,r);let i=n;if(this.layout&&(this.layout.encode(e[this.property],t,r+n),i+=this.layout.getSpan(t,r+n),0<=this.union.span&&i>this.union.span))throw Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function x(e){return 0>e&&(e+=4294967296),e}class S extends a{constructor(e,t,r){if(!(e instanceof c||e instanceof d))throw TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===r&&(r=t,t=!1),4<e.span)throw RangeError("word cannot exceed 32 bits");super(e.span,r),this.word=e,this.msb=!!t,this.fields=[];let n=0;this._packedSetValue=function(e){return n=x(e),this},this._packedGetValue=function(){return n}}decode(e,t=0){let r=this.makeDestinationObject(),n=this.word.decode(e,t);for(let t of(this._packedSetValue(n),this.fields))void 0!==t.property&&(r[t.property]=t.decode(e));return r}encode(e,t,r=0){let n=this.word.decode(t,r);for(let t of(this._packedSetValue(n),this.fields))if(void 0!==t.property){let r=e[t.property];void 0!==r&&t.encode(r)}return this.word.encode(this._packedGetValue(),t,r)}addField(e,t){let r=new k(this,e,t);return this.fields.push(r),r}addBoolean(e){let t=new M(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw TypeError("property must be string");for(let t of this.fields)if(t.property===e)return t}}class k{constructor(e,t,r){if(!(e instanceof S))throw TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw TypeError("bits must be positive integer");let n=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>n)throw Error("bits too long for span remainder ("+(n-i)+" of "+n+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=n-i-t),this.wordMask=x(this.valueMask<<this.start),this.property=r}decode(e,t){let r=this.container._packedGetValue(),n=x(r&this.wordMask),i=n>>>this.start;return i}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==x(e&this.valueMask))throw TypeError(s("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);let t=this.container._packedGetValue(),r=x(e<<this.start);this.container._packedSetValue(x(t&~this.wordMask)|r)}}class M extends k{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}class E extends a{constructor(e,t){if(!(e instanceof l&&e.isCount()||Number.isInteger(e)&&0<=e))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let r=-1;e instanceof l||(r=e),super(r,t),this.length=e}getSpan(e,t){let r=this.span;return 0>r&&(r=this.length.decode(e,t)),r}decode(e,t=0){let r=this.span;return 0>r&&(r=this.length.decode(e,t)),o(e).slice(t,t+r)}encode(e,t,r){let n=this.length;if(this.length instanceof l&&(n=e.length),!(e instanceof Uint8Array&&n===e.length))throw TypeError(s("Blob.encode",this)+" requires (length "+n+") Uint8Array as src");if(r+n>t.length)throw RangeError("encoding overruns Uint8Array");let i=o(e);return o(t).write(i.toString("hex"),r,n,"hex"),this.length instanceof l&&this.length.encode(n,t,r),n}}t.cv=(e,t,r)=>new u(e,t,r),t.u8=e=>new c(1,e),t.KB=e=>
1new c(2,e),t.Jq=e=>new c(4,e),t._O=e=>new p(e),t.gM=e=>new g(e),t.n_=(e,t,r)=>new y(e,t,r),t.A9=(e,t,r)=>new m(e,t,r),t.Ik=(e,t)=>new E(e,t)},9823:function(e,t,r){"use strict";let n;r.d(t,{ew:function(){return iC},j5:function(){return iH},nh:function(){return rl},eT:function(){return ru},YW:function(){return rI},EC:function(){return rS},GS:function(){return r_}});var i,o,a={};r.r(a),r.d(a,{dQ:function(){return K},ci:function(){return U},bytesToNumberBE:function(){return V},ty:function(){return Q},eV:function(){return G},n$:function(){return X},ql:function(){return q},hexToBytes:function(){return H},tL:function(){return $},S5:function(){return Y},FF:function(){return et}});var s=r(8764);function l(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function u(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}var c={number:l,bool:function(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)},bytes:u,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");l(e.outputLen),l(e.blockLen)},exists:function(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")},output:function(e,t){u(e);let r=t.outputLen;if(e.length<r)throw Error(`digestInto() expects output buffer of length at least ${r}`)}};let d="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,h=e=>e instanceof Uint8Array,f=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),p=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),g=(e,t)=>e<<32-t|e>>>t,m=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];if(!m)throw Error("Non little-endian hardware is not supported");function y(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function b(e){if("string"==typeof e&&(e=y(e)),!h(e))throw Error(`expected Uint8Array, got ${typeof e}`);return e}function v(...e){let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0)),r=0;return e.forEach(e=>{if(!h(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));class w{clone(){return this._cloneInto()}}function A(e){let t=t=>e().update(b(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function x(e=32){if(d&&"function"==typeof d.getRandomValues)return d.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}class S extends w{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=p(this.buffer)}update(e){c.exists(this);let{view:t,buffer:r,blockLen:n}=this;e=b(e);let i=e.length;for(let o=0;o<i;){let a=Math.min(n-this.pos,i-o);if(a===n){let t=p(e);for(;n<=i-o;o+=n)this.process(t,o);continue}r.set(e.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){c.exists(this),c.output(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:n,isLE:i}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>n-o&&(this.process(r,0),o=0);for(let e=o;e<n;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,u=n?0:4;e.setUint32(t+l,a,n),e.setUint32(t+u,s,n)}(r,n-8,BigInt(8*this.length),i),this.process(r,0);let a=p(e),s=this.outputLen;if(s%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=s/4,u=this.get();if(l>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)a.setUint32(4*e,u[e],i)}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 k=BigInt(4294967296-1),M=BigInt(32);function E(e,t=!1){return t?{h:Number(e&k),l:Number(e>>M&k)}:{h:0|Number(e>>M&k),l:0|Number(e&k)}}var I={fromBig:E,split:function(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:a}=E(e[i],t);[r[i],n[i]]=[o,a]}return[r,n]},toBig:(e,t)=>
1BigInt(e>>>0)<<M|BigInt(t>>>0),shrSH:(e,t,r)=>e>>>r,shrSL:(e,t,r)=>e<<32-r|t>>>r,rotrSH:(e,t,r)=>e>>>r|t<<32-r,rotrSL:(e,t,r)=>e<<32-r|t>>>r,rotrBH:(e,t,r)=>e<<64-r|t>>>r-32,rotrBL:(e,t,r)=>e>>>r-32|t<<64-r,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:(e,t,r)=>e<<r|t>>>32-r,rotlSL:(e,t,r)=>t<<r|e>>>32-r,rotlBH:(e,t,r)=>t<<r-32|e>>>64-r,rotlBL:(e,t,r)=>e<<r-32|t>>>64-r,add:function(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/4294967296|0)|0,l:0|i}},add3L:(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),add3H:(e,t,r,n)=>t+r+n+(e/4294967296|0)|0,add4L:(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),add4H:(e,t,r,n,i)=>t+r+n+i+(e/4294967296|0)|0,add5H:(e,t,r,n,i,o)=>t+r+n+i+o+(e/4294967296|0)|0,add5L:(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0)};let[_,C]=I.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e3585
15771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),B=new Uint32Array(80),T=new Uint32Array(80);class D extends S{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:i,Cl:o,Dh:a,Dl:s,Eh:l,El:u,Fh:c,Fl:d,Gh:h,Gl:f,Hh:p,Hl:g}=this;return[e,t,r,n,i,o,a,s,l,u,c,d,h,f,p,g]}set(e,t,r,n,i,o,a,s,l,u,c,d,h,f,p,g){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|l,this.El=0|u,this.Fh=0|c,this.Fl=0|d,this.Gh=0|h,this.Gl=0|f,this.Hh=0|p,this.Hl=0|g}process(e,t){for(let r=0;r<16;r++,t+=4)B[r]=e.getUint32(t),T[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|B[e-15],r=0|T[e-15],n=I.rotrSH(t,r,1)^I.rotrSH(t,r,8)^I.shrSH(t,r,7),i=I.rotrSL(t,r,1)^I.rotrSL(t,r,8)^I.shrSL(t,r,7),o=0|B[e-2],a=0|T[e-2],s=I.rotrSH(o,a,19)^I.rotrBH(o,a,61)^I.shrSH(o,a,6),l=I.rotrSL(o,a,19)^I.rotrBL(o,a,61)^I.shrSL(o,a,6),u=I.add4L(i,l,T[e-7],T[e-16]),c=I.add4H(u,n,s,B[e-7],B[e-16]);B[e]=0|c,T[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:o,Ch:a,Cl:s,Dh:l,Dl:u,Eh:c,El:d,Fh:h,Fl:f,Gh:p,Gl:g,Hh:m,Hl:y}=this;for(let e=0;e<80;e++){let t=I.rotrSH(c,d,14)^I.rotrSH(c,d,18)^I.rotrBH(c,d,41),b=I.rotrSL(c,d,14)^I.rotrSL(c,d,18)^I.rotrBL(c,d,41),v=c&h^~c&p,w=d&f^~d&g,A=I.add5L(y,b,w,C[e],T[e]),x=I.add5H(A,m,t,v,_[e],B[e]),S=0|A,k=I.rotrSH(r,n,28)^I.rotrBH(r,n,34)^I.rotrBH(r,n,39),M=I.rotrSL(r,n,28)^I.rotrBL(r,n,34)^I.rotrBL(r,n,39),E=r&i^r&a^i&a,D=n&o^n&s^o&s;m=0|p,y=0|g,p=0|h,g=0|f,h=0|c,f=0|d,({h:c,l:d}=I.add(0|l,0|u,0|x,0|S)),l=0|a,u=0|s,a=0|i,s=0|o,i=0|r,o=0|n;let j=I.add3L(S,M,D);r=I.add3H(j,x,k,E),n=0|j}({h:r,l:n}=I.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:o}=I.add(0|this.Bh,0|this.Bl,0|i,0|o)),({h:a,l:s}=I.add(0|this.Ch,0|this.Cl,0|a,0|s)),({h:l,l:u}=I.add(0|this.Dh,0|this.Dl,0|l,0|u)),({h:c,l:d}=I.add(0|this.Eh,0|this.El,0|c,0|d)),({h:h,l:f}=I.add(0|this.Fh,0|this.Fl,0|h,0|f)),({h:p,l:g}=I.add(0|this.Gh,0|this.Gl,0|p,0|g)),({h:m,l:y}=I.add(0|this.Hh,0|this.Hl,0|m,0|y)),this.set(r,n,i,o,a,s,l,u,c,d,h,f,p,g,m,y)}roundClean(){B.fill(0),T.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class j extends D{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class z extends D{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class N extends D{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}let O=A(()=>new D);A(()=>new j),A(()=>new z),A(()=>new N),BigInt(0);let L=BigInt(1),P=BigInt(2),R=e=>e instanceof Uint8Array,F=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function U(e){if(!R(e))throw Error("Uint8Array expected");let t="";for(let r=0;r<e.length;r++)t+=F[e[r]];return t}function W(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function H(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(t/2);for(let t=0;t<r.length;t++){let n=2*t,i=e.slice(n,n+2),o=Number.parseInt(i,16);if(Number.isNaN(o)||o<0)throw Error("Invalid byte sequence");r[t]=o}return r}function V(e){return W(U(e))}function Q(e){if(!R(e))throw Error("Uint8Array expected");return W(U(Uint8Array.from(e).reverse()))}function $(e,t){return H(e.toString(16).padStart(2*t,"0"))}function Y(e,t){return $(e,t).reverse()}function q(e,t,r){let n;if("string"==typeof t)try{n=H(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(R(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let i=n.length;if("number"==typeof r&&i!==r)throw Error(`${e} expected ${r} bytes, got ${i}`);return n}function G(...e){let t=new Uint8Array(e.reduce((e,t)=>
1e+t.length,0)),r=0;return e.forEach(e=>{if(!R(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}let K=e=>(P<<BigInt(e-1))-L,J=e=>new Uint8Array(e),Z=e=>Uint8Array.from(e);function X(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=J(e),i=J(e),o=0,a=()=>{n.fill(1),i.fill(0),o=0},s=(...e)=>r(i,n,...e),l=(e=J())=>{i=s(Z([0]),e),n=s(),0!==e.length&&(i=s(Z([1]),e),n=s())},u=()=>{if(o++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){n=s();let t=n.slice();r.push(t),e+=n.length}return G(...r)};return(e,t)=>{let r;for(a(),l(e);!(r=t(u()));)l();return a(),r}}let ee={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};function et(e,t,r={}){let n=(t,r,n)=>{let i=ee[r];if("function"!=typeof i)throw Error(`Invalid validator "${r}", expected function`);let o=e[t];if((!n||void 0!==o)&&!i(o,e))throw Error(`Invalid param ${String(t)}=${o} (${typeof o}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let er=BigInt(0),en=BigInt(1),ei=BigInt(2),eo=BigInt(3),ea=BigInt(4),es=BigInt(5),el=BigInt(8);function eu(e,t){let r=e%t;return r>=er?r:t+r}function ec(e,t,r){let n=e;for(;t-- >er;)n*=n,n%=r;return n}function ed(e,t){if(e===er||t<=er)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=eu(e,t),n=t,i=er,o=en,a=en,s=er;for(;r!==er;){let e=n/r,t=n%r,l=i-a*e,u=o-s*e;n=r,r=t,i=a,o=s,a=l,s=u}let l=n;if(l!==en)throw Error("invert: does not exist");return eu(i,t)}BigInt(9),BigInt(16);let eh=(e,t)=>(eu(e,t)&en)===en,ef=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ep(e,t){let r=void 0!==t?t:e.toString(2).length;return{nBitLength:r,nByteLength:Math.ceil(r/8)}}function eg(e,t,r=!1,n={}){if(e<=er)throw Error(`Expected Fp ORDER > 0, got ${e}`);let{nBitLength:i,nByteLength:o}=ep(e,t);if(o>2048)throw Error("Field lengths over 2048 bytes are not supported");let a=function(e){if(e%ea===eo){let t=(e+en)/ea;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}if(e%el===es){let t=(e-es)/el;return function(e,r){let n=e.mul(r,ei),i=e.pow(n,t),o=e.mul(r,i),a=e.mul(e.mul(o,ei),i),s=e.mul(o,e.sub(a,e.ONE));if(!e.eql(e.sqr(s),r))throw Error("Cannot find square root");return s}}return function(e){let t,r,n;let i=(e-en)/ei;for(t=e-en,r=0;t%ei===er;t/=ei,r++);for(n=ei;n<e&&function(e,t,r){if(r<=er||t<er)throw Error("Expected power/modulo > 0");if(r===en)return er;let n=en;for(;t>er;)t&en&&(n=n*e%r),e=e*e%r,t>>=en;return n}(n,i,e)!==e-en;n++);if(1===r){let t=(e+en)/ea;return function(e,r){let n=e.pow(r,t);if(!e.eql(e.sqr(n),r))throw Error("Cannot find square root");return n}}let o=(t+en)/ei;return function(e,a){if(e.pow(a,i)===e.neg(e.ONE))throw Error("Cannot find square root");let s=r,l=e.pow(e.mul(e.ONE,n),t),u=e.pow(a,o),c=e.pow(a,t);for(;!e.eql(c,e.ONE);){if(e.eql(c,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(c);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);let r=e.pow(l,en<<BigInt(s-t-1));l=e.sqr(r),u=e.mul(u,r),c=e.mul(c,l),s=t}return u}}(e)}(e),s=Object.freeze({ORDER:e,BITS:i,BYTES:o,MASK:K(i),ZERO:er,ONE:en,create:t=>eu(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return er<=t&&t<e},is0:e=>e===er,isOdd:e=>(e&en)===en,neg:t=>eu(-t,e),eql:(e,t)=>e===t,sqr:t=>eu(t*t,e),add:(t,r)=>eu(t+r,e),sub:(t,r)=>eu(t-r,e),mul:(t,r)=>eu(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<er)throw Error("Expected power > 0");if(r===er)return e.ONE;if(r===en)return t;let n=e.ONE,i=t;for(;r>er;)r&en&&(n=e.mul(n,i)),i=e.sqr(i),r>>=en;return n})(s,e,t),div:(t,r)=>eu(t*ed(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>ed(t,e),sqrt:n.sqrt||(e=>a(s,e)),invertBatch:e=>(function(e,t){let r=Array(t.length),n=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),i=e.inv(n);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),i),r})(s,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?Y(e,o):$(e,o),fromBytes:e=>{if(e.length!==o)throw Error(`Fp.fromBytes: expected ${o}, got ${e.length}`);return r?Q(e):V(e)}});return Object.freeze(s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let em=BigInt(0),ey=BigInt(1);function eb(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,i=t;
1for(;r>em;)r&ey&&(n=n.add(i)),i=i.double(),r>>=ey;return n},precomputeWindow(e,t){let{windows:r,windowSize:i}=n(t),o=[],a=e,s=a;for(let e=0;e<r;e++){s=a,o.push(s);for(let e=1;e<i;e++)s=s.add(a),o.push(s);a=s.double()}return o},wNAF(t,i,o){let{windows:a,windowSize:s}=n(t),l=e.ZERO,u=e.BASE,c=BigInt(2**t-1),d=2**t,h=BigInt(t);for(let e=0;e<a;e++){let t=e*s,n=Number(o&c);o>>=h,n>s&&(n-=d,o+=ey);let a=t+Math.abs(n)-1,f=e%2!=0,p=n<0;0===n?u=u.add(r(f,i[t])):l=l.add(r(p,i[a]))}return{p:l,f:u}},wNAFCached(e,t,r,n){let i=e._WINDOW_SIZE||1,o=t.get(e);return o||(o=this.precomputeWindow(e,i),1!==i&&t.set(e,n(o))),this.wNAF(i,o,r)}}}function ev(e){return!function(e){let t=ef.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});et(e,t)}(e.Fp),et(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...ep(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let ew=BigInt(0),eA=BigInt(1),ex=BigInt(2),eS=BigInt(8),ek={zip215:!0};function eM(e){let t=function(e){let t=ev(e);return et(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}(e),{Fp:r,n:n,prehash:i,hash:o,randomBytes:a,nByteLength:s,h:l}=t,u=ex<<BigInt(8*s)-eA,c=r.create,d=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(e*r.inv(t))}}catch(e){return{isValid:!1,value:ew}}}),h=t.adjustScalarBytes||(e=>e),f=t.domain||((e,t,r)=>{if(t.length||r)throw Error("Contexts/pre-hash are not supported");return e}),p=e=>"bigint"==typeof e&&ew<e,g=(e,t)=>p(e)&&p(t)&&e<t,m=e=>e===ew||g(e,u);function y(e,t){if(g(e,t))return e;throw Error(`Expected valid scalar < ${t}, got ${typeof e} ${e}`)}function b(e){return e===ew?e:y(e,n)}let v=new Map;function w(e){if(!(e instanceof A))throw Error("ExtendedPoint expected")}class A{constructor(e,t,r,n){if(this.ex=e,this.ey=t,this.ez=r,this.et=n,!m(e))throw Error("x required");if(!m(t))throw Error("y required");if(!m(r))throw Error("z required");if(!m(n))throw Error("t required")}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(e){if(e instanceof A)throw Error("extended point not allowed");let{x:t,y:r}=e||{};if(!m(t)||!m(r))throw Error("invalid affine point");return new A(t,r,eA,c(t*r))}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.ez));return e.map((e,r)=>e.toAffine(t[r])).map(A.fromAffine)}_setWindowSize(e){this._WINDOW_SIZE=e,v.delete(this)}assertValidity(){let{a:e,d:r}=t;if(this.is0())throw Error("bad point: ZERO");let{ex:n,ey:i,ez:o,et:a}=this,s=c(n*n),l=c(i*i),u=c(o*o),d=c(u*u),h=c(s*e),f=c(u*c(h+l)),p=c(d+c(r*c(s*l)));if(f!==p)throw Error("bad point: equation left != right (1)");let g=c(n*i),m=c(o*a);if(g!==m)throw Error("bad point: equation left != right (2)")}equals(e){w(e);let{ex:t,ey:r,ez:n}=this,{ex:i,ey:o,ez:a}=e,s=c(t*a),l=c(i*n),u=c(r*a),d=c(o*n);return s===l&&u===d}is0(){return this.equals(A.ZERO)}negate(){return new A(c(-this.ex),this.ey,this.ez,c(-this.et))}double(){let{a:e}=t,{ex:r,ey:n,ez:i}=this,o=c(r*r),a=c(n*n),s=c(ex*c(i*i)),l=c(e*o),u=r+n,d=c(c(u*u)-o-a),h=l+a,f=h-s,p=l-a,g=c(d*f),m=c(h*p),y=c(d*p),b=c(f*h);return new A(g,m,b,y)}add(e){w(e);let{a:r,d:n}=t,{ex:i,ey:o,ez:a,et:s}=this,{ex:l,ey:u,ez:d,et:h}=e;if(r===BigInt(-1)){let e=c((o-i)*(u+l)),t=c((o+i)*(u-l)),r=c(t-e);if(r===ew)return this.double();let n=c(a*ex*h),f=c(s*ex*d),p=f+n,g=t+e,m=f-n,y=c(p*r),b=c(g*m),v=c(p*m),w=c(r*g);return new A(y,b,w,v)}let f=c(i*l),p=c(o*u),g=c(s*n*h),m=c(a*d),y=c((i+o)*(l+u)-f-p),b=m-g,v=m+g,x=c(p-r*f),S=c(y*b),k=c(v*x),M=c(y*x),E=c(b*v);return new A(S,k,E,M)}subtract(e){return this.add(e.negate())}wNAF(e){return k.wNAFCached(this,v,e,A.normalizeZ)}multiply(e){let{p:t,f:r}=this.wNAF(y(e,n));return A.normalizeZ([t,r])[0]}multiplyUnsafe(e){let t=b(e);return t===ew?S:this.equals(S)||t===eA?this:this.equals(x)?this.wNAF(t).p:k.unsafeLadder(this,t)}isSmallOrder(){return this.multiplyUnsafe(l).is0()}isTorsionFree(){return k.unsafeLadder(this,n).is0()}toAffine(e){let{ex:t,ey:n,ez:i}=this,o=this.is0();null==e&&(e=o?eS:r.inv(i));let a=c(t*e),s=c(n*e),l=c(i*e);if(o)return{x:ew,y:eA};
1if(l!==eA)throw Error("invZ was invalid");return{x:a,y:s}}clearCofactor(){let{h:e}=t;return e===eA?this:this.multiplyUnsafe(e)}static fromHex(e,n=!1){let{d:i,a:o}=t,a=r.BYTES;e=q("pointHex",e,a);let s=e.slice(),l=e[a-1];s[a-1]=-129&l;let h=Q(s);h===ew||(n?y(h,u):y(h,r.ORDER));let f=c(h*h),p=c(f-eA),g=c(i*f-o),{isValid:m,value:b}=d(p,g);if(!m)throw Error("Point.fromHex: invalid y coordinate");let v=(b&eA)===eA,w=(128&l)!=0;if(!n&&b===ew&&w)throw Error("Point.fromHex: x=0 and x_0=1");return w!==v&&(b=c(-b)),A.fromAffine({x:b,y:h})}static fromPrivateKey(e){return M(e).point}toRawBytes(){let{x:e,y:t}=this.toAffine(),n=Y(t,r.BYTES);return n[n.length-1]|=e&eA?128:0,n}toHex(){return U(this.toRawBytes())}}A.BASE=new A(t.Gx,t.Gy,eA,c(t.Gx*t.Gy)),A.ZERO=new A(ew,eA,eA,ew);let{BASE:x,ZERO:S}=A,k=eb(A,8*s);function M(e){e=q("private key",e,s);let t=q("hashed private key",o(e),2*s),r=h(t.slice(0,s)),i=t.slice(s,2*s),a=eu(Q(r),n),l=x.multiply(a),u=l.toRawBytes();return{head:r,prefix:i,scalar:a,point:l,pointBytes:u}}function E(e=new Uint8Array,...t){let r=G(...t);return eu(Q(o(f(r,q("context",e),!!i))),n)}return x._setWindowSize(8),{CURVE:t,getPublicKey:function(e){return M(e).pointBytes},sign:function(e,t,o={}){e=q("message",e),i&&(e=i(e));let{prefix:a,scalar:l,pointBytes:u}=M(t),c=E(o.context,a,e),d=x.multiply(c).toRawBytes(),h=E(o.context,d,u,e),f=eu(c+h*l,n);b(f);let p=G(d,Y(f,r.BYTES));return q("result",p,2*s)},verify:function(e,t,n,o=ek){let a,s,l;let{context:u,zip215:c}=o,d=r.BYTES;e=q("signature",e,2*d),t=q("message",t),i&&(t=i(t));let h=Q(e.slice(d,2*d));try{a=A.fromHex(n,c),s=A.fromHex(e.slice(0,d),c),l=x.multiplyUnsafe(h)}catch(e){return!1}if(!c&&a.isSmallOrder())return!1;let f=E(u,s.toRawBytes(),a.toRawBytes(),t),p=s.add(a.multiplyUnsafe(f));return p.subtract(l).clearCofactor().equals(A.ZERO)},ExtendedPoint:A,utils:{getExtendedPublicKey:M,randomPrivateKey:()=>a(r.BYTES),precompute:(e=8,t=A.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}}BigInt(0),BigInt(1);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let eE=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),eI=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),e_=BigInt(0),eC=BigInt(1),eB=BigInt(2),eT=BigInt(5),eD=BigInt(10),ej=BigInt(20),ez=BigInt(40),eN=BigInt(80);function eO(e,t){let r=eu(t*t*t,eE),n=eu(r*r*t,eE),i=function(e){let t=e*e%eE,r=t*e%eE,n=ec(r,eB,eE)*r%eE,i=ec(n,eC,eE)*e%eE,o=ec(i,eT,eE)*i%eE,a=ec(o,eD,eE)*o%eE,s=ec(a,ej,eE)*a%eE,l=ec(s,ez,eE)*s%eE,u=ec(l,eN,eE)*l%eE,c=ec(u,eN,eE)*l%eE,d=ec(c,eD,eE)*o%eE,h=ec(d,eB,eE)*e%eE;return{pow_p_5_8:h,b2:r}}(e*n).pow_p_5_8,o=eu(e*r*i,eE),a=eu(t*o*o,eE),s=o,l=eu(o*eI,eE),u=a===e,c=a===eu(-e,eE),d=a===eu(-e*eI,eE);return u&&(o=s),(c||d)&&(o=l),eh(o,eE)&&(o=eu(-o,eE)),{isValid:u||c,value:o}}let eL=eg(eE,void 0,!0),eP={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:eL,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:O,randomBytes:x,adjustScalarBytes:function(e){return e[0]&=248,e[31]&=127,e[31]|=64,e},uvRatio:eO},eR=eM(eP);function eF(e,t,r){if(t.length>255)throw Error("Context is too big");return v(y("SigEd25519 no Ed25519 collisions"),new Uint8Array([r?1:0,t.length]),t,e)}eM({...eP,domain:eF}),eM({...eP,domain:eF,prehash:O});let eU=(eL.ORDER+BigInt(3))/BigInt(8);function eW(e){if(!(e instanceof eJ))throw Error("RistrettoPoint expected")}eL.pow(eB,eU),eL.sqrt(eL.neg(eL.ONE)),eL.ORDER,BigInt(5),BigInt(8),BigInt(486662),function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);e.isOdd(r)&&e.neg(r)}(eL,eL.neg(BigInt(486664)));let eH=BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),eV=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),eQ=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),e$=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),eY=e=>eO(eC,e),eq=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),eG=e=>eR.CURVE.Fp.create(bytesToNumberLE(e)&eq);function eK(e){let{d:t}=eR.CURVE,r=eR.CURVE.Fp.ORDER,n=eR.CURVE.Fp.create,i=n(null*e*e),o=n((i+eC)*eQ),a=BigInt(-1),s=n((a-t*i)*n(i+t)),{isValid:l,value:u}=eO(o,s),c=n(u*e);isNegativeLE(c,r)||(c=n(-c)),l||(u=c),l||(a=i);let d=n(a*(i-eC)*e$-s),h=u*u,f=n((u+u)*s),p=n(d*eH),g=n(eC-h),m=n(eC+h);
1return new eR.ExtendedPoint(n(f*m),n(g*p),n(p*m),n(f*g))}class eJ{constructor(e){this.ep=e}static fromAffine(e){return new eJ(eR.ExtendedPoint.fromAffine(e))}static hashToCurve(e){e=ensureBytes("ristrettoHash",e,64);let t=eG(e.slice(0,32)),r=eK(t),n=eG(e.slice(32,64)),i=eK(n);return new eJ(r.add(i))}static fromHex(e){e=ensureBytes("ristrettoHex",e,32);let{a:t,d:r}=eR.CURVE,n=eR.CURVE.Fp.ORDER,i=eR.CURVE.Fp.create,o="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",a=eG(e);if(!equalBytes(numberToBytesLE(a,32),e)||isNegativeLE(a,n))throw Error(o);let s=i(a*a),l=i(eC+t*s),u=i(eC-t*s),c=i(l*l),d=i(u*u),h=i(t*r*c-d),{isValid:f,value:p}=eY(i(h*d)),g=i(p*u),m=i(p*g*h),y=i((a+a)*g);isNegativeLE(y,n)&&(y=i(-y));let b=i(l*m),v=i(y*b);if(!f||isNegativeLE(v,n)||b===e_)throw Error(o);return new eJ(new eR.ExtendedPoint(y,b,eC,v))}toRawBytes(){let e,{ex:t,ey:r,ez:n,et:i}=this.ep,o=eR.CURVE.Fp.ORDER,a=eR.CURVE.Fp.create,s=a(a(n+r)*a(n-r)),l=a(t*r),u=a(l*l),{value:c}=eY(a(s*u)),d=a(c*s),h=a(c*l),f=a(d*h*i);if(isNegativeLE(i*f,o)){let n=a(null*r),i=a(null*t);t=n,r=i,e=a(d*eV)}else e=h;isNegativeLE(t*f,o)&&(r=a(-r));let p=a((n-r)*e);return isNegativeLE(p,o)&&(p=a(-p)),numberToBytesLE(p,32)}toHex(){return bytesToHex(this.toRawBytes())}toString(){return this.toHex()}equals(e){eW(e);let{ex:t,ey:r}=this.ep,{ex:n,ey:i}=e.ep,o=eR.CURVE.Fp.create,a=o(t*i)===o(r*n),s=o(r*i)===o(t*n);return a||s}add(e){return eW(e),new eJ(this.ep.add(e.ep))}subtract(e){return eW(e),new eJ(this.ep.subtract(e.ep))}multiply(e){return new eJ(this.ep.multiply(e))}multiplyUnsafe(e){return new eJ(this.ep.multiplyUnsafe(e))}}var eZ=r(3550),eX=r.n(eZ),e0=r(7191),e1=r.n(e0);let e2=(e,t,r)=>e&t^~e&r,e4=(e,t,r)=>e&t^e&r^t&r,e5=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]),e3=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),e6=new Uint32Array(64);class e8 extends S{constructor(){super(64,32,8,!1),this.A=0|e3[0],this.B=0|e3[1],this.C=0|e3[2],this.D=0|e3[3],this.E=0|e3[4],this.F=0|e3[5],this.G=0|e3[6],this.H=0|e3[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)e6[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=e6[e-15],r=e6[e-2],n=g(t,7)^g(t,18)^t>>>3,i=g(r,17)^g(r,19)^r>>>10;e6[e]=i+e6[e-7]+n+e6[e-16]|0}let{A:r,B:n,C:i,D:o,E:a,F:s,G:l,H:u}=this;for(let e=0;e<64;e++){let t=g(a,6)^g(a,11)^g(a,25),c=u+t+e2(a,s,l)+e5[e]+e6[e]|0,d=g(r,2)^g(r,13)^g(r,22),h=d+e4(r,n,i)|0;u=l,l=s,s=a,a=o+c|0,o=i,i=n,n=r,r=c+h|0}r=r+this.A|0,n=n+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,s=s+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(r,n,i,o,a,s,l,u)}roundClean(){e6.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class e7 extends e8{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}let e9=A(()=>new e8);A(()=>new e7);var te=r(5532),tt=r(6702),tr=r(475);class tn extends TypeError{constructor(e,t){let r;let{message:n,...i}=e,{path:o}=e,a=0===o.length?n:"At path: "+o.join(".")+" -- "+n;super(a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var n;return null!=(n=r)?n:r=[e,...t()]}}}function ti(e){return"object"==typeof e&&null!=e}function to(e){return"string"==typeof e?JSON.stringify(e):""+e}function*ta(e,t,r,n){var i;for(let o of(ti(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:o}=t,{type:a}=r,{refinement:s,message:l="Expected a value of type `"+a+"`"+(s?" with refinement `"+s+"`":"")+", but received: `"+to(n)+"`"}=e;return{value:n,type:a,refinement:s,key:i[i.length-1],path:i,branch:o,...e,message:l}}(o,t,r,n);e&&(yield e)}}function*ts(e,t,r={}){let{path:n=[],branch:i=[e],coerce:o=!1,mask:a=!1}=r,s={path:n,branch:i};if(o&&(e=t.coercer(e,s),a&&"type"!==t.type&&ti(t.schema)&&ti(e)&&!Array.isArray(e)))for(let r in e)void 0===t.schema[r]&&delete e[r];let l=!0;for(let r of t.validator(e,s))l=!1,yield[r,void 0];for(let[r,u,c]of t.entries(e,s)){let t=ts(u,c,{path:void 0===r?n:[...n,r],branch:void 0===r?i:[...i,u],coerce:o,mask:a});for(let n of t)n[0]?(l=!1,yield[n[0],void 0]):o&&(u=n[1],void 0===r?e=u:e instanceof Map?e.set(r,u):e instanceof Set?e.add(u):ti(e)&&(e[r]=u))}if(l)for(let r of t.refiner(e,s))l=!1,yield[r,void 0];l&&(yield[void 0,e])}class tl{constructor(e){let{type:t,schema:r,validator:n,refiner:i,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=o,n?this.validator=(e,t)=>
1{let r=n(e,t);return ta(r,t,this,e)}:this.validator=()=>[],i?this.refiner=(e,t)=>{let r=i(e,t);return ta(r,t,this,e)}:this.refiner=()=>[]}assert(e){return function(e,t){let r=td(e,t);if(r[0])throw r[0]}(e,this)}create(e){return tu(e,this)}is(e){return tc(e,this)}mask(e){return function(e,t){let r=td(e,t,{coerce:!0,mask:!0});if(!r[0])return r[1];throw r[0]}(e,this)}validate(e,t={}){return td(e,this,t)}}function tu(e,t){let r=td(e,t,{coerce:!0});if(!r[0])return r[1];throw r[0]}function tc(e,t){let r=td(e,t);return!r[0]}function td(e,t,r={}){let n=ts(e,t,r),i=function(e){let{done:t,value:r}=e.next();return t?void 0:r}(n);if(i[0]){let e=new tn(i[0],function*(){for(let e of n)e[0]&&(yield e[0])});return[e,void 0]}{let e=i[1];return[void 0,e]}}function th(e,t){return new tl({type:e,schema:null,validator:t})}function tf(e){return new tl({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+to(e)})}function tp(){return th("boolean",e=>"boolean"==typeof e)}function tg(e){return th("instance",t=>t instanceof e||"Expected a `"+e.name+"` instance, but received: "+to(t))}function tm(e){let t=to(e),r=typeof e;return new tl({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||"Expected the literal `"+t+"`, but received: "+to(r)})}function ty(e){return new tl({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})}function tb(){return th("number",e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+to(e))}function tv(e){return new tl({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function tw(e,t){return new tl({type:"record",schema:null,*entries(r){if(ti(r))for(let n in r){let i=r[n];yield[n,n,e],yield[n,i,t]}},validator:e=>ti(e)||"Expected an object, but received: "+to(e)})}function tA(){return th("string",e=>"string"==typeof e||"Expected a string, but received: "+to(e))}function tx(e){let t=th("never",()=>!1);return new tl({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){let n=Math.max(e.length,r.length);for(let i=0;i<n;i++)yield[i,r[i],e[i]||t]}},validator:e=>Array.isArray(e)||"Expected an array, but received: "+to(e)})}function tS(e){let t=Object.keys(e);return new tl({type:"type",schema:e,*entries(r){if(ti(r))for(let n of t)yield[n,r[n],e[n]]},validator:e=>ti(e)||"Expected an object, but received: "+to(e)})}function tk(e){let t=e.map(e=>e.type).join(" | ");return new tl({type:"union",schema:null,validator(r,n){let i=[];for(let t of e){let[...e]=ts(r,t,n),[o]=e;if(!o[0])return[];for(let[t]of e)t&&i.push(t)}return["Expected the value to satisfy a union of `"+t+"`, but received: "+to(r),...i]}})}function tM(){return th("unknown",()=>!0)}function tE(e,t,r){return new tl({...e,coercer:(n,i)=>tc(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)})}var tI=r(1198),t_=r.n(tI),tC=r(6855),tB=r(9062);let[tT,tD,tj]=[[],[],[]],tz=BigInt(0),tN=BigInt(1),tO=BigInt(2),tL=BigInt(7),tP=BigInt(256),tR=BigInt(113);for(let e=0,t=tN,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],tT.push(2*(5*n+r)),tD.push((e+1)*(e+2)/2%64);let i=tz;for(let e=0;e<7;e++)(t=(t<<tN^(t>>tL)*tR)%tP)&tO&&(i^=tN<<(tN<<BigInt(e))-tN);tj.push(i)}let[tF,tU]=I.split(tj,!0),tW=(e,t,r)=>r>32?I.rotlBH(e,t,r):I.rotlSH(e,t,r),tH=(e,t,r)=>r>32?I.rotlBL(e,t,r):I.rotlSL(e,t,r);class tV extends w{constructor(e,t,r,n=!1,i=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=n,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,c.number(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=f(this.state)}keccak(){!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=tW(o,a,1)^r[n],l=tH(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=tD[r],o=tW(t,i,n),a=tH(t,i,n),s=tT[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]^=tF[n],e[1]^=tU[n]}r.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){c.exists(this);let{blockLen:t,state:r}=this;e=b(e);let n=e.length;for(let i=0;i<n;){let o=Math.min(t-this.pos,n-i);for(let t=0;t<o;t++)r[this.pos++]^=e[i++];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){c.exists(this,!1),c.bytes(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 c.number(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(c.output(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 tV(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 tQ=(e,t,r)=>A(()=>new tV(t,e,r));tQ(6,144,28),tQ(6,136,32),tQ(6,104,48),tQ(6,72,64),tQ(1,144,28);let t$=tQ(1,136,32);tQ(1,104,48),tQ(1,72,64);let tY=(e,t,r)=>(function(e){let t=(t,r)=>e(r).update(b(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t})((n={})=>new tV(t,e,void 0===n.dkLen?r:n.dkLen,!0));tY(31,168,16),tY(31,136,32);let{bytesToNumberBE:tq,hexToBytes:tG}
1=a,tK={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=tK;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let r=e[1],n=e.subarray(2,r+2);if(!r||n.length!==r)throw new t("Invalid signature integer: wrong length");if(128&n[0])throw new t("Invalid signature integer: negative");if(0===n[0]&&!(128&n[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:tq(n),l:e.subarray(r+2)}},toSig(e){let{Err:t}=tK,r="string"==typeof e?tG(e):e;if(!(r instanceof Uint8Array))throw Error("ui8a expected");let n=r.length;if(n<2||48!=r[0])throw new t("Invalid signature tag");if(r[1]!==n-2)throw new t("Invalid signature: incorrect length");let{d:i,l:o}=tK._parseInt(r.subarray(2)),{d:a,l:s}=tK._parseInt(o);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:a}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),i=t(r(e.r)),o=n.length/2,a=i.length/2,s=r(o),l=r(a);return`30${r(a+o+4)}02${l}${i}02${s}${n}`}},tJ=BigInt(0),tZ=BigInt(1),tX=(BigInt(2),BigInt(3));BigInt(4);class t0 extends w{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,c.hash(e);let r=b(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,i=new Uint8Array(n);i.set(r.length>n?e.create().update(r).digest():r);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),i.fill(0)}update(e){return c.exists(this),this.iHash.update(e),this}digestInto(e){c.exists(this),c.bytes(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:o,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=o,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let t1=(e,t,r)=>new t0(e,t).update(r).digest();t1.create=(e,t)=>new t0(e,t);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let t2=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),t4=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t5=BigInt(1),t3=BigInt(2),t6=(e,t)=>(e+t/t3)/t,t8=eg(t2,void 0,void 0,{sqrt:function(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),s=BigInt(88),l=e*e*e%t2,u=l*l*e%t2,c=ec(u,t,t2)*u%t2,d=ec(c,t,t2)*u%t2,h=ec(d,t3,t2)*l%t2,f=ec(h,n,t2)*h%t2,p=ec(f,i,t2)*f%t2,g=ec(p,a,t2)*p%t2,m=ec(g,s,t2)*g%t2,y=ec(m,a,t2)*p%t2,b=ec(y,t,t2)*u%t2,v=ec(b,o,t2)*f%t2,w=ec(v,r,t2)*l%t2,A=ec(w,t3,t2);if(!t8.eql(t8.sqr(A),e))throw Error("Cannot find square root");return A}}),t7=function(e,t){let r=t=>(function(e){let t=function(e){let t=ev(e);return et(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:r,n:n}=t,i=r.BYTES+1,o=2*r.BYTES+1;function a(e){return eu(e,n)}let{ProjectivePoint:s,normPrivateKeyToScalar:l,weierstrassEquation:u,isWithinCurveOrder:c}=function(e){let t=/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function(e){let t=ev(e);et(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,n=t.toBytes||((e,t,n)=>{let i=t.toAffine();return G(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),i=t.fromBytes||(e=>{let t=e.subarray(1),n=r.fromBytes(t.subarray(0,r.BYTES)),i=r.fromBytes(t.subarray(r.BYTES,2*r.BYTES));return{x:n,y:i}});function o(e){let{a:n,b:i}
1=t,o=r.sqr(e),a=r.mul(o,e);return r.add(r.add(a,r.mul(e,n)),i)}if(!r.eql(r.sqr(t.Gy),o(t.Gx)))throw Error("bad generator point: equation left != right");function a(e){return"bigint"==typeof e&&tJ<e&&e<t.n}function s(e){if(!a(e))throw Error("Expected valid bigint: 0 < bigint < curve.n")}function l(e){let r;let{allowedPrivateKeyLengths:n,nByteLength:i,wrapPrivateKey:o,n:a}=t;if(n&&"bigint"!=typeof e){if(e instanceof Uint8Array&&(e=U(e)),"string"!=typeof e||!n.includes(e.length))throw Error("Invalid key");e=e.padStart(2*i,"0")}try{r="bigint"==typeof e?e:V(q("private key",e,i))}catch(t){throw Error(`private key must be ${i} bytes, hex or bigint, not ${typeof e}`)}return o&&(r=eu(r,a)),s(r),r}let u=new Map;function c(e){if(!(e instanceof d))throw Error("ProjectivePoint expected")}class d{constructor(e,t,n){if(this.px=e,this.py=t,this.pz=n,null==e||!r.isValid(e))throw Error("x required");if(null==t||!r.isValid(t))throw Error("y required");if(null==n||!r.isValid(n))throw Error("z required")}static fromAffine(e){let{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw Error("invalid affine point");if(e instanceof d)throw Error("projective point not allowed");let i=e=>r.eql(e,r.ZERO);return i(t)&&i(n)?d.ZERO:new d(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(d.fromAffine)}static fromHex(e){let t=d.fromAffine(i(q("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return d.BASE.multiply(l(e))}_setWindowSize(e){this._WINDOW_SIZE=e,u.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint)return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let i=r.sqr(n),a=o(e);if(!r.eql(i,a))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){c(e);let{px:t,py:n,pz:i}=this,{px:o,py:a,pz:s}=e,l=r.eql(r.mul(t,s),r.mul(o,i)),u=r.eql(r.mul(n,s),r.mul(a,i));return l&&u}negate(){return new d(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,i=r.mul(n,tX),{px:o,py:a,pz:s}=this,l=r.ZERO,u=r.ZERO,c=r.ZERO,h=r.mul(o,o),f=r.mul(a,a),p=r.mul(s,s),g=r.mul(o,a);return g=r.add(g,g),c=r.mul(o,s),c=r.add(c,c),l=r.mul(e,c),u=r.mul(i,p),u=r.add(l,u),l=r.sub(f,u),u=r.add(f,u),u=r.mul(l,u),l=r.mul(g,l),c=r.mul(i,c),p=r.mul(e,p),g=r.sub(h,p),g=r.mul(e,g),g=r.add(g,c),c=r.add(h,h),h=r.add(c,h),h=r.add(h,p),h=r.mul(h,g),u=r.add(u,h),p=r.mul(a,s),p=r.add(p,p),h=r.mul(p,g),l=r.sub(l,h),c=r.mul(p,f),c=r.add(c,c),c=r.add(c,c),new d(l,u,c)}add(e){c(e);let{px:n,py:i,pz:o}=this,{px:a,py:s,pz:l}=e,u=r.ZERO,h=r.ZERO,f=r.ZERO,p=t.a,g=r.mul(t.b,tX),m=r.mul(n,a),y=r.mul(i,s),b=r.mul(o,l),v=r.add(n,i),w=r.add(a,s);v=r.mul(v,w),w=r.add(m,y),v=r.sub(v,w),w=r.add(n,o);let A=r.add(a,l);return w=r.mul(w,A),A=r.add(m,b),w=r.sub(w,A),A=r.add(i,o),u=r.add(s,l),A=r.mul(A,u),u=r.add(y,b),A=r.sub(A,u),f=r.mul(p,w),u=r.mul(g,b),f=r.add(u,f),u=r.sub(y,f),f=r.add(y,f),h=r.mul(u,f),y=r.add(m,m),y=r.add(y,m),b=r.mul(p,b),w=r.mul(g,w),y=r.add(y,b),b=r.sub(m,b),b=r.mul(p,b),w=r.add(w,b),m=r.mul(y,w),h=r.add(h,m),m=r.mul(A,w),u=r.mul(v,u),u=r.sub(u,m),m=r.mul(v,y),f=r.mul(A,f),f=r.add(f,m),new d(u,h,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(d.ZERO)}wNAF(e){return f.wNAFCached(this,u,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(d.fromAffine)})}multiplyUnsafe(e){let n=d.ZERO;if(e===tJ)return n;if(s(e),e===tZ)return this;let{endo:i}=t;if(!i)return f.unsafeLadder(this,e);let{k1neg:o,k1:a,k2neg:l,k2:u}=i.splitScalar(e),c=n,h=n,p=this;for(;a>tJ||u>tJ;)a&tZ&&(c=c.add(p)),u&tZ&&(h=h.add(p)),p=p.double(),a>>=tZ,u>>=tZ;return o&&(c=c.negate()),l&&(h=h.negate()),h=new d(r.mul(h.px,i.beta),h.py,h.pz),c.add(h)}multiply(e){let n,i;s(e);let{endo:o}=t;if(o){let{k1neg:t,k1:a,k2neg:s,k2:l}=o.splitScalar(e),{p:u,f:c}=this.wNAF(a),{p:h,f:p}=this.wNAF(l);u=f.constTimeNegate(t,u),h=f.constTimeNegate(s,h),h=new d(r.mul(h.px,o.beta),h.py,h.pz),n=u.add(h),i=c.add(p)}else{let{p:t,f:r}=this.wNAF(e);n=t,i=r}return d.normalizeZ([n,i])[0]}multiplyAndAddUnsafe(e,t,r){let n=d.BASE,i=(e,t)=>t!==tJ&&t!==tZ&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),o=i(this,t).add(i(e,r));return o.is0()?void 0:o}toAffine(e){let{px:t,py:n,pz:i}=this,o=this.is0();null==e&&(e=o?r.ONE:r.inv(i));let a=r.mul(t,e),s=r.mul(n,e),l=r.mul(i,e);if(o)return{x:r.ZERO,y:r.ZERO};
1if(!r.eql(l,r.ONE))throw Error("invZ was invalid");return{x:a,y:s}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===tZ)return!0;if(r)return r(d,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===tZ?this:r?r(d,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),n(d,this,e)}toHex(e=!0){return U(this.toRawBytes(e))}}d.BASE=new d(t.Gx,t.Gy,r.ONE),d.ZERO=new d(r.ZERO,r.ONE,r.ZERO);let h=t.nBitLength,f=eb(d,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:o,isWithinCurveOrder:a}}({...t,toBytes(e,t,n){let i=t.toAffine(),o=r.toBytes(i.x),a=G;return n?a(Uint8Array.from([t.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes(e){let t=e.length,n=e[0],a=e.subarray(1);if(t===i&&(2===n||3===n)){let e=V(a);if(!(tJ<e&&e<r.ORDER))throw Error("Point is not on curve");let t=u(e),i=r.sqrt(t),o=(i&tZ)===tZ;return(1&n)==1!==o&&(i=r.neg(i)),{x:e,y:i}}if(t===o&&4===n){let e=r.fromBytes(a.subarray(0,r.BYTES)),t=r.fromBytes(a.subarray(r.BYTES,2*r.BYTES));return{x:e,y:t}}throw Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${o} uncompressed bytes`)}}),d=e=>U($(e,t.nByteLength));function h(e){let t=n>>tZ;return e>t}let f=(e,t,r)=>V(e.slice(t,r));class p{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return e=q("compactSignature",e,2*r),new p(f(e,0,r),f(e,r,2*r))}static fromDER(e){let{r:t,s:r}=tK.toSig(q("DER",e));return new p(t,r)}assertValidity(){if(!c(this.r))throw Error("r must be 0 < r < CURVE.n");if(!c(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new p(this.r,this.s,e)}recoverPublicKey(e){let{r:i,s:o,recovery:l}=this,u=y(q("msgHash",e));if(null==l||![0,1,2,3].includes(l))throw Error("recovery id invalid");let c=2===l||3===l?i+t.n:i;if(c>=r.ORDER)throw Error("recovery id 2 or 3 invalid");let h=(1&l)==0?"02":"03",f=s.fromHex(h+d(c)),p=ed(c,n),g=a(-u*p),m=a(o*p),b=s.BASE.multiplyAndAddUnsafe(f,g,m);if(!b)throw Error("point at infinify");return b.assertValidity(),b}hasHighS(){return h(this.s)}normalizeS(){return this.hasHighS()?new p(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return H(this.toDERHex())}toDERHex(){return tK.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return H(this.toCompactHex())}toCompactHex(){return d(this.r)+d(this.s)}}function g(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===i||n===o:r?n===2*i||n===2*o:e instanceof s}let m=t.bits2int||function(e){let r=V(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},y=t.bits2int_modN||function(e){return a(m(e))},b=K(t.nBitLength);function v(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(tJ<=e&&e<b))throw Error(`bigint expected < 2^${t.nBitLength}`);return $(e,t.nByteLength)}let w={lowS:t.lowS,prehash:!1},A={lowS:t.lowS,prehash:!1};return s.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return s.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,r=!0){if(g(e))throw Error("first arg must be private key");if(!g(t))throw Error("second arg must be public key");let n=s.fromHex(t);return n.multiply(l(e)).toRawBytes(r)},sign:function(e,i,o=w){let{seed:u,k2sig:d}=function(e,i,o=w){if(["recovered","canonical"].some(e=>e in o))throw Error("sign() legacy options not supported");let{hash:u,randomBytes:d}=t,{lowS:f,prehash:g,extraEntropy:b}=o;null==f&&(f=!0),e=q("msgHash",e),g&&(e=q("prehashed msgHash",u(e)));let A=y(e),x=l(i),S=[v(x),v(A)];if(null!=b){let e=!0===b?d(r.BYTES):b;S.push(q("extraEntropy",e,r.BYTES))}let k=G(...S);return{seed:k,k2sig:function(e){let t=m(e);if(!c(t))return;let r=ed(t,n),i=s.BASE.multiply(t).toAffine(),o=a(i.x);if(o===tJ)return;let l=a(r*a(A+o*x));if(l===tJ)return;let u=(i.x===o?0:2)|Number(i.y&tZ),d=l;return f&&h(l)&&(d=h(l)?a(-l):l,u^=1),new p(o,d,u)}}}(e,i,o),f=X(t.hash.outputLen,t.nByteLength,t.hmac);return f(u,d)},verify:function(e,r,i,o=A){let l,u;if(r=q("msgHash",r),i=q("publicKey",i),"strict"in o)throw Error("options.strict was renamed to lowS");let{lowS:c,prehash:d}=o;try{if("string"==typeof e||e instanceof Uint8Array)try{u=p.fromDER(e)}catch(t){if(!(t instanceof tK.Err))throw t;u=p.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;u=new p(t,r)}else throw Error("PARSE");l=s.fromHex(i)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;d&&(r=t.hash(r));let{r:h,s:f}=u,g=y(r),m=ed(f,n),b=a(g*m),v=a(h*m),w=s.BASE.multiplyAndAddUnsafe(l,b,v)?.toAffine();if(!w)return!1;let x=a(w.x);return x===h},ProjectivePoint:s,Signature:p,utils:{isValidPrivateKey(e){try{return l(e),!0}catch(e){return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{let e=t.randomBytes(r.BYTES+8),i=function(e,t,r=!1){e=q("privateHash",e);let n=e.length,i=ep(t).nByteLength+8;if(i<24||n<i||n>1024)throw Error(`hashToPrivateScalar: expected ${i}-1024 bytes of input, got ${n}`);let o=r?Q(e):V(e);return eu(o,t-en)+en}(e,n);return $(i,t.nByteLength)},precompute:(e=8,t=s.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}})({...e,hash:t,hmac:(e,...r)=>t1(t,e,v(...r)),randomBytes:x});return Object.freeze({...r(t),create:r})}({a:BigInt(0),b:BigInt(7),Fp:t8,n:t4,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-t5*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=BigInt("0x100000000000000000000000000000000"),o=t6(t*e,t4),a=t6(-r*e,t4),s=eu(e-o*t-a*n,t4),l=eu(-o*r-a*t,t4),u=s>i,c=l>i;
1if(u&&(s=t4-s),c&&(l=t4-l),s>i||l>i)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:s,k2neg:c,k2:l}}}},e9);BigInt(0),t7.ProjectivePoint,eR.utils.randomPrivateKey;let t9=()=>{let e=eR.utils.randomPrivateKey(),t=re(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),{publicKey:t,secretKey:r}},re=eR.getPublicKey;function rt(e){try{return eR.ExtendedPoint.fromHex(e),!0}catch{return!1}}let rr=(e,t)=>eR.sign(e,t.slice(0,32)),rn=eR.verify,ri=e=>s.Buffer.isBuffer(e)?e:e instanceof Uint8Array?s.Buffer.from(e.buffer,e.byteOffset,e.byteLength):s.Buffer.from(e);class ro{constructor(e){Object.assign(this,e)}encode(){return s.Buffer.from((0,te.serialize)(ra,this))}static decode(e){return(0,te.deserialize)(ra,this,e)}static decodeUnchecked(e){return(0,te.deserializeUnchecked)(ra,this,e)}}let ra=new Map,rs=1;n=Symbol.toStringTag;class rl extends ro{constructor(e){if(super({}),this._bn=void 0,void 0!==e._bn)this._bn=e._bn;else{if("string"==typeof e){let t=e1().decode(e);if(32!=t.length)throw Error("Invalid public key input");this._bn=new(eX())(t)}else this._bn=new(eX())(e);if(this._bn.byteLength()>32)throw Error("Invalid public key input")}}static unique(){let e=new rl(rs);return rs+=1,new rl(e.toBuffer())}equals(e){return this._bn.eq(e._bn)}toBase58(){return e1().encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){let e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){let e=this._bn.toArrayLike(s.Buffer);if(32===e.length)return e;let t=s.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[n](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,r){let n=s.Buffer.concat([e.toBuffer(),s.Buffer.from(t),r.toBuffer()]),i=e9(n);return new rl(i)}static createProgramAddressSync(e,t){let r=s.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw TypeError("Max seed length exceeded");r=s.Buffer.concat([r,ri(e)])}),r=s.Buffer.concat([r,t.toBuffer(),s.Buffer.from("ProgramDerivedAddress")]);let n=e9(r);if(rt(n))throw Error("Invalid seeds, address must fall off the curve");return new rl(n)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let r,n=255;for(;0!=n;){try{let i=e.concat(s.Buffer.from([n]));r=this.createProgramAddressSync(i,t)}catch(e){if(e instanceof TypeError)throw e;n--;continue}return[r,n]}throw Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){let t=new rl(e);return rt(t.toBytes())}}rl.default=new rl("11111111111111111111111111111111"),ra.set(rl,{kind:"struct",fields:[["_bn","u256"]]}),new rl("BPFLoader1111111111111111111111111111111111");let ru=64;class rc extends Error{constructor(e){super(`Signature ${e} has expired: block height exceeded.`),this.signature=void 0,this.signature=e}}Object.defineProperty(rc.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});class rd extends Error{constructor(e,t){super(`Transaction was not confirmed in ${t.toFixed(2)} seconds. It is unknown if it succeeded or failed. Check signature ${e} using the Solana Explorer or CLI tools.`),this.signature=void 0,this.signature=e}}Object.defineProperty(rd.prototype,"name",{value:"TransactionExpiredTimeoutError"});class rh extends Error{constructor(e){super(`Signature ${e} has expired: the nonce is no longer valid.`),this.signature=void 0,this.signature=e}}Object.defineProperty(rh.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});class rf{constructor(e,t){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=t}keySegments(){let e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}get(e){for(let t of this.keySegments()){if(e<t.length)return t[e];e-=t.length}}get length(){return this.keySegments().flat().length}compileInstructions(e){if(this.length>256)throw Error("Account index overflow encountered during compilation");let t=new Map;
1this.keySegments().flat().forEach((e,r)=>{t.set(e.toBase58(),r)});let r=e=>{let r=t.get(e.toBase58());if(void 0===r)throw Error("Encountered an unknown instruction account key during compilation");return r};return e.map(e=>({programIdIndex:r(e.programId),accountKeyIndexes:e.keys.map(e=>r(e.pubkey)),data:e.data}))}}let rp=(e="publicKey")=>tt.Ik(32,e),rg=(e="signature")=>tt.Ik(64,e),rm=(e="string")=>{let t=tt.n_([tt.Jq("length"),tt.Jq("lengthPadding"),tt.Ik(tt.cv(tt.Jq(),-8),"chars")],e),r=t.decode.bind(t),n=t.encode.bind(t);return t.decode=(e,t)=>{let n=r(e,t);return n.chars.toString()},t.encode=(e,t,r)=>{let i={chars:s.Buffer.from(e,"utf8")};return n(i,t,r)},t.alloc=e=>tt.Jq().span+tt.Jq().span+s.Buffer.from(e,"utf8").length,t};function ry(e){let t=0,r=0;for(;;){let n=e.shift();if(t|=(127&n)<<7*r,r+=1,(128&n)==0)break}return t}function rb(e,t){let r=t;for(;;){let t=127&r;if(0==(r>>=7)){e.push(t);break}t|=128,e.push(t)}}function rv(e,t){if(!e)throw Error(t||"Assertion failed")}class rw{constructor(e,t){this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=t}static compile(e,t){let r=new Map,n=e=>{let t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},i=n(t);for(let t of(i.isSigner=!0,i.isWritable=!0,e))for(let e of(n(t.programId).isInvoked=!0,t.keys)){let t=n(e.pubkey);t.isSigner||=e.isSigner,t.isWritable||=e.isWritable}return new rw(t,r)}getMessageComponents(){let e=[...this.keyMetaMap.entries()];rv(e.length<=256,"Max static account keys length exceeded");let t=e.filter(([,e])=>e.isSigner&&e.isWritable),r=e.filter(([,e])=>e.isSigner&&!e.isWritable),n=e.filter(([,e])=>!e.isSigner&&e.isWritable),i=e.filter(([,e])=>!e.isSigner&&!e.isWritable),o={numRequiredSignatures:t.length+r.length,numReadonlySignedAccounts:r.length,numReadonlyUnsignedAccounts:i.length};{rv(t.length>0,"Expected at least one writable signer key");let[e]=t[0];rv(e===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}let a=[...t.map(([e])=>new rl(e)),...r.map(([e])=>new rl(e)),...n.map(([e])=>new rl(e)),...i.map(([e])=>new rl(e))];return[o,a]}extractTableLookup(e){let[t,r]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&e.isWritable),[n,i]=this.drainKeysFoundInLookupTable(e.state.addresses,e=>!e.isSigner&&!e.isInvoked&&!e.isWritable);if(0!==t.length||0!==n.length)return[{accountKey:e.key,writableIndexes:t,readonlyIndexes:n},{writable:r,readonly:i}]}drainKeysFoundInLookupTable(e,t){let r=[],n=[];for(let[i,o]of this.keyMetaMap.entries())if(t(o)){let t=new rl(i),o=e.findIndex(e=>e.equals(t));o>=0&&(rv(o<256,"Max lookup table index exceeded"),r.push(o),n.push(t),this.keyMetaMap.delete(i))}return[r,n]}}class rA{constructor(e){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map(e=>new rl(e)),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach(e=>this.indexToProgramIds.set(e.programIdIndex,this.accountKeys[e.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:e1().decode(e.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new rf(this.staticAccountKeys)}static compile(e){let t=rw.compile(e.instructions,e.payerKey),[r,n]=t.getMessageComponents(),i=new rf(n),o=i.compileInstructions(e.instructions).map(e=>({programIdIndex:e.programIdIndex,accounts:e.accountKeyIndexes,data:e1().encode(e.data)}));return new rA({header:r,accountKeys:n,recentBlockhash:e.recentBlockhash,instructions:o})}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let t=this.header.numRequiredSignatures;if(e>=this.header.numRequiredSignatures){let r=this.accountKeys.length-t,n=r-this.header.numReadonlyUnsignedAccounts;return e-t<n}{let r=t-this.header.numReadonlySignedAccounts;return e<r}}isProgramId(e){return this.indexToProgramIds.has(e)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((e,t)=>
1!this.isProgramId(t))}serialize(){let e=this.accountKeys.length,t=[];rb(t,e);let r=this.instructions.map(e=>{let{accounts:t,programIdIndex:r}=e,n=Array.from(e1().decode(e.data)),i=[];rb(i,t.length);let o=[];return rb(o,n.length),{programIdIndex:r,keyIndicesCount:s.Buffer.from(i),keyIndices:t,dataLength:s.Buffer.from(o),data:n}}),n=[];rb(n,r.length);let i=s.Buffer.alloc(1232);s.Buffer.from(n).copy(i);let o=n.length;r.forEach(e=>{let t=tt.n_([tt.u8("programIdIndex"),tt.Ik(e.keyIndicesCount.length,"keyIndicesCount"),tt.A9(tt.u8("keyIndex"),e.keyIndices.length,"keyIndices"),tt.Ik(e.dataLength.length,"dataLength"),tt.A9(tt.u8("userdatum"),e.data.length,"data")]),r=t.encode(e,i,o);o+=r}),i=i.slice(0,o);let a=tt.n_([tt.Ik(1,"numRequiredSignatures"),tt.Ik(1,"numReadonlySignedAccounts"),tt.Ik(1,"numReadonlyUnsignedAccounts"),tt.Ik(t.length,"keyCount"),tt.A9(rp("key"),e,"keys"),rp("recentBlockhash")]),l={numRequiredSignatures:s.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:s.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:s.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:s.Buffer.from(t),keys:this.accountKeys.map(e=>ri(e.toBytes())),recentBlockhash:e1().decode(this.recentBlockhash)},u=s.Buffer.alloc(2048),c=a.encode(l,u);return i.copy(u,c),u.slice(0,c+i.length)}static from(e){let t=[...e],r=t.shift();if(r!==(127&r))throw Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");let n=t.shift(),i=t.shift(),o=ry(t),a=[];for(let e=0;e<o;e++){let e=t.slice(0,32);t=t.slice(32),a.push(new rl(s.Buffer.from(e)))}let l=t.slice(0,32);t=t.slice(32);let u=ry(t),c=[];for(let e=0;e<u;e++){let e=t.shift(),r=ry(t),n=t.slice(0,r);t=t.slice(r);let i=ry(t),o=t.slice(0,i),a=e1().encode(s.Buffer.from(o));t=t.slice(i),c.push({programIdIndex:e,accounts:n,data:a})}let d={header:{numRequiredSignatures:r,numReadonlySignedAccounts:n,numReadonlyUnsignedAccounts:i},recentBlockhash:e1().encode(s.Buffer.from(l)),accountKeys:a,instructions:c};return new rA(d)}}class rx{constructor(e){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=e.header,this.staticAccountKeys=e.staticAccountKeys,this.recentBlockhash=e.recentBlockhash,this.compiledInstructions=e.compiledInstructions,this.addressTableLookups=e.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let e=0;for(let t of this.addressTableLookups)e+=t.readonlyIndexes.length+t.writableIndexes.length;return e}getAccountKeys(e){let t;if(e&&"accountKeysFromLookups"in e&&e.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=e.accountKeysFromLookups.writable.length+e.accountKeysFromLookups.readonly.length)throw Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");t=e.accountKeysFromLookups}else if(e&&"addressLookupTableAccounts"in e&&e.addressLookupTableAccounts)t=this.resolveAddressTableLookups(e.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw Error("Failed to get account keys because address table lookups were not resolved");return new rf(this.staticAccountKeys,t)}isAccountSigner(e){return e<this.header.numRequiredSignatures}isAccountWritable(e){let t=this.header.numRequiredSignatures,r=this.staticAccountKeys.length;if(e>=r){let t=this.addressTableLookups.reduce((e,t)=>e+t.writableIndexes.length,0);return e-r<t}if(e>=this.header.numRequiredSignatures){let n=r-t-this.header.numReadonlyUnsignedAccounts;return e-t<n}{let r=t-this.header.numReadonlySignedAccounts;return e<r}}resolveAddressTableLookups(e){let t={writable:[],readonly:[]};for(let r of this.addressTableLookups){let n=e.find(e=>e.key.equals(r.accountKey));if(!n)throw Error(`Failed to find address lookup table account for table key ${r.accountKey.toBase58()}`);for(let e of r.writableIndexes)if(e<n.state.addresses.length)t.writable.push(n.state.addresses[e]);else throw Error(`Failed to find address for index ${e} in address lookup table ${r.accountKey.toBase58()}`);for(let e of r.readonlyIndexes)if(e<n.state.addresses.length)t.readonly.push(n.state.addresses[e]);else throw Error(`Failed to find address for index ${e} in address lookup table ${r.accountKey.toBase58()}`)}return t}static compile(e){let t=rw.compile(e.instructions,e.payerKey),r=[],n={writable:[],readonly:[]},i=e.addressLookupTableAccounts||[];for(let e of i){let i=t.extractTableLookup(e);if(void 0!==i){let[e,{writable:t,readonly:o}]=i;r.push(e),n.writable.push(...t),n.readonly.push(...o)}}
1let[o,a]=t.getMessageComponents(),s=new rf(a,n),l=s.compileInstructions(e.instructions);return new rx({header:o,staticAccountKeys:a,recentBlockhash:e.recentBlockhash,compiledInstructions:l,addressTableLookups:r})}serialize(){let e=[];rb(e,this.staticAccountKeys.length);let t=this.serializeInstructions(),r=[];rb(r,this.compiledInstructions.length);let n=this.serializeAddressTableLookups(),i=[];rb(i,this.addressTableLookups.length);let o=tt.n_([tt.u8("prefix"),tt.n_([tt.u8("numRequiredSignatures"),tt.u8("numReadonlySignedAccounts"),tt.u8("numReadonlyUnsignedAccounts")],"header"),tt.Ik(e.length,"staticAccountKeysLength"),tt.A9(rp(),this.staticAccountKeys.length,"staticAccountKeys"),rp("recentBlockhash"),tt.Ik(r.length,"instructionsLength"),tt.Ik(t.length,"serializedInstructions"),tt.Ik(i.length,"addressTableLookupsLength"),tt.Ik(n.length,"serializedAddressTableLookups")]),a=new Uint8Array(1232),s=o.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(e),staticAccountKeys:this.staticAccountKeys.map(e=>e.toBytes()),recentBlockhash:e1().decode(this.recentBlockhash),instructionsLength:new Uint8Array(r),serializedInstructions:t,addressTableLookupsLength:new Uint8Array(i),serializedAddressTableLookups:n},a);return a.slice(0,s)}serializeInstructions(){let e=0,t=new Uint8Array(1232);for(let r of this.compiledInstructions){let n=[];rb(n,r.accountKeyIndexes.length);let i=[];rb(i,r.data.length);let o=tt.n_([tt.u8("programIdIndex"),tt.Ik(n.length,"encodedAccountKeyIndexesLength"),tt.A9(tt.u8(),r.accountKeyIndexes.length,"accountKeyIndexes"),tt.Ik(i.length,"encodedDataLength"),tt.Ik(r.data.length,"data")]);e+=o.encode({programIdIndex:r.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(n),accountKeyIndexes:r.accountKeyIndexes,encodedDataLength:new Uint8Array(i),data:r.data},t,e)}return t.slice(0,e)}serializeAddressTableLookups(){let e=0,t=new Uint8Array(1232);for(let r of this.addressTableLookups){let n=[];rb(n,r.writableIndexes.length);let i=[];rb(i,r.readonlyIndexes.length);let o=tt.n_([rp("accountKey"),tt.Ik(n.length,"encodedWritableIndexesLength"),tt.A9(tt.u8(),r.writableIndexes.length,"writableIndexes"),tt.Ik(i.length,"encodedReadonlyIndexesLength"),tt.A9(tt.u8(),r.readonlyIndexes.length,"readonlyIndexes")]);e+=o.encode({accountKey:r.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(n),writableIndexes:r.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(i),readonlyIndexes:r.readonlyIndexes},t,e)}return t.slice(0,e)}static deserialize(e){let t=[...e],r=t.shift(),n=127&r;rv(r!==n,"Expected versioned message but received legacy message"),rv(0===n,`Expected versioned message with version 0 but found version ${n}`);let i={numRequiredSignatures:t.shift(),numReadonlySignedAccounts:t.shift(),numReadonlyUnsignedAccounts:t.shift()},o=[],a=ry(t);for(let e=0;e<a;e++)o.push(new rl(t.splice(0,32)));let s=e1().encode(t.splice(0,32)),l=ry(t),u=[];for(let e=0;e<l;e++){let e=t.shift(),r=ry(t),n=t.splice(0,r),i=ry(t),o=new Uint8Array(t.splice(0,i));u.push({programIdIndex:e,accountKeyIndexes:n,data:o})}let c=ry(t),d=[];for(let e=0;e<c;e++){let e=new rl(t.splice(0,32)),r=ry(t),n=t.splice(0,r),i=ry(t),o=t.splice(0,i);d.push({accountKey:e,writableIndexes:n,readonlyIndexes:o})}return new rx({header:i,staticAccountKeys:o,recentBlockhash:s,compiledInstructions:u,addressTableLookups:d})}}let rS={deserializeMessageVersion(e){let t=e[0],r=127&t;return r===t?"legacy":r},deserialize:e=>{let t=rS.deserializeMessageVersion(e);if("legacy"===t)return rA.from(e);if(0===t)return rx.deserialize(e);throw Error(`Transaction message version ${t} deserialization is not supported`)}},rk=((i={})[i.BLOCKHEIGHT_EXCEEDED=0]="BLOCKHEIGHT_EXCEEDED",i[i.PROCESSED=1]="PROCESSED",i[i.TIMED_OUT=2]="TIMED_OUT",i[i.NONCE_INVALID=3]="NONCE_INVALID",i),rM=s.Buffer.alloc(ru).fill(0);class rE{constructor(e){this.keys=void 0,this.programId=void 0,this.data=s.Buffer.alloc(0),this.programId=e.programId,this.keys=e.keys,e.data&&(this.data=e.data)}toJSON(){return{keys:this.keys.map(({pubkey:e,isSigner:t,isWritable:r})=>({pubkey:e.toJSON(),isSigner:t,isWritable:r})),programId:this.programId.toJSON(),data:[...this.data]}}}class rI{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(e){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,!e)return;if(e.feePayer&&(this.feePayer=e.feePayer),e.signatures&&(this.signatures=e.signatures),Object.prototype.hasOwnProperty.call(e,"nonceInfo")){let{minContextSlot:t,nonceInfo:r}=e;this.minNonceContextSlot=t,this.nonceInfo=r}else if(Object.prototype.hasOwnProperty.call(e,"lastValidBlockHeight")){let{blockhash:t,lastValidBlockHeight:r}=e;this.recentBlockhash=t,this.lastValidBlockHeight=r}else{let{recentBlockhash:t,nonceInfo:r}=e;r&&(this.nonceInfo=r),this.recentBlockhash=t}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstru
vendor: 4,115 bytes, line 1
1ction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(e=>e.toJSON()),signers:this.signatures.map(({publicKey:e})=>e.toJSON())}}add(...e){if(0===e.length)throw Error("No instructions");return e.forEach(e=>{"instructions"in e?this.instructions=this.instructions.concat(e.instructions):"data"in e&&"programId"in e&&"keys"in e?this.instructions.push(e):this.instructions.push(new rE(e))}),this}compileMessage(){let e,t,r;if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;if(this.nonceInfo?(e=this.nonceInfo.nonce,t=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(e=this.recentBlockhash,t=this.instructions),!e)throw Error("Transaction recentBlockhash required");if(t.length<1&&console.warn("No instructions provided"),this.feePayer)r=this.feePayer;else if(this.signatures.length>0&&this.signatures[0].publicKey)r=this.signatures[0].publicKey;else throw Error("Transaction fee payer required");for(let e=0;e<t.length;e++)if(void 0===t[e].programId)throw Error(`Transaction instruction index ${e} has undefined program id`);let n=[],i=[];t.forEach(e=>{e.keys.forEach(e=>{i.push({...e})});let t=e.programId.toString();n.includes(t)||n.push(t)}),n.forEach(e=>{i.push({pubkey:new rl(e),isSigner:!1,isWritable:!1})});let o=[];i.forEach(e=>{let t=e.pubkey.toString(),r=o.findIndex(e=>e.pubkey.toString()===t);r>-1?(o[r].isWritable=o[r].isWritable||e.isWritable,o[r].isSigner=o[r].isSigner||e.isSigner):o.push(e)}),o.sort(function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})});let a=o.findIndex(e=>e.pubkey.equals(r));if(a>-1){let[e]=o.splice(a,1);e.isSigner=!0,e.isWritable=!0,o.unshift(e)}else o.unshift({pubkey:r,isSigner:!0,isWritable:!0});for(let e of this.signatures){let t=o.findIndex(t=>t.pubkey.equals(e.publicKey));if(t>-1)o[t].isSigner||(o[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."));else throw Error(`unknown signer: ${e.publicKey.toString()}`)}let s=0,l=0,u=0,c=[],d=[];o.forEach(({pubkey:e,isSigner:t,isWritable:r})=>{t?(c.push(e.toString()),s+=1,r||(l+=1)):(d.push(e.toString()),r||(u+=1))});let h=c.concat(d),f=t.map(e=>{let{data:t,programId:r}=e;return{programIdIndex:h.indexOf(r.toString()),accounts:e.keys.map(e=>h.indexOf(e.pubkey.toString())),data:e1().encode(t)}});return f.forEach(e=>{rv(e.programIdIndex>=0),e.accounts.forEach(e=>rv(e>=0))}),new rA({header:{numRequiredSignatures:s,numReadonlySignedAccounts:l,numReadonlyUnsignedAccounts:u},accountKeys:h,recentBlockhash:e,instructions:f})}_compile(){let e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);if(this.signatures.length===t.length){let r=this.signatures.every((e,r)=>t[r].equals(e.publicKey));if(r)return e}return this.signatures=t.map(e=>({signature:null,publicKey:e})),e}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(e){return(await e.getFeeForMessage(this.compileMessage())).value}setSigners(...e){if(0===e.length)throw Error("No signers");let t=new Set;this.signatures=e.filter(e=>{let r=e.toString();return!t.has(r)&&(t.add(r),!0)}).map(e=>({signature:null,publicKey:e}))}sign(...e){if(0===e.length)throw Error("No signers");let t=new Set,r=[];for(let n of e){let e=n.publicKey.toString();t.has(e)||(t.add(e),r.push(n))}this.signatures=r.map(e=>({signature:null,publicKey:e.publicKey}));let n=this._compile();this._partialSign(n,...r)}partialSign(...e){if(0===e.length)throw Error("No signers");let t=new Set,r=[];for(let n of e){let e=n.publicKey.toString();t.has(e)||(t.add(e),r.push(n))}let n=this._compile();this._partialSign(n,...r)}_partialSign(e,...t){let r=e.serialize();
1t.forEach(e=>{let t=rr(r,e.secretKey);this._addSignature(e.publicKey,ri(t))})}addSignature(e,t){this._compile(),this._addSignature(e,t)}_addSignature(e,t){rv(64===t.length);let r=this.signatures.findIndex(t=>e.equals(t.publicKey));if(r<0)throw Error(`unknown signer: ${e.toString()}`);this.signatures[r].signature=s.Buffer.from(t)}verifySignatures(e){return this._verifySignatures(this.serializeMessage(),void 0===e||e)}_verifySignatures(e,t){for(let{signature:r,publicKey:n}of this.signatures)if(null===r){if(t)return!1}else if(!rn(r,e,n.toBytes()))return!1;return!0}serialize(e){let{requireAllSignatures:t,verifySignatures:r}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},e),n=this.serializeMessage();if(r&&!this._verifySignatures(n,t))throw Error("Signature verification failed");return this._serialize(n)}_serialize(e){let{signatures:t}=this,r=[];rb(r,t.length);let n=r.length+64*t.length+e.length,i=s.Buffer.alloc(n);return rv(t.length<256),s.Buffer.from(r).copy(i,0),t.forEach(({signature:e},t)=>{null!==e&&(rv(64===e.length,"signature has invalid length"),s.Buffer.from(e).copy(i,r.length+64*t))}),e.copy(i,r.length+64*t.length),rv(i.length<=1232,`Transaction too large: ${i.length} > 1232`),i}get keys(){return rv(1===this.instructions.length),this.instructions[0].keys.map(e=>e.pubkey)}get programId(){return rv(1===this.instructions.length),this.instructions[0].programId}get data(){return rv(1===this.instructions.length),this.instructions[0].data}static from(e){let t=[...e],r=ry(t),n=[];for(let e=0;e<r;e++){let e=t.slice(0,ru);t=t.slice(ru),n.push(e1().encode(s.Buffer.from(e)))}return rI.populate(rA.from(t),n)}static populate(e,t=[]){let r=new rI;return r.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(r.feePayer=e.accountKeys[0]),t.forEach((t,n)=>{let i={signature:t==e1().encode(rM)?null:e1().decode(t),publicKey:e.accountKeys[n]};r.signatures.push(i)}),e.instructions.forEach(t=>{let n=t.accounts.map(t=>{let n=e.accountKeys[t];return{pubkey:n,isSigner:r.signatures.some(e=>e.publicKey.toString()===n.toString())||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}});r.instructions.push(new rE({keys:n,programId:e.accountKeys[t.programIdIndex],data:e1().decode(t.data)}))}),r._message=e,r._json=r.toJSON(),r}}class r_{get version(){return this.message.version}constructor(e,t){if(this.signatures=void 0,this.message=void 0,void 0!==t)rv(t.length===e.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=t;else{let t=[];for(let r=0;r<e.header.numRequiredSignatures;r++)t.push(new Uint8Array(ru));this.signatures=t}this.message=e}serialize(){let e=this.message.serialize(),t=[];rb(t,this.signatures.length);let r=tt.n_([tt.Ik(t.length,"encodedSignaturesLength"),tt.A9(rg(),this.signatures.length,"signatures"),tt.Ik(e.length,"serializedMessage")]),n=new Uint8Array(2048),i=r.encode({encodedSignaturesLength:new Uint8Array(t),signatures:this.signatures,serializedMessage:e},n);return n.slice(0,i)}static deserialize(e){let t=[...e],r=[],n=ry(t);for(let e=0;e<n;e++)r.push(new Uint8Array(t.splice(0,ru)));let i=rS.deserialize(new Uint8Array(t));return new r_(i,r)}sign(e){let t=this.message.serialize(),r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(let n of e){let e=r.findIndex(e=>e.equals(n.publicKey));rv(e>=0,`Cannot sign with non signer key ${n.publicKey.toBase58()}`),this.signatures[e]=rr(t,n.secretKey)}}addSignature(e,t){rv(64===t.byteLength,"Signature must be 64 bytes long");let r=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures),n=r.findIndex(t=>t.equals(e));rv(n>=0,`Can not add signature; \`${e.toBase58()}\` is not required to sign this transaction`),this.signatures[n]=t}}let rC=new rl("SysvarC1ock11111111111111111111111111111111");new rl("SysvarEpochSchedu1e111111111111111111111111"),new rl("Sysvar1nstructions1111111111111111111111111");let rB=new rl("SysvarRecentB1ockHashes11111111111111111111"),rT=new rl("SysvarRent111111111111111111111111111111111");new rl("SysvarRewards111111111111111111111111111111"),new rl("SysvarS1otHashes111111111111111111111111111"),new rl("SysvarS1otHistory11111111111111111111111111");let rD=new rl("SysvarStakeHistory1111111111111111111111111");async function rj(e,t,r,n){let i;let o=n&&{skipPreflight:n.skipPreflight,preflightCommitment:n.preflightCommitment||n.commitment,maxRetries:n.maxRetries,minContextSlot:n.minContextSlot},a=await e.sendTransaction(t,r,o);if(null!=t.recentBlockhash&&null!=t.lastValidBlockHeight)i=(await e.confirmTransaction({abortSignal:n?.abortSignal,signature:a,blockhash:t.recentBlockhash,lastValidBlockHeight:t.lastValidBlockHeight},n&&n.commitment)).value;else if(null!=t.minNonceContextSlot&&null!=t.nonceInfo){let{nonceInstru
1ction:r}=t.nonceInfo,o=r.keys[0].pubkey;i=(await e.confirmTransaction({abortSignal:n?.abortSignal,minContextSlot:t.minNonceContextSlot,nonceAccountPubkey:o,nonceValue:t.nonceInfo.nonce,signature:a},n&&n.commitment)).value}else n?.abortSignal!=null&&console.warn("sendAndConfirmTransaction(): A transaction with a deprecated confirmation strategy was supplied along with an `abortSignal`. Only transactions having `lastValidBlockHeight` or a combination of `nonceInfo` and `minNonceContextSlot` are abortable."),i=(await e.confirmTransaction(a,n&&n.commitment)).value;if(i.err)throw Error(`Transaction ${a} failed (${JSON.stringify(i)})`);return a}function rz(e){return new Promise(t=>setTimeout(t,e))}function rN(e,t){let r=e.layout.span>=0?e.layout.span:function e(t,r){let n=t=>{if(t.span>=0)return t.span;if("function"==typeof t.alloc)return t.alloc(r[t.property]);if("count"in t&&"elementLayout"in t){let e=r[t.property];if(Array.isArray(e))return e.length*n(t.elementLayout)}else if("fields"in t)return e({layout:t},r[t.property]);return 0},i=0;return t.layout.fields.forEach(e=>{i+=n(e)}),i}(e,t),n=s.Buffer.alloc(r),i=Object.assign({instruction:e.index},t);return e.layout.encode(i,n),n}let rO=tt._O("lamportsPerSignature"),rL=tt.n_([tt.Jq("version"),tt.Jq("state"),rp("authorizedPubkey"),rp("nonce"),tt.n_([rO],"feeCalculator")]),rP=rL.span;class rR{constructor(e){this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}static fromAccountData(e){let t=rL.decode(ri(e),0);return new rR({authorizedPubkey:new rl(t.authorizedPubkey),nonce:new rl(t.nonce).toString(),feeCalculator:t.feeCalculator})}}let rF=e=>{let t=e.decode.bind(e),r=e.encode.bind(e);return{decode:t,encode:r}},rU=e=>{let t=(0,tt.Ik)(8,e),{encode:r,decode:n}=rF(t);return t.decode=(e,t)=>{let r=n(e,t);return(0,tr.oU)(s.Buffer.from(r))},t.encode=(e,t,n)=>{let i=(0,tr.k$)(e,8);return r(i,t,n)},t},rW=Object.freeze({Create:{index:0,layout:tt.n_([tt.Jq("instruction"),tt.gM("lamports"),tt.gM("space"),rp("programId")])},Assign:{index:1,layout:tt.n_([tt.Jq("instruction"),rp("programId")])},Transfer:{index:2,layout:tt.n_([tt.Jq("instruction"),rU("lamports")])},CreateWithSeed:{index:3,layout:tt.n_([tt.Jq("instruction"),rp("base"),rm("seed"),tt.gM("lamports"),tt.gM("space"),rp("programId")])},AdvanceNonceAccount:{index:4,layout:tt.n_([tt.Jq("instruction")])},WithdrawNonceAccount:{index:5,layout:tt.n_([tt.Jq("instruction"),tt.gM("lamports")])},InitializeNonceAccount:{index:6,layout:tt.n_([tt.Jq("instruction"),rp("authorized")])},AuthorizeNonceAccount:{index:7,layout:tt.n_([tt.Jq("instruction"),rp("authorized")])},Allocate:{index:8,layout:tt.n_([tt.Jq("instruction"),tt.gM("space")])},AllocateWithSeed:{index:9,layout:tt.n_([tt.Jq("instruction"),rp("base"),rm("seed"),tt.gM("space"),rp("programId")])},AssignWithSeed:{index:10,layout:tt.n_([tt.Jq("instruction"),rp("base"),rm("seed"),rp("programId")])},TransferWithSeed:{index:11,layout:tt.n_([tt.Jq("instruction"),rU("lamports"),rm("seed"),rp("programId")])},UpgradeNonceAccount:{index:12,layout:tt.n_([tt.Jq("instruction")])}});class rH{constructor(){}static createAccount(e){let t=rW.Create,r=rN(t,{lamports:e.lamports,space:e.space,programId:ri(e.programId.toBuffer())});return new rE({keys:[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!0,isWritable:!0}],programId:this.programId,data:r})}static transfer(e){let t,r;if("basePubkey"in e){let n=rW.TransferWithSeed;t=rN(n,{lamports:BigInt(e.lamports),seed:e.seed,programId:ri(e.programId.toBuffer())}),r=[{pubkey:e.fromPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}else{let n=rW.Transfer;t=rN(n,{lamports:BigInt(e.lamports)}),r=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0}]}return new rE({keys:r,programId:this.programId,data:t})}static assign(e){let t,r;if("basePubkey"in e){let n=rW.AssignWithSeed;t=rN(n,{base:ri(e.basePubkey.toBuffer()),seed:e.seed,programId:ri(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=rW.Assign;t=rN(n,{programId:ri(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new rE({keys:r,programId:this.programId,data:t})}static createAccountWithSeed(e){let t=rW.CreateWithSeed,r=rN(t,{base:ri(e.basePubkey.toBuffer()),seed:e.seed,lamports:e.lamports,space:e.space,programId:ri(e.programId.toBuffer())}),n=[{pubkey:e.fromPubkey,isSigner:!0,isWritable:!0},{pubkey:e.newAccountPubkey,isSigner:!1,isWritable:!0}];return e.basePubkey!=e.fromPubkey&&n.push({pubkey:e.basePubkey,isSigner:!0,isWritable:!1}),new rE({keys:n,programId:this.programId,data:r})}static createNonceAccount(e){let t=new rI;"basePubkey"in e&&"seed"in e?t.add(rH.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:rP,programId:this.programId})):t.add(rH.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.noncePubkey,lamports:e.lamports,space:rP,programId:this.programId}));let r={noncePubkey:e.noncePubkey,authorizedPubkey:e.authorizedPubkey};return t.add(this.nonceInitialize(r)),t}static nonceInitialize(e){let t=rW.InitializeNonceAccount,r=rN(t,{authorized:ri(e.authorizedPubkey.toBuffer())}),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:rB,isSigner:!1,isWritable:!1},{pubkey:rT,isSigner:!1,isWritable:!1}],programId:this.programId,data:r};return new rE(n)}static nonceAdvance(e){let t=rW.AdvanceNonceAccount,r=rN(t),n={keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:rB,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r};return new rE(n)}static nonceWithdraw(e){let t=rW.WithdrawNonceAccount,r=rN(t,{lamports:e.lamports});return new rE({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.toPubkey,isSigner:!1,isWritable:!0},{pubkey:rB,isSigner:!1,isWritable:!1},{pubkey:rT,isSigner:!1,isWritable:!1},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static nonceAuthorize(e){let t=rW.AuthorizeNonceAccount,r=rN(t,{authorized:ri(e.newAuthorizedPubkey.toBuffer())});return new rE({keys:[{pubkey:e.noncePubkey,isSigner:!1,isWritable:!0},{pubkey:e.authorizedPubkey,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}static allocate(e){let t,r;if("basePubkey"in e){let n=rW.AllocateWithSeed;t=rN(n,{base:ri(e.basePubkey.toBuffer()),seed:e.seed,space:e.space,programId:ri(e.programId.toBuffer())}),r=[{pubkey:e.accountPubkey,isSigner:!1,isWritable:!0},{pubkey:e.basePubkey,isSigner:!0,isWritable:!1}]}else{let n=rW.Allocate;t=rN(n,{space:e.space}),r=[{pubkey:e.accountPubkey,isSigner:!0,isWritable:!0}]}return new rE({keys:r,programId:this.programId,data:t})}}rH.programId=new rl("11111111111111111111111111111111");class rV{constructor(){}static getMinNumSignatures(e){return 2*(Math.ceil(e/rV.chunkSize)+1+1)}static async load(e,t,r,n,i){{let o=await e.getMinimumBalanceForRentExemption(i.length),a=await e.getAccountInfo(r.publicKey,"confirmed"),s=null;if(null!==a){if(a.executable)return console.error("Program load failed, account is already executable"),!1;a.data.length!==i.length&&(s=s||new rI).add(rH.allocate({accountPubkey:r.publicKey,space:i.length})),a.owner.equals(n)||(s=s||new rI).add(rH.assign({accountPubkey:r.publicKey,programId:n})),a.lamports<o&&(s=s||new rI).add(rH.transfer({fromPubkey:t.publicKey,toPubkey:r.publicKey,lamports:o-a.lamports}))}else s=new rI().add(rH.createAccount({fromPubkey:t.publicKey,newAccountPubkey:r.publicKey,lamports:o>0?o:1,space:i.length,programId:n}));null!==s&&await rj(e,s,[t,r],{commitment:"confirmed"})}let o=tt.n_([tt.Jq("instruction"),tt.Jq("offset"),tt.Jq("bytesLength"),tt.Jq("bytesLengthPadding"),tt.A9(tt.u8("byte"),tt.cv(tt.Jq(),-8),"bytes")]),a=rV.chunkSize,l=0,u=i,c=[];for(;u.length>0;){let i=u.slice(0,a),d=s.Buffer.alloc(a+16);o.encode({instruction:0,offset:l,bytes:i,bytesLength:0,bytesLengthPadding:0},d);let h=new rI().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0}],programId:n,data:d});c.push(rj(e,h,[t,r],{commitment:"confirmed"})),e._rpcEndpoint.includes("solana.com")&&await rz(250),l+=a,u=u.slice(a)}await Promise.all(c);{let i=tt.n_([tt.Jq("instruction")]),o=s.Buffer.alloc(i.span);i.encode({instruction:1},o);let a=new rI().add({keys:[{pubkey:r.publicKey,isSigner:!0,isWritable:!0},{pubkey:rT,isSigner:!1,isWritable:!1}],programId:n,data:o}),l="processed",u=await e.sendTransaction(a,[t,r],{preflightCommitment:l}),{context:c,value:d}=await e.confirmTransaction({signature:u,lastValidBlockHeight:a.lastV
1alidBlockHeight,blockhash:a.recentBlockhash},l);if(d.err)throw Error(`Transaction ${u} failed (${JSON.stringify(d)})`);for(;;){try{let t=await e.getSlot({commitment:l});if(t>c.slot)break}catch{}await new Promise(e=>setTimeout(e,Math.round(200)))}}return!0}}rV.chunkSize=932,new rl("BPFLoader2111111111111111111111111111111111");var rQ=Object.prototype.toString,r$=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},rY=(o=function(e){var t=function e(t,r){var n,i,o,a,s,l,u;if(!0===t)return"true";if(!1===t)return"false";switch(typeof t){case"object":if(null===t)return null;if(t.toJSON&&"function"==typeof t.toJSON)return e(t.toJSON(),r);if("[object Array]"===(u=rQ.call(t))){for(n=0,o="[",i=t.length-1;n<i;n++)o+=e(t[n],!0)+",";return i>-1&&(o+=e(t[n],!0)),o+"]"}if("[object Object]"!==u)return JSON.stringify(t);for(i=(a=r$(t).sort()).length,o="",n=0;n<i;)void 0!==(l=e(t[s=a[n]],!1))&&(o&&(o+=","),o+=JSON.stringify(s)+":"+l),n++;return"{"+o+"}";case"function":case"undefined":return r?null:void 0;case"string":return JSON.stringify(t);default:return isFinite(t)?t:null}}(e,!1);if(void 0!==t)return""+t}).__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;function rq(e){let t=0;for(;e>1;)e/=2,t++;return t}class rG{constructor(e,t,r,n,i){this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=t,this.warmup=r,this.firstNormalEpoch=n,this.firstNormalSlot=i}getEpoch(e){return this.getEpochAndSlotIndex(e)[0]}getEpochAndSlotIndex(e){if(e<this.firstNormalSlot){var t;let r=rq(0===(t=e+32+1)?1:(t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,(t|=t>>32)+1))-rq(32)-1,n=this.getSlotsInEpoch(r),i=e-(n-32);return[r,i]}{let t=e-this.firstNormalSlot,r=Math.floor(t/this.slotsPerEpoch),n=this.firstNormalEpoch+r,i=t%this.slotsPerEpoch;return[n,i]}}getFirstSlotInEpoch(e){return e<=this.firstNormalEpoch?(Math.pow(2,e)-1)*32:(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}getLastSlotInEpoch(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}getSlotsInEpoch(e){return e<this.firstNormalEpoch?Math.pow(2,e+rq(32)):this.slotsPerEpoch}}class rK extends Error{constructor(e,t){super(e),this.logs=void 0,this.logs=t}}class rJ extends Error{constructor({code:e,message:t,data:r},n){super(null!=n?`${n}: ${t}`:t),this.code=void 0,this.data=void 0,this.code=e,this.data=r,this.name="SolanaJSONRPCError"}}var rZ=globalThis.fetch;class rX extends tC.Z{constructor(e,t,r){super(e=>{let r=(0,tB.Z)(e,{autoconnect:!0,max_reconnects:5,reconnect:!0,reconnect_interval:1e3,...t});return"socket"in r?this.underlyingSocket=r.socket:this.underlyingSocket=r,r},e,t,r),this.underlyingSocket=void 0}call(...e){let t=this.underlyingSocket?.readyState;return 1===t?super.call(...e):Promise.reject(Error("Tried to call a JSON-RPC method `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}notify(...e){let t=this.underlyingSocket?.readyState;return 1===t?super.notify(...e):Promise.reject(Error("Tried to send a JSON-RPC notification `"+e[0]+"` but the socket was not `CONNECTING` or `OPEN` (`readyState` was "+t+")"))}}class r0{constructor(e){this.key=void 0,this.state=void 0,this.key=e.key,this.state=e.state}isActive(){let e=BigInt("0xffffffffffffffff");return this.state.deactivationSlot===e}static deserialize(e){let t=function(e,t){let r;try{r=e.layout.decode(t)}catch(e){throw Error("invalid instruction; "+e)}if(r.typeIndex!==e.index)throw Error(`invalid account data; account type mismatch ${r.typeIndex} != ${e.index}`);return r}(r1,e),r=e.length-56;rv(r>=0,"lookup table is invalid"),rv(r%32==0,"lookup table is invalid");let n=r/32,{addresses:i}=tt.n_([tt.A9(rp(),n,"addresses")]).decode(e.slice(56));return{deactivationSlot:t.deactivationSlot,lastExtendedSlot:t.lastExtendedSlot,lastExtendedSlotStartIndex:t.lastExtendedStartIndex,authority:0!==t.authority.length?new rl(t.authority[0]):void 0,addresses:i.map(e=>new rl(e))}}}let r1={index:1,layout:tt.n_([tt.Jq("typeIndex"),rU("deactivationSlot"),tt._O("lastExtendedSlot"),tt.u8("lastExtendedStartIndex"),tt.u8(),tt.A9(rp(),tt.cv(tt.u8(),-1),"authority")])},r2=/^[^:]+:\/\/([^:[]+|\[[^\]]+\])(:\d+)?(.*)/i,r4=tE(tg(rl),tA(),e=>new rl(e)),r5=tx([tA(),tm("base64")]),r3=tE(tg(s.Buffer),r5,e=>s.Buffer.from(e[0],"base64"));function r6(e){let t,r;if("string"==typeof e)t=e;
vendor: 8,536 bytes, line 1
1else if(e){let{commitment:n,...i}=e;t=n,r=i}return{commitment:t,config:r}}function r8(e){return tk([tS({jsonrpc:tm("2.0"),id:tA(),result:e}),tS({jsonrpc:tm("2.0"),id:tA(),error:tS({code:tM(),message:tA(),data:tv(th("any",()=>!0))})})])}let r7=r8(tM());function r9(e){return tE(r8(e),r7,t=>"error"in t?t:{...t,result:tu(t.result,e)})}function ne(e){return r9(tS({context:tS({slot:tb()}),value:e}))}function nt(e){return tS({context:tS({slot:tb()}),value:e})}function nr(e,t){return 0===e?new rx({header:t.header,staticAccountKeys:t.accountKeys.map(e=>new rl(e)),recentBlockhash:t.recentBlockhash,compiledInstructions:t.instructions.map(e=>({programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:e1().decode(e.data)})),addressTableLookups:t.addressTableLookups}):new rA(t)}let nn=tS({foundation:tb(),foundationTerm:tb(),initial:tb(),taper:tb(),terminal:tb()}),ni=r9(tf(ty(tS({epoch:tb(),effectiveSlot:tb(),amount:tb(),postBalance:tb(),commission:tv(ty(tb()))})))),no=tf(tS({slot:tb(),prioritizationFee:tb()})),na=tS({total:tb(),validator:tb(),foundation:tb(),epoch:tb()}),ns=tS({epoch:tb(),slotIndex:tb(),slotsInEpoch:tb(),absoluteSlot:tb(),blockHeight:tv(tb()),transactionCount:tv(tb())}),nl=tS({slotsPerEpoch:tb(),leaderScheduleSlotOffset:tb(),warmup:tp(),firstNormalEpoch:tb(),firstNormalSlot:tb()}),nu=tw(tA(),tf(tb())),nc=ty(tk([tS({}),tA()])),nd=tS({err:nc}),nh=tm("receivedSignature"),nf=tS({"solana-core":tA(),"feature-set":tv(tb())}),np=ne(tS({err:ty(tk([tS({}),tA()])),logs:ty(tf(tA())),accounts:tv(ty(tf(ty(tS({executable:tp(),owner:tA(),lamports:tb(),data:tf(tA()),rentEpoch:tv(tb())}))))),unitsConsumed:tv(tb()),returnData:tv(ty(tS({programId:tA(),data:tx([tA(),tm("base64")])})))})),ng=ne(tS({byIdentity:tw(tA(),tf(tb())),range:tS({firstSlot:tb(),lastSlot:tb()})})),nm=r9(nn),ny=r9(na),nb=r9(no),nv=r9(ns),nw=r9(nl),nA=r9(nu),nx=r9(tb()),nS=ne(tS({total:tb(),circulating:tb(),nonCirculating:tb(),nonCirculatingAccounts:tf(r4)})),nk=tS({amount:tA(),uiAmount:ty(tb()),decimals:tb(),uiAmountString:tv(tA())}),nM=ne(tf(tS({address:r4,amount:tA(),uiAmount:ty(tb()),decimals:tb(),uiAmountString:tv(tA())}))),nE=ne(tf(tS({pubkey:r4,account:tS({executable:tp(),owner:r4,lamports:tb(),data:r3,rentEpoch:tb()})}))),nI=tS({program:tA(),parsed:tM(),space:tb()}),n_=ne(tf(tS({pubkey:r4,account:tS({executable:tp(),owner:r4,lamports:tb(),data:nI,rentEpoch:tb()})}))),nC=ne(tf(tS({lamports:tb(),address:r4}))),nB=tS({executable:tp(),owner:r4,lamports:tb(),data:r3,rentEpoch:tb()}),nT=tS({pubkey:r4,account:nB}),nD=tE(tk([tg(s.Buffer),nI]),tk([r5,nI]),e=>Array.isArray(e)?tu(e,r3):e),nj=tS({executable:tp(),owner:r4,lamports:tb(),data:nD,rentEpoch:tb()}),nz=tS({pubkey:r4,account:nj}),nN=tS({state:tk([tm("active"),tm("inactive"),tm("activating"),tm("deactivating")]),active:tb(),inactive:tb()}),nO=r9(tf(tS({signature:tA(),slot:tb(),err:nc,memo:ty(tA()),blockTime:tv(ty(tb()))}))),nL=r9(tf(tS({signature:tA(),slot:tb(),err:nc,memo:ty(tA()),blockTime:tv(ty(tb()))}))),nP=tS({subscription:tb(),result:nt(nB)}),nR=tS({pubkey:r4,account:nB}),nF=tS({subscription:tb(),result:nt(nR)}),nU=tS({parent:tb(),slot:tb(),root:tb()}),nW=tS({subscription:tb(),result:nU}),nH=tk([tS({type:tk([tm("firstShredReceived"),tm("completed"),tm("optimisticConfirmation"),tm("root")]),slot:tb(),timestamp:tb()}),tS({type:tm("createdBank"),parent:tb(),slot:tb(),timestamp:tb()}),tS({type:tm("frozen"),slot:tb(),timestamp:tb(),stats:tS({numTransactionEntries:tb(),numSuccessfulTransactions:tb(),numFailedTransactions:tb(),maxTransactionsPerEntry:tb()})}),tS({type:tm("dead"),slot:tb(),timestamp:tb(),err:tA()})]),nV=tS({subscription:tb(),result:nH}),nQ=tS({subscription:tb(),result:nt(tk([nd,nh]))}),n$=tS({subscription:tb(),result:tb()}),nY=tS({pubkey:tA(),gossip:ty(tA()),tpu:ty(tA()),rpc:ty(tA()),version:ty(tA())}),nq=tS({votePubkey:tA(),nodePubkey:tA(),activatedStake:tb(),epochVoteAccount:tp(),epochCredits:tf(tx([tb(),tb(),tb()])),commission:tb(),lastVote:tb(),rootSlot:ty(tb())}),nG=r9(tS({current:tf(nq),delinquent:tf(nq)})),nK=tk([tm("processed"),tm("confirmed"),tm("finalized")]),nJ=tS({slot:tb(),confirmations:ty(tb()),err:nc,confirmationStatus:tv(nK)}),nZ=ne(tf(ty(nJ))),nX=r9(tb()),n0=tS({accountKey:r4,writableIndexes:tf(tb()),readonlyIndexes:tf(tb())}),n1=tS({signatures:tf(tA()),message:tS({accountKeys:tf(tA()),header:tS({numRequiredSignatures:tb(),numReadonlySignedAccounts:tb(),numReadonlyUnsignedAccounts:tb()}),instructions:tf(tS({accounts:tf(tb()),data:tA(),programIdIndex:tb()})),recentBlockhash:tA(),addressTableLookups:tv(tf(n0))})}),n2=tS({pubkey:r4,signer:tp(),writable:tp(),source:tv(tk([tm("transaction"),tm("lookupTable")]))}),n4=tS({accountKeys:tf(n2),signatures:tf(tA())}),n5=tS({parsed:tM(),program:tA(),programId:r4}),n3=tS({accounts:tf(r4),data:tA(),programId:r4}),n6=tk([n3,n5]),n8=tk([tS({parsed:tM(),program:tA(),programId:tA()}),tS({accounts:tf(tA()),data:tA(),programId:tA()})]),n7=tE(n6,n8,e=>"accounts"in e?tu(e,n3):tu(e,n5)),n9=tS({signatures:tf(tA()),message:tS({accountKeys:tf(n2),instructions:tf(n7),recentBlockhash:tA(),addressTableLookups:tv(ty(tf(n0)))})}),ie=tS({accountIndex:tb(),mint:tA(),owner:tv(tA()),uiTokenAmount:nk}),it=tS({writable:tf(r4),readonly:tf(r4)}),ir=tS({err:nc,fee:tb(),innerInstructions:tv(ty(tf(tS({index:tb(),instructions:tf(tS({accounts:tf(tb()),data:tA(),programIdIndex:tb()}))})))),preBalances:tf(tb()),postBalances:tf(tb()),logMessages:tv(ty(tf(tA()))),preTokenBalances:tv(ty(tf(ie))),postTokenBalances:tv(ty(tf(ie))),loadedAddresses:tv(it),computeUnitsConsumed:tv(tb())}),ii=tS({err:nc,fee:tb(),innerInstructions:tv(ty(tf(tS({index:tb(),instructions:tf(n7)})))),preBalances:tf(tb()),postBalances:tf(tb()),logMessages:tv(ty(tf(tA()))),preTokenBalances:tv(ty(tf(ie))),postTokenBalances:tv(ty(tf(ie))),loadedAddresses:tv(it),computeUnitsConsumed:tv(tb())}),io=tk([tm(0),tm("legacy")]),ia=tS({pubkey:tA(),lamports:tb(),postBalance:ty(tb()),rewardType:ty(tA()),commission:tv(ty(tb()))}),is=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),transactions:tf(tS({transaction:n1,meta:ty(ir),version:tv(io)})),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),il=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),iu=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),transactions:tf(tS({transaction:n4,meta:ty(ir),version:tv(io)})),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),ic=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),transactions:tf(tS({transaction:n9,meta:ty(ii),version:tv(io)})),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),id=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),transactions:tf(tS({transaction:n4,meta:ty(ii),version:tv(io)})),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),ih=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),rewards:tv(tf(ia)),blockTime:ty(tb()),blockHeight:ty(tb())}))),ip=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),transactions:tf(tS({transaction:n1,meta:ty(ir)})),rewards:tv(tf(ia)),blockTime:ty(tb())}))),ig=r9(ty(tS({blockhash:tA(),previousBlockhash:tA(),parentSlot:tb(),signatures:tf(tA()),blockTime:ty(tb())}))),im=r9(ty(tS({slot:tb(),meta:ir,blockTime:tv(ty(tb())),transaction:n1,version:tv(io)}))),iy=r9(ty(tS({slot:tb(),transaction:n9,meta:ty(ii),blockTime:tv(ty(tb())),version:tv(io)}))),ib=ne(tS({blockhash:tA(),feeCalculator:tS({lamportsPerSignature:tb()})})),iv=ne(tS({blockhash:tA(),lastValidBlockHeight:tb()})),iw=ne(tp()),iA=tS({slot:tb(),numTransactions:tb(),numSlots:tb(),samplePeriodSecs:tb()}),ix=r9(tf(iA)),iS=ne(ty(tS({feeCalculator:tS({lamportsPerSignature:tb()})}))),ik=r9(tA()),iM=r9(tA()),iE=tS({err:nc,logs:tf(tA()),signature:tA()}),iI=tS({result:nt(iE),subscription:tb()}),i_={"solana-client":"js/0.0.0-development"};class iC{constructor(e,t){var r,n;let i,o,a,s,l,u;this._commitment=void 0,this._confirmTransactionInitialTimeout=void 0,this._rpcEndpoint=void 0,this._rpcWsEndpoint=void 0,this._rpcClient=void 0,this._rpcRequest=void 0,this._rpcBatchRequest=void 0,this._rpcWebSocket=void 0,this._rpcWebSocketConnected=!1,this._rpcWebSocketHeartbeat=null,this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketGeneration=0,this._disableBlockhashCaching=!1,this._pollingBlockhash=!1,this._blockhashInfo={latestBlockhash:null,lastFetch:0,transactionSignatures:[],simulatedSignatures:[]},this._nextClientSubscriptionId=0,this._subscriptionDisposeFunctionsByClientSubscriptionId={}
1,this._subscriptionHashByClientSubscriptionId={},this._subscriptionStateChangeCallbacksByHash={},this._subscriptionCallbacksByServerSubscriptionId={},this._subscriptionsByHash={},this._subscriptionsAutoDisposedByRpc=new Set,this.getBlockHeight=(()=>{let e={};return async t=>{let{commitment:r,config:n}=r6(t),i=this._buildArgs([],r,void 0,n),o=rY(i);return e[o]=e[o]??(async()=>{try{let e=await this._rpcRequest("getBlockHeight",i),t=tu(e,r9(tb()));if("error"in t)throw new rJ(t.error,"failed to get block height information");return t.result}finally{delete e[o]}})(),await e[o]}})(),t&&"string"==typeof t?this._commitment=t:t&&(this._commitment=t.commitment,this._confirmTransactionInitialTimeout=t.confirmTransactionInitialTimeout,i=t.wsEndpoint,o=t.httpHeaders,a=t.fetch,s=t.fetchMiddleware,l=t.disableRetryOnRateLimit,u=t.httpAgent),this._rpcEndpoint=function(e){if(!1===/^https?:/.test(e))throw TypeError("Endpoint URL must start with `http:` or `https:`.");return e}(e),this._rpcWsEndpoint=i||function(e){let t=e.match(r2);if(null==t)throw TypeError(`Failed to validate endpoint URL \`${e}\``);let[r,n,i,o]=t,a=e.startsWith("https:")?"wss:":"ws:",s=null==i?null:parseInt(i.slice(1),10),l=null==s?"":`:${s+1}`;return`${a}//${n}${l}${o}`}(e),this._rpcClient=function(e,t,r,n,i,o){let a,s;let l=r||rZ;null!=o&&console.warn("You have supplied an `httpAgent` when creating a `Connection` in a browser environment.It has been ignored; `httpAgent` is only used in Node environments."),n&&(s=async(e,t)=>{let r=await new Promise((r,i)=>{try{n(e,t,(e,t)=>r([e,t]))}catch(e){i(e)}});return await l(...r)});let u=new(t_())(async(r,n)=>{let o={method:"POST",body:r,agent:a,headers:Object.assign({"Content-Type":"application/json"},t||{},i_)};try{let t,r=5,a=500;for(;t=s?await s(e,o):await l(e,o),429===t.status&&!0!==i&&(r-=1,0!==r);)console.log(`Server responded with ${t.status} ${t.statusText}.  Retrying after ${a}ms delay...`),await rz(a),a*=2;let u=await t.text();t.ok?n(null,u):n(Error(`${t.status} ${t.statusText}: ${u}`))}catch(e){e instanceof Error&&n(e)}},{});return u}(e,o,a,s,l,u),this._rpcRequest=(r=this._rpcClient,(e,t)=>new Promise((n,i)=>{r.request(e,t,(e,t)=>{if(e){i(e);return}n(t)})})),this._rpcBatchRequest=(n=this._rpcClient,e=>new Promise((t,r)=>{0===e.length&&t([]);let i=e.map(e=>n.request(e.methodName,e.args));n.request(i,(e,n)=>{if(e){r(e);return}t(n)})})),this._rpcWebSocket=new rX(this._rpcWsEndpoint,{autoconnect:!1,max_reconnects:1/0}),this._rpcWebSocket.on("open",this._wsOnOpen.bind(this)),this._rpcWebSocket.on("error",this._wsOnError.bind(this)),this._rpcWebSocket.on("close",this._wsOnClose.bind(this)),this._rpcWebSocket.on("accountNotification",this._wsOnAccountNotification.bind(this)),this._rpcWebSocket.on("programNotification",this._wsOnProgramAccountNotification.bind(this)),this._rpcWebSocket.on("slotNotification",this._wsOnSlotNotification.bind(this)),this._rpcWebSocket.on("slotsUpdatesNotification",this._wsOnSlotUpdatesNotification.bind(this)),this._rpcWebSocket.on("signatureNotification",this._wsOnSignatureNotification.bind(this)),this._rpcWebSocket.on("rootNotification",this._wsOnRootNotification.bind(this)),this._rpcWebSocket.on("logsNotification",this._wsOnLogsNotification.bind(this))}get commitment(){return this._commitment}get rpcEndpoint(){return this._rpcEndpoint}async getBalanceAndContext(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgs([e.toBase58()],r,void 0,n),o=await this._rpcRequest("getBalance",i),a=tu(o,ne(tb()));if("error"in a)throw new rJ(a.error,`failed to get balance for ${e.toBase58()}`);return a.result}async getBalance(e,t){return await this.getBalanceAndContext(e,t).then(e=>e.value).catch(t=>{throw Error("failed to get balance of account "+e.toBase58()+": "+t)})}async getBlockTime(e){let t=await this._rpcRequest("getBlockTime",[e]),r=tu(t,r9(ty(tb())));if("error"in r)throw new rJ(r.error,`failed to get block time for slot ${e}`);return r.result}async getMinimumLedgerSlot(){let e=await this._rpcRequest("minimumLedgerSlot",[]),t=tu(e,r9(tb()));if("error"in t)throw new rJ(t.error,"failed to get minimum ledger slot");return t.result}async getFirstAvailableBlock(){let e=await this._rpcRequest("getFirstAvailableBlock",[]),t=tu(e,nx);if("error"in t)throw new rJ(t.error,"failed to get first available block");return t.result}async getSupply(e){let t={};t="string"==typeof e?{commitment:e}:e?{...e,commitment:e&&e.commitment||this.commitment}:{commitment:this.commitment};let r=await this._rpcRequest("getSupply",[t]),n=tu(r,nS);if("error"in n)throw new rJ(n.error,"failed to get supply");return n.result}async getTokenSupply(e,t){let r=this._buildArgs([e.toBase58()],t),n=await this._rpcRequest("getTokenSupply",r),i=tu(n,ne(nk));if("error"in i)throw new rJ(i.error,"failed to get token supply");return i.result}async getTokenAccountBalance(e,t){let r=this._buildArgs([e.toBase58()],t),n=await this._rpcRequest("getTokenAccountBalance",r),i=tu(n,ne(nk));if("error"in i)throw new rJ(i.error,"failed to get token account balance");return i.result}
1async getTokenAccountsByOwner(e,t,r){let{commitment:n,config:i}=r6(r),o=[e.toBase58()];"mint"in t?o.push({mint:t.mint.toBase58()}):o.push({programId:t.programId.toBase58()});let a=this._buildArgs(o,n,"base64",i),s=await this._rpcRequest("getTokenAccountsByOwner",a),l=tu(s,nE);if("error"in l)throw new rJ(l.error,`failed to get token accounts owned by account ${e.toBase58()}`);return l.result}async getParsedTokenAccountsByOwner(e,t,r){let n=[e.toBase58()];"mint"in t?n.push({mint:t.mint.toBase58()}):n.push({programId:t.programId.toBase58()});let i=this._buildArgs(n,r,"jsonParsed"),o=await this._rpcRequest("getTokenAccountsByOwner",i),a=tu(o,n_);if("error"in a)throw new rJ(a.error,`failed to get token accounts owned by account ${e.toBase58()}`);return a.result}async getLargestAccounts(e){let t={...e,commitment:e&&e.commitment||this.commitment},r=t.filter||t.commitment?[t]:[],n=await this._rpcRequest("getLargestAccounts",r),i=tu(n,nC);if("error"in i)throw new rJ(i.error,"failed to get largest accounts");return i.result}async getTokenLargestAccounts(e,t){let r=this._buildArgs([e.toBase58()],t),n=await this._rpcRequest("getTokenLargestAccounts",r),i=tu(n,nM);if("error"in i)throw new rJ(i.error,"failed to get token largest accounts");return i.result}async getAccountInfoAndContext(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgs([e.toBase58()],r,"base64",n),o=await this._rpcRequest("getAccountInfo",i),a=tu(o,ne(ty(nB)));if("error"in a)throw new rJ(a.error,`failed to get info about account ${e.toBase58()}`);return a.result}async getParsedAccountInfo(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgs([e.toBase58()],r,"jsonParsed",n),o=await this._rpcRequest("getAccountInfo",i),a=tu(o,ne(ty(nj)));if("error"in a)throw new rJ(a.error,`failed to get info about account ${e.toBase58()}`);return a.result}async getAccountInfo(e,t){try{let r=await this.getAccountInfoAndContext(e,t);return r.value}catch(t){throw Error("failed to get info about account "+e.toBase58()+": "+t)}}async getMultipleParsedAccounts(e,t){let{commitment:r,config:n}=r6(t),i=e.map(e=>e.toBase58()),o=this._buildArgs([i],r,"jsonParsed",n),a=await this._rpcRequest("getMultipleAccounts",o),s=tu(a,ne(tf(ty(nj))));if("error"in s)throw new rJ(s.error,`failed to get info for accounts ${i}`);return s.result}async getMultipleAccountsInfoAndContext(e,t){let{commitment:r,config:n}=r6(t),i=e.map(e=>e.toBase58()),o=this._buildArgs([i],r,"base64",n),a=await this._rpcRequest("getMultipleAccounts",o),s=tu(a,ne(tf(ty(nB))));if("error"in s)throw new rJ(s.error,`failed to get info for accounts ${i}`);return s.result}async getMultipleAccountsInfo(e,t){let r=await this.getMultipleAccountsInfoAndContext(e,t);return r.value}async getStakeActivation(e,t,r){let{commitment:n,config:i}=r6(t),o=this._buildArgs([e.toBase58()],n,void 0,{...i,epoch:null!=r?r:i?.epoch}),a=await this._rpcRequest("getStakeActivation",o),s=tu(a,r9(nN));if("error"in s)throw new rJ(s.error,`failed to get Stake Activation ${e.toBase58()}`);return s.result}async getProgramAccounts(e,t){let{commitment:r,config:n}=r6(t),{encoding:i,...o}=n||{},a=this._buildArgs([e.toBase58()],r,i||"base64",o),s=await this._rpcRequest("getProgramAccounts",a),l=tf(nT),u=!0===o.withContext?tu(s,ne(l)):tu(s,r9(l));if("error"in u)throw new rJ(u.error,`failed to get accounts owned by program ${e.toBase58()}`);return u.result}async getParsedProgramAccounts(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgs([e.toBase58()],r,"jsonParsed",n),o=await this._rpcRequest("getProgramAccounts",i),a=tu(o,r9(tf(nz)));if("error"in a)throw new rJ(a.error,`failed to get accounts owned by program ${e.toBase58()}`);return a.result}async confirmTransaction(e,t){let r,n;if("string"==typeof e)r=e;else{if(e.abortSignal?.aborted)return Promise.reject(e.abortSignal.reason);r=e.signature}try{n=e1().decode(r)}catch(e){throw Error("signature must be base58 encoded: "+r)}return(rv(64===n.length,"signature has invalid length"),"string"==typeof e)?await this.confirmTransactionUsingLegacyTimeoutStrategy({commitment:t||this.commitment,signature:r}):"lastValidBlockHeight"in e?await this.confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:t||this.commitment,strategy:e}):await this.confirmTransactionUsingDurableNonceStrategy({commitment:t||this.commitment,strategy:e})}getCancellationPromise(e){return new Promise((t,r)=>{null!=e&&(e.aborted?r(e.reason):e.addEventListener("abort",()=>{r(e.reason)}))})}getTransactionConfirmationPromise({commitment:e,signature:t}){let r,n;let i=!1,o=new Promise((o,a)=>{try{r=this.onSignature(t,(e,t)=>{r=void 0,o({__type:rk.PROCESSED,response:{context:t,value:e}})},e);let s=new Promise(e=>{null==r?e():n=this._onSubscriptionStateChange(r,t=>{"subscribed"===t&&e()})});(async()=>
1{if(await s,i)return;let r=await this.getSignatureStatus(t);if(i||null==r)return;let{context:n,value:l}=r;if(null!=l){if(l?.err)a(l.err);else{switch(e){case"confirmed":case"single":case"singleGossip":if("processed"===l.confirmationStatus)return;break;case"finalized":case"max":case"root":if("processed"===l.confirmationStatus||"confirmed"===l.confirmationStatus)return}i=!0,o({__type:rk.PROCESSED,response:{context:n,value:l}})}}})()}catch(e){a(e)}});return{abortConfirmation:()=>{n&&(n(),n=void 0),null!=r&&(this.removeSignatureListener(r),r=void 0)},confirmationPromise:o}}async confirmTransactionUsingBlockHeightExceedanceStrategy({commitment:e,strategy:{abortSignal:t,lastValidBlockHeight:r,signature:n}}){let i,o=!1,a=new Promise(t=>{let n=async()=>{try{let t=await this.getBlockHeight(e);return t}catch(e){return -1}};(async()=>{let e=await n();if(!o){for(;e<=r;)if(await rz(1e3),o||(e=await n(),o))return;t({__type:rk.BLOCKHEIGHT_EXCEEDED})}})()}),{abortConfirmation:s,confirmationPromise:l}=this.getTransactionConfirmationPromise({commitment:e,signature:n}),u=this.getCancellationPromise(t);try{let e=await Promise.race([u,l,a]);if(e.__type===rk.PROCESSED)i=e.response;else throw new rc(n)}finally{o=!0,s()}return i}async confirmTransactionUsingDurableNonceStrategy({commitment:e,strategy:{abortSignal:t,minContextSlot:r,nonceAccountPubkey:n,nonceValue:i,signature:o}}){let a,s=!1,l=new Promise(t=>{let o=i,a=null,l=async()=>{try{let{context:t,value:i}=await this.getNonceAndContext(n,{commitment:e,minContextSlot:r});return a=t.slot,i?.nonce}catch(e){return o}};(async()=>{if(o=await l(),!s)for(;;){if(i!==o){t({__type:rk.NONCE_INVALID,slotInWhichNonceDidAdvance:a});return}if(await rz(2e3),s||(o=await l(),s))return}})()}),{abortConfirmation:u,confirmationPromise:c}=this.getTransactionConfirmationPromise({commitment:e,signature:o}),d=this.getCancellationPromise(t);try{let t=await Promise.race([d,c,l]);if(t.__type===rk.PROCESSED)a=t.response;else{let n;for(;;
1){let e=await this.getSignatureStatus(o);if(null==e)break;if(e.context.slot<(t.slotInWhichNonceDidAdvance??r)){await rz(400);continue}n=e;break}if(n?.value){let t=e||"finalized",{confirmationStatus:r}=n.value;switch(t){case"processed":case"recent":if("processed"!==r&&"confirmed"!==r&&"finalized"!==r)throw new rh(o);break;case"confirmed":case"single":case"singleGossip":if("confirmed"!==r&&"finalized"!==r)throw new rh(o);break;case"finalized":case"max":case"root":if("finalized"!==r)throw new rh(o)}a={context:n.context,value:{err:n.value.err}}}else throw new rh(o)}}finally{s=!0,u()}return a}async confirmTransactionUsingLegacyTimeoutStrategy({commitment:e,signature:t}){let r,n;let i=new Promise(t=>{let n=this._confirmTransactionInitialTimeout||6e4;switch(e){case"processed":case"recent":case"single":case"confirmed":case"singleGossip":n=this._confirmTransactionInitialTimeout||3e4}r=setTimeout(()=>t({__type:rk.TIMED_OUT,timeoutMs:n}),n)}),{abortConfirmation:o,confirmationPromise:a}=this.getTransactionConfirmationPromise({commitment:e,signature:t});try{let e=await Promise.race([a,i]);if(e.__type===rk.PROCESSED)n=e.response;else throw new rd(t,e.timeoutMs/1e3)}finally{clearTimeout(r),o()}return n}async getClusterNodes(){let e=await this._rpcRequest("getClusterNodes",[]),t=tu(e,r9(tf(nY)));if("error"in t)throw new rJ(t.error,"failed to get cluster nodes");return t.result}async getVoteAccounts(e){let t=this._buildArgs([],e),r=await this._rpcRequest("getVoteAccounts",t),n=tu(r,nG);if("error"in n)throw new rJ(n.error,"failed to get vote accounts");return n.result}async getSlot(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,void 0,r),i=await this._rpcRequest("getSlot",n),o=tu(i,r9(tb()));if("error"in o)throw new rJ(o.error,"failed to get slot");return o.result}async getSlotLeader(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,void 0,r),i=await this._rpcRequest("getSlotLeader",n),o=tu(i,r9(tA()));if("error"in o)throw new rJ(o.error,"failed to get slot leader");return o.result}async getSlotLeaders(e,t){let r=await this._rpcRequest("getSlotLeaders",[e,t]),n=tu(r,r9(tf(r4)));if("error"in n)throw new rJ(n.error,"failed to get slot leaders");return n.result}async getSignatureStatus(e,t){let{context:r,value:n}
1=await this.getSignatureStatuses([e],t);rv(1===n.length);let i=n[0];return{context:r,value:i}}async getSignatureStatuses(e,t){let r=[e];t&&r.push(t);let n=await this._rpcRequest("getSignatureStatuses",r),i=tu(n,nZ);if("error"in i)throw new rJ(i.error,"failed to get signature status");return i.result}async getTransactionCount(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,void 0,r),i=await this._rpcRequest("getTransactionCount",n),o=tu(i,r9(tb()));if("error"in o)throw new rJ(o.error,"failed to get transaction count");return o.result}async getTotalSupply(e){let t=await this.getSupply({commitment:e,excludeNonCirculatingAccountsList:!0});return t.value.total}async getInflationGovernor(e){let t=this._buildArgs([],e),r=await this._rpcRequest("getInflationGovernor",t),n=tu(r,nm);if("error"in n)throw new rJ(n.error,"failed to get inflation");return n.result}async getInflationReward(e,t,r){let{commitment:n,config:i}=r6(r),o=this._buildArgs([e.map(e=>e.toBase58())],n,void 0,{...i,epoch:null!=t?t:i?.epoch}),a=await this._rpcRequest("getInflationReward",o),s=tu(a,ni);if("error"in s)throw new rJ(s.error,"failed to get inflation reward");return s.result}async getInflationRate(){let e=await this._rpcRequest("getInflationRate",[]),t=tu(e,ny);if("error"in t)throw new rJ(t.error,"failed to get inflation rate");return t.result}async getEpochInfo(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,void 0,r),i=await this._rpcRequest("getEpochInfo",n),o=tu(i,nv);if("error"in o)throw new rJ(o.error,"failed to get epoch info");return o.result}async getEpochSchedule(){let e=await this._rpcRequest("getEpochSchedule",[]),t=tu(e,nw);if("error"in t)throw new rJ(t.error,"failed to get epoch schedule");let r=t.result;return new rG(r.slotsPerEpoch,r.leaderScheduleSlotOffset,r.warmup,r.firstNormalEpoch,r.firstNormalSlot)}async getLeaderSchedule(){let e=await this._rpcRequest("getLeaderSchedule",[]),t=tu(e,nA);if("error"in t)throw new rJ(t.error,"failed to get leader schedule");return t.result}async getMinimumBalanceForRentExemption(e,t){let r=this._buildArgs([e],t),n=await this._rpcRequest("getMinimumBalanceForRentExemption",r),i=tu(n,nX);return"error"in i?(console.warn("Unable to fetch minimum balance for rent exemption"),0):i.result}async getRecentBlockhashAndContext(e){let t=this._buildArgs([],e),r=await this._rpcRequest("getRecentBlockhash",t),n=tu(r,ib);if("error"in n)throw new rJ(n.error,"failed to get recent blockhash");return n.result}async getRecentPerformanceSamples(e){let t=await this._rpcRequest("getRecentPerformanceSamples",e?[e]:[]),r=tu(t,ix);if("error"in r)throw new rJ(r.error,"failed to get recent performance samples");return r.result}async getFeeCalculatorForBlockhash(e,t){let r=this._buildArgs([e],t),n=await this._rpcRequest("getFeeCalculatorForBlockhash",r),i=tu(n,iS);if("error"in i)throw new rJ(i.error,"failed to get fee calculator");let{context:o,value:a}=i.result;return{context:o,value:null!==a?a.feeCalculator:null}}async getFeeForMessage(e,t){let r=ri(e.serialize()).toString("base64"),n=this._buildArgs([r],t),i=await this._rpcRequest("getFeeForMessage",n),o=tu(i,ne(ty(tb())));if("error"in o)throw new rJ(o.error,"failed to get fee for message");if(null===o.result)throw Error("invalid blockhash");return o.result}async getRecentPrioritizationFees(e){let t=e?.lockedWritableAccounts?.map(e=>e.toBase58()),r=this._buildArgs(t?.length?[t]:[]),n=await this._rpcRequest("getRecentPrioritizationFees",r),i=tu(n,nb);if("error"in i)throw new rJ(i.error,"failed to get recent prioritization fees");return i.result}async getRecentBlockhash(e){try{let t=await this.getRecentBlockhashAndContext(e);return t.value}catch(e){throw Error("failed to get recent blockhash: "+e)}}async getLatestBlockhash(e){try{let t=await this.getLatestBlockhashAndContext(e);return t.value}catch(e){throw Error("failed to get recent blockhash: "+e)}}async getLatestBlockhashAndContext(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,void 0,r),i=await this._rpcRequest("getLatestBlockhash",n),o=tu(i,iv);if("error"in o)throw new rJ(o.error,"failed to get latest blockhash");return o.result}
vendor: 1,714 bytes, line 1
1async isBlockhashValid(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgs([e],r,void 0,n),o=await this._rpcRequest("isBlockhashValid",i),a=tu(o,iw);if("error"in a)throw new rJ(a.error,"failed to determine if the blockhash `"+e+"`is valid");return a.result}async getVersion(){let e=await this._rpcRequest("getVersion",[]),t=tu(e,r9(nf));if("error"in t)throw new rJ(t.error,"failed to get version");return t.result}async getGenesisHash(){let e=await this._rpcRequest("getGenesisHash",[]),t=tu(e,r9(tA()));if("error"in t)throw new rJ(t.error,"failed to get genesis hash");return t.result}async getBlock(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgsAtLeastConfirmed([e],r,void 0,n),o=await this._rpcRequest("getBlock",i);try{switch(n?.transactionDetails){case"accounts":{let e=tu(o,iu);if("error"in e)throw e.error;return e.result}case"none":{let e=tu(o,il);if("error"in e)throw e.error;return e.result}default:{let e=tu(o,is);if("error"in e)throw e.error;let{result:t}=e;return t?{...t,transactions:t.transactions.map(({transaction:e,meta:t,version:r})=>({meta:t,transaction:{...e,message:nr(r,e.message)},version:r}))}:null}}}catch(e){throw new rJ(e,"failed to get confirmed block")}}async getParsedBlock(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",n),o=await this._rpcRequest("getBlock",i);try{switch(n?.transactionDetails){case"accounts":{let e=tu(o,id);if("error"in e)throw e.error;return e.result}case"none":{let e=tu(o,ih);if("error"in e)throw e.error;return e.result}default:{let e=tu(o,ic);if("error"in e)throw e.error;return e.result}}}catch(e){throw new rJ(e,"failed to get block")}}async getBlockProduction(e){let t,r;if("string"==typeof e)r=e;
1else if(e){let{commitment:n,...i}=e;r=n,t=i}let n=this._buildArgs([],r,"base64",t),i=await this._rpcRequest("getBlockProduction",n),o=tu(i,ng);if("error"in o)throw new rJ(o.error,"failed to get block production information");return o.result}async getTransaction(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgsAtLeastConfirmed([e],r,void 0,n),o=await this._rpcRequest("getTransaction",i),a=tu(o,im);if("error"in a)throw new rJ(a.error,"failed to get transaction");let s=a.result;return s?{...s,transaction:{...s.transaction,message:nr(s.version,s.transaction.message)}}:s}async getParsedTransaction(e,t){let{commitment:r,config:n}=r6(t),i=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",n),o=await this._rpcRequest("getTransaction",i),a=tu(o,iy);if("error"in a)throw new rJ(a.error,"failed to get transaction");return a.result}async getParsedTransactions(e,t){let{commitment:r,config:n}=r6(t),i=e.map(e=>{let t=this._buildArgsAtLeastConfirmed([e],r,"jsonParsed",n);return{methodName:"getTransaction",args:t}}),o=await this._rpcBatchRequest(i),a=o.map(e=>{let t=tu(e,iy);if("error"in t)throw new rJ(t.error,"failed to get transactions");return t.result});return a}async getTransactions(e,t){let{commitment:r,config:n}=r6(t),i=e.map(e=>{let t=this._buildArgsAtLeastConfirmed([e],r,void 0,n);return{methodName:"getTransaction",args:t}}),o=await this._rpcBatchRequest(i),a=o.map(e=>{let t=tu(e,im);if("error"in t)throw new rJ(t.error,"failed to get transactions");let r=t.result;return r?{...r,transaction:{...r.transaction,message:nr(r.version,r.transaction.message)}}:r});return a}async getConfirmedBlock(e,t){let r=this._buildArgsAtLeastConfirmed([e],t),n=await this._rpcRequest("getConfirmedBlock",r),i=tu(n,ip);if("error"in i)throw new rJ(i.error,"failed to get confirmed block");let o=i.result;if(!o)throw Error("Confirmed block "+e+" not found");let a={...o,transactions:o.transactions.map(({transaction:e,meta:t})=>{let r=new rA(e.message);return{meta:t,transaction:{...e,message:r}}})};return{...a,transactions:a.transactions.map(({transaction:e,meta:t})=>({meta:t,transaction:rI.populate(e.message,e.signatures)}))}}async getBlocks(e,t,r){let n=this._buildArgsAtLeastConfirmed(void 0!==t?[e,t]:[e],r),i=await this._rpcRequest("getBlocks",n),o=tu(i,r9(tf(tb())));if("error"in o)throw new rJ(o.error,"failed to get blocks");return o.result}async getBlockSignatures(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getBlock",r),i=tu(n,ig);if("error"in i)throw new rJ(i.error,"failed to get block");let o=i.result;if(!o)throw Error("Block "+e+" not found");return o}async getConfirmedBlockSignatures(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,void 0,{transactionDetails:"signatures",rewards:!1}),n=await this._rpcRequest("getConfirmedBlock",r),i=tu(n,ig);if("error"in i)throw new rJ(i.error,"failed to get confirmed block");let o=i.result;if(!o)throw Error("Confirmed block "+e+" not found");return o}async getConfirmedTransaction(e,t){let r=this._buildArgsAtLeastConfirmed([e],t),n=await this._rpcRequest("getConfirmedTransaction",r),i=tu(n,im);if("error"in i)throw new rJ(i.error,"failed to get transaction");let o=i.result;if(!o)return o;let a=new rA(o.transaction.message),s=o.transaction.signatures;return{...o,transaction:rI.populate(a,s)}}async getParsedConfirmedTransaction(e,t){let r=this._buildArgsAtLeastConfirmed([e],t,"jsonParsed"),n=await this._rpcRequest("getConfirmedTransaction",r),i=tu(n,iy);if("error"in i)throw new rJ(i.error,"failed to get confirmed transaction");return i.result}async getParsedConfirmedTransactions(e,t){let r=e.map(e=>{let r=this._buildArgsAtLeastConfirmed([e],t,"jsonParsed");return{methodName:"getConfirmedTransaction",args:r}}),n=await this._rpcBatchRequest(r),i=n.map(e=>{let t=tu(e,iy);if("error"in t)throw new rJ(t.error,"failed to get confirmed transactions");return t.result});return i}async getConfirmedSignaturesForAddress(e,t,r){let n={},i=await this.getFirstAvailableBlock();for(;!("until"in n)&&!(--t<=0)&&!(t<i);)try{let e=await this.getConfirmedBlockSignatures(t,"finalized");
vendor: 4,127 bytes, line 1
1e.signatures.length>0&&(n.until=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}let o=await this.getSlot("finalized");for(;!("before"in n)&&!(++r>o);)try{let e=await this.getConfirmedBlockSignatures(r);e.signatures.length>0&&(n.before=e.signatures[e.signatures.length-1].toString())}catch(e){if(e instanceof Error&&e.message.includes("skipped"))continue;throw e}let a=await this.getConfirmedSignaturesForAddress2(e,n);return a.map(e=>e.signature)}async getConfirmedSignaturesForAddress2(e,t,r){let n=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,t),i=await this._rpcRequest("getConfirmedSignaturesForAddress2",n),o=tu(i,nO);if("error"in o)throw new rJ(o.error,"failed to get confirmed signatures for address");return o.result}async getSignaturesForAddress(e,t,r){let n=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,t),i=await this._rpcRequest("getSignaturesForAddress",n),o=tu(i,nL);if("error"in o)throw new rJ(o.error,"failed to get signatures for address");return o.result}async getAddressLookupTable(e,t){let{context:r,value:n}=await this.getAccountInfoAndContext(e,t),i=null;return null!==n&&(i=new r0({key:e,state:r0.deserialize(n.data)})),{context:r,value:i}}async getNonceAndContext(e,t){let{context:r,value:n}=await this.getAccountInfoAndContext(e,t),i=null;return null!==n&&(i=rR.fromAccountData(n.data)),{context:r,value:i}}async getNonce(e,t){return await this.getNonceAndContext(e,t).then(e=>e.value).catch(t=>{throw Error("failed to get nonce for account "+e.toBase58()+": "+t)})}async requestAirdrop(e,t){let r=await this._rpcRequest("requestAirdrop",[e.toBase58(),t]),n=tu(r,ik);if("error"in n)throw new rJ(n.error,`airdrop to ${e.toBase58()} failed`);return n.result}async _blockhashWithExpiryBlockHeight(e){if(!e){for(;this._pollingBlockhash;)await rz(100);let e=Date.now()-this._blockhashInfo.lastFetch;if(null!==this._blockhashInfo.latestBlockhash&&!(e>=3e4))return this._blockhashInfo.latestBlockhash}return await this._pollNewBlockhash()}async _pollNewBlockhash(){this._pollingBlockhash=!0;try{let e=Date.now(),t=this._blockhashInfo.latestBlockhash,r=t?t.blockhash:null;for(let e=0;e<50;e++){let e=await this.getLatestBlockhash("finalized");if(r!==e.blockhash)return this._blockhashInfo={latestBlockhash:e,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e;await rz(200)}throw Error(`Unable to obtain a new blockhash after ${Date.now()-e}ms`)}finally{this._pollingBlockhash=!1}}async getStakeMinimumDelegation(e){let{commitment:t,config:r}=r6(e),n=this._buildArgs([],t,"base64",r),i=await this._rpcRequest("getStakeMinimumDelegation",n),o=tu(i,ne(tb()));if("error"in o)throw new rJ(o.error,"failed to get stake minimum delegation");return o.result}async simulateTransaction(e,t,r){let n;if("message"in e){let n=e.serialize(),i=s.Buffer.from(n).toString("base64");if(Array.isArray(t)||void 0!==r)throw Error("Invalid arguments");let o=t||{};o.encoding="base64","commitment"in o||(o.commitment=this.commitment);let a=[i,o],l=await this._rpcRequest("simulateTransaction",a),u=tu(l,np);if("error"in u)throw Error("failed to simulate transaction: "+u.error.message);return u.result}if(e instanceof rI?((n=new rI).feePayer=e.feePayer,n.instructions=e.instructions,n.nonceInfo=e.nonceInfo,n.signatures=e.signatures):(n=rI.populate(e))._message=n._json=void 0,void 0!==t&&!Array.isArray(t))throw Error("Invalid arguments");if(n.nonceInfo&&t)n.sign(...t);else{let e=this._disableBlockhashCaching;for(;;){let r=await this._blockhashWithExpiryBlockHeight(e);if(n.lastValidBlockHeight=r.lastValidBlockHeight,n.recentBlockhash=r.blockhash,!t)break;if(n.sign(...t),!n.signature)throw Error("!signature");let i=n.signature.toString("base64");if(this._blockhashInfo.simulatedSignatures.includes(i)||this._blockhashInfo.transactionSignatures.includes(i))e=!0;else{this._blockhashInfo.simulatedSignatures.push(i);break}}}let i=n._compile(),o=i.serialize(),a=n._serialize(o),l=a.toString("base64"),u={encoding:"base64",commitment:this.commitment};if(r){let e=(Array.isArray(r)?r:i.nonProgramIds()).map(e=>
1e.toBase58());u.accounts={encoding:"base64",addresses:e}}t&&(u.sigVerify=!0);let c=[l,u],d=await this._rpcRequest("simulateTransaction",c),h=tu(d,np);if("error"in h){let e;if("data"in h.error&&(e=h.error.data.logs)&&Array.isArray(e)){let t="\n    ",r=t+e.join(t);console.error(h.error.message,r)}throw new rK("failed to simulate transaction: "+h.error.message,e)}return h.result}async sendTransaction(e,t,r){if("version"in e){if(t&&Array.isArray(t))throw Error("Invalid arguments");let r=e.serialize();return await this.sendRawTransaction(r,t)}if(void 0===t||!Array.isArray(t))throw Error("Invalid arguments");if(e.nonceInfo)e.sign(...t);else{let r=this._disableBlockhashCaching;for(;;){let n=await this._blockhashWithExpiryBlockHeight(r);if(e.lastValidBlockHeight=n.lastValidBlockHeight,e.recentBlockhash=n.blockhash,e.sign(...t),!e.signature)throw Error("!signature");let i=e.signature.toString("base64");if(this._blockhashInfo.transactionSignatures.includes(i))r=!0;else{this._blockhashInfo.transactionSignatures.push(i);break}}}let n=e.serialize();return await this.sendRawTransaction(n,r)}async sendRawTransaction(e,t){let r=ri(e).toString("base64"),n=await this.sendEncodedTransaction(r,t);return n}async sendEncodedTransaction(e,t){let r={encoding:"base64"},n=t&&t.skipPreflight,i=t&&t.preflightCommitment||this.commitment;t&&null!=t.maxRetries&&(r.maxRetries=t.maxRetries),t&&null!=t.minContextSlot&&(r.minContextSlot=t.minContextSlot),n&&(r.skipPreflight=n),i&&(r.preflightCommitment=i);let o=[e,r],a=await this._rpcRequest("sendTransaction",o),s=tu(a,iM);if("error"in s){let e;throw"data"in s.error&&(e=s.error.data.logs),new rK("failed to send transaction: "+s.error.message,e)}return s.result}_wsOnOpen(){this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval(()=>{(async()=>{try{await this._rpcWebSocket.notify("ping")}catch{}})()},5e3),this._updateSubscriptions()}_wsOnError(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}_wsOnClose(e){if(this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3===e){this._updateSubscriptions();return}this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach(([e,t])=>{this._setSubscription(e,{...t,state:"pending"})})}_setSubscription(e,t){let r=this._subscriptionsByHash[e]?.state;if(this._subscriptionsByHash[e]=t,r!==t.state){let r=this._subscriptionStateChangeCallbacksByHash[e];r&&r.forEach(e=>{try{e(t.state)}catch{}})}}_onSubscriptionStateChange(e,t){let r=this._subscriptionHashByClientSubscriptionId[e];if(null==r)return()=>{};let n=this._subscriptionStateChangeCallbacksByHash[r]||=new Set;return n.add(t),()=>{n.delete(t),0===n.size&&delete this._subscriptionStateChangeCallbacksByHash[r]}}async _updateSubscriptions(){if(0===Object.keys(this._subscriptionsByHash).length){this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout(()=>{this._rpcWebSocketIdleTimeout=null;try{this._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log(`Error when closing socket connection: ${e.message}`)}},500));return}if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),!this._rpcWebSocketConnected){this._rpcWebSocket.connect();return}let e=this._rpcWebSocketGeneration,t=()=>e===this._rpcWebSocketGeneration;await Promise.all(Object.keys(this._subscriptionsByHash).map(async e=>{let r=this._subscriptionsByHash[e];if(void 0!==r)switch(r.state){case"pending":case"unsubscribed":if(0===r.callbacks.size){delete this._subscriptionsByHash[e],"unsubscribed"===r.state&&delete this._subscriptionCallbacksByServerSubscriptionId[r.serverSubscriptionId],await this._updateSubscriptions();return}await (async()=>{let{args:n,method:i}=r;try{this._setSubscription(e,{...r,state:"subscribing"});let t=await this._rpcWebSocket.call(i,n);this._setSubscription(e,{...r,serverSubscriptionId:t,state:"subscribed"}),this._subscriptionCallbacksByServerSubscriptionId[t]=r.callbacks,await this._updateSubscriptions()}catch(o){if(o instanceof Error&&console.error(`${i} error for argument`,n,o.message),!t())return;this._setSubscription(e,{...r,state:"pending"}),await this._updateSubscriptions()}})();break;case"subscribed":0===r.callbacks.size&&await (async()=>{let{serverSubscriptionId:n,unsubscribeMethod:i}=r;if(this._subscriptionsAutoDisposedByRpc.has(n))this._subscriptionsAutoDisposedByRpc.delete(n);else{this._setSubscription(e,{...r,state:"unsubscribing"}),this._setSubscription(e,{...r,state:"unsubscribing"});try{await this._rpcWebSocket.call(i,[n])}catch(n){if(n instanceof Error&&console.error(`${i} error:`,n.message),!t())return;this._setSubscription(e,{...r,state:"subscribed"}),await this._updateSubscriptions();return}}this._setSubscription(e,{...r,state:"unsubscribed"}),await this._updateSubscriptions()})()}}))}_handleServerNotification(e,t){let r=this._subscriptionCallbacksByServerSubscriptionId[e];
vendor: 4,392 bytes, line 1
1void 0!==r&&r.forEach(e=>{try{e(...t)}catch(e){console.error(e)}})}_wsOnAccountNotification(e){let{result:t,subscription:r}=tu(e,nP);this._handleServerNotification(r,[t.value,t.context])}_makeSubscription(e,t){let r=this._nextClientSubscriptionId++,n=rY([e.method,t],!0),i=this._subscriptionsByHash[n];return void 0===i?this._subscriptionsByHash[n]={...e,args:t,callbacks:new Set([e.callback]),state:"pending"}:i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=n,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=async()=>{delete this._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete this._subscriptionHashByClientSubscriptionId[r];let t=this._subscriptionsByHash[n];rv(void 0!==t,`Could not find a \`Subscription\` when tearing down client subscription #${r}`),t.callbacks.delete(e.callback),await this._updateSubscriptions()},this._updateSubscriptions(),r}onAccountChange(e,t,r){let n=this._buildArgs([e.toBase58()],r||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},n)}async removeAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"account change")}_wsOnProgramAccountNotification(e){let{result:t,subscription:r}=tu(e,nF);this._handleServerNotification(r,[{accountId:t.value.pubkey,accountInfo:t.value.account},t.context])}onProgramAccountChange(e,t,r,n){let i=this._buildArgs([e.toBase58()],r||this._commitment||"finalized","base64",n?{filters:n}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}async removeProgramAccountChangeListener(e){await this._unsubscribeClientSubscription(e,"program account change")}onLogs(e,t,r){let n=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],r||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},n)}async removeOnLogsListener(e){await this._unsubscribeClientSubscription(e,"logs")}_wsOnLogsNotification(e){let{result:t,subscription:r}=tu(e,iI);this._handleServerNotification(r,[t.value,t.context])}_wsOnSlotNotification(e){let{result:t,subscription:r}=tu(e,nW);this._handleServerNotification(r,[t])}onSlotChange(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}async removeSlotChangeListener(e){await this._unsubscribeClientSubscription(e,"slot change")}_wsOnSlotUpdatesNotification(e){let{result:t,subscription:r}=tu(e,nV);this._handleServerNotification(r,[t])}onSlotUpdate(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}async removeSlotUpdateListener(e){await this._unsubscribeClientSubscription(e,"slot update")}async _unsubscribeClientSubscription(e,t){let r=this._subscriptionDisposeFunctionsByClientSubscriptionId[e];r?await r():console.warn(`Ignored unsubscribe request because an active subscription with id \`${e}\` for '${t}' events could not be found.`)}_buildArgs(e,t,r,n){let i=t||this._commitment;if(i||r||n){let t={};r&&(t.encoding=r),i&&(t.commitment=i),n&&(t=Object.assign(t,n)),e.push(t)}return e}_buildArgsAtLeastConfirmed(e,t,r,n){let i=t||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,r,n)}_wsOnSignatureNotification(e){let{result:t,subscription:r}=tu(e,nQ);"receivedSignature"!==t.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===t.value?[{type:"received"},t.context]:[{type:"status",result:t.value},t.context])}onSignature(e,t,r){let n=this._buildArgs([e],r||this._commitment||"finalized"),i=this._makeSubscription({callback:(e,r)=>{if("status"===e.type){t(e.result,r);try{this.removeSignatureListener(i)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},n);return i}onSignatureWithOptions(e,t,r){let{commitment:n,...i}={...r,commitment:r&&r.commitment||this._commitment||"finalized"},o=this._buildArgs([e],n,void 0,i),a=this._makeSubscription({callback:(e,r)=>{t(e,r);try{this.removeSignatureListener(a)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},o);return a}
1async removeSignatureListener(e){await this._unsubscribeClientSubscription(e,"signature result")}_wsOnRootNotification(e){let{result:t,subscription:r}=tu(e,n$);this._handleServerNotification(r,[t])}onRootChange(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}async removeRootChangeListener(e){await this._unsubscribeClientSubscription(e,"root change")}}class iB{constructor(e){this._keypair=void 0,this._keypair=e??t9()}static generate(){return new iB(t9())}static fromSecretKey(e,t){if(64!==e.byteLength)throw Error("bad secret key size");let r=e.slice(32,64);if(!t||!t.skipValidation){let t=e.slice(0,32),n=re(t);for(let e=0;e<32;e++)if(r[e]!==n[e])throw Error("provided secretKey is invalid")}return new iB({publicKey:r,secretKey:e})}static fromSeed(e){let t=re(e),r=new Uint8Array(64);return r.set(e),r.set(t,32),new iB({publicKey:t,secretKey:r})}get publicKey(){return new rl(this._keypair.publicKey)}get secretKey(){return new Uint8Array(this._keypair.secretKey)}}Object.freeze({CreateLookupTable:{index:0,layout:tt.n_([tt.Jq("instruction"),rU("recentSlot"),tt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:tt.n_([tt.Jq("instruction")])},ExtendLookupTable:{index:2,layout:tt.n_([tt.Jq("instruction"),rU(),tt.A9(rp(),tt.cv(tt.Jq(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:tt.n_([tt.Jq("instruction")])},CloseLookupTable:{index:4,layout:tt.n_([tt.Jq("instruction")])}}),new rl("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:tt.n_([tt.u8("instruction"),tt.Jq("units"),tt.Jq("additionalFee")])},RequestHeapFrame:{index:1,layout:tt.n_([tt.u8("instruction"),tt.Jq("bytes")])},SetComputeUnitLimit:{index:2,layout:tt.n_([tt.u8("instruction"),tt.Jq("units")])},SetComputeUnitPrice:{index:3,layout:tt.n_([tt.u8("instruction"),rU("microLamports")])}}),new rl("ComputeBudget111111111111111111111111111111");let iT=tt.n_([tt.u8("numSignatures"),tt.u8("padding"),tt.KB("signatureOffset"),tt.KB("signatureInstructionIndex"),tt.KB("publicKeyOffset"),tt.KB("publicKeyInstructionIndex"),tt.KB("messageDataOffset"),tt.KB("messageDataSize"),tt.KB("messageInstructionIndex")]);class iD{constructor(){}static createInstructionWithPublicKey(e){let{publicKey:t,message:r,signature:n,instructionIndex:i}=e;rv(32===t.length,`Public Key must be 32 bytes but received ${t.length} bytes`),rv(64===n.length,`Signature must be 64 bytes but received ${n.length} bytes`);let o=iT.span,a=o+t.length,l=a+n.length,u=s.Buffer.alloc(l+r.length),c=null==i?65535:i;return iT.encode({numSignatures:1,padding:0,signatureOffset:a,signatureInstructionIndex:c,publicKeyOffset:o,publicKeyInstructionIndex:c,messageDataOffset:l,messageDataSize:r.length,messageInstructionIndex:c},u),u.fill(t,o),u.fill(n,a),u.fill(r,l),new rE({keys:[],programId:iD.programId,data:u})}static createInstructionWithPrivateKey(e){let{privateKey:t,message:r,instructionIndex:n}=e;rv(64===t.length,`Private key must be 64 bytes but received ${t.length} bytes`);try{let e=iB.fromSecretKey(t),i=e.publicKey.toBytes(),o=rr(r,e.secretKey);return this.createInstructionWithPublicKey({publicKey:i,message:r,signature:o,instructionIndex:n})}catch(e){throw Error(`Error creating instruction; ${e}`)}}}iD.programId=new rl("Ed25519SigVerify111111111111111111111111111");let ij=(e,t)=>{let r=t7.sign(e,t);return[r.toCompactRawBytes(),r.recovery]};t7.utils.isValidPrivateKey;let iz=t7.getPublicKey,iN=tt.n_([tt.u8("numSignatures"),tt.KB("signatureOffset"),tt.u8("signatureInstructionIndex"),tt.KB("ethAddressOffset"),tt.u8("ethAddressInstructionIndex"),tt.KB("messageDataOffset"),tt.KB("messageDataSize"),tt.u8("messageInstructionIndex"),tt.Ik(20,"ethAddress"),tt.Ik(64,"signature"),tt.u8("recoveryId")]);class iO{constructor(){}static publicKeyToEthAddress(e){rv(64===e.length,`Public key must be 64 bytes but received ${e.length} bytes`);try{return s.Buffer.from(t$(ri(e))).slice(-20)}catch(e){throw Error(`Error constructing Ethereum address: ${e}`)}}static createInstructionWithPublicKey(e){let{publicKey:t,message:r,signature:n,recoveryId:i,instructionIndex:o}=e;return iO.createInstructionWithEthAddress({ethAddress:iO.publicKeyToEthAddress(t),message:r,signature:n,recoveryId:i,instructionIndex:o})}static createInstructionWithEthAddress(e){let t;let{ethAddress:r,message:n,signature:i,recoveryId:o,instructionIndex:a=0}=e;rv(20===(t="string"==typeof r?r.startsWith("0x")?s.Buffer.from(r.substr(2),"hex"):s.Buffer.from(r,"hex"):r).length,`Address must be 20 bytes but received ${t.length} bytes`);let l=12+t.length,u=l+i.length+1,c=s.Buffer.alloc(iN.span+n.length);return iN.encode({numSignatures:1,signatureOffset:l,signatureInstructionIndex:a,ethAddressOffset:12,ethAddressInstructionIndex:a,messageDataOffset:u,messageDataSize:n.length,messageInstructionIndex:a,signature:ri(i),ethAddress:ri(t),recoveryId:o},c),c.fill(ri(n),iN.span),new rE({keys:[],programId:iO.programId,data:c})}static createInstructionWithPrivateKey(e){let{privateKey:t,message:r,instructionIndex:n}=e;rv(32===t.length,`Private key must be 32 bytes but received ${t.length} bytes`);try{let e=ri(t),i=iz(e,!1).slice(1),o=s.Buffer.from(t$(ri(r))),[a,l]=ij(o,e);return this.createInstructionWithPublicKey({publicKey:i,message:r,signature:a,recoveryId:l,instructionIndex:n})}catch(e){throw Error(`Error creating instruction; ${e}`)}}}iO.programId=new rl("KeccakSecp256k11111111111111111111111111111");let iL=new rl("StakeConfig11111111111111111111111111111111");class iP{constructor(e,t,r){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=r}}iP.default=new iP(0,0,rl.default);let iR=Object.freeze({Initialize:{index:0,layout:tt.n_([tt.Jq("instruction"),((e="authorized")=>tt.n_([rp("staker"),rp("withdrawer")],e))(),((e="lockup")=>tt.n_([tt.gM("unixTimestamp"),tt.gM("epoch"),rp("custodian")],e))()])},Authorize:{index:1,layout:tt.n_([tt.Jq("instruction"),rp("newAuthorized"),tt.Jq("stakeAuthorizationType")])},Delegate:{index:2,layout:tt.n_([tt.Jq("instruction")])},Split:{index:3,layout:tt.n_([tt.Jq("instruction"),tt.gM("lamports")])},Withdraw:{index:4,layout:tt.n_([tt.Jq("instruction"),tt.gM("lamports")])},Deactivate:{index:5,layout:tt.n_([tt.Jq("instruction")])},Merge:{index:7,layout:tt.n_([tt.Jq("instruction")])},AuthorizeWithSeed:{index:8,layout:tt.n_([tt.Jq("instruction"),rp("newAuthorized"),tt.Jq("stakeAuthorizationType"),rm("authoritySeed"),rp("authorityOwner")])}});Object.freeze({Staker:{index:0},Withdrawer:{index:1}});class iF{constructor(){}static initialize(e){let{stakePubkey:t,authorized:r,lockup:n}=e,i=n||iP.default,o=iR.Initialize,a=rN(o,{authorized:{staker:ri(r.staker.toBuffer()),withdrawer:ri(r.withdrawer.toBuffer())},lockup:{unixTimestamp:i.unixTimestamp,epoch:i.epoch,custodian:ri(i.custodian.toBuffer())}}),s={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:rT,isSigner:!1,isWritable:!1}],programId:this.programId,data:a};return new rE(s)}static createAccountWithSeed(e){let t=new rI;t.add(rH.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:n,lockup:i}=e;return t.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}static createAccount(e){let t=new rI;t.add(rH.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));let{stakePubkey:r,authorized:n,lockup:i}=e;return t.add(this.initialize({stakePubkey:r,authorized:n,lockup:i}))}static delegate(e){let{stakePubkey:t,authorizedPubkey:r,votePubkey:n}=e,i=iR.Delegate,o=rN(i);return new rI().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:rD,isSigner:!1,isWritable:!1},{pubkey:iL,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static authorize(e){let{stakePubkey:t,authorizedPubkey:r,newAuthorizedPubkey:n,stakeAuthorizationType:i,custodianPubkey:o}=e,a=iR.Authorize,s=rN(a,{newAuthorized:ri(n.toBuffer()),stakeAuthorizationType:i.index}),l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&l.push({pubkey:o,isSigner:!1,isWritable:!1}),new rI().add({keys:l,programId:this.programId,data:s})}static authorizeWithSeed(e){let{stakePubkey:t,authorityBase:r,authoritySeed:n,authorityOwner:i,newAuthorizedPubkey:o,stakeAuthorizationType:a,custodianPubkey:s}=e,l=iR.AuthorizeWithSeed,u=rN(l,{newAuthorized:ri(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:n,authorityOwner:ri(i.toBuffer())}),c=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1},{pubkey:rC,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),new rI().add({keys:c,programId:this.programId,data:u})}static splitInstruction(e){let{stakePubkey:t,authorizedPubkey:r,splitStakePubkey:n,lamports:i}=e,o=iR.Split,a=rN(o,{lamports:i});return new rE({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}static split(e){let t=new rI;return t.add(rH.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}static splitWithSeed(e){let{stakePubkey:t,authorizedPubkey:r,splitStakePubkey:n,basePubkey:i,seed:o,lamports:a}=e,s=new rI;return s.add(rH.allocate({accountPubkey:n,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:r,splitStakePubkey:n,lamports:a}))}static merge(e){let{stakePubkey:t,sourceStakePubKey:r,authorizedPubkey:n}=e,i=iR.Merge,o=rN(i);return new rI().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:rD,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}static withdraw(e){let{stakePubkey:t,authorizedPubkey:r,toPubkey:n,lamports:i,custodianPubkey:o}=e,a=iR.Withdraw,s=rN(a,{lamports:i}),l=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:rD,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return o&&l.push({pubkey:o,isSigner:!1,isWritable:!1}),new rI().add({keys:l,programId:this.programId,data:s})}static deactivate(e){let{stakePubkey:t,authorizedPubkey:r}=e,n=iR.Deactivate,i=rN(n);return new rI().add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}}iF.programId=new rl("Stake11111111111111111111111111111111111111"),iF.space
1=200;let iU=Object.freeze({InitializeAccount:{index:0,layout:tt.n_([tt.Jq("instruction"),((e="voteInit")=>tt.n_([rp("nodePubkey"),rp("authorizedVoter"),rp("authorizedWithdrawer"),tt.u8("commission")],e))()])},Authorize:{index:1,layout:tt.n_([tt.Jq("instruction"),rp("newAuthorized"),tt.Jq("voteAuthorizationType")])},Withdraw:{index:3,layout:tt.n_([tt.Jq("instruction"),tt.gM("lamports")])},AuthorizeWithSeed:{index:10,layout:tt.n_([tt.Jq("instruction"),((e="voteAuthorizeWithSeedArgs")=>tt.n_([tt.Jq("voteAuthorizationType"),rp("currentAuthorityDerivedKeyOwnerPubkey"),rm("currentAuthorityDerivedKeySeed"),rp("newAuthorized")],e))()])}});Object.freeze({Voter:{index:0},Withdrawer:{index:1}});class iW{constructor(){}static initializeAccount(e){let{votePubkey:t,nodePubkey:r,voteInit:n}=e,i=iU.InitializeAccount,o=rN(i,{voteInit:{nodePubkey:ri(n.nodePubkey.toBuffer()),authorizedVoter:ri(n.authorizedVoter.toBuffer()),authorizedWithdrawer:ri(n.authorizedWithdrawer.toBuffer()),commission:n.commission}}),a={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:rT,isSigner:!1,isWritable:!1},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:o};return new rE(a)}static createAccount(e){let t=new rI;return t.add(rH.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}static authorize(e){let{votePubkey:t,authorizedPubkey:r,newAuthorizedPubkey:n,voteAuthorizationType:i}=e,o=iU.Authorize,a=rN(o,{newAuthorized:ri(n.toBuffer()),voteAuthorizationType:i.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}];return new rI().add({keys:s,programId:this.programId,data:a})}static authorizeWithSeed(e){let{currentAuthorityDerivedKeyBasePubkey:t,currentAuthorityDerivedKeyOwnerPubkey:r,currentAuthorityDerivedKeySeed:n,newAuthorizedPubkey:i,voteAuthorizationType:o,votePubkey:a}=e,s=iU.AuthorizeWithSeed,l=rN(s,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:ri(r.toBuffer()),currentAuthorityDerivedKeySeed:n,newAuthorized:ri(i.toBuffer()),voteAuthorizationType:o.index}}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:rC,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return new rI().add({keys:u,programId:this.programId,data:l})}static withdraw(e){let{votePubkey:t,authorizedWithdrawerPubkey:r,lamports:n,toPubkey:i}=e,o=iU.Withdraw,a=rN(o,{lamports:n}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!0,isWritable:!1}];return new rI().add({keys:s,programId:this.programId,data:a})}static safeWithdraw(e,t,r){if(e.lamports>t-r)throw Error("Withdraw will leave vote account with insuffcient funds.");return iW.withdraw(e)}}iW.programId=new rl("Vote111111111111111111111111111111111111111"),iW.space=3731,new rl("Va1idator1nfo111111111111111111111111111111"),tS({name:tA(),website:tv(tA()),details:tv(tA()),keybaseUsername:tv(tA())}),new rl("Vote111111111111111111111111111111111111111"),tt.n_([rp("nodePubkey"),rp("authorizedWithdrawer"),tt.u8("commission"),tt._O(),tt.A9(tt.n_([tt._O("slot"),tt.Jq("confirmationCount")]),tt.cv(tt.Jq(),-8),"votes"),tt.u8("rootSlotValid"),tt._O("rootSlot"),tt._O(),tt.A9(tt.n_([tt._O("epoch"),rp("authorizedVoter")]),tt.cv(tt.Jq(),-8),"authorizedVoters"),tt.n_([tt.A9(tt.n_([rp("authorizedPubkey"),tt._O("epochOfLastAuthorizedSwitch"),tt._O("targetEpoch")]),32,"buf"),tt._O("idx"),tt.u8("isEmpty")],"priorVoters"),tt._O(),tt.A9(tt.n_([tt._O("epoch"),tt._O("credits"),tt._O("prevCredits")]),tt.cv(tt.Jq(),-8),"epochCredits"),tt.n_([tt._O("slot"),tt._O("timestamp")],"lastTimestamp")]);let iH=1e9},8162:function(e,t,r){"use strict";var n=r(9509).Buffer;e.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw TypeError(o+" is ambiguous");t[a]=i}var s=e.length,l=e.charAt(0),u=Math.log(s)/Math.log(256),c=Math.log(256)/Math.log(s);function d(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return n.alloc(0);for(var r=0,i=0,o=0;e[r]===l;)i++,r++;for(var a=(e.length-r)*u+1>>>0,c=new Uint8Array(a);e[r];){var d=t[e.charCodeAt(r)];if(255===d)return;for(var h=0,f=a-1;(0!==d||h<o)&&-1!==f;f--,h++)d+=s*c[f]>>>0,c[f]=d%256>>>0,d=d/256>>>0;if(0!==d)throw Error("Non-zero carry");o=h,r++}for(var p=a-o;p!==a&&0===c[p];)p++;var g=n.allocUnsafe(i+(a-p));g.fill(0,0,i);for(var m=i;p!==a;)g[m++]=c[p++];return g}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=n.from(t)),!n.isBuffer(t))throw TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,r++;for(var u=(a-o)*c+1>>>0,d=new Uint8Array(u);o!==a;){for(var h=t[o],f=0,p=u-1;(0!==h||f<i)&&-1!==p;p--,f++)h+=256*d[p]>>>0,d[p]=h%s>>>0,h=h/s>>>0;if(0!==h)throw Error("Non-zero carry");i=f,o++}for(var g=u-i;g!==u&&0===d[g];)g++;for(var m=l.repeat(r);g<u;++g)m+=e.charAt(d[g]);return m},decodeUnsafe:d,decode:function(e){var t=d(e);if(t)return t;throw Error("Non-base"+s+" character")}}}},258: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],u=new i((a+s)*3/4-s),c=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)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},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>
1s?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},475:function(e,t,r){"use strict";var n=r(8764).Buffer;t.oU=function(e){{let t=n.from(e);t.reverse();let r=t.toString("hex");return 0===r.length?BigInt(0):BigInt(`0x${r}`)}},t.k$=function(e,t){{let r=e.toString(16),i=n.from(r.padStart(2*t,"0").slice(0,2*t),"hex");return i.reverse(),i}}},3550: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{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(6601).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}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,i){for(var o=0,a=0,s=Math.min(e.length,r),l=t;l<s;l++){var u=e.charCodeAt(l)-48;o*=i,a=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a<i,"Invalid character"),o+=a}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(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,u=0,c=r;c<s;c+=n)u=l(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(e,c,e.length,t),c=0;c<a;c++)d*=t;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}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._move=function(e){u(e,this)},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},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d,h=["","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"],f=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 4,758 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function g(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 u=1;u<n;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,t.length-1),f=Math.max(0,u-e.length+1);f<=h;f++){var p=u-f|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&a}r.words[u]=0|d,l=0|c}return 0!==l?r.words[u]=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);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-l.length]+l+r:l+r}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 u=f[e],c=p[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modrn(c).toString(e);r=(d=d.idivn(c)).isZero()?g+r:h[u-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,2)},d&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(d,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(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},o.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},o.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?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;
vendor: 7,566 bytes, line 1
1n++)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 m=function(e,t,r){var n,i,o,a=e.words,s=t.words,l=r.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,g=f>>>13,m=0|a[2],y=8191&m,b=m>>>13,v=0|a[3],w=8191&v,A=v>>>13,x=0|a[4],S=8191&x,k=x>>>13,M=0|a[5],E=8191&M,I=M>>>13,_=0|a[6],C=8191&_,B=_>>>13,T=0|a[7],D=8191&T,j=T>>>13,z=0|a[8],N=8191&z,O=z>>>13,L=0|a[9],P=8191&L,R=L>>>13,F=0|s[0],U=8191&F,W=F>>>13,H=0|s[1],V=8191&H,Q=H>>>13,$=0|s[2],Y=8191&$,q=$>>>13,G=0|s[3],K=8191&G,J=G>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>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,eu=es>>>13,ec=0|s[8],ed=8191&ec,eh=ec>>>13,ef=0|s[9],ep=8191&ef,eg=ef>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(u+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,W))+Math.imul(h,U)|0))<<13)|0;u=((o=Math.imul(h,W))+(i>>>13)|0)+(em>>>26)|0,em&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(g,U)|0,o=Math.imul(g,W);var ey=(u+(n=n+Math.imul(d,V)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,V)|0))<<13)|0;u=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=67108863,n=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(b,U)|0,o=Math.imul(b,W),n=n+Math.imul(p,V)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,Q)|0;var eb=(u+(n=n+Math.imul(d,Y)|0)|0)+((8191&(i=(i=i+Math.imul(d,q)|0)+Math.imul(h,Y)|0))<<13)|0;u=((o=o+Math.imul(h,q)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=67108863,n=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(A,U)|0,o=Math.imul(A,W),n=n+Math.imul(y,V)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(b,V)|0,o=o+Math.imul(b,Q)|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 ev=(u+(n=n+Math.imul(d,K)|0)|0)+((8191&(i=(i=i+Math.imul(d,J)|0)+Math.imul(h,K)|0))<<13)|0;u=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,W))+Math.imul(k,U)|0,o=Math.imul(k,W),n=n+Math.imul(w,V)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(A,V)|0,o=o+Math.imul(A,Q)|0,n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(b,Y)|0,o=o+Math.imul(b,q)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,J)|0;var ew=(u+(n=n+Math.imul(d,X)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,X)|0))<<13)|0;u=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=67108863,n=Math.imul(E,U),i=(i=Math.imul(E,W))+Math.imul(I,U)|0,o=Math.imul(I,W),n=n+Math.imul(S,V)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(k,V)|0,o=o+Math.imul(k,Q)|0,n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(A,Y)|0,o=o+Math.imul(A,q)|0,n=n+Math.imul(y,K)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,J)|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 eA=(u+(n=n+Math.imul(d,er)|0)|0)+((8191&(i=(i=i+Math.imul(d,en)|0)+Math.imul(h,er)|0))<<13)|0;u=((o=o+Math.imul(h,en)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,W))+Math.imul(B,U)|0,o=Math.imul(B,W),n=n+Math.imul(E,V)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(I,V)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(S,Y)|0,i=(i=i+Math.imul(S,q)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,q)|0,n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,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 ex=(u+(n=n+Math.imul(d,eo)|0)|0)+((8191&(i=(i=i+Math.imul(d,ea)|0)+Math.imul(h,eo)|0))<<13)|0;u=((o=o+Math.imul(h,ea)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,W))+Math.imul(j,U)|0,o=Math.imul(j,W),n=n+Math.imul(C,V)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(B,V)|0,o=o+Math.imul(B,Q)|0,n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,q)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(k,K)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(y,er)|0,i=(i=i+Math.imul(y,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 eS=(u+(n=n+Math.imul(d,el)|0)|0)+((8191&(i=(i=i+Math.imul(d,eu)|0)+Math.imul(h,el)|0))<<13)|0;u=((o=o+Math.imul(h,eu)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=67108863,n=Math.imul(N,U),i=(i=Math.imul(N,W))+Math.imul(O,U)|0,o=Math.imul(O,W),n=n+Math.imul(D,V)|0,i=(i=i+Math.imul(D,Q)|0)+Math.imul(j,V)|0,o=o+Math.imul(j,Q)|0,n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(B,Y)|0,o=o+Math.imul(B,q)|0,n=n+Math.imul(E,K)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(w,er)|0,i=(i=i+Math.imul(w,en)|0)+Math.imul(A,er)|0,o=o+Math.imul(A,en)|0,n=n+Math.imul(y,eo)|0,i=(i=i+Math.imul(y,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,eu)|0)+Math.imul(g,el)|0,o=o+Math.imul(g,eu)|0;var ek=(u+(n=n+Math.imul(d,ed)|0)|0)+((8191&(i=(i=i+Math.imul(d,eh)|0)+Math.imul(h,ed)|0))<<13)|0;u=((o=o+Math.imul(h,eh)|0)+(i>>>13)|0)+(ek>>>
vendor: 5,523 bytes, line 1
126)|0,ek&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(R,U)|0,o=Math.imul(R,W),n=n+Math.imul(N,V)|0,i=(i=i+Math.imul(N,Q)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,Q)|0,n=n+Math.imul(D,Y)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(j,Y)|0,o=o+Math.imul(j,q)|0,n=n+Math.imul(C,K)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,J)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(k,er)|0,o=o+Math.imul(k,en)|0,n=n+Math.imul(w,eo)|0,i=(i=i+Math.imul(w,ea)|0)+Math.imul(A,eo)|0,o=o+Math.imul(A,ea)|0,n=n+Math.imul(y,el)|0,i=(i=i+Math.imul(y,eu)|0)+Math.imul(b,el)|0,o=o+Math.imul(b,eu)|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 eM=(u+(n=n+Math.imul(d,ep)|0)|0)+((8191&(i=(i=i+Math.imul(d,eg)|0)+Math.imul(h,ep)|0))<<13)|0;u=((o=o+Math.imul(h,eg)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=67108863,n=Math.imul(P,V),i=(i=Math.imul(P,Q))+Math.imul(R,V)|0,o=Math.imul(R,Q),n=n+Math.imul(N,Y)|0,i=(i=i+Math.imul(N,q)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(D,K)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,J)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(E,er)|0,i=(i=i+Math.imul(E,en)|0)+Math.imul(I,er)|0,o=o+Math.imul(I,en)|0,n=n+Math.imul(S,eo)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(k,eo)|0,o=o+Math.imul(k,ea)|0,n=n+Math.imul(w,el)|0,i=(i=i+Math.imul(w,eu)|0)+Math.imul(A,el)|0,o=o+Math.imul(A,eu)|0,n=n+Math.imul(y,ed)|0,i=(i=i+Math.imul(y,eh)|0)+Math.imul(b,ed)|0,o=o+Math.imul(b,eh)|0;var eE=(u+(n=n+Math.imul(p,ep)|0)|0)+((8191&(i=(i=i+Math.imul(p,eg)|0)+Math.imul(g,ep)|0))<<13)|0;u=((o=o+Math.imul(g,eg)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=67108863,n=Math.imul(P,Y),i=(i=Math.imul(P,q))+Math.imul(R,Y)|0,o=Math.imul(R,q),n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(D,X)|0,i=(i=i+Math.imul(D,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(C,er)|0,i=(i=i+Math.imul(C,en)|0)+Math.imul(B,er)|0,o=o+Math.imul(B,en)|0,n=n+Math.imul(E,eo)|0,i=(i=i+Math.imul(E,ea)|0)+Math.imul(I,eo)|0,o=o+Math.imul(I,ea)|0,n=n+Math.imul(S,el)|0,i=(i=i+Math.imul(S,eu)|0)+Math.imul(k,el)|0,o=o+Math.imul(k,eu)|0,n=n+Math.imul(w,ed)|0,i=(i=i+Math.imul(w,eh)|0)+Math.imul(A,ed)|0,o=o+Math.imul(A,eh)|0;var eI=(u+(n=n+Math.imul(y,ep)|0)|0)+((8191&(i=(i=i+Math.imul(y,eg)|0)+Math.imul(b,ep)|0))<<13)|0;u=((o=o+Math.imul(b,eg)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=67108863,n=Math.imul(P,K),i=(i=Math.imul(P,J))+Math.imul(R,K)|0,o=Math.imul(R,J),n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(D,er)|0,i=(i=i+Math.imul(D,en)|0)+Math.imul(j,er)|0,o=o+Math.imul(j,en)|0,n=n+Math.imul(C,eo)|0,i=(i=i+Math.imul(C,ea)|0)+Math.imul(B,eo)|0,o=o+Math.imul(B,ea)|0,n=n+Math.imul(E,el)|0,i=(i=i+Math.imul(E,eu)|0)+Math.imul(I,el)|0,o=o+Math.imul(I,eu)|0,n=n+Math.imul(S,ed)|0,i=(i=i+Math.imul(S,eh)|0)+Math.imul(k,ed)|0,o=o+Math.imul(k,eh)|0;var e_=(u+(n=n+Math.imul(w,ep)|0)|0)+((8191&(i=(i=i+Math.imul(w,eg)|0)+Math.imul(A,ep)|0))<<13)|0;u=((o=o+Math.imul(A,eg)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=67108863,n=Math.imul(P,X),i=(i=Math.imul(P,ee))+Math.imul(R,X)|0,o=Math.imul(R,ee),n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(O,er)|0,o=o+Math.imul(O,en)|0,n=n+Math.imul(D,eo)|0,i=(i=i+Math.imul(D,ea)|0)+Math.imul(j,eo)|0,o=o+Math.imul(j,ea)|0,n=n+Math.imul(C,el)|0,i=(i=i+Math.imul(C,eu)|0)+Math.imul(B,el)|0,o=o+Math.imul(B,eu)|0,n=n+Math.imul(E,ed)|0,i=(i=i+Math.imul(E,eh)|0)+Math.imul(I,ed)|0,o=o+Math.imul(I,eh)|0;var eC=(u+(n=n+Math.imul(S,ep)|0)|0)+((8191&(i=(i=i+Math.imul(S,eg)|0)+Math.imul(k,ep)|0))<<13)|0;u=((o=o+Math.imul(k,eg)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=67108863,n=Math.imul(P,er),i=(i=Math.imul(P,en))+Math.imul(R,er)|0,o=Math.imul(R,en),n=n+Math.imul(N,eo)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(O,eo)|0,o=o+Math.imul(O,ea)|0,n=n+Math.imul(D,el)|0,i=(i=i+Math.imul(D,eu)|0)+Math.imul(j,el)|0,o=o+Math.imul(j,eu)|0,n=n+Math.imul(C,ed)|0,i=(i=i+Math.imul(C,eh)|0)+Math.imul(B,ed)|0,o=o+Math.imul(B,eh)|0;var eB=(u+(n=n+Math.imul(E,ep)|0)|0)+((8191&(i=(i=i+Math.imul(E,eg)|0)+Math.imul(I,ep)|0))<<13)|0;u=((o=o+Math.imul(I,eg)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=67108863,n=Math.imul(P,eo),i=(i=Math.imul(P,ea))+Math.imul(R,eo)|0,o=Math.imul(R,ea),n=n+Math.imul(N,el)|0,i=(i=i+Math.imul(N,eu)|0)+Math.imul(O,el)|0,o=o+Math.imul(O,eu)|0,n=n+Math.imul(D,ed)|0,i=(i=i+Math.imul(D,eh)|0)+Math.imul(j,ed)|0,o=o+Math.imul(j,eh)|0;var eT=(u+(n=n+Math.imul(C,ep)|0)|0)+((8191&(i=(i=i+Math.imul(C,eg)|0)+Math.imul(B,ep)|0))<<13)|0;u=((o=o+Math.imul(B,eg)|0)+(i>>>13)|0)+(eT>>>26)|0,eT&=67108863,n=Math.imul(P,el),i=(i=Math.imul(P,eu))+Math.imul(R,el)|0,o=Math.imul(R,eu),n=n+Math.imul(N,ed)|0,i=(i=i+Math.imul(N,eh)|0)+Math.imul(O,ed)|0,o=o+Math.imul(O,eh)|0;var eD=(u+(n=n+Math.imul(D,ep)|0)|0)+((8191&(i=(i=i+Math.imul(D,eg)|0)+Math.imul(j,ep)|0))<<13)|0;u=((o=o+Math.imul(j,eg)|0)+(i>>>13)|0)+(eD>>>26)|0,eD&=67108863,n=Math.imul(P,ed),i=(i=Math.imul(P,eh))+Math.imul(R,ed)|0,o=Math.imul(R,eh);var ej=(u+(n=n+Math.imul(N,ep)|0)|0)+((8191&(i=(i=i+Math.imul(N,eg)|0)+Math.imul(O,ep)|0))<<13)|0;u=((o=o+Math.imul(O,eg)|0)+(i>>>13)|0)+(ej>>>26)|0,ej&=67108863;var ez=(u+(n=Math.imul(P,ep))|0)+((8191&(i=(i=Math.imul(P,eg))+Math.imul(R,ep)|0))<<13)|0;return u=((o=Math.imul(R,eg))+(i>>>13)|0)+(ez>>>26)|0,ez&=67108863,l[0]=em,l[1]=ey,l[2]=eb,l[3]=ev,l[4]=ew,l[5]=eA,l[6]=ex,l[7]=eS,l[8]=ek,l[9]=eM,l[10]=e
vendor: 26,949 bytes, line 1
1E,l[11]=eI,l[12]=e_,l[13]=eC,l[14]=eB,l[15]=eT,l[16]=eD,l[17]=ej,l[18]=ez,0!==u&&(l[19]=u,r.length++),r};function y(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),u=Math.max(0,o-e.length+1);u<=l;u++){var c=o-u,d=(0|e.words[c])*(0|t.words[u]),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()}function b(e,t){this.x=e,this.y=t}Math.imul||(m=g),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?g(this,e,t):y(this,e,t)},b.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},b.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},b.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]]},b.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),u=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=r[c+f],g=n[c+f],m=r[c+f+a],y=n[c+f+a],b=d*m-h*y;y=d*y+h*m,m=b,r[c+f]=p+m,n[c+f]=g+y,r[c+f+a]=p-m,n[c+f+a]=g-y,f!==s&&(b=l*d-u*h,h=l*h+u*d,d=b)}},b.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},b.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}},b.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},b.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)},b.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},b.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),u=Array(n),c=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,u,n),this.transform(a,o,s,l,n,i),this.transform(u,o,c,d,n,i);for(var f=0;f<n;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[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),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&r);r>>=26,r+=(o/67108864|0)+(a>>>26),this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():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]>>>i&1}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 u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var c=0|this.words[l];this.words[l]=u<<26-o|c>>>o,u=c&s}return r&&0!==u&&(r.words[r.length++]=u),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):(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 u=0;u<r.length;u++)r.words[u]=0}var c=i.clone()._ishlnsubmul(a,1,l);0===c.negative&&(i=c,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.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(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.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=67108864%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},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),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var c=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(c),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(c),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(u)}},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 u=0,c=1;(r.words[0]&c)==0&&u<26;++u,c<<=1);if(u>0)for(r.iushrn(u);u-- >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 M(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 w(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 A(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(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 E(e){M.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)}w.prototype._tmp=function(){var e=new o(null);return e.words=Array(Math.ceil(this.n/13)),e},w.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},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(A,w),A.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},A.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(x,w),i(S,w),i(k,w),k.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 A;else if("p224"===e)t=new x;else if("p192"===e)t=new S;else if("p25519"===e)t=new k;else throw Error("Unknown prime "+e);return v[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.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")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.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)},M.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},M.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)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.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(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,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 y=this.pow(d,new o(1).iushln(p-m-1));h=h.redMul(y),d=y.redSqr(),f=f.redMul(d),p=m}return h},M.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},M.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 u=t.words[n],c=l-1;c>=0;c--){var d=u>>c&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===c)&&(i=this.mul(i,r[a]),s=0,a=0)}l=26}return i},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,M),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.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)},E.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)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},5532:function(e,t,r){"use strict";var n=r(8764).Buffer,i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__decorate||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},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;let u=l(r(3550)),c=l(r(7191)),d=s(r(1127)),h="function"!=typeof TextDecoder?d.TextDecoder:TextDecoder,f=new h("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"==typeof e&&(e=n.from(e,"utf8")),c.default.encode(n.from(e))},t.baseDecode=function(e){return n.from(c.default.decode(e))};class p extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}t.BorshError=p;class g{constructor(){this.buf=n.alloc(1024),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=n.concat([this.buf,n.alloc(1024)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(n.from(new u.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(n.from(new u.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(n.from(new u.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(n.from(new u.default(e).toArray("le",64)))}writeBuffer(e){this.buf=n.concat([n.from(this.buf.subarray(0,this.length)),e,n.alloc(1024)]),this.length+=e.length}writeString(e){this.maybeResize();let t=n.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(n.from(e))}writeArray(e,t){for(let r of(this.maybeResize(),this.writeU32(e.length),e))this.maybeResize(),t(r)}toArray(){return this.buf.subarray(0,this.length)}}function m(e,t,r){let n=r.value;r.value=function(...e){try{return n.apply(this,e)}catch(e){if(e instanceof RangeError){let t=e.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(t)>=0)throw new p("Reached the end of buffer when deserializing")}throw e}}}t.BinaryWriter=g;class y{constructor(e){this.buf=e,this.offset=0}readU8(){let e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){let e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){let e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){let e=this.readBuffer(8);return new u.default(e,"le")}readU128(){let e=this.readBuffer(16);return new u.default(e,"le")}readU256(){let e=this.readBuffer(32);return new u.default(e,"le")}readU512(){let e=this.readBuffer(64);return new u.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new p(`Expected buffer length ${e} isn't within bounds`);let t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){let e=this.readU32(),t=this.readBuffer(e);try{return f.decode(t)}catch(e){throw new p(`Error decoding UTF-8 string: ${e}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){let t=this.readU32(),r=[];for(let n=0;n<t;++n)r.push(e());return r}}function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}function v(e,t,r,n,i){try{if("string"==typeof n)i[`write${b(n)}`](r);else if(n instanceof Array){if("number"==typeof n[0]){if(r.length!==n[0])throw new p(`Expecting byte array of length ${n[0]}, but got ${r.length} bytes`);i.writeFixedArray(r)}else if(2===n.length&&"number"==typeof n[1]){if(r.length!==n[1])throw new p(`Expecting byte array of length ${n[1]}, but got ${r.length} bytes`);for(let t=0;t<n[1];t++)v(e,null,r[t],n[0],i)}else i.writeArray(r,r=>{v(e,t,r,n[0],i)})}else if(void 0!==n.kind)switch(n.kind){case"option":null==r?i.writeU8(0):(i.writeU8(1),v(e,t,r,n.type,i));break;case"map":i.writeU32(r.size),r.forEach((r,o)=>{v(e,t,o,n.key,i),v(e,t,r,n.value,i)});break;default:throw new p(`FieldType ${n} unrecognized`)}else w(e,r,i)}catch(e){throw e instanceof p&&e.addToFieldPath(t),e}}function w(e,t,r){if("function"==typeof t.borshSerialize){t.borshSerialize(r);return}let n=e.get(t.constructor);if(!n)throw new p(`Class ${t.constructor.name} is missing in schema`);if("struct"===n.kind)n.fields.map(([n,i])=>{v(e,n,t[n],i,r)});else if("enum"===n.kind){let i=t[n.field];for(let o=0;o<n.values.length;++o){let[a,s]=n.values[o];if(a===i){r.writeU8(o),v(e,a,t[a],s,r);break}}}else throw new p(`Unexpected schema kind: ${n.kind} for ${t.constructor.name}`)}function A(e,t,r,n){try{if("string"==typeof r)return n[`read${b(r)}`]();if(r instanceof Array){if("number"==typeof r[0])return n.readFixedArray(r[0]);if("number"!=typeof r[1])return n.readArray(()=>
1A(e,t,r[0],n));{let t=[];for(let i=0;i<r[1];i++)t.push(A(e,null,r[0],n));return t}}if("option"===r.kind){let i=n.readU8();if(i)return A(e,t,r.type,n);return}if("map"===r.kind){let i=new Map,o=n.readU32();for(let a=0;a<o;a++){let o=A(e,t,r.key,n),a=A(e,t,r.value,n);i.set(o,a)}return i}return x(e,r,n)}catch(e){throw e instanceof p&&e.addToFieldPath(t),e}}function x(e,t,r){if("function"==typeof t.borshDeserialize)return t.borshDeserialize(r);let n=e.get(t);if(!n)throw new p(`Class ${t.name} is missing in schema`);if("struct"===n.kind){let n={};for(let[i,o]of e.get(t).fields)n[i]=A(e,i,o,r);return new t(n)}if("enum"===n.kind){let i=r.readU8();if(i>=n.values.length)throw new p(`Enum index: ${i} is out of range`);let[o,a]=n.values[i],s=A(e,o,a,r);return new t({[o]:s})}throw new p(`Unexpected schema kind: ${n.kind} for ${t.constructor.name}`)}a([m],y.prototype,"readU8",null),a([m],y.prototype,"readU16",null),a([m],y.prototype,"readU32",null),a([m],y.prototype,"readU64",null),a([m],y.prototype,"readU128",null),a([m],y.prototype,"readU256",null),a([m],y.prototype,"readU512",null),a([m],y.prototype,"readString",null),a([m],y.prototype,"readFixedArray",null),a([m],y.prototype,"readArray",null),t.BinaryReader=y,t.serialize=function(e,t,r=g){let n=new r;return w(e,t,n),n.toArray()},t.deserialize=function(e,t,r,n=y){let i=new n(r),o=x(e,t,i);if(i.offset<r.length)throw new p(`Unexpected ${r.length-i.offset} bytes after deserialized data`);return o},t.deserializeUnchecked=function(e,t,r,n=y){let i=new n(r);return x(e,t,i)}},7191:function(e,t,r){var n=r(8162);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},8764:function(e,t,r){"use strict";/*!
2 * The buffer module from node.js, for the browser.
3 *
4 * @author   Feross Aboukhadijeh <https://feross.org>
5 * @license  MIT
6 */let n=r(258),i=r(645),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 c(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(L(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(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(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 u(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 c(e){return u(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)||L(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 z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(i)return n?-1:z(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+=P[e[n]];return i}(this,t,r);case"utf8":case"utf-8":return v(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;
vendor: 6,323 bytes, line 6
6e+=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 y(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 u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let n=-1;for(o=r;o<s;o++)if(u(e,o)===u(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(u(e,o+n)!==u(t,n)){r=!1;break}if(r)return o}return -1}function v(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 A(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 x(e,t,r,n,i){B(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 S(e,t,r,n,i){B(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 k(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function M(e,t,r,n,o){return t=+t,r>>>=0,o||k(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||k(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(u(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 c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(L(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),L(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(L(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?v(this,0,e):g.apply(this,arguments)}
vendor: 10,820 bytes, line 6
6,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(L(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),u=this.slice(n,i),c=e.slice(t,r);for(let e=0;e<l;++e)if(u[e]!==c[e]){o=u[e],a=c[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 y(this,e,t,r,!0)},s.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},s.prototype.write=function(e,t,r,n){var i,o,a,s,l,u,c,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,O(z(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return a=t,s=r,O(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,u=r,O(N(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,O(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-c),this,c,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=R(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(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=R(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(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=R(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+16777216*this[++e])}),s.prototype.readBigInt64BE=R(function(e){T(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&D(e,this.length-8);let n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<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;A(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;A(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||A(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||A(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||A(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||A(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||A(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=R(function(e,t=0){return x(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=R(function(e,t=0){return S(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);A(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);A(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||A(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||A(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||A(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||A(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||A(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=R(function(e,t=0){return x(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=R(function(e,t=0){return S(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},s.prototype.writeFloatBE=function(e,t,r){return M(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;
6if(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 I={};function _(e,t,r){I[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 C(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 B(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 I.ERR_OUT_OF_RANGE("value",n,e)}T(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&D(i,n.length-(o+1))}function T(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function D(e,t,r){if(Math.floor(e)!==e)throw T(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}_("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),_("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=C(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=C(i)),i+="n"),n+=` It must be ${t}. Received ${i}`},RangeError);let j=/[^+/0-9A-Za-z-_]/g;function z(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 N(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(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 L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let P=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 R(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},6729: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,u,c=this._events[s],d=arguments.length;
6if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,o),!0;case 6:return c.fn.call(c.context,t,n,i,o,a),!0}for(u=1,l=Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].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,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[o]=1===u.length?u[0]:u: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},8679:function(e,t,r){"use strict";var n=r(9864),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 u=Object.defineProperty,c=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=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),g=l(r),m=0;m<a.length;++m){var y=a[m];if(!o[y]&&!(n&&n[y])&&!(g&&g[y])&&!(s&&s[y])){var b=h(r,y);try{u(t,y,b)}catch(e){}}}}return t}},645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(f?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(f?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>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=c):(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>=c?(s=0,a=c):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,u+=i;u>0;e[r+f]=255&a,f+=p,a/=256,u-=8);e[r+f-p]|=128*g}},1198:function(e,t,r){"use strict";let n=r(4880).v4,i=r(7741),o=function(e,t){if(!(this instanceof o))return new o(e,t);t||(t={}),this.options={reviver:void 0!==t.reviver?t.reviver:null,replacer:void 0!==t.replacer?t.replacer:null,generator:void 0!==t.generator?t.generator:function(){return n()},version:void 0!==t.version?t.version:2,notificationIdNull:"boolean"==typeof t.notificationIdNull&&t.notificationIdNull},this.callServer=e};e.exports=o,o.prototype.request=function(e,t,r,n){let o;let a=this,s=null,l=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&l)throw TypeError("JSON-RPC 1.0 does not support batching");let u=!l&&e&&"object"==typeof e&&"function"==typeof t;if(l||u)n=t,s=e;else{"function"==typeof r&&(n=r,r=void 0);let o="function"==typeof n;try{s=i(e,t,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(o)return n(e);throw e}if(!o)return s}try{o=JSON.stringify(s,this.options.replacer)}catch(e){return n(e)}return this.callServer(o,function(e,t){a._parseResponse(e,t,n)}),s},o.prototype._parseResponse=function(e,t,r){let n;if(e){r(e);return}if(!t)return r();try{n=JSON.parse(t,this.options.reviver)}catch(e){return r(e)}if(3===r.length){if(!Array.isArray(n))return r(null,n.error,n.result);{let e=function(e){return void 0!==e.error};return r(null,n.filter(e),n.filter(function(t){return!e(t)}))}}r(null,n)}},7741:function(e,t,r){"use strict";let n=r(4880).v4;e.exports=function(e,t,r,i){if("string"!=typeof e)throw TypeError(e+" must be a string");i=i||{};let o="number"==typeof i.version?i.version:2;if(1!==o&&2!==o)throw TypeError(o+" must be 1 or 2");let a={method:e};if(2===o&&(a.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw TypeError(t+" must be an object, array or omitted");a.params=t}if(void 0===r){let e="function"==typeof i.generator?i.generator:function(){return n()};a.id=e(a,i)}else 2===o&&null===r?i.notificationIdNull&&(a.id=null):a.id=r;return a}},8554:function(e,t,r){e=r.nmd(e);var n,i,o,a,s,l,u,c,d,h,f="__lodash_hash_undefined__",p="[object Arguments]",g="[object Function]",m="[object Object]",y=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,v={};
vendor: 4,348 bytes, line 6
6v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[p]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v[g]=v["[object Map]"]=v["[object Number]"]=v[m]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1;var w="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,A="object"==typeof self&&self&&self.Object===Object&&self,x=w||A||Function("return this")(),S=t&&!t.nodeType&&t,k=S&&e&&!e.nodeType&&e,M=k&&k.exports===S,E=M&&w.process,I=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return E&&E.binding&&E.binding("util")}catch(e){}}(),_=I&&I.isTypedArray,C=Array.prototype,B=Function.prototype,T=Object.prototype,D=x["__core-js_shared__"],j=B.toString,z=T.hasOwnProperty,N=(l=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",O=T.toString,L=j.call(Object),P=RegExp("^"+j.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=M?x.Buffer:void 0,F=x.Symbol,U=x.Uint8Array,W=R?R.allocUnsafe:void 0,H=(u=Object.getPrototypeOf,c=Object,function(e){return u(c(e))}),V=Object.create,Q=T.propertyIsEnumerable,$=C.splice,Y=F?F.toStringTag:void 0,q=function(){try{var e=eh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),G=R?R.isBuffer:void 0,K=Math.max,J=Date.now,Z=eh(x,"Map"),X=eh(Object,"create"),ee=function(){function e(){}return function(t){if(!ek(t))return{};if(V)return V(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function et(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 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=this.__data__=new er(e);this.size=t.size}function eo(e,t,r){(void 0===r||ey(e[t],r))&&(void 0!==r||t in e)||es(e,t,r)}function ea(e,t){for(var r=e.length;r--;)if(ey(e[r][0],t))return r;return -1}function es(e,t,r){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}et.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},et.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},et.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return r===f?void 0:r}return z.call(t,e)?t[e]:void 0},et.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:z.call(t,e)},et.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?f:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,r=ea(t,e);return!(r<0)&&(r==t.length-1?t.pop():$.call(t,r,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,r=ea(t,e);return r<0?void 0:t[r][1]},er.prototype.has=function(e){return ea(this.__data__,e)>-1},er.prototype.set=function(e,t){var r=this.__data__,n=ea(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},en.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(Z||er),string:new et}},en.prototype.delete=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},en.prototype.get=function(e){return ed(this,e).get(e)},en.prototype.has=function(e){return ed(this,e).has(e)},en.prototype.set=function(e,t){var r=ed(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ei.prototype.clear=function(){this.__data__=new er,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var r=this.__data__;if(r instanceof er){var n=r.__data__;if(!Z||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new en(n)}return r.set(e,t),this.size=r.size,this};var el=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};
6function eu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Y&&Y in Object(e)?function(e){var t=z.call(e,Y),r=e[Y];try{e[Y]=void 0;var n=!0}catch(e){}var i=O.call(e);return n&&(t?e[Y]=r:delete e[Y]),i}(e):O.call(e)}function ec(e){return eM(e)&&eu(e)==p}function ed(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 eh(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||N&&N in r)&&(ex(r)?P:y).test(function(e){if(null!=e){try{return j.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function ef(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&b.test(e))&&e>-1&&e%1==0&&e<t}function ep(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||T;return e===r}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var em=(n=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eC,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 ey(e,t){return e===t||e!=e&&t!=t}var eb=ec(function(){return arguments}())?ec:function(e){return eM(e)&&z.call(e,"callee")&&!Q.call(e,"callee")},ev=Array.isArray;function ew(e){return null!=e&&eS(e.length)&&!ex(e)}var eA=G||function(){return!1};function ex(e){if(!ek(e))return!1;var t=eu(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eS(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 eM(e){return null!=e&&"object"==typeof e}var eE=_?function(e){return _(e)}:function(e){return eM(e)&&eS(e.length)&&!!v[eu(e)]};function eI(e){return ew(e)?function(e,t){var r=ev(e),n=!r&&eb(e),i=!r&&!n&&eA(e),o=!r&&!n&&!i&&eE(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 u in e)(t||z.call(e,u))&&!(a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ef(u,l)))&&s.push(u);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=ep(e),r=[];for(var n in e)"constructor"==n&&(t||!z.call(e,n))||r.push(n);return r}(e)}var e_=(d=function(e,t,r,n){!function e(t,r,n,i,o){t!==r&&el(r,function(a,s){if(o||(o=new ei),ek(a))(function(e,t,r,n,i,o,a){var s=eg(e,r),l=eg(t,r),u=a.get(l);if(u){eo(e,r,u);return}var c=o?o(s,l,r+"",e,t,a):void 0,d=void 0===c;if(d){var h,f,p=ev(l),g=!p&&eA(l),y=!p&&!g&&eE(l);c=l,p||g||y?ev(s)?c=s:eM(s)&&ew(s)?c=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):g?(d=!1,c=function(e,t){if(t)return e.slice();var r=e.length,n=W?W(r):new e.constructor(r);return e.copy(n),n}(l,!0)):y?(d=!1,f=new(h=l.buffer).constructor(h.byteLength),new U(f).set(new U(h)),c=new l.constructor(f,l.byteOffset,l.length)):c=[]:function(e){if(!eM(e)||eu(e)!=m)return!1;var t=H(e);if(null===t)return!0;var r=z.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&j.call(r)==L}(l)||eb(l)?(c=s,eb(s)?c=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;void 0===l&&(l=e[s]),i?es(r,s,l):function(e,t,r){var n=e[t];z.call(e,t)&&ey(n,r)&&(void 0!==r||t in e)||es(e,t,r)}(r,s,l)}return r}(s,eI(s)):(!ek(s)||ex(s))&&(c="function"!=typeof l.constructor||ep(l)?{}:ee(H(l)))):d=!1}d&&(a.set(l,c),i(c,l,n,o,a),a.delete(l)),eo(e,r,c)})(t,r,s,n,e,i,o);else{var l=i?i(eg(t,s),a,s+"",t,r,o):void 0;void 0===l&&(l=a),eo(t,s,l)}},eI)}(e,t,r,n)},em((a=h=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=d.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?!!(ew(r)&&ef(t,r.length)):"string"==n&&(t in r))&&ey(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&&d(e,a,r,i)}return e},s=K((s=void 0,a.length-1),0),function(){for(var e=arguments,t=-1,r=K(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]=eC(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)}),h+""));function eC(e){return e}e.exports=e_},1118:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(1597)}])},2181:function(e,t,r){"use strict";function n(e){}
6Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(8754),r(7294),("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)},2142: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 f},useSearchParams:function(){return p},usePathname:function(){return g},ServerInsertedHTMLContext:function(){return l.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return l.useServerInsertedHTML},useRouter:function(){return m},useParams:function(){return y},useSelectedLayoutSegments:function(){return b},useSelectedLayoutSegment:function(){return v},redirect:function(){return u.redirect},notFound:function(){return c.notFound}});let n=r(7294),i=r(2496),o=r(8783),a=r(2181),s=r(3357),l=r(5305),u=r(8226),c=r(3445),d=Symbol("internal for urlsearchparams readonly");function h(){return Error("ReadonlyURLSearchParams cannot be modified")}class f{[Symbol.iterator](){return this[d][Symbol.iterator]()}append(){throw h()}delete(){throw h()}set(){throw h()}sort(){throw h()}constructor(e){this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function p(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(o.SearchParamsContext),t=(0,n.useMemo)(()=>e?new f(e):null,[e]);return t}function g(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function m(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(i.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function y(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(i.GlobalLayoutRouterContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],i=Array.isArray(n),o=i?n[1]:n;!o||o.startsWith("__PAGE__")||(i&&(r[n[0]]=n[1]),r=e(t,r))}return r}(e.tree):null}function b(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(i.LayoutRouterContext);return 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 a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return i;let l=o[0],u=(0,s.getSegmentValue)(l);return!u||u.startsWith("__PAGE__")?i:(i.push(u),e(o,r,!1,i))}(t,e)}function v(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=b(e);return 0===t.length?null:t[0]}("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)},3445: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,{notFound:function(){return n},isNotFoundError:function(){return i}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function i(e){return(null==e?void 0: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)},8226: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 s},redirect:function(){return l},isRedirectError:function(){return u},getURLFromRedirectError:function(){return c},getRedirectTypeFromError:function(){return d}});
6let o=r(4437),a="NEXT_REDIRECT";function s(e,t){let r=Error(a);r.digest=a+";"+t+";"+e;let n=o.requestAsyncStorage.getStore();return n&&(r.mutableCookies=n.mutableCookies),r}function l(e,t){throw void 0===t&&(t="replace"),s(e,t)}function u(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n]=e.digest.split(";",3);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n}function c(e){return u(e)?e.digest.split(";",3)[2]:null}function d(e){if(!u(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(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)},3357: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)},1233: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,{noSSR:function(){return a},default:function(){return s}});let n=r(8754),i=(r(7294),n._(r(2849)));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}),n={...n,...t};let s=n.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)},6314:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let n=r(8754),i=n._(r(7294)),o=i.default.createContext(null)},2849:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(8754),i=n._(r(7294)),o=r(6314),a=[],s=[],l=!1;function u(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 d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function a(){if(!n){let t=new c(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!l){let e=r.webpack?r.webpack():r.modules;e&&s.push(t=>{for(let r of e)if(t.includes(r))return a()})}function u(e,t){!function(){a();let e=i.default.useContext(o.LoadableContext);
6e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(r.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:n.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return u.preload=()=>a(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(a).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(l=!0,t());h(s,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},5305: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 o},useServerInsertedHTML:function(){return a}});let n=r(1757),i=n._(r(7294)),o=i.default.createContext(null);function a(e){let t=(0,i.useContext)(o);t&&t(e)}},1597:function(e,t,r){"use strict";let n,i,o;r.r(t),r.d(t,{default:function(){return s3}});var a,s,l,u,c,d,h,f,p,g,m,y,b,v,w,A,x,S,k,M,E,I,_,C,B,T,D,j,z,N,O,L,P,R,F,U,W,H,V,Q,$,Y,q,G,K,J,Z=r(5893);r(9160),r(2520);var X=r(9008),ee=r.n(X);let et=e=>{let{title:t,keywords:r,description:n}=e;return(0,Z.jsxs)(ee(),{children:[(0,Z.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,Z.jsx)("meta",{name:"keywords",content:r}),(0,Z.jsx)("meta",{name:"description",content:n}),(0,Z.jsx)("meta",{charSet:"utf-8"}),(0,Z.jsx)("link",{rel:"icon",href:"/favicon.ico"}),(0,Z.jsx)("title",{children:t})]})};et.defaultProps={title:"Tio Toolz",keywords:"Frakt, Banx, Dashboard",description:"Tio Toolz by @CryptoTioSam"};var er=r(2498),en=r(1941),ei=r(3100),eo=r(204),ea=r(6989),es=r(6877),el=r(6272),eu=r(5059),ec=r(7294),ed=(0,eu.G)((e,t)=>{let{icon:r,children:n,isRound:i,"aria-label":o,...a}=e,s=r||n,l=(0,ec.isValidElement)(s)?(0,ec.cloneElement)(s,{"aria-hidden":!0,focusable:!1}):null;return(0,Z.jsx)(el.z,{padding:"0",borderRadius:i?"full":void 0,ref:t,"aria-label":o,...a,children:l})});ed.displayName="IconButton";var eh=r(6118),ef=r(7335),ep=r(4151),eg=r(5227),em=r(5119),[ey,eb]=(0,eg.k)(),ev={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function ew(e){var t;let{isOpen:r,onClose:n,placement:i="right",children:o,...a}=e,s=(0,em.F)(),l=null==(t=s.components)?void 0:t.Drawer,u=function(e,t){var r,n;if(e)return null!=(n=null==(r=ev[e])?void 0:r[t])?n:e}(i,s.direction);return(0,Z.jsx)(ey,{value:{placement:u},children:(0,Z.jsx)(ep.u_,{isOpen:r,onClose:n,styleConfig:l,...a,children:o})})}var eA=r(2452),ex=r(5432),eS=r(1337),ek=r(9155),eM=r(1526),eE=r(8419),eI={exit:{duration:.15,ease:ek.Lj.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},e_={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{var i;let{exit:o}=(0,ek.js)({direction:e});return{...o,transition:null!=(i=null==t?void 0:t.exit)?i:ek.p$.exit(eI.exit,n),transitionEnd:null==r?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{var i;let{enter:o}=(0,ek.js)({direction:e});return{...o,transition:null!=(i=null==r?void 0:r.enter)?i:ek.p$.enter(eI.enter,n),transitionEnd:null==t?void 0:t.enter}}},eC=(0,ec.forwardRef)(function(e,t){let{direction:r="right",style:n,unmountOnExit:i,in:o,className:a,transition:s,transitionEnd:l,delay:u,motionProps:c,...d}=e,h=(0,ek.js)({direction:r}),f=Object.assign({position:"fixed"},h.position,n),p=!i||o&&i,g=o||i?"enter":"exit",m={transitionEnd:l,transition:s,direction:r,delay:u};return(0,Z.jsx)(eM.M,{custom:m,children:p&&(0,Z.jsx)(eE.E.div,{...d,ref:t,initial:"exit",className:(0,ex.cx)("chakra-slide",a),animate:g,exit:"exit",custom:m,variants:e_,style:f,...c})})});eC.displayName="Slide";var eB=(0,eS.m)(eC),eT=(0,eu.G)((e,t)=>{let{className:r,children:n,motionProps:i,containerProps:o,...a}=e,{getDialogProps:s,getDialogContainerProps:l,isOpen:u}=(0,ep.vR)(),c=s(a,t),d=l(o),h=(0,ex.cx)("chakra-modal__content",r),f=(0,ep.I_)(),p={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{placement:m}=eb();return(0,Z.jsx)(eA.M,{children:(0,Z.jsx)(eS.m.div,{...d,className:"chakra-modal__content-container",__css:g,children:(0,Z.jsx)(eB,{motionProps:i,direction:m,in:u,className:h,...c,__css:p,children:n})})})});eT.displayName="DrawerContent";var eD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ej=ec.createContext&&ec.createContext(eD),ez=function(){return(ez=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)},eN=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};function eO(e){return function(t){return ec.createElement(eL,ez({attr:ez({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return ec.createElement(t.tag,ez({key:r},t.attr),e(t.child))})}(e.child))}}function eL(e){var t=function(t){var r,n=e.attr,i=e.size,o=e.title,a=eN(e,["attr","size","title"]),s=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),ec.createElement("svg",ez({stroke:"currentColor",fill:"
6currentColor",strokeWidth:"0"},t.attr,n,a,{className:r,style:ez(ez({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&ec.createElement("title",null,o),e.children)};return void 0!==ej?ec.createElement(ej.Consumer,null,function(e){return t(e)}):t(eD)}function eP(e){return eO({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"3",y1:"12",x2:"21",y2:"12"}},{tag:"line",attr:{x1:"3",y1:"6",x2:"21",y2:"6"}},{tag:"line",attr:{x1:"3",y1:"18",x2:"21",y2:"18"}}]})(e)}var eR=r(78),eF=(0,eR.I)({d:"M21.4,13.7C20.6,13.9,19.8,14,19,14c-5,0-9-4-9-9c0-0.8,0.1-1.6,0.3-2.4c0.1-0.3,0-0.7-0.3-1 c-0.3-0.3-0.6-0.4-1-0.3C4.3,2.7,1,7.1,1,12c0,6.1,4.9,11,11,11c4.9,0,9.3-3.3,10.6-8.1c0.1-0.3,0-0.7-0.3-1 C22.1,13.7,21.7,13.6,21.4,13.7z",displayName:"MoonIcon"}),eU=(0,eR.I)({displayName:"SunIcon",path:(0,Z.jsxs)("g",{strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",children:[(0,Z.jsx)("circle",{cx:"12",cy:"12",r:"5"}),(0,Z.jsx)("path",{d:"M12 1v2"}),(0,Z.jsx)("path",{d:"M12 21v2"}),(0,Z.jsx)("path",{d:"M4.22 4.22l1.42 1.42"}),(0,Z.jsx)("path",{d:"M18.36 18.36l1.42 1.42"}),(0,Z.jsx)("path",{d:"M1 12h2"}),(0,Z.jsx)("path",{d:"M21 12h2"}),(0,Z.jsx)("path",{d:"M4.22 19.78l1.42-1.42"}),(0,Z.jsx)("path",{d:"M18.36 5.64l1.42-1.42"})]})}),eW=function(){let{colorMode:e,toggleColorMode:t}=(0,er.If)();return(0,Z.jsx)(el.z,{colorScheme:"green",onClick:t,size:"sm",children:"light"===e?(0,Z.jsx)(eF,{}):(0,Z.jsx)(eU,{})})},eH=r(5152),eV=r.n(eH);let eQ=eV()(async()=>await r.e(300).then(r.bind(r,5300)),{loadableGenerated:{webpack:()=>[5300]},ssr:!1}),e$=[{name:"Best Deals",href:"/",icon:function(e){return eO({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"}},{tag:"path",attr:{d:"M21 21l-6 -6"}},{tag:"path",attr:{d:"M12 7h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5"}},{tag:"path",attr:{d:"M10 13v1m0 -8v1"}}]})(e)}},{name:"All Setz",href:"/allsetz",icon:function(e){return eO({tag:"svg",attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.895 16.553l-4-8c-.339-.678-1.45-.678-1.789 0l-4 8c-.247.494-.047 1.095.447 1.342.495.248 1.095.046 1.342-.447l.723-1.448h4.764l.724 1.447c.175.351.528.553.895.553.15 0 .303-.034.446-.105.494-.248.695-.848.448-1.342zm-6.277-2.553l1.382-2.764 1.382 2.764h-2.764zM22 18h-6c-.379 0-.725-.214-.895-.553s-.132-.744.095-1.047l4.8-6.4h-4c-.552 0-1-.448-1-1s.448-1 1-1h6c.379 0 .725.214.895.553s.132.744-.095 1.047l-4.8 6.4h4c.552 0 1 .448 1 1s-.448 1-1 1zM14 14h-2c-.552 0-1-.448-1-1s.448-1 1-1h2c.552 0 1 .448 1 1s-.448 1-1 1z"}}]})(e)}},{name:"Set Listed",href:"/sets",icon:function(e){return eO({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z"}},{tag:"path",attr:{d:"M7 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 1 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0zM7 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm-1.496-.854a.5.5 0 0 1 0 .708l-1.5 1.5a.5.5 0 0 1-.708 0l-.5-.5a.5.5 0 0 1 .708-.708l.146.147 1.146-1.147a.5.5 0 0 1 .708 0z"}}]})(e)}},{name:"My Sets",href:"/mysets",icon:function(e){return eO({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 9.67l1.69 2.26 2.48-3.1L19 15H9zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}}];function eY(){let{colorMode:e}=(0,er.If)();return(0,Z.jsx)(Z.Fragment,{children:"light"===e?(0,Z.jsx)(en.E,{src:"/rocket-dark.png",h:10,w:20}):(0,Z.jsx)(en.E,{src:"/rocket-light.png",h:10,w:20})})}function eq(){let{colorMode:e}=(0,er.If)();return(0,Z.jsx)(Z.Fragment,{children:"light"===e?(0,Z.jsx)(en.E,{src:"/rocket-dark.png",h:10,w:20,display:{base:"flex",md:"none"}}):(0,Z.jsx)(en.E,{src:"/rocket-light.png",h:10,w:20,display:{base:"flex",md:"none"}})})}let eG=e=>{let{onClose:t,...r}=e;return(0,Z.jsxs)(ei.xu,{transition:"3s ease",bg:(0,er.ff)("white","gray.900"),borderRight:"1px",borderRightColor:(0,er.ff)("gray.200","gray.700"),w:{base:"full",md:60},pos:"fixed",h:"full",...r,children:[(0,Z.jsxs)(eo.k,{h:"20",alignItems:"center",mx:"8",justifyContent:"space-between",children:[(0,Z.jsx)(eY,{}),(0,Z.jsx)(ea.P,{display:{base:"flex",md:"none"},onClick:t})]}),e$.map(e=>(0,Z.jsx)(eK,{icon:e.icon,href:e.href,children:e.name},e.name))]})},eK=e=>{let{icon:t,href:r,children:n,...i}=e;return(0,Z.jsx)(ei.xu,{as:"a",href:r,style:{textDecoration:"none"},_focus:{boxShadow:"none"},children:(0,Z.jsxs)(eo.k,{align:"center",p:"4",mx:"4",borderRadius:"lg",role:"group",cursor:"pointer",_hover:{bg:"green.200",color:"gray.800"},...i,children:[t&&(0,Z.jsx)(es.J,{mr:"4",fontSize:"16",_groupHover:{color:"white"},as:t}),n]})})},eJ=e=>{let{onOpen:t,...r}=e;return(0,Z.jsxs)(eo.k,{ml:{base:0,md:60},px:{base:4,md:4},height:"20",alignItems:"center",bg:(0,er.ff)("white","gray.900"),borderBottomWidth:"1px",borderBottomColor:(0,er.ff)("gray.200","gray.700"),justifyContent:{base
6:"space-between",md:"flex-end"},...r,children:[(0,Z.jsx)(ed,{display:{base:"flex",md:"none"},onClick:t,variant:"outline","aria-label":"open menu",icon:(0,Z.jsx)(eP,{})}),(0,Z.jsx)(eq,{}),(0,Z.jsxs)(eh.K,{flex:{base:1,md:0},justify:"flex-end",direction:"row",spacing:6,children:[(0,Z.jsx)(eQ,{}),(0,Z.jsx)(eW,{})]})]})};var eZ=e=>{let{children:t}=e,{isOpen:r,onOpen:n,onClose:i}=(0,ef.q)();return(0,Z.jsxs)(ei.xu,{minH:"100vh",bg:(0,er.ff)("gray.100","gray.900"),children:[(0,Z.jsx)(eG,{onClose:()=>i,display:{base:"none",md:"block"}}),(0,Z.jsx)(ew,{isOpen:r,placement:"left",onClose:i,returnFocusOnClose:!1,onOverlayClick:i,size:"full",children:(0,Z.jsx)(eT,{children:(0,Z.jsx)(eG,{onClose:i})})}),(0,Z.jsx)(eJ,{onOpen:n}),(0,Z.jsx)(ei.xu,{ml:{base:0,md:60},p:"4",children:t})]})},eX=e=>{let{children:t}=e;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(et,{title:"Tio Toolz"}),(0,Z.jsx)(eZ,{children:t})]})},e0=r(8417),e1=r(9332),e2=null!=(u=e0.Z.default)?u:e0.Z,e4=r(1463);function e5({children:e,...t}){return(0,Z.jsx)(e4.C,{value:function(e){let t=(0,ec.useMemo)(()=>{let t=e2({key:"css",prepend:!0,...e});return t.compat=!0,t},[e]);return(0,e1.useServerInsertedHTML)(()=>(0,ec.createElement)("style",{key:t.key,"data-emotion":`${t.key} ${Object.keys(t.inserted).join(" ")}`,dangerouslySetInnerHTML:{__html:Object.values(t.inserted).join(" ")}})),t}(t),children:e})}var e3=r(917),e6=String.raw,e8=e6`
7  :root,
8  :host {
9    --chakra-vh: 100vh;
10  }
11
12  @supports (height: -webkit-fill-available) {
13    :root,
14    :host {
15      --chakra-vh: -webkit-fill-available;
16    }
17  }
18
19  @supports (height: -moz-fill-available) {
20    :root,
21    :host {
22      --chakra-vh: -moz-fill-available;
23    }
24  }
25
26  @supports (height: 100dvh) {
27    :root,
28    :host {
29      --chakra-vh: 100dvh;
30    }
31  }
32`,e7=()=>(0,Z.jsx)(e3.xB,{styles:e8}),e9=({scope:e=""})=>(0,Z.jsx)(e3.xB,{styles:e6`
33      html {
34        line-height: 1.5;
35        -webkit-text-size-adjust: 100%;
36        font-family: system-ui, sans-serif;
37        -webkit-font-smoothing: antialiased;
38        text-rendering: optimizeLegibility;
39        -moz-osx-font-smoothing: grayscale;
40        touch-action: manipulation;
41      }
42
43      body {
44        position: relative;
45        min-height: 100%;
46        margin: 0;
47        font-feature-settings: "kern";
48      }
49
50      ${e} :where(*, *::before, *::after) {
51        border-width: 0;
52        border-style: solid;
53        box-sizing: border-box;
54        word-wrap: break-word;
55      }
56
57      main {
58        display: block;
59      }
60
61      ${e} hr {
62        border-top-width: 1px;
63        box-sizing: content-box;
64        height: 0;
65        overflow: visible;
66      }
67
68      ${e} :where(pre, code, kbd,samp) {
69        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
70        font-size: 1em;
71      }
72
73      ${e} a {
74        background-color: transparent;
75        color: inherit;
76        text-decoration: inherit;
77      }
78
79      ${e} abbr[title] {
80        border-bottom: none;
81        text-decoration: underline;
82        -webkit-text-decoration: underline dotted;
83        text-decoration: underline dotted;
84      }
85
86      ${e} :where(b, strong) {
87        font-weight: bold;
88      }
89
90      ${e} small {
91        font-size: 80%;
92      }
93
94      ${e} :where(sub,sup) {
95        font-size: 75%;
96        line-height: 0;
97        position: relative;
98        vertical-align: baseline;
99      }
100
101      ${e} sub {
102        bottom: -0.25em;
103      }
104
105      ${e} sup {
106        top: -0.5em;
107      }
108
109      ${e} img {
110        border-style: none;
111      }
112
113      ${e} :where(button, input, optgroup, select, textarea) {
114        font-family: inherit;
115        font-size: 100%;
116        line-height: 1.15;
117        margin: 0;
118      }
119
120      ${e} :where(button, input) {
121        overflow: visible;
122      }
123
124      ${e} :where(button, select) {
125        text-transform: none;
126      }
127
128      ${e} :where(
129          button::-moz-focus-inner,
130          [type="button"]::-moz-focus-inner,
131          [type="reset"]::-moz-focus-inner,
132          [type="submit"]::-moz-focus-inner
133        ) {
134        border-style: none;
135        padding: 0;
136      }
137
138      ${e} fieldset {
139        padding: 0.35em 0.75em 0.625em;
140      }
141
142      ${e} legend {
143        box-sizing: border-box;
144        color: inherit;
145        display: table;
146        max-width: 100%;
147        padding: 0;
148        white-space: normal;
149      }
150
151      ${e} progress {
152        vertical-align: baseline;
153      }
154
155      ${e} textarea {
156        overflow: auto;
157      }
158
159      ${e}
159 :where([type="checkbox"], [type="radio"]) {
160        box-sizing: border-box;
161        padding: 0;
162      }
163
164      ${e} input[type="number"]::-webkit-inner-spin-button,
165      ${e} input[type="number"]::-webkit-outer-spin-button {
166        -webkit-appearance: none !important;
167      }
168
169      ${e} input[type="number"] {
170        -moz-appearance: textfield;
171      }
172
173      ${e} input[type="search"] {
174        -webkit-appearance: textfield;
175        outline-offset: -2px;
176      }
177
178      ${e} input[type="search"]::-webkit-search-decoration {
179        -webkit-appearance: none !important;
180      }
181
182      ${e} ::-webkit-file-upload-button {
183        -webkit-appearance: button;
184        font: inherit;
185      }
186
187      ${e} details {
188        display: block;
189      }
190
191      ${e} summary {
192        display: list-item;
193      }
194
195      template {
196        display: none;
197      }
198
199      [hidden] {
200        display: none !important;
201      }
202
203      ${e} :where(
204          blockquote,
205          dl,
206          dd,
207          h1,
208          h2,
209          h3,
210          h4,
211          h5,
212          h6,
213          hr,
214          figure,
215          p,
216          pre
217        ) {
218        margin: 0;
219      }
220
221      ${e} button {
222        background: transparent;
223        padding: 0;
224      }
225
226      ${e} fieldset {
227        margin: 0;
228        padding: 0;
229      }
230
231      ${e} :where(ol, ul) {
232        margin: 0;
233        padding: 0;
234      }
235
236      ${e} textarea {
237        resize: vertical;
238      }
239
240      ${e} :where(button, [role="button"]) {
241        cursor: pointer;
242      }
243
244      ${e} button::-moz-focus-inner {
245        border: 0 !important;
246      }
247
248      ${e} table {
249        border-collapse: collapse;
250      }
251
252      ${e} :where(h1, h2, h3, h4, h5, h6) {
253        font-size: inherit;
254        font-weight: inherit;
255      }
256
257      ${e} :where(button, input, optgroup, select, textarea) {
258        padding: 0;
259        line-height: inherit;
260        color: inherit;
261      }
262
263      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
264        display: block;
265      }
266
267      ${e} :where(img, video) {
268        max-width: 100%;
269        height: auto;
270      }
271
272      [data-js-focus-visible]
273        :focus:not([data-focus-visible-added]):not(
274          [data-focus-visible-disabled]
275        ) {
276        outline: none;
277        box-shadow: none;
278      }
279
280      ${e} select::-ms-expand {
281        display: none;
282      }
283
284      ${e8}
285    `}),te=r(6810),tt=r(6452),tr={light:"chakra-ui-light",dark:"chakra-ui-dark"},tn="chakra-ui-color-mode",ti={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(tn)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(tn,e)}catch(e){}}},to=r(6245),ta=()=>{};function ts(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function tl(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=ti}=e,s="dark"===i?"dark":"light",[l,u]=(0,ec.useState)(()=>ts(a,s)),[c,d]=(0,ec.useState)(()=>ts(a)),{getSystemTheme:h,setClassName:f,setDataset:p,addListener:g}=(0,ec.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?tr.dark:tr.light),document.body.classList.remove(e?tr.light:tr.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let n=null!=(t=r.query().matches)?t:"dark"===e;return n?"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:o}),[o]),m="system"!==i||l?l:c,y=(0,ec.useCallback)(e=>{let t="system"===e?h():e;u(t),f("dark"===t),p(t),a.set(t)},[a,h,f,p]);(0,to.G)(()=>{"system"===i&&d(h())},[]),(0,ec.useEffect)(()=>{let e=a.get();if(e){y(e);return}if("system"===i){y("system");return}y(s)},[a,s,i,y]);let b=(0,ec.useCallback)(()=>{y("dark"===m?"light":"dark")},[m,y]);(0,ec.useEffect)(()=>
285{if(n)return g(y)},[n,g,y]);let v=(0,ec.useMemo)(()=>({colorMode:null!=t?t:m,toggleColorMode:t?ta:b,setColorMode:t?ta:y,forced:void 0!==t}),[m,b,y,t]);return(0,Z.jsx)(er.kc.Provider,{value:v,children:r})}tl.displayName="ColorModeProvider";var tu=r(1607),tc=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,Z.jsx)(tu.u,{environment:s,disabled:u,children:t});return(0,Z.jsx)(tt.f6,{theme:a,cssVarsRoot:l,children:(0,Z.jsxs)(tl,{colorModeManager:r,options:a.config,children:[o?(0,Z.jsx)(e9,{scope:i}):(0,Z.jsx)(e7,{}),!c&&(0,Z.jsx)(tt.ZL,{}),n?(0,Z.jsx)(te.h,{zIndex:n,children:d}):d]})})},td={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"}},th={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"},tf={...th,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"}},tp={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"}},...td,sizes:tf,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","dar
285k-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:th,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"}}},tg=r(3179),{defineMultiStyleConfig:tm,definePartsStyle:ty}=(0,tg.D)(["stepper","step","title","description","indicator","separator","icon","number"]),tb=(0,tg.gJ)("stepper-indicator-size"),tv=(0,tg.gJ)("stepper-icon-size"),tw=(0,tg.gJ)("stepper-title-font-size"),tA=(0,tg.gJ)("stepper-description-font-size"),tx=(0,tg.gJ)("stepper-accent-color"),tS=tm({baseStyle:ty(({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"},[tx.variable]:`colors.${e}.500`,_dark:{[tx.variable]:`colors.${e}.200`}},title:{fontSize:tw.reference,fontWeight:"medium"},description:{fontSize:tA.reference,color:"chakra-subtle-text"},number:{fontSize:tw.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:tv.reference,height:tv.reference},indicator:{flexShrink:0,borderRadius:"full",width:tb.reference,height:tb.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:tx.reference},"&[data-status=complete]":{bg:tx.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:tx.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${tb.reference} - 8px)`,top:`calc(${tb.reference} + 4px)`,insetStart:`calc(${tb.reference} / 2 - 1px)`}}})),sizes:{xs:ty({stepper:{[tb.variable]:"sizes.4",[tv.variable]:"sizes.3",[tw.variable]:"fontSizes.xs",[tA.variable]:"fontSizes.xs"}}),sm:ty({stepper:{[tb.variable]:"sizes.6",[tv.variable]:"sizes.4",[tw.variable]:"fontSizes.sm",[tA.variable]:"fontSizes.xs"}}),md:ty({stepper:{[tb.variable]:"sizes.8",[tv.variable]:"sizes.5",[tw.variable]:"fontSizes.md",[tA.variable]:"fontSizes.sm"}}),lg:ty({stepper:{[tb.variable]:"sizes.10",[tv.variable]:"sizes.6",[tw.variable]:"fontSizes.lg",[tA.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function tk(e,t={}){let r=!1;function n(t){let r=["container","root"].includes(null!=t?t:"")?[e]:[e,t],n=r.filter(Boolean).join("__"),i=`chakra-${n}`,o={className:i,selector:`.${i}`,toString:()=>t};return o}return{parts:function(...i){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(...) ?")}(),i))t[e]=n(e);return tk(e,t)},toPart:n,extend:function(...r){for(let e of r)e in t||(t[e]=n(e));return tk(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var tM=tk("accordion").parts("root","container","button","panel").extend("icon"),tE=tk("alert").parts("title","description","container").extend("icon","spinner"),tI=tk("avatar").parts("label","badge","container").extend("excessLabel","group"),t_=tk("breadcrumb").parts("link","item","container").extend("separator");tk("button").parts();var tC=tk("checkbox").parts("control","icon","container").extend("label");tk("progress").parts("track","filledTrack").extend("label");var tB=tk("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tT=tk("editable").parts("preview","input","textarea"),tD=tk("form").parts("container","requiredIndicator","helperText"),tj=tk("formError").parts("text","icon"),tz=tk("input").parts("addon","field","element"),tN=tk("list").parts("container","item","icon"),tO=tk("menu").parts("button","list","item").extend("groupTitle","command","divider"),tL=tk("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),tP=tk("numberinput").parts("root","field","stepperGroup","stepper");tk("pininput").parts("field");var tR=tk("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),tF=tk("progress").parts("label","filledTrack","track"),tU=tk("radio").parts("container","control","label"),tW=tk("select").parts("field","icon"),tH=tk("slider").parts("container","track","thumb","filledTrack","mark"),tV=tk("stat").parts("container","label","helpText","number","icon"),tQ=tk("switch").parts("container","track","thumb"),t$=tk("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tY=tk("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tq=tk("tag").parts("container","label","closeButton"),tG=tk("card").parts("container","header","body","footer");function tK(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 tJ(e,t){var r,n;let i=function(e,t=""){return`--${function(e,t=""){return[t,tK(e)].filter(
285Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(r="string"==typeof(n=null==t?void 0:t.fallback)?n:null==n?void 0:n.reference,`var(${tK(i)}${r?`, ${r}`:""})`)}}function tZ(e){return(0,ex.Kn)(e)&&e.reference?e.reference:String(e)}var tX=(e,...t)=>t.map(tZ).join(` ${e} `).replace(/calc/g,""),t0=(...e)=>`calc(${tX("+",...e)})`,t1=(...e)=>`calc(${tX("-",...e)})`,t2=(...e)=>`calc(${tX("*",...e)})`,t4=(...e)=>`calc(${tX("/",...e)})`,t5=e=>{let t=tZ(e);return null==t||Number.isNaN(parseFloat(t))?t2(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},t3=Object.assign(e=>({add:(...t)=>t3(t0(e,...t)),subtract:(...t)=>t3(t1(e,...t)),multiply:(...t)=>t3(t2(e,...t)),divide:(...t)=>t3(t4(e,...t)),negate:()=>t3(t5(e)),toString:()=>e.toString()}),{add:t0,subtract:t1,multiply:t2,divide:t4,negate:t5}),{defineMultiStyleConfig:t6,definePartsStyle:t8}=(0,tg.D)(tQ.keys),t7=tJ("switch-track-width"),t9=tJ("switch-track-height"),re=tJ("switch-track-diff"),rt=t3.subtract(t7,t9),rr=tJ("switch-thumb-x"),rn=tJ("switch-bg"),ri=(0,tg.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[t7.reference],height:[t9.reference],transitionProperty:"common",transitionDuration:"fast",[rn.variable]:"colors.gray.300",_dark:{[rn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[rn.variable]:`colors.${t}.500`,_dark:{[rn.variable]:`colors.${t}.200`}},bg:rn.reference}}),ro=(0,tg.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[t9.reference],height:[t9.reference],_checked:{transform:`translateX(${rr.reference})`}}),ra=t6({baseStyle:t8(e=>({container:{[re.variable]:rt,[rr.variable]:re.reference,_rtl:{[rr.variable]:t3(re).negate().toString()}},track:ri(e),thumb:ro})),sizes:{sm:t8({container:{[t7.variable]:"1.375rem",[t9.variable]:"sizes.3"}}),md:t8({container:{[t7.variable]:"1.875rem",[t9.variable]:"sizes.4"}}),lg:t8({container:{[t7.variable]:"2.875rem",[t9.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function rs(e,t){return r=>"dark"===r.colorMode?t:e}function rl(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:ru,definePartsStyle:rc}=(0,tg.D)(t$.keys),rd=rc({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"}}),rh=(0,tg.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),rf=ru({baseStyle:rd,variants:{simple:rc(e=>{let{colorScheme:t}=e;return{th:{color:rs("gray.600","gray.400")(e),borderBottom:"1px",borderColor:rs(`${t}.100`,`${t}.700`)(e),...rh},td:{borderBottom:"1px",borderColor:rs(`${t}.100`,`${t}.700`)(e),...rh},caption:{color:rs("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:rc(e=>{let{colorScheme:t}=e;return{th:{color:rs("gray.600","gray.400")(e),borderBottom:"1px",borderColor:rs(`${t}.100`,`${t}.700`)(e),...rh},td:{borderBottom:"1px",borderColor:rs(`${t}.100`,`${t}.700`)(e),...rh},caption:{color:rs("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:rs(`${t}.100`,`${t}.700`)(e)},td:{background:rs(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,tg.k0)({})},sizes:{sm:rc({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:rc({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:rc({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"}});function rp(e,t,r){return Math.min(Math.max(e,r),t)}var rg=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function rm(e){if("string"!=typeof e)throw new rg(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();
285t=rk.test(e)?function(e){let t=e.toLowerCase().trim(),r=rb[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new rg(e);return`#${r}`}(e):e;let r=rw.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(rv(e,2),16)),parseInt(rv(e[3]||"f",2),16)/255]}let n=rA.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 i=rx.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=rS.exec(t);if(o){let[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(rp(0,100,r)!==r||rp(0,100,n)!==n)throw new rg(e);return[...rE(t,r,n),Number.isNaN(i)?1:i]}throw new rg(e)}let ry=e=>parseInt(e.replace(/_/g,""),36),rb="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=ry(t.substring(0,3)),n=ry(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),rv=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),rw=RegExp(`^#${rv("([a-f0-9])",3)}([a-f0-9])?$`,"i"),rA=RegExp(`^#${rv("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rx=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${rv(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),rS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,rk=/^[a-z]+$/i,rM=e=>Math.round(255*e),rE=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(rM);let i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1)),s=0,l=0,u=0;i>=0&&i<1?(s=o,l=a):i>=1&&i<2?(s=a,l=o):i>=2&&i<3?(l=o,u=a):i>=3&&i<4?(l=a,u=o):i>=4&&i<5?(s=a,u=o):i>=5&&i<6&&(s=o,u=a);let c=n-o/2,d=s+c,h=l+c,f=u+c;return[d,h,f].map(rM)};var rI=e=>0===Object.keys(e).length,r_=(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]]:i;return e===i?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,n,i]=rm(e),o=e=>{let t=rp(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},rC=(e,t,r)=>{var n;return null!=(n=(0,tg.K1)(e,"colors",t))?n:r},rB=e=>{let[t,r,n]=rm(e);return(299*t+587*r+114*n)/1e3},rT=e=>t=>{let r=r_(t,e),n=rB(r);return n<128?"dark":"light"},rD=e=>t=>"dark"===rT(e)(t),rj=(e,t)=>r=>{let n=r_(r,e);return function(e,t){let[r,n,i,o]=rm(e);return`rgba(${rp(0,255,r).toFixed()}, ${rp(0,255,n).toFixed()}, ${rp(0,255,i).toFixed()}, ${parseFloat(rp(0,1,o-t).toFixed(3))})`}(n,1-t)};function rz(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
286    45deg,
287    ${t} 25%,
288    transparent 25%,
289    transparent 50%,
290    ${t} 50%,
291    ${t} 75%,
292    transparent 75%,
293    transparent
294  )`,backgroundSize:`${e} ${e}`}}var rN=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`,rO=(0,tg.gJ)("tabs-color"),rL=(0,tg.gJ)("tabs-bg"),rP=(0,tg.gJ)("tabs-border-color"),{defineMultiStyleConfig:rR,definePartsStyle:rF}=(0,tg.D)(tY.keys),rU=(0,tg.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),rW=(0,tg.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}}}),rH=(0,tg.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"}}),rV=(0,tg.k0)({p:4}),rQ=rR({baseStyle:rF(e=>({root:rU(e),tab:rW(e),tablist:rH(e),tabpanel:rV})),sizes:{sm:rF({tab:{py:1,px:4,fontSize:"sm"}}),md:rF({tab:{fontSize:"md",py:2,px:4}}),lg:rF({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:rF(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:{[rO.variable]:`colors.${t}.600`,_dark:{[rO.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[rL.variable]:"colors.gray.200",_dark:{[rL.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:rO.reference,bg:rL.reference}}}),enclosed:rF(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[rP.variable]:"transparent",_selected:{[rO.variable]:`colors.${t}.600`,[rP.variable]:"colors.white",_dark:{[rO.variable]:`colors.${t}.300`,[rP.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:rP.reference}
294,color:rO.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":rF(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[rL.variable]:"colors.gray.50",_dark:{[rL.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[rL.variable]:"colors.white",[rO.variable]:`colors.${t}.600`,_dark:{[rL.variable]:"colors.gray.800",[rO.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:rO.reference,bg:rL.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":rF(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:r_(r,`${t}.700`),bg:r_(r,`${t}.100`)}}}}),"solid-rounded":rF(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[rO.variable]:"colors.gray.600",_dark:{[rO.variable]:"inherit"},_selected:{[rO.variable]:"colors.white",[rL.variable]:`colors.${t}.600`,_dark:{[rO.variable]:"colors.gray.800",[rL.variable]:`colors.${t}.300`}},color:rO.reference,bg:rL.reference}}}),unstyled:rF({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),r$=(0,tg._6)("badge",["bg","color","shadow"]),rY=(0,tg.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:r$.bg.reference,color:r$.color.reference,boxShadow:r$.shadow.reference}),rq=(0,tg.k0)(e=>{let{colorScheme:t,theme:r}=e,n=rj(`${t}.500`,.6)(r);return{[r$.bg.variable]:`colors.${t}.500`,[r$.color.variable]:"colors.white",_dark:{[r$.bg.variable]:n,[r$.color.variable]:"colors.whiteAlpha.800"}}}),rG=(0,tg.k0)(e=>{let{colorScheme:t,theme:r}=e,n=rj(`${t}.200`,.16)(r);return{[r$.bg.variable]:`colors.${t}.100`,[r$.color.variable]:`colors.${t}.800`,_dark:{[r$.bg.variable]:n,[r$.color.variable]:`colors.${t}.200`}}}),rK=(0,tg.k0)(e=>{let{colorScheme:t,theme:r}=e,n=rj(`${t}.200`,.8)(r);return{[r$.color.variable]:`colors.${t}.500`,_dark:{[r$.color.variable]:n},[r$.shadow.variable]:`inset 0 0 0px 1px ${r$.color.reference}`}}),rJ=(0,tg.fj)({baseStyle:rY,variants:{solid:rq,subtle:rG,outline:rK},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:rZ,definePartsStyle:rX}=(0,tg.D)(tq.keys),r0=(0,tg.gJ)("tag-bg"),r1=(0,tg.gJ)("tag-color"),r2=(0,tg.gJ)("tag-shadow"),r4=(0,tg.gJ)("tag-min-height"),r5=(0,tg.gJ)("tag-min-width"),r3=(0,tg.gJ)("tag-font-size"),r6=(0,tg.gJ)("tag-padding-inline"),r8=rX({container:(0,tg.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[r1.variable]:r$.color.reference,[r0.variable]:r$.bg.reference,[r2.variable]:r$.shadow.reference,color:r1.reference,bg:r0.reference,boxShadow:r2.reference,borderRadius:"md",minH:r4.reference,minW:r5.reference,fontSize:r3.reference,px:r6.reference,_focusVisible:{[r2.variable]:"shadows.outline"}}),label:(0,tg.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,tg.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}})}),r7={sm:rX({container:{[r4.variable]:"sizes.5",[r5.variable]:"sizes.5",[r3.variable]:"fontSizes.xs",[r6.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:rX({container:{[r4.variable]:"sizes.6",[r5.variable]:"sizes.6",[r3.variable]:"fontSizes.sm",[r6.variable]:"space.2"}}),lg:rX({container:{[r4.variable]:"sizes.8",[r5.variable]:"sizes.8",[r3.variable]:"fontSizes.md",[r6.variable]:"space.3"}})},r9=rZ({variants:{subtle:rX(e=>{var t;return{container:null==(t=rJ.variants)?void 0:t.subtle(e)}}),solid:rX(e=>{var t;return{container:null==(t=rJ.variants)?void 0:t.solid(e)}}),outline:rX(e=>{var t;return{container:null==(t=rJ.variants)?void 0:t.outline(e)}})},baseStyle:r8,sizes:r7,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:ne,defineMultiStyleConfig:nt}=(0,tg.D)(tz.keys),nr=ne({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),nn={lg:(0,tg.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,tg.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,tg.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,tg.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})};function ni(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||rs("blue.500","blue.300")(e),errorBorderColor:r||rs("red.500","red.300")(e)}}var no=nt({baseStyle:nr,sizes:{lg:ne({field:nn.lg,addon:nn.lg}),md:ne({field:nn.md,addon:nn.md}),sm:ne({field:nn.sm,addon:nn.sm}),xs:ne({field:nn.xs,addon:nn.xs})},variants:{outline:ne(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ni(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:rs("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"}
294,_invalid:{borderColor:rC(t,n),boxShadow:`0 0 0 1px ${rC(t,n)}`},_focusVisible:{zIndex:1,borderColor:rC(t,r),boxShadow:`0 0 0 1px ${rC(t,r)}`}},addon:{border:"1px solid",borderColor:rs("inherit","whiteAlpha.50")(e),bg:rs("gray.100","whiteAlpha.300")(e)}}}),filled:ne(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ni(e);return{field:{border:"2px solid",borderColor:"transparent",bg:rs("gray.100","whiteAlpha.50")(e),_hover:{bg:rs("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:rC(t,n)},_focusVisible:{bg:"transparent",borderColor:rC(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:rs("gray.100","whiteAlpha.50")(e)}}}),flushed:ne(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ni(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:rC(t,n),boxShadow:`0px 1px 0px 0px ${rC(t,n)}`},_focusVisible:{borderColor:rC(t,r),boxShadow:`0px 1px 0px 0px ${rC(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:ne({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),na=(0,tg.k0)({...null==(c=no.baseStyle)?void 0:c.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),ns={outline:(0,tg.k0)(e=>{var t,r;return null!=(r=null==(t=no.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,tg.k0)(e=>{var t,r;return null!=(r=null==(t=no.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,tg.k0)(e=>{var t,r;return null!=(r=null==(t=no.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(h=null==(d=no.variants)?void 0:d.unstyled.field)?h:{}},nl={xs:null!=(p=null==(f=no.sizes)?void 0:f.xs.field)?p:{},sm:null!=(m=null==(g=no.sizes)?void 0:g.sm.field)?m:{},md:null!=(b=null==(y=no.sizes)?void 0:y.md.field)?b:{},lg:null!=(w=null==(v=no.sizes)?void 0:v.lg.field)?w:{}},nu=(0,tg.fj)({baseStyle:na,sizes:nl,variants:ns,defaultProps:{size:"md",variant:"outline"}}),nc=tJ("tooltip-bg"),nd=tJ("tooltip-fg"),nh=tJ("popper-arrow-bg"),nf=(0,tg.k0)({bg:nc.reference,color:nd.reference,[nc.variable]:"colors.gray.700",[nd.variable]:"colors.whiteAlpha.900",_dark:{[nc.variable]:"colors.gray.300",[nd.variable]:"colors.gray.9
29400"},[nh.variable]:nc.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),np=(0,tg.fj)({baseStyle:nf}),{defineMultiStyleConfig:ng,definePartsStyle:nm}=(0,tg.D)(tF.keys),ny=(0,tg.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=rs(rz(),rz("1rem","rgba(0,0,0,0.1)"))(e),a=rs(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
295    to right,
296    transparent 0%,
297    ${rC(r,a)} 50%,
298    transparent 100%
299  )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),nb=(0,tg.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),nv=(0,tg.k0)(e=>({bg:rs("gray.100","whiteAlpha.300")(e)})),nw=(0,tg.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...ny(e)})),nA=nm(e=>({label:nb,filledTrack:nw(e),track:nv(e)})),nx=ng({sizes:{xs:nm({track:{h:"1"}}),sm:nm({track:{h:"2"}}),md:nm({track:{h:"3"}}),lg:nm({track:{h:"4"}})},baseStyle:nA,defaultProps:{size:"md",colorScheme:"blue"}}),nS=e=>"function"==typeof e;function nk(e,...t){return nS(e)?e(...t):e}var{definePartsStyle:nM,defineMultiStyleConfig:nE}=(0,tg.D)(tC.keys),nI=(0,tg.gJ)("checkbox-size"),n_=(0,tg.k0)(e=>{let{colorScheme:t}=e;return{w:nI.reference,h:nI.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:rs(`${t}.500`,`${t}.200`)(e),borderColor:rs(`${t}.500`,`${t}.200`)(e),color:rs("white","gray.900")(e),_hover:{bg:rs(`${t}.600`,`${t}.300`)(e),borderColor:rs(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:rs("gray.200","transparent")(e),bg:rs("gray.200","whiteAlpha.300")(e),color:rs("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:rs(`${t}.500`,`${t}.200`)(e),borderColor:rs(`${t}.500`,`${t}.200`)(e),color:rs("white","gray.900")(e)},_disabled:{bg:rs("gray.100","whiteAlpha.100")(e),borderColor:rs("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:rs("red.500","red.300")(e)}}}),nC=(0,tg.k0)({_disabled:{cursor:"not-allowed"}}),nB=(0,tg.k0)({userSelect:"none",_disabled:{opacity:.4}}),nT=(0,tg.k0)({transitionProperty:"transform",transitionDuration:"normal"}),nD=nE({baseStyle:nM(e=>({icon:nT,container:nC,control:nk(n_,e),label:nB})),sizes:{sm:nM({control:{[nI.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:nM({control:{[nI.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:nM({control:{[nI.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nj,definePartsStyle:nz}=(0,tg.D)(tU.keys),nN=(0,tg.k0)(e=>{var t;let r=null==(t=nk(nD.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"}}}}),nO=nj({baseStyle:nz(e=>{var t,r;return{label:null==(t=nD.baseStyle)?void 0:t.call(nD,e).label,container:null==(r=nD.baseStyle)?void 0:r.call(nD,e).container,control:nN(e)}}),sizes:{md:nz({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:nz({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:nz({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:nL,definePartsStyle:nP}=(0,tg.D)(tW.keys),nR=(0,tg.gJ)("select-bg"),nF=nP({field:(0,tg.k0)({...null==(A=no.baseStyle)?void 0:A.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:nR.reference,[nR.variable]:"colors.white",_dark:{[nR.variable]:"colors.gray.700"},"> option, > optgroup":{bg:nR.reference}}),icon:(0,tg.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),nU=(0,tg.k0)({paddingInlineEnd:"8"}),nW=nL({baseStyle:nF,sizes:{lg:{...null==(x=no.sizes)?void 0:x.lg,field:{...null==(S=no.sizes)?void 0:S.lg.field,...nU}},md:{...null==(k=no.sizes)?void 0:k.md,field:{...null==(M=no.sizes)?void 0:M.md.field,...nU}},sm:{...null==(E=no.sizes)?void 0:E.sm,field:{...null==(I=no.sizes)?void 0:I.sm.field,...nU}},xs:{...null==(_=no.sizes)?void 0:_.xs,field:{...null==(C=no.sizes)?void 0:C.xs.field,...nU},icon:{insetEnd:"1"}}},variants:no.variants,defaultProps:no.defaultProps}),nH=(0,tg.gJ)("skeleton-start-color"),nV=(0,tg.gJ)("skeleton-end-color"),nQ=(0,tg.k0)({[nH.variable]:"colors.gray.100",[nV.variable]:"colors.gray.400",_dark:{[nH.variable]:"colors.gray.800",[nV.variable]:"colors.gray.600"},background:nH.reference,borderColor:nV.reference,opacity:.7,borderRadius:"sm"}),n$=(0,tg.fj)({baseStyle:nQ}),nY=(0,tg.gJ)("skip-link-bg"),nq=(0,tg.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[nY.variable]:"colors.white",_dark:{[nY.variable]:"colors.gray.700"},bg:nY.reference}}),nG=(0,tg.fj)({baseStyle:nq}),{defineMultiStyleConfig:nK,definePartsStyle:nJ}=(0,tg.D)(tH.keys),nZ=(0,tg.gJ)("slider-thumb-size"),nX=(0,tg.gJ)("slider-track-size"),n0=(0,tg.gJ)("slider-bg"),n1=(0,tg.k0)(e=>{let{orientation:t}=e;
299return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...rl({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),n2=(0,tg.k0)(e=>{let t=rl({orientation:e.orientation,horizontal:{h:nX.reference},vertical:{w:nX.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[n0.variable]:"colors.gray.200",_dark:{[n0.variable]:"colors.whiteAlpha.200"},_disabled:{[n0.variable]:"colors.gray.300",_dark:{[n0.variable]:"colors.whiteAlpha.300"}},bg:n0.reference}}),n4=(0,tg.k0)(e=>{let{orientation:t}=e,r=rl({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)"}}});return{...r,w:nZ.reference,h:nZ.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"}}}),n5=(0,tg.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[n0.variable]:`colors.${t}.500`,_dark:{[n0.variable]:`colors.${t}.200`},bg:n0.reference}}),n3=nK({baseStyle:nJ(e=>({container:n1(e),track:n2(e),thumb:n4(e),filledTrack:n5(e)})),sizes:{lg:nJ({container:{[nZ.variable]:"sizes.4",[nX.variable]:"sizes.1"}}),md:nJ({container:{[nZ.variable]:"sizes.3.5",[nX.variable]:"sizes.1"}}),sm:nJ({container:{[nZ.variable]:"sizes.2.5",[nX.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),n6=tJ("spinner-size"),n8=(0,tg.k0)({width:[n6.reference],height:[n6.reference]}),n7={xs:(0,tg.k0)({[n6.variable]:"sizes.3"}),sm:(0,tg.k0)({[n6.variable]:"sizes.4"}),md:(0,tg.k0)({[n6.variable]:"sizes.6"}),lg:(0,tg.k0)({[n6.variable]:"sizes.8"}),xl:(0,tg.k0)({[n6.variable]:"sizes.12"})},n9=(0,tg.fj)({baseStyle:n8,sizes:n7,defaultProps:{size:"md"}}),{defineMultiStyleConfig:ie,definePartsStyle:it}=(0,tg.D)(tV.keys),ir=ie({baseStyle:it({container:{},label:(0,tg.k0)({fontWeight:"medium"}),helpText:(0,tg.k0)({opacity:.8,marginBottom:"2"}),number:(0,tg.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,tg.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:it({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),ii=(0,tg.gJ)("kbd-bg"),io=(0,tg.k0)({[ii.variable]:"colors.gray.100",_dark:{[ii.variable]:"colors.whiteAlpha.100"},bg:ii.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),ia=(0,tg.fj)({baseStyle:io}),is=(0,tg.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),il=(0,tg.fj)({baseStyle:is}),{defineMultiStyleConfig:iu,definePartsStyle:ic}=(0,tg.D)(tN.keys),id=iu({baseStyle:ic({icon:(0,tg.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:ih,definePartsStyle:ip}=(0,tg.D)(tO.keys),ig=(0,tg.gJ)("menu-bg"),im=(0,tg.gJ)("menu-shadow"),iy=(0,tg.k0)({[ig.variable]:"#fff",[im.variable]:"shadows.sm",_dark:{[ig.variable]:"colors.gray.700",[im.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:ig.reference,boxShadow:im.reference}),ib=(0,tg.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[ig.variable]:"colors.gray.100",_dark:{[ig.variable]:"colors.whiteAlpha.100"}},_active:{[ig.variable]:"colors.gray.200",_dark:{[ig.variable]:"colors.whiteAlpha.200"}},_expanded:{[ig.variable]:"colors.gray.100",_dark:{[ig.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:ig.reference}),iv=(0,tg.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),iw=(0,tg.k0)({opacity:.6}),iA=(0,tg.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ix=ih({baseStyle:ip({button:(0,tg.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:iy,item:ib,groupTitle:iv,command:iw,divider:iA})}),{defineMultiStyleConfig:iS,definePartsStyle:ik}
299=(0,tg.D)(tL.keys),iM=(0,tg.gJ)("modal-bg"),iE=(0,tg.gJ)("modal-shadow"),iI=(0,tg.k0)({bg:"blackAlpha.600",zIndex:"modal"}),i_=(0,tg.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"}}),iC=(0,tg.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,[iM.variable]:"colors.white",[iE.variable]:"shadows.lg",_dark:{[iM.variable]:"colors.gray.700",[iE.variable]:"shadows.dark-lg"},bg:iM.reference,boxShadow:iE.reference}}),iB=(0,tg.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),iT=(0,tg.k0)({position:"absolute",top:"2",insetEnd:"3"}),iD=(0,tg.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),ij=(0,tg.k0)({px:"6",py:"4"});function iz(e){return"full"===e?ik({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):ik({dialog:{maxW:e}})}var iN=iS({baseStyle:ik(e=>({overlay:iI,dialogContainer:nk(i_,e),dialog:nk(iC,e),header:iB,closeButton:iT,body:nk(iD,e),footer:ij})),sizes:{xs:iz("xs"),sm:iz("sm"),md:iz("md"),lg:iz("lg"),xl:iz("xl"),"2xl":iz("2xl"),"3xl":iz("3xl"),"4xl":iz("4xl"),"5xl":iz("5xl"),"6xl":iz("6xl"),full:iz("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:iO,definePartsStyle:iL}=(0,tg.D)(tP.keys),iP=tJ("number-input-stepper-width"),iR=tJ("number-input-input-padding"),iF=t3(iP).add("0.5rem").toString(),iU=tJ("number-input-bg"),iW=tJ("number-input-color"),iH=tJ("number-input-border-color"),iV=(0,tg.k0)({[iP.variable]:"sizes.6",[iR.variable]:iF}),iQ=(0,tg.k0)(e=>{var t,r;return null!=(r=null==(t=nk(no.baseStyle,e))?void 0:t.field)?r:{}}),i$=(0,tg.k0)({width:iP.reference}),iY=(0,tg.k0)({borderStart:"1px solid",borderStartColor:iH.reference,color:iW.reference,bg:iU.reference,[iW.variable]:"colors.chakra-body-text",[iH.variable]:"colors.chakra-border-color",_dark:{[iW.variable]:"colors.whiteAlpha.800",[iH.variable]:"colors.whiteAlpha.300"},_active:{[iU.variable]:"colors.gray.200",_dark:{[iU.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function iq(e){var t,r,n;let i=null==(t=no.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=td.fontSizes[a];return iL({field:{...i.field,paddingInlineEnd:iR.reference,verticalAlign:"top"},stepper:{fontSize:t3(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var iG=iO({baseStyle:iL(e=>{var t;return{root:iV,field:null!=(t=nk(iQ,e))?t:{},stepperGroup:i$,stepper:iY}}),sizes:{xs:iq("xs"),sm:iq("sm"),md:iq("md"),lg:iq("lg")},variants:no.variants,defaultProps:no.defaultProps}),iK=(0,tg.k0)({...null==(B=no.baseStyle)?void 0:B.field,textAlign:"center"}),iJ={lg:(0,tg.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,tg.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,tg.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,tg.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},iZ={outline:(0,tg.k0)(e=>{var t,r,n;return null!=(n=null==(r=nk(null==(t=no.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,tg.k0)(e=>{var t,r,n;return null!=(n=null==(r=nk(null==(t=no.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,tg.k0)(e=>{var t,r,n;return null!=(n=null==(r=nk(null==(t=no.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(D=null==(T=no.variants)?void 0:T.unstyled.field)?D:{}},iX=(0,tg.fj)({baseStyle:iK,sizes:iJ,variants:iZ,defaultProps:no.defaultProps}),{defineMultiStyleConfig:i0,definePartsStyle:i1}=(0,tg.D)(tR.keys),i2=tJ("popper-bg"),i4=tJ("popper-arrow-bg"),i5=tJ("popper-arrow-shadow-color"),i3=i0({baseStyle:i1({popper:(0,tg.k0)({zIndex:10}),content:(0,tg.k0)({[i2.variable]:"colors.white",bg:i2.reference,[i4.variable]:i2.reference,[i5.variable]:"colors.gray.200",_dark:{[i2.variable]:"colors.gray.700",[i5.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,tg.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,tg.k0)({px:3,py:2}),footer:(0,tg.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,tg.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:i6,defineMultiStyleConfig:i8}
299=(0,tg.D)(tB.keys),i7=(0,tg.gJ)("drawer-bg"),i9=(0,tg.gJ)("drawer-box-shadow");function oe(e){return"full"===e?i6({dialog:{maxW:"100vw",h:"100vh"}}):i6({dialog:{maxW:e}})}var ot=(0,tg.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),or=(0,tg.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),on=(0,tg.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[i7.variable]:"colors.white",[i9.variable]:"shadows.lg",_dark:{[i7.variable]:"colors.gray.700",[i9.variable]:"shadows.dark-lg"},bg:i7.reference,boxShadow:i9.reference}}),oi=(0,tg.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),oo=(0,tg.k0)({position:"absolute",top:"2",insetEnd:"3"}),oa=(0,tg.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),os=(0,tg.k0)({px:"6",py:"4"}),ol=i8({baseStyle:i6(e=>({overlay:ot,dialogContainer:or,dialog:nk(on,e),header:oi,closeButton:oo,body:oa,footer:os})),sizes:{xs:oe("xs"),sm:oe("md"),md:oe("lg"),lg:oe("2xl"),xl:oe("4xl"),full:oe("full")},defaultProps:{size:"xs"}}),{definePartsStyle:ou,defineMultiStyleConfig:oc}=(0,tg.D)(tT.keys),od=oc({baseStyle:ou({preview:(0,tg.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,tg.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,tg.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:oh,defineMultiStyleConfig:of}=(0,tg.D)(tD.keys),op=(0,tg.gJ)("form-control-color"),og=of({baseStyle:oh({container:{width:"100%",position:"relative"},requiredIndicator:(0,tg.k0)({marginStart:"1",[op.variable]:"colors.red.500",_dark:{[op.variable]:"colors.red.300"},color:op.reference}),helperText:(0,tg.k0)({mt:"2",[op.variable]:"colors.gray.600",_dark:{[op.variable]:"colors.whiteAlpha.600"},color:op.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:om,defineMultiStyleConfig:oy}=(0,tg.D)(tj.keys),ob=(0,tg.gJ)("form-error-color"),ov=oy({baseStyle:om({text:(0,tg.k0)({[ob.variable]:"colors.red.500",_dark:{[ob.variable]:"colors.red.300"},color:ob.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,tg.k0)({marginEnd:"0.5em",[ob.variable]:"colors.red.500",_dark:{[ob.variable]:"colors.red.300"},color:ob.reference})})}),ow=(0,tg.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),oA=(0,tg.fj)({baseStyle:ow}),ox=(0,tg.k0)({fontFamily:"heading",fontWeight:"bold"}),oS={"4xl":(0,tg.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,tg.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,tg.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,tg.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,tg.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,tg.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,tg.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,tg.k0)({fontSize:"sm",lineHeight:1.2})},ok=(0,tg.fj)({baseStyle:ox,sizes:oS,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:oM,definePartsStyle:oE}=(0,tg.D)(t_.keys),oI=(0,tg.gJ)("breadcrumb-link-decor"),o_=oM({baseStyle:oE({link:(0,tg.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:oI.reference,[oI.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[oI.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),oC=(0,tg.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"}}}),oB=(0,tg.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:rs("gray.800","whiteAlpha.900")(e),_hover:{bg:rs("gray.100","whiteAlpha.200")(e)},_active:{bg:rs("gray.200","whiteAlpha.300")(e)}};let n=rj(`${t}.200`,.12)(r),i=rj(`${t}.200`,.24)(r);return{color:rs(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:rs(`${t}.50`,n)(e)},_active:{bg:rs(`${t}.100`,i)(e)}}}),oT=(0,tg.k0)(e=>{let{colorScheme:t}=e,r=rs("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"},...nk(oB,e)}}),oD={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},oj=(0,tg.k0)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=rs("gray.100","whiteAlpha.200")(e);return{bg:t,color:rs("gray.800","whiteAlpha.900")(e),_hover:{bg:rs("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:rs("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=oD[r])?t:{},s=rs(n,`${r}.200`)(e);return{bg:s,color:rs(i,"gray.800")(e),_hover:{bg:rs(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:rs(a,`${r}.400`)(e)}}}),oz=(0,tg.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:rs(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:rs(`${t}.700`,`${t}.500`)(e)}}}),oN=(0,tg.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),oO={lg:(0,tg.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,tg.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,tg.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,tg.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},oL=(0,tg.fj)({baseStyle:oC,variants:{ghost:oB,outline:oT,solid:oj,link:oz,unstyled:oN},sizes:oO,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:oP,defineMultiStyleConfig:oR}=(0,tg.D)(tG.keys),oF=(0,tg.gJ)("card-bg"),oU=(0,tg.gJ)("card-padding"),oW=(0,tg.gJ)("card-shadow"),oH=(0,tg.gJ)("card-radius"),oV=(0,tg.gJ)("card-border-width","0"),oQ=(0,tg.gJ)("card-border-color"),o$=oP({container:{[oF.variable]:"colors.chakra-body-bg",backgroundColor:oF.reference,boxShadow:oW.reference,borderRadius:oH.reference,color:"chakra-body-text",borderWidth:oV.reference,borderColor:oQ.reference},body:{padding:oU.reference,flex:"1 1 0%"},header:{padding:oU.reference},footer:{padding:oU.reference}}
299),oY={sm:oP({container:{[oH.variable]:"radii.base",[oU.variable]:"space.3"}}),md:oP({container:{[oH.variable]:"radii.md",[oU.variable]:"space.5"}}),lg:oP({container:{[oH.variable]:"radii.xl",[oU.variable]:"space.7"}})},oq=oR({baseStyle:o$,variants:{elevated:oP({container:{[oW.variable]:"shadows.base",_dark:{[oF.variable]:"colors.gray.700"}}}),outline:oP({container:{[oV.variable]:"1px",[oQ.variable]:"colors.chakra-border-color"}}),filled:oP({container:{[oF.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[oU.variable]:0},header:{[oU.variable]:0},footer:{[oU.variable]:0}}},sizes:oY,defaultProps:{variant:"elevated",size:"md"}}),oG=tJ("close-button-size"),oK=tJ("close-button-bg"),oJ=(0,tg.k0)({w:[oG.reference],h:[oG.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[oK.variable]:"colors.blackAlpha.100",_dark:{[oK.variable]:"colors.whiteAlpha.100"}},_active:{[oK.variable]:"colors.blackAlpha.200",_dark:{[oK.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:oK.reference}),oZ={lg:(0,tg.k0)({[oG.variable]:"sizes.10",fontSize:"md"}),md:(0,tg.k0)({[oG.variable]:"sizes.8",fontSize:"xs"}),sm:(0,tg.k0)({[oG.variable]:"sizes.6",fontSize:"2xs"})},oX=(0,tg.fj)({baseStyle:oJ,sizes:oZ,defaultProps:{size:"md"}}),{variants:o0,defaultProps:o1}=rJ,o2=(0,tg.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:r$.bg.reference,color:r$.color.reference,boxShadow:r$.shadow.reference}),o4=(0,tg.fj)({baseStyle:o2,variants:o0,defaultProps:o1}),o5=(0,tg.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),o3=(0,tg.fj)({baseStyle:o5}),o6=(0,tg.k0)({opacity:.6,borderColor:"inherit"}),o8=(0,tg.k0)({borderStyle:"solid"}),o7=(0,tg.k0)({borderStyle:"dashed"}),o9=(0,tg.fj)({baseStyle:o6,variants:{solid:o8,dashed:o7},defaultProps:{variant:"solid"}}),{definePartsStyle:ae,defineMultiStyleConfig:at}=(0,tg.D)(tM.keys),ar=at({baseStyle:ae({container:(0,tg.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,tg.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,tg.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,tg.k0)({fontSize:"1.25em"})})}),{definePartsStyle:an,defineMultiStyleConfig:ai}=(0,tg.D)(tE.keys),ao=(0,tg.gJ)("alert-fg"),aa=(0,tg.gJ)("alert-bg");function as(e){let{theme:t,colorScheme:r}=e,n=rj(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var al=ai({baseStyle:an({container:{bg:aa.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:ao.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:ao.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:an(e=>{let{colorScheme:t}=e,r=as(e);return{container:{[ao.variable]:`colors.${t}.500`,[aa.variable]:r.light,_dark:{[ao.variable]:`colors.${t}.200`,[aa.variable]:r.dark}}}}),"left-accent":an(e=>{let{colorScheme:t}=e,r=as(e);return{container:{[ao.variable]:`colors.${t}.500`,[aa.variable]:r.light,_dark:{[ao.variable]:`colors.${t}.200`,[aa.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:ao.reference}}}),"top-accent":an(e=>{let{colorScheme:t}=e,r=as(e);return{container:{[ao.variable]:`colors.${t}.500`,[aa.variable]:r.light,_dark:{[ao.variable]:`colors.${t}.200`,[aa.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:ao.reference}}}),solid:an(e=>{let{colorScheme:t}=e;return{container:{[ao.variable]:"colors.white",[aa.variable]:`colors.${t}
299.500`,_dark:{[ao.variable]:"colors.gray.900",[aa.variable]:`colors.${t}.200`},color:ao.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:au,defineMultiStyleConfig:ac}=(0,tg.D)(tI.keys),ad=(0,tg.gJ)("avatar-border-color"),ah=(0,tg.gJ)("avatar-bg"),af=(0,tg.gJ)("avatar-font-size"),ap=(0,tg.gJ)("avatar-size"),ag=(0,tg.k0)({borderRadius:"full",border:"0.2em solid",borderColor:ad.reference,[ad.variable]:"white",_dark:{[ad.variable]:"colors.gray.800"}}),am=(0,tg.k0)({bg:ah.reference,fontSize:af.reference,width:ap.reference,height:ap.reference,lineHeight:"1",[ah.variable]:"colors.gray.200",_dark:{[ah.variable]:"colors.whiteAlpha.400"}}),ay=(0,tg.k0)(e=>{let{name:t,theme:r}=e,n=t?function(e){var t;let r=rN();return!e||rI(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}({string:t}):"colors.gray.400",i=rD(n)(r),o="white";return i||(o="gray.800"),{bg:ah.reference,fontSize:af.reference,color:o,borderColor:ad.reference,verticalAlign:"top",width:ap.reference,height:ap.reference,"&:not([data-loaded])":{[ah.variable]:n},[ad.variable]:"colors.white",_dark:{[ad.variable]:"colors.gray.800"}}}),ab=(0,tg.k0)({fontSize:af.reference,lineHeight:"1"});function av(e){let t="100%"!==e?tf[e]:void 0;return au({container:{[ap.variable]:null!=t?t:e,[af.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[ap.variable]:null!=t?t:e,[af.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var aw=ac({baseStyle:au(e=>({badge:nk(ag,e),excessLabel:nk(am,e),container:nk(ay,e),label:ab})),sizes:{"2xs":av(4),xs:av(6),sm:av(8),md:av(12),lg:av(16),xl:av(24),"2xl":av(32),full:av("100%")},defaultProps:{size:"md"}}),aA={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"}}},ax={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"}}},aS={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ak={semanticTokens:aA,direction:"ltr",...tp,components:{Accordion:ar,Alert:al,Avatar:aw,Badge:rJ,Breadcrumb:o_,Button:oL,Checkbox:nD,CloseButton:oX,Code:o4,Container:o3,Divider:o9,Drawer:ol,Editable:od,Form:og,FormError:ov,FormLabel:oA,Heading:ok,Input:no,Kbd:ia,Link:il,List:id,Menu:ix,Modal:iN,NumberInput:iG,PinInput:iX,Popover:i3,Progress:nx,Radio:nO,Select:nW,Skeleton:n$,SkipLink:nG,Slider:n3,Spinner:n9,Stat:ir,Switch:ra,Table:rf,Tabs:rQ,Tag:r9,Textarea:nu,Tooltip:np,Card:oq,Stepper:tS},styles:ax,config:aS},aM={semanticTokens:aA,direction:"ltr",components:{},...tp,styles:ax,config:aS},aE=r(4521),aI=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,Z.jsxs)(tc,{theme:r,...i,children:[(0,Z.jsx)(aE.Qi,{value:null==n?void 0:n.defaultOptions,children:t}),(0,Z.jsx)(aE.VW,{...n})]})},a_=aI(ak);function aC(e){let{children:t}=e;return(0,Z.jsx)(e5,{children:(0,Z.jsx)(a_,{children:t})})}aI(aM),(a=j||(j={})).Mainnet="mainnet-beta",a.Testnet="testnet",a.Devnet="devnet";var aB=r(9823),aT=r(4718);let aD=({children:e,endpoint:t,config:r={commitment:"confirmed"}})=>{let n=(0,ec.useMemo)(()=>new aB.ew(t,r),[t,r]);return ec.createElement(aT.h.Provider,{value:{connection:n}},e)};var aj=r(6729);
299class az extends Error{constructor(e,t){super(e),this.error=t}}class aN extends az{constructor(){super(...arguments),this.name="WalletNotReadyError"}}class aO extends az{constructor(){super(...arguments),this.name="WalletLoadError"}}class aL extends az{constructor(){super(...arguments),this.name="WalletConfigError"}}class aP extends az{constructor(){super(...arguments),this.name="WalletConnectionError"}}class aR extends az{constructor(){super(...arguments),this.name="WalletDisconnectedError"}}class aF extends az{constructor(){super(...arguments),this.name="WalletDisconnectionError"}}class aU extends az{constructor(){super(...arguments),this.name="WalletAccountError"}}class aW extends az{constructor(){super(...arguments),this.name="WalletPublicKeyError"}}class aH extends az{constructor(){super(...arguments),this.name="WalletNotConnectedError"}}class aV extends az{constructor(){super(...arguments),this.name="WalletSendTransactionError"}}class aQ extends az{constructor(){super(...arguments),this.name="WalletSignMessageError"}}class a$ extends az{constructor(){super(...arguments),this.name="WalletSignTransactionError"}}(s=z||(z={})).Installed="Installed",s.NotDetected="NotDetected",s.Loadable="Loadable",s.Unsupported="Unsupported";class aY extends aj{get connected(){return!!this.publicKey}async autoConnect(){await this.connect()}async prepareTransaction(e,t,r={}){let n=this.publicKey;if(!n)throw new aH;return e.feePayer=e.feePayer||n,e.recentBlockhash=e.recentBlockhash||(await t.getLatestBlockhash({commitment:r.preflightCommitment,minContextSlot:r.minContextSlot})).blockhash,e}}function aq(e){if("undefined"==typeof window||"undefined"==typeof document)return;let t=[];function r(){let r=e();if(r)for(let e of t)e()}let n=setInterval(r,1e3);t.push(()=>clearInterval(n)),"loading"===document.readyState&&(document.addEventListener("DOMContentLoaded",r,{once:!0}),t.push(()=>document.removeEventListener("DOMContentLoaded",r))),"complete"!==document.readyState&&(window.addEventListener("load",r,{once:!0}),t.push(()=>window.removeEventListener("load",r))),r()}function aG(){if(!navigator)return!1;let e=navigator.userAgent.toLowerCase(),t=e.includes("iphone")||e.includes("ipad"),r=e.includes("safari");return t&&r}function aK(e){return"version"in e}class aJ extends aY{async sendTransaction(e,t,r={}){let n=!0;try{if(aK(e)){if(!this.supportedTransactionVersions)throw new aV("Sending versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(e.version))throw new aV(`Sending transaction version ${e.version} isn't supported by this wallet`);try{e=await this.signTransaction(e);let n=e.serialize();return await t.sendRawTransaction(n,r)}catch(e){if(e instanceof a$)throw n=!1,e;throw new aV(e?.message,e)}}else try{let{signers:n,...i}=r;e=await this.prepareTransaction(e,t,i),n?.length&&e.partialSign(...n),e=await this.signTransaction(e);let o=e.serialize();return await t.sendRawTransaction(o,i)}catch(e){if(e instanceof a$)throw n=!1,e;throw new aV(e?.message,e)}}catch(e){throw n&&this.emit("error",e),e}}async signAllTransactions(e){for(let t of e)if(aK(t)){if(!this.supportedTransactionVersions)throw new a$("Signing versioned transactions isn't supported by this wallet");if(!this.supportedTransactionVersions.has(t.version))throw new a$(`Signing transaction version ${t.version} isn't supported by this wallet`)}let t=[];for(let r of e)t.push(await this.signTransaction(r));return t}}class aZ extends aJ{}let aX={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND"};class a0 extends Error{constructor(...e){let[t,r,n]=e;super(r),this.code=t,this.data=n,this.name="SolanaMobileWalletAdapterError"}}class a1 extends Error{constructor(...e){let[t,r,n,i]=e;super(n),this.code=r,this.data=i,this.jsonRpcMessageId=t,this.name="SolanaMobileWalletAdapterProtocolError"}}function a2(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 a4(e,t){return{additionalData:e,iv:t,name:"AES-GCM",tagLength:128}}function a5(e){if(e<49152||e>65535)throw new a0(aX.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,`Association port number must be between 49152 and 65535. ${e} given.`,{port:e});return e}function a3(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}let a6={Firefox:0,Other:1},a8=null,a7={retryDelayScheduleMs:[150,150,200,500,500,750,750,1e3],timeoutMs:3e4};var a9=r(5019);function se(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 st(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 sr(e){return window.btoa(String.fromCharCode.call(null,...e))}function sn(e){return new Uint8Array(window.atob(e).split("").map(e=>e.charCodeAt(0)))}function si(e){let t="version"in e?e.serialize():e.serialize({requireAllSignatures:!1,verifySignatures:!1}),r=sr(t);return r}function so(e){let t=e[0],r=t*aB.eT+1,n=aB.EC.deserializeMessageVersion(e.slice(r,e.length));return"legacy"===n?aB.YW.from(e):aB.GS.deserialize(e)}function sa(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())})}let ss="Mobile Wallet Adapter";function sl(e){return"version"in e}class su extends aZ{constructor(e){super(),this.supportedTransactionVersions=new Set(["legacy",0]),this.name=ss,this.url="https://solanamobile.com/wallets",this.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjI4IiB3aWR0aD0iMjgiIHZpZXdCb3g9Ii0zIDAgMjggMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0RDQjhGRiI+PHBhdGggZD0iTTE3LjQgMTcuNEgxNXYyLjRoMi40di0yLjRabTEuMi05LjZoLTIuNHYyLjRoMi40VjcuOFoiLz48cGF0aCBkPSJNMjEuNiAzVjBoLTIuNHYzaC0zLjZWMGgtMi40djNoLTIuNHY2LjZINC41YTIuMSAyLjEgMCAxIDEgMC00LjJoMi43VjNINC41QTQuNSA0LjUgMCAwIDAgMCA3LjVWMjRoMjEuNnYtNi42aC0yLjR2NC4ySDIuNFYxMS41Yy41LjMgMS4yLjQgMS44LjVoNy41QTYuNiA2LjYgMCAwIDAgMjQgOVYzaC0yLjRabTAgNS43YTQuMiA0LjIgMCAxIDEtOC40IDBWNS40aDguNHYzLjNaIi8+PC9nPjwvc3ZnPg==",this._connecting=!1,this._connectionGeneration=0,this._readyState="undefined"!=typeof window&&window.isSecureContext&&"undefined"!=typeof document&&/android/i.test(navigator.userAgent)?z.Loadable:z.Unsupported,this._authorizationResultCache=e.authorizationResultCache,this._addressSelector=e.addressSelector,this._appIdentity=e.appIdentity,this._cluster=e.cluster,this._onWalletNotFound=e.onWalletNotFound,this._readyState!==z.Unsupported&&this._authorizationResultCache.get().then(e=>{e&&this.declareWalletAsInstalled()})}get publicKey(){if(null==this._publicKey&&null!=this._selectedAddress)try{this._publicKey=function(e){let t=new Uint8Array(window.atob(e).split("").map(e=>e.charCodeAt(0)));return new aB.nh(t)}(this._selectedAddress)}catch(e){throw new aW(e instanceof Error&&(null==e?void 0:e.message)||"Unknown error",e)}return this._publicKey?this._publicKey:null}get connected(){return!!this._authorizationResult}get connecting(){return this._connecting}get readyState(){return this._readyState}declareWalletAsInstalled(){this._readyState!==z.Installed&&this.emit
299("readyStateChange",this._readyState=z.Installed)}runWithGuard(e){return sa(this,void 0,void 0,function*(){try{return yield e()}catch(e){throw this.emit("error",e),e}})}autoConnect_DO_NOT_USE_OR_YOU_WILL_BE_FIRED(){return sa(this,void 0,void 0,function*(){return yield this.autoConnect()})}autoConnect(){return sa(this,void 0,void 0,function*(){if(!this.connecting&&!this.connected)return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){if(this._readyState!==z.Installed&&this._readyState!==z.Loadable)throw new aN;this._connecting=!0;try{let e=yield this._authorizationResultCache.get();e&&this.handleAuthorizationResult(e)}catch(e){throw new aP(e instanceof Error&&e.message||"Unknown error",e)}finally{this._connecting=!1}}))})}connect(){return sa(this,void 0,void 0,function*(){if(!this.connecting&&!this.connected)return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){if(this._readyState!==z.Installed&&this._readyState!==z.Loadable)throw new aN;this._connecting=!0;try{let e=yield this._authorizationResultCache.get();if(e){this.handleAuthorizationResult(e);return}yield this.transact(e=>sa(this,void 0,void 0,function*(){let t=yield e.authorize({cluster:this._cluster,identity:this._appIdentity});Promise.all([this._authorizationResultCache.set(t),this.handleAuthorizationResult(t)])}))}catch(e){throw new aP(e instanceof Error&&e.message||"Unknown error",e)}finally{this._connecting=!1}}))})}handleAuthorizationResult(e){var t;return sa(this,void 0,void 0,function*(){let r=null==this._authorizationResult||(null===(t=this._authorizationResult)||void 0===t?void 0:t.accounts.length)!==e.accounts.length||this._authorizationResult.accounts.some((t,r)=>t.address!==e.accounts[r].address);if(this._authorizationResult=e,this.declareWalletAsInstalled(),r){let t=yield this._addressSelector.select(e.accounts.map(({address:e})=>e));t!==this._selectedAddress&&(this._selectedAddress=t,delete this._publicKey,this.emit("connect",this.publicKey))}})}performReauthorization(e,t){return sa(this,void 0,void 0,function*(){try{let r=yield e.reauthorize({auth_token:t,identity:this._appIdentity});Promise.all([this._authorizationResultCache.set(r),this.handleAuthorizationResult(r)])}catch(e){throw this.disconnect(),new aR(e instanceof Error&&(null==e?void 0:e.message)||"Unknown error",e)}})}disconnect(){return sa(this,void 0,void 0,function*(){this._authorizationResultCache.clear(),this._connecting=!1,this._connectionGeneration++,delete this._authorizationResult,delete this._publicKey,delete this._selectedAddress,this.emit("disconnect")})}transact(e){var t;return sa(this,void 0,void 0,function*(){let r=null===(t=this._authorizationResult)||void 0===t?void 0:t.wallet_uri_base,i=this._connectionGeneration;try{return yield function(e,t){return st(this,void 0,void 0,function*(){return yield function(e,t){return a2(this,void 0,void 0,function*(){let r;!function(){if("undefined"==typeof window||!0!==window.isSecureContext)throw new a0(aX.ERROR_SECURE_CONTEXT_REQUIRED,"The mobile wallet adapter protocol must be used in a secure context (`https`).")}();let i=yield function(){return a2(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"])})}(),o=yield function(e,t){return a2(this,void 0,void 0,function*(){let r=a5(49152+Math.floor(16384*Math.random())),n=yield function(e,t,r){return a2(this,void 0,void 0,function*(){let n=a5(t),i=yield crypto.subtle.exportKey("raw",e),o=function(e){let t="",r=new Uint8Array(e),n=r.byteLength;for(let e=0;e<n;e++)t+=String.fromCharCode(r[e]);return window.btoa(t)}(i),a=function(e,t){let r=null;if(t){try{r=new URL(t)}catch(e){}if((null==r?void 0:r.protocol)!=="https:")throw new a0(aX.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}r||(r=new URL("solana-wallet:/"));let n=e.startsWith("/")?e:[...a3(r.pathname),...a3(e)].join("/");return new URL(n,r)}("v1/associate/local",r);return a.searchParams.set("association",o.replace(/[/+=]/g,e=>({"/":"_","+":"-","=":"."})[e])),a.searchParams.set("port",`${n}`),a})}(e,r,t);if("https:"===n.protocol)window.location.assign(n);else try{let e=-1!==navigator.userAgent.indexOf("Firefox/")?a6.Firefox:a6.Other;switch(e){case a6.Firefox:null==a8&&((a8=document.createElement("iframe")).style.display="none",document.body.appendChild(a8)),a8.contentWindow.location.href=n.toString();break;case a6.Other:{let e=new Promise((e,t)=>
299{function r(){clearTimeout(i),window.removeEventListener("blur",n)}function n(){r(),e()}window.addEventListener("blur",n);let i=setTimeout(()=>{r(),t()},2e3)});window.location.assign(n),yield e}}}catch(e){throw new a0(aX.ERROR_WALLET_NOT_FOUND,"Found no installed wallet that supports the mobile wallet protocol.")}return r})}(i.publicKey,null==t?void 0:t.baseUri),a=`ws://localhost:${o}/solana-wallet`,s=(()=>{let e=[...a7.retryDelayScheduleMs];return()=>e.length>1?e.shift():e[0]})(),l=1,u=0,c={__type:"disconnected"};return new Promise((t,d)=>{let h,f,p;let g={},m=()=>a2(this,void 0,void 0,function*(){if("connecting"!==c.__type){console.warn(`Expected adapter state to be \`connecting\` at the moment the websocket opens. Got \`${c.__type}\`.`);return}let{associationKeypair:e}=c;h.removeEventListener("open",m);let t=yield function(){return a2(this,void 0,void 0,function*(){return yield crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"])})}();h.send((yield function(e,t){return a2(this,void 0,void 0,function*(){let r=yield crypto.subtle.exportKey("raw",e),n=yield crypto.subtle.sign({hash:"SHA-256",name:"ECDSA"},t,r),i=new Uint8Array(r.byteLength+n.byteLength);return i.set(new Uint8Array(r),0),i.set(new Uint8Array(n),r.byteLength),i})}(t.publicKey,e.privateKey))),c={__type:"hello_req_sent",associationPublicKey:e.publicKey,ecdhPrivateKey:t.privateKey}}),y=e=>{e.wasClean?c={__type:"disconnected"}:d(new a0(aX.ERROR_SESSION_CLOSED,`The wallet session dropped unexpectedly (${e.code}: ${e.reason}).`,{closeEvent:e})),f()},b=e=>a2(this,void 0,void 0,function*(){f(),Date.now()-r>=a7.timeoutMs?d(new a0(aX.ERROR_SESSION_TIMEOUT,`Failed to connect to the wallet websocket on port ${o}.`)):(yield new Promise(e=>{let t=s();p=window.setTimeout(e,t)}),w())}),v=r=>a2(this,void 0,void 0,function*(){let i=yield r.data.arrayBuffer();switch(c.__type){case"connected":try{let e=i.slice(0,4),t=function(e){let t=new DataView(e);return t.getUint32(0,!1)}(e);if(t!==u+1)throw Error("Encrypted message has invalid sequence number");u=t;let r=yield function(e,t){return a2(this,void 0,void 0,function*(){let r=e.slice(0,4),i=e.slice(4,16),o=e.slice(16),a=yield crypto.subtle.decrypt(a4(r,i),t,o),s=(void 0===n&&(n=new TextDecoder("utf-8")),n).decode(a),l=JSON.parse(s);if(Object.hasOwnProperty.call(l,"error"))throw new a1(l.id,l.error.code,l.error.message);return l})}(i,c.sharedSecret),o=g[r.id];delete g[r.id],o.resolve(r.result)}catch(e){if(e instanceof a1){let t=g[e.jsonRpcMessageId];delete g[e.jsonRpcMessageId],t.reject(e)}else throw e}break;case"hello_req_sent":{let r=yield function(e,t,r){return a2(this,void 0,void 0,function*(){let[n,i]=yield Promise.all([crypto.subtle.exportKey("raw",t),crypto.subtle.importKey("raw",e,{name:"ECDH",namedCurve:"P-256"},!1,[])]),o=yield crypto.subtle.deriveBits({name:"ECDH",public:i},r,256),a=yield crypto.subtle.importKey("raw",o,"HKDF",!1,["deriveKey"]),s=yield crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(n),info:new Uint8Array},a,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);return s})}(i,c.associationPublicKey,c.ecdhPrivateKey);c={__type:"connected",sharedSecret:r};let n=new Proxy({},{get(e,t){if(null==e[t]){let n=t.toString().replace(/[A-Z]/g,e=>`_${e.toLowerCase()}`).toLowerCase();e[t]=function(e){return a2(this,void 0,void 0,function*(){let i=l++;return h.send((yield function(e,t){return a2(this,void 0,void 0,function*(){let r=JSON.stringify(e),n=function(e){if(e>=4294967296)throw Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");let t=new ArrayBuffer(4),r=new DataView(t);return r.setUint32(0,e,!1),new Uint8Array(t)}(e.id),i=new Uint8Array(12);crypto.getRandomValues(i);let o=yield crypto.subtle.encrypt(a4(n,i),t,new TextEncoder().encode(r)),a=new Uint8Array(n.byteLength+i.byteLength+o.byteLength);return a.set(new Uint8Array(n),0),a.set(new Uint8Array(i),n.byteLength),a.set(new Uint8Array(o),n.byteLength+i.byteLength),a})}({id:i,jsonrpc:"2.0",method:n,params:null!=e?e:{}},r))),new Promise((e,r)=>{g[i]={resolve(n){switch(t){case"authorize":case"reauthorize":{let{wallet_uri_base:e}=n;if(null!=e)try{!function(e){let t;try{t=new URL(e)}catch(e){throw new a0(aX.ERROR_FORBIDDEN_WALLET_BASE_URL,"Invalid base URL supplied by wallet")}if("https:"!==t.protocol)throw new a0(aX.ERROR_FORBIDDEN_WALLET_BASE_URL,"Base URLs supplied by wallets must be valid `https` URLs")}(e)}catch(e){r(e);return}}}e(n)},reject:r}})})}}return e[t]},defineProperty:()=>!1,deleteProperty:()=>!1});try{t((yield e(n)))}catch(e){d(e)}finally{f(),h.close()}}}}),w=()=>{f&&f(),c={__type:"connecting",associationKeypair:i},void 0===r&&(r=Date.now()),(h=new WebSocket(a,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",m),h.addEventListener("close",y),h.addEventListener("error",b),h.addEventListener("message",v),f=()=>{window.clearTimeout(p),h.removeEventListener("open",m),h.removeEventListener("close",y),h.removeEventListener("error",b),h.removeEventListener("message",v)}
299};w()})})}(t=>{let r=new Proxy({},{get(e,r){if(null==e[r])switch(r){case"signAndSendTransactions":e[r]=function(e){var{minContextSlot:r,transactions:n}=e,i=se(e,["minContextSlot","transactions"]);return st(this,void 0,void 0,function*(){let e=n.map(si),{signatures:o}=yield t.signAndSendTransactions(Object.assign(Object.assign(Object.assign({},i),null!=r?{options:{min_context_slot:r}}:null),{payloads:e})),a=o.map(sn).map(a9.encode);return a})};break;case"signMessages":e[r]=function(e){var{payloads:r}=e,n=se(e,["payloads"]);return st(this,void 0,void 0,function*(){let e=r.map(sr),{signed_payloads:i}=yield t.signMessages(Object.assign(Object.assign({},n),{payloads:e})),o=i.map(sn);return o})};break;case"signTransactions":e[r]=function(e){var{transactions:r}=e,n=se(e,["transactions"]);return st(this,void 0,void 0,function*(){let e=r.map(si),{signed_payloads:i}=yield t.signTransactions(Object.assign(Object.assign({},n),{payloads:e})),o=i.map(sn),a=o.map(so);return a})};break;default:e[r]=t[r]}return e[r]},defineProperty:()=>!1,deleteProperty:()=>!1});return e(r)},t)})}(e,r?{baseUri:r}:void 0)}catch(e){throw this._connectionGeneration!==i&&(yield new Promise(()=>{})),e instanceof Error&&"SolanaMobileWalletAdapterError"===e.name&&"ERROR_WALLET_NOT_FOUND"===e.code&&(yield this._onWalletNotFound(this)),e}})}assertIsAuthorized(){if(!this._authorizationResult||!this._selectedAddress)throw new aH;return{authToken:this._authorizationResult.auth_token,selectedAddress:this._selectedAddress}}performSignTransactions(e){return sa(this,void 0,void 0,function*(){let{authToken:t}=this.assertIsAuthorized();try{return yield this.transact(r=>sa(this,void 0,void 0,function*(){yield this.performReauthorization(r,t);let n=yield r.signTransactions({transactions:e});return n}))}catch(e){throw new a$(null==e?void 0:e.message,e)}})}sendTransaction(e,t,r){return sa(this,void 0,void 0,function*(){return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){let{authToken:n}=this.assertIsAuthorized(),i=null==r?void 0:r.minContextSlot;try{return yield this.transact(o=>sa(this,void 0,void 0,function*(){function a(){let e,n;switch(t.commitment){case"confirmed":case"finalized":case"processed":e=t.commitment;break;default:e="finalized"}switch(null==r?void 0:r.preflightCommitment){case"confirmed":case"finalized":case"processed":n=r.preflightCommitment;break;case void 0:n=e;default:n="finalized"}let i="finalized"===n?2:"confirmed"===n?1:0,o="finalized"===e?2:"confirmed"===e?1:0;return i<o?n:e}let[s,l,u]=yield Promise.all([o.getCapabilities(),this.performReauthorization(o,n),sl(e)?null:sa(this,void 0,void 0,function*(){var r;if(e.feePayer||(e.feePayer=null!==(r=this.publicKey)&&void 0!==r?r:void 0),null==e.recentBlockhash){let{blockhash:r}=yield t.getLatestBlockhash({commitment:a()});e.recentBlockhash=r}})]);if(s.supports_sign_and_send_transactions){let t=yield o.signAndSendTransactions({minContextSlot:i,transactions:[e]});return t[0]}{let[n]=yield o.signTransactions({transactions:[e]});if(sl(n))return yield t.sendTransaction(n);{let e=n.serialize();return yield t.sendRawTransaction(e,Object.assign(Object.assign({},r),{preflightCommitment:a()}))}}}))}catch(e){throw new aV(null==e?void 0:e.message,e)}}))})}signTransaction(e){return sa(this,void 0,void 0,function*(){return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){let[t]=yield this.performSignTransactions([e]);return t}))})}signAllTransactions(e){return sa(this,void 0,void 0,function*(){return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){let t=yield this.performSignTransactions(e);return t}))})}signMessage(e){return sa(this,void 0,void 0,function*(){return yield this.runWithGuard(()=>sa(this,void 0,void 0,function*(){let{authToken:t,selectedAddress:r}=this.assertIsAuthorized();try{return yield this.transact(n=>sa(this,void 0,void 0,function*(){yield this.performReauthorization(n,t);let[i]=yield n.signMessages({addresses:[r],payloads:[e]}),o=i.slice(-64);return o}))}catch(e){throw new aQ(null==e?void 0:e.message,e)}}))})}}let sc="SolanaMobileWalletAdapterDefaultAuthorizationCache";function sd(e){return sa(this,void 0,void 0,function*(){"undefined"!=typeof window&&window.location.assign(e.url)})}let sh="solana:signAndSendTransaction",sf="solana:signTransaction",sp="standard:connect",sg="standard:events",sm=function(e){return sp in e.features&&sg in e.features&&(sh in e.features||sf in e.features)},sy="solana:signMessage",sb="solana:mainnet";function sv(e){switch(e){case"processed":case"confirmed":case"finalized":case void 0:return e;case"recent":return"processed";case"single":case"singleGossip":return"confirmed";case"max":case"root":return"finalized";default:return}}let sw="standard:disconnect";new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap,new WeakMap;var sA=r(7191),sx=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},sS=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 sk extends aY{constructor({wallet:e}){super(),N.add(this),O.set(this,void 0),L.set(this,void 0),P.set(this,void 0),R.set(this,void 0),F.set(this,void 0),U.set(this,void 0),W.set(this,void 0),H.set(this,"undefined"==typeof window||"undefined"==typeof document?z.Unsupported:z.Installed),$.set(this,e=>{let t;if(sS(this,R,"f")||!sS(this,O,"f")||!sS(this,L,"f")||!("accounts"in e))return;let r=sS(this,U,"f").accounts[0];
299if(!r){sS(this,N,"m",Q).call(this),this.emit("error",new aR),this.emit("disconnect");return}if(r!==sS(this,O,"f")){try{t=new aB.nh(r.publicKey)}catch(e){sS(this,N,"m",Q).call(this),this.emit("error",new aW(e?.message)),this.emit("disconnect");return}sS(this,N,"m",V).call(this,r,t),this.emit("connect",t)}}),sx(this,U,e,"f");let t=sh in e.features?e.features[sh].supportedTransactionVersions:e.features[sf].supportedTransactionVersions;sx(this,W,!function(e,t){if(e===t)return!0;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}(t,["legacy"])?new Set(t):null,"f"),sx(this,O,null,"f"),sx(this,L,null,"f"),sx(this,P,!1,"f"),sx(this,R,!1,"f")}get supportedTransactionVersions(){return sS(this,W,"f")}get name(){return sS(this,U,"f").name}get icon(){return sS(this,U,"f").icon}get url(){return"https://github.com/solana-labs/wallet-standard"}get publicKey(){return sS(this,L,"f")}get connecting(){return sS(this,P,"f")}get readyState(){return sS(this,H,"f")}get wallet(){return sS(this,U,"f")}get standard(){return!0}async connect(){try{let e;if(this.connected||this.connecting)return;if(sS(this,H,"f")!==z.Installed)throw new aN;if(sx(this,P,!0,"f"),!sS(this,U,"f").accounts.length)try{await sS(this,U,"f").features[sp].connect()}catch(e){throw new aP(e?.message,e)}if(!sS(this,U,"f").accounts.length)throw new aU;let t=sS(this,U,"f").accounts[0];try{e=new aB.nh(t.publicKey)}catch(e){throw new aW(e?.message,e)}sx(this,F,sS(this,U,"f").features[sg].on("change",sS(this,$,"f")),"f"),sS(this,N,"m",V).call(this,t,e),this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{sx(this,P,!1,"f")}}async disconnect(){if(sw in sS(this,U,"f").features)try{sx(this,R,!0,"f"),await sS(this,U,"f").features[sw].disconnect()}catch(e){this.emit("error",new aF(e?.message,e))}finally{sx(this,R,!1,"f")}sS(this,N,"m",Q).call(this),this.emit("disconnect")}async sendTransaction(e,t,r={}){try{var n;let i;let o=sS(this,O,"f");if(!o)throw new aH;if(sh in sS(this,U,"f").features){if(o.features.includes(sh))i=sh;else if(sf in sS(this,U,"f").features&&o.features.includes(sf))i=sf;else throw new aU}else if(sf in sS(this,U,"f").features){if(!o.features.includes(sf))throw new aU;i=sf}else throw new aL;let a=(n=t.rpcEndpoint).includes("https://api.mainnet-beta.solana.com")?sb:/\bdevnet\b/i.test(n)?"solana:devnet":/\btestnet\b/i.test(n)?"solana:testnet":/\blocalhost\b/i.test(n)||/\b127\.0\.0\.1\b/.test(n)?"solana:localnet":sb;if(!o.chains.includes(a))throw new aV;try{let n;let{signers:s,...l}=r;if(aK(e)?(s?.length&&e.sign(s),n=e.serialize()):(e=await this.prepareTransaction(e,t,l),s?.length&&e.partialSign(...s),n=new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))),i===sh){let[e]=await sS(this,U,"f").features[sh].signAndSendTransaction({account:o,chain:a,transaction:n,options:{preflightCommitment:sv(l.preflightCommitment||t.commitment),skipPreflight:l.skipPreflight,maxRetries:l.maxRetries,minContextSlot:l.minContextSlot}});return sA.encode(e.signature)}{let[e]=await sS(this,U,"f").features[sf].signTransaction({account:o,chain:a,transaction:n,options:{preflightCommitment:sv(l.preflightCommitment||t.commitment),minContextSlot:l.minContextSlot}});return await t.sendRawTransaction(e.signedTransaction,{...l,preflightCommitment:sv(l.preflightCommitment||t.commitment)})}}catch(e){if(e instanceof az)throw e;throw new aV(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}O=new WeakMap,L=new WeakMap,P=new WeakMap,R=new WeakMap,F=new WeakMap,U=new WeakMap,W=new WeakMap,H=new WeakMap,$=new WeakMap,N=new WeakSet,V=function(e,t){sx(this,O,e,"f"),sx(this,L,t,"f"),e?.features.includes(sf)?(this.signTransaction=sS(this,N,"m",Y),this.signAllTransactions=sS(this,N,"m",q)):(delete this.signTransaction,delete this.signAllTransactions),e?.features.includes(sy)?this.signMessage=sS(this,N,"m",G):delete this.signMessage},Q=function(){let e=sS(this,F,"f");e&&(sx(this,F,void 0,"f"),e()),sS(this,N,"m",V).call(this,null,null)},Y=async function(e){try{let t=sS(this,O,"f");if(!t)throw new aH;if(!(sf in sS(this,U,"f").features))throw new aL;if(!t.features.includes(sf))throw new aU;try{let r=await sS(this,U,"f").features[sf].signTransaction({account:t,transaction:aK(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))}),n=r[0].signedTransaction;return aK(e)?aB.GS.deserialize(n):aB.YW.from(n)}catch(e){if(e instanceof az)throw e;throw new a$(e?.message,e)}}
299catch(e){throw this.emit("error",e),e}},q=async function(e){try{let t=sS(this,O,"f");if(!t)throw new aH;if(!(sf in sS(this,U,"f").features))throw new aL;if(!t.features.includes(sf))throw new a$;try{let r=await sS(this,U,"f").features[sf].signTransaction(...e.map(e=>({account:t,transaction:aK(e)?e.serialize():new Uint8Array(e.serialize({requireAllSignatures:!1,verifySignatures:!1}))})));return e.map((e,t)=>{let n=r[t].signedTransaction;return aK(e)?aB.GS.deserialize(n):aB.YW.from(n)})}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}},G=async function(e){try{let t=sS(this,O,"f");if(!t)throw new aH;if(!(sy in sS(this,U,"f").features))throw new aL;if(!t.features.includes(sy))throw new aQ;try{let r=await sS(this,U,"f").features[sy].signMessage({account:t,message:e});return r[0].signature}catch(e){throw new aQ(e?.message,e)}}catch(e){throw this.emit("error",e),e}};var sM=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},sE=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)};let sI=new Set,s_={};function sC(...e){return(e=e.filter(e=>!sI.has(e))).length?(e.forEach(e=>sI.add(e)),s_.register?.forEach(t=>sD(()=>t(...e))),function(){e.forEach(e=>sI.delete(e)),s_.unregister?.forEach(t=>sD(()=>t(...e)))}):()=>{}}function sB(){return[...sI]}function sT(e,t){return s_[e]?.push(t)||(s_[e]=[t]),function(){s_[e]=s_[e]?.filter(e=>t!==e)}}function sD(e){try{e()}catch(e){console.error(e)}}
299class sj extends Event{constructor(e){super("wallet-standard:app-ready",{bubbles:!1,cancelable:!1,composed:!1}),K.set(this,void 0),sM(this,K,e,"f")}get detail(){return sE(this,K,"f")}get type(){return"wallet-standard:app-ready"}preventDefault(){throw Error("preventDefault cannot be called")}stopImmediatePropagation(){throw Error("stopImmediatePropagation cannot be called")}stopPropagation(){throw Error("stopPropagation cannot be called")}}function sz(e){let t=(0,ec.useRef)();return t.current||(t.current={value:e()}),t.current.value}function sN(e){return e.filter(sm).map(e=>new sk({wallet:e}))}K=new WeakMap,(l=J||(J={}))[l.DESKTOP_WEB=0]="DESKTOP_WEB",l[l.MOBILE_WEB=1]="MOBILE_WEB";class sO extends az{constructor(){super(...arguments),this.name="WalletNotSelectedError"}}var sL=r(4306);function sP({children:e,wallets:t,adapter:r,isUnloadingRef:n,onAutoConnectRequest:i,onConnectError:o,onError:a,onSelectWallet:s}){let l=(0,ec.useRef)(!1),[u,c]=(0,ec.useState)(!1),d=(0,ec.useRef)(!1),[h,f]=(0,ec.useState)(!1),[p,g]=(0,ec.useState)(()=>r?.publicKey??null),[m,y]=(0,ec.useState)(()=>r?.connected??!1),b=(0,ec.useRef)(a);(0,ec.useEffect)(()=>(b.current=a,()=>{b.current=void 0}),[a]);let v=(0,ec.useRef)((e,t)=>(!n.current&&(b.current?b.current(e,t):(console.error(e,t),e instanceof aN&&"undefined"!=typeof window&&t&&window.open(t.url,"_blank"))),e)),[w,A]=(0,ec.useState)(()=>t.map(e=>({adapter:e,readyState:e.readyState})).filter(({readyState:e})=>e!==z.Unsupported));(0,ec.useEffect)(()=>{function e(e){A(t=>{let r=t.findIndex(({adapter:e})=>e===this);if(-1===r)return t;let{adapter:n}=t[r];return[...t.slice(0,r),{adapter:n,readyState:e},...t.slice(r+1)].filter(({readyState:e})=>e!==z.Unsupported)})}return A(e=>t.map((t,r)=>{let n=e[r];return n&&n.adapter===t&&n.readyState===t.readyState?n:{adapter:t,readyState:t.readyState}}).filter(({readyState:e})=>e!==z.Unsupported)),t.forEach(t=>t.on("readyStateChange",e,t)),()=>{t.forEach(t=>t.off("readyStateChange",e,t))}},[r,t]);let x=(0,ec.useMemo)(()=>w.find(e=>e.adapter===r)??null,[r,w]);(0,ec.useEffect)(()=>{if(!r)return;let e=e=>{g(e),l.current=!1,c(!1),y(!0),d.current=!1,f(!1)},t=()=>{n.current||(g(null),l.current=!1,c(!1),y(!1),d.current=!1,f(!1))},i=e=>{v.current(e,r)};return r.on("connect",e),r.on("disconnect",t),r.on("error",i),()=>{r.off("connect",e),r.off("disconnect",t),r.off("error",i),t()}},[r,n]);let S=(0,ec.useRef)(!1);(0,ec.useEffect)(()=>()=>{S.current=!1},[r]),(0,ec.useEffect)(()=>{S.current||l.current||m||!i||x?.readyState!==z.Installed&&x?.readyState!==z.Loadable||(l.current=!0,c(!0),S.current=!0,async function(){try{await i()}catch{o()}finally{c(!1),l.current=!1}}())},[m,i,o,x]);let k=(0,ec.useCallback)(async(e,t,n)=>{if(!r)throw v.current(new sO);if(!m)throw v.current(new aH,r);return await r.sendTransaction(e,t,n)},[r,m]),M=(0,ec.useMemo)(()=>r&&"signTransaction"in r?async e=>{if(!m)throw v.current(new aH,r);return await r.signTransaction(e)}:void 0,[r,m]),E=(0,ec.useMemo)(()=>r&&"signAllTransactions"in r?async e=>{if(!m)throw v.current(new aH,r);return await r.signAllTransactions(e)}:void 0,[r,m]),I=(0,ec.useMemo)(()=>r&&"signMessage"in r?async e=>{if(!m)throw v.current(new aH,r);return await r.signMessage(e)}:void 0,[r,m]),_=(0,ec.useCallback)(async()=>{if(l.current||d.current||x?.adapter.connected)return;if(!x)throw v.current(new sO);let{adapter:e,readyState:t}=x;if(!(t===z.Installed||t===z.Loadable))throw v.current(new aN,e);l.current=!0,c(!0);try{await e.connect()}catch(e){throw o(),e}finally{c(!1),l.current=!1}},[o,x]),C=(0,ec.useCallback)(async()=>{if(!d.current&&r){d.current=!0,f(!0);try{await r.disconnect()}finally{f(!1),d.current=!1}}},[r]);return ec.createElement(sL.z.Provider,{value:{autoConnect:!!i,wallets:w,wallet:x,publicKey:p,connected:m,connecting:u,disconnecting:h,select:s,connect:_,disconnect:C,sendTransaction:k,signTransaction:M,signAllTransactions:E,signMessage:I}},e)}function sR(e){let t=(void 0===i&&(i=globalThis.navigator?.userAgent??null),i);return function({adapters:e,userAgentString:t}){return e.some(e=>e.name!==ss&&e.readyState===z.Installed)?J.DESKTOP_WEB:t&&/android/i.test(t)&&!/(WebView|Version\/.+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+)|; wv\).+(Chrome)\/(\d+)\.(\d+)\.(\d+)\.(\d+))/i.test(t)?J.MOBILE_WEB:J.DESKTOP_WEB}({adapters:e,userAgentString:t})===J.MOBILE_WEB}function sF({children:e,wallets:t,autoConnect:r,localStorageKey:n="walletName",onError:i}){let{connection:a}=(0,aT.R)(),s=function(e){let{get:t,on:r}=sz(()=>(function(){if(o||(o=function(){if(o||(o=Object.freeze({register:sC,get:sB,on:sT}),"undefined"==typeof window))return o;let e=Object.freeze({register:sC});try{window.addEventListener("wallet-standard:register-wallet",({detail
299:t})=>t(e))}catch(e){console.error("wallet-standard:register-wallet event listener could not be added\n",e)}try{window.dispatchEvent(new sj(e))}catch(e){console.error("wallet-standard:app-ready event could not be dispatched\n",e)}return o}(),"undefined"==typeof window))return o;let e=window.navigator.wallets||[];if(!Array.isArray(e))return console.error("window.navigator.wallets is not an array"),o;let{register:t}=o,r=(...e)=>e.forEach(e=>sD(()=>e({register:t})));try{Object.defineProperty(window.navigator,"wallets",{value:Object.freeze({push:r})})}catch(e){return console.error("window.navigator.wallets could not be set"),o}return r(...e),o})()),[n,i]=(0,ec.useState)(()=>sN(t())),a=sz(()=>new Set);return(0,ec.useEffect)(()=>{let e=[r("register",(...e)=>i(t=>[...t,...sN(e)])),r("unregister",(...e)=>i(t=>t.filter(t=>e.some(e=>e===t.wallet))))];return()=>e.forEach(e=>e())},[r]),(0,ec.useMemo)(()=>[...n,...e.filter(({name:e})=>!n.some(t=>t.name===e)||(a.has(e)||(a.add(e),console.warn(`${e} was registered as a Standard Wallet. The Wallet Adapter for ${e} can be removed from your app.`)),!1))],[n,e,a])}(t),l=(0,ec.useMemo)(()=>{var e;if(!sR(s))return null;let t=s.find(e=>e.name===ss);return t||new su({addressSelector:{select(e){return sa(this,void 0,void 0,function*(){return e[0]})}},appIdentity:{uri:function(){let e=globalThis.location;if(null!=e)return`${e.protocol}//${e.host}`}()},authorizationResultCache:function(){let e;try{e=window.localStorage}catch(e){}return{clear(){return sa(this,void 0,void 0,function*(){if(e)try{e.removeItem(sc)}catch(e){}})},get(){return sa(this,void 0,void 0,function*(){if(e)try{return JSON.parse(e.getItem(sc))||void 0}catch(e){}})},set(t){return sa(this,void 0,void 0,function*(){if(e)try{e.setItem(sc,JSON.stringify(t))}catch(e){}})}}}(),cluster:(e=a?.rpcEndpoint)?/devnet/i.test(e)?"devnet":/testnet/i.test(e)?"testnet":"mainnet-beta":"mainnet-beta",onWalletNotFound:sd})},[s,a?.rpcEndpoint]),u=(0,ec.useMemo)(()=>null==l||-1!==s.indexOf(l)?s:[l,...s],[s,l]),[c,d]=function(e,t){let r=(0,ec.useState)(()=>{try{let t=localStorage.getItem(e);if(t)return JSON.parse(t)}catch(e){"undefined"!=typeof window&&console.error(e)}return t}),n=r[0],i=(0,ec.useRef)(!0);return(0,ec.useEffect)(()=>{if(i.current){i.current=!1;return}try{null===n?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(n))}catch(e){"undefined"!=typeof window&&console.error(e)}},[n,e]),r}(n,sR(s)?ss:null),h=(0,ec.useMemo)(()=>u.find(e=>e.name===c)??null,[u,c]),f=(0,ec.useCallback)(e=>{c!==e&&(h&&h.name!==ss&&h.disconnect(),d(e))},[h,d,c]);(0,ec.useEffect)(()=>{if(null!=h)return h.on("disconnect",e),()=>{h.off("disconnect",e)};function e(){m.current||c===ss&&sR(s)||d(null)}},[h,s,d,c]);let p=(0,ec.useRef)(!1),g=(0,ec.useMemo)(()=>{if(!0===r&&h)return()=>p.current?h.connect():h.autoConnect()},[h,r]),m=(0,ec.useRef)(!1);(0,ec.useEffect)(()=>{if(c===ss&&sR(s)){m.current=!1;return}function e(){m.current=!0}return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[s,c]);let y=(0,ec.useCallback)(()=>{h&&h.name!==ss&&f(null)},[h,f]),b=(0,ec.useCallback)(e=>{p.current=!0,f(e)},[f]);return ec.createElement(sP,{wallets:u,adapter:h,isUnloadingRef:m,onAutoConnectRequest:g,onConnectError:y,onError:i,onSelectWallet:b},e)}let sU={setVisible(e){console.error(sW("call","setVisible"))},visible:!1};function sW(e,t){return`You have tried to  ${e} "${t}" on a WalletModalContext without providing one. Make sure to render a WalletModalProvider as an ancestor of the component that uses WalletModalContext`}Object.defineProperty(sU,"visible",{get:()=>(console.error(sW("read","visible")),!1)});let sH=(0,ec.createContext)(sU);var sV=r(3935);let sQ=({id:e,children:t,expanded:r=!1})=>{let n=(0,ec.useRef)(null),i=(0,ec.useRef)(!0),o=()=>{let e=n.current;e&&requestAnimationFrame(()=>{e.style.height=e.scrollHeight+"px"})},a=()=>{let e=n.current;e&&requestAnimationFrame(()=>{e.style.height=e.offsetHeight+"px",e.style.overflow="hidden",requestAnimationFrame(()=>{e.style.height="0"})})};return(0,ec.useLayoutEffect)(()=>{r?o():a()},[r]),(0,ec.useLayoutEffect)(()=>{let e=n.current;if(e)return i.current&&(t(),i.current=!1),e.addEventListener("transitionend",o),()=>e.removeEventListener("transitionend",o);function t(){e&&(e.style.overflow=r?"initial":"hidden",r&&(e.style.height="auto"))}function o(r){e&&r.target===e&&"height"===r.propertyName&&t()}},[r]),ec.createElement("div",{className:"wallet-adapter-collapse",id:e,ref:n,role:"region",style:{height:0,transition:i.current?void 0:"height 250ms ease-out"}},t)},s$=e=>ec.createElement("button",{className:`wallet-adapter-button ${e.className||""}`,disabled:e.disabled,style:e.style,onClick:e.onClick,tabIndex:e.tabIndex||0,type:"button"},e.startIcon&&ec.createElement("i",{className:"wallet-adapter-button-start-icon"},e.startIcon),e.children,e.endIcon&&ec.createElement("i",{className:"wallet-adapter-button-end-icon"},e.endIcon)),sY=({wallet:e,...t})=>e&&ec.createElement("img",{src:e.adapter.icon,alt:`${e.adapter.name} icon`,...t}),sq=({handleClick:e,tabIndex:t,wallet:r})=>ec.createElement("li",null,ec.createElement(s$,{onClick:e,startIcon:ec.createElement(sY,{wallet:r}),tabIndex:t},r.adapter.name,r.readyState===z.Installed&&ec.createElement("span",null,"Detected"))),sG=()=>ec.createElement("svg",{width:"97",height:"96",viewBox:"0 0 97 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ec.createElement("circle",{cx:"48.5",cy:"48",r:"48",fill:"url(#paint0_linear_880_5115)",fillOpacity:"0.1"}
299),ec.createElement("circle",{cx:"48.5",cy:"48",r:"47",stroke:"url(#paint1_linear_880_5115)",strokeOpacity:"0.4",strokeWidth:"2"}),ec.createElement("g",{clipPath:"url(#clip0_880_5115)"},ec.createElement("path",{d:"M65.5769 28.1523H31.4231C27.6057 28.1523 24.5 31.258 24.5 35.0754V60.9215C24.5 64.7389 27.6057 67.8446 31.4231 67.8446H65.5769C69.3943 67.8446 72.5 64.7389 72.5 60.9215V35.0754C72.5 31.258 69.3943 28.1523 65.5769 28.1523ZM69.7308 52.1523H59.5769C57.2865 52.1523 55.4231 50.289 55.4231 47.9985C55.4231 45.708 57.2864 43.8446 59.5769 43.8446H69.7308V52.1523ZM69.7308 41.0754H59.5769C55.7595 41.0754 52.6539 44.1811 52.6539 47.9985C52.6539 51.8159 55.7595 54.9215 59.5769 54.9215H69.7308V60.9215C69.7308 63.2119 67.8674 65.0754 65.5769 65.0754H31.4231C29.1327 65.0754 27.2692 63.212 27.2692 60.9215V35.0754C27.2692 32.785 29.1326 30.9215 31.4231 30.9215H65.5769C67.8673 30.9215 69.7308 32.7849 69.7308 35.0754V41.0754Z",fill:"url(#paint2_linear_880_5115)"}),ec.createElement("path",{d:"M61.4231 46.6172H59.577C58.8123 46.6172 58.1924 47.2371 58.1924 48.0018C58.1924 48.7665 58.8123 49.3863 59.577 49.3863H61.4231C62.1878 49.3863 62.8077 48.7664 62.8077 48.0018C62.8077 47.2371 62.1878 46.6172 61.4231 46.6172Z",fill:"url(#paint3_linear_880_5115)"})),ec.createElement("defs",null,ec.createElement("linearGradient",{id:"paint0_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},ec.createElement("stop",{stopColor:"#9945FF"}),ec.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),ec.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),ec.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),ec.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),ec.createElement("stop",{offset:"1",stopColor:"#00D18C"})),ec.createElement("linearGradient",{id:"paint1_linear_880_5115",x1:"3.41664",y1:"98.0933",x2:"103.05",y2:"8.42498",gradientUnits:"userSpaceOnUse"},ec.createElement("stop",{stopColor:"#9945FF"}),ec.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),ec.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),ec.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),ec.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),ec.createElement("stop",{offset:"1",stopColor:"#00D18C"})),ec.createElement("linearGradient",{id:"paint2_linear_880_5115",x1:"25.9583",y1:"68.7101",x2:"67.2337",y2:"23.7879",gradientUnits:"userSpaceOnUse"},ec.createElement("stop",{stopColor:"#9945FF"}),ec.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),ec.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),ec.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),ec.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),ec.createElement("stop",{offset:"1",stopColor:"#00D18C"})),ec.createElement("linearGradient",{id:"paint3_linear_880_5115",x1:"58.3326",y1:"49.4467",x2:"61.0002",y2:"45.4453",gradientUnits:"userSpaceOnUse"},ec.createElement("stop",{stopColor:"#9945FF"}),ec.createElement("stop",{offset:"0.14",stopColor:"#8A53F4"}),ec.createElement("stop",{offset:"0.42",stopColor:"#6377D6"}),ec.createElement("stop",{offset:"0.79",stopColor:"#24B0A7"}),ec.createElement("stop",{offset:"0.99",stopColor:"#00D18C"}),ec.createElement("stop",{offset:"1",stopColor:"#00D18C"})),ec.createElement("clipPath",{id:"clip0_880_5115"},ec.createElement("rect",{width:"48",height:"48",fill:"white",transform:"translate(24.5 24)"}
299)))),sK=({className:e="",container:t="body"})=>{let r=(0,ec.useRef)(null),{wallets:n,select:i}=(0,sL.O)(),{setVisible:o}=(0,ec.useContext)(sH),[a,s]=(0,ec.useState)(!1),[l,u]=(0,ec.useState)(!1),[c,d]=(0,ec.useState)(null),[h,f]=(0,ec.useMemo)(()=>{let e=[],t=[],r=[];for(let i of n)i.readyState===z.NotDetected?r.push(i):i.readyState===z.Loadable?t.push(i):i.readyState===z.Installed&&e.push(i);let i=[],o=[];return e.length?(i=e,o=[...t,...r]):(t.length&&(i=t),o=r),[i,o]},[n]),p=(0,ec.useCallback)(()=>{u(!1),setTimeout(()=>o(!1),150)},[o]),g=(0,ec.useCallback)(e=>{e.preventDefault(),p()},[p]),m=(0,ec.useCallback)((e,t)=>{i(t),g(e)},[i,g]),y=(0,ec.useCallback)(()=>s(!a),[a]),b=(0,ec.useCallback)(e=>{let t=r.current;if(!t)return;let n=t.querySelectorAll("button"),i=n[0],o=n[n.length-1];e.shiftKey?document.activeElement===i&&(o.focus(),e.preventDefault()):document.activeElement===o&&(i.focus(),e.preventDefault())},[r]);return(0,ec.useLayoutEffect)(()=>{let e=e=>{"Escape"===e.key?p():"Tab"===e.key&&b(e)},{overflow:t}=window.getComputedStyle(document.body);return setTimeout(()=>u(!0),0),document.body.style.overflow="hidden",window.addEventListener("keydown",e,!1),()=>{document.body.style.overflow=t,window.removeEventListener("keydown",e,!1)}},[p,b]),(0,ec.useLayoutEffect)(()=>d(document.querySelector(t)),[t]),c&&(0,sV.createPortal)(ec.createElement("div",{"aria-labelledby":"wallet-adapter-modal-title","aria-modal":"true",className:`wallet-adapter-modal ${l&&"wallet-adapter-modal-fade-in"} ${e}`,ref:r,role:"dialog"},ec.createElement("div",{className:"wallet-adapter-modal-container"},ec.createElement("div",{className:"wallet-adapter-modal-wrapper"},ec.createElement("button",{onClick:g,className:"wallet-adapter-modal-button-close"},ec.createElement("svg",{width:"14",height:"14"},ec.createElement("path",{d:"M14 12.461 8.3 6.772l5.234-5.233L12.006 0 6.772 5.234 1.54 0 0 1.539l5.234 5.233L0 12.006l1.539 1.528L6.772 8.3l5.69 5.7L14 12.461z"}))),h.length?ec.createElement(ec.Fragment,null,ec.createElement("h1",{className:"wallet-adapter-modal-title"},"Connect a wallet on Solana to continue"),ec.createElement("ul",{className:"wallet-adapter-modal-list"},h.map(e=>ec.createElement(sq,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),wallet:e})),f.length?ec.createElement(sQ,{expanded:a,id:"wallet-adapter-modal-collapse"},f.map(e=>ec.createElement(sq,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),tabIndex:a?0:-1,wallet:e}))):null),f.length?ec.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:y,tabIndex:0},ec.createElement("span",null,a?"Less ":"More ","options"),ec.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${a?"wallet-adapter-modal-list-more-icon-rotate":""}`},ec.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))):null):ec.createElement(ec.Fragment,null,ec.createElement("h1",{className:"wallet-adapter-modal-title"},"You'll need a wallet on Solana to continue"),ec.createElement("div",{className:"wallet-adapter-modal-middle"},ec.createElement(sG,null)),f.length?ec.createElement(ec.Fragment,null,ec.createElement("button",{className:"wallet-adapter-modal-list-more",onClick:y,tabIndex:0},ec.createElement("span",null,a?"Hide ":"Already have a wallet? View ","options"),ec.createElement("svg",{width:"13",height:"7",viewBox:"0 0 13 7",xmlns:"http://www.w3.org/2000/svg",className:`${a?"wallet-adapter-modal-list-more-icon-rotate":""}`},ec.createElement("path",{d:"M0.71418 1.626L5.83323 6.26188C5.91574 6.33657 6.0181 6.39652 6.13327 6.43762C6.24844 6.47872 6.37371 6.5 6.50048 6.5C6.62725 6.5 6.75252 6.47872 6.8677 6.43762C6.98287 6.39652 7.08523 6.33657 7.16774 6.26188L12.2868 1.626C12.7753 1.1835 12.3703 0.5 11.6195 0.5H1.37997C0.629216 0.5 0.224175 1.1835 0.71418 1.626Z"}))),ec.createElement(sQ,{expanded:a,id:"wallet-adapter-modal-collapse"},ec.createElement("ul",{className:"wallet-adapter-modal-list"},f.map(e=>ec.createElement(sq,{key:e.adapter.name,handleClick:t=>m(t,e.adapter.name),tabIndex:a?0:-1,wallet:e}))))):null))),ec.createElement("div",{className:"wallet-adapter-modal-overlay",onMouseDown:g})),c)},sJ=({children:e,...t})=>{let[r,n]=(0,ec.useState)(!1);return ec.createElement(sH.Provider,{value:{visible:r,setVisible:n}},e,r&&ec.createElement(sK,{...t}))};class sZ extends aZ{constructor(e={}){super(),this.name="Phantom",this.url="https://phantom.app",this.icon="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiB2aWV3Qm94PSIwIDAgMTA4IDEwOCIgZmlsbD0ibm9uZSI+CjxyZWN0IHdpZHRoPSIxMDgiIGhlaWdodD0iMTA4IiByeD0iMjYiIGZpbGw9IiNBQjlGRjIiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00Ni41MjY3IDY5LjkyMjlDNDIuMDA1NCA3Ni44NTA5IDM0LjQyOTIgODUuNjE4MiAyNC4zNDggODUuNjE4MkMxOS41ODI0IDg1LjYxODIgMTUgODMuNjU2MyAxNSA3NS4xMzQyQzE1IDUzLjQzMDUgNDQuNjMyNiAxOS44MzI3IDcyLjEyNjggMTkuODMyN0M4Ny43NjggMTkuODMyNyA5NCAzMC42ODQ2IDk0IDQzLjAwNzlDOTQgNTguODI1OCA4My43MzU1IDc2LjkxMjIgNzMuNTMyMSA3Ni45MTIyQzcwLjI5MzkgNzYuOTEyMiA2OC43MDUzIDc1LjEzNDIgNjguNzA1MyA3Mi4zMTRDNjguNzA1MyA3MS41NzgzIDY4LjgyNzUgNzAuNzgxMiA2OS4wNzE5IDY5LjkyMjlDNjUuNTg5MyA3NS44Njk5IDU4Ljg2ODUgODEuMzg3OCA1Mi41NzU0IDgxLjM4NzhDNDcuOTkzIDgxLjM4NzggNDUuNjcxMyA3OC41MDYzIDQ1LjY3MTMgNzQuNDU5OEM0NS42NzEzIDcyLjk4ODQgNDUuOTc2OCA3MS40NTU2IDQ2LjUyNjcgNjkuOTIyOVpNODMuNjc2MSA0Mi41Nzk0QzgzLjY3NjEgNDYuMTcwNCA4MS41NTc1IDQ3Ljk2NTggNzkuMTg3NSA0Ny45NjU4Qzc2Ljc4MTYgNDcuOTY1OCA3NC42OTg5IDQ2LjE3MDQgNzQuNjk4OSA0Mi41Nzk0Qzc0LjY5ODkgMzguOTg4NSA3Ni43ODE2IDM3LjE5MzEgNzkuMTg3NSAzNy4xOTMxQzgxLjU1NzUgMzcuMTkzMSA4My42NzYxIDM4Ljk4ODUgODMuNjc2MSA0Mi41Nzk0Wk03MC4yMTAzIDQyLjU3OTVDNzAuMjEwMyA0Ni4xNzA0IDY4LjA5MTYgNDcuOTY1OCA2NS43MjE2IDQ3Ljk2NThDNjMuMzE1NyA0Ny45NjU4IDYxLjIzMyA0Ni4xNzA0IDYxLjIzMyA0Mi41Nzk1QzYxLjIzMyAzOC45ODg1IDYzLjMxNTcgMzcuMTkzMSA2NS43MjE2IDM3LjE5MzFDNjguMDkxNiAzNy4xOTMxIDcwLjIxMDMgMzguOTg4NSA3MC4yMTAzIDQyLjU3OTVaIiBmaWxsPSIjRkZGREY4Ii8+Cjwvc3ZnPg==",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="undefined"==typeof window||"undefined"==typeof document?z.Unsupported:z.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null,this.emit
299("error",new aR),this.emit("disconnect"))},this._accountChanged=e=>{let t=this._publicKey;if(t){try{e=new aB.nh(e.toBytes())}catch(e){this.emit("error",new aW(e?.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==z.Unsupported&&(aG()?(this._readyState=z.Loadable,this.emit("readyStateChange",this._readyState)):aq(()=>!!(window.phantom?.solana?.isPhantom||window.solana?.isPhantom)&&(this._readyState=z.Installed,this.emit("readyStateChange",this._readyState),!0)))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async autoConnect(){this.readyState===z.Installed&&await this.connect()}async connect(){try{let e;if(this.connected||this.connecting)return;if(this.readyState===z.Loadable){let e=encodeURIComponent(window.location.href),t=encodeURIComponent(window.location.origin);window.location.href=`https://phantom.app/ul/browse/${e}?ref=${t}`;return}if(this.readyState!==z.Installed)throw new aN;this._connecting=!0;let t=window.phantom?.solana||window.solana;if(!t.isConnected)try{await t.connect()}catch(e){throw new aP(e?.message,e)}if(!t.publicKey)throw new aU;try{e=new aB.nh(t.publicKey.toBytes())}catch(e){throw new aW(e?.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new aF(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,r={}){try{let n=this._wallet;if(!n)throw new aH;try{let{signers:i,...o}=r;aK(e)?i?.length&&e.sign(i):(e=await this.prepareTransaction(e,t,o),i?.length&&e.partialSign(...i)),o.preflightCommitment=o.preflightCommitment||t.commitment;let{signature:a}=await n.signAndSendTransaction(e,o);return a}catch(e){if(e instanceof az)throw e;throw new aV(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signTransaction(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signAllTransactions(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new aH;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new aQ(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}class sX extends aZ{constructor(e={}){super(),this.name="Solflare",this.url="https://solflare.com",this.icon="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiBoZWlnaHQ9IjUwIiB2aWV3Qm94PSIwIDAgNTAgNTAiIHdpZHRoPSI1MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmMxMGIiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNmYjNmMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI2LjQ3ODM1IiB4Mj0iMzQuOTEwNyIgeGxpbms6aHJlZj0iI2EiIHkxPSI3LjkyIiB5Mj0iMzMuNjU5MyIvPjxyYWRpYWxHcmFkaWVudCBpZD0iYyIgY3g9IjAiIGN5PSIwIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDQuOTkyMTg4MzIgMTIuMDYzODc5NjMgLTEyLjE4MTEzNjU1IDUuMDQwNzEwNzQgMjIuNTIwMiAyMC42MTgzKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHI9IjEiIHhsaW5rOmhyZWY9IiNhIi8+PHBhdGggZD0ibTI1LjE3MDggNDcuOTEwNGMuNTI1IDAgLjk1MDcuNDIxLjk1MDcuOTQwM3MtLjQyNTcuOTQwMi0uOTUwNy45NDAyLS45NTA3LS40MjA5LS45NTA3LS45NDAyLjQyNTctLjk0MDMuOTUwNy0uOTQwM3ptLTEuMDMyOC00NC45MTU2NWMuNDY0Ni4wMzgzNi44Mzk4LjM5MDQuOTAyNy44NDY4MWwxLjEzMDcgOC4yMTU3NGMuMzc5OCAyLjcxNDMgMy42NTM1IDMuODkwNCA1LjY3NDMgMi4wNDU5bDExLjMyOTEtMTAuMzExNThjLjI3MzMtLjI0ODczLjY5ODktLjIzMTQ5Ljk1MDcuMDM4NTEuMjMwOS4yNDc3Mi4yMzc5LjYyNjk3LjAxNjEuODgyNzdsLTkuODc5MSAxMS4zOTU4Yy0xLjgxODcgMi4wOTQyLS40NzY4IDUuMzY0MyAyLjI5NTYgNS41OTc4bDguNzE2OC44NDAzYy40MzQxLjA0MTguNzUxNy40MjM0LjcwOTMuODUyNC0uMDM0OS4zNTM3
299LS4zMDc0LjYzOTUtLjY2MjguNjk0OWwtOS4xNTk0IDEuNDMwMmMtMi42NTkzLjM2MjUtMy44NjM2IDMuNTExNy0yLjEzMzkgNS41NTc2bDMuMjIgMy43OTYxYy4yNTk0LjMwNTguMjE4OC43NjE1LS4wOTA4IDEuMDE3OC0uMjYyMi4yMTcyLS42NDE5LjIyNTYtLjkxMzguMDIwM2wtMy45Njk0LTIuOTk3OGMtMi4xNDIxLTEuNjEwOS01LjIyOTctLjI0MTctNS40NTYxIDIuNDI0M2wtLjg3NDcgMTAuMzk3NmMtLjAzNjIuNDI5NS0uNDE3OC43NDg3LS44NTI1LjcxMy0uMzY5LS4wMzAzLS42NjcxLS4zMDk3LS43MTcxLS42NzIxbC0xLjM4NzEtMTAuMDQzN2MtLjM3MTctMi43MTQ0LTMuNjQ1NC0zLjg5MDQtNS42NzQzLTIuMDQ1OWwtMTIuMDUxOTUgMTAuOTc0Yy0uMjQ5NDcuMjI3MS0uNjM4MDkuMjExNC0uODY4LS4wMzUtLjIxMDk0LS4yMjYyLS4yMTczNS0uNTcyNC0uMDE0OTMtLjgwNmwxMC41MTgxOC0xMi4xMzg1YzEuODE4Ny0yLjA5NDIuNDg0OS01LjM2NDQtMi4yODc2LTUuNTk3OGwtOC43MTg3Mi0uODQwNWMtLjQzNDEzLS4wNDE4LS43NTE3Mi0uNDIzNS0uNzA5MzYtLjg1MjQuMDM0OTMtLjM1MzcuMzA3MzktLjYzOTQuNjYyNy0uNjk1bDkuMTUzMzgtMS40Mjk5YzIuNjU5NC0uMzYyNSAzLjg3MTgtMy41MTE3IDIuMTQyMS01LjU1NzZsLTIuMTkyLTIuNTg0MWMtLjMyMTctLjM3OTItLjI3MTMtLjk0NDMuMTEyNi0xLjI2MjEuMzI1My0uMjY5NC43OTYzLS4yNzk3IDEuMTMzNC0uMDI0OWwyLjY5MTggMi4wMzQ3YzIuMTQyMSAxLjYxMDkgNS4yMjk3LjI0MTcgNS40NTYxLTIuNDI0M2wuNzI0MS04LjU1OTk4Yy4wNDU3LS41NDA4LjUyNjUtLjk0MjU3IDEuMDczOS0uODk3Mzd6bS0yMy4xODczMyAyMC40Mzk2NWMuNTI1MDQgMCAuOTUwNjcuNDIxLjk1MDY3Ljk0MDNzLS40MjU2My45NDAzLS45NTA2Ny45NDAzYy0uNTI1MDQxIDAtLjk1MDY3LS40MjEtLjk1MDY3LS45NDAzcy40MjU2MjktLjk0MDMuOTUwNjctLjk0MDN6bTQ3LjY3OTczLS45NTQ3Yy41MjUgMCAuOTUwNy40MjEuOTUwNy45NDAzcy0uNDI1Ny45NDAyLS45NTA3Ljk0MDItLjk1MDctLjQyMDktLjk1MDctLjk0MDIuNDI1Ny0uOTQwMy45NTA3LS45NDAzem0tMjQuNjI5Ni0yMi40Nzk3Yy41MjUgMCAuOTUwNi40MjA5NzMuOTUwNi45NDAyNyAwIC41MTkzLS40MjU2Ljk0MDI3LS45NTA2Ljk0MDI3LS41MjUxIDAtLjk1MDctLjQyMDk3LS45NTA3LS45NDAyNyAwLS41MTkyOTcuNDI1Ni0uOTQwMjcuOTUwNy0uOTQwMjd6IiBmaWxsPSJ1cmwoI2IpIi8+PHBhdGggZD0ibTI0LjU3MSAzMi43NzkyYzQuOTU5NiAwIDguOTgwMi0zLjk3NjUgOC45ODAyLTguODgxOSAwLTQuOTA1My00LjAyMDYtOC44ODE5LTguOTgwMi04Ljg4MTlzLTguOTgwMiAzLjk3NjYtOC45ODAyIDguODgxOWMwIDQuOTA1NCA0LjAyMDYgOC44ODE5IDguOTgwMiA4Ljg4MTl6IiBmaWxsPSJ1cmwoI2MpIi8+PC9zdmc+",this.supportedTransactionVersions=new Set(["legacy",0]),this._readyState="undefined"==typeof window||"undefined"==typeof document?z.Unsupported:z.Loadable,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new aR),this.emit("disconnect"))},this._accountChanged=e=>{if(!e)return;let t=this._publicKey;if(t){try{e=new aB.nh(e.toBytes())}catch(e){this.emit("error",new aW(e?.message,e));return}t.equals(e)||(this._publicKey=e,this.emit("connect",e))}},this._connecting=!1,this._publicKey=null,this._wallet=null,this._config=e,this._readyState!==z.Unsupported&&aq(()=>(!!window.solflare?.isSolflare||!!window.SolflareApp)&&(this._readyState=z.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.connected}get readyState(){return this._readyState}async autoConnect(){this.readyState===z.Loadable&&aG()||await this.connect()}async connect(){try{let e,t,n;if(this.connected||this.connecting)return;if(this._readyState!==z.Loadable&&this._readyState!==z.Installed)throw new aN;if(this.readyState===z.Loadable&&aG()){let e=encodeURIComponent(window.location.href),t=encodeURIComponent(window.location.origin);window.location.href=`https://solflare.com/ul/v1/browse/${e}?ref=${t}`;return}try{e=(await r.e(140).then(r.bind(r,140))).default}catch(e){throw new aO(e?.message,e)}try{t=new e({network:this._config.network})}catch(e){throw new aL(e?.message,e)}if(this._connecting=!0,!t.connected)try{await t.connect()}catch(e){throw new aP(e?.message,e)}if(!t.publicKey)throw new aP;try{n=new aB.nh(t.publicKey.toBytes())}catch(e){throw new aW(e?.message,e)}t.on("disconnect",this._disconnected),t.on("accountChanged",this._accountChanged),this._wallet=t,this._publicKey=n,this.emit("connect",n)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),e.off("accountChanged",this._accountChanged),this._wallet=null,this._publicKey=null;try{await e.disconnect()}
299catch(e){this.emit("error",new aF(e?.message,e))}}this.emit("disconnect")}async signTransaction(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signTransaction(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signAllTransactions(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signMessage(e,"utf8")}catch(e){throw new aQ(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}class s0 extends aZ{constructor(e={}){if(super(),this.name="Glow",this.url="https://glow.app",this.icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAMAAABrrFhUAAAB4FBMVEUAAACjON6dNNyjONd7C+GIHNq1S+K9W+O3TeLAVOe6TuSJHtqcMdPBVeiuQt2kOdeRJc7AVeeyRd95COR9DeF7CuKWKtCaL9KoPdr78/789/7//f+zPt7u0Pi7ROG5SuK9TOT67/315PzVYfHAT+bx1Pry4PuiMNWmMdaqN9moM9fv2vqvOdvtzff15/ysN9mxO9yzRN/13/ysPdz46Py/SeTFVemPE+/EUOe5QeC3P+DJW+y9SOOfLtPZYvT46/2TGOu2R+GNEPKaI9/PXO7t1fjbZfWgLNfu0/jIV+rQX++ZKdCQIdSWIOGmN9iYJNvCVOjRVe/CTOaKE+eZKNSgKd2TIdnLV+yECfGfKdqKEO2dJ9ylL9iNHdr02/uHC/KjLdp+BfCcKdbKU+t7B+eUJs+dLNKTHeG+ROXUW/GLGeCFFd6PHN+JDfOuQd3JS+vNWu2EEeGOF+WiNtbOUe2BDOf02fuSGuWOFOuUJdPWXfGFDuvMT+yVHOWIF9vCSOiZJteACeyLHNV9C+N4A+x1A+mGGOPHUOmKHN2aLtKFEOWXHubarPLXju7CfevoxvffuPXQmu7QfuvnvfXJje3dnPHBauTOcOu4bfDjp/SqUOytStugNu6yXd6bKueVNOUmkAxzAAAAGXRSTlMAIxB+3D9C/WLfo2CcxcXf34TffL6cvc/vU7i1KQAAOkJJREFUeNrElMFuqlAQhivICpLehFofgb6ET1CjCwk7drZNwA0SFqYJ8Upq1Ke+/wwz9hwurtT2m5lT0933z+jDLRgMPN/3w3AEnoihkAt1l10PU3SHN+aP8EwEQeC6ru973sB5+GWgHY4gW5jk1LlNjSFruy13FLEz5KGP/p9X5Xg8jp8D1/cGDz+N44WjYd6cKRorAozBDgHUaIX1YV13lo8WdS5OgKfrrxwFDsL1fuogHH80bHrcG/MEUAbqv6PC37ROU3v/zI7mjYb/ofZd/TfUUeyVyQQ9Du5/C174tGxsEEFViX7znYEF++/0AlJF/MmbS+Dtb2C7QZmQvHA2R5uM3Ttm4ITDJWg6EVTwRwsNHwBaqQ0QgrpTEa28wQat9Bx/+5q77/Lo3ycD72nJWOpsL/4NTV4Q3evP2krrQ4rz7zCdog3gzxFg/Wg27/nqvxvyR5qyLCPUJIomUeDdT395tucAyL8p+EEAyt5MwOBwsN0TLmRgAn3lLG4e/yvswdmerctyIoUUwNi/i76eAA3Loxu8NKeWYr/fFwu8pyzPEUSW11mW1TX1IevY69/pFC36SSL2cbyJ2RyNR3kXe4H0eaShj8H7eLsrGOj2vxo8/AlTVeTN6ixPb1GcsgL6GUWAb0IGyJ8TYFbpCtghYEg9QYM2gVh4pbHtgS4fq9fF4wi6BIMb/fSJPRfbV7AXOILWXi8A+idM1gvrrwiSp1a2WpsY+hguiuCSP906tPkC+nFvcf1DtV8qpE+jQF5ZIAHaPqYvgwPkoU9vukosNlr4SPom6m/IR2hOAK8ym83KWWlx9ffAGen1f9tTG/IoNlcWSgbWFy8A/miTrVYM7AhIHk36SiTAEto96PfAuW79JP5Fj/IX/gafmIXtvpcS5TXNCupo3j2eD06ASKnnsNf1b7cxdWzxrlj2ZfTyEkWia9RMX+bxil+CEOpfNEszgcriE71g4P/J5sJ6sRbIXAIgPmhA8pEw8/m8fbYEJ2DKm/r29l+QgOhe5IpfAmf0j9SyaWkjisIwrS0I7bbgIn/AUDBlFm4Ds8hKs2lloouQILrLIiATGAQDycZf3ed85c4dTTX2Oefe+LF6znlndGv2eQKUh7XKNzQ8oE5BigD6mFvxlam7OTef6N+r99h4CrL1z3/P74JcX+xzTuVw5Xz0Mfj0ZauE/kblOQ9afDbKs5hzuKhnTQDXMgLg9kupezEPrqgLs7+SekojwFtKL3D/3F5xccBeL/+CuwWPwUcef8jyr/pBs25aeAT0LGX90A0A8nSoI8/+XZ71y6Fh/jTPuZun+Ef2Q7+vgjgDd2EfoJ//MYFvBB+4N5tbGv3Zeq++FFxzHPbPZbD7WjMQj74yZgIXF2NPQHoIuvrJHlrr79v+T+mckC/8KCfHB/pvFey3txv8Z7cz/BNNhok3DIB2edG3DNS1qtPBlbgbZTkuYwREwNefE/LJX+j3+5f95Fvo9uOmikspvZSjg17/4c8ERB//dgAqumoPICH6Qo2/URvy7gt/2z/rl97p34wFVZ5oz0ejOTUy/46+4f7hzSn0FPY9aEiUo4P9Af3ZZqbs078mAKlSAuItWC/VnwkYZm5XaZg+TT3d2ADUH338R7hLOaGf9m/OdIIfKTEMncDB/gTAJ8DlEah2NHQ3AKuV+HNgpfrBfRuxd0pB9DlywWQ+gVEbt4+nP20fzpL4Ty86wa89DMcHPv9BSkCFv16N1nU1NfsUACbg21/VMoM6oea4O2OpFAHcXf9m4owS2V8/9++r/dkplcw5r3N5+d4JfL0N/7DfaK1lCFWbaTWdTq+b9v6BCbB7j0A2gMd72OmXbD8Y0+g7XXt4GQBfPnVWnLnkgJO+WFiZPingTXny6b3//4S+uQdVNaua2D76Qpb/AHd62B4A9o++/6BkAoEFwNiz/zwA7i9Y9tW6p6dHFxBDcMjA2/8PfO74awJcn9PZPvqcYJXA3dj5Gzt3lw9CPgUgi0CuH/4uj77lfoB3gm8W3Rgwgbf+K/6xNdzfymH/0EiZfh4AXgDOkh4OaZnDMA2ADAS5fjlO+kFXHzJ/DUCkfzAoegPoLVoFi0WWAV6G39/8A5DvP6MKEKdoKrE6TwkAnYDKox+8OoCbMtt/sDcA/vYHe/cNlF5ONgM6ZnD0zxeA+cf+YdPVb/RMXybg/Bx/118Nawp9G8AL/449144/O/3JngCEvQ1AMH0aYw5N/er1aPvJX9rN5bWpIIzi+BYFFz7AqOSWLBTflSKloQsTEFcuBR+BVHBbQUEUpIviMjFtbSmllv6tnvkePTN37qRW6ZmZGxvr4nfmfN8MCQKfMTgxtQHk/Y/5dzl+uv/OzwR81QTgdcU1Go1evsR8SX6sV3Tg1bs0AYM7gzuYoG8KAOBBpAb4tpuehAXpu3ORBVPawLW0/DFzA4ZhQGoB8Q8SMB/wJQMSA2hlRAMCfFjkBz6m0TMB0JImAPjgN/wkAbr7c6CfJbvimwFYeHovMBWL4EzS/+gA2PEwftUyxnDYRwSUHvhvA7zQm4z+2SjI8GHASGT8YJcl9K/wIP8SDBB6237Meybtf1IAef1z88GukjciC84WDKidgGkBEN8cEANE/f686huGw2OAHuOZ4pMfCwEYRfjGj2kGhOeLpRdLA5HwswCCAdx/zATf4amPmHiPKSgVwZVaAJRcZ7b/y8vgDwnoiwVmgEzh9weebgCeFgDDpwVAlwX5/mMGiQGDgd0ATcr/2NsfJiWZ73bJTx/owKniCQA5PwbF64/zQ8M+ZA0Q8gpgAr5KBFgBln5Mp9ceIOjUm7CWVANRHADQewBmzYFI3Vvdbneh+wQO9Gr8qIKg4klwjfyEfx0eQ+M/CD/xYQCWByBYUGsBkDuA7dfhGWACVPQB9W9SfnNA+EGv4glICf3CAvAXYEAPSm1wBy6VOmC9/0F5BcAAzP6yBiDil6fBf/YAIAIrGGkPBD5FAzwARp8HgAbMzTXhgx0jqIfpiqrAe+HZUgdUC8guz1oHcFkCpAWYvAnOB3ywi4TYEwDt7Uy2xutrnU7rpqjVub+2Pt6YnKtyA1Sof0zgqwGYNID4EOBdPRggj5CENARNEbioXwA4PS3AyPlZA6p5SughwfcegCXa35mMO0Au6v7mxrm75GcFRB8CCL/guwGsfvK32712L8oAliYA4lGYBeADO0C6/8N8/xv52QSUHvtvCdgj+yHqbE6qmL92CfLyB37Cj/B3ia8WVJEJUyNwJnwFCDEAbP/N/OgBhQBYBr56DGTnx4j7UdQZb98dDOhAnACI/HEFOL2pCqtHWRdojMA14ce3PzwANQJ5/pmAsgHGji6I+O9P1m7+k9Ymv5t64F29A0BpACDlT9SrggniQ9wGahE4cfAdsNKzBZT4+4UA1LW/C/p/1+YEBtzLWsADVUMCJPqJqoopEHq/DpxMvgeCYACvQAJPlfe/HACM3a1C8o9SC7/LPSA5AS0BNXgoFEJV7wPpdfA0+P0b0OYPQModsJwAbv7/6eF2/FF48yWILSDBD8tf1AD2gUtxC9QEQJL/1YS/0P+oZv6dqfg3dOrjUHUmtY8CD/hn4wuw81NAp5gBMSBqg1eiAKyyA/AAsNtfKQAU8W83UxOb5DfiUbLgl1qg/HkPzM4AaLFytWVUtaPgFCvA+YGPscoEJOkfEr/IT/ycnha4iFx+jxYEAx6zBbAC8v1fxAgGtDGzCHgGLvEMcPE7cOC78v5XdIC1nyNhMgEyigngr6UWbHsPVEkFMACgjwxok32x5oCHAOcAz4Afwv/+g9KTf+iiAYfw763X6ZOf/En0JBHsDvxNar1KL4LpHUDwGQFhl4HpOUgicJ63IJXhvwZ/Af/wApi0GuC5u3zBYDRu2Ip+lT9Eam2kPZABqDfARagK0yKgFvBKGBw45S2ABqgF+ArsSPtPA/aeJ/SOxx+zzJPTX5O/zEL0qCoYUA8AJPz2jKvAE3BZ+U9GLcBEAwr4BQO2ai3PFP0pfsr7GTTTIL+U18IGSyA2oJscAAeawZIU0AA6oE3gjLcASPFX2QBKNwDyU779hjRNtMbtoBl8W15pURSC5kMw5a+wPAfsA0kXOMtbQJIAsH9X/iOcAFr9bHT/p/q/T1LQ+mkGzBZKYJGamUEGsCoXbwPeBa/mFQB8LOcf/k0BjDaiA+wYlKZg/EQc4D0wSwAF+pm4EUT3wQtJD/zCCgj4UHr9L+Sf8Vf84+DPU/BoxvlZAbUO+FTgRfInJsAjYFehT94DvqQJ8Bvw3wRgt8XtP07RgkfbWQ+o7/9TYcfS13oNQNflHij/ASY2wL4ErtV/Tk9NDP8Y6WmB6w9v5/7aZhWHccVLRUHw9kO80L6hBrUaFdu1IJIpFBWVjnlBNm84UFj7SyeSiSjiYMY1TROb1Rrb+a/6fO/n5OStlzmfc96TqKB8nvOc75t0fb/uugHCXxqwsgITlB8GLKQGyGeB2+kmcMX41QDAWw2o/wJEwzX+3/jjpgBdTwPgDjj9wgpdC4nKCNBt4D4yQB8C0gAI/od/9xNAfwq/gesWKkLQdwPK/cfmqwF+BiIDbsA9dBcUA74W0W8Bx03wHP8haNCX+CU/1LDl1pgRGRiGAWGBJUCO/0qRgNSAO+ibABug+MiAHgDAn9Pb4GufFviJAetJ8Ws0MCG8ykL8eMF0W+LdTchq4dJ8+V1Y+FV/4QDdBx9OA8APAcCANAEn7v/O6qCyO5/BhwfhREhcMldkoVVl/ya3q0ZxCGBAyY+L+c2BxbIKmAF3SgL8CEBUACQBmPJnwHUGrA9Wj1rOX6/woRRnRC4FFvoiKeGIWFANHp97wmuACehMD15e8bIYEVjIDKCvQ5spP+DVAZZwY62vf50jfAgU/H+rR8M
299HUUQk3pcpeey5ucfnm6gDVgLiLuDxx8KvZkFEIAy4UhoAAV62/1x5/EP08be1c/ry4VLKfxNW8PAJYbUhHmPVAzLC5wAUYHXA9z9LANAJfsUPwfSNEF+GcwPUAvsNKFx5BBw/7v8j/F7A0ahxSxVumCWtuWcff/wX+TxA/O5A3AMF/+zK4uLiAl2lAfRJ6Hbm31b+LAEYLDhQ//kPWzGBAwhBQ1Vh3ALlh2T0Ir4MLTT1MyGdgcCPMwB8SgBbIJpfCAfEgLskALkD51LVff6dMD/UPoIB72YhqGzcGk/25ujPx1/Ys/vhr/4T0eC3/OPiCNghyMvg3TCABH6W8tMw5fQhFH+Iq99Qfkv+aMnRQ5kL/40T7fHTT9OPRHb9dtiYyz8IMz+T8/678kMgn4XvKxMAJftPi+OHdpwfOgQ/6XD9nyWg+jf4o5f4h+PPzi833IHWgpVA49ftF3otA5KBLAH3sAHcAKLmBOh9cHVaI+eHmjv6sNQfg8bfS0BF17+pGvizUv4Twpde6jcgc+C3tARqAII+IpA6IF8GHrqyLQG4RgZcKwwA+rnVkn9g/KIxJ+Aq5h+jEjB/X2H6q6sqnJo2ibQ/x78wSgn4pQFFBnbjBKQF0Oj51TKQnIE71AAE4Bqkz0GeS7U6S0eV8psm9tTwVbMAqipQJJxVAR//sFT5T/aP6bdm5bfl5lFwzAIpA8oPxR3wrPJHAEoD9FPANrUB0Mdf/9qAVsJfEefQ+cmCwbpsoe8l1KgdVb7/9jqVpHb/+BV/au7p568rv2fgkyIB2H58CMglBsQZeOC2R7a3v6bhDQC+pcc/DZ7GDI2dvzIdMj+m6HCdmTENqWI1Sn76R+EVzdw8qTLjr754RQzgBMwbfzhwPSkBtv8YZ/MUBD8bcC++DcMBiA3Qh4Czp0ASnaYJHQl/YOGltcMlIDQZVaVKfD/qNf+sIu0fywPEkYB+o3TgQAJg9DQXCZ9nmQAzYBuKBMgRwLAEkPhXYMsDQPgdQ+sMQB/axPjjcFjNNCETg2besOL90vgrbx9iCThopEoOARng4v3HsqYGlA7AgIe3SVkCsodAcGHRAOA6LQdA8t9JHGh1we0maC8l8uCmtDQ6juZB4IfIgOfyEumHIBKAIfSsxVBUwdSAa6IIAMZlOMD0wh9//l15AXB1MAaCHxG4aQ+G4+Op/jF6BAZWHXMHGqeSACySBSaEYHFN+HMD7mcDwgHgk/ghQMxVnr77GPCg7/wdF3nQ+i7n36Srt0nXZPyPTVgfHbzCjbSCP4rgEqHzCcnLwJ4bcJYdCBVVoM4APgTpU5CrMiIBkzgAUxok+GDH2sPa6232oC8ng/56x+NCk18wptUajo5/zvvnZQY8NeDsRQbiEPwaCWDsMGCtPANhwJUsAcYfFjA6Llar4De1uoGP2SP+ngzVxmQwHu4JepCHBet7o8HxV9FFL+2gZPzQvvB7qQwH3vA/EWD4OABra2vGv5hEAAZYR1Cit88BKb/8Dnzo0G4AnVKDogTABKX/HtfHNKA/fj8eDMaj/lA1Go3Gg4Pjr37+hhT4ZgDRYxr/XFXIHdjVBOQG0H1gdgQehAHKzxZwAtAR4TKG7b+hFwGojcDFi3QEeoSf6PuP2QLT24UMXy3w+Pv+awnsn2DAshhAnwCNXSZCMIOfDLBOmJQAa4AC/EhAxn/o/O1Ou8LAmzbT03oI9ovE30PrPNl6WuWd49fzg90TMLsCQr9Xs+QRKBIAer0TrpU3QjJAdJWWd6+GBSKCvlwGoGLkSoa+wJGh8GNhD1gRAOd/GwMz7aaZN1HEDE3tPwegPgPLOf8aLxBlwBQ1gBNwRR24ui3faC/RCAMu1wQAvApu/LBkQvS9q9h/zICP/e+FBbVNJIHPY2b+6R5Y60BEIHZfBimNwDxLDJBWoIQfjcDCAFYZAMaFBRBeXCPuGMcuyBL0zi5DE1AG4BvwJyr4B3zjqD8Eb2QBcC3yIppRBNmAbWXHoFczoAxARfD5YFXt1jvcMi/1gLUlAQhFAj7AAH/gSw/N8vzrs7P79B/CVBPKCPxKd0HbfSxYhd8DYA5EDUAb3DwCl1j+FLhpzwNQNw63ROQDzd4WsW9R+Le8i2YeAOCHyu0Peub/ndmxYC0MKCKwFlqUmUcABoBd+DEUXgZagAh86Ogv+dtDghcLMHHBAtHHNQFI+YV+6vNPdA+iHwbucgBUFc8iAil/fgoEPz0Dt20CHxc74Am4JNJH4N2GvhiAA1DvwA3BReM4lXXQpGGNdL9R/g+ijfJ7mNQ6EtPw38puf/rY4HrHpZ+k4zSoAb/FCWAFf/HTcTJAxQmwCHAbGEt/xKAVARCV/O3B1iXtm8aDuUWgtz66eAd4lrDTOqODquHHc7NzgR8hYCOiDDbOiAPBHg6o0gSorl2UBOgRgLgPSvTC8BIIzELE7mfgyxB7AAEdF1ags6SJLhblx+4zPhbb/ah+SeeIUadUJS5EBH6RBET+g39NzsDMBFgAQI+pNSBNwBAGcABO1A3tmCZT36cNVGX7pYsqVuw87T6GKGue7Pj22CyfgOXCAjsHEoEn9QyclIAFws8NoI9wYFd8PgTY+HgQ/sgrwIkaaLswdwGDuscx/Abv/gZetI3qD8Q+pS8Kfn9car5zkjwCp+pPwJmpM2AGXNzkLsCMbl2gTuc6tACcrCHgIfZAV+Br21S84JXpOQCEX9KXN3/rm/YLth+jTnYjuA7+mRYY/mKSABPzwwFeoK4UAH8I/vSeBeBkLd0g5ugXt4GZigygBrLcQRfCEvQqo4/tBzxpn+CX/zICT+oRKFR+I8wNIHShNwNCN+gERADqNbFOYRs09B2odUA/hNA41fQ5FLufGhB9k5YhOIBFFYaUZ6CsARhn3ADmLwzASPvA8QOgch/ACZAANNsna8z7XvQM8wQAO/idniX4UIb/jPVMeP5gWdShJSwIWRncXVH8+gjUJwBL1yXwmN1+BKDZbLoNpR3DIM+lm7+B6dvPw/QK0ef4WdeMZ0cM7+Io8BQrIgL7HoAyA6xIgP9PQDQBOb/gd2m2ogQ2obbMWboB/lLaM9Kap85QRp+dfusatW/obYxUHgM1oJEa8NOpIgJRBMwALYKSgK5Z8F0XDSCIf6c7kXsA6Bkdrzwg+2v7G83JLAMYH9d5mucz8NdJSm+KtnFp07A2sDEz+igLePEIvJwYcIouT8BaGPBqHIHvv/cEcACC/zSaP5AHh3YCmq62v9FVPRioAdErbQML6FneNvPzaBj3OVuAMdU3L7afdUAGGH+YkBYGM+B68Bt+fQLAbwZsSRvkpA0i8PFmpztMDGjxJYo3bfOgnwbg/eiWF/xZx7hQ0TVPy9+zqnHbIqBrqU5SBDj+GKd4YBJ+/oXwVTaA6MEvBmCgD3TCT+pGCWDUFkYTSzN945HYMwNAThbU8efw2e7nj4pbw4hhWxyIWQiHgA1YFgNAjxIARQL0ThgJQP2LAACfZAFwdW9wCaAAKG2bkf1Nlof3s0Zx3CMt2gWGMv5i+5P8m/baoghBfQTezIpgODD9o+HbLAAia4E/ZUCXamBWAmACLfEGw4LRnBC/4bPOswPWLC3k/KqsZ3RC/wIvhg9ZNaw1YPes4WsEwoLFMzgBJE1AHgHgk7L9RzUcSwngAADWlnhDabAwDBhfQ+AKenlFuyzf/Y+KpqnJ8beuYXOC7/zt2QZUXgVB/9MFOgai9PtA1ACgO34YAH2XaagnQHMur0quPkQ0xnoEYv9d2fZ/hvGRbD8cyPsFPa8GRL8U3ARSGXvpgFZBLv8/Af+C8mMm9wFLgP0/0KIGCH83d2A9NcAy0G61gj0OQrMv/FCQJx5oqzjGJ2UtI/OekYGPazfD57W+CCxLAuQEYLK8CCxEDQD7j/z/gepFDehSAMKALzHTEtDiBRJm5EFccO2l6T+fROAzDFpMH5mYvrz7RQBIfYMPE06ognoXvIBTAAOsDJgFkQDQs3oegUv6Ew2z4B28Wg0U7ta0mjKhFg8+Alz04AIug5c3oeAvm0VBwu7aF+bEAMzaIvAyGwD8C6gDloDAx7QEkAW9qIGQFoF3MCBaJlwDEQADTlV68ZLy57LNLwPwjPLnx3/agCfkkza4m/CB8We5oAbsEi1t/wWWOHBGIpAmwALQI36rAdEF/Ttc8OLQSkAddf76uycA+x/4uGp3vwyApd/VbsZXEFyqMgKZAT8RPE0xgEKgRSASoAbo7osB0Qedf7A1Lgw4UQfgB75l4LzhY6mPv/PXBOBPys7tJ64qjOJVY+o16otaK6WFTlERtQwYLV7SWJSi9mKaEqMSY2PFxAhJDYmmCY0vjQmUFgpIGv9X13fba1/mUF3nMjNeHtZvr+/bew4zZ05n7zfUPpJgAHBUTQAA9g2A2g//ECNQ9AD84Q4BoH+zT607gHLYubcAvhGx/X19YPm/kRNQ++XNchTAYZgPBraLvBJaANspAAUA+oc8Af4roLD/Hey3AJCAu+yBjHq37lysekBjH3t9u9Dy6ke4p3Z98CF95hSsIPIIGIBNser+CeC9S7EWZBOEDIAiwDXsFsCXm0fZA0dqBu3L+/5zCSkAHf0/3BfrX+w2AxLAqwagfvuN3aVdseyCPQJQBK5LeRMggLAfBVADmCWAjhZY1
299MM9vfIBVfa7OyAXQGo/BO/Y7bSlrtkICAMTgxAoAUx5CwgxA5dsKsxXghoAQ2B/zviy0qkAMO6m47GVA2j8d9qvbhfIBhjD/6oR2PJBj4dWU+CA08cG4PZtBMAInM8jcMmaABPACoD8V4CqAPx0AgB8EhhX/wcjWJcSeLh/I9B2ALNf3Tb8nY1klEGILBBJmgePZAF4FwhwSgAMgQGIFui/gxkFcLFsgkcdQG573DcRwRiA2v/XrX+6L94BVDeLo38DwPQz/ykAdo6FwG0oCJzHFgnQErAm4CVAAvUc+AkBaAnQN7aSBB7IYN1KwGe/cv3TUf8QO6DK218OYBI7VtqtyIEA3rtd9QACYA0gARAB6CSAv+PE7+Bgkxc/YSXcJIAswreDCADyxj/sU+0CMJTyT/sh4SAAaJePVAmAywCM/3lNACcCJiD3f/UX7QDZj+B4EpAAWQeN0HWbfr4MAHrhQ+wPaAAIvqu2b3eNHwgABCwEB4oJYAWgBbAJQHFJgAAgAIB9yAPwSYw/fhjNALxVuBwPGhx6fSQAqBn/jgCw/ov7hVKeAEyzxiFYtBHwpSAAsAMsnIfePZ+KQNyzBByBfHIBCWAAZPcewJWwe20fWAcG4GtV2f6prvzTfwtA7E8yBrKJ+LwBcNsBuOqJkADcPpTG3xKAXQGcUAAjZpGO/RgnCW+Ct3j1uwHQ+m8ngMEAJjH+CiEYpCBMYVMSUEyDt6Hcv7QC1oBfGQUAlSZAFQFQAgmALITYAzzu6jpynyOxEuj2X8e/vQRG+9TWJCKgG62ThR1AEQmYUvtOQErAqiAmQlUA+O7PlIAvr8YvAToDfUkAYrgoBI5/Vg73fgj7GYAu+yUA+m8BjFgGJsM2/WevIwGT6Y3AwoIQWDD/DqA7ARfhHs4pDcSmLYQ8ADb8yXdwYCDu4zcTTZ3pZ/7pvqMBMgGSgawR1idsLIFeJADOPQIkwIVA3QMuQjQvIdBF4d1YCI0PlFKxklDdAQBXd/dvABT+W+1OZjVg403/bAUBYCI6wAISgF3l/knAAXzBACQCFAisE0AHAT9qAB3L/3r9f/AEcEbPhydDWQ8clIApBbBtABauLUBKwWUEmADYVwCeAGw1AawM70cJjB8gMvgnADSrX9rv/hsA1PiHjk+SgJ1om3tKwH4AUPO0XyyFDIB8aNsB+Md46h/Du3iHCXiICOAz/dtf4/+Njvybe78CMFCTpQrjLAdbCuOiqANwkQEAMAIOQBPgAZAdrulf9Pf/A/BAAUDff1b6by+A0j8vgZQ/GwRZCibC+Sk7Ff75xAFsGQAYN7EPFguBQ2JfE/AFe4CcywT0/x8A/9yLMChXfy0Be/9XNEDaD9nL7SoAZRTSamDqhALYM//UiiNgDRgAIyD+2QPgWa1/YwHAyS+K/jcAQwDQ2Dfntf0k1n81+kSwU/g/hd02YpAtAGgASGBGM0ACJ50AAMSXtwyAC97FNwCYTuHd0H8GsH4FAExE0LZ/Eujof/QPGASQE4CMgrrXScAATBYAVlZWFlayubBNgAKIDHyDDQhkj5LAPJgAzGIL8SmFhSABcPrj5f9m+neJ/ToAlK2EOO7MgO9WAX5ZfKL2D5UALnkCYN0Q6KeXmQB7MBgxDWAtHI5BgU8rGHcSgG8/o30TAYgq+1Az/ARwuAnAIs6LiiBqIS0D9mMdCPtQICCAVAL86pKNPzzrZntoNwDAprknB4ehe8yC6ccim+7XPfxtB3zffj3MAQxn7rFxl5eL+jDCSSBLQALANhgAmICrmoCLkQEyMApfcxowl7O+EQifPUgVQP/Mf+X/7e7xf18kZ0cwAY9BgBDUvQeAPXAlJgECUARG4JITAACzbwREt2j+Gyh9tvWUTwNhk5sT4bOJK1ECY5qAdvLDHwAPan+8YbwpUrCPuOf2Pfl8IAB9M0z/LIK6DQKAILiqBYAIQBeVgQkUzP8tdkFGnb6LBKwTAET7B+XflLm38FNCYMesLqpVL/5F1gF29kADEPYZAb84RgAYf5N/iUPk/kkA/0y64MAEBASe7l+hf89+2/1oH2rLP90pNSewt7iItEvgZefQZ/UQPXAD9nMA56ILtAlIkgiYxDalAK72y2kg3OuZu/dAyD/8WF/9MP9R/V0XwCL/xyCc5VESMLy4CN8CYbFYCSAU8Sp64N5NAqCsDbIJEMBVScCtIPDND5n/H6QAQOCEdUF3HxD4klkYg/8PLQBV/Pl7ad3tjw0Q1pMsA5uIgMVeQHj64yQNIiYBtgAZfQgR4ExQJuDHmAR/D/8/AMDXsI5DdQsqm8BsBoGjP4vn0N0rP1zvAJB//rWq/9q/D3yJYGdRA6BFQAQ4DAqqw9eB2zdvOgDaZxvkRIhZIH2DXwBcDQBqHwDkQ+14eatqAux4DkMeoyruXZHvPjT+Ofqmjukv818A0G6wtQi5ddusF0QJsAUIgN8WFi7D/+VzJgVAAiyBHxUAhC+xiX3oa0oIQLdujflKQEfa7OLsDyZ7+s91AOB3Pvlzye34w34NoMh/HYFhA5AlINci3wuvSAAuw6xavywQuBpSRQ2kBEBXDEBFwPxDm/F+aLZS9Q/GrqMC1H85/cvsb+IHAAavf2m/JiBNQCGkEOQCAJsEewjAb7/BrJnvigAB/GgA4B87ARQJuJJqYPZArV/h9/7Ki99F+Lv6P/PfyJoACGBzAhoFChVgV4MUwOWFc3kCCCDvglYC9vVtVdgnANMVqwFrAgdplwD40Q8r/3b51z3/txIoux4AJyDmmQMCmJcOIC0gEsAIdCQgKoAEKgTy71gDB+nBdQAI/wMXPzg6/LP+g8AHVQSG1HwhEoirQRPWAi+7dSCYd//QIABMQADABU07cF1HauCK6B/OA93avp4BUO+Mfzn8fPvf+C9/MosEpAag8aIERJYDzgEggArA6HsC5ueFQQ3gkpeABYA1AMG3CQwSgbETnAc6db8JAPx31L/5J4D2F7Owf6B7ENhdXI0aoGI6iFXQ8s2b6AAWgJ9//lnME4AsB2dAIAHgFEAAMvCZtAag+1kbHJqNkz1hBbADMP3038a/+c28LAAiQ+A6OYQA6E6ldsBV0E34dwDnfsY+D5UJIACMf7QABqCS18CDsg3SOp9uf84AtG/9Wf2dy1/aJwArgyX9RzuWgGBAZS0QBcAEmOa1CLgaJIDnpQIaAESQA0AblIsCCmBIdhxVCHZRAc0X/zn3t/5pnwBY/5SHYGlvFd5Xx3GulFpgb1n9MwHz2ByASv5UEE3gSQCA8hJoAwAedRuEX9mwk4OeL6QAcPFL/53tn+Xf/lwOtXRsaenY0CrMrzYBKFrgbxEAAHCxCvQieQ0ACFoAlMZCIxAXxmAWMgi26b6OALADDux+NN+Mfwtg2o5pOS19sCQENlYXJQBCYRxHHYC2BcpG/wAww2mAAH7EDVxMrICKwHX8S74jUvtGQU/2uGsdkA2g6f2mgf4ZfwKgLANLSydXxb0icK0yAEckADmAeSAY/Xl+dHQeGEAgpoEZAuDd+zgJmMZ0U5l/SC4NTr1lAKA5bFAg2GYHzH4pPgfQ7d9U268QLEF3hYDEQM84VGkOFP/RAuAeCEZFFoEVAgABA0D7SuB6IkBhVJ3A53xDEO5xThzuMwCsfyn+7sVPs/4hgHBPLQEB2qAZt14gT4sAWAVAmP7UPgDMWwAsAjPoAYMAMAFyPSdCQAKobgD4/FTeBeYm5Mws9BmA8meyu6/9Mv7Y2vy3CDQClKcgOgADwP4HBCKLwLmVmRn41xKAagDXr4v9H+ifGbgO4T+qIgACc1b+eHaP/r0B9Duq//jx3b29rQ3X1tbe7u7Jevw7tLS0tVqrXAWrfxDwBojxH5UT2yAQeAIA4CUCAIG4i4td0cIhAocPIQGACMhaYMojMJtvCADv/RwNsF+O/tnDexs769tzcz3ss3Ozs71eb67nmri7v7G1d9KHv5vAV0MNgHoKgHTw//jj5z/EvkkJlACePfQiAcBeBkCMi+xRCWgE/knLQe99OGy/92EA8G//FZd9Tx/eugfnFKzDf6vt/Y29k5n/r3yjNjoDsMUASP/D4dZ187dE8L+gNfBuDYD+FQAFACIAgPCJMSwHIwLY49QvCiCb/mB+Y108z85RcC8HznKarSns7M1U3gPBUh0BaYHWAbe
299XAcD9ewJGM/lEcE67gDVBAjAFgBh9NaQA2AX6fFPIVQB0j/6L/nd4C+aH5nDImbI60ANnIWHexzMI9jsB78ntIBSHI9gYGICjR+ZTAMy9A/jDMyAR0HkA8hpoAfBWPpWI4D5XQ2HfA8AGEPYPb2yrb84Vg4UE0D61ub/1VRIQrE1Pr2F7b2i1h83EKXBf/AcAcc8AsAewBgzAM4MT4IIfJMDkAIBgln3QNJsFIC0AZOw3hyhNQKeQAOy0nzHYyxHkXaBXd8AiAAEAR0wDo04AALwHPAUA3QF4DTsJMAP6tnhqBATEu6tv/tP4n76zTt+y6Qs9wEF3ymqgS5sbM04AhbAm29pmr0f/fBvMDugRGC2lBGYgJAD+HQAJ0L8BoMoQ3GMRRATuZP4BYHhjk0tlWlcNToBs3WIMtAzW9no9+JejLgB2gI/U8kfYmAFNgAFgAtoCaP2/FgCMgRSBL4dMd/u5/8M++LZYnMAc4SMvmxKoO0Iv2mGrcY/BltmXA7rbE/vw3xQAhNH34Q8IKkUQACwCLxx6rADQjP8b2AZk4AFmgqIN7Ga3voV996fmITzB5gFozBMC9v+AQLWwqgQ4A9QFAOno0zwToDpfAWAHoH1jADkDpuC+LYcmT42rn/X0ZwCzPzE0MTE3IeM/FAlQFHje0Q57B9dAi2CjVyyBdqIAIPP/EQBg8HE4BJ8Iw78n4Onk/y8HkI9/CEFgBlRlG+hH/mHf/NuwT5hvP+P1rGxFAyyrgHXQhSAAXNssGsAyAfj4W/0rAPq3ElhRAJcA4IkcQBMAOKI0AmRwIbUBZOCON4Bhs2+b7ZZ+tS4IojOoPAqMAHUgguXltbXltT3xHw1gYbnugBp/kXIoegCnAQB4XAG0/nlVX8o6EMSyEEIbCALb9n/079O+JgCGgwIeZnFoEeCZcTAKZp8xEM2lbYD2Z0AACHbYAOfNPwNgBFQMQERgRmQA8IuT1RTY3tFMKbiiDwiDf45GI3yg/8edTfiESWfAk21zeCHuxbofegox/Q+Pwsay6NpQrAD22gIQ53pAZQKg6AHvAsAjBuAvCwCcVffzAwA7vBUIAYdw3wiM3Jf/48G62mUGsFebw4nh50YRgQWguw6EwF40wOXlpgN+hD2pXg3PpB7wCACwA0QA2m+0GYiog9A9JTBhw+9Df5D/WS8FeXAIOLI2kFrhw7V/DgT24Z8NkAGAfScw+qluXAxFBM5bCTx66FB0AAIob2lH4ZUAyBisg8DsAxl+eJMAQAGAIEjATt4WsUwwAL6r/VxD2LpgrC4O7YFATyeAfAnkAXD/nz4sAfjl6efVP0qAARCTvKOHHZoCy4ApCNwZe+3OOBZEUuO5e7LgFv9SW4IslHxlyNWwusauh51b+QIIyZ8/cXQbHGL86d/cf4qdTcACQAD469hhBUD/TQN4G7uLCAKAzAnj98b66/q+CBkwhVUcAaKgwDYJ/xMegCHPPk5BQFh0MPAF0OL88sYkht8bAN8FswF4GTADBiBWgs8CwIuSgDoAF/hnvVJMgan/2oNTRz5GJ5QMBAKPerite0L+JNogACgFaM4QYPNz63/SF0AnNpZXNP91AXgEIgHsAZn/GQfwDOyLCKD5Rnsfx5v9Nx1AMHAMm9oJfUU0MUiKoc5BahMiWw9g/MM23aeaoLJLIJPivl4BRP1bDbgGJ+ApAHjMAOQVcKFw3+/DPvwrAgj+k4TVuhPA+4JeTYBloQeHPxBwGvAnZp/55+7SN4Dx5cibzD9nAI4/xCbAJsgEvAAAT5ctEPYvXKhuakf12QsoJfAxCIw7gQ4KEgI9kwMB6FP4rHoAdxzuf4T+1T6U/EM+/h0AoCwBTwDA46kCxkiAf9fq93lbU1EiIIj881/3lMAUvrTERtApLpZqyehDDEC9M/42/6t7jn8RAHOvJ9GgaVAWggDwCAFAN8bMfwqAePfd1Q8ElN1sDgQYgg6xIKAKQk8OH+0O+/SP26aGfwLIGgBkCEaRAUlAaoPwr8KXBrAQ1HmQADwAr1+wHoDh7wsBV98gvF0ikGXC7sgrbAQMQZc4TRICJV47hz/8H9li/MM/J0DzzgQwAkUCsAyAXkpzwI0bYzcUQPhPACimoNDwSDQChGBubuI/qiVA89Uew/+xtf9RWC/8Q3kDZAKcQMcyAHrG/EM3UAL0/7oCoP1Xcwb9AgEycdpuOfifQ8CVUgXAoEQK2uG39neO7lXW/4IAAwDVACDxLwSeUgBPGwD6B4BIAOwXt7QqYoB/r977ViobJ17xXkgEne5dRFCItln9kxz+Izs+9ysA5p/+KSTAFoOpBUCcBESPA0D4v3Ej9w8ZANinLAtWCYDAzz9YGWgIJlcflgJeLxgsdU77HH6Jf9b96wUQ/ZcJ4CwQ7wRsEoAeZQLgvwTA73O3CMCm1s5RD8EIPrrYe3gh2DujLgA+J9C+3yz0Zlv+HH8CSHXQtIB4M/juo4dUzzMBJQBIC6BVtIRwjif64riEIBCsdiLg+6LODEz0aF/Tj7WPDv8e3/wX/jkD0L7tQDA4AeiB3gXZA9S/SyqbAajFnqhh0CfQzgmpgxNThmCcDLpAdKqnMvueflQ/F38Hjz81ygAUk6D2wOiCat9LAHL/TuDVbhUTpJ2P4/MDCQFjcPCaqB1/iOGP9E+M3hTV/q3+sdF+XQFcCfN6kLSAaAK6ChAGuX8I7gv/ZwZBwFbd/rVGAAZD/y8D7r6w38OFwNY/pP47AuAI0iTAOUDWga4X473wjQrAoI+0d3EwCHbecgSYEYzBuNTzAf2gY/BpH5e+9VJw65/V32m/bYKoAGkBoccsAfks2DcCdQCwq/AwgACzQASIgc4JqwhCXQ3F2yJ96BXuZeL30Yd9UVf+OxoAFwJ5ACIBL4R/rAQ8AFAEIAHgLR2S3vfHzqZABGRgEExptDkJ0rslfyT/0Zwhs88CoP9y/EeTCKCzB6ICQi/pm+G2BACAovX3/c4Gorocompw3poAApsVjYFBSBgoeod5uLfoq32v/RoA819eAoFz3UzpzUC9DJRFwJNqnTUwFj0AcgD1dzrju/xJXUGIyjl5V2MABg4BFBSDgaAWoUmId8Y195j49veWkzgDlv1fpGlX/yKF4BNBcTGAq4AnMgCPpiag9rH1X/cA/EoC4fwYDiIIKaMWxta2/14/GACCUQCHWiMq+6kg/obw0N41Mb6Ggx2ge/4f1RM3fc0CYAs8f0krgHqxnAUusAQq/3Rv32tXBl2N8YwyOYlSUAaA4BQcBMWfSUrm4X4H7s15HoBknzMA4x8MrAxsHTRKAvU7QbbBKgEO4NVIwGlYeT99pUFPOGyHoi2KX86TbJvDW6gFhwAKygEkku30o7FmHu6PbG9cW7PBl4d2BoB7VVn/Mf66Q6j/rgDYKogRiGkgawF4058K4PTpVACNLAZymP8ztZTP7samQRAOLlhW2+HcRn5qe2dmbc3th+Lyf9kAIdqPAOR1UAJw/1wE5BEggJgFISQgAHgABgOA2AzkqP0bvuG9nc1xWASIVkfN+9btNZfaX+uYANv6H/UDmz31BAz6qyBbICPgABgBUdh/9fSZM6cVQJcMQRRDq2zy2MUnxu9uTqyOHDmqOjI1NbS5vbOxNbO0tLaG3aXu6V8BVAEY5QogtpgCcOqqgBnOgXkE6N8yEAkwCPxWd5fMXetcdtZPDnGpFc2HmP92BqB/dcwm4C8+yqbAUQaAHaCIwFhFIEsAAnD6YQDS/NAMPHY5+fnYmaX3sZXu12xbSwS0+xX51w7QOf6Q9/7Bw99cDGz1CPxn82DfaiBmAahugh/IaXhwDBwDB9/+6RJ23+AaEUjuVeHfnVf5p//mCmAQ4AJAX5d/EWMAuAYo9Jh3QVXZBdEDAOAs/Wdf7tSzZ8BEwyaOP3zL0Z0A+s8SMNA/lwCcAXyvA8DxtwDwbVCpR58TAFwK9Z1AGYGzdG9nEf+Bq1gu6iv3zvF3BAwACbD7037rn1MACRQtwOy31wLZAes+2DQBSLqg+T8r9ulf86/usctWSQccUsNnjtG9RP8Y7ScItK8EOPzWAJJ9NsBR+rfUKwH3zjVw9akAdsBGz3ApxBqIAIDAaU2Al746H/5gePgDVw1hCf0uhh0vfGua/xrd19N/W//4LrT45x9BiUDEK+H2T8I/AYh/FkBbBDealYC6x24IIJh3Bm4dDMDBGTQQuHX5h6ax5/4h3Boe9pv+d84DYO3N/uSBs8545UXArABoXwLw5KOHOvVIXgNsAgHgrEi8GwMxHgoCpBBn9WxP3L4hYOPHN0AQgOks/V8pghj/azH8Nv7zVgFOADIAFM2XCwDOAN16LACwC8osQAAQnGMXJdfHSaBJgvrFA31XCdDvgDAAX4n929jUv98U7vLlFf82+LwkYBT+1X6a97KCkIMfEM8nQGwsgK424ASgvAaQAQUgXfCsRiAYwDn8Hz+OAximiQAHfIvUvj8WUuc4sLnM/W0WgN8STMcf0gTo+Ac
299B2iaK0RD9138LOLANtF2APUC64FlxDgZmH7ax47BzLSkF2MfRaBoyBmF/TbL/3m3VtaQFIRD2kYBRBCAEAhECq4IMwDz2wv9BDYBtQAi4f9YAS4BtQCnoNGAR8BywKzAK0JId2vH4tVBjoOYh/7XoZRJQ97wlmBYAirr4MlAqAP9ILPZEoB7/J9kAugm8DACpBIiADLIeYC7NOxkcnwYGmCxugkEO04V93XX0Re6e/oXAyoLZRwSg5I8UfOCr3teO/2H6P0BPpwio+f6vv/pKiCEYzsQEZDJz8MqTGaf/TF/F8GsAVOV9oc9FA4BgrBJ983nr/zwvAvwvAkxAMRNk9mUHgW6pZ2NCtfbRAGGfHYD+IQUwLxVg5rDTcoWBX5Mtxp/+H6rHog1eIIHTTQaIQDPQyQD1EF7xorFvAHzscdB/DWAeAEZBwPtbGwX6Z/t3vcsV4H8jwC4A+0bg1wzA8Fmal/NxmQs7ExAg6D//Vvx708i+IIAMAX8fp0oAlAY4eaVvumf8PQD0/38IeBfQUxYBIggI0PFh+m01zYciBCenxbnsMK8A6J8JYASgPAE5DrpX87V95P9/6d/izp+1kRiI4l4vKOvFdvBVKY642ebKI7AEXLm0K5HmvkUI3PeHe9LM5K2klTnsmPz0x06KwHt6M1pIsd3TXysCMcEiAGZqANCDEogOW/z8PHuoH4bh7W2I8g15S7ae/8nkw4CPsxgQjjdLwJlDofyT6H+o6q8/D0xrAPz+WY1AbIMX9A/6CcnxR3wMyuswFQ/5StAPRL95AF1ngxlg7LX0Vb4ZYPf/NQ78kgjIZYgAvGMkjfAZg8CDug8DAj9ggw1T9HXgYgDW+DoKagCYWBCwJAS93Hn0qfzxSv1guQ4ZeDFgASPAEJTkwmWXGUkcCPKB7qMhAQhFAKgfU1C91B2X2EP5Wv79cnEd7acD75oBjMQE1sB/ZMAMqCbA4/iVUwTypQ+YB2gEMgC/qnZA9dTP9ndVGaANGNGCIgVVihgwBKUJwHtsdIAW
299iAMHyJeN0ifYr6byR3Bl/FkGvAmyDBwnPGfSGYecIawCy4CHAZ4OKAcxAaI+dKAUDvHYOQ6UzssP7JaL23CP9i8CZoBlYKTdkPL3WQXEmTng4xbVez96YAaEhYP8ozkQYepDmOSMlYU//pmVW9xOiypgBhILjvSAHTE3oWTI8TEE0I8ZGDFpAQi3GU2ow9r3PP6badZsBOIA9BtHsq9QGoBRWGA5MCwFYUghIAtiwrwRvPdOIn/TUMPNdfCShQBjzoNYCHlH0L3qgRf5r/pdsVaAKTmAOig0+Vgfc+oPo+A3bvGVdFv2gawOaEJZD7waZcMigwxM4NkRzQEM2mClcNKQJ4mPG+Rjp/yvxq1pgVC3YC/7bDVgowWYZoHXGfGAPmAG+OJUOeyTjpB6KOdrdUfIvwdN91hJAT3IfYDoI2MwfzlMrwa64DPGBFEr/YHSgfcbtL670bTbLAVhJNAEpqFoCLXeCNKCyCy4jA/q3eLONG6tJogBrISUoidgS/uCUvGAPmQ2YIRNpxjjw+dq1/Hs78vStf32iZUwfUC84MM+8YF1gZXfD9hYEIqv8rDpO3d/8WUWOviwfRITFH677ENigzBTEjqJxySrVd/vOtcsvpll41zXtW3b9zAE/FAgXGb+4CgWpGmQNfPYuFI2oAe73a7rnGu+RPc/7NDmX/6EDAkAAAAASUVORK5CYII=",this.supportedTransactionVersions=null,this._readyState="undefined"==typeof window||"undefined"==typeof document?z.Unsupported:z.NotDetected,this._disconnected=()=>{let e=this._wallet;e&&(e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null,this.emit("error",new aR),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._network=e.network||null,this._readyState!==z.Unsupported){let e=t=>{"object"==typeof t.data&&t.data.__glow_loaded&&(this._readyState!==z.Installed&&(this._readyState=z.Installed,this.emit("readyStateChange",this._readyState)),window.removeEventListener("message",e))};window.addEventListener("message",e),aq(()=>!!window.glowSolana?.isGlow&&(window.removeEventListener("message",e),this._readyState!==z.Installed&&(this._readyState=z.Installed,this.emit("readyStateChange",this._readyState)),!0))}}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get connected(){return!!this._wallet?.isConnected}get readyState(){return this._readyState}async connect(){try{let e;if(this.connected||this.connecting)return;if(this._readyState!==z.Installed)throw new aN;this._connecting=!0;let t=window.glowSolana;try{await t.connect()}catch(e){throw new aP(e?.message,e)}if(!t.publicKey)throw new aU;try{e=new aB.nh(t.publicKey.toBytes())}catch(e){throw new aW(e?.message,e)}t.on("disconnect",this._disconnected),this._wallet=t,this._publicKey=e,this.emit("connect",e)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){let e=this._wallet;if(e){e.off("disconnect",this._disconnected),this._wallet=null,this._publicKey=null;try{await e.disconnect()}catch(e){this.emit("error",new aF(e?.message,e))}}this.emit("disconnect")}async sendTransaction(e,t,r={}){try{let n=this._wallet;if(!n)throw new aH;try{let{signers:i,...o}=r;e=await this.prepareTransaction(e,t,o),i?.length&&e.partialSign(...i),o.preflightCommitment=o.preflightCommitment||t.commitment;let{signature:a}=await n.signAndSendTransaction(e,{...o,network:this._network});return a}catch(e){if(e instanceof az)throw e;throw new aV(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signTransaction(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signTransaction(e,this._network)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signAllTransactions(e,this._network)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signMessage(e){try{let t=this._wallet;if(!t)throw new aH;try{let{signature:r}=await t.signMessage(e);return r}catch(e){throw new aQ(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}class s1 extends aJ{constructor(e={}){super(),this.name="MathWallet",this.url="https://mathwallet.org",this.icon="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIHdpZHRoPSIxMjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJtMCAwaDEyOHYxMjhoLTEyOHoiIG9wYWNpdHk9IjAiLz48cGF0aCBkPSJtOTAuODQ3MDA4NiA1Ny43NjEwMDIzYy0yLjI3NzAzNjMtMi4yNzcwMzYzLTIuMjc3MDM2My01Ljk2ODg0MTYgMC04LjI0NTg3NzggMi4yNzcwMzYyLTIuMjc3MDM2MyA1Ljk2ODg0MTUtMi4yNzcwMzYzIDguMjQ1ODc3OCAwIDIuMjc3MDM2NiAyLjI3NzAzNjIgMi4yNzcwMzY2IDUuOTY4ODQxNSAwIDguMjQ1ODc3OC0yLjI3NzAzNjMgMi4yNzcwMzYyLTUuOTY4ODQxNiAyLjI3NzAzNjItOC4yNDU4Nzc4IDB6bS0xOS41ODM5NTk4IDE5LjU4Mzk1OTdjLTEuNzA3Nzc3Mi0xLjcwNzc3NzItMS43MDc3NzcyLTQuNDc2NjMxMSAwLTYuMTg0NDA4M3M0LjQ3NjYzMTEtMS43MDc3NzcyIDYuMTg0NDA4MyAwIDEuNzA3Nzc3MiA0LjQ3NjYzMTEgMCA2LjE4NDQwODMtNC40NzY2MzExIDEuNzA3Nzc3Mi02LjE4NDQwODMgMHptMzAuOTIyMDQyMi0x
299MC4zMDczNDcyYy0xLjcwNzc3OC0xLjcwNzc3NzItMS43MDc3NzgtNC40NzY2MzEyIDAtNi4xODQ0MDg0IDEuNzA3Nzc3LTEuNzA3Nzc3MiA0LjQ3NjYzMS0xLjcwNzc3NzIgNi4xODQ0MDggMHMxLjcwNzc3NyA0LjQ3NjYzMTIgMCA2LjE4NDQwODQtNC40NzY2MzEgMS43MDc3NzcyLTYuMTg0NDA4IDB6bS0xMC4zMDczNDc3IDEwLjMwNzM0NzJjLTEuNzA3Nzc3Mi0xLjcwNzc3NzItMS43MDc3NzcyLTQuNDc2NjMxMSAwLTYuMTg0NDA4M3M0LjQ3NjYzMTEtMS43MDc3NzcyIDYuMTg0NDA4MyAwIDEuNzA3Nzc3MiA0LjQ3NjYzMTEgMCA2LjE4NDQwODMtNC40NzY2MzExIDEuNzA3Nzc3Mi02LjE4NDQwODMgMHptMjEuNjQ1NDI4Ny0xLjAzMDczNDdjLTEuMTM4NTE4LTEuMTM4NTE4MS0xLjEzODUxOC0yLjk4NDQyMDggMC00LjEyMjkzODkgMS4xMzg1MTktMS4xMzg1MTgxIDIuOTg0NDIxLTEuMTM4NTE4MSA0LjEyMjkzOSAwIDEuMTM4NTE5IDEuMTM4NTE4MSAxLjEzODUxOSAyLjk4NDQyMDggMCA0LjEyMjkzODktMS4xMzg1MTggMS4xMzg1MTgxLTIuOTg0NDIgMS4xMzg1MTgxLTQuMTIyOTM5IDB6bS0xMC4zMDczNDcgMTAuMzA3MzQ3MmMtMS4xMzg1MTgtMS4xMzg1MTgxLTEuMTM4NTE4LTIuOTg0NDIwNyAwLTQuMTIyOTM4OSAxLjEzODUxOC0xLjEzODUxODEgMi45ODQ0MjEtMS4xMzg1MTgxIDQuMTIyOTM5IDAgMS4xMzg1MTggMS4xMzg1MTgyIDEuMTM4NTE4IDIuOTg0NDIwOCAwIDQuMTIyOTM4OS0xLjEzODUxOCAxLjEzODUxODItMi45ODQ0MjEgMS4xMzg1MTgyLTQuMTIyOTM5IDB6bS0yMi42NzYxNjM3LTE4LjU1MzIyNWMtMi4yNzcwMzYzLTIuMjc3MDM2My0yLjI3NzAzNjMtNS45Njg4NDE1IDAtOC4yNDU4Nzc4czUuOTY4ODQxNS0yLjI3NzAzNjMgOC4yNDU4Nzc4IDAgMi4yNzcwMzYzIDUuOTY4ODQxNSAwIDguMjQ1ODc3OC01Ljk2ODg0MTUgMi4yNzcwMzYzLTguMjQ1ODc3OCAwem0wLTIwLjYxNDY5NDVjLTIuMjc3MDM2My0yLjI3NzAzNjMtMi4yNzcwMzYzLTUuOTY4ODQxNSAwLTguMjQ1ODc3OHM1Ljk2ODg0MTUtMi4yNzcwMzYzIDguMjQ1ODc3OCAwIDIuMjc3MDM2MyA1Ljk2ODg0MTUgMCA4LjI0NTg3NzgtNS45Njg4NDE1IDIuMjc3MDM2My04LjI0NTg3NzggMHptLTEwLjMwNzM0NzIgMTAuMzA3MzQ3M2MtMi4yNzcwMzYzLTIuMjc3MDM2My0yLjI3NzAzNjMtNS45Njg4NDE2IDAtOC4yNDU4Nzc4IDIuMjc3MDM2Mi0yLjI3NzAzNjMgNS45Njg4NDE1LTIuMjc3MDM2MyA4LjI0NTg3NzggMCAyLjI3NzAzNjIgMi4yNzcwMzYyIDIuMjc3MDM2MiA1Ljk2ODg0MTUgMCA4LjI0NTg3NzgtMi4yNzcwMzYzIDIuMjc3MDM2Mi01Ljk2ODg0MTYgMi4yNzcwMzYyLTguMjQ1ODc3OCAwem0tMjAuNzEwNTA2IDBjLTIuMjc3MDM2Mi0yLjI3NzAzNjMtMi4yNzcwMzYyLTUuOTY4ODQxNiAwLTguMjQ1ODc3OCAyLjI3NzAzNjMtMi4yNzcwMzYzIDUuOTY4ODQxNi0yLjI3NzAzNjMgOC4yNDU4Nzc4IDAgMi4yNzcwMzYzIDIuMjc3MDM2MiAyLjI3NzAzNjMgNS45Njg4NDE1IDAgOC4yNDU4Nzc4LTIuMjc3MDM2MiAyLjI3NzAzNjItNS45Njg4NDE1IDIuMjc3MDM2Mi04LjI0NTg3NzggMHptLTE5LjU4Mzk1OTcgMTkuNTgzOTU5N2MtMS43MDc3NzcyLTEuNzA3Nzc3Mi0xLjcwNzc3NzItNC40NzY2MzExIDAtNi4xODQ0MDgzczQuNDc2NjMxMS0xLjcwNzc3NzIgNi4xODQ0MDgzIDAgMS43MDc3NzcyIDQuNDc2NjMxMSAwIDYuMTg0NDA4My00LjQ3NjYzMTEgMS43MDc3NzcyLTYuMTg0NDA4MyAwem0zMC45MjIwNDE3LTEwLjMwNzM0NzJjLTEuNzA3Nzc3Mi0xLjcwNzc3NzItMS43MDc3NzcyLTQuNDc2NjMxMiAwLTYuMTg0NDA4NHM0LjQ3NjYzMTItMS43MDc3NzcyIDYuMTg0NDA4NCAwIDEuNzA3Nzc3MiA0LjQ3NjYzMTIgMCA2LjE4NDQwODQtNC40NzY2MzEyIDEuNzA3Nzc3Mi02LjE4NDQwODQgMHptLTEwLjMwNzM0NzIgMTAuMzA3MzQ3MmMtMS43MDc3NzcyLTEuNzA3Nzc3Mi0xLjcwNzc3NzItNC40NzY2MzExIDAtNi4xODQ0MDgzczQuNDc2NjMxMS0xLjcwNzc3NzIgNi4xODQ0MDgzIDAgMS43MDc3NzcyIDQuNDc2NjMxMSAwIDYuMTg0NDA4My00LjQ3NjYzMTEgMS43MDc3NzcyLTYuMTg0NDA4MyAwem0tNDAuMTk4NjU0My0xLjAzMDczNDdjLTEuMTM4NTE4MTMtMS4xMzg1MTgxLTEuMTM4NTE4MTMtMi45ODQ0MjA4IDAtNC4xMjI5Mzg5IDEuMTM4NTE4MS0xLjEzODUxODEgMi45ODQ0MjA4LTEuMTM4NTE4MSA0LjEyMjkzODkgMHMxLjEzODUxODEgMi45ODQ0MjA4IDAgNC4xMjI5Mzg5LTIuOTg0NDIwOCAxLjEzODUxODEtNC4xMjI5Mzg5IDB6bTEwLjMwNzM0NzMgMTAuMzA3MzQ3MmMtMS4xMzg1MTgyLTEuMTM4NTE4MS0xLjEzODUxODItMi45ODQ0MjA3IDAtNC4xMjI5Mzg5IDEuMTM4NTE4MS0xLjEzODUxODEgMi45ODQ0MjA3LTEuMTM4NTE4MSA0LjEyMjkzODggMCAxLjEzODUxODIgMS4xMzg1MTgyIDEuMTM4NTE4MiAyLjk4NDQyMDggMCA0LjEyMjkzODktMS4xMzg1MTgxIDEuMTM4NTE4Mi0yLjk4NDQyMDcgMS4xMzg1MTgyLTQuMTIyOTM4OCAwem00MS4yMjkzODg5IDBjLTEuMTM4NTE4MS0xLjEzODUxODEtMS4xMzg1MTgxLTIuOTg0NDIwNyAwLTQuMTIyOTM4OSAxLjEzODUxODItMS4xMzg1MTgxIDIuOTg0NDIwOC0xLjEzODUxODEgNC4xMjI5Mzg5IDAgMS4xMzg1MTgyIDEuMTM4NTE4MiAxLjEzODUxODIgMi45ODQ0MjA4IDAgNC4xMjI5Mzg5LTEuMTM4NTE4MSAxLjEzODUxODItMi45ODQ0MjA3IDEuMTM4NTE4Mi00LjEyMjkzODkgMHptLTQyLjI2MDEyMzctMTkuNTgzOTU5N2MtMS43MDc3NzcyLTEuNzA3Nzc3Mi0xLjcwNzc3NzItNC40NzY2MzEyIDAtNi4xODQ0MDg0czQuNDc2NjMxMi0xLjcwNzc3NzIgNi4xODQ0MDg0IDAgMS43MDc3NzcyIDQuNDc2NjMxMiAwIDYuMTg0NDA4NC00LjQ3NjYzMTIgMS43MDc3NzcyLTYuMTg0NDA4NCAwem0xOS41ODM5NTk4IDEuMDMwNzM0N2MtMi4yNzcwMzYzLTIuMjc3MDM2My0yLjI3NzAzNjMtNS45Njg4NDE1IDAtOC4yNDU4Nzc4czUuOTY4ODQxNS0yLjI3NzAzNjMgOC4yNDU4Nzc4IDAgMi4yNzcwMzYzIDUuOTY4ODQxNSAwIDguMjQ1ODc3OC01Ljk2ODg0MTUgMi4yNzcwMzYzLTguMjQ1ODc3OCAwem0wLTIwLjYxNDY5NDVjLTIuMjc3MDM2My0yLjI3NzAzNjMtMi4yNzcwMzYzLTUuOTY4ODQxNSAwLTguMjQ1ODc3OHM1Ljk2ODg0MTUtMi4yNzcwMzYzIDguMjQ1ODc3OCAwIDIuMjc3MDM2MyA1Ljk2ODg0MTUgMCA4LjI0NTg3NzgtNS45Njg4NDE1IDIuMjc3MDM2My04LjI0NTg3NzggMHptLTEwLjMwNzM0NzMgMTAuMzA3MzQ3M2MtMi4yNzcwMzYyLTIuMjc3MDM2My0yLjI3NzAzNjItNS45Njg4NDE2IDAtOC4yNDU4Nzc4IDIuMjc3MDM2My0yLjI3NzAzNjMgNS45Njg4NDE2LTIuMjc3MDM2MyA4LjI0NTg3NzggMCAyLjI3NzAzNjMgMi4yNzcwMzYyIDIuMjc3MDM2MyA1Ljk2ODg0MTUgMCA4LjI0NTg3NzgtMi4yNzcwMzYyIDIuMjc3MDM2Mi01Ljk2ODg0MTUgMi4yNzcwMzYyLTguMjQ1ODc3OCAweiIvPjwvZz48L3N2Zz4=",this.supportedTransactionVersions=null,this._readyState="undefined"==typeof window||"undefined"==typeof document?z.Unsupported:z.NotDetected,this._messaged=e=>{let t=e.data;t&&"mathwallet_internal"===t.origin&&"lockStatusChanged"===t.type&&!t.payload&&this._disconnected()},this._disconnected=()=>{this._wallet&&(window.removeEventListener("message",this._messaged),this._wallet=null,this._publicKey=null,this.emit
299("error",new aR),this.emit("disconnect"))},this._connecting=!1,this._wallet=null,this._publicKey=null,this._readyState!==z.Unsupported&&aq(()=>!!window.solana?.isMathWallet&&(this._readyState=z.Installed,this.emit("readyStateChange",this._readyState),!0))}get publicKey(){return this._publicKey}get connecting(){return this._connecting}get readyState(){return this._readyState}async connect(){try{let e,t;if(this.connected||this.connecting)return;if(this._readyState!==z.Installed)throw new aN;this._connecting=!0;let r=window.solana;try{e=await r.getAccount()}catch(e){throw new aU(e?.message,e)}try{t=new aB.nh(e)}catch(e){throw new aW(e?.message,e)}window.addEventListener("message",this._messaged),this._wallet=r,this._publicKey=t,this.emit("connect",t)}catch(e){throw this.emit("error",e),e}finally{this._connecting=!1}}async disconnect(){this._wallet&&(window.removeEventListener("message",this._messaged),this._wallet=null,this._publicKey=null),this.emit("disconnect")}async signTransaction(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signTransaction(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}async signAllTransactions(e){try{let t=this._wallet;if(!t)throw new aH;try{return await t.signAllTransactions(e)||e}catch(e){throw new a$(e?.message,e)}}catch(e){throw this.emit("error",e),e}}}r(9812);var s2=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function s4(){return"development"===(window.vam||"production")}function s5({beforeSend:e,debug:t=!0,mode:r="auto"}){return(0,ec.useEffect)(()=>{!function(e={debug:!0}){var t;if(!("undefined"!=typeof window))return;(function(e="auto"){if("auto"===e){window.vam="production";return}window.vam=e})(e.mode),s2(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=s4()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.setAttribute("data-sdkn","@vercel/analytics"),n.setAttribute("data-sdkv","1.0.1"),s4()&&!1===e.debug&&n.setAttribute("data-debug","false"),document.head.appendChild(n)}({beforeSend:e,debug:t,mode:r})},[e,t,r]),null}var s3=function(e){let{Component:t,pageProps:r}=e,n=j.Mainnet,i=(0,ec.useMemo)(()=>[new sZ,new sX,new s0,new s1],[n]);return(0,Z.jsx)(aD,{endpoint:"https://solana-mainnet.g.alchemy.com/v2/1YpgXsaW-sHBljtR14nfQhts97ECi4EC",children:(0,Z.jsx)(sF,{wallets:i,autoConnect:!0,children:(0,Z.jsx)(sJ,{children:(0,Z.jsx)(aC,{children:(0,Z.jsxs)(eX,{children:[(0,Z.jsx)(s5,{}),(0,Z.jsx)(t,{...r})]})})})})})}},9160:function(){},2520:function(){},9812:function(){},5152:function(e,t,r){e.exports=r(1233)},9008:function(e,t,r){e.exports=r(8044)},9332:function(e,t,r){e.exports=r(2142)},9590: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,u,c;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(c=o.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=o.entries();!(l=c.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(c=o.entries();!(l=c.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=(u=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&o instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!o.$$typeof)&&!e(o[u[l]],a[u[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}}},9921:function(e,t){"use strict";/** @license React v16.13.1
300 * react-is.production.min.js
301 *
302 * Copyright (c) Facebook, Inc. and its affiliates.
303 *
304 * This source code is licensed under the MIT license found in the
305 * LICENSE file in the root directory of this source tree.
306 */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,u=r?Symbol.for("react.context"):60110,c=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,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function A(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case g:case l:return e;default:return t}}case i:return t}}}function x(e){return A(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,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 x(e)||A(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return A(e)===u},t.isContextProvider=function(e){return A(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return A(e)===h},t.isFragment=function(e){return A(e)===o},t.isLazy=function(e){return A(e)===m},t.isMemo=function(e){return A(e)===g},t.isPortal=function(e){return A(e)===i},t.isProfiler=function(e){return A(e)===s},t.isStrictMode=function(e){return A(e)===a},t.isSuspense=function(e){return A(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===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===v||e.$$typeof===w||e.$$typeof===y)},t.typeOf=A},9864:function(e,t,r){"use strict";e.exports=r(9921)},6855:function(e,t,r){"use strict";var n=r(8764).Buffer,i=r(4836);t.Z=void 0;var o=i(r(4687)),a=i(r(7156)),s=i(r(8698)),l=i(r(6690)),u=i(r(9728)),c=i(r(1655)),d=i(r(4993)),h=i(r(3808)),f=r(6729),p=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},g=function(e){(0,c.default)(y,e);var t,r,i,f,g,m=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,h.default)(y);if(t){var n=(0,h.default)(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return(0,d.default)(this,e)});function y(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,l.default)(this,y);var o=n.autoconnect,a=n.reconnect,s=n.reconnect_interval,u=n.max_reconnects,c=p(n,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(t=m.call(this)).webSocketFactory=e,t.queue={},t.rpc_id=0,t.address=r,t.autoconnect=void 0===o||o,t.ready=!1,t.reconnect=void 0===a||a,t.reconnect_timer_id=void 0,t.reconnect_interval=void 0===s?1e3:s,t.max_reconnects=void 0===u?5:u,t.rest_options=c,t.current_reconnects=0,t.generate_request_id=i||function(){return++t.rpc_id},t.autoconnect&&t._connect(t.address,Object.assign({autoconnect:t.autoconnect,reconnect:t.reconnect,reconnect_interval:t.reconnect_interval,max_reconnects:t.max_reconnects},t.rest_options)),t}
306return(0,u.default)(y,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(e,t,r,n){var i=this;return n||"object"!==(0,s.default)(r)||(n=r,r=null),new Promise(function(o,a){if(!i.ready)return a(Error("socket not ready"));var s=i.generate_request_id(e,t);i.socket.send(JSON.stringify({jsonrpc:"2.0",method:e,params:t||null,id:s}),n,function(e){if(e)return a(e);i.queue[s]={promise:[o,a]},r&&(i.queue[s].timeout=setTimeout(function(){delete i.queue[s],a(Error("reply timeout"))},r))})})}},{key:"login",value:(r=(0,a.default)(o.default.mark(function e(t){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("rpc.login",t);case 2:if(r=e.sent){e.next=5;break}throw Error("authentication failed");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"listMethods",value:(i=(0,a.default)(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.call("__listMethods");case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"notify",value:function(e,t){var r=this;return new Promise(function(n,i){if(!r.ready)return i(Error("socket not ready"));r.socket.send(JSON.stringify({jsonrpc:"2.0",method:e,params:t||null}),function(e){if(e)return i(e);n()})})}},{key:"subscribe",value:(f=(0,a.default)(o.default.mark(function e(t){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.on",t);case 3:if(r=e.sent,!("string"==typeof t&&"ok"!==r[t])){e.next=6;break}throw Error("Failed subscribing to an event '"+t+"' with: "+r[t]);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"unsubscribe",value:(g=(0,a.default)(o.default.mark(function e(t){var r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"string"==typeof t&&(t=[t]),e.next=3,this.call("rpc.off",t);case 3:if(r=e.sent,!("string"==typeof t&&"ok"!==r[t])){e.next=6;break}throw Error("Failed unsubscribing from an event with: "+r);case 6:return e.abrupt("return",r);case 7:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)})},{key:"close",value:function(e,t){this.socket.close(e||1e3,t)}},{key:"_connect",value:function(e,t){var r=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(e,t),this.socket.addEventListener("open",function(){r.ready=!0,r.emit("open"),r.current_reconnects=0}),this.socket.addEventListener("message",function(e){var t=e.data;t instanceof ArrayBuffer&&(t=n.from(t).toString());try{t=JSON.parse(t)}catch(e){return}if(t.notification&&r.listeners(t.notification).length){if(!Object.keys(t.params).length)return r.emit(t.notification);var i=[t.notification];if(t.params.constructor===Object)i.push(t.params);else for(var o=0;o<t.params.length;o++)i.push(t.params[o]);return Promise.resolve().then(function(){r.emit.apply(r,i)})}if(!r.queue[t.id])return t.method&&t.params?Promise.resolve().then(function(){r.emit(t.method,t.params)}):void 0;"error"in t=="result"in t&&r.queue[t.id].promise[1](Error('Server response malformed. Response must include either "result" or "error", but not both.')),r.queue[t.id].timeout&&clearTimeout(r.queue[t.id].timeout),t.error?r.queue[t.id].promise[1](t.error):r.queue[t.id].promise[0](t.result),delete r.queue[t.id]}),this.socket.addEventListener("error",function(e){return r.emit("error",e)}),this.socket.addEventListener("close",function(n){var i=n.code,o=n.reason;r.ready&&setTimeout(function(){return r.emit("close",i,o)},0),r.ready=!1,r.socket=void 0,1e3!==i&&(r.current_reconnects++,r.reconnect&&(r.max_reconnects>r.current_reconnects||0===r.max_reconnects)&&(r.reconnect_timer_id=setTimeout(function(){return r._connect(e,t)},r.reconnect_interval)))})}}]),y}(f.EventEmitter);t.Z=g},9062:function(e,t,r){"use strict";var n=r(4836);t.Z=function(e,t){return new u(e,t)};var i=n(r(6690)),o=n(r(9728)),a=n(r(1655)),s=n(r(4993)),l=n(r(3808)),u=function(e){(0,a.default)(n,e);var t,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=(0,l.default)(n);if(t){var i=(0,l.default)(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return(0,s.default)(this,e)});function n(e,t,o){var a;return(0,i.default)(this,n),(a=r.call(this)).socket=new window.WebSocket(e,o),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(e){return a.emit("message",e.data)},a.socket.onerror=function(e){return a.emit("error",e)},a.socket.onclose=function(e){a.emit("close",e.code,e.reason)},a}return(0,o.default)(n,[{key:"send",value:function(e,t,r){var n=r||t;try{this.socket.send(e),n()}catch(e){n(e)}}},{key:"close",value:function(e,t){this.socket.close(e,t)}},{key:"addEventListener",value:function(e,t,r){this.socket.addEventListener(e,t,r)}}]),n}(r(6729).EventEmitter)},9509:function(e,t,r){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=r(8764),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},4880:function(e,t,r){"use strict";r.d(t,{v4:function(){return c}});var n,i=new Uint8Array(16);function o(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=[],l=0;l<256;++l)s.push((l+256).toString(16).substr(1));var u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!("string"==typeof r&&a.test(r)))throw TypeError("Stringified UUID is invali
306d");return r},c=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return u(n)}},6601:function(){},5862: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)},4437:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return i}});let n=r(5862),i=(0,n.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)},6115:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},7156:function(e){function t(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise(function(i,o){var a=e.apply(r,n);function s(e){t(a,i,o,s,l,"next",e)}function l(e){t(a,i,o,s,l,"throw",e)}s(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e,t,r){var n=r(4062);function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,r){var n=r(6015);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,r){var n=r(8698).default,i=r(6115);e.exports=function(e,t){if(t&&("object"===n(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,r){var n=r(8698).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i,o,s=Object.create((t&&t.prototype instanceof g?t:g).prototype);return a(s,"_invoke",{value:(i=new E(n||[]),o="suspendedStart",function(t,n){if("executing"===o)throw Error("Generator is already running");if("completed"===o){if("throw"===t)throw n;return _()}for(i.method=t,i.arg=n;;){var a=i.delegate;if(a){var s=function e(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&
vendor: 4,215 bytes, line 306
306(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),p;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,p)}(a,i);if(s){if(s===p)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var l=f(e,r,i);if("normal"===l.type){if(o=i.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o="completed",i.method="throw",i.arg=l.arg)}})}),s}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p={};function g(){}function m(){}function y(){}var b={};d(b,l,function(){return this});var v=Object.getPrototypeOf,w=v&&v(v(I([])));w&&w!==r&&o.call(w,l)&&(b=w);var A=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function S(e,t){var r;a(this,"_invoke",{value:function(i,a){function s(){return new t(function(r,s){!function r(i,a,s,l){var u=f(e[i],e,a);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==n(d)&&o.call(d,"__await")?t.resolve(d.__await).then(function(e){r("next",e,s,l)},function(e){r("throw",e,s,l)}):t.resolve(d).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,l)})}l(u.arg)}(i,a,r,s)})}return r=r?r.then(s,s):s()}})}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function I(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:_}}function _(){return{value:void 0,done:!0}}return m.prototype=y,a(A,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=d(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,c,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},x(S.prototype),d(S.prototype,u,function(){return this}),t.AsyncIterator=S,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new S(h(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then(function(e){return e.done?e.value:a.next()})},x(A),d(A,c,"Generator"),d(A,l,function(){return this}),d(A,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");
306if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:I(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,r){var n=r(8698).default;e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,r){var n=r(8698).default,i=r(5036);e.exports=function(e){var t=i(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:function(e,t,r){var n=r(7061)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},7462: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}})},3951:function(e,t,r){"use strict";r.d(t,{XQ:function(){return i}});var n=r(5432);function i(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}Object.freeze(["base","sm","md","lg","xl","2xl"])},7215:function(e,t,r){"use strict";r.d(t,{D:function(){return n},i:function(){return i}});var[n,i]=(0,r(5227).k)({strict:!1,name:"ButtonGroupContext"})},6272:function(e,t,r){"use strict";r.d(t,{z:function(){return g}});var n=r(7294),i=r(7215),o=r(1337),a=r(5432),s=r(5893);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,u=(0,a.cx)("chakra-button__icon",r);return(0,s.jsx)(o.m.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...i,className:u,children:l})}l.displayName="ButtonIcon";var u=r(295);function c(e){let{label:t,placement:r,spacing:i="0.5rem",children:l=(0,s.jsx)(u.$,{color:"currentColor",width:"1em",height:"1em"}),className:c,__css:d,...h}=e,f=(0,a.cx)("chakra-button__spinner",c),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})}c.displayName="ButtonSpinner";var d=r(1103),h=r(5059),f=r(1639),p=r(3179),g=(0,h.G)((e,t)=>{let r=(0,i.i)(),l=(0,f.mq)("Button",{...r,...e}),{isDisabled:u=null==r?void 0:r.isDisabled,isLoading:h,isActive:g,children:y,leftIcon:b,rightIcon:v,loadingText:w,iconS
306pacing:A="0.5rem",type:x,spinner:S,spinnerPlacement:k="start",className:M,as:E,...I}=(0,p.Lr)(e),_=(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:C,type:B}=function(e){let[t,r]=(0,n.useState)(!e),i=(0,n.useCallback)(e=>{e&&r("BUTTON"===e.tagName)},[]);return{ref:i,type:t?"button":void 0}}(E),T={rightIcon:v,leftIcon:b,iconSpacing:A,children:y};return(0,s.jsxs)(o.m.button,{ref:(0,d.qq)(t,C),as:E,type:null!=x?x:B,"data-active":(0,a.PB)(g),"data-loading":(0,a.PB)(h),__css:_,className:(0,a.cx)("chakra-button",M),...I,disabled:u||h,children:[h&&"start"===k&&(0,s.jsx)(c,{className:"chakra-button__spinner--start",label:w,placement:"start",spacing:A,children:S}),h?w||(0,s.jsx)(o.m.span,{opacity:0,children:(0,s.jsx)(m,{...T})}):(0,s.jsx)(m,{...T}),h&&"end"===k&&(0,s.jsx)(c,{className:"chakra-button__spinner--end",label:w,placement:"end",spacing:A,children:S})]})});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"},6989:function(e,t,r){"use strict";r.d(t,{P:function(){return c}});var n=r(6877),i=r(5059),o=r(1639),a=r(3179),s=r(1337),l=r(5893);function u(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,
30611.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.G)(function(e,t){let r=(0,o.mq)("CloseButton",e),{children:n,isDisabled:i,__css:c,...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,...c},...d,children:n||(0,l.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},2498:function(e,t,r){"use strict";r.d(t,{If:function(){return o},ff:function(){return a},kc:function(){return i}});var n=r(7294),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"},1735:function(e,t,r){"use strict";function n(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let r=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof r.HTMLElement}r.d(t,{Re:function(){return n}})},7335:function(e,t,r){"use strict";r.d(t,{q:function(){return s}});var n=r(7294),i="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function o(e,t=[]){let r=(0,n.useRef)(e);return i(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}var a=r(6597);function s(e={}){let{onClose:t,onOpen:r,isOpen:i,id:s}=e,l=o(r),u=o(t),[c,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]}(i,c),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==u||u()},[h,u]),m=(0,n.useCallback)(()=>{h||d(!0),null==l||l()},[h,l]),y=(0,n.useCallback)(()=>{let e=f?g:m;e()},[f,m,g]);return{isOpen:!!f,onOpen:m,onClose:g,onToggle:y,isControlled:h,getButtonProps:(e={})=>({...e,"aria-expanded":f,"aria-controls":p,onClick:(0,a.v0)(e.onClick,y)}),getDisclosureProps:(e={})=>({...e,hidden:!f,id:p})}}},6877:function(e,t,r){"use strict";r.d(t,{J:function(){return u}});var n=r(5059),i=r(1639),o=r(1337),a=r(5432),s=r(5893),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"},u=(0,n.G)((e,t)=>{let{as:r,viewBox:n,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:f,...p}=e,g=(0,a.cx)("chakra-icon",h),m=(0,i.mq)("Icon",e),y={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...f,...m},b={ref:t,focusable:c,className:g,__css:y},v=null!=n?n:l.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.m.svg,{as:r,...b,...p});let w=null!=d?d:l.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:v,...b,...p,children:w})});u.displayName="Icon"},78:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(6877),i=r(5059),o=r(7294),a=r(5893);function s(e){let{viewBox:t="0 0 24 24",d:r,displayName:s,defaultProps:l={}}=e,u=o.Children.toArray(e.path),c=(0,i.G)((e,i)=>(0,a.jsx)(n.J,{ref:i,viewBox:t,...l,...e,children:u.length?u:(0,a.jsx)("path",{fill:"currentColor",d:r})}));return c.displayName=s,c}},5721:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return a}});var n=r(6245),i=r(7294);function o(e){let{loading:t,src:r,srcSet:o,onLoad:a,onError:s,crossOrigin:l,sizes:u,ignoreFallback:c}=e,[d,h]=(0,i.useState)("pending");(0,i.useEffect)(()=>{h(r?"loading":"pending")},[r]);let f=(0,i.useRef)(),p=(0,i.useCallback)(()=>{if(!r)return;g();let e=new Image;e.src=r,l&&(e.crossOrigin=l),o&&(e.srcset=o),u&&(e.sizes=u),t&&(e.loading=t),e.onload=e=>{g(),h("loaded"),null==a||a(e)},e.onerror=e=>{g(),h("failed"),null==s||s(e)},f.current=e},[r,l,o,u,a,s,t]),g=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return(0,n.G)(()=>
306{if(!c)return"loading"===d&&p(),()=>{g()}},[d,p,c]),c?"loaded":d}var a=(e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t},1941:function(e,t,r){"use strict";r.d(t,{E:function(){return l}});var n=r(5059),i=r(5893),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(5721),s=r(1337),l=(0,n.G)(function(e,t){let{fallbackSrc:r,fallback:n,src:l,srcSet:u,align:c,fit:d,loading:h,ignoreFallback:f,crossOrigin:p,fallbackStrategy:g="beforeLoadOrError",referrerPolicy:m,...y}=e,b=null!=h||f||!(void 0!==r||void 0!==n),v=(0,a.d)({...e,crossOrigin:p,ignoreFallback:b}),w=(0,a.z)(v,g),A={ref:t,objectFit:d,objectPosition:c,...b?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 w?n||(0,i.jsx)(s.m.img,{as:o,className:"chakra-image__placeholder",src:r,...A}):(0,i.jsx)(s.m.img,{as:o,src:l,srcSet:u,crossOrigin:p,loading:h,referrerPolicy:m,className:"chakra-image",...A})});l.displayName="Image"},3100:function(e,t,r){"use strict";r.d(t,{bK:function(){return s},xu:function(){return a}});var n=r(1337),i=r(5059),o=r(5893),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",(0,i.G)(function(e,t){let{size:r,...n}=e;return(0,o.jsx)(s,{size:r,ref:t,borderRadius:"9999px",...n})}).displayName="Circle"},204:function(e,t,r){"use strict";r.d(t,{k:function(){return a}});var n=r(5059),i=r(1337),o=r(5893),a=(0,n.G)(function(e,t){let{direction:r,align:n,justify:a,wrap:s,basis:l,grow:u,shrink:c,...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:u,flexShrink:c},...d})});a.displayName="Flex"},6118:function(e,t,r){"use strict";r.d(t,{K:function(){return d}});var n=r(1337),i=r(5893),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(3951),s=r(2495),l=r(5432),u=r(5059),c=r(7294),d=(0,u.G)((e,t)=>{let{isInline:r,direction:u,align:d,justify:h,spacing:f="0.5rem",wrap:p,children:g,divider:m,className:y,shouldWrapChildren:b,...v}=e,w=r?"row":null!=u?u:"column",A=(0,c.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]),x=!!m,S=!b&&!x,k=(0,c.useMemo)(()=>{let e=(0,s.W)(g);return S?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(!x)return l;let u=(0,c.cloneElement)(m,{__css:A});return(0,i.jsxs)(c.Fragment,{children:[l,a?null:u]},n)})},[m,A,x,S,b,g]),M=(0,l.cx)("chakra-stack",y);return(0,i.jsx)(n.m.div,{ref:t,display:"flex",alignItems:d,justifyContent:h,flexDirection:w,flexWrap:p,gap:x?void 0:f,className:M,...v,children:k})});d.displayName="Stack"},4151:function(e,t,r){"use strict";r.d(t,{u_:function(){return S},vR:function(){return x},I_:function(){return w}});var n=r(9437),i=r(5432),o=r(1103),a=new WeakMap,s=new WeakMap,l={},u=0,c=function(e){return e&&(e.host||c(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=c(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,u=(o.get(e)||0)+1;a.set(e,l),o.set(e,u),d.push(e),1===l&&i&&s.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}})};return g(t),h.clear(),u++,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)}),--u||(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(7294),p=r(9598),g=r(5227),m=r(1639),y=r(1526),b=r(5893),[v,w]=(0,g.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[A,x]=(0,g.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `
306context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),S=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:u,finalFocusRef:c,returnFocusOnClose:d,blockScrollOnMount:g,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:S,lockFocusAcrossFrames:k,onCloseComplete:M}=t,E=(0,m.jC)("Modal",t),I=function(e){let{isOpen:t,onClose:r,id:a,closeOnOverlayClick:s=!0,closeOnEsc:l=!0,useInert:u=!0,onOverlayClick:c,onEsc:d}=e,p=(0,f.useRef)(null),g=(0,f.useRef)(null),[m,y,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&&u);let v=(0,n.$)(p,t),w=(0,f.useRef)(null),A=(0,f.useCallback)(e=>{w.current=e.target},[]),x=(0,f.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),l&&(null==r||r()),null==d||d())},[l,r,d]),[S,k]=(0,f.useState)(!1),[M,E]=(0,f.useState)(!1),I=(0,f.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:(0,o.lq)(t,p),id:m,tabIndex:-1,"aria-modal":!0,"aria-labelledby":S?y:void 0,"aria-describedby":M?b:void 0,onClick:(0,i.v0)(e.onClick,e=>e.stopPropagation())}),[b,M,m,y,S]),_=(0,f.useCallback)(e=>{e.stopPropagation(),w.current===e.target&&n.m.isTopModal(p.current)&&(s&&(null==r||r()),null==c||c())},[r,s,c]),C=(0,f.useCallback)((e={},t=null)=>({...e,ref:(0,o.lq)(t,g),onClick:(0,i.v0)(e.onClick,_),onKeyDown:(0,i.v0)(e.onKeyDown,x),onMouseDown:(0,i.v0)(e.onMouseDown,A)}),[x,A,_]);return{isOpen:t,onClose:r,headerId:y,bodyId:b,setBodyMounted:E,setHeaderMounted:k,dialogRef:p,overlayRef:g,getDialogProps:I,getDialogContainerProps:C,index:v}}(t),_={...I,autoFocus:s,trapFocus:l,initialFocusRef:u,finalFocusRef:c,returnFocusOnClose:d,blockScrollOnMount:g,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:S,lockFocusAcrossFrames:k};return(0,b.jsx)(A,{value:_,children:(0,b.jsx)(v,{value:E,children:(0,b.jsx)(y.M,{onExitComplete:M,children:_.isOpen&&(0,b.jsx)(p.h,{...r,children:a})})})})};S.displayName="Modal"},2452:function(e,t,r){"use strict";r.d(t,{M:function(){return tb}});var n,i,o,a=r(4151),s=r(9437),l=r(7462),u=r(7294),c="data-focus-lock",d="data-focus-lock-disabled";function h(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,u.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 f={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=function(e){var t=e.children;return u.createElement(u.Fragment,null,u.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}),t,t&&u.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:f}))};p.propTypes={},p.defaultProps={children:null};var g=function(){return(g=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 m(e){return e}function y(e,t){void 0===t&&(t=m);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 b(e,t){return void 0===t&&(t=m),y(e,t)}function v(e){void 0===e&&(e={});var t=y(null);return t.options=g({async:!0,ssr:!1},e),t}"function"==typeof SuppressedError&&SuppressedError;var w=b({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),A=b(),x=b(),S=v({async:!0}),k=[],M=u.forwardRef(function(e,t){var r,n=u.useState(),i=n[0],o=n[1],a=u.useRef(),s=u.useRef(!1),p=u.useRef(null),g=e.children,m=e.disabled,y=e.noFocusGuards,b=e.persistentFocus,v=e.crossFrame,x=e.autoFocus,M=(e.allowTextSelection,e.group),E=e.className,I=e.whiteList,_=e.hasPositiveIndices,
306C=e.shards,B=void 0===C?k:C,T=e.as,D=void 0===T?"div":T,j=e.lockProps,z=void 0===j?{}:j,N=e.sideCar,O=e.returnFocus,L=e.focusOptions,P=e.onActivation,R=e.onDeactivation,F=u.useState({})[0],U=u.useCallback(function(){p.current=p.current||document&&document.activeElement,a.current&&P&&P(a.current),s.current=!0},[P]),W=u.useCallback(function(){s.current=!1,R&&R(a.current)},[R]);(0,u.useEffect)(function(){m||(p.current=null)},[]);var H=u.useCallback(function(e){var t=p.current;if(t&&t.focus){var r="function"==typeof O?O(t):O;if(r){var n="object"==typeof r?r:void 0;p.current=null,e?Promise.resolve().then(function(){return t.focus(n)}):t.focus(n)}}},[O]),V=u.useCallback(function(e){s.current&&w.useMedium(e)},[]),Q=A.useMedium,$=u.useCallback(function(e){a.current!==e&&(a.current=e,o(e))},[]),Y=(0,l.Z)(((r={})[d]=m&&"disabled",r[c]=M,r),z),q=!0!==y,G=q&&"tail"!==y,K=h([t,$]);return u.createElement(u.Fragment,null,q&&[u.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:m?-1:0,style:f}),_?u.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:m?-1:1,style:f}):null],!m&&u.createElement(N,{id:F,sideCar:S,observed:i,disabled:m,persistentFocus:b,crossFrame:v,autoFocus:x,whiteList:I,shards:B,onActivation:U,onDeactivation:W,returnFocus:H,focusOptions:L}),u.createElement(D,(0,l.Z)({ref:K},Y,{className:E,onBlur:Q,onFocus:V}),g),G&&u.createElement("div",{"data-focus-guard":!0,tabIndex:m?-1:0,style:f}))});function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}M.propTypes={},M.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 _=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},C=function(e){return Array.isArray(e)?e:[e]},B=function(e){return Array.isArray(e)?e[0]:e},T=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"))},D=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},j=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},z=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=z.bind(void 0,e),!t||j(t)||!T(t)&&r(D(t)));return e.set(t,i),i},N=function(e,t){var r,n=e.get(t);if(void 0!==n)return n;var i=(r=N.bind(void 0,e),!t||!!j(t)||!!R(t)&&r(D(t)));return e.set(t,i),i},O=function(e){return e.dataset},L=function(e){return"INPUT"===e.tagName},P=function(e){return L(e)&&"radio"===e.type},R=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},F=function(e){var t;return!!(e&&(null===(t=O(e))||void 0===t?void 0:t.focusGuard))},U=function(e){return!F(e)},W=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},V=function(e,t,r){return _(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)},Q="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",$="".concat(Q,", [data-focus-guard]"),Y=function(e,t){return _((e.shadowRoot||e).children).reduce(function(e,r){return e.concat(r.matches(t?$:Q)?[r]:[],Y(r))},[])},q=function(e,t){var r;return e instanceof HTMLIFrameElement&&(null===(r=e.contentDocument)||void 0===r?void 0:r.body)?G([e.contentDocument.body],t):[e]},G=function(e,t){return e.reduce(function(e,r){var n,i=Y(r,t),o=(n=[]).concat.apply(n,i.map(function(e){return q(e,t)}));return e.concat(o,r.parentNode?_(r.parentNode.querySelectorAll(Q)).filter(function(e){return e===r}):[])},[])},K=function(e,t){return _(e).filter(function(e){return z(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),_(e).filter(function(e){return N(t,e)})},Z=function(e,t,r){return V(K(G(e,r),t),!0,r)},X=function(e,t){return V(K(G(e),t),!1)},ee=function(e,t){return e.shadowRoot?ee(e.shadowRoot,t):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,t))||_(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&&ee(n,t)}return ee(e,t)})},et=function(e){try{return e()}catch(e){return}},er=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?er(t.shadowRoot):t instanceof HTMLIFrameElement&&et(function(){return t.contentWindow.document})?er(t.contentWindow.document):t}},en=function(e){void 0===e&&(e=document);var t=er(e);return!!t&&_(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return ee(e,t)})},ei=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)})},eo=function(e){return e.parentNode?eo(e.parentNode):e}
306,ea=function(e){return C(e).filter(Boolean).reduce(function(e,t){var r=t.getAttribute(c);return e.push.apply(e,r?ei(_(eo(t).querySelectorAll("[".concat(c,'="').concat(r,'"]:not([').concat(d,'="disabled"])')))):[t]),e},[])},es=function(e,t){return void 0===t&&(t=er(B(e).ownerDocument)),!!t&&(!t.dataset||!t.dataset.focusGuard)&&ea(e).some(function(e){var r;return ee(e,t)||(r=t,!!_(e.querySelectorAll("iframe")).some(function(e){return e===r}))})},el=function(e,t){return P(e)&&e.name&&t.filter(P).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(el(r,e))}),e.filter(function(e){return t.has(e)})},ec=function(e){return e[0]&&e.length>1?el(e[0],e):e[0]},ed=function(e,t){return e.length>1?e.indexOf(el(e[t],e)):t},eh="NEW_FOCUS",ef=function(e,t,r,n){var i=e.length,o=e[0],a=e[i-1],s=F(r);if(!(r&&e.indexOf(r)>=0)){var l=void 0!==r?t.indexOf(r):-1,u=n?t.indexOf(n):l,c=n?e.indexOf(n):-1,d=l-u,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=ed(e,0),y=ed(e,i-1);if(-1===l||-1===c)return eh;if(!d&&c>=0)return c;if(l<=h&&s&&Math.abs(d)>1)return y;if(l>=f&&s&&Math.abs(d)>1)return m;if(d&&Math.abs(g)>1)return c;if(l<=h)return y;if(l>f)return m;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},ep=function(e,t,r){var n=J(e.map(function(e){return e.node}).filter(function(e){var t,n=null===(t=O(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0}));return n&&n.length?ec(n):ec(J(t))},eg=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&eg(e.parentNode.host||e.parentNode,t),t},em=function(e,t){for(var r=eg(e),n=eg(t),i=0;i<r.length;i+=1){var o=r[i];if(n.indexOf(o)>=0)return o}return!1},ey=function(e,t,r){var n=C(e),i=C(t),o=n[0],a=!1;return i.filter(Boolean).forEach(function(e){a=em(a||e,e)||a,r.filter(Boolean).forEach(function(e){var t=em(o,e);t&&(a=!a||ee(t,a)?t:em(t,a))})}),a},eb=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(W)},ev=function(e,t){var r=er(C(e).length>0?document:B(e).ownerDocument),n=ea(e).filter(U),i=ey(r||e,e,n),o=new Map,a=X(n,o),s=Z(n,o).filter(function(e){return U(e.node)});if(s[0]||(s=a)[0]){var l=X([i],o).map(function(e){return e.node}),u=eb(l,s),c=u.map(function(e){return e.node}),d=ef(c,l,r,t);if(d===eh){var h=ep(a,c,n.reduce(function(e,t){return e.concat(K(_(t.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return G([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:u[d]}},ew=function(e,t){"focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},eA=0,ex=!1,eS=function(e,t,r){void 0===r&&(r={});var n=ev(e,t);if(!ex&&n){if(eA>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ex=!0,setTimeout(function(){ex=!1},1);return}eA++,ew(n.node,r.focusOptions),eA--}},ek=function(e){var t=ea(e).filter(U),r=ey(e,e,t),n=new Map,i=Z([r],n,!0),o=Z(t,n).filter(function(e){return U(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:F(t)}})};function eM(e){setTimeout(e,1)}var eE=null,eI=null,e_=null,eC=!1,eB=function(){return!0},eT=function(e,t){e_={observerNode:e,portaledElement:t}};function eD(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 ej=function(e){return e&&"current"in e?e.current:e},ez=function(){var e=!1;if(eE){var t=eE,r=t.observed,n=t.persistentFocus,i=t.autoFocus,o=t.shards,a=t.crossFrame,s=t.focusOptions,l=r||e_&&e_.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(ej).filter(Boolean));if((!u||(eE.whiteList||eB)(u))&&(n||(a?!!eC:"meanwhile"===eC)||!(document&&document.activeElement===document.body||en())||!eI&&i)&&(l&&!(es(c)||u&&c.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))}(u,e,e)})||e_&&e_.portaledElement===u)&&(document&&!eI&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(e=eS(c,eI,{focusOptions:s}),e_={})),eC=!1,eI=document&&document.activeElement),document){var d=document&&document.activeElement,h=ek(c),f=h.map(function(e){return e.no
306de}).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")}),eD(f,h.length,1,h),eD(f,-1,-1,h))}}}return e},eN=function(e){ez()&&e&&(e.stopPropagation(),e.preventDefault())},eO=function(){return eM(ez)},eL=function(){eC="just",eM(function(){eC="meanwhile"})},eP=function(){document.addEventListener("focusin",eN),document.addEventListener("focusout",eO),window.addEventListener("blur",eL)},eR=function(){document.removeEventListener("focusin",eN),document.removeEventListener("focusout",eO),window.removeEventListener("blur",eL)};w.assignSyncMedium(function(e){var t=e.target,r=e.currentTarget;r.contains(t)||eT(r,t)}),A.assignMedium(eO),x.assignMedium(function(e){return e({moveFocusInside:eS,focusInside:es})});var eF=(n=function(e){var t=e.slice(-1)[0];t&&!eE&&eP();var r=eE,n=r&&t&&t.id===r.id;eE=t,!r||n||(r.onDeactivation(),e.filter(function(e){return e.id===r.id}).length||r.returnFocus(!t)),t?(eI=null,n&&r.observed===t.observed||t.onActivation(),ez(!0),eM(ez)):(eR(),eI=null)},function(e){var t,r,i,o,a=[];function s(){n(o=a.map(function(e){return e.props}).filter(function(e){return!e.disabled}))}var l=function(t){function r(){return t.apply(this,arguments)||this}r.prototype=Object.create(t.prototype),r.prototype.constructor=r,E(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 u.createElement(e,this.props)},r}(u.PureComponent);return t="displayName",r="SideEffect("+(e.displayName||e.name||"Component")+")",i=function(e,t){if("object"!==I(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==I(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"===I(i)?i:String(i))in l?Object.defineProperty(l,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):l[t]=r,l})(function(){return null}),eU=u.forwardRef(function(e,t){return u.createElement(M,(0,l.Z)({sideCar:eF,ref:t},e))}),eW=M.propTypes||{};eW.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])}}(eW,["sideCar"]),eU.propTypes={};var eH=r(1735),eV=e=>e.hasAttribute("tabindex"),eQ=e=>e.offsetWidth>0&&e.offsetHeight>0,e$=r(5893),eY=null!=(i=eU.default)?i:eU,eq=e=>{let{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:i,children:o,isDisabled:a,autoFocus:s,persistentFocus:l,lockFocusAcrossFrames:c}=e,d=(0,u.useCallback)(()=>{if(null==t?void 0:t.current)t.current.focus();else if(null==n?void 0:n.current){let e=function(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=>(function(e){var t;if(!(0,eH.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 n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return r in n?n[r]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||eV(e)})(e)&&eQ(e))}(n.current);0===e.length&&requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus()})}},[t,n]),h=(0,u.useCallback)(()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()},[r]),f=i&&!r;return(0,e$.jsx)(eY,{crossFrame:c,persistentFocus:l,autoFocus:s,disabled:a,onActivation:d,onDeactivation:h,returnFocus:f,children:o})};eq.displayName="FocusLock";var eG=r(5947),eK=function(){return(eK=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"==typeof SuppressedError&&SuppressedError;var eJ="right-scroll-bar-position",eZ="width-before-scroll-bar",eX=v(),e0=function(){},e1=u.forwardRef(function(e,t){var r=u.useRef(null),n=u.useState({onScrollCapture:e0,onWheelCapture:e0,onTouchMoveCapture:e0}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,g=e.noIsolation,m=e.inert,y=e.allowPinchZoom,b=e.as,v=void 0===b?"div"
306:b,w=e.gapMode,A=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}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=h([r,t]),S=eK(eK({},A),i);return u.createElement(u.Fragment,null,d&&u.createElement(p,{sideCar:eX,removeScrollBar:c,shards:f,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:w}),a?u.cloneElement(u.Children.only(s),eK(eK({},S),{ref:x})):u.createElement(v,eK({},S,{className:l,ref:x}),s))});e1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},e1.classNames={fullWidth:eZ,zeroRight:eJ};var e2=function(e){var t=e.sideCar,r=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}(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 u.createElement(n,g({},r))};e2.isSideCarExport=!0;var e4=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=o||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},e5=function(){var e=e4();return function(t,r){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},e3=function(){var e=e5();return function(t){return e(t.styles,t.dynamic),null}},e6={left:0,top:0,right:0,gap:0},e8=function(e){return parseInt(e||"",10)||0},e7=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[e8(r),e8(n),e8(i)]},e9=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return e6;var t=e7(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])}},te=e3(),tt=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(eJ," {\n    right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(eZ," {\n    margin-right: ").concat(s,"px ").concat(n,";\n  }\n  \n  .").concat(eJ," .").concat(eJ," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(eZ," .").concat(eZ," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},tr=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n,o=u.useMemo(function(){return e9(i)},[i]);return u.createElement(te,{styles:tt(o,!t,i,r?"":"!important")})},tn=!1;if("undefined"!=typeof window)try{var ti=Object.defineProperty({},"passive",{get:function(){return tn=!0,!0}});window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch(e){tn=!1}var to=!!tn&&{passive:!1},ta=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===r[t])},ts=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tl(e,n)){var i=tu(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},tl=function(e,t){return"v"===e?ta(t,"overflowY"):ta(t,"overflowX")},tu=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},tc=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,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{var p=tu(e,l),g=p[0],m=p[1]-p[2]-a*g;(g||m)&&tl(e,l)&&(h+=m,f+=g),l=l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&0===h||!i&&s>h)?c=!0:!d&&(i&&0===f||!i&&-s>f)&&(c=!0),c},td=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},th=function(e){return[e.deltaX,e.deltaY]},tf=function(e){return e&&"current"in e?e.current:e},tp=0,tg=[],tm=(eX.useMedium(function(e){var t=u.useRef([]),r=u.useRef([0,0]),n=u.useRef(),i=u.useState(tp++)[0],o=u.useState(e3)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(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))}
306)([e.lockRef.current],(e.shards||[]).map(tf),!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=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var i,o=td(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=ts(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=ts(d,c)),!h)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var f=n.current||i;return tc(f,t,e,"h"===f?l:u,!0)},[]),l=u.useCallback(function(e){if(tg.length&&tg[tg.length-1]===o){var r="deltaY"in e?th(e):td(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(tf).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=u.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)},[]),d=u.useCallback(function(e){r.current=td(e),n.current=void 0},[]),h=u.useCallback(function(t){c(t.type,th(t),t.target,s(t,e.lockRef.current))},[]),f=u.useCallback(function(t){c(t.type,td(t),t.target,s(t,e.lockRef.current))},[]);u.useEffect(function(){return tg.push(o),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,to),document.addEventListener("touchmove",l,to),document.addEventListener("touchstart",d,to),function(){tg=tg.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,to),document.removeEventListener("touchmove",l,to),document.removeEventListener("touchstart",d,to)}},[]);var p=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?u.createElement(tr,{gapMode:e.gapMode}):null)}),e2),ty=u.forwardRef(function(e,t){return u.createElement(e1,eK({},e,{ref:t,sideCar:tm}))});function tb(e){let{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:i,blockScrollOnMount:o,allowPinchZoom:l,finalFocusRef:c,returnFocusOnClose:d,preserveScrollBarGap:h,lockFocusAcrossFrames:f,isOpen:p}=(0,a.vR)(),[g,m]=(0,eG.oO)();(0,u.useEffect)(()=>{!g&&m&&setTimeout(m)},[g,m]);let y=(0,s.$)(n,p);return(0,e$.jsx)(eq,{autoFocus:t,isDisabled:!r,initialFocusRef:i,finalFocusRef:c,restoreFocus:d,contentRef:n,lockFocusAcrossFrames:f,children:(0,e$.jsx)(ty,{removeScrollBar:!h,allowPinchZoom:l,enabled:1===y&&o,forwardProps:!0,children:e.children})})}ty.classNames=e1.classNames},9437: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(7294),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){if(t){let e=s.add(r);n(e)}return()=>{s.remove(r),n(0)}}},[t,e]),r}},6810:function(e,t,r){"use strict";r.d(t,{L:function(){return a},h:function(){return s}});var n=r(5227),i=r(5893),[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"},9598:function(e,t,r){"use strict";r.d(t,{h:function(){return g}});var n=r(6810),i=r(6245),o=r(5227),a=r(3935),s=r(7294),l=r(5893),[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}
306),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=c(),y=(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==y?void 0:y.zIndex)?(0,l.jsx)(h,{zIndex:null==y?void 0:y.zIndex,children:r}):r;return p.current?(0,a.createPortal)((0,l.jsx)(u,{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,c=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&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,a.createPortal)((0,l.jsx)(u,{value:n?h:null,children:t}),h):null};function g(e){let t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,l.jsx)(p,{containerRef:r,...n}):(0,l.jsx)(f,{...n})}g.className=d,g.selector=".chakra-portal",g.displayName="Portal"},2495:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(7294);function i(e){return n.Children.toArray(e).filter(e=>(0,n.isValidElement)(e))}},5227:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(7294);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]}},1607:function(e,t,r){"use strict";r.d(t,{O:function(){return s},u:function(){return l}});var n=r(6245),i=r(7294),o=r(5893),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]),u=!n||!r;return(0,o.jsxs)(a.Provider,{value:l,children:[t,u&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",l.displayName="EnvironmentProvider"},5155:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(7294);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)}},1103:function(e,t,r){"use strict";r.d(t,{lq:function(){return i},qq:function(){return o}});var n=r(7294);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)}},6245:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(7294),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},2366:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(7294);function i(e,t){let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let t=r.current,n=t&&i.current;if(n)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},5432:function(e,t,r){"use strict";r.d(t,{Kn:function(){return i},PB:function(){return s},PP:function(){return c},Pu:function(){return o},Qm:function(){return l},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)}function o(e,...t){return a(e)?e(...t):e}var a=e=>"function"==typeof e,s=e=>e?"":void 0,l=e=>!!e||void 0;function u(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}
306function c(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},295:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(917),i=r(5059),o=r(1639),a=r(3179),s=r(1337),l=r(5432),u=r(5893),c=(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:`${c} ${d} linear infinite`,...r};return(0,u.jsx)(s.m.div,{ref:t,__css:m,className:g,...p,children:n&&(0,u.jsx)(s.m.span,{srOnly:!0,children:n})})});d.displayName="Spinner"},3179:function(e,t,r){"use strict";r.d(t,{D:function(){return eB},K1:function(){return eD},Lr:function(){return ej},Ud:function(){return eT},ZR:function(){return eS},_6:function(){return er},c0:function(){return ev},cC:function(){return eA},fj:function(){return eC},gJ:function(){return et},iv:function(){return eI},k0:function(){return e_}});var n=r(5432),i=r(8554),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),u=e?`${e}.${l}`:l,c=(0,n.Kn)(r.__cssMap)&&u in r.__cssMap?r.__cssMap[u].varRef:t;return c=a(c),s?`${c} !important`:c};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 u=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(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"},y=new Set(Object.values(m)),b=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),v=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),A=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},x=e=>t=>`${e}(${t})`,S={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":S.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}=A(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>
306"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;let r=w(e)||b.has(e);if(!r)return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!i||!o)return e;let a=i.includes("-gradient")?i:`${i}-gradient`,[s,...l]=o.split(",").map(v).filter(Boolean);if((null==l?void 0:l.length)===0)return e;let u=s in m?m[s]:s;l.unshift(u);let c=l.map(e=>{if(y.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`${a}(${c.join(", ")})`})(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:x("hue-rotate"),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage(e){if(null==e)return e;let t=w(e)||b.has(e);return t?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}},k={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",S.gradient),radii:c("radii",S.px),space:c("space",u(S.vh,S.px)),spaceT:c("space",u(S.vh,S.px)),degreeT:e=>({property:e,transform:S.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:l({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",u(S.vh,S.px)),sizesT:c("sizes",u(S.vh,S.fraction)),shadows:c("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:c("blur",S.blur)},M={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:S.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:S.bgClip}};Object.assign(M,{bgImage:M.backgroundImage,bgImg:M.backgroundImage});var E={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.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 I={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")}
306,_={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(_,{shadow:_.boxShadow});var C={filter:{transform:S.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",S.brightness),contrast:k.propT("--chakra-contrast",S.contrast),hueRotate:k.degreeT("--chakra-hue-rotate"),invert:k.propT("--chakra-invert",S.invert),saturate:k.propT("--chakra-saturate",S.saturate),dropShadow:k.propT("--chakra-drop-shadow",S.dropShadow),backdropFilter:{transform:S.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",S.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",S.contrast),backdropHueRotate:k.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:k.propT("--chakra-backdrop-invert",S.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",S.saturate)},B={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:S.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(B,{flexDir:B.flexDirection});var T={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.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},D={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:S.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},j={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.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,a=`@media screen and (min-width: ${o})`;return{[a]:{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,a=`@media screen and (max-width: ${o})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",S.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(j,{w:j.width,h:j.height,minW:j.minWidth,maxW:j.maxWidth,minH:j.minHeight,maxH:j.maxHeight,overscroll:j.overscrollBehavior,overscrollX:j.overscrollBehaviorX,overscrollY:j.overscrollBehaviorY});var z={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},N=(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}),O={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},L={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},P=(e,t,r)=>{let n={},i=N(e,t,{});for(let e in i){let t=e in r&&null!=r[e];t||(n[e]=i[e])}return n},R={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(R,{insetStart:R.insetInlineStart,insetEnd:R.insetInlineEnd});var F={ring:{transform:S.ring},ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},U={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(U,{m:U.margin,mt:U.marginTop,mr:U.marginRight,me:U.marginInlineEnd,marginEnd:U.marginInlineEnd,mb:U.marginBottom,ml:U.marginLeft,ms:U.marginInlineStart,marginStart:U.marginInlineStart,mx:U.marginX,my:U.marginY,p:U.padding,pt:U.paddingTop,py:U.paddingY,px:U.paddingX,pb:U.paddingBottom,pl:U.paddingLeft,ps:U.paddingInlineStart,paddingStart:U.paddingInlineStart,pr:U.paddingRight,pe:U.paddingInlineEnd,paddingEnd:U.paddingInlineEnd});var W={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},H={clipPath:!0,transform:k.propT("transform",S.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},V={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},Q={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",S.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.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)"}
306,property:"--chakra-line-clamp"}},$={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function Y(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var q=(e,...t)=>t.map(Y).join(` ${e} `).replace(/calc/g,""),G=(...e)=>`calc(${q("+",...e)})`,K=(...e)=>`calc(${q("-",...e)})`,J=(...e)=>`calc(${q("*",...e)})`,Z=(...e)=>`calc(${q("/",...e)})`,X=e=>{let t=Y(e);return null==t||Number.isNaN(parseFloat(t))?J(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(G(e,...t)),subtract:(...t)=>ee(K(e,...t)),multiply:(...t)=>ee(J(e,...t)),divide:(...t)=>ee(Z(e,...t)),negate:()=>ee(X(e)),toString:()=>e.toString()}),{add:G,subtract:K,multiply:J,divide:Z,negate:X});function et(e,t,r){let n=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(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 eu={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ec=e=>eh(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ed=e=>eh(t=>e(t,"~ &"),"[data-peer]",".peer"),eh=(e,...t)=>t.map(e).join(", "),ef={_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:ec(eu.hover),_peerHover:ed(eu.hover),_groupFocus:ec(eu.focus),_peerFocus:ed(eu.focus),_groupFocusVisible:ec(eu.focusVisible),_peerFocusVisible:ed(eu.focusVisible),_groupActive:ec(eu.active),_peerActive:ed(eu.active),_groupDisabled:ec(eu.disabled),_peerDisabled:ed(eu.disabled),_groupInvalid:ec(eu.invali
306d),_peerInvalid:ed(eu.invalid),_groupChecked:ec(eu.checked),_peerChecked:ed(eu.checked),_groupFocusWithin:ec(eu.focusWithin),_peerFocusWithin:ed(eu.focusWithin),_peerPlaceholderShown:ed(eu.placeholderShown),_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]"},ep=Object.keys(ef);function eg(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function em(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,u]of Object.entries(r)){let c=null!=(a=null==i?void 0:i(l))?a:l,d=[...o,c];if(null==n?void 0:n(r,d))return t(r,o);s[c]=e(u,d)}return s}return t(r,o)}(e)}var ey=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],eb=e=>ep.includes(e)||"default"===e;function ev(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),o=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,ey),a=r.semanticTokens,s=function({tokens:e,semanticTokens:t}){let r={};return em(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),em(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(eb)}),r}({tokens:o,semanticTokens:a}),l=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:u,cssVars:c}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:l,value:u}=s,{variable:c,reference:d}=eg(a,null==t?void 0:t.cssVarPrefix);if(!l){if(a.startsWith("space")){let e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,i=ee.negate(u),s=ee.negate(d);o[n]={value:i,var:c,varRef:s}}r[c]=u,o[a]={value:u,var:c,varRef:d};continue}let h=r=>{let n=String(a).split(".")[0],i=[n,r].join("."),o=e[i];if(!o)return r;let{reference:s}=eg(i,null==t?void 0:t.cssVarPrefix);return s},f=(0,n.Kn)(u)?u:{default:u};r=i(r,Object.entries(f).reduce((e,[t,r])=>{var n;if(!r)return e;let i=h(`${r}`);if("default"===t)return e[c]=i,e;let o=null!=(n=null==ef?void 0:ef[t])?n:t;return e[o]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:r,cssMap:o}}(s,{cssVarPrefix:l});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",...c},__cssMap:u,__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=function(e){let t=Object.keys(eo(e));return new Set(t)}(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 ew=i({},M,E,I,B,j,C,F,D,T,{srOnly:{transform:e=>!0===e?O:"focusable"===e?L:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>P(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>P(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>P(t,e,r)}},R,_,U,$,Q,W,H,z,V);Object.keys(Object.assign({},U,j,B,T,R));var eA=[...Object.keys(ew),...ep],ex={...ew,...ef},eS=e=>e in ex,ek=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);
306if(null==l)continue;if(!Array.isArray(l=(0,n.Kn)(l)&&r(l)?i(l):l)){a[s]=l;continue}let u=l.slice(0,o.length).length;for(let e=0;e<u;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),eE=(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)},eI=e=>t=>{let r=function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var l,u,c;let d=(0,n.Pu)(e,o),h=ek(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=eE(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 y=null!=(c=null==(u=null==m?void 0:m.transform)?void 0:u.call(m,g,o,d))?c:g;y=(null==m?void 0:m.processResult)?a(y,!0):y;let b=(0,n.Pu)(null==m?void 0:m.property,o);if(!s&&(null==m?void 0:m.static)){let e=(0,n.Pu)(m.static,o);f=i({},f,e)}if(b&&Array.isArray(b)){for(let e of b)f[e]=y;continue}if(b){"&"===b&&(0,n.Kn)(y)?f=i({},f,y):f[b]=y;continue}if((0,n.Kn)(y)){f=i({},f,y);continue}f[e]=y}return f};return a}({theme:t,pseudos:ef,configs:ew});return r(e)};function e_(e){return e}function eC(e){return e}function eB(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eT(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,u;if(!t)return;let c={},d=(u=t.toArrayValue,Array.isArray(o)?o:(0,n.Kn)(o)?u(o):null!=o?[o]:void 0);if(!d)return c;let h=d.length,f=1===h,p=!!e.parts;for(let o=0;o<h;o++){let u=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(u.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(c,{[e]:f?m[e]:{[g]:m[e]}})});continue}if(!p){f?i(c,m):c[g]=m;continue}c[g]=m}}return c}}(s);return i({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),l(e,"sizes",a,t),l(e,"variants",o,t))}}function eD(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 ej(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"])}},1337:function(e,t,r){"use strict";r.d(t,{m:function(){return _}});var n,i=r(3179),o=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),a=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function s(e){return a.has(e)||!o.has(e)}var l=r(2498),u=r(1759),c=r(6597),d=r(7462),h=r(7294),f=r(5042),p=/^((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|colorRen
306dering|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)-.*))$/,g=(0,f.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),m=r(1463),y=r(444),b=r(8137),v=r(7278),w=function(e){return"theme"!==e},A=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?g:w},x=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},S=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,y.hC)(t,r,n),(0,v.L)(function(){return(0,y.My)(t,r,n)}),null},k=(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=x(t,r,o),l=s||A(a),u=!l("as");return function(){var c=arguments,f=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&f.push("label:"+n+";"),null==c[0]||void 0===c[0].raw)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,g=1;g<p;g++)f.push(c[g],c[0][g])}var v=(0,m.w)(function(e,t,r){var n=u&&e.as||a,o="",c=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=h.useContext(m.T)}"string"==typeof e.className?o=(0,y.fp)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var g=(0,b.O)(f.concat(c),t.registered,d);o+=t.key+"-"+g.name,void 0!==i&&(o+=" "+i);var v=u&&void 0===s?A(n):l,w={};for(var x in e)(!u||"as"!==x)&&v(x)&&(w[x]=e[x]);return w.className=o,w.ref=r,h.createElement(h.Fragment,null,h.createElement(S,{cache:t,serialized:g,isStringTag:"string"==typeof n}),h.createElement(n,w))});return v.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,n){return e(t,(0,d.Z)({},r,n,{shouldForwardProp:x(v,n,!0)})).apply(void 0,f)},v}}).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){k[e]=k(e)});var M=null!=(n=k.default)?n:k,E=({baseStyle:e})=>t=>{let{theme:r,css:n,__css:o,sx:a,...s}=t,l=(0,u.lw)(s,(e,t)=>(0,i.ZR)(t)),d=(0,c.Pu)(e,t),h=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}({},o,d,(0,u.YU)(l),a),f=(0,i.iv)(h)(t.theme);return n?[f,n]:f};function I(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=s);let i=E({baseStyle:r}
306),o=M(e,n)(i),a=h.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,l.If)();return h.createElement(o,{ref:t,"data-theme":n?r:void 0,...e})});return a}var _=function(){let e=new Map;return new Proxy(I,{apply:(e,t,r)=>I(...r),get:(t,r)=>(e.has(r)||e.set(r,I(r)),e.get(r))})}()},6452:function(e,t,r){"use strict";r.d(t,{ZL:function(){return y},f6:function(){return h},eC:function(){return m}});var n=r(2498),i=r(7294);function o(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=(0,i.createContext)(void 0);return o.displayName=n,[o.Provider,function e(){var n;let a=(0,i.useContext)(o);if(!a&&t){let t=Error(r);throw t.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,t,e),t}return a},o]}var a=r(3179),s=r(1759),l=r(6597),u=r(1463),c=r(917),d=r(5893);function h(e){let{cssVarsRoot:t,theme:r,children:n}=e,o=(0,i.useMemo)(()=>(0,a.c0)(r),[r]);return(0,d.jsxs)(u.a,{theme:o,children:[(0,d.jsx)(f,{root:t}),n]})}function f({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(c.xB,{styles:e=>({[t]:e.__cssVars})})}var[p,g]=o({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function m(e){return o({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function y(){let{colorMode:e}=(0,n.If)();return(0,d.jsx)(c.xB,{styles:t=>{let r=(0,s.Wf)(t,"styles.global"),n=(0,l.Pu)(r,{theme:t,colorMode:e});if(!n)return;let i=(0,a.iv)(n)(t);return i}})}},4629:function(e,t,r){"use strict";r.d(t,{LP:function(){return a},uP:function(){return o}});var n=r(5119),i=r(2498);function o(){let e=(0,i.If)(),t=(0,n.F)();return{...e,theme:t}}function a(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;if("breakpoints"===e)return 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);let s=`${e}.${t}`;return 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,s,null!=(a=o[n])?a:t)});return Array.isArray(t)?a:a[0]}}},5119:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(1463),i=r(7294);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}},5059:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(7294);function i(e){return(0,n.forwardRef)(e)}},1639:function(e,t,r){"use strict";r.d(t,{jC:function(){return d},mq:function(){return c}});var n=r(4629),i=r(3179),o=r(1759),a=r(8554),s=r(7294),l=r(9590);function u(e,t={}){var r;let{styleConfig:u,...c}=t,{theme:d,colorMode:h}=(0,n.uP)(),f=e?(0,o.Wf)(d,`components.${e}`):void 0,p=u||f,g=a({theme:d,colorMode:h},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,o.YU)((0,o.CE)(c,["children"]))),m=(0,s.useRef)({});if(p){let e=(0,i.Ud)(p),t=e(g),r=l(m.current,t);r||(m.current=t)}return m.current}function c(e,t={}){return u(e,t)}function d(e,t={}){return u(e,t)}},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}}},3867:function(e,t,r){"use strict";r.d(t,{Cj:function(){return _},fp:function(){return k}});var n=r(8128),i=r(6877),o=r(5893);
306function a(e){return(0,o.jsx)(i.J,{viewBox:"0 0 24 24",...e,children:(0,o.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 s=r(5227),l=r(295),[u,c]=(0,s.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[d,h]=(0,s.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,o.jsx)(i.J,{viewBox:"0 0 24 24",...e,children:(0,o.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:a,colorScheme:"orange"},success:{icon:function(e){return(0,o.jsx)(i.J,{viewBox:"0 0 24 24",...e,children:(0,o.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:a,colorScheme:"red"},loading:{icon:l.$,colorScheme:"blue"}},p=r(5432),g=r(5059),m=r(3179),y=r(1639),b=r(1337),v=(0,g.G)(function(e,t){var r;let{status:n="info",addRole:i=!0,...a}=(0,m.Lr)(e),s=null!=(r=e.colorScheme)?r:f[n].colorScheme,l=(0,y.jC)("Alert",{...e,colorScheme:s}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...l.container};return(0,o.jsx)(u,{value:{status:n},children:(0,o.jsx)(d,{value:l,children:(0,o.jsx)(b.m.div,{"data-status":n,role:i?"alert":void 0,ref:t,...a,className:(0,p.cx)("chakra-alert",e.className),__css:c})})})});function w(e){let{status:t}=c(),r=f[t].icon,n=h(),i="loading"===t?n.spinner:n.icon;return(0,o.jsx)(b.m.span,{display:"inherit","data-status":t,...e,className:(0,p.cx)("chakra-alert__icon",e.className),__css:i,children:e.children||(0,o.jsx)(r,{h:"100%",w:"100%"})})}v.displayName="Alert",w.displayName="AlertIcon";var A=(0,g.G)(function(e,t){let r=h(),{status:n}=c();return(0,o.jsx)(b.m.div,{ref:t,"data-status":n,...e,className:(0,p.cx)("chakra-alert__title",e.className),__css:r.title})});A.displayName="AlertTitle";var x=(0,g.G)(function(e,t){let r=h(),{status:n}=c(),i={display:"inline",...r.description};return(0,o.jsx)(b.m.div,{ref:t,"data-status":n,...e,className:(0,p.cx)("chakra-alert__desc",e.className),__css:i})});x.displayName="AlertDescription";var S=r(6989),k=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;M+=1;let i=null!=(r=t.id)?r:M,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>k.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"),a=o?[r,...null!=(t=e[n])?t:[]]:[...null!=(i=e[n])?i:[],r];return{...e,[n]:a}}),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:I(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)(k.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),M=0,E=e=>{let{status:t,variant:r="solid",id:n,title:i,isClosable:a,onClose:s,description:l,colorScheme:u,icon:c}=e,d=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,o.jsxs)(v,{addRole:!1,status:t,variant:r,id:null==d?void 0:d.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:u,children:[(0,o.jsx)(w,{children:c}),(0,o.jsxs)(b.m.div,{flex:"1",maxWidth:"100%",children:[i&&(0,o.jsx)(A,{id:null==d?void 0:d.title,children:i}),l&&(0,o.jsx)(x,{id:null==d?void 0:d.description,display:"block",children:l})]}),a&&(0,o.jsx)(S.P,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function I(e={}){let{render:t,toastComponent:r=E}=e;return n=>"function"==typeof t?t({...n,...e}):(0,o.jsx)(r,{...n,...e})}function _(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=I(t);return k.notify(n,t)};return n.update=(e,t)=>
306{k.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,p.Pu)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,p.Pu)(t.error,e)}))},n.closeAll=k.closeAll,n.close=k.close,n.isActive=k.isActive,n}},4521:function(e,t,r){"use strict";r.d(t,{Qi:function(){return y},VW:function(){return v},OX:function(){return b}});var n=r(8128),i=r(7294),o=r(5155),a=r(2366),s=r(5432),l=r(5947),u=r(8419),c=r(1337),d=r(5893),h={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]}}},f=(0,i.memo)(e=>{let{id:t,message:r,onCloseComplete:f,onRequestRemove:p,requestClose:g=!1,position:m="bottom",duration:y=5e3,containerStyle:b,motionVariants:v=h,toastSpacing:w="0.5rem"}=e,[A,x]=(0,i.useState)(y),S=(0,l.hO)();(0,a.r)(()=>{S||null==f||f()},[S]),(0,a.r)(()=>{x(y)},[y]);let k=()=>{S&&p()};(0,i.useEffect)(()=>{S&&g&&p()},[S,g,p]),function(e,t){let r=(0,o.W)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(k,A);let M=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...b}),[b,w]),E=(0,i.useMemo)(()=>(0,n.sv)(m),[m]);return(0,d.jsx)(u.E.div,{layout:!0,className:"chakra-toast",variants:v,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>x(null),onHoverEnd:()=>x(y),custom:{position:m},style:E,children:(0,d.jsx)(c.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:M,children:(0,s.Pu)(r,{id:t,onClose:k})})})});f.displayName="ToastComponent";var p=r(3867),g=r(1526),m=r(9598),[y,b]=(0,r(5227).k)({name:"ToastOptionsContext",strict:!1}),v=e=>{let t=(0,i.useSyncExternalStore)(p.fp.subscribe,p.fp.getState,p.fp.getState),{motionVariants:r,component:o=f,portalProps:a}=e,s=Object.keys(t),l=s.map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:(0,n.IW)(e),children:(0,d.jsx)(g.M,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,d.jsx)(m.h,{...a,children:l})}},9155: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={scale:{enter:{scale:1},exit:{scale:.95}},fade:{enter:{opacity:1},exit:{opacity:0}},pushLeft:{enter:{x:"100%"},exit:{x:"-30%"}},pushRight:{enter:{x:"-100%"},exit:{x:"30%"}},pushUp:{enter:{y:"100%"},exit:{y:"-30%"}},pushDown:{enter:{y:"-100%"},exit:{y:"30%"}},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;let r=null!=(t=null==e?void 0:e.direction)?t:"right";switch(r){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})}},6597: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}})},1759: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(8554);var i=(e=>{let t=new WeakMap;return(r,n,i,o)=>
306{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],o=t(i,n,e);o&&(r[n]=i)}),r}var a=e=>o(e,e=>null!=e)},4718:function(e,t,r){"use strict";r.d(t,{R:function(){return o},h:function(){return i}});var n=r(7294);let i=(0,n.createContext)({});function o(){return(0,n.useContext)(i)}},4306:function(e,t,r){"use strict";r.d(t,{O:function(){return l},z:function(){return s}});var n=r(7294);let i=[],o={autoConnect:!1,connecting:!1,connected:!1,disconnecting:!1,select(e){console.error(a("get","select"))},connect:()=>Promise.reject(console.error(a("get","connect"))),disconnect:()=>Promise.reject(console.error(a("get","disconnect"))),sendTransaction:(e,t,r)=>Promise.reject(console.error(a("get","sendTransaction"))),signTransaction:e=>Promise.reject(console.error(a("get","signTransaction"))),signAllTransactions:e=>Promise.reject(console.error(a("get","signAllTransactions"))),signMessage:e=>Promise.reject(console.error(a("get","signMessage")))};function a(e,t){return`You have tried to  ${e} "${t}" on a WalletContext without providing one. Make sure to render a WalletProvider as an ancestor of the component that uses WalletContext`}Object.defineProperty(o,"wallets",{get:()=>(console.error(a("read","wallets")),i)}),Object.defineProperty(o,"wallet",{get:()=>(console.error(a("read","wallet")),null)}),Object.defineProperty(o,"publicKey",{get:()=>(console.error(a("read","publicKey")),null)});let s=(0,n.createContext)(o);function l(){return(0,n.useContext)(s)}},1526:function(e,t,r){"use strict";r.d(t,{M:function(){return m}});var n=r(7294),i=r(6405),o=r(8868);function a(){let e=(0,n.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=r(240),l=r(6681);class u extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
307          [data-motion-pop-id="${r}"] {
308            position: absolute !important;
309            width: ${e}px !important;
310            height: ${n}px !important;
311            top: ${a}px !important;
312            left: ${s}px !important;
313          }
314        `),()=>{document.head.removeChild(l)}},[t]),n.createElement(u,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:u})=>{let d=(0,l.h)(h),f=(0,n.useId)(),p=(0,n.useMemo)(()=>({id:f,initial:t,isPresent:r,custom:o,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[r]);return(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),n.useEffect(()=>{r||d.size||!i||i()},[r]),"popLayout"===u&&(e=n.createElement(c,{isPresent:r},e)),n.createElement(s.O.Provider,{value:p},e)};function h(){return new Map}var f=r(5364),p=r(5487);let g=e=>e.key||"",m=({children:e,custom:t,initial:r=!0,onExitComplete:s,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var h;(0,p.k)(!l,"Replace exitBeforeEnter with mode='wait'");let m=(0,n.useContext)(f.p).forceRender||function(){let e=a(),[t,r]=(0,n.useState)(0),o=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]),s=(0,n.useCallback)(()=>i.Wi.postRender(o),[o]);return[s,t]}()[0],y=a(),b=function(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e),v=b,w=(0,n.useRef)(new Map).current,A=(0,n.useRef)(v),x=(0,n.useRef)(new Map).current,S=(0,n.useRef)(!0);if((0,o.L)(()=>
314{S.current=!1,function(e,t){e.forEach(e=>{let r=g(e);t.set(r,e)})}(b,x),A.current=v}),h=()=>{S.current=!0,x.clear(),w.clear()},(0,n.useEffect)(()=>()=>h(),[]),S.current)return n.createElement(n.Fragment,null,v.map(e=>n.createElement(d,{key:g(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:u,mode:c},e)));v=[...v];let k=A.current.map(g),M=b.map(g),E=k.length;for(let e=0;e<E;e++){let t=k[e];-1!==M.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(v=[]),w.forEach((e,r)=>{if(-1!==M.indexOf(r))return;let i=x.get(r);if(!i)return;let o=k.indexOf(r),a=e;a||(a=n.createElement(d,{key:g(i),isPresent:!1,onExitComplete:()=>{x.delete(r),w.delete(r);let e=A.current.findIndex(e=>e.key===r);if(A.current.splice(e,1),!w.size){if(A.current=b,!1===y.current)return;m(),s&&s()}},custom:t,presenceAffectsLayout:u,mode:c},i),w.set(r,a)),v.splice(o,0,a)}),v=v.map(e=>{let t=e.key;return w.has(t)?e:n.createElement(d,{key:g(e),isPresent:!0,presenceAffectsLayout:u,mode:c},e)}),n.createElement(n.Fragment,null,w.size?v:v.map(e=>(0,n.cloneElement)(e)))}},5947:function(e,t,r){"use strict";r.d(t,{hO:function(){return a},oO:function(){return o}});var n=r(7294),i=r(240);function o(){let e=(0,n.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,a=(0,n.useId)();return(0,n.useEffect)(()=>o(a),[]),!t&&r?[!1,()=>r&&r(a)]:[!0]}function a(){var e;return null===(e=(0,n.useContext)(i.O))||e.isPresent}},5364:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var n=r(7294);let i=(0,n.createContext)({})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(7294);let i=(0,n.createContext)(null)},7367:function(e,t,r){"use strict";r.d(t,{frameData:function(){return n}});let n={delta:0,timestamp:0,isProcessing:!1}},6405:function(e,t,r){"use strict";r.d(t,{Pn:function(){return h},Wi:function(){return d},S6:function(){return s}});var n=r(7367);let i=!0,o=!1,a=["read","update","preRender","render","postRender"],s=a.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,u=l?t:r;return o&&a.add(e),-1===u.indexOf(e)&&(u.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}(()=>o=!0),e),{}),l=e=>s[e].process(n.frameData),u=e=>{o=!1,n.frameData.delta=i?1e3/60:Math.max(Math.min(e-n.frameData.timestamp,40),1),n.frameData.timestamp=e,n.frameData.isProcessing=!0,a.forEach(l),n.frameData.isProcessing=!1,o&&(i=!1,requestAnimationFrame(u))},c=()=>{o=!0,i=!0,n.frameData.isProcessing||requestAnimationFrame(u)},d=a.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,n=!1)=>(o||c(),r.schedule(e,t,n)),e},{});function h(e){a.forEach(t=>s[t].cancel(e))}},8419:function(e,t,r){"use strict";r.d(t,{E:function(){return iN}});var n,i=r(7294);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,i.createContext)({});var s=r(240),l=r(8868);let u=(0,i.createContext)({strict:!1});function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function d(e){return"string"==typeof e||Array.isArray(e)}function h(e){return"object"==typeof e&&"function"==typeof e.start}let f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...f];function g(e){return h(e.animate)||p.some(t=>d(e[t]))}function m(e){return!!(g(e)||e.variants)}function y(e){return Array.isArray(e)?e.join(" "):e}let b={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},v={};for(let e in b)v[e]={isEnabled:t=>b[e].some(e=>!!t[e])};var w=r(1741),A=r(5364);let x=(0,i.createContext)({}),S=Symbol.for("motionComponentSymbol"),k=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function M(e){if("string"!=typeof e||e.includes("-"));else if(k.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let E={},I=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_=new Set(I);function C(e,{layout:t,layoutId:r}){return _.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!E[e]||"opacity"===e)}let B=e=>!!(e&&e.getVelocity),T={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},D=I.length,j=e=>t=>"string"==typeof t&&t.startsWith(e),z=j("--"),N=j("var(--"),O=(e,t)=>t&&"number"==typeof e?t.transform(e):e,L=(e,t,r)=>
314Math.min(Math.max(r,e),t),P={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},R={...P,transform:e=>L(0,1,e)},F={...P,default:1},U=e=>Math.round(1e5*e)/1e5,W=/(-)?([\d]*\.?[\d])+/g,H=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,V=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Q(e){return"string"==typeof e}let $=e=>({test:t=>Q(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Y=$("deg"),q=$("%"),G=$("px"),K=$("vh"),J=$("vw"),Z={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(100*e)},X={...P,transform:Math.round},ee={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,radius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,size:G,top:G,right:G,bottom:G,left:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,rotate:Y,rotateX:Y,rotateY:Y,rotateZ:Y,scale:F,scaleX:F,scaleY:F,scaleZ:F,skew:Y,skewX:Y,skewY:Y,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:R,originX:Z,originY:Z,originZ:G,zIndex:X,fillOpacity:R,strokeOpacity:R,numOctaves:X};function et(e,t,r,n){let{style:i,vars:o,transform:a,transformOrigin:s}=e,l=!1,u=!1,c=!0;for(let e in t){let r=t[e];if(z(e)){o[e]=r;continue}let n=ee[e],d=O(r,n);if(_.has(e)){if(l=!0,a[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):i[e]=d}if(!t.transform&&(l||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<D;t++){let r=I[t];if(void 0!==e[r]){let t=T[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,c,n):i.transform&&(i.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function en(e,t,r){for(let n in t)B(t[n])||C(n,r)||(e[n]=t[n])}function ei(e,t,r){let n={},o=function(e,t,r){let n=e.style||{},o={};return en(o,n,e),Object.assign(o,function({transformTemplate:e},t,r){return(0,i.useMemo)(()=>{let n=er();return et(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(o):o}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}let eo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ea(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||eo.has(e)}let es=e=>!ea(e);try{(n=require("@emotion/is-prop-valid").default)&&(es=e=>e.startsWith("on")?!ea(e):n(e))}catch(e){}function el(e,t,r){return"string"==typeof e?e:G.transform(t+r*e)}let eu={offset:"stroke-dashoffset",array:"stroke-dasharray"},ec={offset:"strokeDashoffset",array:"strokeDasharray"};function ed(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,h){if(et(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:p,dimensions:g}=e;f.transform&&(g&&(p.transform=f.transform),delete f.transform),g&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let n=el(t,e.x,e.width),i=el(r,e.y,e.height);return`${n} ${i}`}(g,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?eu:ec;e[o.offset]=G.transform(-n);let a=G.transform(t),s=G.transform(r);e[o.array]=`${a} ${s}`}(f,a,s,l,!1)}let eh=()=>({...er(),attrs:{}}),ef=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ep(e,t,r,n){let o=(0,i.useMemo)(()=>{let r=eh();return ed(r,t,{enableHardwareAcceleration:!1},ef(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};en(t,e.style,e),o.style={...t,...o.style}}return o}let eg=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function em(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function eb(e,t,r,n){for(let r in em(e,t,void 0,n),t.attrs)e.setAttribute(ey.has(r)?r:eg(r),t.attrs[r])}function ev(e,t){let{style:r}=e,n={};for(let i in r)(B(r[i])||t.style&&B(t.style[i])||C(i,e))&&(n[i]=r[i]);return n}function ew(e,t){let r=ev(e,t);for(let n in e)if(B(e[n])||B(t[n])){let t=-1!==I.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[t]=e[n]}return r}function eA(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}
314var ex=r(6681);let eS=e=>Array.isArray(e),ek=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eM=e=>eS(e)?e[e.length-1]||0:e;function eE(e){let t=B(e)?e.get():e;return ek(t)?t.toValue():t}let eI=e=>(t,r)=>{let n=(0,i.useContext)(a),o=(0,i.useContext)(s.O),l=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eE(o[e]);let{initial:a,animate:s}=e,l=g(e),u=m(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!h(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=eA(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,o);return r?l():(0,ex.h)(l)},e_={useVisualState:eI({scrapeMotionValuesFromProps:ew,createRenderState:eh,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}ed(r,n,{enableHardwareAcceleration:!1},ef(t.tagName),e.transformTemplate),eb(t,r)}})},eC={useVisualState:eI({scrapeMotionValuesFromProps:ev,createRenderState:er})};function eB(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let eT=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eD(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let ej=e=>t=>eT(t)&&e(t,eD(t));function ez(e,t,r,n){return eB(e,t,ej(r),n)}let eN=(e,t)=>r=>t(e(r)),eO=(...e)=>e.reduce(eN);function eL(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eP=eL("dragHorizontal"),eR=eL("dragVertical");function eF(e){let t=!1;if("y"===e)t=eR();else if("x"===e)t=eP();else{let e=eP(),r=eR();e&&r?t=()=>{e(),r()}
314:(e&&e(),r&&r())}return t}function eU(){let e=eF(!0);return!e||(e(),!1)}class eW{constructor(e){this.isMounted=!1,this.node=e}update(){}}var eH=r(6405);function eV(e,t){let r="pointer"+(t?"enter":"leave"),n="onHover"+(t?"Start":"End");return ez(e.current,r,(r,i)=>{if("touch"===r.type||eU())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[n]&&eH.Wi.update(()=>o[n](r,i))},{passive:!e.getProps()[n]})}let eQ=(e,t)=>!!t&&(e===t||eQ(e,t.parentElement));var e$=r(1662);function eY(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,eD(r))}let eq=new WeakMap,eG=new WeakMap,eK=e=>{let t=eq.get(e.target);t&&t(e)},eJ=e=>{e.forEach(eK)},eZ={some:0,all:1};function eX(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function e0(e,t,r){let n=e.getProps();return eA(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}let e1="data-"+eg("framerAppearId");var e2=r(5487);let e4=e=>1e3*e,e5=e=>e/1e3,e3={current:!1},e6=e=>Array.isArray(e)&&"number"==typeof e[0],e8=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,e7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e8([0,.65,.55,1]),circOut:e8([.55,0,1,.45]),backIn:e8([.31,.01,.66,-.59]),backOut:e8([.33,1.53,.69,.99])},e9={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},te={},tt={};for(let e in e9)tt[e]=()=>(void 0===te[e]&&(te[e]=e9[e]()),te[e]);let tr=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tn(e,t,r,n){if(e===t&&r===n)return e$.Z;let i=t=>(function(e,t,r,n,i){let o,a;let s=0;do(o=tr(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:tr(i(e),t,n)}let ti=tn(.42,0,1,1),to=tn(0,0,.58,1),ta=tn(.42,0,.58,1),ts=e=>Array.isArray(e)&&"number"!=typeof e[0],tl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tu=e=>t=>1-e(1-t),tc=e=>1-Math.sin(Math.acos(e)),td=tu(tc),th=tl(td),tf=tn(.33,1.53,.69,.99),tp=tu(tf),tg=tl(tp),tm={linear:e$.Z,easeIn:ti,easeInOut:ta,easeOut:to,circIn:tc,circInOut:th,circOut:td,backIn:tp,backInOut:tg,backOut:tf,anticipate:e=>(e*=2)<1?.5*tp(e):.5*(2-Math.pow(2,-10*(e-1)))},ty=e=>{if(Array.isArray(e)){(0,e2.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return tn(t,r,n,i)}return"string"==typeof e?((0,e2.k)(void 0!==tm[e],`Invalid easing type '${e}'`),tm[e]):e},tb=(e,t)=>r=>!!(Q(r)&&V.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tv=(e,t,r)=>n=>{if(!Q(n))return n;let[i,o,a,s]=n.match(W);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tw=e=>L(0,255,e),tA={...P,transform:e=>Math.round(tw(e))},tx={test:tb("rgb","red"),parse:tv("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tA.transform(e)+", "+tA.transform(t)+", "+tA.transform(r)+", "+U(R.transform(n))+")"},tS={test:tb("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),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:tx.transform},tk={test:tb("hsl","hue"),parse:tv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+q.transform(U(t))+", "+q.transform(U(r))+", "+U(R.transform(n))+")"},tM={test:e=>tx.test(e)||tS.test(e)||tk.test(e),parse:e=>tx.test(e)?tx.parse(e):tk.test(e)?tk.parse(e):tS.parse(e),transform:e=>Q(e)?e:e.hasOwnProperty("red")?tx.transform(e):tk.transform(e)},tE=(e,t,r)=>-r*e+r*t+e;function tI(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}let t_=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tC=[tS,tx,tk],tB=e=>tC.find(t=>t.test(e));function tT(e){let t=tB(e);(0,e2.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tk&&(r=function({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=tI(s,n,e+1/3),o=tI(s,n,e),a=tI(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}}(r)),r}let tD=(e,t)=>{let r=tT(e),n=tT(t),i={...r};return e=>(i.red=t_(r.red,n.red,e),i.green=t_(r.green,n.green,e),i.blue=t_(r.blue,n.blue,e),i.alpha=tE(r.alpha,n.alpha,e),tx.transform(i))}
314,tj={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:e$.Z},tz={regex:H,countKey:"Colors",token:"${c}",parse:tM.parse},tN={regex:W,countKey:"Numbers",token:"${n}",parse:P.parse};function tO(e,{regex:t,countKey:r,token:n,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function tL(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&tO(r,tj),tO(r,tz),tO(r,tN),r}function tP(e){return tL(e).values}function tR(e){let{values:t,numColors:r,numVars:n,tokenised:i}=tL(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<n?t.replace(tj.token,e[i]):i<n+r?t.replace(tz.token,tM.transform(e[i])):t.replace(tN.token,U(e[i]));return t}}let tF=e=>"number"==typeof e?0:e,tU={test:function(e){var t,r;return isNaN(e)&&Q(e)&&((null===(t=e.match(W))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(H))||void 0===r?void 0:r.length)||0)>0},parse:tP,createTransformer:tR,getAnimatableNone:function(e){let t=tP(e),r=tR(e);return r(t.map(tF))}},tW=(e,t)=>r=>`${r>0?t:e}`;function tH(e,t){return"number"==typeof e?r=>tE(e,t,r):tM.test(e)?tD(e,t):e.startsWith("var(")?tW(e,t):t$(e,t)}let tV=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tH(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},tQ=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tH(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}},t$=(e,t)=>{let r=tU.createTransformer(t),n=tL(e),i=tL(t),o=n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers;return o?eO(tV(n.values,i.values),r):((0,e2.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.`),tW(e,t))},tY=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tq=(e,t)=>r=>tE(e,t,r);function tG(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,e2.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||function(e){if("number"==typeof e);else if("string"==typeof e)return tM.test(e)?tD:t$;else if(Array.isArray(e))return tV;else if("object"==typeof e)return tQ;return tq}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||e$.Z:t;o=eO(e,o)}n.push(o)}return n}(t,n,i),s=a.length,l=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=tY(e[r],e[r+1],t);return a[r](n)};return r?t=>l(L(e[0],e[o-1],t)):l}function tK({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=ts(n)?n.map(ty):ty(n),o={done:!1,value:t[0]},a=(r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=tY(0,t,n);e.push(tE(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),s=tG(a,t,{ease:Array.isArray(i)?i:t.map(()=>i||ta).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function tJ(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?n*(1e3/i):0}function tZ(e,t){return e*Math.sqrt(1-t*t)}let tX=["duration","bounce"],t0=["stiffness","damping","mass"];function t1(e,t){return t.some(t=>void 0!==e[t])}function t2({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,velocity:d,duration:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t1(e,t0)&&t1(e,tX)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,e2.K)(e<=e4(10),"Spring duration must be 10 seconds or less");let a=1-t;a=L(.05,1,a),e=L(.01,10,e5(e)),a<1?(i=t=>{let n=t*a,i=n*e,o=tZ(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,l=tZ(Math.pow(t,2),a),u=-i(t)+.001>0?-1:1;return u*((o*r+r-s)*Math.exp(-o))/l}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e=e4(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*n;
314return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(n),p=d?-e5(d):0,g=u/(2*Math.sqrt(l*c)),m=a-o,y=e5(Math.sqrt(l/c)),b=5>Math.abs(m);if(r||(r=b?.01:2),t||(t=b?.005:.5),g<1){let e=tZ(y,g);i=t=>{let r=Math.exp(-g*y*t);return a-r*((p+g*y*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===g)i=e=>a-Math.exp(-y*e)*(m+(p+y*m)*e);else{let e=y*Math.sqrt(g*g-1);i=t=>{let r=Math.exp(-g*y*t),n=Math.min(e*t,300);return a-r*((p+g*y*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}return{calculatedDuration:f&&h||null,next:e=>{let n=i(e);if(f)s.done=e>=h;else{let o=p;0!==e&&(o=g<1?tJ(i,e,n):0);let l=Math.abs(o)<=r,u=Math.abs(a-n)<=t;s.done=l&&u}return s.value=s.done?a:n,s}}}function t4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},g=e=>void 0!==s&&e<s||void 0!==l&&e>l,m=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,y=r*t,b=f+y,v=void 0===a?b:a(b);v!==b&&(y=v-f);let w=e=>-y*Math.exp(-e/n),A=e=>v+w(e),x=e=>{let t=w(e),r=A(e);p.done=Math.abs(t)<=u,p.value=p.done?v:r},S=e=>{g(p.value)&&(d=e,h=t2({keyframes:[p.value,m(p.value)],velocity:tJ(A,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),S(e)),void 0!==d&&e>d)?h.next(e-d):(t||x(e),p)}}}var t5=r(7367);let t3=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eH.Wi.update(t,!0),stop:()=>(0,eH.Pn)(t),now:()=>t5.frameData.isProcessing?t5.frameData.timestamp:performance.now()}};function t6(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let t8={decay:t4,inertia:t4,tween:tK,keyframes:tK,spring:t2};function t7({autoplay:e=!0,delay:t=0,driver:r=t3,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let f,p,g,m,y,b=1,v=!1,w=()=>{p=new Promise(e=>{f=e})};w();let A=t8[i]||tK;A!==tK&&"number"!=typeof n[0]&&(m=tG([0,100],n,{clamp:!1}),n=[0,100]);let x=A({...h,keyframes:n});"mirror"===s&&(y=A({...h,keyframes:[...n].reverse(),velocity:-(h.velocity||0)}));let S="idle",k=null,M=null,E=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=t6(x));let{calculatedDuration:I}=x,_=1/0,C=1/0;null!==I&&(C=(_=I+a)*(o+1)-a);let B=0,T=e=>{if(null===M)return;b>0&&(M=Math.min(M,e)),b<0&&(M=Math.min(e-C/b,M)),B=null!==k?k:Math.round(e-M)*b;let r=B-t*(b>=0?1:-1),i=b>=0?r<0:r>C;B=Math.max(r,0),"finished"===S&&null===k&&(B=C);let l=B,u=x;if(o){let e=B/_,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);let n=!!(t%2);n&&("reverse"===s?(r=1-r,a&&(r-=a/_)):"mirror"===s&&(u=y));let i=L(0,1,r);B>C&&(i="reverse"===s&&n?1:0),l=i*_}let c=i?{done:!1,value:n[0]}:u.next(l);m&&(c.value=m(c.value));let{done:h}=c;i||null===I||(h=b>=0?B>=C:B<=0);let f=null===k&&("finished"===S||"running"===S&&h);return d&&d(c.value),f&&z(),c},D=()=>{g&&g.stop(),g=void 0},j=()=>{S="idle",D(),f(),w(),M=E=null},z=()=>{S="finished",c&&c(),D(),f()},N=()=>{if(v)return;g||(g=r(T));let e=g.now();l&&l(),null!==k?M=e-k:M&&"finished"!==S||(M=e),"finished"===S&&w(),E=M,k=null,S="running",g.start()};e&&N();let O={then:(e,t)=>p.then(e,t),get time(){return e5(B)},set time(newTime){B=newTime=e4(newTime),null===k&&g&&0!==b?M=g.now()-newTime/b:k=newTime},get duration(){let e=null===x.calculatedDuration?t6(x):x.calculatedDuration;return e5(e)},get speed(){return b},set speed(newSpeed){if(newSpeed===b||!g)return;b=newSpeed,O.time=e5(B)},get state(){return S},play:N,pause:()=>{S="paused",k=B},stop:()=>{v=!0,"idle"!==S&&(S="idle",u&&u(),j())},cancel:()=>{null!==E&&T(E),j()},complete:()=>{S="finished"},sample:e=>(M=0,T(e))};return O}let t9=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),re=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&e7[t]||e6(t)||Array.isArray(t)&&t.every(e))}(t.ease),rt={type:"spring",stiffness:500,damping:25,restSpeed:10},rr=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rn={type:"keyframes",duration:.8},ri={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ro=(e,{keyframes:t})=>t.length>2?rn:_.has(e)?e.startsWith("scale")?rr(t[1]):rt:ri,ra=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),rs=new Set(["brightness","contrast","saturate","opacity"]);function rl(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(W)||[];if(!n)return e;let i=r.replace(n,""),o=rs.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let ru=/([a-z-]*)\(.*?\)/g,rc={...tU,getAnimatableNone:e=>{let t=e.match(ru);return t?t.map(rl).join(" "):e}},rd={...ee,color:tM,backgroundColor:tM,outlineColor:tM,fill:tM,stroke:tM,borderColor:tM,borderTopColor:tM,borderRightColor:tM,borderBottomColor:tM,borderLeftColor:tM,filter:rc,WebkitFilter:rc},rh=e=>rd[e];function rf(e,t){let r=rh(e);return r!==rc&&(r=tU),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let rp=e=>/^0[^.\s]+$/.test(e);function rg(e,t){return e[t]||e.default||e}let rm=(e,t,r,n={})=>i=>{let o=rg(n,e)||{},a=o.delay||n.delay||0,{elapsed:s=0}=n;s-=e4(a);let l=function(e,t,r,n){let i,o;let a=ra(t,r);i=Array.isArray(r)?[...r]:[null,r];let s=void 0!==n.from?n.from:e.get(),l=[];for(let e=0;e<i.length;e++){var u;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(u=i[e])?0===u:null!==u?"none"===u||"0"===u||rp(u):void 0)&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}
314if(a&&l.length&&o)for(let e=0;e<l.length;e++){let r=l[e];i[r]=rf(t,o)}return i}(t,e,r,o),u=l[0],c=l[l.length-1],d=ra(e,u),h=ra(e,c);(0,e2.K)(d===h,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(f={...f,...ro(e,f)}),f.duration&&(f.duration=e4(f.duration)),f.repeatDelay&&(f.repeatDelay=e4(f.repeatDelay)),!d||!h||e3.current||!1===o.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:e$.Z,pause:e$.Z,stop:e$.Z,then:e=>(e(),Promise.resolve()),cancel:e$.Z,complete:e$.Z});return t?t7({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(e3.current?{...f,delay:0}:f);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let r=function(e,t,{onUpdate:r,onComplete:n,...i}){let o,a;let s=tt.waapi()&&t9.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type;if(!s)return!1;let l=!1,u=()=>{a=new Promise(e=>{o=e})};u();let{keyframes:c,duration:d=300,ease:h,times:f}=i;if(re(t,i)){let e=t7({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},r=[],n=0;for(;!t.done&&n<2e4;)r.push((t=e.sample(n)).value),n+=10;f=void 0,c=r,d=n-10,h="linear"}let p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t){if(t)return e6(t)?e8(t):Array.isArray(t)?t.map(e):e7[t]}(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:h,times:f}),g=()=>p.cancel(),m=()=>{eH.Wi.update(g),o(),u()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){let n=t&&"loop"!==r&&t%2==1?0:e.length-1;return e[n]}(c,i)),n&&n(),m()},{then:(e,t)=>a.then(e,t),get time(){return e5(p.currentTime||0)},set time(newTime){p.currentTime=e4(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return e5(d)},play:()=>{l||(p.play(),(0,eH.Pn)(g))},pause:()=>p.pause(),stop:()=>{if(l=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let r=t7({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}m()},complete:()=>p.finish(),cancel:m}}(t,e,f);if(r)return r}return t7(f)};function ry(e){return!!(B(e)&&e.add)}let rb=e=>/^\-?\d*\.?\d+$/.test(e);function rv(e,t){-1===e.indexOf(t)&&e.push(t)}function rw(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class rA{constructor(){this.subscriptions=[]}add(e){return rv(this.subscriptions,e),()=>rw(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let rx=e=>!isNaN(parseFloat(e));class rS{constructor(e,t={}){this.version="10.12.21",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=t5.frameData;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,eH.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>eH.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=rx(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new rA);let r=this.events[e].add(t);return"change"===e?()=>{r(),eH.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rk(e,t){return new rS(e,t)}let rM=e=>t=>t.test(e),rE=[P,G,q,Y,J,K,{test:e=>"auto"===e,parse:e=>e}],rI=e=>rE.find(rM(e)),r_=[...rE,tM,tU],rC=e=>r_.find(rM(e));function rB(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),l=e.getValue("willChange");n&&(o=n);let u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t),i=s[t];if(!n||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!n.hasAnimated){let r=e.getProps()[e1];r&&(a.elapsed=window.HandoffAppearAnimations(r,t,n,eH.Wi))}n.start(rm(t,n,i,e.shouldReduceMotion&&_.has(t)?{type:!1}:a));let d=n.animation;ry(l)&&(l.add(t),d.then(()=>l.remove(t))),u.push(d)}return a&&Promise.all(u).then(()=>{a&&function(e,t){let r=e0(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){let r=eM(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,rk(r))}}(e,a)}),u}function rT(e,t,r={}){let n=e0(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(rB(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>s-e*n;
314return Array.from(e.variantChildren).sort(rD).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(rT(e,t,{...o,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function rD(e,t){return e.sortNodePosition(t)}let rj=[...f].reverse(),rz=f.length;function rN(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let rO=0,rL=(e,t)=>Math.abs(e-t);class rP{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rU(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){let r=rL(e.x,t.x),n=rL(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=t5.frameData;this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rR(t,this.transformPagePoint),eH.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:r,onSessionEnd:n}=this.handlers,i=rU("pointercancel"===e.type?this.lastMoveEventInfo:rR(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!eT(e))return;this.handlers=t,this.transformPagePoint=r;let n=eD(e),i=rR(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=t5.frameData;this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,rU(i,this.history)),this.removeListeners=eO(ez(window,"pointermove",this.handlePointerMove),ez(window,"pointerup",this.handlePointerUp),ez(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eH.Pn)(this.updatePoint)}}function rR(e,t){return t?{point:t(e.point)}:e}function rF(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rU({point:e},t){return{point:e,delta:rF(e,rW(t)),offset:rF(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=rW(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>e4(.1)));)r--;if(!n)return{x:0,y:0};let o=e5(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let 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 rW(e){return e[e.length-1]}function rH(e){return e.max-e.min}function rV(e,t=0,r=.01){return Math.abs(e-t)<=r}function rQ(e,t,r,n=.5){e.origin=n,e.originPoint=tE(t.min,t.max,e.origin),e.scale=rH(r)/rH(t),(rV(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tE(r.min,r.max,e.origin)-e.originPoint,(rV(e.translate)||isNaN(e.translate))&&(e.translate=0)}function r$(e,t,r,n){rQ(e.x,t.x,r.x,n?n.originX:void 0),rQ(e.y,t.y,r.y,n?n.originY:void 0)}function rY(e,t,r){e.min=r.min+t.min,e.max=e.min+rH(t)}function rq(e,t,r){e.min=t.min-r.min,e.max=e.min+rH(t)}function rG(e,t,r){rq(e.x,t.x,r.x),rq(e.y,t.y,r.y)}function rK(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 rJ(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rZ(e,t,r){return{min:rX(e,t),max:rX(e,r)}}function rX(e,t){return"number"==typeof e?e:e[t]||0}let r0=()=>({translate:0,scale:1,origin:0,originPoint:0}),r1=()=>({x:r0(),y:r0()}),r2=()=>({min:0,max:0}),r4=()=>({x:r2(),y:r2()});function r5(e){return[e("x"),e("y")]}function r3({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function r6(e){return void 0===e||1===e}function r8({scale:e,scaleX:t,scaleY:r}){return!r6(e)||!r6(t)||!r6(r)}function r7(e){return r8(e)||r9(e)||e.z||e.rotate||e.rotateX||e.rotateY}function r9(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function ne(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nt(e,t=0,r=1,n,i){e.min=ne(e.min,t,r,n,i),e.max=ne(e.max,t,r,n,i)}function nr(e,{x:t,y:r}){nt(e.x,t.translate,t.scale,t.originPoint),nt(e.y,r.translate,r.scale,r.originPoint)}function nn(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function ni(e,t){e.min=e.min+t,e.max=e.max+t}function no(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=tE(e.min,e.max,o);nt(e,t[r],t[n],a,t.scale)}let na=["x","scaleX","originX"],ns=["y","scaleY","originY"];function nl(e,t){no(e.x,t,na),no(e.y,t,ns)}function nu(e,t){return r3(function(e,t){if(!t)return e;let 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))}let nc=new WeakMap;
314class nd{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=r4(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;r&&!1===r.isPresent||(this.panSession=new rP(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(eD(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eF(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r5(e=>{let t=this.getAxisMotionValue(e).get()||0;if(q.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=rH(n);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&eH.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&eH.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nh(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tE(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tE(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&c(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:rK(e.x,r,i),y:rK(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rZ(e,"left","right"),y:rZ(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&r5(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!c(t))return!1;let n=t.current;(0,e2.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=nu(e,r),{scroll:i}=t;return i&&(ni(n.x,i.offset.x),ni(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:rJ((e=i.layout.layoutBox).x,o.x),y:rJ(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=r3(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=r5(a=>
314{if(!nh(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(rm(e,r,0,t))}stopAnimation(){r5(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r5(t=>{let{drag:r}=this.getProps();if(!nh(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tE(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!c(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r5(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();n[e]=function(e,t){let r=.5,n=rH(e),i=rH(t);return i>n?r=tY(t.min,t.max-n,e.min):n>i&&(r=tY(e.min,e.max-i,t.min)),L(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r5(t=>{if(!nh(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tE(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nc.set(this.visualElement,this);let e=this.visualElement.current,t=ez(e,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();c(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let o=eB(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r5(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nh(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let nf=e=>(t,r)=>{e&&eH.Wi.update(()=>e(t,r))};var np=r(5947);let ng={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ny={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!G.test(e))return e;e=parseFloat(e)}let r=nm(e,t.target.x),n=nm(e,t.target.y);return`${r}% ${n}%`}};class nb extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(E,nw),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ng.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||eH.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nv(e){let[t,r]=(0,np.oO)(),n=(0,i.useContext)(A.p);return i.createElement(nb,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(x),isPresent:t,safeToRemove:r})}let nw={borderRadius:{...ny,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ny,borderTopRightRadius:ny,borderBottomLeftRadius:ny,borderBottomRightRadius:ny,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tU.parse(e);if(n.length>5)return e;let i=tU.createTransformer(e),o="number"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=tE(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nA=["TopLeft","TopRight","BottomLeft","BottomRight"],nx=nA.length,nS=e=>"string"==typeof e?parseFloat(e):e,nk=e=>"number"==typeof e||G.test(e);function nM(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nE=n_(0,.5,td),nI=n_(.5,.95,e$.Z);function n_(e,t,r){return n=>n<e?0:n>t?1:r(tY(e,t,n))}function nC(e,t){e.min=t.min,e.max=t.max}function nB(e,t){nC(e.x,t.x),nC(e.y,t.y)}function nT(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 nD(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(q.test(t)){t=parseFloat(t);let e=tE(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=tE(o.min,o.max,n);e===o&&(s-=t),e.min=nT(e.min,t,r,s,i),e.max=nT(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let nj=["x","scaleX","originX"],nz=["y","scaleY","originY"];function nN(e,t,r,n){nD(e.x,t,nj,r?r.x:void 0,n?n.x:void 0),nD(e.y,t,nz,r?r.y:void 0,n?n.y:void 0)}function nO(e){return 0===e.translate&&1===e.scale}function nL(e){return nO(e.x)&&nO(e.y)}function nP(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}function nR(e){return rH(e.x)/rH(e.y)}class nF{constructor(){this.members=[]}add(e){rv(this.members,e),e.scheduleRender()}remove(e){if(rw(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
314exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nU(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(n+=`scale(${a}, ${s})`),n||"none"}let nW=(e,t)=>e.depth-t.depth;class nH{constructor(){this.children=[],this.isDirty=!1}add(e){rv(this.children,e),this.isDirty=!0}remove(e){rw(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(nW),this.isDirty=!1,this.children.forEach(e)}}let nV=["","X","Y","Z"],nQ=0,n$={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nY({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{n$.totalNodes=n$.resolvedTargetDeltas=n$.recalculatedProjection=0,this.nodes.forEach(nK),this.nodes.forEach(n4),this.nodes.forEach(n5),this.nodes.forEach(nJ),window.MotionDebug&&window.MotionDebug.record(n$)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nH)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rA),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&((0,eH.Pn)(n),e(o-t))};return eH.Wi.read(n,!0),()=>(0,eH.Pn)(n)}(n,250),ng.hasAnimatedSinceResize&&(ng.hasAnimatedSinceResize=!1,this.nodes.forEach(n2))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||ie,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!nP(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...rg(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||n2(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eH.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
314h(n3),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(nX);return}this.isUpdating||this.nodes.forEach(n0),this.isUpdating=!1,this.nodes.forEach(n1),this.nodes.forEach(nq),this.nodes.forEach(nG),this.clearAllSnapshots();let t=performance.now();t5.frameData.delta=L(0,1e3/60,t-t5.frameData.timestamp),t5.frameData.timestamp=t,t5.frameData.isProcessing=!0,eH.S6.update.process(t5.frameData),eH.S6.preRender.process(t5.frameData),eH.S6.render.process(t5.frameData),t5.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(nZ),this.sharedNodes.forEach(n6)}scheduleUpdateProjection(){eH.Wi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){eH.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=r4(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!nL(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||r7(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),it((t=n).x),it(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return r4();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(ni(t.x,r.offset.x),ni(t.y,r.offset.y)),t}removeElementScroll(e){let t=r4();nB(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){nB(t,e);let{scroll:r}=this.root;r&&(ni(t.x,-r.offset.x),ni(t.y,-r.offset.y))}ni(t.x,i.offset.x),ni(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=r4();nB(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nl(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r7(n.latestValues)&&nl(r,n.latestValues)}return r7(this.latestValues)&&nl(r,this.latestValues),r}removeTransform(e){let t=r4();nB(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!r7(r.latestValues))continue;r8(r.latestValues)&&r.updateSnapshot();let n=r4(),i=r.measurePageBox();nB(n,i),nN(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return r7(this.latestValues)&&nN(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==t5.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o,s=!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(s)return;let{layout:l,layoutId:u}=this.options;if(this.layout&&(l||u)){if(this.resolvedRelativeTargetAt=t5.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r4(),this.relativeTargetOrigin=r4(),rG(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=r4(),this.targetWithTransforms=r4()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rY(r.x,n.x,i.x),rY(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nB(this.target,this.layout.layoutBox),nr(this.target,this.targetDelta)):nB(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r4(),this.relativeTargetOrigin=r4(),rG(this.relativeTargetOrigin,this.target,e.target),nB(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}n$.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||r8(this.parent.latestValues)||r9(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===t5.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nB(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nr(e,o)),n&&r7(i.latestValues)&&nl(e,i.latestValues))}t.x=nn(t.x),t.y=nn(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=r1(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=r1(),this.projectionDeltaWithTransform=r1());let u=this.projectionTransform;r$(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=nU(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),n$.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=r1();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=r4(),l=n?n.source:void 0,u=this.layout?this.layout.source:void 0,c=l!==u,d=this.getStack(),h=!d||d.members.length<=1,f=!!(c&&!h&&!0===this.options.crossfade&&!this.path.some(n9));this.animationProgress=0,this.mixTargetDelta=t=>{var n,l;let u=t/1e3;n8(a.x,e.x,u),n8(a.y,e.y,u),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rG(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,l=this.relativeTargetOrigin,n7(n.x,l.x,s.x,u),n7(n.y,l.y,s.y,u),r&&nP(this.relativeTarget,r)&&(this.isProjectionDirty=!1),r||(r=r4()),nB(r,this.relativeTarget)),c&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tE(0,void 0!==r.opacity?r.opacity:1,nE(n)),e.opacityExit=tE(void 0!==t.opacity?t.opacity:1,0,nI(n))):o&&(e.opacity=tE(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nx;i++){let o=`border${nA[i]}
314Radius`,a=nM(t,o),s=nM(r,o);if(void 0===a&&void 0===s)continue;a||(a=0),s||(s=0);let l=0===a||0===s||nk(a)===nk(s);l?(e[o]=Math.max(tE(nS(a),nS(s),n),0),(q.test(s)||q.test(a))&&(e[o]+="%")):e[o]=s}(t.rotate||r.rotate)&&(e.rotate=tE(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,u,f,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=u},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eH.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eH.Wi.update(()=>{ng.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=B(e)?e:rk(e);return n.start(rm("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ir(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||r4();let t=rH(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rH(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nB(t,r),nl(t,i),r$(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nF);let r=this.sharedNodes.get(e);r.add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;let n={};for(let t=0;t<nV.length;t++){let i="rotate"+nV[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}for(let t in e.render(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,r;let n={};if(!this.instance||this.isSVG)return n;if(!this.isVisible)return{visibility:"hidden"};n.visibility="";let i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eE(e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eE(e.pointerEvents)||""),this.hasProjected&&!r7(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=nU(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,E){if
314(void 0===a[e])continue;let{correct:t,applyTo:r}=E[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eE(e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(nX),this.root.sharedNodes.clear()}}}function nq(e){e.updateLayout()}function nG(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?r5(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rH(n);n.min=t[e].min,n.max=n.min+i}):ir(i,r.layoutBox,t)&&r5(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=rH(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=r1();r$(a,t,r.layoutBox);let s=r1();o?r$(s,e.applyTransform(n,!0),r.measuredBox):r$(s,t,r.layoutBox);let l=!nL(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=r4();rG(a,r.layoutBox,i.layoutBox);let s=r4();rG(s,t,o.layoutBox),nP(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nK(e){n$.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nJ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nZ(e){e.clearSnapshot()}function nX(e){e.clearMeasurements()}function n0(e){e.isLayoutDirty=!1}function n1(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n2(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n4(e){e.resolveTargetDelta()}function n5(e){e.calcProjection()}function n3(e){e.resetRotation()}function n6(e){e.removeLeadSnapshot()}function n8(e,t,r){e.translate=tE(t.translate,0,r),e.scale=tE(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n7(e,t,r,n){e.min=tE(t.min,r.min,n),e.max=tE(t.max,r.max,n)}function n9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ie={duration:.45,ease:[.4,0,.1,1]};function it(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ir(e,t,r){return"position"===e||"preserve-aspect"===e&&!rV(nR(t),nR(r),.2)}let ii=nY({attachResizeListener:(e,t)=>eB(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),io={current:void 0},ia=nY({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!io.current){let e=new ii({});e.mount(window),e.setOptions({layoutScroll:!0}),io.current=e}return io.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),is=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function il(e,t,r=1){(0,e2.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=is.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():N(i)?il(i,t,r+1):i}let iu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ic=e=>iu.has(e),id=e=>Object.keys(e).some(ic),ih=e=>e===P||e===G,ip=(e,t)=>parseFloat(e.split(", ")[t]),ig=(e,t)=>
314(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return ip(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?ip(t[1],e):0}},im=new Set(["x","y","z"]),iy=I.filter(e=>!im.has(e)),ib={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ig(4,13),y:ig(5,14)};ib.translateX=ib.x,ib.translateY=ib.y;let iv=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=ib[e](n,o)}),t.render();let l=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);n&&n.jump(s[r]),e[r]=ib[r](l,o)}),e},iw=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(ic),o=[],a=!1,s=[];if(i.forEach(i=>{let l;let u=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=rI(c),h=t[i];if(eS(h)){let e=h.length,t=null===h[0]?1:0;d=rI(c=h[t]);for(let r=t;r<e&&null!==h[r];r++)l?(0,e2.k)(rI(h[r])===l,"All keyframes must be of the same type"):(l=rI(h[r]),(0,e2.k)(l===d||ih(d)&&ih(l),"Keyframes must be of the same dimension as the current value"))}else l=rI(h);if(d!==l){if(ih(d)&&ih(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof h?t[i]=parseFloat(h):Array.isArray(h)&&l===G&&(t[i]=h.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===h)?0===c?u.set(l.transform(c)):t[i]=d.transform(h):(a||(o=function(e){let t=[];return iy.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],u.jump(h))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=iv(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),w.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},iA=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!N(t))return;let r=il(t,n);r&&e.set(r)}),t){let e=t[i];if(!N(e))continue;let o=il(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,id(i)?iw(e,i,r,o):{target:i,transitionEnd:o}},ix={current:null},iS={current:!1},ik=new WeakMap,iM=Object.keys(v),iE=iM.length,iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i_=p.length;class iC{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eH.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=g(t),this.isVariantNode=m(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(t,{});for(let e in u){let t=u[e];void 0!==a[e]&&B(t)&&(t.set(a[e],!1),ry(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,ik.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
314h((e,t)=>this.bindToMotionValue(t,e)),iS.current||function(){if(iS.current=!0,w.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ix.current=e.matches;e.addListener(t),t()}else ix.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ix.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in ik.delete(this.current),this.projection&&this.projection.unmount(),(0,eH.Pn)(this.notifyUpdate),(0,eH.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=_.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eH.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<iE;e++){let r=iM[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:l}=v[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),l&&(a=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&c(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):r4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iI.length;t++){let r=iI[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(B(o))e.addValue(i,o),ry(n)&&n.add(i);else if(B(a))e.addValue(i,rk(o,{owner:e})),ry(n)&&n.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,rk(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<i_;e++){let r=p[e],n=this.props[r];(d(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);
314return void 0===r&&void 0!==t&&(r=rk(t,{owner:this}),this.addValue(e,r)),r}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=eA(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||B(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rA),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iB extends iC{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){let n={};for(let i in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(i,t);if(void 0!==e)n[i]=e;else{let e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){let e=function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(!a)return!1;for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(n=r[a])&&void 0!==n?n:e.readValue(a))&&void 0!==i?i:t[a]),null!=u&&("string"==typeof u&&(rb(u)||rp(u))?u=parseFloat(u):!rC(u)&&tU.test(l)&&(u=rf(a,l)),e.addValue(a,rk(u,{owner:e})),void 0===r[a]&&(r[a]=u),null!==u&&e.setBaseTarget(a,u))}return!0}(this,r,o);n&&e&&(o=n(o));let i=iA(this,r,o,t);t=i.transitionEnd,r=i.target}return{transition:e,transitionEnd:t,...r}}}class iT extends iB{readValueFromInstance(e,t){if(_.has(t)){let e=rh(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(z(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nu(e,t)}build(e,t,r,n){et(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ev(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){em(e,t,r,n)}}class iD extends iB{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(_.has(t)){let e=rh(t);return e&&e.default||0}return t=ey.has(t)?t:eg(t),e.getAttribute(t)}measureInstanceViewportBox(){return r4()}scrapeMotionValuesFromProps(e,t){return ew(e,t)}
314build(e,t,r,n){ed(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){eb(e,t,r,n)}mount(e){this.isSVGTag=ef(e.tagName),super.mount(e)}}let ij=(e,t)=>M(e)?new iD(t,{enableHardwareAcceleration:!1}):new iT(t,{enableHardwareAcceleration:!0}),iz={animation:{Feature:class extends eW{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>rT(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=rT(e,t,r);else{let i="function"==typeof t?e0(e,t,r.custom):t;n=Promise.all(rB(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={animate:rN(!0),whileInView:rN(),whileHover:rN(),whileTap:rN(),whileDrag:rN(),whileFocus:rN(),exit:rN()},n=!0,i=(t,r)=>{let n=e0(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,f={},p=1/0;for(let t=0;t<rz;t++){var g;let m=rj[t],y=r[m],b=void 0!==s[m]?s[m]:l[m],v=d(b),w=m===a?y.isActive:null;!1===w&&(p=t);let A=b===l[m]&&b!==s[m]&&v;if(A&&n&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...f},!y.isActive&&null===w||!b&&!y.prevProp||h(b)||"boolean"==typeof b)continue;let x=(g=y.prevProp,"string"==typeof b?b!==g:!!Array.isArray(b)&&!eX(b,g)),S=x||m===a&&y.isActive&&!A&&v||t>p&&v,k=Array.isArray(b)?b:[b],M=k.reduce(i,{});!1===w&&(M={});let{prevResolvedValues:E={}}=y,I={...E,...M},_=e=>{S=!0,c.delete(e),y.needsAnimating[e]=!0};for(let e in I){let t=M[e],r=E[e];f.hasOwnProperty(e)||(t!==r?eS(t)&&eS(r)?!eX(t,r)||x?_(e):y.protectedKeys[e]=!0:void 0!==t?_(e):c.add(e):void 0!==t&&c.has(e)?_(e):y.protectedKeys[e]=!0)}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(f={...f,...M}),n&&e.blockInitialAnimation&&(S=!1),S&&!A&&u.push(...k.map(e=>({animation:e,options:{type:m,...o}})))}if(c.size){let t={};
314c.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),u.push({animation:t})}let m=!!u.length;return n&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),h(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends eW{constructor(){super(...arguments),this.id=rO++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends eW{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:eZ[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;eG.has(r)||eG.set(r,{});let n=eG.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(eJ,{root:e,...t})),n[i]}(t);return eq.set(e,r),n.observe(e),()=>{eq.delete(e),n.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends eW{constructor(){super(...arguments),this.removeStartListeners=e$.Z,this.removeEndListeners=e$.Z,this.removeAccessibleListeners=e$.Z,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;let r=this.node.getProps(),n=ez(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n}=this.node.getProps();eH.Wi.update(()=>{eQ(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},{passive:!(r.onTap||r.onPointerUp)}),i=ez(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=eO(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eB(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eB(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eY("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&eH.Wi.update(()=>r(e,t))})}),eY("down",(e,t)=>{this.startPress(e,t)}))}),t=eB(this.node.current,"blur",()=>{this.isPressing&&eY("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eO(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&eH.Wi.update(()=>r(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eU()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&eH.Wi.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=ez(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eB(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eO(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends eW{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eO(eB(this.node.current,"focus",()=>this.onFocus()),eB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}}
314,hover:{Feature:class extends eW{mount(){this.unmount=eO(eV(this.node,!0),eV(this.node,!1))}unmount(){}}},pan:{Feature:class extends eW{constructor(){super(...arguments),this.removePointerDownListener=e$.Z}onPointerDown(e){this.session=new rP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nf(e),onStart:nf(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&eH.Wi.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=ez(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends eW{constructor(e){super(e),this.removeGroupControls=e$.Z,this.removeListeners=e$.Z,this.controls=new nd(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e$.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:ia,MeasureLayout:nv},layout:{ProjectionNode:ia,MeasureLayout:nv}},iN=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:h}){e&&function(e){for(let t in e)v[t]={...v[t],...e[t]}}(e);let f=(0,i.forwardRef)(function(f,p){var m;let b;let v={...(0,i.useContext)(o),...f,layoutId:function({layoutId:e}){let t=(0,i.useContext)(A.p).id;return t&&void 0!==e?t+"-"+e:e}(f)},{isStatic:S}=v,k=function(e){let{initial:t,animate:r}=function(e,t){if(g(e)){let{initial:t,animate:r}=e;return{initial:!1===t||d(t)?t:void 0,animate:d(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(a));return(0,i.useMemo)(()=>({initial:t,animate:r}),[y(t),y(r)])}(f),M=n(f,S);if(!S&&w.j){k.visualElement=function(e,t,r,n){let{visualElement:c}=(0,i.useContext)(a),d=(0,i.useContext)(u),h=(0,i.useContext)(s.O),f=(0,i.useContext)(o).reducedMotion,p=(0,i.useRef)();n=n||d.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:c,props:r,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:f}));let g=p.current;(0,i.useInsertionEffect)(()=>{g&&g.update(r,h)}),(0,l.L)(()=>{g&&g.render()}),(0,i.useEffect)(()=>{g&&g.updateFeatures()});let m=window.HandoffAppearAnimations?l.L:i.useEffect;return m(()=>{g&&g.animationState&&g.animationState.animateChanges()}),g}(h,M,v,t);let r=(0,i.useContext)(x),n=(0,i.useContext)(u).strict;k.visualElement&&(b=k.visualElement.loadFeatures(v,n,e,r))}return i.createElement(a.Provider,{value:k},b&&k.visualElement?i.createElement(b,{visualElement:k.visualElement,...v}):null,r(h,f,(m=k.visualElement,(0,i.useCallback)(e=>{e&&M.mount&&M.mount(e),m&&(e?m.mount(e):m.unmount()),p&&("function"==typeof p?p(e):c(p)&&(p.current=e))},[m])),M,S,k.visualElement))});return f[S]=h,f}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){let o=M(e)?e_:eC;return{...o,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:o},a)=>{let s=M(t)?ep:ei,l=s(r,o,a,t),u=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(es(i)||!0===r&&ea(i)||!t&&!ea(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...u,...l,ref:n},{children:d}=r,h=(0,i.useMemo)(()=>B(d)?d.get():d,[d]);return(0,i.createElement)(t,{...c,children:h})}}(t),createVisualElement:n,Component:e}})(e,t,iz,ij))},5487:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(1662);let i=n.Z,o=n.Z},1741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},1662:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},6681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(7294);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8868:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(7294),i=r(1741);let o=i.j?n.useLayoutEffect:n.useEffect},1127:function(e,t,r){"use strict";function n(e,t,r){return t<=e&&e<=r}function i(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function o(e){this.tokens=[].slice.call(e)}function a(e,t){if(e)throw TypeError("Decoder error");return t||65533}r.r(t),r.d(t,{TextDecoder:function(){return l},TextEncoder:function(){return u}}
vendor: 3,771 bytes, line 314
314),o.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(;e.length;)this.tokens.push(e.shift());else this.tokens.push(e)}};var s="utf-8";function l(e,t){if(!(this instanceof l))return new l(e,t);if((e=void 0!==e?String(e).toLowerCase():s)!==s)throw Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function u(e,t){if(!(this instanceof u))return new u(e,t);if((e=void 0!==e?String(e).toLowerCase():s)!==s)throw Error("Encoding not supported. Only utf-8 is supported");t=i(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}function c(e){var t=e.fatal,r=0,i=0,o=0,s=128,l=191;this.handler=function(e,u){if(-1===u&&0!==o)return o=0,a(t);if(-1===u)return -1;if(0===o){if(n(u,0,127))return u;if(n(u,194,223))o=1,r=u-192;else if(n(u,224,239))224===u&&(s=160),237===u&&(l=159),o=2,r=u-224;else{if(!n(u,240,244))return a(t);240===u&&(s=144),244===u&&(l=143),o=3,r=u-240}return r<<=6*o,null}if(!n(u,s,l))return r=o=i=0,s=128,l=191,e.prepend(u),a(t);if(s=128,l=191,i+=1,r+=u-128<<6*(o-i),i!==o)return null;var c=r;return r=o=i=0,c}}function d(e){e.fatal,this.handler=function(e,t){if(-1===t)return -1;if(n(t,0,127))return t;n(t,128,2047)?(r=1,i=192):n(t,2048,65535)?(r=2,i=224):n(t,65536,1114111)&&(r=3,i=240);for(var r,i,o=[(t>>6*r)+i];r>0;){var a=t>>6*(r-1);o.push(128|63&a),r-=1}return o}}l.prototype={decode:function(e,t){r="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=i(t),this._streaming||(this._decoder=new c({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!t.stream;for(var r,n,a=new o(r),s=[];!a.endOfStream()&&-1!==(n=this._decoder.handler(a,a.read()));)null!==n&&(Array.isArray(n)?s.push.apply(s,n):s.push(n));if(!this._streaming){do{if(-1===(n=this._decoder.handler(a,a.read())))break;if(null===n)continue;Array.isArray(n)?s.push.apply(s,n):s.push(n)}while(!a.endOfStream());this._decoder=null}return!s.length||-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===s[0]?(this._BOMseen=!0,s.shift()):this._BOMseen=!0),function(e){for(var t="",r=0;r<e.length;++r){var n=e[r];n<=65535?t+=String.fromCharCode(n):(n-=65536,t+=String.fromCharCode((n>>10)+55296,(1023&n)+56320))}return t}(s)}},u.prototype={encode:function(e,t){e=e?String(e):"",t=i(t),this._streaming||(this._encoder=new d(this._options)),this._streaming=!!t.stream;for(var r,n=[],a=new o(function(e){for(var t=String(e),r=t.length,n=0,i=[];n<r;){var o=t.charCodeAt(n);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319){if(n===r-1)i.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=1023&o,l=1023&a;i.push(65536+(s<<10)+l),n+=1}else i.push(65533)}}n+=1}return i}(e));!a.endOfStream()&&-1!==(r=this._encoder.handler(a,a.read()));)Array.isArray(r)?n.push.apply(n,r):n.push(r);if(!this._streaming){for(;-1!==(r=this._encoder.handler(a,a.read()));)Array.isArray(r)?n.push.apply(n,r):n.push(r);this._encoder=null}return new Uint8Array(n)}}}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return t(1118),t(8645)}),_N_E=e.O()}]);

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