plutosdk 1.0.2 → 1.0.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pluto-sdk.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*! For license information please see pluto-sdk.js.LICENSE.txt */
2
- var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function p(e,t){return t.push(e),e}var g=1,m=1,v=0,y=0,b=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:m,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(w,--y):0,m--,10===b&&(m=1,g--),b}function S(){return b=y<v?u(w,y++):0,m++,10===b&&(m=1,g++),b}function E(){return u(w,y)}function A(){return y}function _(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return g=m=1,v=f(w=e),y=0,[]}function O(e){return w="",e}function P(e){return s(_(y-1,N(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=E())&&b<33;)S();return T(e)>2||T(b)>3?"":" "}function M(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return _(e,A()+(t<6&&32==E()&&32==S()))}function N(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+_(t,y-1)+"*"+i(47===e?e:S())}function j(e){for(;!T(E());)S();return _(e,y)}var $="-ms-",D="-moz-",U="-webkit-",W="comm",z="rule",B="decl",F="@keyframes";function H(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case W:return"";case F:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return f(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return O(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,o,a,s,d,h){for(var g=0,m=0,v=s,y=0,b=0,w=0,x=1,C=1,_=1,T=0,R="",O=o,N=a,$=r,D=R;C;)switch(w=T,T=S()){case 40:if(108!=w&&58==u(D,v-1)){-1!=c(D+=l(P(T),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:D+=P(T);break;case 9:case 10:case 13:case 32:D+=L(w);break;case 92:D+=M(A()-1,7);continue;case 47:switch(E()){case 42:case 47:p(Z(I(S(),A()),t,n),h);break;default:D+="/"}break;case 123*x:d[g++]=f(D)*_;case 125*x:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+m:-1==_&&(D=l(D,/\f/g,"")),b>0&&f(D)-v&&p(b>32?Q(D+";",r,n,v-1):Q(l(D," ","")+";",r,n,v-2),h);break;case 59:D+=";";default:if(p($=G(D,t,n,g,m,o,d,R,O=[],N=[],v),a),123===T)if(0===m)q(D,t,$,$,O,a,v,d,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:q(e,$,$,r&&p(G(e,$,$,0,0,o,d,R,o,O=[],v),N),o,N,v,d,r?O:N);break;default:q(D,$,$,$,[""],N,0,d,N)}}g=m=b=0,x=_=1,R=D="",v=s;break;case 58:v=1+f(D),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==k())continue;switch(D+=i(T),T*x){case 38:_=m>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*_,_=1;break;case 64:45===E()&&(D+=P(S())),y=E(),m=v=f(R=D+=j(A())),T++;break;case 45:45===w&&2==f(D)&&(x=0)}}return a}function G(e,t,n,r,i,a,c,u,f,p,g){for(var m=i-1,v=0===i?a:[""],y=h(v),b=0,w=0,C=0;b<r;++b)for(var k=0,S=d(e,m+1,m=o(w=c[b])),E=e;k<y;++k)(E=s(w>0?v[k]+" "+S:l(S,/&\f/g,v[k])))&&(f[C++]=E);return x(e,t,n,0===i?z:u,f,p,g)}function Z(e,t,n){return x(e,t,n,W,i(b),d(e,2,-2),0)}function Q(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)S();return _(e,y)},X=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(R(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=X(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+D+e+$+e+e;case 6828:case 4268:return U+e+$+e+e;case 6165:return U+e+$+"flex-"+e+e;case 5187:return U+e+l(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return U+e+$+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return U+e+$+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+$+l(e,"shrink","negative")+e;case 5292:return U+e+$+l(e,"basis","preferred-size")+e;case 6060:return U+"box-"+l(e,"-grow","")+U+e+$+l(e,"grow","positive")+e;case 4554:return U+l(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===u(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+$+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case F:return H([C(e,{value:l(e.value,"@","@"+U)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([C(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[V,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=h(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(a,d));i=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(l),p}},7923:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},7576:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9950),o=n(8603),i=(n(9015),n(6477),r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null)),a=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))},l=r.createContext({})},8283:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(7576),o=n(9950),i=n(1783),a=n(6477),s=n(9015),l=(n(8603),n(3876),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},9015:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(7923),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return p={name:o.name,styles:o.styles,next:p},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)p={name:s.name,styles:s.styles,next:p},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(f);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var p=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+p+";";break;default:r+=a+"{"+p+"}"}}else for(var g=0;g<s.length;g++)c(s[g])&&(r+=u(a)+":"+d(a,s[g])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=p,g=n(e);return p=l,h(e,t,g)}}var m=n;if(null==t)return m;var v=t[m];return void 0!==v?v:m}var p,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=h(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=h(n,t,e[a]),r)o+=i[a]}g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},6477:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var o=n(9950),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},1783:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},4300:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(9950));var o=r(n(9526)),i=n(4414);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=(0,o.default)((0,i.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram")},9526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6987)},7353:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(9950),o=n(5537);n(4414);const i=r.createContext(void 0);function a(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?(0,o.A)(i.defaultProps,r):i.styleOverrides||i.variants?r:(0,o.A)(i,r)}({props:t,name:n,theme:{components:r.useContext(i)}})}function s(e){return a(e)}},7775:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(8168),o=n(8587),i=n(8099),a=n(7483),s=n(8076),l=n(505),c=n(2860);var u=n(9269);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),A=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),_=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const R=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=T(t.main)),t},O={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:S,name:"error"}),warning:R({color:_,name:"warning"}),info:R({color:E,name:"info"}),success:R({color:A,name:"success"}),grey:f,contrastThreshold:n,getContrastText:T,augmentColor:R,tonalOffset:s},O[t]),l)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=A,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,g=(0,o.A)(n,S);const m=s/14,v=p||(e=>e/f*m+"rem"),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===A?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,E),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const R=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],O=["duration","easing","delay"],P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function I(e){const t=(0,r.A)({},P,e.easing),n=(0,r.A)({},L,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.A)(r,O);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:M(i)} ${a} ${"string"===typeof s?s:M(s)}`)).join(",")}},e,{easing:t,duration:n})}const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,$);if(e.vars)throw new Error((0,i.A)(18));const h=k(n),p=(0,c.A)(e);let g=(0,a.A)(p,{mixins:(m=p.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:R.slice(),typography:_(h,d),transitions:I(u),zIndex:(0,r.A)({},j)});var m,v;g=(0,a.A)(g,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];return g=b.reduce(((e,t)=>(0,a.A)(e,t)),g),g.unstable_sxConfig=(0,r.A)({},s.A,null==f?void 0:f.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},g}const U=D},195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(7775).A)()},7550:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},o=e=>r(e)&&"classes"!==e},9254:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7295),o=n(195),i=n(7550),a=n(741);const s=(0,r.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a.A})},1676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5501).A},1380:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}},6987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>C,debounce:()=>k.A,deprecatedPropType:()=>S,isMuiElement:()=>E,ownerDocument:()=>A,ownerWindow:()=>_.A,requirePropFactory:()=>T,setRef:()=>R,unstable_ClassNameGenerator:()=>U,unstable_useEnhancedEffect:()=>O,unstable_useId:()=>M,unsupportedProp:()=>N,useControlled:()=>I,useEventCallback:()=>j.A,useForkRef:()=>$.A,useIsFocusVisible:()=>D.A});var r=n(4501),o=n(1676);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))};var a=n(8168),s=n(9950),l=n.t(s,2),c=n(8587),u=n(2004),d=n(8465),f=n(7353),h=n(9254),p=n(1763),g=n(423);function m(e){return(0,g.Ay)("MuiSvgIcon",e)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var v=n(4414);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,h.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,o.A)(n.color)}`],t[`fontSize${(0,o.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,f,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?f:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(t.vars||t).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[n.color]}})),w=s.forwardRef((function(e,t){const n=(0,f.b)({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:l="inherit",component:h="svg",fontSize:p="medium",htmlColor:g,inheritViewBox:w=!1,titleAccess:x,viewBox:C="0 0 24 24"}=n,k=(0,c.A)(n,y),S=s.isValidElement(r)&&"svg"===r.type,E=(0,a.A)({},n,{color:l,component:h,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:C,hasSvgAsChild:S}),A={};w||(A.viewBox=C);const _=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,o.A)(t)}`,`fontSize${(0,o.A)(n)}`]};return(0,d.A)(i,m,r)})(E);return(0,v.jsxs)(b,(0,a.A)({as:h,className:(0,u.A)(_.root,i),focusable:"false",color:g,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},A,k,S&&r.props,{ownerState:E,children:[S?r.props.children:r,x?(0,v.jsx)("title",{children:x}):null]}))}));w.muiName="SvgIcon";const x=w;function C(e,t){function n(n,r){return(0,v.jsx)(x,(0,a.A)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=x.muiName,s.memo(s.forwardRef(n))}var k=n(1380);const S=function(e,t){return()=>null};const E=n(5447).A;const A=n(6907).A;var _=n(1733);const T=function(e,t){return()=>null};const R=n(5587).A;const O=n(1399).A;let P=0;const L=l["useId".toString()];const M=function(e){if(void 0!==L){const t=L();return null!=e?e:t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect((()=>{null==t&&(P+=1,n(`mui-${P}`))}),[t]),r}(e)};const N=function(e,t,n,r,o){return null};const I=function(e){let{controlled:t,default:n,name:r,state:o="value"}=e;const{current:i}=s.useRef(void 0!==t),[a,l]=s.useState(n);return[i?t:a,s.useCallback((e=>{i||l(e)}),[])]};var j=n(5018),$=n(4326),D=n(2937);const U={configure:e=>{r.A.configure(e)}}},1733:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6907);const o=function(e){return(0,r.A)(e).defaultView||window}},5018:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(1399);const i=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},4326:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(5587);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1824);let i=!0,a=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},3158:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(9950);var r=n(8283),o=n(4414);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>k.A,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>S,internal_processStyles:()=>E,keyframes:()=>y.i7});var r=n(8168),o=n(9950),i=n(7923),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(7576),c=n(1783),u=n(9015),d=n(6477),f=s,h=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:h},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=g(t,n,s),h=f||p(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,x=1;x<w;x++)b.push(y[x],y[0][x])}var C=(0,l.w)((function(e,t,n){var r=v&&e.as||d,i="",s=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=o.useContext(l.T)}"string"===typeof e.className?i=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,u.J)(b.concat(s),t.registered,g);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var x=v&&void 0===f?p(r):h,C={};for(var k in e)v&&"as"===k||x(k)&&(C[k]=e[k]);return C.className=i,n&&(C.ref=n),o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:w,isStringTag:"string"===typeof r}),o.createElement(r,C))}));return C.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:g(C,o,!0)})).apply(void 0,b)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));var y=n(8283),b=n(8603),w=n(4414);let x;function C(e){const{injectFirst:t,children:n}=e;return t&&x?(0,w.jsx)(l.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,b.A)({key:"css",prepend:!0}));var k=n(3158);function S(e,t){return v(e,t)}const E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},9269:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=p,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var o=r(n(9234)),i=r(n(3383));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):g(e,t)}},7295:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:g,skipSx:w,overridesResolver:x=y(m(h))}=c,C=(0,i.default)(c,f),k=void 0!==g?g:h&&"Root"!==h&&"root"!==h||!1,S=w||!1;let E=p;"Root"===h||"root"===h?E=r:h?E=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const A=(0,a.default)(e,(0,o.default)({shouldForwardProp:E,label:undefined},C)),_=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let i=_(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(_):[];d&&x&&c.push((e=>{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=b(i,(0,o.default)({},e,{theme:r}))})),x(e,a)})),d&&!k&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),S||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=A(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return A.withConfig&&(T.withConfig=A.withConfig),T}};var o=r(n(4634)),i=r(n(4893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(116)),s=n(7785),l=(r(n(304)),r(n(8399)),r(n(9904))),c=r(n(8807));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},8286:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(7483);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(o);if(0===i.length)return t;let a;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},86:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},3628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function f(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:d,down:f,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},2860:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),o=n(8587),i=n(7483),a=n(3628);const s={borderRadius:4};var l=n(7937);var c=n(505),u=n(8076),d=n(86);const f=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:p={}}=e,g=(0,o.A)(e,f),m=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let y=(0,i.A)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,p)},g);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},9904:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(2860),o=n(3628),i=n(86)},6206:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7483);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},7937:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>h,_W:()=>g,Lc:()=>y,Ms:()=>b});var r=n(8286),o=n(2703),i=n(6206);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function h(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function p(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}function v(e,t){const n=p(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},2703:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(5501),o=n(8286);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},8076:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(7937),o=n(2703),i=n(6206);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(8286);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),h=c("borderBottom",l),p=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,f,h,p,g,m,v,y,b,C,w,x);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(k,S,E,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function A(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:A}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:A}));function _(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,o.Ay)({prop:"width",transform:_}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:_(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const O=(0,o.Ay)({prop:"minWidth",transform:_}),P=(0,o.Ay)({prop:"height",transform:_}),L=(0,o.Ay)({prop:"maxHeight",transform:_}),M=(0,o.Ay)({prop:"minHeight",transform:_}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:_}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:_}),a(T,R,O,P,L,M,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:R},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},237:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),i=n(7483),a=n(8076);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},8807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(505),o=n(237),i=n(8076)},505:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(5501),o=n(6206),i=n(2703),a=n(8286),s=n(8076);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(n,u)||{};if(f)return f(s);return(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},4501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8099);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(5501)},3383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8465:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},7483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(8168);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},7785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(7483)},8099:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},9234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8099)},423:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(4501);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?`${n}-${i}`:`${r.A.generate(e)}-${t}`}},1763:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(423);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},8399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(6429);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},5447:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);function o(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},6907:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},5537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},5587:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},1399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1824:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(9950);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},3422:(e,t)=>{"use strict";t.o=void 0;var n=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3===2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3===1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();t.o=n},2414:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},3876:(e,t,n)=>{"use strict";var r=n(630),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!i[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},2138:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},630:(e,t,n)=>{"use strict";e.exports=n(2138)},3450:function(e,t,n){e=n.nmd(e),function(n){"use strict";var r={};n.PubSub?(r=n.PubSub,console.warn("PubSub already loaded, using existing version")):(n.PubSub=r,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"===typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!==typeof r)return!1;e="symbol"===typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"===typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"===typeof n,c="function"===typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(r)),void 0!==e&&e.exports&&(t=e.exports=r),t.PubSub=r,e.exports=t=r}("object"===typeof window&&window||this)},8345:(e,t,n)=>{"use strict";var r=n(9950),o=n(5340);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var j,$=Object.assign;function D(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var U=!1;function W(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ae(e){ke?Se?Se.push(e):Se=[e]:ke=e}function _e(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Re(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==ke||null!==Se)&&(Re(),_e())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Me=!1}function Ie(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,$e=null,De=!1,Ue=null,We={onError:function(e){je=!0,$e=e}};function ze(e,t,n,r,o,i,a,s,l){je=!1,$e=null,Ie.apply(We,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ze=o.unstable_shouldYield,Qe=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,kt,St,Et,At=!1,_t=[],Tt=null,Rt=null,Ot=null,Pt=new Map,Lt=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function jt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $t(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Dt(e)&&n.delete(t)}function Wt(){At=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Ot&&Dt(Ot)&&(Ot=null),Pt.forEach(Ut),Lt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wt)))}function Bt(e){function t(t){return zt(t,e)}if(0<_t.length){zt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&zt(Tt,e),null!==Rt&&zt(Rt,e),null!==Ot&&zt(Ot,e),Pt.forEach(t),Lt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)$t(n),null===n.blockedOn&&Mt.shift()}var Ft=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function Kt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function qt(e,t,n,r){if(Ht){var o=Zt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=jt(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=jt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=jt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,jt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,jt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Zt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Zt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=$({},cn,{view:0,detail:0}),fn=on(dn),hn=$({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on($({},hn,{dataTransfer:0})),mn=on($({},dn,{relatedTarget:0})),vn=on($({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=$({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on($({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Sn}var An=$({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(An),Tn=on($({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on($({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on($({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=$({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(Pn),Mn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var jn=u&&"TextEvent"in window&&!In,$n=u&&(!Nn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Gn(e){Dr(e,0)}function Zn(e){if(q(xo(e)))return e}function Qn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Zn(qn)){var t=[];Vn(t,qn,e,xe(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(qn)}function ir(e,t){if("click"===e)return Zn(t)}function ar(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==G(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Sr={};function Er(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Ar=Er("animationend"),_r=Er("animationiteration"),Tr=Er("animationstart"),Rr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Or.set(e,t),l(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Lr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Lr(Ar,"onAnimationEnd"),Lr(_r,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function $r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(ze.apply(this,arguments),je){if(!je)throw Error(i(198));var u=$e;je=!1,$e=null,De||(De=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Ur(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Qt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=_n;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Ar:case _r:case Tr:l=vn;break;case Rr:l=On;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Le(p,f))&&u.push(Vr(p,g,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,p=0,h=u=l;h;h=qr(h))p++;for(h=0,g=f;g;g=qr(g))h++;for(;0<p-h;)u=qr(u),p--;for(;0<h-p;)f=qr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Qn;else if(Hn(s))if(Yn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&($n&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Wn(e,t)?(e=en(),Jt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Zr=/\r\n?/g,Qr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Qr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[po]||null}var ko=[],So=-1;function Eo(e){return{current:e}}function Ao(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function _o(e,t){So++,ko[So]=e.current,e.current=t}var To={},Ro=Eo(To),Oo=Eo(!1),Po=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function No(){Ao(Oo),Ao(Ro)}function Io(e,t,n){if(Ro.current!==To)throw Error(i(168));_o(Ro,t),_o(Oo,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,F(e)||"Unknown",o));return $({},n,r)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=Ro.current,_o(Ro,e),_o(Oo,Oo.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=jo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ao(Oo),Ao(Ro),_o(Ro,e)):Ao(Oo),_o(Oo,n)}var Uo=null,Wo=!1,zo=!1;function Bo(e){null===Uo?Uo=[e]:Uo.push(e)}function Fo(){if(!zo&&null!==Uo){zo=!0;var e=0,t=bt;try{var n=Uo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Wo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),qe(Je,Fo),o}finally{bt=t,zo=!1}}return null}var Ho=[],Vo=0,Ko=null,qo=0,Go=[],Zo=0,Qo=null,Yo=1,Xo="";function Jo(e,t){Ho[Vo++]=qo,Ho[Vo++]=Ko,Ko=e,qo=t}function ei(e,t,n){Go[Zo++]=Yo,Go[Zo++]=Xo,Go[Zo++]=Qo,Qo=e;var r=Yo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Qo;)Qo=Go[--Zo],Go[Zo]=null,Xo=Go[--Zo],Go[Zo]=null,Yo=Go[--Zo],Go[Zo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qo?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===L&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=$c(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case C:return(t=Dc(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ic(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case C:return n.key===o?u(e,t,n,r):null;case L:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(m=p(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}function m(o,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===k){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===k?((i=Ic(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Nc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(a,r.mode,l)).return=r,r=i}return s(r);case L:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return g(r,i,a,l);if(I(a))return m(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=$c(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),ki=Eo(null),Si=null,Ei=null,Ai=null;function _i(){Ai=Ei=Si=null}function Ti(e){var t=ki.current;Ao(ki),e._currentValue=t}function Ri(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Si=e,Ai=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Si)throw Error(i(308));Ei=e,Si.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Li=null;function Mi(e){null===Li?Li=[e]:Li.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ji=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=$({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ki=Eo(Vi),qi=Eo(Vi),Gi=Eo(Vi);function Zi(e){if(e===Vi)throw Error(i(174));return e}function Qi(e,t){switch(_o(Gi,t),_o(qi,e),_o(Ki,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(Ki),_o(Ki,t)}function Yi(){Ao(Ki),Ao(qi),Ao(Gi)}function Xi(e){Zi(Gi.current);var t=Zi(Ki.current),n=le(t,e.type);t!==n&&(_o(qi,e),_o(Ki,n))}function Ji(e){qi.current===e&&(Ao(Ki),Ao(qi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,jl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,ja(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,Aa.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ra(e)}function _a(e,t,n){return n((function(){Ta(t)&&Ra(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ra(e){var t=Ii(e,1);null!==t&&nc(t,e,1,-1)}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return ba().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ia(e,t){return Ma(8390656,8,e,t)}function ja(e,t){return Na(2048,8,e,t)}function $a(e,t){return Na(4,2,e,t)}function Da(e,t){return Na(4,4,e,t)}function Ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,Ua.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,jl|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Za(e))Qa(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Ya(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Za(e))Qa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Ya(n,t,r))}}function Za(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Qa(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Pi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(_a.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:xa,useRef:La,useState:function(){return xa(wa)},useDebugValue:za,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:Ca,useRef:La,useState:function(){return Ca(wa)},useDebugValue:za,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Wi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Mo(t)?Po:Ro.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$i(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Mo(t)?Po:Ro.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ps(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Wi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Lc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return As(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Ml,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Ml,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Ml,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Ml,Ll),Ll|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,o){var i=Mo(n)?Po:Ro.current;return i=Lo(t,i),Oi(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function _s(e,t,n,r,o){if(Mo(n)){var i=!0;$o(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Fs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Lo(t,c=Mo(n)?Po:Ro.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),ji=!1;var f=t.memoizedState;a.state=f,Fi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Oo.current||ji?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=ji||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Lo(t,l=Mo(n)?Po:Ro.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),ji=!1,f=t.memoizedState,a.state=f,Fi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||Oo.current||ji?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(c=ji||is(t,n,c,r,f,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Es(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Qi(e,t.containerInfo)}function Os(e,t,n,r,o){return pi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Ls,Ms,Ns,Is={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=jc(l,o,0,null),e=Ic(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Is,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=jc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Is,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),nc(r,e,o,-1))}return gc(),Us(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Zo++]=Yo,Go[Zo++]=Xo,Go[Zo++]=Qo,Yo=e.id,Xo=e.overflow,Qo=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Mc(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Mo(t.type)&&No(),Ks(t),null;case 3:return r=t.stateNode,Yi(),Ao(Oo),Ao(Ro),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ls(e,t),Ks(t),null;case 5:Ji(t);var o=Zi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=Zi(Ki.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":Q(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":oe(r,a),Ur("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),o=r;break;case"iframe":case"object":case"embed":Ur("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],e);o=r;break;case"source":Ur("error",e),o=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),o=r;break;case"details":Ur("toggle",e),o=r;break;case"input":Q(e,r),o=Z(e,r),Ur("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ur("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ur("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Zi(Gi.current),Zi(Ki.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ks(t),null;case 13:if(Ao(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Nl&&(Nl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Yi(),Ls(e,t),null===e&&Br(t.stateNode.containerInfo),Ks(t),null;case 10:return Ti(t.type._context),Ks(t),null;case 19:if(Ao(ea),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Bl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Ye()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ea.current,_o(ea,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),Ao(Oo),Ao(Ro),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Ao(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ea),null;case 4:return Yi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Zi(Ki.current);var i,a=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),a=[];break;case"select":o=$({},o,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zs=!1,Qs=!1,Ys="function"===typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Qs||Js(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){Sc(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Sc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(m){Sc(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Sc(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ye())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Qs=(u=Qs)||d,gl(t,e),Qs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Sc(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Xs=p):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Zs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Zs;var c=Qs;if(Zs=a,(Qs=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?Cl(o):null!==l?(l.return=a,Xs=l):Cl(o);for(;null!==i;)Xs=i,bl(i,t,n),i=i.sibling;Xs=o,Zs=s,Qs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xs=i):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Qs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(i(163))}Qs||512&t.flags&&ol(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Cl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,El=w.ReactCurrentDispatcher,Al=w.ReactCurrentOwner,_l=w.ReactCurrentBatchConfig,Tl=0,Rl=null,Ol=null,Pl=0,Ll=0,Ml=Eo(0),Nl=0,Il=null,jl=0,$l=0,Dl=0,Ul=null,Wl=null,zl=0,Bl=1/0,Fl=null,Hl=!1,Vl=null,Kl=null,ql=!1,Gl=null,Zl=0,Ql=0,Yl=null,Xl=-1,Jl=0;function ec(){return 0!==(6&Tl)?Ye():-1!==Xl?Xl:Xl=Ye()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Qt(e.type)}function nc(e,t,n,r){if(50<Ql)throw Ql=0,Yl=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Rl||(e===Rl&&(0===(2&Tl)&&($l|=n),4===Nl&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Bl=Ye()+500,Wo&&Fo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Wo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&Fo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Tl;Tl|=2;var a=pc();for(Rl===e&&Pl===t||(Fl=null,Bl=Ye()+500,fc(e,t));;)try{yc();break}catch(l){hc(e,l)}_i(),El.current=a,Tl=o,null!==Ol?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(a=pt(e))&&(r=a,t=ic(e,a))),1===t))throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Wl,Fl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),t);break}xc(e,Wl,Fl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),r);break}xc(e,Wl,Fl);break;default:throw Error(i(329))}}}return rc(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Wl,Wl=n,null!==t&&ac(t)),e}function ac(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function sc(e,t){for(t&=~Dl,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));Cc();var t=ft(e,0);if(0===(1&t))return rc(e,Ye()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Il,fc(e,0),sc(e,t),rc(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Wl,Fl),rc(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Bl=Ye()+500,Wo&&Fo())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&Cc();var t=Tl;Tl|=1;var n=_l.transition,r=bt;try{if(_l.transition=null,bt=1,e)return e()}finally{bt=r,_l.transition=n,0===(6&(Tl=t))&&Fo()}}function dc(){Ll=Ml.current,Ao(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&No();break;case 3:Yi(),Ao(Oo),Ao(Ro),ra();break;case 5:Ji(r);break;case 4:Yi();break;case 13:case 19:Ao(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Rl=e,Ol=e=Mc(e.current,null),Pl=Ll=t,Nl=0,Il=null,Dl=$l=jl=0,Wl=Ul=null,null!==Li){for(t=0;t<Li.length;t++)if(null!==(r=(n=Li[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Li=null}return e}function hc(e,t){for(;;){var n=Ol;try{if(_i(),oa.current=Xa,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Al.current=null,null===n||null===n.return){Nl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function pc(){var e=El.current;return El.current=Xa,null===e?Xa:e}function gc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||0===(268435455&jl)&&0===(268435455&$l)||sc(Rl,Pl)}function mc(e,t){var n=Tl;Tl|=2;var r=pc();for(Rl===e&&Pl===t||(Fl=null,fc(e,t));;)try{vc();break}catch(o){hc(e,o)}if(_i(),Tl=n,El.current=r,null!==Ol)throw Error(i(261));return Rl=null,Pl=0,Nl}function vc(){for(;null!==Ol;)bc(Ol)}function yc(){for(;null!==Ol&&!Ze();)bc(Ol)}function bc(e){var t=kl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wc(e):Ol=t,Al.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Ll)))return void(Ol=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Nl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xc(e,t,n){var r=bt,o=_l.transition;try{_l.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Ol=Rl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Rc(tt,(function(){return Cc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Al.current=null,function(e,t){if(eo=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Qe(),Tl=l,bt=s,_l.transition=a}else e.current=n;if(ql&&(ql=!1,Gl=e,Zl=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Zl)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,Fo()}(e,t,n,r)}finally{_l.transition=o,bt=r}return null}function Cc(){if(null!==Gl){var e=wt(Zl),t=_l.transition,n=bt;try{if(_l.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Zl=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(il(d),d===u){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(0!==(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){Sc(l,l.return,C)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Tl=o,Fo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{bt=n,_l.transition=t}}return!1}function kc(e,t,n){e=Wi(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Wi(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Ye()-zl?fc(e,0):Dl|=n),rc(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ii(e,t))&&(vt(e,t,n),rc(e,n))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ac(e,n)}function Rc(e,t){return qe(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Ic(n.children,o,a,t);case S:s=8,o|=8;break;case E:return(e=Pc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case R:return(e=Pc(13,n,t,o)).elementType=R,e.lanes=a,e;case O:return(e=Pc(19,n,t,o)).elementType=O,e.lanes=a,e;case M:return jc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case _:s=9;break e;case T:s=11;break e;case P:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,i,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function zc(e){if(!e)return To;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return jo(e,n,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Wc(n,r,!0,e,0,i,0,s,l)).context=zc(null),n=e.current,(i=Ui(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Wi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Fc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wi(o,t,a))&&(nc(e,o,a,i),zi(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),pi();break;case 5:Xi(t);break;case 1:Mo(t.type)&&$o(t);break;case 4:Qi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?$s(e,t,n):(_o(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);_o(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fs(e,t),e=t.pendingProps;var o=Lo(t,Ro.current);Oi(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,$o(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Lc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=As(null,t,r,e,n);break e;case 1:t=_s(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return $s(e,t,n);case 4:return Qi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,_o(ki,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Oo.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ui(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ri(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ri(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Cs(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Fs(e,t),t.tag=1,Mo(r)?(e=!0,$o(t)):e=!1,Oi(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}Fc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Wc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Fc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Zc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fc(e,t,null,null)},Zc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Fc(null,e,null,null)})),t[go]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&$t(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ye()),0===(6&Tl)&&(Bl=Ye()+500,Fo()))}break;case 13:uc((function(){var t=Ii(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},Ct=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ii(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,Co,Ae,_e,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(i(299));var n=!1,r="",o=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,o,0,a,s),e[go]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Zc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:(e,t,n)=>{"use strict";var r=n(7119);t.H=r.createRoot,r.hydrateRoot},7119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8345)},8577:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=p},6429:(e,t,n)=>{"use strict";e.exports=n(8577)},2654:(e,t,n)=>{"use strict";var r=n(9950),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:k.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),R(a,t,o,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=R(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},M={transition:null},N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.1"},9950:(e,t,n)=>{"use strict";e.exports=n(2049)},4414:(e,t,n)=>{"use strict";e.exports=n(2654)},1761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,M(C);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function C(e,n){g=!1,m&&(m=!1,y(A),A=-1),p=!0;var i=h;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,A=-1,_=5,T=-1;function R(){return!(t.unstable_now()-T<_)}function O(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,L=P.port2;P.port1.onmessage=O,k=function(){L.postMessage(null)}}else k=function(){v(O,0)};function M(e){E=e,S||(S=!0,k())}function N(e,n){A=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(A),A=-1):m=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),g||p||(g=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5340:(e,t,n)=>{"use strict";e.exports=n(1761)},4008:function(e){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!==typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"===typeof atob?"undefined"!==typeof Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e}))},3477:(e,t,n)=>{!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),l=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function g(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function m(e,t,n,r){return g(e,t,n,r,16)}function v(e,t,n,r){return g(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,A=u,_=d,T=f,R=h,O=p,P=g,L=m,M=v,N=y,I=b,j=w,$=0;$<20;$+=2)x^=(o=(M^=(o=(R^=(o=(E^=(o=x+M|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,A^=(o=(C^=(o=(N^=(o=(O^=(o=A+C|0)<<7|o>>>25)+A|0)<<9|o>>>23)+O|0)<<13|o>>>19)+N|0)<<18|o>>>14,P^=(o=(_^=(o=(k^=(o=(I^=(o=P+_|0)<<7|o>>>25)+P|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,j^=(o=(L^=(o=(T^=(o=(S^=(o=j+L|0)<<7|o>>>25)+j|0)<<9|o>>>23)+S|0)<<13|o>>>19)+T|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,A^=(o=(E^=(o=(T^=(o=(_^=(o=A+E|0)<<7|o>>>25)+A|0)<<9|o>>>23)+_|0)<<13|o>>>19)+T|0)<<18|o>>>14,P^=(o=(O^=(o=(R^=(o=(L^=(o=P+O|0)<<7|o>>>25)+P|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,j^=(o=(I^=(o=(N^=(o=(M^=(o=j+I|0)<<7|o>>>25)+j|0)<<9|o>>>23)+M|0)<<13|o>>>19)+N|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,A=A+u|0,_=_+d|0,T=T+f|0,R=R+h|0,O=O+p|0,P=P+g|0,L=L+m|0,M=M+v|0,N=N+y|0,I=I+b|0,j=j+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=_>>>0&255,e[25]=_>>>8&255,e[26]=_>>>16&255,e[27]=_>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=L>>>0&255,e[45]=L>>>8&255,e[46]=L>>>16&255,e[47]=L>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=j>>>0&255,e[61]=j>>>8&255,e[62]=j>>>16&255,e[63]=j>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(v^=(o=(h^=(o=(c^=(o=i+v|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+h|0)<<18|o>>>14,u^=(o=(a^=(o=(y^=(o=(p^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+y|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(b^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+b|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(p^=(o=(h^=(o=(m^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+h|0)<<18|o>>>14,w^=(o=(b^=(o=(y^=(o=(v^=(o=w+b|0)<<7|o>>>25)+w|0)<<9|o>>>23)+v|0)<<13|o>>>19)+y|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,w),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,w),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function C(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,w),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,w),a=0;a<n;a++)e[t+a]=l[a];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return C(e,t,n,a,i)}function S(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,w);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,s)}var E=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,n,r,o,i){var a=new E(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return A(a,0,n,r,o,i),m(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),A(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function R(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(k(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function L(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function N(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),v(n,0,r,0)}function I(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function j(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function U(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,g=0,m=0,v=0,y=0,b=0,w=0,x=0,C=0,k=0,S=0,E=0,A=0,_=0,T=0,R=0,O=0,P=0,L=0,M=0,N=0,I=0,j=n[0],$=n[1],D=n[2],U=n[3],W=n[4],z=n[5],B=n[6],F=n[7],H=n[8],V=n[9],K=n[10],q=n[11],G=n[12],Z=n[13],Q=n[14],Y=n[15];i+=(r=t[0])*j,a+=r*$,s+=r*D,l+=r*U,c+=r*W,u+=r*z,d+=r*B,f+=r*F,h+=r*H,p+=r*V,g+=r*K,m+=r*q,v+=r*G,y+=r*Z,b+=r*Q,w+=r*Y,a+=(r=t[1])*j,s+=r*$,l+=r*D,c+=r*U,u+=r*W,d+=r*z,f+=r*B,h+=r*F,p+=r*H,g+=r*V,m+=r*K,v+=r*q,y+=r*G,b+=r*Z,w+=r*Q,x+=r*Y,s+=(r=t[2])*j,l+=r*$,c+=r*D,u+=r*U,d+=r*W,f+=r*z,h+=r*B,p+=r*F,g+=r*H,m+=r*V,v+=r*K,y+=r*q,b+=r*G,w+=r*Z,x+=r*Q,C+=r*Y,l+=(r=t[3])*j,c+=r*$,u+=r*D,d+=r*U,f+=r*W,h+=r*z,p+=r*B,g+=r*F,m+=r*H,v+=r*V,y+=r*K,b+=r*q,w+=r*G,x+=r*Z,C+=r*Q,k+=r*Y,c+=(r=t[4])*j,u+=r*$,d+=r*D,f+=r*U,h+=r*W,p+=r*z,g+=r*B,m+=r*F,v+=r*H,y+=r*V,b+=r*K,w+=r*q,x+=r*G,C+=r*Z,k+=r*Q,S+=r*Y,u+=(r=t[5])*j,d+=r*$,f+=r*D,h+=r*U,p+=r*W,g+=r*z,m+=r*B,v+=r*F,y+=r*H,b+=r*V,w+=r*K,x+=r*q,C+=r*G,k+=r*Z,S+=r*Q,E+=r*Y,d+=(r=t[6])*j,f+=r*$,h+=r*D,p+=r*U,g+=r*W,m+=r*z,v+=r*B,y+=r*F,b+=r*H,w+=r*V,x+=r*K,C+=r*q,k+=r*G,S+=r*Z,E+=r*Q,A+=r*Y,f+=(r=t[7])*j,h+=r*$,p+=r*D,g+=r*U,m+=r*W,v+=r*z,y+=r*B,b+=r*F,w+=r*H,x+=r*V,C+=r*K,k+=r*q,S+=r*G,E+=r*Z,A+=r*Q,_+=r*Y,h+=(r=t[8])*j,p+=r*$,g+=r*D,m+=r*U,v+=r*W,y+=r*z,b+=r*B,w+=r*F,x+=r*H,C+=r*V,k+=r*K,S+=r*q,E+=r*G,A+=r*Z,_+=r*Q,T+=r*Y,p+=(r=t[9])*j,g+=r*$,m+=r*D,v+=r*U,y+=r*W,b+=r*z,w+=r*B,x+=r*F,C+=r*H,k+=r*V,S+=r*K,E+=r*q,A+=r*G,_+=r*Z,T+=r*Q,R+=r*Y,g+=(r=t[10])*j,m+=r*$,v+=r*D,y+=r*U,b+=r*W,w+=r*z,x+=r*B,C+=r*F,k+=r*H,S+=r*V,E+=r*K,A+=r*q,_+=r*G,T+=r*Z,R+=r*Q,O+=r*Y,m+=(r=t[11])*j,v+=r*$,y+=r*D,b+=r*U,w+=r*W,x+=r*z,C+=r*B,k+=r*F,S+=r*H,E+=r*V,A+=r*K,_+=r*q,T+=r*G,R+=r*Z,O+=r*Q,P+=r*Y,v+=(r=t[12])*j,y+=r*$,b+=r*D,w+=r*U,x+=r*W,C+=r*z,k+=r*B,S+=r*F,E+=r*H,A+=r*V,_+=r*K,T+=r*q,R+=r*G,O+=r*Z,P+=r*Q,L+=r*Y,y+=(r=t[13])*j,b+=r*$,w+=r*D,x+=r*U,C+=r*W,k+=r*z,S+=r*B,E+=r*F,A+=r*H,_+=r*V,T+=r*K,R+=r*q,O+=r*G,P+=r*Z,L+=r*Q,M+=r*Y,b+=(r=t[14])*j,w+=r*$,x+=r*D,C+=r*U,k+=r*W,S+=r*z,E+=r*B,A+=r*F,_+=r*H,T+=r*V,R+=r*K,O+=r*q,P+=r*G,L+=r*Z,M+=r*Q,N+=r*Y,w+=(r=t[15])*j,a+=38*(C+=r*D),s+=38*(k+=r*U),l+=38*(S+=r*W),c+=38*(E+=r*z),u+=38*(A+=r*B),d+=38*(_+=r*F),f+=38*(T+=r*H),h+=38*(R+=r*V),p+=38*(O+=r*K),g+=38*(P+=r*q),m+=38*(L+=r*G),v+=38*(M+=r*Z),y+=38*(N+=r*Q),b+=38*(I+=r*Y),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function W(e,t){U(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function B(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,j(s,r),i=0;i<16;i++)u[i]=s[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)L(c,u,o=a[i>>>3]>>>(7&i)&1),L(d,f,o),$(h,c,d),D(c,c,d),$(d,u,f),D(u,u,f),W(f,h),W(p,c),U(c,d,c),U(d,u,h),$(h,c,d),D(c,c,d),W(u,c),D(d,f,p),U(c,d,l),$(c,c,f),U(d,d,c),U(c,f,p),U(f,u,s),W(u,h),L(c,u,o),L(d,f,o);for(i=0;i<16;i++)s[i+16]=c[i],s[i+32]=d[i],s[i+48]=u[i],s[i+64]=f[i];var g=s.subarray(32),m=s.subarray(16);return z(g,g),U(m,m,g),M(e,m),0}function H(e,t){return F(e,t,i)}function V(e,t){return r(t,32),H(e,t)}function K(e,t,n){var r=new Uint8Array(32);return F(r,n,t),b(e,o,r,w)}E.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],A=this.h[3],_=this.h[4],T=this.h[5],R=this.h[6],O=this.h[7],P=this.h[8],L=this.h[9],M=this.r[0],N=this.r[1],I=this.r[2],j=this.r[3],$=this.r[4],D=this.r[5],U=this.r[6],W=this.r[7],z=this.r[8],B=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*B),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(A+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*W),d=(f+=(_+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,f&=8191,f+=(T+=s>>>1&8191)*(5*D),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(O+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*j),f+=(P+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),h=d+=(f+=(L+=u>>>5|C)*(5*N))>>>13,h+=k*N,h+=S*M,h+=E*(5*B),h+=A*(5*z),d=(h+=_*(5*W))>>>13,h&=8191,h+=T*(5*U),h+=R*(5*D),h+=O*(5*$),h+=P*(5*j),d+=(h+=L*(5*I))>>>13,h&=8191,p=d,p+=k*I,p+=S*N,p+=E*M,p+=A*(5*B),d=(p+=_*(5*z))>>>13,p&=8191,p+=T*(5*W),p+=R*(5*U),p+=O*(5*D),p+=P*(5*$),g=d+=(p+=L*(5*j))>>>13,g+=k*j,g+=S*I,g+=E*N,g+=A*M,d=(g+=_*(5*B))>>>13,g&=8191,g+=T*(5*z),g+=R*(5*W),g+=O*(5*U),g+=P*(5*D),m=d+=(g+=L*(5*$))>>>13,m+=k*$,m+=S*j,m+=E*I,m+=A*N,d=(m+=_*M)>>>13,m&=8191,m+=T*(5*B),m+=R*(5*z),m+=O*(5*W),m+=P*(5*U),v=d+=(m+=L*(5*D))>>>13,v+=k*D,v+=S*$,v+=E*j,v+=A*I,d=(v+=_*N)>>>13,v&=8191,v+=T*M,v+=R*(5*B),v+=O*(5*z),v+=P*(5*W),y=d+=(v+=L*(5*U))>>>13,y+=k*U,y+=S*D,y+=E*$,y+=A*j,d=(y+=_*I)>>>13,y&=8191,y+=T*N,y+=R*M,y+=O*(5*B),y+=P*(5*z),b=d+=(y+=L*(5*W))>>>13,b+=k*W,b+=S*U,b+=E*D,b+=A*$,d=(b+=_*j)>>>13,b&=8191,b+=T*I,b+=R*N,b+=O*M,b+=P*(5*B),w=d+=(b+=L*(5*z))>>>13,w+=k*z,w+=S*W,w+=E*U,w+=A*D,d=(w+=_*$)>>>13,w&=8191,w+=T*j,w+=R*I,w+=O*N,w+=P*M,x=d+=(w+=L*(5*B))>>>13,x+=k*B,x+=S*z,x+=E*W,x+=A*U,d=(x+=_*D)>>>13,x&=8191,x+=T*$,x+=R*j,x+=O*I,x+=P*N,k=f=8191&(d=(d=((d+=(x+=L*M)>>>13)<<2)+d|0)+(f&=8191)|0),S=h+=d>>>=13,E=p&=8191,A=g&=8191,_=m&=8191,T=v&=8191,R=y&=8191,O=b&=8191,P=w&=8191,L=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=A,this.h[4]=_,this.h[5]=T,this.h[6]=R,this.h[7]=O,this.h[8]=P,this.h[9]=L},E.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var q=T,G=R;var Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C,k,S,E,A,_,T,R,O=new Int32Array(16),P=new Int32Array(16),L=e[0],M=e[1],N=e[2],I=e[3],j=e[4],$=e[5],D=e[6],U=e[7],W=t[0],z=t[1],B=t[2],F=t[3],H=t[4],V=t[5],K=t[6],q=t[7],G=0;r>=128;){for(C=0;C<16;C++)k=8*C+G,O[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],P[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=L,i=M,a=N,s=I,l=j,c=$,u=D,U,f=W,h=z,p=B,g=F,m=H,v=V,y=K,q,A=65535&(E=q),_=E>>>16,T=65535&(S=U),R=S>>>16,A+=65535&(E=(H>>>14|j<<18)^(H>>>18|j<<14)^(j>>>9|H<<23)),_+=E>>>16,T+=65535&(S=(j>>>14|H<<18)^(j>>>18|H<<14)^(H>>>9|j<<23)),R+=S>>>16,A+=65535&(E=H&V^~H&K),_+=E>>>16,T+=65535&(S=j&$^~j&D),R+=S>>>16,S=Z[2*C],A+=65535&(E=Z[2*C+1]),_+=E>>>16,T+=65535&S,R+=S>>>16,S=O[C%16],_+=(E=P[C%16])>>>16,T+=65535&S,R+=S>>>16,T+=(_+=(A+=65535&E)>>>16)>>>16,A=65535&(E=x=65535&A|_<<16),_=E>>>16,T=65535&(S=w=65535&T|(R+=T>>>16)<<16),R=S>>>16,A+=65535&(E=(W>>>28|L<<4)^(L>>>2|W<<30)^(L>>>7|W<<25)),_+=E>>>16,T+=65535&(S=(L>>>28|W<<4)^(W>>>2|L<<30)^(W>>>7|L<<25)),R+=S>>>16,_+=(E=W&z^W&B^z&B)>>>16,T+=65535&(S=L&M^L&N^M&N),R+=S>>>16,d=65535&(T+=(_+=(A+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,b=65535&A|_<<16,A=65535&(E=g),_=E>>>16,T=65535&(S=s),R=S>>>16,_+=(E=x)>>>16,T+=65535&(S=w),R+=S>>>16,M=o,N=i,I=a,j=s=65535&(T+=(_+=(A+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,$=l,D=c,U=u,L=d,z=f,B=h,F=p,H=g=65535&A|_<<16,V=m,K=v,q=y,W=b,C%16===15)for(k=0;k<16;k++)S=O[k],A=65535&(E=P[k]),_=E>>>16,T=65535&S,R=S>>>16,S=O[(k+9)%16],A+=65535&(E=P[(k+9)%16]),_+=E>>>16,T+=65535&S,R+=S>>>16,w=O[(k+1)%16],A+=65535&(E=((x=P[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),_+=E>>>16,T+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=S>>>16,w=O[(k+14)%16],_+=(E=((x=P[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,T+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,O[k]=65535&T|R<<16,P[k]=65535&A|_<<16;A=65535&(E=W),_=E>>>16,T=65535&(S=L),R=S>>>16,S=e[0],_+=(E=t[0])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[0]=L=65535&T|R<<16,t[0]=W=65535&A|_<<16,A=65535&(E=z),_=E>>>16,T=65535&(S=M),R=S>>>16,S=e[1],_+=(E=t[1])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&T|R<<16,t[1]=z=65535&A|_<<16,A=65535&(E=B),_=E>>>16,T=65535&(S=N),R=S>>>16,S=e[2],_+=(E=t[2])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[2]=N=65535&T|R<<16,t[2]=B=65535&A|_<<16,A=65535&(E=F),_=E>>>16,T=65535&(S=I),R=S>>>16,S=e[3],_+=(E=t[3])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&T|R<<16,t[3]=F=65535&A|_<<16,A=65535&(E=H),_=E>>>16,T=65535&(S=j),R=S>>>16,S=e[4],_+=(E=t[4])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[4]=j=65535&T|R<<16,t[4]=H=65535&A|_<<16,A=65535&(E=V),_=E>>>16,T=65535&(S=$),R=S>>>16,S=e[5],_+=(E=t[5])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&T|R<<16,t[5]=V=65535&A|_<<16,A=65535&(E=K),_=E>>>16,T=65535&(S=D),R=S>>>16,S=e[6],_+=(E=t[6])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&T|R<<16,t[6]=K=65535&A|_<<16,A=65535&(E=q),_=E>>>16,T=65535&(S=U),R=S>>>16,S=e[7],_+=(E=t[7])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&T|R<<16,t[7]=q=65535&A|_<<16,G+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Q(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),c=t(),d=t(),f=t();D(r,e[1],e[0]),D(f,n[1],n[0]),U(r,r,f),$(o,e[0],e[1]),$(f,n[0],n[1]),U(o,o,f),U(i,e[3],n[3]),U(i,i,u),U(a,e[2],n[2]),$(a,a,a),D(s,o,r),D(l,a,i),$(c,a,i),$(d,o,r),U(e[0],s,l),U(e[1],d,c),U(e[2],c,l),U(e[3],s,d)}function J(e,t,n){var r;for(r=0;r<4;r++)L(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();z(i,n[2]),U(r,n[0],i),U(o,n[1],i),M(e,o),e[31]^=I(r)<<7}function te(e,t,n){var r,o;for(O(e[0],a),O(e[1],s),O(e[2],s),O(e[3],a),o=255;o>=0;--o)J(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),J(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],f),O(r[2],s),U(r[3],d,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),Y(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ae(c),ne(d,c),ee(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ae(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return ie(e.subarray(32),u),f}function le(e,n,r,o){var i,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),l=t(),u=t(),d=t(),f=t();return O(e[2],s),j(e[1],n),W(i,e[1]),U(l,i,c),D(i,i,e[2]),$(l,e[2],l),W(u,l),W(d,u),U(f,d,u),U(r,f,i),U(r,r,l),B(r,r),U(r,r,i),U(r,r,l),U(r,r,l),U(e[0],r,l),W(o,e[0]),U(o,o,l),N(o,i)&&U(e[0],e[0],h),W(o,e[0]),U(o,o,l),N(o,i)?-1:(I(e[0])===n[31]>>7&&D(e[0],a,e[0]),U(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if(Y(u,e,r),ae(u),te(d,f,u),ne(f,n.subarray(32)),X(d,f),ee(l,d),r-=64,v(n,0,l,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ce=16,ue=64,de=32,fe=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:S,crypto_stream:k,crypto_stream_salsa20_xor:x,crypto_stream_salsa20:C,crypto_onetimeauth:A,crypto_onetimeauth_verify:_,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:T,crypto_secretbox_open:R,crypto_scalarmult:F,crypto_scalarmult_base:H,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),q(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),G(e,t,n,r,a)},crypto_box_keypair:V,crypto_hash:Y,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:oe,pack25519:M,unpack25519:j,M:U,A:$,S:W,Z:D,pow2523:B,add:X,set25519:O,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==R(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return H(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(pe(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return le(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){pe(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===g(e,0,t,0,e.length))},e.setPRNG=function(e){r=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}else(t=n(1281))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},7946:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",f="name",h="type",p="vendor",g="version",m="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",C="embedded",k="Amazon",S="Apple",E="ASUS",A="BlackBerry",_="Browser",T="Chrome",R="Firefox",O="Google",P="Huawei",L="LG",M="Microsoft",N="Motorola",I="Opera",j="Samsung",$="Sharp",D="Sony",U="Xiaomi",W="Zebra",z="Facebook",B="Chromium OS",F="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},G=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(o=0;o<h.length;o++)u=c[++r],typeof(s=h[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;d+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(V(t[n][r],e))return"?"===n?i:n}else if(V(t[n],e))return"?"===n?i:n;return e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[f,I+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[f,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/\bddg\/([\w\.]+)/i],[g,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+_]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[f,"Smart Lenovo "+_]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+_],g],[/\bfocus\/([\w\.]+)/i],[g,[f,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+_]],[/fxios\/([-\w\.]+)/i],[g,[f,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+_]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+_],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+_]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,S],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,S],[h,b]],[/(macintosh);/i],[d,[p,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,$],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,P],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,P],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,N],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,N],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,L],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,L],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[p,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,D],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,D],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,k],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,k],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,A],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,E],[h,y]],[/(nexus 9)/i],[d,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,b]],[/(surface duo)/i],[d,[p,M],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,M],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,W],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,W],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,L],[h,w]],[/(apple) ?tv/i],[p,[d,S+" TV"],[h,w]],[/crkey/i],[[d,T+"cast"],[p,O],[h,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,k],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,$],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,D],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,U],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,q],[d,q],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[p,D],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,M],[h,v]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,S],[h,x]],[/droid.+; (glass) \d/i],[d,[p,O],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,W],[h,x]],[/(quest( \d| pro)?)/i],[d,[p,z],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,C]],[/(aeobc)\b/i],[d,[p,k],[h,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[g,Z,Q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Z,Q],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,F],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,g]]},X=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[g]=i,G.call(t,r,w.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,G.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[d]=i,e[h]=i,G.call(e,r,w.device),x&&!e[h]&&v&&v.mobile&&(e[h]=y),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,B).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};X.VERSION="1.0.38",X.BROWSER=H([f,g,u]),X.CPU=H([m]),X.DEVICE=H([d,p,h,v,y,w,b,x,C]),X.ENGINE=X.OS=H([f,g]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var J=typeof o!==s&&(o.jQuery||o.Zepto);if(J&&!J.ua){var ee=new X;J.ua=ee.getResult(),J.ua.get=function(){return ee.getUA()},J.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"===typeof window?window:this)},1281:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},8738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},2004:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{checkIn:()=>$v,consumePurchase:()=>Fv,copyShareLink:()=>Wv,getCpCustomLink:()=>Zv,getItem:()=>zv,getShareLink:()=>Uv,init:()=>Mv,isDesktopEnabled:()=>qv,login:()=>Nv,onEvent:()=>Kv,openGameForWeb:()=>Gv,purchase:()=>jv,queryPurchses:()=>Hv,ready:()=>Iv,setItem:()=>Bv,share:()=>Dv,vibrate:()=>Vv});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>zf,hasStandardBrowserEnv:()=>Bf,hasStandardBrowserWebWorkerEnv:()=>Hf,origin:()=>Vf});var t=n(1352),o=n(8168),i=n(9950),a=n(7353),s=n(3158),l=n(2860),c=n(7576);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(c.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},d=(0,l.A)();const f=function(){return u(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d)};var h=n(4414);const p=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=f(r),i="function"===typeof t?t(n&&o[n]||o):t;return(0,h.jsx)(s.A,{styles:i})};var g=n(195),m=n(7550);const v=function(e){return(0,h.jsx)(p,(0,o.A)({},e,{defaultTheme:g.A,themeId:m.A}))},y=(e,t)=>(0,o.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),b=e=>(0,o.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const w=function(e){const t=(0,a.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(v,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,o]=t;var i;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}}));let i=(0,o.A)({html:y(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,o.A)({margin:0},b(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i}(e,r)}),n]})};var x=n(3450),C=n.n(x);const k="ps_app_did_mount",S="ps_game_info_loaded",E="ps_game_ready",A="ps_switch_page",_="ps_wallet_connect",T="ps_play_button_clicked",R="ps_purchase_completed",O="ps_check_in_completed",P="event_purchaseCompleted",L="event_checkInCompleted",M={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}},N={1e3:"Join the World\u2019s Largest Cat-lover Community: Catizen - Play, Earn, Airdrop!",1002:"Wondering how much $BOMBIE you can earn?"};let I=function(e){return e[e.Success=1e4]="Success",e[e.NetConfigError=10001]="NetConfigError",e[e.NetError=10002]="NetError",e[e.ParamError=10003]="ParamError",e[e.NotInit=10004]="NotInit",e[e.InitError=10005]="InitError",e[e.NotLogin=10006]="NotLogin",e[e.Logined=10007]="Logined",e[e.Purchaseing=10008]="Purchaseing",e[e.ClipboardError=10009]="ClipboardError",e[e.WalletError=10010]="WalletError",e[e.OpenInvoiceError=10011]="OpenInvoiceError",e[e.TokenUseError=10012]="TokenUseError",e[e.OrderConfirming=10013]="OrderConfirming",e[e.CheckingIn=10014]="CheckingIn",e}({}),j=function(e){return e[e.None=0]="None",e[e.Index=1]="Index",e[e.Login=2]="Login",e[e.Purchase=3]="Purchase",e[e.CheckIn=4]="CheckIn",e}({}),$=function(e){return e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e}({}),D=function(e){return e.usdt="USDT",e.ton="TON",e.cati="CATI",e.star="STAR",e}({}),U=function(e){return e.cati="CATI",e.usdt="USDT",e}({});const W={[D.usdt]:"USDT",[D.ton]:"TON",[D.cati]:"CATI",[D.star]:"Star"},z={[D.usdt]:"coin_usdt.png",[D.ton]:"coin_ton.png",[D.cati]:"coin_cati.png",[D.star]:"coin_star.png"};var B=n(7946),F=n(3422);const H={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB"};class V{static init(){{const e=new URLSearchParams(location.search);V.TEST_MODE="1"==e.get("debug"),V.GAME_ID=e.get("gameid"),V.BOT_NAME=e.get("botname"),V.CP_CUSTOM_LINK=e.get("pcplink");let t=Telegram.WebApp.initData;if(!t){const n=new F.o;if(t=e.get("initdata"),t||(t=window.localStorage.getItem("PLUTO_INIT_DATA")||""),t.startsWith("10")||(t=n.decode(t)),t){const e=n.encode(t);window.localStorage.setItem("PLUTO_INIT_DATA",e)}}V.INIT_DATA=t;const n=window.location.origin+window.location.pathname+window.location.search,r=new URL(n);r.searchParams.delete("initdata"),r.searchParams.delete("pcplink"),window.history.replaceState(null,null,r.href)}V.TEST_MODE?(V.API_URL="https://test-sdk1.pluto.vision/",V.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",V.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",V.TOKENS_JETTON_ADDRESS=H,V.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${V.GAME_ID}.json`):V.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${V.GAME_ID}.json`}}V.APP_VERSION="1.0.2",V.RES_URL="https://games.pluto.vision/sdk/resource/",V.API_URL="https://sdk1.pluto.vision/",V.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",V.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",V.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs"},V.MANIFEST_URL="",V.TEST_MODE=!1,V.GAME_ID="",V.BOT_NAME="",V.INIT_DATA="",V.TOKEN="",V.GAME_URL="",V.CP_CUSTOM_LINK="";const K=e=>`${V.RES_URL}${e}`,q=()=>{const e=Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))},G=()=>{const e=Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},Z=()=>(Telegram.WebApp.platform||"").includes("android"),Q=()=>{const e=(new B.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},Y=e=>new Promise(((t,n)=>{if(!navigator||!navigator.clipboard)return n();navigator.clipboard.writeText(e).then((()=>{t()})).catch((()=>{n()}))})),X=e=>new Promise(((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n()}));var J,ee,te,ne,re,oe,ie=n(4008),ae=n(3477);!function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",e[e.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(J||(J={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(ee||(ee={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(te||(te={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(ne||(ne={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(re||(re={})),function(e){e.MAINNET="-239",e.TESTNET="-3"}(oe||(oe={}));const se={encode:function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Uint8Array?t=e:("string"!==typeof e&&(e=JSON.stringify(e)),t=ie.decodeUTF8(e)),function(e,t){const n=ie.encodeBase64(e);return t?encodeURIComponent(n):n}(t,n)},decode:function(e){const t=function(e,t){return t&&(e=decodeURIComponent(e)),ie.decodeBase64(e)}(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{toString:()=>ie.encodeUTF8(t),toObject(){try{return JSON.parse(ie.encodeUTF8(t))}catch(Er){return null}},toUint8Array:()=>t}}};function le(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function ce(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class ue{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=le(this.keyPair.publicKey)}createKeypair(){return ae.box.keyPair()}createKeypairFromString(e){return{publicKey:ce(e.publicKey),secretKey:ce(e.secretKey)}}createNonce(){return ae.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,ae.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=ae.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:le(this.keyPair.publicKey),secretKey:le(this.keyPair.secretKey)}}}function de(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(Er){i(Er)}}function s(e){try{l(r.throw(e))}catch(Er){i(Er)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class fe extends Error{constructor(e,t){super(e,t),this.message=`${fe.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,fe.prototype)}get info(){return""}}fe.prefix="[TON_CONNECT_SDK_ERROR]";class he extends fe{get info(){return"Passed DappMetadata is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,he.prototype)}}class pe extends fe{get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,pe.prototype)}}class ge extends fe{get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,ge.prototype)}}class me extends fe{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(){super(...arguments),Object.setPrototypeOf(this,me.prototype)}}class ve extends fe{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,ve.prototype)}}class ye extends fe{get info(){return"User rejects the action in the wallet."}constructor(){super(...arguments),Object.setPrototypeOf(this,ye.prototype)}}class be extends fe{get info(){return"Request to the wallet contains errors."}constructor(){super(...arguments),Object.setPrototypeOf(this,be.prototype)}}class we extends fe{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,we.prototype)}}class xe extends fe{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(){super(...arguments),Object.setPrototypeOf(this,xe.prototype)}}class Ce extends fe{get info(){return"An error occurred while fetching the wallets list."}constructor(){super(...arguments),Object.setPrototypeOf(this,Ce.prototype)}}class ke extends fe{get info(){return"Passed address is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,ke.prototype)}}class Se extends fe{get info(){return"Passed hex is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,Se.prototype)}}class Ee extends fe{constructor(){super(...arguments),Object.setPrototypeOf(this,Ee.prototype)}}const Ae={[J.UNKNOWN_ERROR]:Ee,[J.USER_REJECTS_ERROR]:ye,[J.BAD_REQUEST_ERROR]:be,[J.UNKNOWN_APP_ERROR]:we,[J.MANIFEST_NOT_FOUND_ERROR]:ge,[J.MANIFEST_CONTENT_ERROR]:pe};const _e=new class{parseError(e){let t=Ee;return e.code in Ae&&(t=Ae[e.code]||Ee),new t(e.message)}};class Te{isError(e){return"error"in e}}const Re={[te.UNKNOWN_ERROR]:Ee,[te.USER_REJECTS_ERROR]:ye,[te.BAD_REQUEST_ERROR]:be,[te.UNKNOWN_APP_ERROR]:we};const Oe=new class extends Te{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Ee;throw e.error.code in Re&&(t=Re[e.error.code]||Ee),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class Pe{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return de(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return de(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return de(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function Le(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function Me(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function Ne(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function Ie(e,t){return de(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{var o,i;if(null===(o=null===t||void 0===t?void 0:t.signal)||void 0===o?void 0:o.aborted)return void r(new fe("Delay aborted"));const a=setTimeout((()=>n()),e);null===(i=null===t||void 0===t?void 0:t.signal)||void 0===i||i.addEventListener("abort",(()=>{clearTimeout(a),r(new fe("Delay aborted"))}))}))}))}function je(e){const t=new AbortController;return(null===e||void 0===e?void 0:e.aborted)?t.abort():null===e||void 0===e||e.addEventListener("abort",(()=>t.abort()),{once:!0}),t}function $e(e,t){var n,r;return de(this,void 0,void 0,(function*(){const o=null!==(n=null===t||void 0===t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null===t||void 0===t?void 0:t.delayMs)&&void 0!==r?r:200,a=je(null===t||void 0===t?void 0:t.signal);if("function"!==typeof e)throw new fe("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new fe(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield Ie(i))}}throw s}))}function De(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_SDK]",...t)}catch(At){}}function Ue(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("[TON_CONNECT_SDK]",...t)}catch(At){}}class We{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){var n=this;let r=null,o=null,i=null,a=null,s=null;const l=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return de(n,void 0,void 0,(function*(){if(a=null!==l&&void 0!==l?l:null,null===s||void 0===s||s.abort(),s=je(l),s.signal.aborted)throw new fe("Resource creation was aborted");o=null!==u&&void 0!==u?u:null;const n=e(s.signal,...u);i=n;const c=yield n;if(i!==n&&c!==r)throw yield t(c),new fe("Resource creation was aborted by a new resource creation");return r=c,r}))};return{create:l,current:()=>null!==r&&void 0!==r?r:null,dispose:()=>de(this,void 0,void 0,(function*(){try{const e=r;r=null;const n=i;i=null;try{null===s||void 0===s||s.abort()}catch(Er){}yield Promise.allSettled([e?t(e):Promise.resolve(),n?t(yield n):Promise.resolve()])}catch(Er){}})),recreate:e=>de(this,void 0,void 0,(function*(){const t=r,n=i,s=o,c=a;if(yield Ie(e),t===r&&n===i&&s===o&&c===a)return yield l(a,...null!==s&&void 0!==s?s:[]);throw new fe("Resource recreation was aborted by a new resource creation")}))}}(((e,t)=>de(this,void 0,void 0,(function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return de(this,void 0,void 0,(function*(){return yield function(e,t){const n=null===t||void 0===t?void 0:t.timeout,r=je(null===t||void 0===t?void 0:t.signal);return new Promise(((t,o)=>de(this,void 0,void 0,(function*(){if(r.signal.aborted)return void o(new fe("Operation aborted"));let i;"undefined"!==typeof n&&(i=setTimeout((()=>{r.abort(),o(new fe(`Timeout after ${n}ms`))}),n)),r.signal.addEventListener("abort",(()=>{clearTimeout(i),o(new fe("Operation aborted"))}),{once:!0});const a={timeout:n,abort:r.signal};yield e((function(){clearTimeout(i),t(...arguments)}),(()=>{clearTimeout(i),o()}),a)}))))}(((t,n,r)=>de(this,void 0,void 0,(function*(){var o;const i=je(r.signal).signal;if(i.aborted)return void n(new fe("Bridge connection aborted"));const a=new URL(Le(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new fe("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>de(this,void 0,void 0,(function*(){if(i.aborted)return l.close(),void n(new fe("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(Er){l.close(),n(Er)}})),l.onopen=()=>{if(i.aborted)return l.close(),void n(new fe("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new fe("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",(()=>{l.close(),n(new fe("Bridge connection aborted"))}))}))),{timeout:e.openingDeadlineMS,signal:e.signal})}))}(n)}))),(e=>de(this,void 0,void 0,(function*(){e.close()})))),this.bridgeGatewayStorage=new Pe(e,t)}get isReady(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return de(this,void 0,void 0,(function*(){yield this.eventSource.create(null===e||void 0===e?void 0:e.signal,null===e||void 0===e?void 0:e.openingDeadlineMS)}))}send(e,t,n,r){var o;return de(this,void 0,void 0,(function*(){const i={};"number"===typeof r?i.ttl=r:(i.ttl=null===r||void 0===r?void 0:r.ttl,i.signal=null===r||void 0===r?void 0:r.signal,i.attempts=null===r||void 0===r?void 0:r.attempts);const a=new URL(Le(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null===i||void 0===i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=se.encode(e);yield $e((e=>de(this,void 0,void 0,(function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new fe(`Bridge send failed, status ${t.status}`)}))),{attempts:null!==(o=null===i||void 0===i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null===i||void 0===i?void 0:i.signal})}))}pause(){this.eventSource.dispose().catch((e=>Ue(`Bridge pause failed, ${e}`)))}unPause(){return de(this,void 0,void 0,(function*(){yield this.eventSource.recreate(0)}))}close(){return de(this,void 0,void 0,(function*(){yield this.eventSource.dispose().catch((e=>Ue(`Bridge close failed, ${e}`)))}))}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return de(this,void 0,void 0,(function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new fe(`Bridge send failed, status ${r.status}`);return r}))}errorsHandler(e,t){return de(this,void 0,void 0,(function*(){if(this.isConnecting)throw e.close(),new fe("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),De(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new fe("Bridge error, unknown state")}try{this.errorsListener(t)}catch(t){}}))}messagesHandler(e){return de(this,void 0,void 0,(function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(e){throw new fe(`Bridge message parse failed, message ${e.data}`)}this.listener(t)}))}}function ze(e){return!("connectEvent"in e)}class Be{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return de(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!ze(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(t))}))}removeConnection(){return de(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return de(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if("connectEvent"in t){const e=new ue(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return{type:"http",sessionCrypto:new ue(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new fe("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new fe("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new fe("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new fe("Trying to read HTTP connection source while injected connection is stored");if(!ze(e))throw new fe("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new fe("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null===e||void 0===e?void 0:e.type))throw new fe("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return de(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type}))}storeLastWalletEventId(e){return de(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!ze(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}}))}getNextRpcRequestId(){return de(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}class Fe{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new Be(e)}static fromStorage(e){return de(this,void 0,void 0,(function*(){const t=new Be(e),n=yield t.getHttpConnection();return ze(n)?new Fe(e,n.connectionSource):new Fe(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e,t){var n;const r=je(null===t||void 0===t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new ue;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then((()=>de(this,void 0,void 0,(function*(){r.signal.aborted||(yield $e((e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null===e||void 0===e?void 0:e.signal})}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}))));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return de(this,void 0,void 0,(function*(){const r=je(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null===e||void 0===e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(ze(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null===r||void 0===r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new fe("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(De("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new We(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach((e=>e(o.connectEvent)));try{yield $e((e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal})),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(Er){return void(yield this.disconnect({signal:r.signal}))}}}))}sendRequest(e,t){const n={};return"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal,n.attempts=null===t||void 0===t?void 0:t.attempts),new Promise(((t,r)=>de(this,void 0,void 0,(function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new fe("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),De("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),ce(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null===n||void 0===n?void 0:n.attempts,signal:null===n||void 0===n?void 0:n.signal}),null===(o=null===n||void 0===n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(Er){r(Er)}}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return de(this,void 0,void 0,(function*(){return new Promise((t=>de(this,void 0,void 0,(function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=je(null===e||void 0===e?void 0:e.signal);r=setTimeout((()=>{t.abort()}),this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(Er){De("Disconnect error:",Er),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))))}))}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach((e=>e.pause()))}unPause(){return de(this,void 0,void 0,(function*(){const e=this.pendingGateways.map((e=>e.unPause()));this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)}))}pendingGatewaysListener(e,t,n){return de(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(De("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()}))}gatewayListener(e){return de(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(se.decode(e.message).toUint8Array(),ce(e.from)));if(De("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void De(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void Ue(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(De("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return de(this,void 0,void 0,(function*(){throw new fe(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return de(this,void 0,void 0,(function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find((e=>"ton_addr"===e.name)),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})}))}removeBridgeAndSession(){return de(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return Me(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+Ne(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return de(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map((e=>e.close().catch())),this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new We(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(()=>{}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>$e((n=>{var r;return this.pendingGateways.some((t=>t===e))?e.registerSession({openingDeadlineMS:null!==(r=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null===t||void 0===t?void 0:t.signal})))))):(this.gateway&&(De("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new We(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null===t||void 0===t?void 0:t.openingDeadlineMS,signal:null===t||void 0===t?void 0:t.signal}))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null===e||void 0===e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function He(e,t){return Ve(e,[t])}function Ve(e,t){return!(!e||"object"!==typeof e)&&t.every((t=>t in e))}class Ke{constructor(){this.storage={}}static getInstance(){return Ke.instance||(Ke.instance=new Ke),Ke.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}function qe(){if("undefined"!==typeof window)return window}function Ge(){if("undefined"!==typeof document)return document}function Ze(){var e;const t=null===(e=qe())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function Qe(){if(function(){try{return"undefined"!==typeof localStorage}catch(At){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new fe("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Ke.getInstance()}class Ye{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Ye.window;if(!Ye.isWindowContainsWallet(n,t))throw new xe;this.connectionStorage=new Be(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return de(this,void 0,void 0,(function*(){const t=new Be(e),n=yield t.getInjectedConnection();return new Ye(e,n.jsBridgeKey)}))}static isWalletInjected(e){return Ye.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Ye.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=qe();if(!e)return[];try{return Object.keys(e)}catch(At){return[]}}().filter((e=>{let[t,n]=e;return function(e){try{return!(!He(e,"tonconnect")||!He(e.tonconnect,"walletInfo"))&&Ve(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(At){return!1}}(n)})).map((e=>{let[t,n]=e;return{name:n.tonconnect.walletInfo.name,appName:n.tonconnect.walletInfo.app_name,aboutUrl:n.tonconnect.walletInfo.about_url,imageUrl:n.tonconnect.walletInfo.image,tondns:n.tonconnect.walletInfo.tondns,jsBridgeKey:t,injected:!0,embedded:n.tonconnect.isWalletBrowser,platforms:n.tonconnect.walletInfo.platforms}}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"===typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return de(this,void 0,void 0,(function*(){try{De("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();De("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(Er){yield this.connectionStorage.removeConnection(),console.error(Er)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return de(this,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(Er){De(Er),this.sendRequest({method:"disconnect",params:[]},t)}}))}))}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}sendRequest(e,t){var n;return de(this,void 0,void 0,(function*(){const r={};"function"===typeof t?r.onRequestSent=t:(r.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,r.signal=null===t||void 0===t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),De("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then((e=>De("Wallet message received:",e))),null===(n=null===r||void 0===r?void 0:r.onRequestSent)||void 0===n||n.call(r),i}))}_connect(e,t){return de(this,void 0,void 0,(function*(){try{De(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);De("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(Er){De("Injected Provider connect error:",Er);const t={event:"connect_error",payload:{code:0,message:null===Er||void 0===Er?void 0:Er.toString()}};this.listeners.forEach((e=>e(t)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{De("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach((t=>t(e))),"disconnect"===e.event&&this.disconnect()}))}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Ye.window=qe();class Xe{constructor(){this.localStorage=Qe()}getItem(e){return de(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return de(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return de(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function Je(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function et(e){return Je(e)&&e.embedded}function tt(e){return"bridgeUrl"in e}const nt=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.ton.space/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];class rt{constructor(e){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",(null===e||void 0===e?void 0:e.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null===e||void 0===e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return de(this,void 0,void 0,(function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then((()=>{this.walletsListCacheCreationTimestamp=Date.now()})).catch((()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null}))),this.walletsListCache}))}getEmbeddedWallet(){return de(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(et);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return de(this,void 0,void 0,(function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new Ce("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(Ue(`Wallet(s) ${n.map((e=>e.name)).join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter((e=>this.isCorrectWalletConfigDTO(e))))}catch(Er){Ue(Er),e=nt}let t=[];try{t=Ye.getCurrentlyInjectedWallets()}catch(Er){Ue(Er)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)}))}walletConfigDTOListToWalletConfigList(e){return e.map((e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms};return e.bridge.forEach((n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Ye.isWalletInjected(e),t.embedded=Ye.isInsideWalletBrowser(e)}})),t}))}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map((e=>e.name))).values()].map((n=>{const r=e.find((e=>e.name===n)),o=t.find((e=>e.name===n));return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))}))}isCorrectWalletConfigDTO(e){if(!e||"object"!==typeof e)return!1;if(!("name"in e)||!("image"in e)||!("about_url"in e)||!("platforms"in e)||!("app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some((e=>!e||"object"!==typeof e||!("type"in e))))return!1;const n=t.find((e=>"sse"===e.type));if(n&&(!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find((e=>"js"===e.type));return!!(!r||"key"in r&&r.key)}}class ot extends fe{get info(){return"Wallet doesn't support requested feature method."}constructor(){super(...arguments),Object.setPrototypeOf(this,ot.prototype)}}function it(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"===typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new ot("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new ot(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_SDK]",...t)}catch(At){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function at(e){return{type:"response-version",version:e}}function st(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function lt(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null===t||void 0===t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null===t||void 0===t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null===t||void 0===t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null===t||void 0===t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null===t||void 0===t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null===t||void 0===t?void 0:t.provider)&&void 0!==c?c:null},st(e))}}function ct(e){return{type:"connection-started",custom_data:st(e)}}function ut(e,t){return Object.assign({type:"connection-completed",is_success:!0},lt(e,t))}function dt(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!==n&&void 0!==n?n:null,custom_data:st(e)}}function ft(e){return{type:"connection-restoring-started",custom_data:st(e)}}function ht(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},lt(e,t))}function pt(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:st(e)}}function gt(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null===e||void 0===e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map((e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}}))}}function mt(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},lt(e,t)),gt(t,n))}function vt(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},lt(e,t)),gt(t,n))}function yt(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!==o&&void 0!==o?o:null},lt(e,t)),gt(t,n))}function bt(e,t,n){return Object.assign({type:"disconnection",scope:n},lt(e,t))}class wt{constructor(){this.window=qe()}dispatchEvent(e,t){var n;return de(this,void 0,void 0,(function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)}))}addEventListener(e,t,n){var r;return de(this,void 0,void 0,(function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}}))}}class xt{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null===e||void 0===e?void 0:e.eventDispatcher)&&void 0!==t?t:new wt,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return st({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return de(this,void 0,void 0,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(Er){}}))}setRequestVersionHandler(){return de(this,void 0,void 0,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",(()=>de(this,void 0,void 0,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",at(this.tonConnectSdkVersion))}))))}))}requestTonConnectUiVersion(){return de(this,void 0,void 0,(function*(){return new Promise(((e,t)=>de(this,void 0,void 0,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(Er){t(Er)}}))))}))}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Er){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ut(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ft(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=bt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=mt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=vt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=yt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Er){}}}class Ct{constructor(e){if(this.walletsList=new rt,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null===e||void 0===e?void 0:e.manifestUrl)||Ze(),storage:(null===e||void 0===e?void 0:e.storage)||new Xe},this.walletsList=new rt({walletsListSource:null===e||void 0===e?void 0:e.walletsListSource,cacheTTLMs:null===e||void 0===e?void 0:e.walletsListCacheTTLMs}),this.tracker=new xt({eventDispatcher:null===e||void 0===e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.0.5"}),!this.dappSettings.manifestUrl)throw new he("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new Be(this.dappSettings.storage),(null===e||void 0===e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach((e=>e(this._wallet)))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter((t=>t!==e)),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter((e=>e!==t)))}}connect(e,t){var n,r;const o={};if("object"===typeof t&&"tonProof"in t&&(o.request=t),"object"===typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null===t||void 0===t?void 0:t.request,o.openingDeadlineMS=null===t||void 0===t?void 0:t.openingDeadlineMS,o.signal=null===t||void 0===t?void 0:t.signal),this.connected)throw new me;const i=je(null===o||void 0===o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new fe("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",(()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null})),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null===o||void 0===o?void 0:o.request),{openingDeadlineMS:null===o||void 0===o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return de(this,void 0,void 0,(function*(){this.tracker.trackConnectionRestoringStarted();const r=je(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield Fe.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Ye.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(Tt){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null===a||void 0===a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null===a||void 0===a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return Ue("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null===a||void 0===a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=$e((t=>de(this,void 0,void 0,(function*(){yield null===a||void 0===a?void 0:a.restoreConnection({openingDeadlineMS:null===e||void 0===e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}))),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null===e||void 0===e?void 0:e.signal}),c=new Promise((e=>setTimeout((()=>e()),12e3)));return Promise.race([l,c])}))}sendTransaction(e,t){return de(this,void 0,void 0,(function*(){const n={};"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal);const r=je(null===n||void 0===n?void 0:n.signal);if(r.signal.aborted)throw new fe("Transaction sending was aborted");this.checkConnection(),it(this.wallet.device.features,{requiredMessagesNumber:e.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["validUntil"]),a=e.from||this.account.address,s=e.network||this.account.chain,l=yield this.provider.sendRequest(Oe.convertToRpcRequest(Object.assign(Object.assign({},i),{valid_until:o,from:a,network:s})),{onRequestSent:n.onRequestSent,signal:r.signal});if(Oe.isError(l))return this.tracker.trackTransactionSigningFailed(this.wallet,e,l.error.message,l.error.code),Oe.parseAndThrowError(l);const c=Oe.convertFromRpcResponse(l);return this.tracker.trackTransactionSigned(this.wallet,e,c),c}))}disconnect(e){var t;return de(this,void 0,void 0,(function*(){if(!this.connected)throw new ve;const n=je(null===e||void 0===e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new fe("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null===r||void 0===r||r.abort()}))}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=Ge();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()}))}catch(Er){Ue("Cannot subscribe to the document.visibilitychange: ",Er)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Ye(this.dappSettings.storage,e.jsBridgeKey):new Fe(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.onWalletConnectError(e.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){const t=e.items.find((e=>"ton_addr"===e.name)),n=e.items.find((e=>"ton_proof"===e.name));if(!t)throw new fe("ton_addr connection item was not found");const r={device:e.device,provider:this.provider.type,account:{address:t.address,chain:t.network,walletStateInit:t.walletStateInit,publicKey:t.publicKey}};n&&(r.connectItems={tonProof:n}),this.wallet=r,this.tracker.trackConnectionCompleted(r)}onWalletConnectError(e){const t=_e.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),De(t),this.tracker.trackConnectionError(e.message,e.code),t instanceof ge||t instanceof pe)throw Ue(t),t}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new ve}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null===e||void 0===e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}Ct.walletsList=new rt,Ct.isWalletInjected=e=>Ye.isWalletInjected(e),Ct.isInsideWalletBrowser=e=>Ye.isInsideWalletBrowser(e);function kt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new ke(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new ke(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new ke(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null===r||void 0===r?void 0:r.length))throw new ke(`Wrong address ${e}. Hex part must be 64bytes length, but ${null===r||void 0===r?void 0:r.length} received.`);return{wc:n,hex:Et(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),se.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const St={};for(let n=0;n<=255;n++){let e=n.toString(16);e.length<2&&(e="0"+e),St[e]=n}function Et(e){const t=(e=e.toLowerCase()).length;if(t%2!==0)throw new Se("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!St.hasOwnProperty(n))throw new Se("Invalid hex character: "+n);r[o]=St[n]}return r}var At,_t,Tt,Rt,Ot,Pt,Lt,Mt,Nt=n(2414),It=n(8738),jt=Object.defineProperty,$t=Object.defineProperties,Dt=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,Wt=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Bt=(e,t,n)=>t in e?jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ft=(e,t)=>{for(var n in t||(t={}))Wt.call(t,n)&&Bt(e,n,t[n]);if(Ut)for(var n of Ut(t))zt.call(t,n)&&Bt(e,n,t[n]);return e},Ht=(e,t)=>$t(e,Dt(t)),Vt=(e,t,n)=>(Bt(e,"symbol"!==typeof t?t+"":t,n),n),Kt=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const qt={};const Gt=Symbol("solid-proxy"),Zt=Symbol("solid-track"),Qt={equals:(e,t)=>e===t};let Yt=On;const Xt=1,Jt=2,en={owned:null,cleanups:null,context:null,owner:null},tn={};var nn=null;let rn=null,on=null,an=null,sn=null,ln=0;function cn(e,t){const n=on,r=nn,o=0===e.length,i=o?en:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e((()=>vn((()=>Nn(i)))));nn=i,on=null;try{return Rn(a,!0)}finally{on=n,nn=r}}function un(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Qt,t):Qt).equals||void 0};return[Sn.bind(n),e=>("function"===typeof e&&(e=e(n.value)),En(n,e))]}function dn(e,t,n){An(_n(e,t,!0,Xt))}function fn(e,t,n){An(_n(e,t,!1,Xt))}function hn(e,t,n){Yt=Pn;const r=_n(e,t,!1,Xt);r.user=!0,sn?sn.push(r):An(r)}function pn(e,t,n){n=n?Object.assign({},Qt,n):Qt;const r=_n(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,An(r),Sn.bind(r)}function gn(e,t,n){let r,o,i;2===arguments.length&&"object"===typeof t||1===arguments.length?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=tn,l=null,c=!1,u="initialValue"in i,d="function"===typeof r&&pn(r);const f=new Set,[h,p]=(i.storage||un)(i.initialValue),[g,m]=un(void 0),[v,y]=un(void 0,{equals:!1}),[b,w]=un(u?"ready":"unresolved");if(qt.context){let e;l=`${qt.context.id}${qt.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:qt.load&&(e=qt.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),s=tn,function(e,t){Rn((()=>{void 0===t&&p((()=>e)),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()}),!1)}(t,n)),t}function C(){const e=undefined,t=h(),n=g();if(void 0!==n&&!a)throw n;return on&&!on.user&&e&&dn((()=>{v(),a&&(e.resolved||f.has(e)||(e.increment(),f.add(e)))})),t}function k(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,vn(h));const n=s!==tn?s:vn((()=>o(t,{value:h(),refetching:e})));return"object"===typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask((()=>c=!1)),Rn((()=>{w(u?"refreshing":"pending"),y()}),!1),n.then((e=>x(n,e,void 0,t)),(e=>x(n,void 0,In(e),t)))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>b()},error:{get:()=>g()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}}),d?dn((()=>k(!1))):k(!1),[C,{refetch:k,mutate:p}]}function mn(e){return Rn(e,!1)}function vn(e){if(null===on)return e();const t=on;on=null;try{return e()}finally{on=t}}function yn(e){hn((()=>vn(e)))}function bn(e){return null===nn||(null===nn.cleanups?nn.cleanups=[e]:nn.cleanups.push(e)),e}function wn(){return on}function xn(e,t){const n=Symbol("context");return{id:n,Provider:Un(n),defaultValue:e}}function Cn(e){let t;return void 0!==(t=$n(nn,e.id))?t:e.defaultValue}function kn(e){const t=pn(e),n=pn((()=>Dn(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function Sn(){const e=rn;if(this.sources&&(this.state||e))if(this.state===Xt||e)An(this);else{const e=an;an=null,Rn((()=>Ln(this)),!1),an=e}if(on){const e=this.observers?this.observers.length:0;on.sources?(on.sources.push(this),on.sourceSlots.push(e)):(on.sources=[this],on.sourceSlots=[e]),this.observers?(this.observers.push(on),this.observerSlots.push(on.sources.length-1)):(this.observers=[on],this.observerSlots=[on.sources.length-1])}return this.value}function En(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&Rn((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=rn&&rn.running;r&&rn.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?an.push(n):sn.push(n),n.observers&&Mn(n)),r||(n.state=Xt)}if(an.length>1e6)throw an=[],new Error}),!1)),t}function An(e){if(!e.fn)return;Nn(e);const t=nn,n=on,r=ln;on=nn=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Xt,e.owned&&e.owned.forEach(Nn),e.owned=null),jn(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?En(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),on=n,nn=t}function _n(e,t,n){const r={fn:e,state:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Xt,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:nn,context:null,pure:n};return null===nn||nn!==en&&(nn.owned?nn.owned.push(r):nn.owned=[r]),r}function Tn(e){const t=rn;if(0===e.state||t)return;if(e.state===Jt||t)return Ln(e);if(e.suspense&&vn(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ln);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Xt||t)An(e);else if(e.state===Jt||t){const t=an;an=null,Rn((()=>Ln(e,n[0])),!1),an=t}}function Rn(e,t){if(an)return e();let n=!1;t||(an=[]),sn?n=!0:sn=[],ln++;try{const t=e();return function(e){an&&(On(an),an=null);if(e)return;const t=sn;sn=null,t.length&&Rn((()=>Yt(t)),!1)}(n),t}catch(r){n||(sn=null),an=null,jn(r)}}function On(e){for(let t=0;t<e.length;t++)Tn(e[t])}function Pn(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Tn(r)}var r;for(qt.context&&(qt.context=r),t=0;t<n;t++)Tn(e[t])}function Ln(e,t){const n=rn;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Xt||n?o!==t&&Tn(o):(o.state===Jt||n)&&Ln(o,t))}}function Mn(e){const t=rn;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Jt,r.pure?an.push(r):sn.push(r),r.observers&&Mn(r))}}function Nn(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)Nn(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function In(e){return e instanceof Error||"string"===typeof e?e:new Error("Unknown error")}function jn(e){throw e=In(e)}function $n(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:$n(e.owner,t):void 0}function Dn(e){if("function"===typeof e&&!e.length)return Dn(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=Dn(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Un(e,t){return function(t){let n;return fn((()=>n=vn((()=>(nn.context={[e]:t.value},kn((()=>t.children)))))),void 0),n}}const Wn=Symbol("fallback");function zn(e){for(let t=0;t<e.length;t++)e[t]()}function Bn(e,t){return vn((()=>e(t||{})))}function Fn(){return!0}const Hn={get:(e,t,n)=>t===Gt?n:e.get(t),has:(e,t)=>t===Gt||e.has(t),set:Fn,deleteProperty:Fn,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Fn,deleteProperty:Fn}),ownKeys:e=>e.keys()};function Vn(e){return(e="function"===typeof e?e():e)?e:{}}function Kn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let i=0;i<t.length;i++){const e=t[i];r=r||!!e&&Gt in e,t[i]="function"===typeof e?(r=!0,pn(e)):e}if(r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=Vn(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in Vn(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(Vn(t[n])));return[...new Set(e)]}},Hn);const o={};for(let i=t.length-1;i>=0;i--)if(t[i]){const e=Object.getOwnPropertyDescriptors(t[i]);for(const n in e)n in o||Object.defineProperty(o,n,{enumerable:!0,get(){for(let e=t.length-1;e>=0;e--){const r=(t[e]||{})[n];if(void 0!==r)return r}}})}return o}function qn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=new Set(n.flat());if(Gt in e){const t=n.map((t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter((t=>t in e))},Hn)));return t.push(new Proxy({get:t=>o.has(t)?void 0:e[t],has:t=>!o.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},Hn)),t}const i=Object.getOwnPropertyDescriptors(e);return n.push(Object.keys(i).filter((e=>!o.has(e)))),n.map((t=>{const n={};for(let r=0;r<t.length;r++){const o=t[r];o in e&&Object.defineProperty(n,o,i[o]?i[o]:{get:()=>e[o],set:()=>!0,enumerable:!0})}return n}))}function Gn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return pn(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return bn((()=>zn(i))),()=>{let l,c,u=e()||[];return u[Zt],vn((()=>{let e,t,f,h,p,g,m,v,y,b=u.length;if(0===b)0!==a&&(zn(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[Wn],o[0]=cn((e=>(i[0]=e,n.fallback()))),a=1);else if(0===a){for(o=new Array(b),c=0;c<b;c++)r[c]=u[c],o[c]=cn(d);a=b}else{for(f=new Array(b),h=new Array(b),s&&(p=new Array(b)),g=0,m=Math.min(a,b);g<m&&r[g]===u[g];g++);for(m=a-1,v=b-1;m>=g&&v>=g&&r[m]===u[v];m--,v--)f[v]=o[m],h[v]=i[m],s&&(p[v]=s[m]);for(e=new Map,t=new Array(v+1),c=v;c>=g;c--)y=u[c],l=e.get(y),t[c]=void 0===l?-1:l,e.set(y,c);for(l=g;l<=m;l++)y=r[l],c=e.get(y),void 0!==c&&-1!==c?(f[c]=o[l],h[c]=i[l],s&&(p[c]=s[l]),c=t[c],e.set(y,c)):i[l]();for(c=g;c<b;c++)c in f?(o[c]=f[c],i[c]=h[c],s&&(s[c]=p[c],s[c](c))):o[c]=cn(d);o=o.slice(0,a=b),r=u.slice(0)}return o}));function d(e){if(i[c]=e,s){const[e,n]=un(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function Zn(e){let t=!1;const n=e.keyed,r=pn((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e===!n});return pn((()=>{const o=r();if(o){const r=e.children,i="function"===typeof r&&r.length>0;return t=n||i,i?vn((()=>r(o))):r}return e.fallback}),void 0,void 0)}function Qn(e){let t=!1,n=!1;const r=kn((()=>e.children)),o=pn((()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]}),void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]===!n[1])&&e[2]===n[2]});return pn((()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"===typeof s&&s.length>0;return t=n||l,l?vn((()=>s(i))):s}),void 0,void 0)}function Yn(e){return e}const Xn=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),Jn=new Set(["innerHTML","textContent","innerText","children"]),er=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),tr=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),nr=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),rr=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),or={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const ir="_$DX_DELEGATE";function ar(e,t,n){if("undefined"===typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function sr(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function lr(e,t){null==t?e.removeAttribute("class"):e.className=t}function cr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};return(arguments.length>3?arguments[3]:void 0)||fn((()=>r.children=mr(e,t.children,r.children))),fn((()=>t.ref&&t.ref(e))),fn((()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=pr(e,a,null,o[a],n,i)}for(const a in t){if("children"===a){r||mr(e,t.children);continue}const s=t[a];o[a]=pr(e,a,s,o[a],n,i)}}(e,t,n,!0,r,!0))),r}function ur(e,t,n){return vn((()=>e(t,n)))}function dr(e,t,n,r){if(void 0===n||r||(r=[]),"function"!==typeof t)return mr(e,t,r,n);fn((r=>mr(e,t(),r,n)),r)}function fr(e){let t,n;return qt.context&&(t=qt.registry.get(n=function(){const e=qt.context;return`${e.id}${e.count++}`}()))?(qt.completed&&qt.completed.add(t),qt.registry.delete(n),t):e.cloneNode(!0)}function hr(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function pr(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?sr(e,"style"):t;const r=e.style;if("string"===typeof t)return r.cssText=t;let o,i;for(i in"string"===typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(hr(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(hr(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=nr.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[ir]||(t[ir]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,gr))}}([o]))}else if((l=Jn.has(t))||!o&&(tr[t]||(s=Xn.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?lr(e,n):!a||s||l?e[tr[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&or[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):sr(e,er[t]||t,n)}var c;return n}function gr(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),qt.registry&&!qt.done&&(qt.done=!0,document.querySelectorAll("[id^=pl-]").forEach((t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()})));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function mr(e,t,n,r,o){for(qt.context&&!n&&(n=[...e.childNodes]);"function"===typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(qt.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=br(e,n,r,o)}else n=""!==n&&"string"===typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(qt.context)return n;n=br(e,n,r)}else{if("function"===i)return fn((()=>{let o=t();for(;"function"===typeof o;)o=o();n=mr(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(vr(i,t,n,o))return fn((()=>n=mr(e,i,n,r,!0))),()=>n;if(qt.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=br(e,n,r),a)return n}else s?0===n.length?yr(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&br(e),yr(e,i));n=i}else if(t instanceof Node){if(qt.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=br(e,n,r,t);br(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function vr(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=vr(e,a,s)||o;else if("function"===typeof a)if(r){for(;"function"===typeof a;)a=a();o=vr(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function yr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function br(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const wr="http://www.w3.org/2000/svg";function xr(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS(wr,e):document.createElement(e)}function Cr(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(qt.context){const[t,n]=un(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=un(!1),n=()=>t(!0);cn((t=>dr(r,(()=>e()?t():o()()),null))),bn((()=>{qt.context?queueMicrotask(n):n()}))}else{const i=xr(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),dr(a,o()),r.appendChild(i),e.ref&&e.ref(i),bn((()=>r.removeChild(i)))}return n}function kr(e){const[t,n]=qn(e,["component"]),r=pn((()=>t.component));return pn((()=>{const e=r();switch(typeof e){case"function":return vn((()=>e(n)));case"string":const t=rr.has(e),r=qt.context?fr():xr(e,t);return cr(r,n,t),r}}))}var Sr=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(Sr||{});let Er={data:""},Ar=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Er,_r=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Tr=/\/\*[^]*?\*\/| +/g,Rr=/\n+/g,Or=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Or(a,i):i+"{"+Or(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=Or(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Or.p?Or.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Pr={},Lr=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Lr(e[n]);return t}return e},Mr=(e,t,n,r,o)=>{let i=Lr(e),a=Pr[i]||(Pr[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Pr[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=_r.exec(e.replace(Tr,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Rr," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Rr," ").trim();return r[0]})(e);Pr[a]=Or(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&Pr.g?Pr.g:null;return n&&(Pr.g=Pr[a]),l=Pr[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d},Nr=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Or(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ir(e){let t=this||{},n=e.call?e(t.p):e;return Mr(n.unshift?n.raw?Nr(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Ar(t.target),t.g,t.o,t.k)}Ir.bind({g:1});let jr=Ir.bind({k:1});const $r=xn();function Dr(e){return Bn($r.Provider,{value:e.theme,get children(){return e.children}})}function Ur(){return Cn($r)}function Wr(e){let t=this||{};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=n=>{const o=Kn(n,{theme:Cn($r)}),i=Kn(o,{get class(){const e=o.class,n="class"in o&&/^go[0-9]+/.test(e);return[e,Ir.apply({target:t.target,o:n,p:o,g:t.g},r)].filter(Boolean).join(" ")}}),[a,s]=qn(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"===typeof c?u=c(l):1==t.g?(u=document.createElement(c),cr(u,l)):u=kr(Kn({component:c},l)),u};return i.class=e=>vn((()=>Ir.apply({target:t.target,p:e,g:t.g},r))),i}}const zr=new Proxy(Wr,{get:(e,t)=>e(t)});function Br(){const e=Wr.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const Fr="tc-root",Hr="tc-disable-scroll",Vr="tc-using-mouse",Kr=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(Vr))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(Vr)}));return Bn(Br`
3
- ${Fr} * {
2
+ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function h(e){return e.length}function p(e,t){return t.push(e),e}var g=1,m=1,v=0,y=0,b=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:m,length:a,return:""}}function C(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function k(){return b=y>0?u(w,--y):0,m--,10===b&&(m=1,g--),b}function S(){return b=y<v?u(w,y++):0,m++,10===b&&(m=1,g++),b}function E(){return u(w,y)}function A(){return y}function _(e,t){return d(w,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return g=m=1,v=f(w=e),y=0,[]}function O(e){return w="",e}function P(e){return s(_(y-1,N(91===e?e+2:40===e?e+1:e)))}function L(e){for(;(b=E())&&b<33;)S();return T(e)>2||T(b)>3?"":" "}function M(e,t){for(;--t&&S()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return _(e,A()+(t<6&&32==E()&&32==S()))}function N(e){for(;S();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&N(b);break;case 40:41===e&&N(e);break;case 92:S()}return y}function I(e,t){for(;S()&&e+b!==57&&(e+b!==84||47!==E()););return"/*"+_(t,y-1)+"*"+i(47===e?e:S())}function j(e){for(;!T(E());)S();return _(e,y)}var $="-ms-",D="-moz-",U="-webkit-",W="comm",z="rule",B="decl",F="@keyframes";function H(e,t){for(var n="",r=h(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function V(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case B:return e.return=e.return||e.value;case W:return"";case F:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return f(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function K(e){return O(q("",null,null,null,[""],e=R(e),0,[0],e))}function q(e,t,n,r,o,a,s,d,h){for(var g=0,m=0,v=s,y=0,b=0,w=0,x=1,C=1,_=1,T=0,R="",O=o,N=a,$=r,D=R;C;)switch(w=T,T=S()){case 40:if(108!=w&&58==u(D,v-1)){-1!=c(D+=l(P(T),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:D+=P(T);break;case 9:case 10:case 13:case 32:D+=L(w);break;case 92:D+=M(A()-1,7);continue;case 47:switch(E()){case 42:case 47:p(Q(I(S(),A()),t,n),h);break;default:D+="/"}break;case 123*x:d[g++]=f(D)*_;case 125*x:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+m:-1==_&&(D=l(D,/\f/g,"")),b>0&&f(D)-v&&p(b>32?Z(D+";",r,n,v-1):Z(l(D," ","")+";",r,n,v-2),h);break;case 59:D+=";";default:if(p($=G(D,t,n,g,m,o,d,R,O=[],N=[],v),a),123===T)if(0===m)q(D,t,$,$,O,a,v,d,N);else switch(99===y&&110===u(D,3)?100:y){case 100:case 108:case 109:case 115:q(e,$,$,r&&p(G(e,$,$,0,0,o,d,R,o,O=[],v),N),o,N,v,d,r?O:N);break;default:q(D,$,$,$,[""],N,0,d,N)}}g=m=b=0,x=_=1,R=D="",v=s;break;case 58:v=1+f(D),b=w;default:if(x<1)if(123==T)--x;else if(125==T&&0==x++&&125==k())continue;switch(D+=i(T),T*x){case 38:_=m>0?1:(D+="\f",-1);break;case 44:d[g++]=(f(D)-1)*_,_=1;break;case 64:45===E()&&(D+=P(S())),y=E(),m=v=f(R=D+=j(A())),T++;break;case 45:45===w&&2==f(D)&&(x=0)}}return a}function G(e,t,n,r,i,a,c,u,f,p,g){for(var m=i-1,v=0===i?a:[""],y=h(v),b=0,w=0,C=0;b<r;++b)for(var k=0,S=d(e,m+1,m=o(w=c[b])),E=e;k<y;++k)(E=s(w>0?v[k]+" "+S:l(S,/&\f/g,v[k])))&&(f[C++]=E);return x(e,t,n,0===i?z:u,f,p,g)}function Q(e,t,n){return x(e,t,n,W,i(b),d(e,2,-2),0)}function Z(e,t,n,r){return x(e,t,n,B,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,o=0;r=o,o=E(),38===r&&12===o&&(t[n]=1),!T(o);)S();return _(e,y)},X=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(T(r)){case 0:38===r&&12===E()&&(t[n]=1),e[n]+=Y(y-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===E()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=S());return e}(R(e),t))},J=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||J.get(n))&&!r){J.set(e,!0);for(var o=[],i=X(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+D+e+$+e+e;case 6828:case 4268:return U+e+$+e+e;case 6165:return U+e+$+"flex-"+e+e;case 5187:return U+e+l(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+$+"flex-$1$2")+e;case 5443:return U+e+$+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return U+e+$+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+$+l(e,"shrink","negative")+e;case 5292:return U+e+$+l(e,"basis","preferred-size")+e;case 6060:return U+"box-"+l(e,"-grow","")+U+e+$+l(e,"grow","positive")+e;case 4554:return U+l(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+$+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+D+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+U)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===u(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+$+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+$+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+$+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case B:e.return=ne(e.value,e.length);break;case F:return H([C(e,{value:l(e.value,"@","@"+U)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([C(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return H([C(e,{props:[l(t,/:(plac\w+)/,":"+U+"input-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),C(e,{props:[l(t,/:(plac\w+)/,$+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[V,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=h(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(a,d));i=function(e,t,n,r){c=n,H(K(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return p.sheet.hydrate(l),p}},7923:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},7576:(e,t,n)=>{"use strict";n.d(t,{C:()=>a,T:()=>l,w:()=>s});var r=n(9950),o=n(8603),i=(n(9015),n(6477),r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null)),a=i.Provider,s=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(i);return e(t,o,n)}))},l=r.createContext({})},8283:(e,t,n)=>{"use strict";n.d(t,{AH:()=>c,i7:()=>u,mL:()=>l});var r=n(7576),o=n(9950),i=n(1783),a=n(6477),s=n(9015),l=(n(8603),n(3876),(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},9015:(e,t,n)=>{"use strict";n.d(t,{J:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(7923),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function h(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return p={name:o.name,styles:o.styles,next:p},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)p={name:s.name,styles:s.styles,next:p},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=h(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(f);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var p=h(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+p+";";break;default:r+=a+"{"+p+"}"}}else for(var g=0;g<s.length;g++)c(s[g])&&(r+=u(a)+":"+d(a,s[g])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=p,g=n(e);return p=l,h(e,t,g)}}var m=n;if(null==t)return m;var v=t[m];return void 0!==v?v:m}var p,g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function m(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";p=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=h(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=h(n,t,e[a]),r)o+=i[a]}g.lastIndex=0;for(var s,l="";null!==(s=g.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:p}}},6477:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var o=n(9950),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},1783:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},4300:(e,t,n)=>{"use strict";var r=n(4994);t.A=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}r.default=e,n&&n.set(e,r)}(n(9950));var o=r(n(9526)),i=n(4414);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}t.A=(0,o.default)((0,i.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram")},9526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(6987)},7353:(e,t,n)=>{"use strict";n.d(t,{b:()=>s});var r=n(9950),o=n(5537);n(4414);const i=r.createContext(void 0);function a(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?(0,o.A)(i.defaultProps,r):i.styleOverrides||i.variants?r:(0,o.A)(i,r)}({props:t,name:n,theme:{components:r.useContext(i)}})}function s(e){return a(e)}},7775:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(8168),o=n(8587),i=n(8099),a=n(7483),s=n(8076),l=n(505),c=n(2860);var u=n(9269);const d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:d.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:d.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function C(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function k(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(t),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}:{main:h[500],light:h[300],dark:h[700]}}(t),S=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),E=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),A=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),_=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ed6c02",light:g[500],dark:g[900]}}(t);function T(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const R=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,n?` (${n})`:"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,n?` (${n})`:"",JSON.stringify(t.main)));return C(t,"light",a,s),C(t,"dark",l,s),t.contrastText||(t.contrastText=T(t.main)),t},O={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:R({color:c,name:"primary"}),secondary:R({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:R({color:S,name:"error"}),warning:R({color:_,name:"warning"}),info:R({color:E,name:"info"}),success:R({color:A,name:"success"}),grey:f,contrastThreshold:n,getContrastText:T,augmentColor:R,tonalOffset:s},O[t]),l)}const S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const E={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function _(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=A,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:h,pxToRem:p}=n,g=(0,o.A)(n,S);const m=s/14,v=p||(e=>e/f*m+"rem"),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===A?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5)+"em"}:{},a,h);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,E),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),g,{clone:!1})}function T(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const R=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],O=["duration","easing","delay"],P={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return`${Math.round(e)}ms`}function N(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function I(e){const t=(0,r.A)({},P,e.easing),n=(0,r.A)({},L,e.duration);return(0,r.A)({getAutoHeightDuration:N,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.A)(r,O);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof i?i:M(i)} ${a} ${"string"===typeof s?s:M(s)}`)).join(",")}},e,{easing:t,duration:n})}const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,$);if(e.vars)throw new Error((0,i.A)(18));const h=k(n),p=(0,c.A)(e);let g=(0,a.A)(p,{mixins:(m=p.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},v)),palette:h,shadows:R.slice(),typography:_(h,d),transitions:I(u),zIndex:(0,r.A)({},j)});var m,v;g=(0,a.A)(g,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];return g=b.reduce(((e,t)=>(0,a.A)(e,t)),g),g.unstable_sxConfig=(0,r.A)({},s.A,null==f?void 0:f.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},g}const U=D},195:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(7775).A)()},7550:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},741:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e},o=e=>r(e)&&"classes"!==e},9254:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7295),o=n(195),i=n(7550),a=n(741);const s=(0,r.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a.A})},1676:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5501).A},1380:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}},6987:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i,createSvgIcon:()=>C,debounce:()=>k.A,deprecatedPropType:()=>S,isMuiElement:()=>E,ownerDocument:()=>A,ownerWindow:()=>_.A,requirePropFactory:()=>T,setRef:()=>R,unstable_ClassNameGenerator:()=>U,unstable_useEnhancedEffect:()=>O,unstable_useId:()=>M,unsupportedProp:()=>N,useControlled:()=>I,useEventCallback:()=>j.A,useForkRef:()=>$.A,useIsFocusVisible:()=>D.A});var r=n(4501),o=n(1676);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))};var a=n(8168),s=n(9950),l=n.t(s,2),c=n(8587),u=n(2004),d=n(8465),f=n(7353),h=n(9254),p=n(1763),g=n(423);function m(e){return(0,g.Ay)("MuiSvgIcon",e)}(0,p.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var v=n(4414);const y=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],b=(0,h.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,o.A)(n.color)}`],t[`fontSize${(0,o.A)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,f,h,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(h=(t.vars||t).palette)||null==(h=h[n.color])?void 0:h.main)?f:{action:null==(p=(t.vars||t).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(t.vars||t).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0}[n.color]}})),w=s.forwardRef((function(e,t){const n=(0,f.b)({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:l="inherit",component:h="svg",fontSize:p="medium",htmlColor:g,inheritViewBox:w=!1,titleAccess:x,viewBox:C="0 0 24 24"}=n,k=(0,c.A)(n,y),S=s.isValidElement(r)&&"svg"===r.type,E=(0,a.A)({},n,{color:l,component:h,fontSize:p,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:C,hasSvgAsChild:S}),A={};w||(A.viewBox=C);const _=(e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root","inherit"!==t&&`color${(0,o.A)(t)}`,`fontSize${(0,o.A)(n)}`]};return(0,d.A)(i,m,r)})(E);return(0,v.jsxs)(b,(0,a.A)({as:h,className:(0,u.A)(_.root,i),focusable:"false",color:g,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},A,k,S&&r.props,{ownerState:E,children:[S?r.props.children:r,x?(0,v.jsx)("title",{children:x}):null]}))}));w.muiName="SvgIcon";const x=w;function C(e,t){function n(n,r){return(0,v.jsx)(x,(0,a.A)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=x.muiName,s.memo(s.forwardRef(n))}var k=n(1380);const S=function(e,t){return()=>null};const E=n(5447).A;const A=n(6907).A;var _=n(1733);const T=function(e,t){return()=>null};const R=n(5587).A;const O=n(1399).A;let P=0;const L=l["useId".toString()];const M=function(e){if(void 0!==L){const t=L();return null!=e?e:t}return function(e){const[t,n]=s.useState(e),r=e||t;return s.useEffect((()=>{null==t&&(P+=1,n(`mui-${P}`))}),[t]),r}(e)};const N=function(e,t,n,r,o){return null};const I=function(e){let{controlled:t,default:n,name:r,state:o="value"}=e;const{current:i}=s.useRef(void 0!==t),[a,l]=s.useState(n);return[i?t:a,s.useCallback((e=>{i||l(e)}),[])]};var j=n(5018),$=n(4326),D=n(2937);const U={configure:e=>{r.A.configure(e)}}},1733:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6907);const o=function(e){return(0,r.A)(e).defaultView||window}},5018:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(1399);const i=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},4326:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(9950),o=n(5587);const i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},2937:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(9950),o=n(1824);let i=!0,a=!1;const s=new o.E,l={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const h=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},3158:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(9950);var r=n(8283),o=n(4414);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},116:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>k.A,StyledEngineProvider:()=>C,ThemeContext:()=>l.T,css:()=>y.AH,default:()=>S,internal_processStyles:()=>E,keyframes:()=>y.i7});var r=n(8168),o=n(9950),i=n(7923),a=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,s=(0,i.A)((function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(7576),c=n(1783),u=n(9015),d=n(6477),f=s,h=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:h},g=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.SF)(t,n,r),(0,d.s)((function(){return(0,c.sk)(t,n,r)})),null},v=function e(t,n){var i,a,s=t.__emotion_real===t,d=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,a=n.target);var f=g(t,n,s),h=f||p(d),v=!h("as");return function(){var y=arguments,b=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var w=y.length,x=1;x<w;x++)b.push(y[x],y[0][x])}var C=(0,l.w)((function(e,t,n){var r=v&&e.as||d,i="",s=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=o.useContext(l.T)}"string"===typeof e.className?i=(0,c.Rk)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,u.J)(b.concat(s),t.registered,g);i+=t.key+"-"+w.name,void 0!==a&&(i+=" "+a);var x=v&&void 0===f?p(r):h,C={};for(var k in e)v&&"as"===k||x(k)&&(C[k]=e[k]);return C.className=i,n&&(C.ref=n),o.createElement(o.Fragment,null,o.createElement(m,{cache:t,serialized:w,isStringTag:"string"===typeof r}),o.createElement(r,C))}));return C.displayName=void 0!==i?i:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",C.defaultProps=t.defaultProps,C.__emotion_real=C,C.__emotion_base=d,C.__emotion_styles=b,C.__emotion_forwardProp=f,Object.defineProperty(C,"toString",{value:function(){return"."+a}}),C.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:g(C,o,!0)})).apply(void 0,b)},C}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){v[e]=v(e)}));var y=n(8283),b=n(8603),w=n(4414);let x;function C(e){const{injectFirst:t,children:n}=e;return t&&x?(0,w.jsx)(l.C,{value:x,children:n}):n}"object"===typeof document&&(x=(0,b.A)({key:"css",prepend:!0}));var k=n(3158);function S(e,t){return v(e,t)}const E=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},9269:(e,t,n)=>{"use strict";var r=n(4994);t.X4=h,t.e$=p,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=g;var o=r(n(9234)),i=r(n(3383));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function h(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,u(e)}function p(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function g(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?p(e,t):g(e,t)}},7295:(e,t,n)=>{"use strict";var r=n(4994);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=g,rootShouldForwardProp:r=p,slotShouldForwardProp:l=p}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:h,skipVariantsResolver:g,skipSx:w,overridesResolver:x=y(m(h))}=c,C=(0,i.default)(c,f),k=void 0!==g?g:h&&"Root"!==h&&"root"!==h||!1,S=w||!1;let E=p;"Root"===h||"root"===h?E=r:h?E=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(E=void 0);const A=(0,a.default)(e,(0,o.default)({shouldForwardProp:E,label:undefined},C)),_=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,T=function(r){let i=_(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(_):[];d&&x&&c.push((e=>{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=b(i,(0,o.default)({},e,{theme:r}))})),x(e,a)})),d&&!k&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),S||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const h=A(i,...c);return e.muiName&&(h.muiName=e.muiName),h};return A.withConfig&&(T.withConfig=A.withConfig),T}};var o=r(n(4634)),i=r(n(4893)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(116)),s=n(7785),l=(r(n(304)),r(n(8399)),r(n(9904))),c=r(n(8807));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g=(0,l.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},8286:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(7483);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(o);if(0===i.length)return t;let a;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},86:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},3628:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(8587),o=n(8168);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function f(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-s/100}${n})`}function h(e,r){const o=u.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100}${n})`}return(0,o.A)({keys:u,values:c,up:d,down:f,between:h,only:function(e){return u.indexOf(e)+1<u.length?h(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):h(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},2860:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(8168),o=n(8587),i=n(7483),a=n(3628);const s={borderRadius:4};var l=n(7937);var c=n(505),u=n(8076),d=n(86);const f=["breakpoints","palette","spacing","shape"];const h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:h,shape:p={}}=e,g=(0,o.A)(e,f),m=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(h);let y=(0,i.A)({breakpoints:m,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,p)},g);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},9904:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(2860),o=n(3628),i=n(86)},6206:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7483);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},7937:(e,t,n)=>{"use strict";n.d(t,{LX:()=>p,MA:()=>h,_W:()=>g,Lc:()=>y,Ms:()=>b});var r=n(8286),o=n(2703),i=n(6206);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function h(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function p(e){return h(e,"spacing",8)}function g(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function m(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=g(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}function v(e,t){const n=p(e.theme);return Object.keys(e).map((r=>m(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},2703:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(5501),o=n(8286);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.A)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},8076:(e,t,n)=>{"use strict";n.d(t,{A:()=>N});var r=n(7937),o=n(2703),i=n(6206);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(8286);function l(e){return"number"!==typeof e?e:`${e}px solid`}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),h=c("borderBottom",l),p=c("borderLeft",l),g=c("borderColor"),m=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),C=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};C.propTypes={},C.filterProps=["borderRadius"];a(u,d,f,h,p,g,m,v,y,b,C,w,x);const k=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};k.propTypes={},k.filterProps=["gap"];const S=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};S.propTypes={},S.filterProps=["columnGap"];const E=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};E.propTypes={},E.filterProps=["rowGap"];a(k,S,E,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function A(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:A}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:A}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:A}));function _(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,o.Ay)({prop:"width",transform:_}),R=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:_(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};R.filterProps=["maxWidth"];const O=(0,o.Ay)({prop:"minWidth",transform:_}),P=(0,o.Ay)({prop:"height",transform:_}),L=(0,o.Ay)({prop:"maxHeight",transform:_}),M=(0,o.Ay)({prop:"minHeight",transform:_}),N=((0,o.Ay)({prop:"size",cssProperty:"width",transform:_}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:_}),a(T,R,O,P,L,M,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:C},color:{themeKey:"palette",transform:A},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:A},backgroundColor:{themeKey:"palette",transform:A},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:k},rowGap:{style:E},columnGap:{style:S},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:R},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},237:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(8587),i=n(7483),a=n(8076);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},8807:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(505),o=n(237),i=n(8076)},505:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(5501),o=n(6206),i=n(2703),a=n(8286),s=n(8076);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const h=(0,i.Yn)(n,u)||{};if(f)return f(s);return(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(h,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(h,d,`${e}${"default"===t?"":(0,r.A)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},4501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8099);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},304:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(5501)},3383:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},8465:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},7483:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,Q:()=>o});var r=n(8168);function o(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.A)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{o(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r]})),s}},7785:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(7483)},8099:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},9234:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8099)},423:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(4501);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?`${n}-${i}`:`${r.A.generate(e)}-${t}`}},1763:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(423);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},8399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(6429);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t=`${e}`.match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?`${n}(${r})`:n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.ForwardRef:return s(e,e.render,"ForwardRef");case r.Memo:return s(e,e.type,"memo");default:return}}}},5447:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);function o(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},6907:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},5537:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8168);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},5587:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},1399:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9950);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1824:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(9950);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},3422:(e,t)=>{"use strict";t.o=void 0;var n=function(){function e(){this.b64c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this.b64u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",this.b64pad="="}return e.prototype.encode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64c)},e.prototype.urlEncode=function(e){var t=unescape(encodeURIComponent(e));return this.encodeData(t,t.length,this.b64u)},e.prototype.decode=function(e){var t,n,r,o,i,a="";for(t=0;t<e.length-3;t+=4)n=this.charIndex(e.charAt(t+0)),r=this.charIndex(e.charAt(t+1)),o=this.charIndex(e.charAt(t+2)),i=this.charIndex(e.charAt(t+3)),a+=String.fromCharCode(n<<2|r>>>4),e.charAt(t+2)!==this.b64pad&&(a+=String.fromCharCode(r<<4&240|o>>>2&15)),e.charAt(t+3)!==this.b64pad&&(a+=String.fromCharCode(o<<6&192|i));return a=decodeURIComponent(escape(a))},e.prototype.urlSniff=function(e){return e.indexOf("-")>=0||e.indexOf("_")>=0},e.prototype.encodeData=function(e,t,n){var r="",o=0;for(o=0;o<=t-3;o+=3)r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2|e.charCodeAt(o+2)>>>6),r+=n.charAt(63&e.charCodeAt(o+2));return t%3===2?(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4|e.charCodeAt(o+1)>>>4),r+=n.charAt((15&e.charCodeAt(o+1))<<2),r+=this.b64pad):t%3===1&&(r+=n.charAt(e.charCodeAt(o)>>>2),r+=n.charAt((3&e.charCodeAt(o))<<4),r+=this.b64pad,r+=this.b64pad),r},e.prototype.charIndex=function(e){return"+"===e?62:"/"===e?63:this.b64u.indexOf(e)},e}();t.o=n},2414:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"===typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},3876:(e,t,n)=>{"use strict";var r=n(630),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!i[v]&&(!r||!r[v])&&(!g||!g[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},2138:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},630:(e,t,n)=>{"use strict";e.exports=n(2138)},3450:function(e,t,n){e=n.nmd(e),function(n){"use strict";var r={};n.PubSub?(r=n.PubSub,console.warn("PubSub already loaded, using existing version")):(n.PubSub=r,function(e){var t={},n=-1,r="*";function o(e){var t;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function i(e){return function(){throw e}}function a(e,t,n){try{e(t,n)}catch(r){setTimeout(i(r),0)}}function s(e,t,n){e(t,n)}function l(e,n,r,o){var i,l=t[n],c=o?s:a;if(Object.prototype.hasOwnProperty.call(t,n))for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&c(l[i],e,r)}function c(e,t,n){return function(){var o=String(e),i=o.lastIndexOf(".");for(l(e,e,t,n);-1!==i;)i=(o=o.substr(0,i)).lastIndexOf("."),l(e,o,t,n);l(e,r,t,n)}}function u(e){var n=String(e);return Boolean(Object.prototype.hasOwnProperty.call(t,n)&&o(t[n]))}function d(e){for(var t=String(e),n=u(t)||u(r),o=t.lastIndexOf(".");!n&&-1!==o;)o=(t=t.substr(0,o)).lastIndexOf("."),n=u(t);return n}function f(e,t,n,r){var o=c(e="symbol"===typeof e?e.toString():e,t,r);return!!d(e)&&(!0===n?o():setTimeout(o,0),!0)}e.publish=function(t,n){return f(t,n,!1,e.immediateExceptions)},e.publishSync=function(t,n){return f(t,n,!0,e.immediateExceptions)},e.subscribe=function(e,r){if("function"!==typeof r)return!1;e="symbol"===typeof e?e.toString():e,Object.prototype.hasOwnProperty.call(t,e)||(t[e]={});var o="uid_"+String(++n);return t[e][o]=r,o},e.subscribeAll=function(t){return e.subscribe(r,t)},e.subscribeOnce=function(t,n){var r=e.subscribe(t,(function(){e.unsubscribe(r),n.apply(this,arguments)}));return e},e.clearAllSubscriptions=function(){t={}},e.clearSubscriptions=function(e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&delete t[n]},e.countSubscriptions=function(e){var n,r,o=0;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)){for(r in t[n])o++;break}return o},e.getSubscriptions=function(e){var n,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e)&&r.push(n);return r},e.unsubscribe=function(n){var r,o,i,a=function(e){var n;for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&0===n.indexOf(e))return!0;return!1},s="string"===typeof n&&(Object.prototype.hasOwnProperty.call(t,n)||a(n)),l=!s&&"string"===typeof n,c="function"===typeof n,u=!1;if(!s){for(r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(o=t[r],l&&o[n]){delete o[n],u=n;break}if(c)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&o[i]===n&&(delete o[i],u=!0)}return u}e.clearSubscriptions(n)}}(r)),void 0!==e&&e.exports&&(t=e.exports=r),t.PubSub=r,e.exports=t=r}("object"===typeof window&&window||this||n.g)},8345:(e,t,n)=>{"use strict";var r=n(9950),o=n(5340);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),C=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),_=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var j,$=Object.assign;function D(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var U=!1;function W(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function z(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 1:return e=W(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case C:return"Portal";case E:return"Profiler";case S:return"StrictMode";case R:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function F(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return $({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return $({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=$({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,ke=null,Se=null;function Ee(e){if(e=wo(e)){if("function"!==typeof Ce)throw Error(i(280));var t=e.stateNode;t&&(t=Co(t),Ce(e.stateNode,e.type,t))}}function Ae(e){ke?Se?Se.push(e):Se=[e]:ke=e}function _e(){if(ke){var e=ke,t=Se;if(Se=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Re(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Te(e,t,n)}finally{Oe=!1,(null!==ke||null!==Se)&&(Re(),_e())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=Co(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Me=!1;if(u)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ue){Me=!1}function Ie(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,$e=null,De=!1,Ue=null,We={onError:function(e){je=!0,$e=e}};function ze(e,t,n,r,o,i,a,s,l){je=!1,$e=null,Ie.apply(We,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Fe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(i(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var qe=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ze=o.unstable_requestPaint,Ye=o.unstable_now,Xe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,Ct,kt,St,Et,At=!1,_t=[],Tt=null,Rt=null,Ot=null,Pt=new Map,Lt=new Map,Mt=[],Nt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function jt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=wo(t))&&Ct(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function $t(e){var t=bo(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Et(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wo(n))&&Ct(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Dt(e)&&n.delete(t)}function Wt(){At=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==Ot&&Dt(Ot)&&(Ot=null),Pt.forEach(Ut),Lt.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,At||(At=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Wt)))}function Bt(e){function t(t){return zt(t,e)}if(0<_t.length){zt(_t[0],e);for(var n=1;n<_t.length;n++){var r=_t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&zt(Tt,e),null!==Rt&&zt(Rt,e),null!==Ot&&zt(Ot,e),Pt.forEach(t),Lt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)$t(n),null===n.blockedOn&&Mt.shift()}var Ft=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function Kt(e,t,n,r){var o=bt,i=Ft.transition;Ft.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=o,Ft.transition=i}}function qt(e,t,n,r){if(Ht){var o=Qt(e,t,n,r);if(null===o)Hr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=jt(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=jt(Rt,e,t,n,r,o),!0;case"mouseover":return Ot=jt(Ot,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Pt.set(i,jt(Pt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Lt.set(i,jt(Lt.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var i=wo(o);if(null!==i&&xt(i),null===(i=Qt(e,t,n,r))&&Hr(e,t,r,Gt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Gt=null;function Qt(e,t,n,r){if(Gt=null,null!==(e=bo(e=xe(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Zt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Xt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Xt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return $(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=$({},cn,{view:0,detail:0}),fn=on(dn),hn=$({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),gn=on($({},hn,{dataTransfer:0})),mn=on($({},dn,{relatedTarget:0})),vn=on($({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=$({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),wn=on($({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Sn}var An=$({},dn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_n=on(An),Tn=on($({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on($({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),On=on($({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=$({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=on(Pn),Mn=[9,13,27,32],Nn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var jn=u&&"TextEvent"in window&&!In,$n=u&&(!Nn||In&&8<In&&11>=In),Dn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Fn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Vn(e,t,n,r){Ae(r),0<(t=Kr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,qn=null;function Gn(e){Dr(e,0)}function Qn(e){if(q(xo(e)))return e}function Zn(e,t){if("change"===e)return t}var Yn=!1;if(u){var Xn;if(u){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Yn=Xn&&(!document.documentMode||9<document.documentMode)}function tr(){Kn&&(Kn.detachEvent("onpropertychange",nr),qn=Kn=null)}function nr(e){if("value"===e.propertyName&&Qn(qn)){var t=[];Vn(t,qn,e,xe(e)),Pe(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Kn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(qn)}function ir(e,t){if("click"===e)return Qn(t)}function ar(e,t){if("input"===e||"change"===e)return Qn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ur(n,i);var a=ur(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,vr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==G(r)||("selectionStart"in(r=mr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=Kr(vr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Cr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Sr={};function Er(e){if(kr[e])return kr[e];if(!Cr[e])return e;var t,n=Cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return kr[e]=n[t];return e}u&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);var Ar=Er("animationend"),_r=Er("animationiteration"),Tr=Er("animationstart"),Rr=Er("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Or.set(e,t),l(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Lr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Lr(Ar,"onAnimationEnd"),Lr(_r,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Rr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function $r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,c){if(ze.apply(this,arguments),je){if(!je)throw Error(i(198));var u=$e;je=!1,$e=null,De||(De=!0,Ue=u)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;$r(o,s,c),i=l}}}if(De)throw e=Ue,De=!1,Ue=null,e}function Ur(e,t){var n=t[mo];void 0===n&&(n=t[mo]=new Set);var r=e+"__bubble";n.has(r)||(Fr(t,e,2,!1),n.add(r))}function Wr(e,t,n){var r=0;t&&(r|=4),Fr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,a.forEach((function(t){"selectionchange"!==t&&(jr.has(t)||Wr(t,!1,e),Wr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Wr("selectionchange",!1,t))}}function Fr(e,t,n,r){switch(Zt(t)){case 1:var o=Vt;break;case 4:o=Kt;break;default:o=qt}n=o.bind(null,t,n,e),o=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=i,o=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=_n;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case Ar:case _r:case Tr:l=vn;break;case Rr:l=On;break;case"scroll":l=fn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==f&&(null!=(g=Le(p,f))&&u.push(Vr(p,g,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!bo(c)&&!c[go])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bo(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,g="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,g="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:xo(l),h=null==c?s:xo(c),(s=new u(g,p+"leave",l,n,o)).target=d,s.relatedTarget=h,g=null,bo(o)===r&&((u=new u(f,p+"enter",c,n,o)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(f=c,p=0,h=u=l;h;h=qr(h))p++;for(h=0,g=f;g;g=qr(g))h++;for(;0<p-h;)u=qr(u),p--;for(;0<h-p;)f=qr(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=qr(u),f=qr(f)}u=null}else u=null;null!==l&&Gr(a,s,l,u,!1),null!==c&&null!==d&&Gr(a,d,c,u,!0)}if("select"===(l=(s=r?xo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Hn(s))if(Yn)m=ar;else{m=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ir);switch(m&&(m=m(e,r))?Vn(a,m,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?xo(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(mr=v,vr=r,yr=null);break;case"focusout":yr=vr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":wr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&($n&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=en()):(Xt="value"in(Yt=o)?Yt.value:Yt.textContent,Bn=!0)),0<(v=Kr(r,b)).length&&(b=new wn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Dn);case"textInput":return(e=t.data)===Dn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Wn(e,t)?(e=en(),Jt=Xt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new wn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Dr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Le(e,n))&&r.unshift(Vr(e,i,o)),null!=(i=Le(e,t))&&r.push(Vr(e,i,o))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Le(n,i))&&a.unshift(Vr(n,l,s)):o||null!=(l=Le(n,i))&&a.push(Vr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Qr,"\n").replace(Zr,"")}function Xr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,go="__reactContainer$"+fo,mo="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[go]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[ho])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function wo(e){return!(e=e[ho]||e[go])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Co(e){return e[po]||null}var ko=[],So=-1;function Eo(e){return{current:e}}function Ao(e){0>So||(e.current=ko[So],ko[So]=null,So--)}function _o(e,t){So++,ko[So]=e.current,e.current=t}var To={},Ro=Eo(To),Oo=Eo(!1),Po=To;function Lo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function No(){Ao(Oo),Ao(Ro)}function Io(e,t,n){if(Ro.current!==To)throw Error(i(168));_o(Ro,t),_o(Oo,n)}function jo(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,F(e)||"Unknown",o));return $({},n,r)}function $o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Po=Ro.current,_o(Ro,e),_o(Oo,Oo.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=jo(e,t,Po),r.__reactInternalMemoizedMergedChildContext=e,Ao(Oo),Ao(Ro),_o(Ro,e)):Ao(Oo),_o(Oo,n)}var Uo=null,Wo=!1,zo=!1;function Bo(e){null===Uo?Uo=[e]:Uo.push(e)}function Fo(){if(!zo&&null!==Uo){zo=!0;var e=0,t=bt;try{var n=Uo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Wo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),qe(Je,Fo),o}finally{bt=t,zo=!1}}return null}var Ho=[],Vo=0,Ko=null,qo=0,Go=[],Qo=0,Zo=null,Yo=1,Xo="";function Jo(e,t){Ho[Vo++]=qo,Ho[Vo++]=Ko,Ko=e,qo=t}function ei(e,t,n){Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Zo=e;var r=Yo;e=Xo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Xo=i+e}else Yo=1<<i|n<<o|r,Xo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===Ko;)Ko=Ho[--Vo],Ho[Vo]=null,qo=Ho[--Vo],Ho[Vo]=null;for(;e===Zo;)Zo=Go[--Qo],Go[Qo]=null,Xo=Go[--Qo],Go[Qo]=null,Yo=Go[--Qo],Go[Qo]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Pc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Yo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ci(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ui(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ci(e))throw Error(i(418));t=co(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ci(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=co(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=co(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=co(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function gi(e){null===ai?ai=[e]:ai.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function yi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=$c(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===L&&bi(i)===t.type)?((r=o(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=$c(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case C:return(t=Dc(t,e.mode,n)).return=e,t;case L:return f(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ic(t,e.mode,n,null)).return=e,t;yi(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?c(e,t,n,r):null;case C:return n.key===o?u(e,t,n,r):null;case L:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||I(n))return null!==o?null:d(e,t,n,r,null);yi(e,n)}return null}function p(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case C:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case L:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,o,null);yi(t,r)}return null}function g(o,i,s,l){for(var c=null,u=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=h(o,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return n(o,d),ii&&Jo(o,g),c;if(null===d){for(;g<s.length;g++)null!==(d=f(o,s[g],l))&&(i=a(d,i,g),null===u?c=d:u.sibling=d,u=d);return ii&&Jo(o,g),c}for(d=r(o,d);g<s.length;g++)null!==(m=p(d,o,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach((function(e){return t(o,e)})),ii&&Jo(o,g),c}function m(o,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),ii&&Jo(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return ii&&Jo(o,m),u}for(g=r(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),u}return function e(r,i,a,l){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,u=i;null!==u;){if(u.key===c){if((c=a.type)===k){if(7===u.tag){n(r,u.sibling),(i=o(u,a.props.children)).return=r,r=i;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&bi(c)===u.type){n(r,u.sibling),(i=o(u,a.props)).ref=vi(r,u,a),i.return=r,r=i;break e}n(r,u);break}t(r,u),u=u.sibling}a.type===k?((i=Ic(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=Nc(a.type,a.key,a.props,null,r.mode,l)).ref=vi(r,i,a),l.return=r,r=l)}return s(r);case C:e:{for(u=a.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Dc(a,r.mode,l)).return=r,r=i}return s(r);case L:return e(r,i,(u=a._init)(a._payload),l)}if(te(a))return g(r,i,a,l);if(I(a))return m(r,i,a,l);yi(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=$c(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var xi=wi(!0),Ci=wi(!1),ki=Eo(null),Si=null,Ei=null,Ai=null;function _i(){Ai=Ei=Si=null}function Ti(e){var t=ki.current;Ao(ki),e._currentValue=t}function Ri(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Oi(e,t){Si=e,Ai=Ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Pi(e){var t=e._currentValue;if(Ai!==e)if(e={context:e,memoizedValue:t,next:null},null===Ei){if(null===Si)throw Error(i(308));Ei=e,Si.dependencies={lanes:0,firstContext:e}}else Ei=Ei.next=e;return t}var Li=null;function Mi(e){null===Li?Li=[e]:Li.push(e)}function Ni(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Mi(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ii(e,r)}function Ii(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var ji=!1;function $i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Tl)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ii(e,n)}return null===(o=r.interleaved)?(t.next=t,Mi(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ii(e,n)}function zi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Bi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;ji=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?i=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,u=c=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(f=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(f="function"===typeof(p=g.payload)?p.call(h,d,f):p)||void 0===f)break e;d=$({},d,f);break e;case 2:ji=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(i(191,o));o.call(r)}}}var Vi={},Ki=Eo(Vi),qi=Eo(Vi),Gi=Eo(Vi);function Qi(e){if(e===Vi)throw Error(i(174));return e}function Zi(e,t){switch(_o(Gi,t),_o(qi,e),_o(Ki,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ao(Ki),_o(Ki,t)}function Yi(){Ao(Ki),Ao(qi),Ao(Gi)}function Xi(e){Qi(Gi.current);var t=Qi(Ki.current),n=le(t,e.type);t!==n&&(_o(qi,e),_o(Ki,n))}function Ji(e){qi.current===e&&(Ao(Ki),Ao(qi))}var ea=Eo(0);function ta(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var na=[];function ra(){for(var e=0;e<na.length;e++)na[e]._workInProgressVersionPrimary=null;na.length=0}var oa=w.ReactCurrentDispatcher,ia=w.ReactCurrentBatchConfig,aa=0,sa=null,la=null,ca=null,ua=!1,da=!1,fa=0,ha=0;function pa(){throw Error(i(321))}function ga(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ma(e,t,n,r,o,a){if(aa=a,sa=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:es,e=n(r,o),da){a=0;do{if(da=!1,fa=0,25<=a)throw Error(i(301));a+=1,ca=la=null,t.updateQueue=null,oa.current=ts,e=n(r,o)}while(da)}if(oa.current=Xa,t=null!==la&&null!==la.next,aa=0,ca=la=sa=null,ua=!1,t)throw Error(i(300));return e}function va(){var e=0!==fa;return fa=0,e}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?sa.memoizedState=ca=e:ca=ca.next=e,ca}function ba(){if(null===la){var e=sa.alternate;e=null!==e?e.memoizedState:null}else e=la.next;var t=null===ca?sa.memoizedState:ca.next;if(null!==t)ca=t,la=e;else{if(null===e)throw Error(i(310));e={memoizedState:(la=e).memoizedState,baseState:la.baseState,baseQueue:la.baseQueue,queue:la.queue,next:null},null===ca?sa.memoizedState=ca=e:ca=ca.next=e}return ca}function wa(e,t){return"function"===typeof t?t(e):t}function xa(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=la,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((aa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=r):c=c.next=f,sa.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,sa.lanes|=a,jl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ba(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ka(){}function Sa(e,t){var n=sa,r=ba(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,bs=!0),r=r.queue,ja(_a.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(n.flags|=2048,Pa(9,Aa.bind(null,n,r,o,t),void 0,null),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(n,t,o)}return o}function Ea(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Aa(e,t,n,r){t.value=n,t.getSnapshot=r,Ta(t)&&Ra(e)}function _a(e,t,n){return n((function(){Ta(t)&&Ra(e)}))}function Ta(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Ra(e){var t=Ii(e,1);null!==t&&nc(t,e,1,-1)}function Oa(e){var t=ya();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ga.bind(null,sa,e),[t.memoizedState,e]}function Pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=sa.updateQueue)?(t={lastEffect:null,stores:null},sa.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function La(){return ba().memoizedState}function Ma(e,t,n,r){var o=ya();sa.flags|=e,o.memoizedState=Pa(1|t,n,void 0,void 0===r?null:r)}function Na(e,t,n,r){var o=ba();r=void 0===r?null:r;var i=void 0;if(null!==la){var a=la.memoizedState;if(i=a.destroy,null!==r&&ga(r,a.deps))return void(o.memoizedState=Pa(t,n,i,r))}sa.flags|=e,o.memoizedState=Pa(1|t,n,i,r)}function Ia(e,t){return Ma(8390656,8,e,t)}function ja(e,t){return Na(2048,8,e,t)}function $a(e,t){return Na(4,2,e,t)}function Da(e,t){return Na(4,4,e,t)}function Ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Wa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Na(4,4,Ua.bind(null,t,e),n)}function za(){}function Ba(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fa(e,t){var n=ba();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ga(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ha(e,t,n){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=gt(),sa.lanes|=n,jl|=n,e.baseState=!0),t)}function Va(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=n,ia.transition=r}}function Ka(){return ba().memoizedState}function qa(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Za(t,n);else if(null!==(n=Ni(e,t,n,r))){nc(n,e,r,ec()),Ya(n,t,r)}}function Ga(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Mi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(n=Ni(e,t,o,r))&&(nc(n,e,r,o=ec()),Ya(n,t,r))}}function Qa(e){var t=e.alternate;return e===sa||null!==t&&t===sa}function Za(e,t){da=ua=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ya(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var Xa={readContext:Pi,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useInsertionEffect:pa,useLayoutEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useMutableSource:pa,useSyncExternalStore:pa,useId:pa,unstable_isNewReconciler:!1},Ja={readContext:Pi,useCallback:function(e,t){return ya().memoizedState=[e,void 0===t?null:t],e},useContext:Pi,useEffect:Ia,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ma(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ya();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ya();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qa.bind(null,sa,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ya().memoizedState=e},useState:Oa,useDebugValue:za,useDeferredValue:function(e){return ya().memoizedState=e},useTransition:function(){var e=Oa(!1),t=e[0];return e=Va.bind(null,e[1]),ya().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=sa,o=ya();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rl)throw Error(i(349));0!==(30&aa)||Ea(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Ia(_a.bind(null,r,a,e),[e]),r.flags|=2048,Pa(9,Aa.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=ya(),t=Rl.identifierPrefix;if(ii){var n=Xo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:xa,useRef:La,useState:function(){return xa(wa)},useDebugValue:za,useDeferredValue:function(e){return Ha(ba(),la.memoizedState,e)},useTransition:function(){return[xa(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1},ts={readContext:Pi,useCallback:Ba,useContext:Pi,useEffect:ja,useImperativeHandle:Wa,useInsertionEffect:$a,useLayoutEffect:Da,useMemo:Fa,useReducer:Ca,useRef:La,useState:function(){return Ca(wa)},useDebugValue:za,useDeferredValue:function(e){var t=ba();return null===la?t.memoizedState=e:Ha(t,la.memoizedState,e)},useTransition:function(){return[Ca(wa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Sa,useId:Ka,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=$({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:$({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),i=Ui(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Wi(e,i,o))&&(nc(t,e,o,r),zi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=Ui(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Wi(e,o,r))&&(nc(t,e,r,n),zi(t,e,r))}};function is(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(o,i))}function as(e,t,n){var r=!1,o=To,i=t.contextType;return"object"===typeof i&&null!==i?i=Pi(i):(o=Mo(t)?Po:Ro.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Lo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},$i(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Pi(i):(i=Mo(t)?Po:Ro.current,o.context=Lo(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(rs(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,Vl=r),ds(0,t)},n}function ps(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vs(e,t,n,r,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Wi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=w.ReactCurrentOwner,bs=!1;function ws(e,t,n,r){t.child=null===e?Ci(t,null,n,r):xi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Oi(t,o),r=ma(e,t,n,r,i,o),n=va(),null===e||bs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Cs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Lc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mc(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);0!==(131072&e.flags)&&(bs=!0)}}return As(e,t,n,r,o)}function Ss(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_o(Ml,Ll),Ll|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_o(Ml,Ll),Ll|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,_o(Ml,Ll),Ll|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,_o(Ml,Ll),Ll|=r;return ws(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function As(e,t,n,r,o){var i=Mo(n)?Po:Ro.current;return i=Lo(t,i),Oi(t,o),n=ma(e,t,n,r,i,o),r=va(),null===e||bs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function _s(e,t,n,r,o){if(Mo(n)){var i=!0;$o(t)}else i=!1;if(Oi(t,o),null===t.stateNode)Fs(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=Pi(c):c=Lo(t,c=Mo(n)?Po:Ro.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,a,r,c),ji=!1;var f=t.memoizedState;a.state=f,Fi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Oo.current||ji?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=ji||is(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=Pi(l):l=Lo(t,l=Mo(n)?Po:Ro.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,a,r,l),ji=!1,f=t.memoizedState,a.state=f,Fi(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||Oo.current||ji?("function"===typeof h&&(rs(t,n,h,r),p=t.memoizedState),(c=ji||is(t,n,c,r,f,p,l)||!1)?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,i,o)}function Ts(e,t,n,r,o,i){Es(e,t);var a=0!==(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Hs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=xi(t,e.child,null,i),t.child=xi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function Rs(e){var t=e.stateNode;t.pendingContext?Io(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Io(0,t.context,!1),Zi(e,t.containerInfo)}function Os(e,t,n,r,o){return pi(),gi(o),t.flags|=256,ws(e,t,n,r),t.child}var Ps,Ls,Ms,Ns,Is={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function $s(e,t,n){var r,o=t.pendingProps,a=ea.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_o(ea,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=jc(l,o,0,null),e=Ic(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Is,e):Ds(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Us(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=jc({mode:"visible",children:r.children},o,0,null),(a=Ic(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&xi(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Is,a);if(0===(1&t.mode))return Us(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Us(e,t,s,r=us(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Rl)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ii(e,o),nc(r,e,o,-1))}return gc(),Us(e,t,s,r=us(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_c.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=co(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Go[Qo++]=Yo,Go[Qo++]=Xo,Go[Qo++]=Zo,Yo=e.id,Xo=e.overflow,Zo=t),t=Ds(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Mc(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?js(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&gi(r),xi(t,e.child,null,n),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ws(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ri(e.return,t,n)}function zs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=ea.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ws(e,n,t);else if(19===e.tag)Ws(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_o(ea,r),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ta(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),zs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}zs(t,!0,n,null,i);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ks(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:case 17:return Mo(t.type)&&No(),Ks(t),null;case 3:return r=t.stateNode,Yi(),Ao(Oo),Ao(Ro),ra(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(ac(ai),ai=null))),Ls(e,t),Ks(t),null;case 5:Ji(t);var o=Qi(Gi.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Ks(t),null}if(e=Qi(Ki.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":Z(r,a),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ur("invalid",r);break;case"textarea":oe(r,a),Ur("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var c=a[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Xr(r.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Ur("scroll",r)}switch(n){case"input":K(r),J(r,a,!0);break;case"textarea":K(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),o=r;break;case"iframe":case"object":case"embed":Ur("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ir.length;o++)Ur(Ir[o],e);o=r;break;case"source":Ur("error",e),o=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),o=r;break;case"details":Ur("toggle",e),o=r;break;case"input":Z(e,r),o=Q(e,r),Ur("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=$({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Ur("invalid",e)}for(a in ye(n,o),c=o)if(c.hasOwnProperty(a)){var u=c[a];"style"===a?me(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===a?"string"===typeof u?("textarea"!==n||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Ur("scroll",e):null!=u&&b(e,a,u,l))}switch(n){case"input":K(e),J(e,r,!1);break;case"textarea":K(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ks(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=Qi(Gi.current),Qi(Ki.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Xr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Ks(t),null;case 13:if(Ao(ea),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ks(t),a=!1}else null!==ai&&(ac(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Nl&&(Nl=3):gc())),null!==t.updateQueue&&(t.flags|=4),Ks(t),null);case 4:return Yi(),Ls(e,t),null===e&&Br(t.stateNode.containerInfo),Ks(t),null;case 10:return Ti(t.type._context),Ks(t),null;case 19:if(Ao(ea),null===(a=t.memoizedState))return Ks(t),null;if(r=0!==(128&t.flags),null===(l=a.rendering))if(r)Vs(a,!1);else{if(0!==Nl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ta(e))){for(t.flags|=128,Vs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _o(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Bl&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ta(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Ks(t),null}else 2*Ye()-a.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,r=!0,Vs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ea.current,_o(ea,r?1&n|2:1&n),t):(Ks(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ll)&&(Ks(t),6&t.subtreeFlags&&(t.flags|=8192)):Ks(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Yi(),Ao(Oo),Ao(Ro),ra(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(Ao(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ao(ea),null;case 4:return Yi(),null;case 10:return Ti(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qi(Ki.current);var i,a=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),a=[];break;case"select":o=$({},o,{value:void 0}),r=$({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Jr)}for(u in ye(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(a=a||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Ur("scroll",e),a||l===c||(a=[])):(a=a||[]).push(u,c))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Zs=!1,Ys="function"===typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[mo],delete t[vo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Zs||Js(n,t);case 6:var r=ul,o=dl;ul=null,fl(e,t,n),dl=o,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Bt(e)):lo(ul,n.stateNode));break;case 4:r=ul,o=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Zs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Zs&&(Js(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Zs=(r=Zs)||null!==n.memoizedState,fl(e,t,n),Zs=r):fl(e,t,n);break;default:fl(e,t,n)}}function pl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Tc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(i(160));hl(a,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Sc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(m){Sc(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return);break;case 5:if(gl(t,e),vl(e),512&r&&null!==n&&Js(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Sc(e,e.return,m)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var u=be(l,a);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?me(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,u)}switch(l){case"input":X(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(m){Sc(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Sc(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ye())),4&r&&pl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Zs=(u=Zs)||d,gl(t,e),Zs=u):gl(t,e),vl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Js(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){r=h,n=h.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Sc(r,n,m)}}break;case 5:Js(h,h.return);break;case 22:if(null!==h.memoizedState){xl(f);continue}}null!==p?(p.return=h,Xs=p):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),vl(e),4&r&&pl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(al(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(i(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e,t,n)}function bl(e,t,n){for(var r=0!==(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Qs;var c=Zs;if(Qs=a,(Zs=l)&&!c)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?Cl(o):null!==l?(l.return=a,Xs=l):Cl(o);for(;null!==i;)Xs=i,bl(i,t,n),i=i.sibling;Xs=o,Qs=s,Zs=c}wl(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Xs=i):wl(e)}}function wl(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Hi(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Bt(f)}}}break;default:throw Error(i(163))}Zs||512&t.flags&&ol(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function Cl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Sc(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Sc(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Sc(t,a,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,Sl=Math.ceil,El=w.ReactCurrentDispatcher,Al=w.ReactCurrentOwner,_l=w.ReactCurrentBatchConfig,Tl=0,Rl=null,Ol=null,Pl=0,Ll=0,Ml=Eo(0),Nl=0,Il=null,jl=0,$l=0,Dl=0,Ul=null,Wl=null,zl=0,Bl=1/0,Fl=null,Hl=!1,Vl=null,Kl=null,ql=!1,Gl=null,Ql=0,Zl=0,Yl=null,Xl=-1,Jl=0;function ec(){return 0!==(6&Tl)?Ye():-1!==Xl?Xl:Xl=Ye()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Tl)&&0!==Pl?Pl&-Pl:null!==mi.transition?(0===Jl&&(Jl=gt()),Jl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Zt(e.type)}function nc(e,t,n,r){if(50<Zl)throw Zl=0,Yl=null,Error(i(185));vt(e,n,r),0!==(2&Tl)&&e===Rl||(e===Rl&&(0===(2&Tl)&&($l|=n),4===Nl&&sc(e,Pl)),rc(e,r),1===n&&0===Tl&&0===(1&t.mode)&&(Bl=Ye()+500,Wo&&Fo()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Rl?Pl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Wo=!0,Bo(e)}(lc.bind(null,e)):Bo(lc.bind(null,e)),ao((function(){0===(6&Tl)&&Fo()})),n=null;else{switch(wt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Xl=-1,Jl=0,0!==(6&Tl))throw Error(i(327));var n=e.callbackNode;if(Cc()&&e.callbackNode!==n)return null;var r=ft(e,e===Rl?Pl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var o=Tl;Tl|=2;var a=pc();for(Rl===e&&Pl===t||(Fl=null,Bl=Ye()+500,fc(e,t));;)try{yc();break}catch(l){hc(e,l)}_i(),El.current=a,Tl=o,null!==Ol?t=0:(Rl=null,Pl=0,t=Nl)}if(0!==t){if(2===t&&(0!==(o=pt(e))&&(r=o,t=ic(e,o))),1===t)throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;if(6===t)sc(e,r);else{if(o=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=mc(e,r))&&(0!==(a=pt(e))&&(r=a,t=ic(e,a))),1===t))throw n=Il,fc(e,0),sc(e,r),rc(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Wl,Fl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),t);break}xc(e,Wl,Fl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sl(r/1960))-r)){e.timeoutHandle=ro(xc.bind(null,e,Wl,Fl),r);break}xc(e,Wl,Fl);break;default:throw Error(i(329))}}}return rc(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Wl,Wl=n,null!==t&&ac(t)),e}function ac(e){null===Wl?Wl=e:Wl.push.apply(Wl,e)}function sc(e,t){for(t&=~Dl,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Tl))throw Error(i(327));Cc();var t=ft(e,0);if(0===(1&t))return rc(e,Ye()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ic(e,r))}if(1===n)throw n=Il,fc(e,0),sc(e,t),rc(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Wl,Fl),rc(e,Ye()),null}function cc(e,t){var n=Tl;Tl|=1;try{return e(t)}finally{0===(Tl=n)&&(Bl=Ye()+500,Wo&&Fo())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&Tl)&&Cc();var t=Tl;Tl|=1;var n=_l.transition,r=bt;try{if(_l.transition=null,bt=1,e)return e()}finally{bt=r,_l.transition=n,0===(6&(Tl=t))&&Fo()}}function dc(){Ll=Ml.current,Ao(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&No();break;case 3:Yi(),Ao(Oo),Ao(Ro),ra();break;case 5:Ji(r);break;case 4:Yi();break;case 13:case 19:Ao(ea);break;case 10:Ti(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Rl=e,Ol=e=Mc(e.current,null),Pl=Ll=t,Nl=0,Il=null,Dl=$l=jl=0,Wl=Ul=null,null!==Li){for(t=0;t<Li.length;t++)if(null!==(r=(n=Li[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Li=null}return e}function hc(e,t){for(;;){var n=Ol;try{if(_i(),oa.current=Xa,ua){for(var r=sa.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ua=!1}if(aa=0,ca=la=sa=null,da=!1,fa=0,Al.current=null,null===n||null===n.return){Nl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,vs(p,s,l,0,t),1&p.mode&&gs(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(0===(1&t)){gs(a,u,t),gc();break e}c=Error(i(426))}else if(ii&&1&l.mode){var v=ms(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),vs(v,s,l,0,t),gi(cs(c,l));break e}}a=c=cs(c,l),4!==Nl&&(Nl=2),null===Ul?Ul=[a]:Ul.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,hs(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Kl||!Kl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Bi(a,ps(a,l,t));break e}}a=a.return}while(null!==a)}wc(n)}catch(w){t=w,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function pc(){var e=El.current;return El.current=Xa,null===e?Xa:e}function gc(){0!==Nl&&3!==Nl&&2!==Nl||(Nl=4),null===Rl||0===(268435455&jl)&&0===(268435455&$l)||sc(Rl,Pl)}function mc(e,t){var n=Tl;Tl|=2;var r=pc();for(Rl===e&&Pl===t||(Fl=null,fc(e,t));;)try{vc();break}catch(o){hc(e,o)}if(_i(),Tl=n,El.current=r,null!==Ol)throw Error(i(261));return Rl=null,Pl=0,Nl}function vc(){for(;null!==Ol;)bc(Ol)}function yc(){for(;null!==Ol&&!Qe();)bc(Ol)}function bc(e){var t=kl(e.alternate,e,Ll);e.memoizedProps=e.pendingProps,null===t?wc(e):Ol=t,Al.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Ll)))return void(Ol=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Nl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xc(e,t,n){var r=bt,o=_l.transition;try{_l.transition=null,bt=1,function(e,t,n,r){do{Cc()}while(null!==Gl);if(0!==(6&Tl))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Rl&&(Ol=Rl=null,Pl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Rc(tt,(function(){return Cc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=_l.transition,_l.transition=null;var s=bt;bt=1;var l=Tl;Tl|=4,Al.current=null,function(e,t){if(eo=Ht,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===o&&(l=s),h===a&&++d===r&&(c=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(x){Sc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}g=tl,tl=!1}(e,n),ml(n,e),pr(to),Ht=!!eo,to=eo=null,e.current=n,yl(n,e,o),Ze(),Tl=l,bt=s,_l.transition=a}else e.current=n;if(ql&&(ql=!1,Gl=e,Ql=o),a=e.pendingLanes,0===a&&(Kl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=Vl,Vl=null,e;0!==(1&Ql)&&0!==e.tag&&Cc(),a=e.pendingLanes,0!==(1&a)?e===Yl?Zl++:(Zl=0,Yl=e):Zl=0,Fo()}(e,t,n,r)}finally{_l.transition=o,bt=r}return null}function Cc(){if(null!==Gl){var e=wt(Ql),t=_l.transition,n=bt;try{if(_l.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Ql=0,0!==(6&Tl))throw Error(i(331));var o=Tl;for(Tl|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(0!==(16&Xs.flags)){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Xs=u;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var h=(d=Xs).sibling,p=d.return;if(il(d),d===u){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Xs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(a=Xs).flags))switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(0!==(2048&(l=Xs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(C){Sc(l,l.return,C)}if(l===s){Xs=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Xs=x;break e}Xs=l.return}}if(Tl=o,Fo(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(C){}r=!0}return r}finally{bt=n,_l.transition=t}}return!1}function kc(e,t,n){e=Wi(e,t=hs(0,t=cs(n,t),1),1),t=ec(),null!==e&&(vt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kl||!Kl.has(r))){t=Wi(t,e=ps(t,e=cs(n,e),1),1),e=ec(),null!==t&&(vt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Rl===e&&(Pl&n)===n&&(4===Nl||3===Nl&&(130023424&Pl)===Pl&&500>Ye()-zl?fc(e,0):Dl|=n),rc(e,t)}function Ac(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Ii(e,t))&&(vt(e,t,n),rc(e,n))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ac(e,n)}function Tc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Ac(e,n)}function Rc(e,t){return qe(e,t)}function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,n,r){return new Oc(e,t,n,r)}function Lc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,o,a){var s=2;if(r=e,"function"===typeof e)Lc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Ic(n.children,o,a,t);case S:s=8,o|=8;break;case E:return(e=Pc(12,n,t,2|o)).elementType=E,e.lanes=a,e;case R:return(e=Pc(13,n,t,o)).elementType=R,e.lanes=a,e;case O:return(e=Pc(19,n,t,o)).elementType=O,e.lanes=a,e;case M:return jc(n,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case A:s=10;break e;case _:s=9;break e;case T:s=11;break e;case P:s=14;break e;case L:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Pc(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ic(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function Dc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,i,a,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Pc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$i(i),e}function zc(e){if(!e)return To;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mo(n))return jo(e,n,t)}return t}function Bc(e,t,n,r,o,i,a,s,l){return(e=Wc(n,r,!0,e,0,i,0,s,l)).context=zc(null),n=e.current,(i=Ui(r=ec(),o=tc(n))).callback=void 0!==t&&null!==t?t:null,Wi(n,i,o),e.current.lanes=o,vt(e,o,r),rc(e,r),e}function Fc(e,t,n,r){var o=t.current,i=ec(),a=tc(o);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Wi(o,t,a))&&(nc(e,o,a,i),zi(e,o,a)),a}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}kl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oo.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Rs(t),pi();break;case 5:Xi(t);break;case 1:Mo(t.type)&&$o(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_o(ki,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_o(ea,1&ea.current),t.flags|=128,null):0!==(n&t.child.childLanes)?$s(e,t,n):(_o(ea,1&ea.current),null!==(e=Hs(e,t,n))?e.sibling:null);_o(ea,1&ea.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),_o(ea,ea.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Hs(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ii&&0!==(1048576&t.flags)&&ei(t,qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fs(e,t),e=t.pendingProps;var o=Lo(t,Ro.current);Oi(t,n),o=ma(null,t,r,e,o,n);var a=va();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(r)?(a=!0,$o(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,$i(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fs(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"===typeof e)return Lc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=ns(r,e),o){case 0:t=As(null,t,r,e,n);break e;case 1:t=_s(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=Cs(null,t,r,ns(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,As(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 1:return r=t.type,o=t.pendingProps,_s(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 3:e:{if(Rs(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Fi(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=co(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Ci(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return Xi(t),null===e&&ui(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),Es(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ui(t),null;case 13:return $s(e,t,n);case 4:return Zi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,xs(e,t,r,o=t.elementType===r?o:ns(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,_o(ki,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Oo.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ui(-1,n&-n)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Ri(a.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ri(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Oi(t,n),r=r(o=Pi(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=ns(r=t.type,t.pendingProps),Cs(e,t,r,o=ns(r.type,o),n);case 15:return ks(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ns(r,o),Fs(e,t),t.tag=1,Mo(r)?(e=!0,$o(t)):e=!1,Oi(t,n),as(t,r,o),ls(t,r,o,n),Ts(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Ss(e,t,n)}throw Error(i(156,t.tag))};var qc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xc(){}function Jc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"===typeof o){var s=o;o=function(){var e=Hc(a);s.call(e)}}Fc(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"===typeof r){var i=r;r=function(){var e=Hc(a);i.call(e)}}var a=Bc(t,r,e,0,null,!1,0,"",Xc);return e._reactRootContainer=a,e[go]=a.current,Br(8===e.nodeType?e.parentNode:e),uc(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof r){var s=r;r=function(){var e=Hc(l);s.call(e)}}var l=Wc(e,0,!1,null,0,!1,0,"",Xc);return e._reactRootContainer=l,e[go]=l.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Fc(t,l,n,r)})),l}(n,t,e,o,r);return Hc(a)}Qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Fc(e,t,null,null)},Qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Fc(null,e,null,null)})),t[go]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&$t(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ye()),0===(6&Tl)&&(Bl=Ye()+500,Fo()))}break;case 13:uc((function(){var t=Ii(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},Ct=function(e){if(13===e.tag){var t=Ii(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},kt=function(e){if(13===e.tag){var t=tc(e),n=Ii(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ce=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Co(r);if(!o)throw Error(i(90));q(r),X(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[wo,xo,Co,Ae,_e,cc]},tu={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),it=ru}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Zc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:C,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Zc(e))throw Error(i(299));var n=!1,r="",o=qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Wc(e,1,!1,null,0,n,0,r,o),e[go]=t.current,Br(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Zc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,o,0,a,s),e[go]=t.current,Br(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Qc(t)},t.render=function(e,t,n){if(!Yc(t))throw Error(i(200));return Jc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yc(e))throw Error(i(40));return!!e._reactRootContainer&&(uc((function(){Jc(null,null,e,!1,(function(){e._reactRootContainer=null,e[go]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Jc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},1352:(e,t,n)=>{"use strict";var r=n(7119);t.H=r.createRoot,r.hydrateRoot},7119:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(8345)},8577:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case p:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.Memo=p},6429:(e,t,n)=>{"use strict";e.exports=n(8577)},2654:(e,t,n)=>{"use strict";var r=n(9950),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},2049:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,C=Object.prototype.hasOwnProperty,k={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,o)&&!S.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:k.current}}function A(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function R(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+T(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(_,"$&/")+"/"),R(a,t,o,"",(function(e){return e}))):null!=a&&(A(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+T(s=e[c],c);l+=R(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=R(s=s.value,t,o,u=i+T(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return R(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},M={transition:null},N={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};function I(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.act=I,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=g({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)C.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=I,t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.1"},9950:(e,t,n)=>{"use strict";e.exports=n(2049)},4414:(e,t,n)=>{"use strict";e.exports=n(2654)},1761:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,h=3,p=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function x(e){if(m=!1,w(e),!g)if(null!==r(c))g=!0,M(C);else{var t=r(u);null!==t&&N(x,t.startTime-e)}}function C(e,n){g=!1,m&&(m=!1,y(A),A=-1),p=!0;var i=h;try{for(w(n),f=r(c);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"===typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?f.callback=s:f===r(c)&&o(c),w(n)}else o(c);f=r(c)}if(null!==f)var l=!0;else{var d=r(u);null!==d&&N(x,d.startTime-n),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,E=null,A=-1,_=5,T=-1;function R(){return!(t.unstable_now()-T<_)}function O(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(S=!1,E=null)}}else S=!1}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,L=P.port2;P.port1.onmessage=O,k=function(){L.postMessage(null)}}else k=function(){v(O,0)};function M(e){E=e,S||(S=!0,k())}function N(e,n){A=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||p||(g=!0,M(C))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(u,e),null===r(c)&&e===r(u)&&(m?(y(A),A=-1):m=!0,N(x,i-a))):(e.sortIndex=s,n(c,e),g||p||(g=!0,M(C))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5340:(e,t,n)=>{"use strict";e.exports=n(1761)},4008:function(e){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!==typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"===typeof atob?"undefined"!==typeof Buffer.from?(e.encodeBase64=function(e){return Buffer.from(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(Buffer.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new Buffer(e).toString("base64")},e.decodeBase64=function(e){return t(e),new Uint8Array(Array.prototype.slice.call(new Buffer(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){t(e);var n,r=atob(e),o=new Uint8Array(r.length);for(n=0;n<r.length;n++)o[n]=r.charCodeAt(n);return o}),e}))},3477:(e,t,n)=>{!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},o=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var a=t(),s=t([1]),l=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function g(e,t,n,r,o){var i,a=0;for(i=0;i<o;i++)a|=e[t+i]^n[r+i];return(1&a-1>>>8)-1}function m(e,t,n,r){return g(e,t,n,r,16)}function v(e,t,n,r){return g(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=i,C=a,k=s,S=l,E=c,A=u,_=d,T=f,R=h,O=p,P=g,L=m,M=v,N=y,I=b,j=w,$=0;$<20;$+=2)x^=(o=(M^=(o=(R^=(o=(E^=(o=x+M|0)<<7|o>>>25)+x|0)<<9|o>>>23)+E|0)<<13|o>>>19)+R|0)<<18|o>>>14,A^=(o=(C^=(o=(N^=(o=(O^=(o=A+C|0)<<7|o>>>25)+A|0)<<9|o>>>23)+O|0)<<13|o>>>19)+N|0)<<18|o>>>14,P^=(o=(_^=(o=(k^=(o=(I^=(o=P+_|0)<<7|o>>>25)+P|0)<<9|o>>>23)+I|0)<<13|o>>>19)+k|0)<<18|o>>>14,j^=(o=(L^=(o=(T^=(o=(S^=(o=j+L|0)<<7|o>>>25)+j|0)<<9|o>>>23)+S|0)<<13|o>>>19)+T|0)<<18|o>>>14,x^=(o=(S^=(o=(k^=(o=(C^=(o=x+S|0)<<7|o>>>25)+x|0)<<9|o>>>23)+C|0)<<13|o>>>19)+k|0)<<18|o>>>14,A^=(o=(E^=(o=(T^=(o=(_^=(o=A+E|0)<<7|o>>>25)+A|0)<<9|o>>>23)+_|0)<<13|o>>>19)+T|0)<<18|o>>>14,P^=(o=(O^=(o=(R^=(o=(L^=(o=P+O|0)<<7|o>>>25)+P|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,j^=(o=(I^=(o=(N^=(o=(M^=(o=j+I|0)<<7|o>>>25)+j|0)<<9|o>>>23)+M|0)<<13|o>>>19)+N|0)<<18|o>>>14;x=x+i|0,C=C+a|0,k=k+s|0,S=S+l|0,E=E+c|0,A=A+u|0,_=_+d|0,T=T+f|0,R=R+h|0,O=O+p|0,P=P+g|0,L=L+m|0,M=M+v|0,N=N+y|0,I=I+b|0,j=j+w|0,e[0]=x>>>0&255,e[1]=x>>>8&255,e[2]=x>>>16&255,e[3]=x>>>24&255,e[4]=C>>>0&255,e[5]=C>>>8&255,e[6]=C>>>16&255,e[7]=C>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=_>>>0&255,e[25]=_>>>8&255,e[26]=_>>>16&255,e[27]=_>>>24&255,e[28]=T>>>0&255,e[29]=T>>>8&255,e[30]=T>>>16&255,e[31]=T>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=L>>>0&255,e[45]=L>>>8&255,e[46]=L>>>16&255,e[47]=L>>>24&255,e[48]=M>>>0&255,e[49]=M>>>8&255,e[50]=M>>>16&255,e[51]=M>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=j>>>0&255,e[61]=j>>>8&255,e[62]=j>>>16&255,e[63]=j>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var o,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,c=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,v=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,y=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,b=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,x=0;x<20;x+=2)i^=(o=(v^=(o=(h^=(o=(c^=(o=i+v|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+h|0)<<18|o>>>14,u^=(o=(a^=(o=(y^=(o=(p^=(o=u+a|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+y|0)<<18|o>>>14,g^=(o=(d^=(o=(s^=(o=(b^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+b|0)<<13|o>>>19)+s|0)<<18|o>>>14,w^=(o=(m^=(o=(f^=(o=(l^=(o=w+m|0)<<7|o>>>25)+w|0)<<9|o>>>23)+l|0)<<13|o>>>19)+f|0)<<18|o>>>14,i^=(o=(l^=(o=(s^=(o=(a^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+a|0)<<13|o>>>19)+s|0)<<18|o>>>14,u^=(o=(c^=(o=(f^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+f|0)<<18|o>>>14,g^=(o=(p^=(o=(h^=(o=(m^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+m|0)<<13|o>>>19)+h|0)<<18|o>>>14,w^=(o=(b^=(o=(y^=(o=(v^=(o=w+b|0)<<7|o>>>25)+w|0)<<9|o>>>23)+v|0)<<13|o>>>19)+y|0)<<18|o>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function x(e,t,n,r,o,i,a){var s,l,c=new Uint8Array(16),u=new Uint8Array(64);for(l=0;l<16;l++)c[l]=0;for(l=0;l<8;l++)c[l]=i[l];for(;o>=64;){for(y(u,c,a,w),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(s=1,l=8;l<16;l++)s=s+(255&c[l])|0,c[l]=255&s,s>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,a,w),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function C(e,t,n,r,o){var i,a,s=new Uint8Array(16),l=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(y(l,s,o,w),a=0;a<64;a++)e[t+a]=l[a];for(i=1,a=8;a<16;a++)i=i+(255&s[a])|0,s[a]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,s,o,w),a=0;a<n;a++)e[t+a]=l[a];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return C(e,t,n,a,i)}function S(e,t,n,r,o,i,a){var s=new Uint8Array(32);b(s,i,a,w);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,s)}var E=function(e){var t,n,r,o,i,a,s,l;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),o=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|o<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|l<<8),this.r[9]=l>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,n,r,o,i){var a=new E(i);return a.update(n,r,o),a.finish(e,t),0}function _(e,t,n,r,o,i){var a=new Uint8Array(16);return A(a,0,n,r,o,i),m(e,t,a,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),A(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function R(e,t,n,r,o){var i,a=new Uint8Array(32);if(n<32)return-1;if(k(a,0,32,r,o),0!==_(t,16,t,32,n-32,a))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function L(e,t,n){for(var r,o=~(n-1),i=0;i<16;i++)r=o&(e[i]^t[i]),e[i]^=r,t[i]^=r}function M(e,n){var r,o,i,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),o=0;o<2;o++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),i=a[15]>>16&1,a[14]&=65535,L(s,a,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function N(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return M(n,e),M(r,t),v(n,0,r,0)}function I(e){var t=new Uint8Array(32);return M(t,e),1&t[0]}function j(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function $(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function D(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function U(e,t,n){var r,o,i=0,a=0,s=0,l=0,c=0,u=0,d=0,f=0,h=0,p=0,g=0,m=0,v=0,y=0,b=0,w=0,x=0,C=0,k=0,S=0,E=0,A=0,_=0,T=0,R=0,O=0,P=0,L=0,M=0,N=0,I=0,j=n[0],$=n[1],D=n[2],U=n[3],W=n[4],z=n[5],B=n[6],F=n[7],H=n[8],V=n[9],K=n[10],q=n[11],G=n[12],Q=n[13],Z=n[14],Y=n[15];i+=(r=t[0])*j,a+=r*$,s+=r*D,l+=r*U,c+=r*W,u+=r*z,d+=r*B,f+=r*F,h+=r*H,p+=r*V,g+=r*K,m+=r*q,v+=r*G,y+=r*Q,b+=r*Z,w+=r*Y,a+=(r=t[1])*j,s+=r*$,l+=r*D,c+=r*U,u+=r*W,d+=r*z,f+=r*B,h+=r*F,p+=r*H,g+=r*V,m+=r*K,v+=r*q,y+=r*G,b+=r*Q,w+=r*Z,x+=r*Y,s+=(r=t[2])*j,l+=r*$,c+=r*D,u+=r*U,d+=r*W,f+=r*z,h+=r*B,p+=r*F,g+=r*H,m+=r*V,v+=r*K,y+=r*q,b+=r*G,w+=r*Q,x+=r*Z,C+=r*Y,l+=(r=t[3])*j,c+=r*$,u+=r*D,d+=r*U,f+=r*W,h+=r*z,p+=r*B,g+=r*F,m+=r*H,v+=r*V,y+=r*K,b+=r*q,w+=r*G,x+=r*Q,C+=r*Z,k+=r*Y,c+=(r=t[4])*j,u+=r*$,d+=r*D,f+=r*U,h+=r*W,p+=r*z,g+=r*B,m+=r*F,v+=r*H,y+=r*V,b+=r*K,w+=r*q,x+=r*G,C+=r*Q,k+=r*Z,S+=r*Y,u+=(r=t[5])*j,d+=r*$,f+=r*D,h+=r*U,p+=r*W,g+=r*z,m+=r*B,v+=r*F,y+=r*H,b+=r*V,w+=r*K,x+=r*q,C+=r*G,k+=r*Q,S+=r*Z,E+=r*Y,d+=(r=t[6])*j,f+=r*$,h+=r*D,p+=r*U,g+=r*W,m+=r*z,v+=r*B,y+=r*F,b+=r*H,w+=r*V,x+=r*K,C+=r*q,k+=r*G,S+=r*Q,E+=r*Z,A+=r*Y,f+=(r=t[7])*j,h+=r*$,p+=r*D,g+=r*U,m+=r*W,v+=r*z,y+=r*B,b+=r*F,w+=r*H,x+=r*V,C+=r*K,k+=r*q,S+=r*G,E+=r*Q,A+=r*Z,_+=r*Y,h+=(r=t[8])*j,p+=r*$,g+=r*D,m+=r*U,v+=r*W,y+=r*z,b+=r*B,w+=r*F,x+=r*H,C+=r*V,k+=r*K,S+=r*q,E+=r*G,A+=r*Q,_+=r*Z,T+=r*Y,p+=(r=t[9])*j,g+=r*$,m+=r*D,v+=r*U,y+=r*W,b+=r*z,w+=r*B,x+=r*F,C+=r*H,k+=r*V,S+=r*K,E+=r*q,A+=r*G,_+=r*Q,T+=r*Z,R+=r*Y,g+=(r=t[10])*j,m+=r*$,v+=r*D,y+=r*U,b+=r*W,w+=r*z,x+=r*B,C+=r*F,k+=r*H,S+=r*V,E+=r*K,A+=r*q,_+=r*G,T+=r*Q,R+=r*Z,O+=r*Y,m+=(r=t[11])*j,v+=r*$,y+=r*D,b+=r*U,w+=r*W,x+=r*z,C+=r*B,k+=r*F,S+=r*H,E+=r*V,A+=r*K,_+=r*q,T+=r*G,R+=r*Q,O+=r*Z,P+=r*Y,v+=(r=t[12])*j,y+=r*$,b+=r*D,w+=r*U,x+=r*W,C+=r*z,k+=r*B,S+=r*F,E+=r*H,A+=r*V,_+=r*K,T+=r*q,R+=r*G,O+=r*Q,P+=r*Z,L+=r*Y,y+=(r=t[13])*j,b+=r*$,w+=r*D,x+=r*U,C+=r*W,k+=r*z,S+=r*B,E+=r*F,A+=r*H,_+=r*V,T+=r*K,R+=r*q,O+=r*G,P+=r*Q,L+=r*Z,M+=r*Y,b+=(r=t[14])*j,w+=r*$,x+=r*D,C+=r*U,k+=r*W,S+=r*z,E+=r*B,A+=r*F,_+=r*H,T+=r*V,R+=r*K,O+=r*q,P+=r*G,L+=r*Q,M+=r*Z,N+=r*Y,w+=(r=t[15])*j,a+=38*(C+=r*D),s+=38*(k+=r*U),l+=38*(S+=r*W),c+=38*(E+=r*z),u+=38*(A+=r*B),d+=38*(_+=r*F),f+=38*(T+=r*H),h+=38*(R+=r*V),p+=38*(O+=r*K),g+=38*(P+=r*q),m+=38*(L+=r*G),v+=38*(M+=r*Q),y+=38*(N+=r*Z),b+=38*(I+=r*Y),i=(r=(i+=38*(x+=r*$))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+o+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),l=(r=l+o+65535)-65536*(o=Math.floor(r/65536)),c=(r=c+o+65535)-65536*(o=Math.floor(r/65536)),u=(r=u+o+65535)-65536*(o=Math.floor(r/65536)),d=(r=d+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),m=(r=m+o+65535)-65536*(o=Math.floor(r/65536)),v=(r=v+o+65535)-65536*(o=Math.floor(r/65536)),y=(r=y+o+65535)-65536*(o=Math.floor(r/65536)),b=(r=b+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+o+65535)-65536*(o=Math.floor(r/65536)),i+=o-1+37*(o-1),e[0]=i,e[1]=a,e[2]=s,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=g,e[11]=m,e[12]=v,e[13]=y,e[14]=b,e[15]=w}function W(e,t){U(e,t,t)}function z(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)W(o,o),2!==r&&4!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function B(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)W(o,o),1!==r&&U(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,a=new Uint8Array(32),s=new Float64Array(80),c=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(i=0;i<31;i++)a[i]=n[i];for(a[31]=127&n[31]|64,a[0]&=248,j(s,r),i=0;i<16;i++)u[i]=s[i],f[i]=c[i]=d[i]=0;for(c[0]=f[0]=1,i=254;i>=0;--i)L(c,u,o=a[i>>>3]>>>(7&i)&1),L(d,f,o),$(h,c,d),D(c,c,d),$(d,u,f),D(u,u,f),W(f,h),W(p,c),U(c,d,c),U(d,u,h),$(h,c,d),D(c,c,d),W(u,c),D(d,f,p),U(c,d,l),$(c,c,f),U(d,d,c),U(c,f,p),U(f,u,s),W(u,h),L(c,u,o),L(d,f,o);for(i=0;i<16;i++)s[i+16]=c[i],s[i+32]=d[i],s[i+48]=u[i],s[i+64]=f[i];var g=s.subarray(32),m=s.subarray(16);return z(g,g),U(m,m,g),M(e,m),0}function H(e,t){return F(e,t,i)}function V(e,t){return r(t,32),H(e,t)}function K(e,t,n){var r=new Uint8Array(32);return F(r,n,t),b(e,o,r,w)}E.prototype.blocks=function(e,t,n){for(var r,o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],A=this.h[3],_=this.h[4],T=this.h[5],R=this.h[6],O=this.h[7],P=this.h[8],L=this.h[9],M=this.r[0],N=this.r[1],I=this.r[2],j=this.r[3],$=this.r[4],D=this.r[5],U=this.r[6],W=this.r[7],z=this.r[8],B=this.r[9];n>=16;)f=d=0,f+=(k+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*M,f+=(S+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*B),f+=(E+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*z),f+=(A+=8191&(i>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*W),d=(f+=(_+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,f&=8191,f+=(T+=s>>>1&8191)*(5*D),f+=(R+=8191&(s>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*$),f+=(O+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*j),f+=(P+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),h=d+=(f+=(L+=u>>>5|C)*(5*N))>>>13,h+=k*N,h+=S*M,h+=E*(5*B),h+=A*(5*z),d=(h+=_*(5*W))>>>13,h&=8191,h+=T*(5*U),h+=R*(5*D),h+=O*(5*$),h+=P*(5*j),d+=(h+=L*(5*I))>>>13,h&=8191,p=d,p+=k*I,p+=S*N,p+=E*M,p+=A*(5*B),d=(p+=_*(5*z))>>>13,p&=8191,p+=T*(5*W),p+=R*(5*U),p+=O*(5*D),p+=P*(5*$),g=d+=(p+=L*(5*j))>>>13,g+=k*j,g+=S*I,g+=E*N,g+=A*M,d=(g+=_*(5*B))>>>13,g&=8191,g+=T*(5*z),g+=R*(5*W),g+=O*(5*U),g+=P*(5*D),m=d+=(g+=L*(5*$))>>>13,m+=k*$,m+=S*j,m+=E*I,m+=A*N,d=(m+=_*M)>>>13,m&=8191,m+=T*(5*B),m+=R*(5*z),m+=O*(5*W),m+=P*(5*U),v=d+=(m+=L*(5*D))>>>13,v+=k*D,v+=S*$,v+=E*j,v+=A*I,d=(v+=_*N)>>>13,v&=8191,v+=T*M,v+=R*(5*B),v+=O*(5*z),v+=P*(5*W),y=d+=(v+=L*(5*U))>>>13,y+=k*U,y+=S*D,y+=E*$,y+=A*j,d=(y+=_*I)>>>13,y&=8191,y+=T*N,y+=R*M,y+=O*(5*B),y+=P*(5*z),b=d+=(y+=L*(5*W))>>>13,b+=k*W,b+=S*U,b+=E*D,b+=A*$,d=(b+=_*j)>>>13,b&=8191,b+=T*I,b+=R*N,b+=O*M,b+=P*(5*B),w=d+=(b+=L*(5*z))>>>13,w+=k*z,w+=S*W,w+=E*U,w+=A*D,d=(w+=_*$)>>>13,w&=8191,w+=T*j,w+=R*I,w+=O*N,w+=P*M,x=d+=(w+=L*(5*B))>>>13,x+=k*B,x+=S*z,x+=E*W,x+=A*U,d=(x+=_*D)>>>13,x&=8191,x+=T*$,x+=R*j,x+=O*I,x+=P*N,k=f=8191&(d=(d=((d+=(x+=L*M)>>>13)<<2)+d|0)+(f&=8191)|0),S=h+=d>>>=13,E=p&=8191,A=g&=8191,_=m&=8191,T=v&=8191,R=y&=8191,O=b&=8191,P=w&=8191,L=x&=8191,t+=16,n-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=A,this.h[4]=_,this.h[5]=T,this.h[6]=R,this.h[7]=O,this.h[8]=P,this.h[9]=L},E.prototype.finish=function(e,t){var n,r,o,i,a=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,i=1;i<10;i++)a[i]=this.h[i]+n,n=a[i]>>>13,a[i]&=8191;for(a[9]-=8192,r=(1^n)-1,i=0;i<10;i++)a[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|a[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;i<8;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,n){var r,o;if(this.leftover){for((o=16-this.leftover)>n&&(o=n),r=0;r<o;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=o,t+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(o=n-n%16,this.blocks(e,t,o),t+=o,n-=o),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var q=T,G=R;var Q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Z(e,t,n,r){for(var o,i,a,s,l,c,u,d,f,h,p,g,m,v,y,b,w,x,C,k,S,E,A,_,T,R,O=new Int32Array(16),P=new Int32Array(16),L=e[0],M=e[1],N=e[2],I=e[3],j=e[4],$=e[5],D=e[6],U=e[7],W=t[0],z=t[1],B=t[2],F=t[3],H=t[4],V=t[5],K=t[6],q=t[7],G=0;r>=128;){for(C=0;C<16;C++)k=8*C+G,O[C]=n[k+0]<<24|n[k+1]<<16|n[k+2]<<8|n[k+3],P[C]=n[k+4]<<24|n[k+5]<<16|n[k+6]<<8|n[k+7];for(C=0;C<80;C++)if(o=L,i=M,a=N,s=I,l=j,c=$,u=D,U,f=W,h=z,p=B,g=F,m=H,v=V,y=K,q,A=65535&(E=q),_=E>>>16,T=65535&(S=U),R=S>>>16,A+=65535&(E=(H>>>14|j<<18)^(H>>>18|j<<14)^(j>>>9|H<<23)),_+=E>>>16,T+=65535&(S=(j>>>14|H<<18)^(j>>>18|H<<14)^(H>>>9|j<<23)),R+=S>>>16,A+=65535&(E=H&V^~H&K),_+=E>>>16,T+=65535&(S=j&$^~j&D),R+=S>>>16,S=Q[2*C],A+=65535&(E=Q[2*C+1]),_+=E>>>16,T+=65535&S,R+=S>>>16,S=O[C%16],_+=(E=P[C%16])>>>16,T+=65535&S,R+=S>>>16,T+=(_+=(A+=65535&E)>>>16)>>>16,A=65535&(E=x=65535&A|_<<16),_=E>>>16,T=65535&(S=w=65535&T|(R+=T>>>16)<<16),R=S>>>16,A+=65535&(E=(W>>>28|L<<4)^(L>>>2|W<<30)^(L>>>7|W<<25)),_+=E>>>16,T+=65535&(S=(L>>>28|W<<4)^(W>>>2|L<<30)^(W>>>7|L<<25)),R+=S>>>16,_+=(E=W&z^W&B^z&B)>>>16,T+=65535&(S=L&M^L&N^M&N),R+=S>>>16,d=65535&(T+=(_+=(A+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,b=65535&A|_<<16,A=65535&(E=g),_=E>>>16,T=65535&(S=s),R=S>>>16,_+=(E=x)>>>16,T+=65535&(S=w),R+=S>>>16,M=o,N=i,I=a,j=s=65535&(T+=(_+=(A+=65535&E)>>>16)>>>16)|(R+=T>>>16)<<16,$=l,D=c,U=u,L=d,z=f,B=h,F=p,H=g=65535&A|_<<16,V=m,K=v,q=y,W=b,C%16===15)for(k=0;k<16;k++)S=O[k],A=65535&(E=P[k]),_=E>>>16,T=65535&S,R=S>>>16,S=O[(k+9)%16],A+=65535&(E=P[(k+9)%16]),_+=E>>>16,T+=65535&S,R+=S>>>16,w=O[(k+1)%16],A+=65535&(E=((x=P[(k+1)%16])>>>1|w<<31)^(x>>>8|w<<24)^(x>>>7|w<<25)),_+=E>>>16,T+=65535&(S=(w>>>1|x<<31)^(w>>>8|x<<24)^w>>>7),R+=S>>>16,w=O[(k+14)%16],_+=(E=((x=P[(k+14)%16])>>>19|w<<13)^(w>>>29|x<<3)^(x>>>6|w<<26))>>>16,T+=65535&(S=(w>>>19|x<<13)^(x>>>29|w<<3)^w>>>6),R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,O[k]=65535&T|R<<16,P[k]=65535&A|_<<16;A=65535&(E=W),_=E>>>16,T=65535&(S=L),R=S>>>16,S=e[0],_+=(E=t[0])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[0]=L=65535&T|R<<16,t[0]=W=65535&A|_<<16,A=65535&(E=z),_=E>>>16,T=65535&(S=M),R=S>>>16,S=e[1],_+=(E=t[1])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[1]=M=65535&T|R<<16,t[1]=z=65535&A|_<<16,A=65535&(E=B),_=E>>>16,T=65535&(S=N),R=S>>>16,S=e[2],_+=(E=t[2])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[2]=N=65535&T|R<<16,t[2]=B=65535&A|_<<16,A=65535&(E=F),_=E>>>16,T=65535&(S=I),R=S>>>16,S=e[3],_+=(E=t[3])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[3]=I=65535&T|R<<16,t[3]=F=65535&A|_<<16,A=65535&(E=H),_=E>>>16,T=65535&(S=j),R=S>>>16,S=e[4],_+=(E=t[4])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[4]=j=65535&T|R<<16,t[4]=H=65535&A|_<<16,A=65535&(E=V),_=E>>>16,T=65535&(S=$),R=S>>>16,S=e[5],_+=(E=t[5])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[5]=$=65535&T|R<<16,t[5]=V=65535&A|_<<16,A=65535&(E=K),_=E>>>16,T=65535&(S=D),R=S>>>16,S=e[6],_+=(E=t[6])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[6]=D=65535&T|R<<16,t[6]=K=65535&A|_<<16,A=65535&(E=q),_=E>>>16,T=65535&(S=U),R=S>>>16,S=e[7],_+=(E=t[7])>>>16,T+=65535&S,R+=S>>>16,R+=(T+=(_+=(A+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&T|R<<16,t[7]=q=65535&A|_<<16,G+=128,r-=128}return r}function Y(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),a=new Uint8Array(256),s=n;for(o[0]=1779033703,o[1]=3144134277,o[2]=1013904242,o[3]=2773480762,o[4]=1359893119,o[5]=2600822924,o[6]=528734635,o[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,Z(o,i,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Z(o,i,a,n),r=0;r<8;r++)p(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),a=t(),s=t(),l=t(),c=t(),d=t(),f=t();D(r,e[1],e[0]),D(f,n[1],n[0]),U(r,r,f),$(o,e[0],e[1]),$(f,n[0],n[1]),U(o,o,f),U(i,e[3],n[3]),U(i,i,u),U(a,e[2],n[2]),$(a,a,a),D(s,o,r),D(l,a,i),$(c,a,i),$(d,o,r),U(e[0],s,l),U(e[1],d,c),U(e[2],c,l),U(e[3],s,d)}function J(e,t,n){var r;for(r=0;r<4;r++)L(e[r],t[r],n)}function ee(e,n){var r=t(),o=t(),i=t();z(i,n[2]),U(r,n[0],i),U(o,n[1],i),M(e,o),e[31]^=I(r)<<7}function te(e,t,n){var r,o;for(O(e[0],a),O(e[1],s),O(e[2],s),O(e[3],a),o=255;o>=0;--o)J(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),J(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],f),O(r[2],s),U(r[3],d,f),te(e,r,n)}function re(e,n,o){var i,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(o||r(n,32),Y(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,o,i;for(r=63;r>=32;--r){for(n=0,o=r-32,i=r-12;o<i;++o)t[o]+=n-16*t[r]*oe[o-(r-32)],n=Math.floor((t[o]+128)/256),t[o]-=256*n;t[o]+=n,t[r]=0}for(n=0,o=0;o<32;o++)t[o]+=n-(t[31]>>4)*oe[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*oe[o];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,o){var i,a,s=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,o,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=s[32+i];for(Y(c,e.subarray(32),r+32),ae(c),ne(d,c),ee(e,d),i=32;i<64;i++)e[i]=o[i];for(Y(l,e,r+64),ae(l),i=0;i<64;i++)u[i]=0;for(i=0;i<32;i++)u[i]=c[i];for(i=0;i<32;i++)for(a=0;a<32;a++)u[i+a]+=l[i]*s[a];return ie(e.subarray(32),u),f}function le(e,n,r,o){var i,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),i=t(),l=t(),u=t(),d=t(),f=t();return O(e[2],s),j(e[1],n),W(i,e[1]),U(l,i,c),D(i,i,e[2]),$(l,e[2],l),W(u,l),W(d,u),U(f,d,u),U(r,f,i),U(r,r,l),B(r,r),U(r,r,i),U(r,r,l),U(r,r,l),U(e[0],r,l),W(o,e[0]),U(o,o,l),N(o,i)&&U(e[0],e[0],h),W(o,e[0]),U(o,o,l),N(o,i)?-1:(I(e[0])===n[31]>>7&&D(e[0],a,e[0]),U(e[3],e[0],e[1]),0)}(f,o))return-1;for(i=0;i<r;i++)e[i]=n[i];for(i=0;i<32;i++)e[i+32]=o[i];if(Y(u,e,r),ae(u),te(d,f,u),ne(f,n.subarray(32)),X(d,f),ee(l,d),r-=64,v(n,0,l,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=n[i+64];return r}var ce=16,ue=64,de=32,fe=64;function he(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function pe(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:S,crypto_stream:k,crypto_stream_salsa20_xor:x,crypto_stream_salsa20:C,crypto_onetimeauth:A,crypto_onetimeauth_verify:_,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:T,crypto_secretbox_open:R,crypto_scalarmult:F,crypto_scalarmult_base:H,crypto_box_beforenm:K,crypto_box_afternm:q,crypto_box:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),q(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,o,i){var a=new Uint8Array(32);return K(a,o,i),G(e,t,n,r,a)},crypto_box_keypair:V,crypto_hash:Y,crypto_sign:se,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ce,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:ue,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:fe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:oe,pack25519:M,unpack25519:j,M:U,A:$,S:W,Z:D,pow2523:B,add:X,set25519:O,modL:ie,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(32+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+32]=e[i];return T(o,r,r.length,t,n),o.subarray(ce)},e.secretbox.open=function(e,t,n){pe(e,t,n),he(n,t);for(var r=new Uint8Array(ce+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+ce]=e[i];return r.length<32||0!==R(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ce,e.scalarMult=function(e,t){if(pe(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return F(n,e,t),n},e.scalarMult.base=function(e){if(pe(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return H(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox(t,n,i)},e.box.before=function(e,t){pe(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return K(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,o){var i=e.box.before(r,o);return e.secretbox.open(t,n,i)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(pe(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return H(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(pe(e,t),t.length!==fe)throw new Error("bad secret key size");var n=new Uint8Array(ue+e.length);return se(n,e,e.length,t),n},e.sign.open=function(e,t){if(pe(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var o=new Uint8Array(r),i=0;i<o.length;i++)o[i]=n[i];return o},e.sign.detached=function(t,n){for(var r=e.sign(t,n),o=new Uint8Array(ue),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(pe(e,t,n),t.length!==ue)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var r,o=new Uint8Array(ue+e.length),i=new Uint8Array(ue+e.length);for(r=0;r<ue;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+ue]=e[r];return le(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(fe);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(pe(e),e.length!==fe)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(pe(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(fe),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=fe,e.sign.seedLength=32,e.sign.signatureLength=ue,e.hash=function(e){pe(e);var t=new Uint8Array(64);return Y(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return pe(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===g(e,0,t,0,e.length))},e.setPRNG=function(e){r=e},function(){var t="undefined"!==typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG((function(e,n){var r,o=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(o.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}else(t=n(1281))&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];ge(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})},7946:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",f="name",h="type",p="vendor",g="version",m="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",C="embedded",k="Amazon",S="Apple",E="ASUS",A="BlackBerry",_="Browser",T="Chrome",R="Firefox",O="Google",P="Huawei",L="LG",M="Microsoft",N="Motorola",I="Opera",j="Samsung",$="Sharp",D="Sony",U="Xiaomi",W="Zebra",z="Facebook",B="Chromium OS",F="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},V=function(e,t){return typeof e===c&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},G=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(o=0;o<h.length;o++)u=c[++r],typeof(s=h[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;d+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(V(t[n][r],e))return"?"===n?i:n}else if(V(t[n],e))return"?"===n?i:n;return e},Z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[g,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[g,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,g],[/opios[\/ ]+([\w\.]+)/i],[g,[f,I+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[g,[f,I+" GX"]],[/\bopr\/([\w\.]+)/i],[g,[f,I]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[g,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,g],[/\bddg\/([\w\.]+)/i],[g,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[g,[f,"UC"+_]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[g,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[g,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[g,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[g,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[g,[f,"Smart Lenovo "+_]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+_],g],[/\bfocus\/([\w\.]+)/i],[g,[f,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[g,[f,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[g,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[g,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[g,[f,I+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[g,[f,"MIUI "+_]],[/fxios\/([-\w\.]+)/i],[g,[f,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+_]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+_],g],[/samsungbrowser\/([\w\.]+)/i],[g,[f,j+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],g],[/metasr[\/ ]?([\d\.]+)/i],[g,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],g],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,g],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,z],g],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,g],[/\bgsa\/([\w\.]+) .*safari\//i],[g,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[g,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[g,[f,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,T+" WebView"],g],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[g,[f,"Android "+_]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,g],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[g,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[g,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[g,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,g],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],g],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[g,[f,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,g],[/(cobalt)\/([\w\.]+)/i],[f,[g,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,K]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[p,j],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[p,j],[h,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[p,S],[h,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[p,S],[h,b]],[/(macintosh);/i],[d,[p,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[p,$],[h,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[p,P],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[p,P],[h,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[p,U],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[p,"OPPO"],[h,y]],[/\b(opd2\d{3}a?) bui/i],[d,[p,"OPPO"],[h,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[p,"Vivo"],[h,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[p,"Realme"],[h,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[p,N],[h,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[p,N],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[p,L],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[p,L],[h,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[p,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[p,"Nokia"],[h,y]],[/(pixel c)\b/i],[d,[p,O],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[p,O],[h,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[p,D],[h,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[p,D],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[p,"OnePlus"],[h,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[p,k],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[p,k],[h,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,p,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[p,A],[h,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[p,E],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[p,E],[h,y]],[/(nexus 9)/i],[d,[p,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[d,/_/g," "],[h,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[p,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[p,"Meizu"],[h,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[p,"Ulefone"],[h,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[p,d,[h,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,d,[h,b]],[/(surface duo)/i],[d,[p,M],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[p,"Fairphone"],[h,y]],[/(u304aa)/i],[d,[p,"AT&T"],[h,y]],[/\bsie-(\w*)/i],[d,[p,"Siemens"],[h,y]],[/\b(rct\w+) b/i],[d,[p,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[p,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[p,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[p,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[d,[p,"NuVision"],[h,b]],[/\b(k88) b/i],[d,[p,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[d,[p,"ZTE"],[h,y]],[/\b(gen\d{3}) b.+49h/i],[d,[p,"Swiss"],[h,y]],[/\b(zur\d{3}) b/i],[d,[p,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[d,[p,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],d,[h,b]],[/\b(ns-?\w{0,9}) b/i],[d,[p,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[p,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],d,[h,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],d,[h,y]],[/\b(ph-1) /i],[d,[p,"Essential"],[h,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[p,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[d,[p,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[d,[p,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[d,[p,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[p,d,[h,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,M],[h,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[p,W],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[p,W],[h,y]],[/smart-tv.+(samsung)/i],[p,[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[p,j],[h,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,L],[h,w]],[/(apple) ?tv/i],[p,[d,S+" TV"],[h,w]],[/crkey/i],[[d,T+"cast"],[p,O],[h,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[p,k],[h,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[p,$],[h,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[p,D],[h,w]],[/(mitv-\w{5}) bui/i],[d,[p,U],[h,w]],[/Hbbtv.*(technisat) (.*);/i],[p,d,[h,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,q],[d,q],[h,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,d,[h,v]],[/droid.+; (shield) bui/i],[d,[p,"Nvidia"],[h,v]],[/(playstation [345portablevi]+)/i],[d,[p,D],[h,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[p,M],[h,v]],[/((pebble))app/i],[p,d,[h,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[p,S],[h,x]],[/droid.+; (glass) \d/i],[d,[p,O],[h,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[p,W],[h,x]],[/(quest( \d| pro)?)/i],[d,[p,z],[h,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[h,C]],[/(aeobc)\b/i],[d,[p,k],[h,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[h,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[g,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,g],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[g,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,g],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[g,Q,Z]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,Q,Z],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[g,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,F],[g,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[g,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,g],[/\(bb(10);/i],[g,[f,A]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[g,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[g,[f,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[g,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[g,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[g,[f,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,B],g],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,g],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],g],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,g]]},X=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[g]=i,G.call(t,r,w.browser),t[u]=typeof(e=t[g])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[m]=i,G.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[p]=i,e[d]=i,e[h]=i,G.call(e,r,w.device),x&&!e[h]&&v&&v.mobile&&(e[h]=y),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[h]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[g]=i,G.call(e,r,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,B).replace(/macos/i,F)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};X.VERSION="1.0.38",X.BROWSER=H([f,g,u]),X.CPU=H([m]),X.DEVICE=H([d,p,h,v,y,w,b,x,C]),X.ENGINE=X.OS=H([f,g]),typeof t!==s?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(r=function(){return X}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=X);var J=typeof o!==s&&(o.jQuery||o.Zepto);if(J&&!J.ua){var ee=new X;J.ua=ee.getResult(),J.ua.get=function(){return ee.getUA()},J.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)J.ua[n]=t[n]}}}("object"===typeof window?window:this)},1281:()=>{},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},4893:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},8738:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8168:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},8587:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},2004:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{"use strict";n.r(r),n.d(r,{checkIn:()=>Vv,consumePurchase:()=>Yv,copyShareLink:()=>Gv,getContentSafeAreaInset:()=>ny,getCpCustomLink:()=>iy,getItem:()=>Qv,getSafeAreaInset:()=>ty,getShareLink:()=>qv,init:()=>zv,isDesktopEnabled:()=>ry,login:()=>Bv,onEvent:()=>ey,openGameForWeb:()=>oy,purchase:()=>Hv,queryPurchses:()=>Xv,ready:()=>Fv,setItem:()=>Zv,share:()=>Kv,vibrate:()=>Jv});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>If,hasStandardBrowserEnv:()=>$f,hasStandardBrowserWebWorkerEnv:()=>Df,navigator:()=>jf,origin:()=>Uf});var t=n(1352),o=n(8168),i=n(9950),a=n(7353),s=n(3158),l=n(2860),c=n(7576);const u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(c.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},d=(0,l.A)();const f=function(){return u(arguments.length>0&&void 0!==arguments[0]?arguments[0]:d)};var h=n(4414);const p=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=f(r),i="function"===typeof t?t(n&&o[n]||o):t;return(0,h.jsx)(s.A,{styles:i})};var g=n(195),m=n(7550);const v=function(e){return(0,h.jsx)(p,(0,o.A)({},e,{defaultTheme:g.A,themeId:m.A}))},y=(e,t)=>(0,o.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),b=e=>(0,o.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const w=function(e){const t=(0,a.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)(v,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,o]=t;var i;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}}));let i=(0,o.A)({html:y(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,o.A)({margin:0},b(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(i=[i,a]),i}(e,r)}),n]})};var x=n(3422);const C={CATI:"kQAHDaT2GnuX5GNrrtenrzmGeMbE7VCldSHovfEXA19FtyRl",USDT:"kQB0rxb4k-xFwXVzBpvJwt4_ChPvqMScDAKMBfQZw2Od8MFB"};class k{static init(){{const e=new URLSearchParams(location.search);k.TEST_MODE="1"==e.get("debug"),k.GAME_ID=e.get("gameid"),k.BOT_NAME=e.get("botname"),k.CP_CUSTOM_LINK=e.get("pcplink");let t=Telegram.WebApp.initData;if(!t){const n=new x.o;if(t=e.get("initdata"),t||(t=window.localStorage.getItem("PLUTO_INIT_DATA")||""),t.startsWith("10")||(t=n.decode(t)),t){const e=n.encode(t);window.localStorage.setItem("PLUTO_INIT_DATA",e)}}k.INIT_DATA=t;const n=window.location.origin+window.location.pathname+window.location.search,r=new URL(n);r.searchParams.delete("initdata"),r.searchParams.delete("pcplink"),window.history.replaceState(null,null,r.href)}k.TEST_MODE?(k.API_URL="https://test-sdk1.pluto.vision/",k.PAYLOAD_URL="https://test-bc1.pluto.vision/api/ton/getTokenPayload",k.TON_CENTER_URL="https://testnet.toncenter.com/api/v3/jetton/wallets",k.TOKENS_JETTON_ADDRESS=C,k.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/test/manifest-${k.GAME_ID}.json`):k.MANIFEST_URL=`https://games.pluto.vision/sdk/manifest/release/manifest-${k.GAME_ID}.json`}}k.APP_VERSION="1.0.3-beta.1",k.RES_URL="https://games.pluto.vision/sdk/resource/",k.API_URL="https://sdk1.pluto.vision/",k.PAYLOAD_URL="https://bc1.pluto.vision/api/ton/getTokenPayload",k.TON_CENTER_URL="https://toncenter.com/api/v3/jetton/wallets",k.TOKENS_JETTON_ADDRESS={CATI:"EQD-cvR0Nz6XAyRBvbhz-abTrRC6sI5tvHvvpeQraV9UAAD7",USDT:"EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs"},k.MANIFEST_URL="",k.TEST_MODE=!1,k.GAME_ID="",k.BOT_NAME="",k.INIT_DATA="",k.TOKEN="",k.GAME_URL="",k.CP_CUSTOM_LINK="";var S,E,A,_,T,R,O=n(4008),P=n(3477);!function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",e[e.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(S||(S={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(E||(E={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(A||(A={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(_||(_={})),function(e){e[e.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",e[e.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",e[e.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",e[e.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED"}(T||(T={})),function(e){e.MAINNET="-239",e.TESTNET="-3"}(R||(R={}));const L={encode:function(e){let t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e instanceof Uint8Array?t=e:("string"!==typeof e&&(e=JSON.stringify(e)),t=O.decodeUTF8(e)),function(e,t){const n=O.encodeBase64(e);return t?encodeURIComponent(n):n}(t,n)},decode:function(e){const t=function(e,t){return t&&(e=decodeURIComponent(e)),O.decodeBase64(e)}(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return{toString:()=>O.encodeUTF8(t),toObject(){try{return JSON.parse(O.encodeUTF8(t))}catch(Yn){return null}},toUint8Array:()=>t}}};function M(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function N(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.slice(n,n+2),16);return t}class I{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=M(this.keyPair.publicKey)}createKeypair(){return P.box.keyPair()}createKeypairFromString(e){return{publicKey:N(e.publicKey),secretKey:N(e.secretKey)}}createNonce(){return P.randomBytes(this.nonceLength)}encrypt(e,t){const n=(new TextEncoder).encode(e),r=this.createNonce();return function(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(r,P.box(n,r,t,this.keyPair.secretKey))}decrypt(e,t){const[n,r]=function(e,t){if(t>=e.length)throw new Error("Index is out of buffer");return[e.slice(0,t),e.slice(t)]}(e,this.nonceLength),o=P.box.open(r,n,t,this.keyPair.secretKey);if(!o)throw new Error(`Decryption error: \n message: ${e.toString()} \n sender pubkey: ${t.toString()} \n keypair pubkey: ${this.keyPair.publicKey.toString()} \n keypair secretkey: ${this.keyPair.secretKey.toString()}`);return(new TextDecoder).decode(o)}stringifyKeypair(){return{publicKey:M(this.keyPair.publicKey),secretKey:M(this.keyPair.secretKey)}}}function j(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(Yn){i(Yn)}}function s(e){try{l(r.throw(e))}catch(Yn){i(Yn)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}class $ extends Error{constructor(e,t){super(e,t),this.message=`${$.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,$.prototype)}get info(){return""}}$.prefix="[TON_CONNECT_SDK_ERROR]";class D extends ${get info(){return"Passed DappMetadata is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,D.prototype)}}class U extends ${get info(){return"Passed `tonconnect-manifest.json` contains errors. Check format of your manifest. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,U.prototype)}}class W extends ${get info(){return"Manifest not found. Make sure you added `tonconnect-manifest.json` to the root of your app or passed correct manifestUrl. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest"}constructor(){super(...arguments),Object.setPrototypeOf(this,W.prototype)}}class z extends ${get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(){super(...arguments),Object.setPrototypeOf(this,z.prototype)}}class B extends ${get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,B.prototype)}}class F extends ${get info(){return"User rejects the action in the wallet."}constructor(){super(...arguments),Object.setPrototypeOf(this,F.prototype)}}class H extends ${get info(){return"Request to the wallet contains errors."}constructor(){super(...arguments),Object.setPrototypeOf(this,H.prototype)}}class V extends ${get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(){super(...arguments),Object.setPrototypeOf(this,V.prototype)}}class K extends ${get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(){super(...arguments),Object.setPrototypeOf(this,K.prototype)}}class q extends ${get info(){return"An error occurred while fetching the wallets list."}constructor(){super(...arguments),Object.setPrototypeOf(this,q.prototype)}}class G extends ${get info(){return"Passed address is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,G.prototype)}}class Q extends ${get info(){return"Passed hex is in incorrect format."}constructor(){super(...arguments),Object.setPrototypeOf(this,Q.prototype)}}class Z extends ${constructor(){super(...arguments),Object.setPrototypeOf(this,Z.prototype)}}const Y={[S.UNKNOWN_ERROR]:Z,[S.USER_REJECTS_ERROR]:F,[S.BAD_REQUEST_ERROR]:H,[S.UNKNOWN_APP_ERROR]:V,[S.MANIFEST_NOT_FOUND_ERROR]:W,[S.MANIFEST_CONTENT_ERROR]:U};const X=new class{parseError(e){let t=Z;return e.code in Y&&(t=Y[e.code]||Z),new t(e.message)}};class J{isError(e){return"error"in e}}const ee={[A.UNKNOWN_ERROR]:Z,[A.USER_REJECTS_ERROR]:F,[A.BAD_REQUEST_ERROR]:H,[A.UNKNOWN_APP_ERROR]:V};const te=new class extends J{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=Z;throw e.error.code in ee&&(t=ee[e.error.code]||Z),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class ne{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return j(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return j(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return j(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function re(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function oe(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function ie(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}function ae(e,t){return j(this,void 0,void 0,(function*(){return new Promise(((n,r)=>{var o,i;if(null===(o=null===t||void 0===t?void 0:t.signal)||void 0===o?void 0:o.aborted)return void r(new $("Delay aborted"));const a=setTimeout((()=>n()),e);null===(i=null===t||void 0===t?void 0:t.signal)||void 0===i||i.addEventListener("abort",(()=>{clearTimeout(a),r(new $("Delay aborted"))}))}))}))}function se(e){const t=new AbortController;return(null===e||void 0===e?void 0:e.aborted)?t.abort():null===e||void 0===e||e.addEventListener("abort",(()=>t.abort()),{once:!0}),t}function le(e,t){var n,r;return j(this,void 0,void 0,(function*(){const o=null!==(n=null===t||void 0===t?void 0:t.attempts)&&void 0!==n?n:10,i=null!==(r=null===t||void 0===t?void 0:t.delayMs)&&void 0!==r?r:200,a=se(null===t||void 0===t?void 0:t.signal);if("function"!==typeof e)throw new $("Expected a function, got "+typeof e);let s,l=0;for(;l<o;){if(a.signal.aborted)throw new $(`Aborted after attempts ${l}`);try{return yield e({signal:a.signal})}catch(c){s=c,l++,l<o&&(yield ae(i))}}throw s}))}function ce(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_SDK]",...t)}catch(Ye){}}function ue(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("[TON_CONNECT_SDK]",...t)}catch(Ye){}}class de{constructor(e,t,n,r,o){this.bridgeUrl=t,this.sessionId=n,this.listener=r,this.errorsListener=o,this.ssePath="events",this.postPath="message",this.heartbeatMessage="heartbeat",this.defaultTtl=300,this.defaultReconnectDelay=2e3,this.defaultResendDelay=5e3,this.eventSource=function(e,t){var n=this;let r=null,o=null,i=null,a=null,s=null;const l=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];return j(n,void 0,void 0,(function*(){if(a=null!==l&&void 0!==l?l:null,null===s||void 0===s||s.abort(),s=se(l),s.signal.aborted)throw new $("Resource creation was aborted");o=null!==u&&void 0!==u?u:null;const n=e(s.signal,...u);i=n;const c=yield n;if(i!==n&&c!==r)throw yield t(c),new $("Resource creation was aborted by a new resource creation");return r=c,r}))};return{create:l,current:()=>null!==r&&void 0!==r?r:null,dispose:()=>j(this,void 0,void 0,(function*(){try{const e=r;r=null;const n=i;i=null;try{null===s||void 0===s||s.abort()}catch(Yn){}yield Promise.allSettled([e?t(e):Promise.resolve(),n?t(yield n):Promise.resolve()])}catch(Yn){}})),recreate:e=>j(this,void 0,void 0,(function*(){const t=r,n=i,s=o,c=a;if(yield ae(e),t===r&&n===i&&s===o&&c===a)return yield l(a,...null!==s&&void 0!==s?s:[]);throw new $("Resource recreation was aborted by a new resource creation")}))}}(((e,t)=>j(this,void 0,void 0,(function*(){const n={bridgeUrl:this.bridgeUrl,ssePath:this.ssePath,sessionId:this.sessionId,bridgeGatewayStorage:this.bridgeGatewayStorage,errorHandler:this.errorsHandler.bind(this),messageHandler:this.messagesHandler.bind(this),signal:e,openingDeadlineMS:t};return yield function(e){return j(this,void 0,void 0,(function*(){return yield function(e,t){const n=null===t||void 0===t?void 0:t.timeout,r=se(null===t||void 0===t?void 0:t.signal);return new Promise(((t,o)=>j(this,void 0,void 0,(function*(){if(r.signal.aborted)return void o(new $("Operation aborted"));let i;"undefined"!==typeof n&&(i=setTimeout((()=>{r.abort(),o(new $(`Timeout after ${n}ms`))}),n)),r.signal.addEventListener("abort",(()=>{clearTimeout(i),o(new $("Operation aborted"))}),{once:!0});const a={timeout:n,abort:r.signal};yield e((function(){clearTimeout(i),t(...arguments)}),(()=>{clearTimeout(i),o()}),a)}))))}(((t,n,r)=>j(this,void 0,void 0,(function*(){var o;const i=se(r.signal).signal;if(i.aborted)return void n(new $("Bridge connection aborted"));const a=new URL(re(e.bridgeUrl,e.ssePath));a.searchParams.append("client_id",e.sessionId);const s=yield e.bridgeGatewayStorage.getLastEventId();if(s&&a.searchParams.append("last_event_id",s),i.aborted)return void n(new $("Bridge connection aborted"));const l=new EventSource(a.toString());l.onerror=r=>j(this,void 0,void 0,(function*(){if(i.aborted)return l.close(),void n(new $("Bridge connection aborted"));try{const n=yield e.errorHandler(l,r);n!==l&&l.close(),n&&n!==l&&t(n)}catch(Yn){l.close(),n(Yn)}})),l.onopen=()=>{if(i.aborted)return l.close(),void n(new $("Bridge connection aborted"));t(l)},l.onmessage=t=>{if(i.aborted)return l.close(),void n(new $("Bridge connection aborted"));e.messageHandler(t)},null===(o=e.signal)||void 0===o||o.addEventListener("abort",(()=>{l.close(),n(new $("Bridge connection aborted"))}))}))),{timeout:e.openingDeadlineMS,signal:e.signal})}))}(n)}))),(e=>j(this,void 0,void 0,(function*(){e.close()})))),this.bridgeGatewayStorage=new ne(e,t)}get isReady(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.OPEN}get isClosed(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)!==EventSource.OPEN}get isConnecting(){const e=this.eventSource.current();return(null===e||void 0===e?void 0:e.readyState)===EventSource.CONNECTING}registerSession(e){return j(this,void 0,void 0,(function*(){yield this.eventSource.create(null===e||void 0===e?void 0:e.signal,null===e||void 0===e?void 0:e.openingDeadlineMS)}))}send(e,t,n,r){var o;return j(this,void 0,void 0,(function*(){const i={};"number"===typeof r?i.ttl=r:(i.ttl=null===r||void 0===r?void 0:r.ttl,i.signal=null===r||void 0===r?void 0:r.signal,i.attempts=null===r||void 0===r?void 0:r.attempts);const a=new URL(re(this.bridgeUrl,this.postPath));a.searchParams.append("client_id",this.sessionId),a.searchParams.append("to",t),a.searchParams.append("ttl",((null===i||void 0===i?void 0:i.ttl)||this.defaultTtl).toString()),a.searchParams.append("topic",n);const s=L.encode(e);yield le((e=>j(this,void 0,void 0,(function*(){const t=yield this.post(a,s,e.signal);if(!t.ok)throw new $(`Bridge send failed, status ${t.status}`)}))),{attempts:null!==(o=null===i||void 0===i?void 0:i.attempts)&&void 0!==o?o:Number.MAX_SAFE_INTEGER,delayMs:this.defaultResendDelay,signal:null===i||void 0===i?void 0:i.signal})}))}pause(){this.eventSource.dispose().catch((e=>ue(`Bridge pause failed, ${e}`)))}unPause(){return j(this,void 0,void 0,(function*(){yield this.eventSource.recreate(0)}))}close(){return j(this,void 0,void 0,(function*(){yield this.eventSource.dispose().catch((e=>ue(`Bridge close failed, ${e}`)))}))}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}post(e,t,n){return j(this,void 0,void 0,(function*(){const r=yield fetch(e,{method:"post",body:t,signal:n});if(!r.ok)throw new $(`Bridge send failed, status ${r.status}`);return r}))}errorsHandler(e,t){return j(this,void 0,void 0,(function*(){if(this.isConnecting)throw e.close(),new $("Bridge error, failed to connect");if(!this.isReady){if(this.isClosed)return e.close(),ce(`Bridge reconnecting, ${this.defaultReconnectDelay}ms delay`),yield this.eventSource.recreate(this.defaultReconnectDelay);throw new $("Bridge error, unknown state")}try{this.errorsListener(t)}catch(t){}}))}messagesHandler(e){return j(this,void 0,void 0,(function*(){if(e.data===this.heartbeatMessage)return;if(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),this.isClosed)return;let t;try{t=JSON.parse(e.data)}catch(e){throw new $(`Bridge message parse failed, message ${e.data}`)}this.listener(t)}))}}function fe(e){return!("connectEvent"in e)}class he{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return j(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!fe(e)){const t={sessionKeyPair:e.session.sessionCrypto.stringifyKeypair(),walletPublicKey:e.session.walletPublicKey,bridgeUrl:e.session.bridgeUrl},n={type:"http",connectEvent:e.connectEvent,session:t,lastWalletEventId:e.lastWalletEventId,nextRpcRequestId:e.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(n))}const t={type:"http",connectionSource:e.connectionSource,sessionCrypto:e.sessionCrypto.stringifyKeypair()};return this.storage.setItem(this.storeKey,JSON.stringify(t))}))}removeConnection(){return j(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return j(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;const t=JSON.parse(e);if("injected"===t.type)return t;if("connectEvent"in t){const e=new I(t.session.sessionKeyPair);return{type:"http",connectEvent:t.connectEvent,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId,session:{sessionCrypto:e,bridgeUrl:t.session.bridgeUrl,walletPublicKey:t.session.walletPublicKey}}}return{type:"http",sessionCrypto:new I(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new $("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new $("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new $("Trying to read HTTP connection source while injected connection is stored");if(!fe(e))throw new $("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new $("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null===e||void 0===e?void 0:e.type))throw new $("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return j(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);if(!e)return null;return JSON.parse(e).type}))}storeLastWalletEventId(e){return j(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!fe(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"nextRpcRequestId"in e){const t=e.nextRpcRequestId||0;return e.nextRpcRequestId=t+1,this.storeConnection(e)}}))}getNextRpcRequestId(){return j(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}class pe{constructor(e,t){this.storage=e,this.walletConnectionSource=t,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.defaultOpeningDeadlineMS=12e3,this.defaultRetryTimeoutMS=2e3,this.connectionStorage=new he(e)}static fromStorage(e){return j(this,void 0,void 0,(function*(){const t=new he(e),n=yield t.getHttpConnection();return fe(n)?new pe(e,n.connectionSource):new pe(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e,t){var n;const r=se(null===t||void 0===t?void 0:t.signal);null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=r,this.closeGateways();const o=new I;this.session={sessionCrypto:o,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:o}).then((()=>j(this,void 0,void 0,(function*(){r.signal.aborted||(yield le((e=>{var n;return this.openGateways(o,{openingDeadlineMS:null!==(n=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS,signal:null===e||void 0===e?void 0:e.signal})}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal}))}))));const i="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(i,e)}restoreConnection(e){var t,n;return j(this,void 0,void 0,(function*(){const r=se(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return;this.closeGateways();const o=yield this.connectionStorage.getHttpConnection();if(!o)return;if(r.signal.aborted)return;const i=null!==(n=null===e||void 0===e?void 0:e.openingDeadlineMS)&&void 0!==n?n:this.defaultOpeningDeadlineMS;if(fe(o))return this.session={sessionCrypto:o.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},yield this.openGateways(o.sessionCrypto,{openingDeadlineMS:i,signal:null===r||void 0===r?void 0:r.signal});if(Array.isArray(this.walletConnectionSource))throw new $("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");if(this.session=o.session,this.gateway&&(ce("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new de(this.storage,this.walletConnectionSource.bridgeUrl,o.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),!r.signal.aborted){this.listeners.forEach((e=>e(o.connectEvent)));try{yield le((e=>this.gateway.registerSession({openingDeadlineMS:i,signal:e.signal})),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:r.signal})}catch(Yn){return void(yield this.disconnect({signal:r.signal}))}}}))}sendRequest(e,t){const n={};return"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal,n.attempts=null===t||void 0===t?void 0:t.attempts),new Promise(((t,r)=>j(this,void 0,void 0,(function*(){var o;if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new $("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),ce("Send http-bridge request:",Object.assign(Object.assign({},e),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:i})),N(this.session.walletPublicKey));try{yield this.gateway.send(a,this.session.walletPublicKey,e.method,{attempts:null===n||void 0===n?void 0:n.attempts,signal:null===n||void 0===n?void 0:n.signal}),null===(o=null===n||void 0===n?void 0:n.onRequestSent)||void 0===o||o.call(n),this.pendingRequests.set(i.toString(),t)}catch(Yn){r(Yn)}}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(e){return j(this,void 0,void 0,(function*(){return new Promise((t=>j(this,void 0,void 0,(function*(){let n=!1,r=null;const o=()=>{n||(n=!0,this.removeBridgeAndSession().then(t))};try{this.closeGateways();const t=se(null===e||void 0===e?void 0:e.signal);r=setTimeout((()=>{t.abort()}),this.defaultOpeningDeadlineMS),yield this.sendRequest({method:"disconnect",params:[]},{onRequestSent:o,signal:t.signal,attempts:1})}catch(Yn){ce("Disconnect error:",Yn),n||this.removeBridgeAndSession().then(t)}finally{r&&clearTimeout(r),o()}}))))}))}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}pause(){var e;null===(e=this.gateway)||void 0===e||e.pause(),this.pendingGateways.forEach((e=>e.pause()))}unPause(){return j(this,void 0,void 0,(function*(){const e=this.pendingGateways.map((e=>e.unPause()));this.gateway&&e.push(this.gateway.unPause()),yield Promise.all(e)}))}pendingGatewaysListener(e,t,n){return j(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.gateway&&(ce("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);yield e.close()}))}gatewayListener(e){return j(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(L.decode(e.message).toUint8Array(),N(e.from)));if(ce("Wallet message received:",t),!("event"in t)){const e=t.id.toString(),n=this.pendingRequests.get(e);return n?(n(t),void this.pendingRequests.delete(e)):void ce(`Response id ${e} doesn't match any request's id`)}if(void 0!==t.id){const e=yield this.connectionStorage.getLastWalletEventId();if(void 0!==e&&t.id<=e)return void ue(`Received event id (=${t.id}) must be greater than stored last wallet event id (=${e}) `);"connect"!==t.event&&(yield this.connectionStorage.storeLastWalletEventId(t.id))}const n=this.listeners;"connect"===t.event&&(yield this.updateSession(t,e.from)),"disconnect"===t.event&&(ce("Removing bridge and session: received disconnect event"),yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return j(this,void 0,void 0,(function*(){throw new $(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return j(this,void 0,void 0,(function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:t});const n=e.payload.items.find((e=>"ton_addr"===e.name)),r=Object.assign(Object.assign({},e),{payload:Object.assign(Object.assign({},e.payload),{items:[n]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:e.id,connectEvent:r,nextRpcRequestId:0})}))}removeBridgeAndSession(){return j(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return oe(e)?this.generateTGUniversalLink(e,t):this.generateRegularUniversalLink(e,t)}generateRegularUniversalLink(e,t){const n=new URL(e);return n.searchParams.append("v",2..toString()),n.searchParams.append("id",this.session.sessionCrypto.sessionId),n.searchParams.append("r",JSON.stringify(t)),n.toString()}generateTGUniversalLink(e,t){const n="tonconnect-"+ie(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=this.convertToDirectLink(e),o=new URL(r);return o.searchParams.append("startapp",n),o.toString()}convertToDirectLink(e){const t=new URL(e);return t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start"),t.toString()}openGateways(e,t){return j(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways.map((e=>e.close().catch())),this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new de(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(()=>{}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>le((n=>{var r;return this.pendingGateways.some((t=>t===e))?e.registerSession({openingDeadlineMS:null!==(r=null===t||void 0===t?void 0:t.openingDeadlineMS)&&void 0!==r?r:this.defaultOpeningDeadlineMS,signal:n.signal}):e.close()}),{attempts:Number.MAX_SAFE_INTEGER,delayMs:this.defaultRetryTimeoutMS,signal:null===t||void 0===t?void 0:t.signal})))))):(this.gateway&&(ce("Gateway is already opened, closing previous gateway"),yield this.gateway.close()),this.gateway=new de(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession({openingDeadlineMS:null===t||void 0===t?void 0:t.openingDeadlineMS,signal:null===t||void 0===t?void 0:t.signal}))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null===e||void 0===e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function ge(e,t){return me(e,[t])}function me(e,t){return!(!e||"object"!==typeof e)&&t.every((t=>t in e))}class ve{constructor(){this.storage={}}static getInstance(){return ve.instance||(ve.instance=new ve),ve.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!==(t=this.storage[e])&&void 0!==t?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!==(t=n[e])&&void 0!==t?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}}function ye(){if("undefined"!==typeof window)return window}function be(){if("undefined"!==typeof document)return document}function we(){var e;const t=null===(e=ye())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function xe(){if(function(){try{return"undefined"!==typeof localStorage}catch(Ye){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new $("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return ve.getInstance()}class Ce{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=Ce.window;if(!Ce.isWindowContainsWallet(n,t))throw new K;this.connectionStorage=new he(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return j(this,void 0,void 0,(function*(){const t=new he(e),n=yield t.getInjectedConnection();return new Ce(e,n.jsBridgeKey)}))}static isWalletInjected(e){return Ce.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!Ce.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=ye();if(!e)return[];try{return Object.keys(e)}catch(Ye){return[]}}().filter((e=>{let[t,n]=e;return function(e){try{return!(!ge(e,"tonconnect")||!ge(e.tonconnect,"walletInfo"))&&me(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(Ye){return!1}}(n)})).map((e=>{let[t,n]=e;return{name:n.tonconnect.walletInfo.name,appName:n.tonconnect.walletInfo.app_name,aboutUrl:n.tonconnect.walletInfo.about_url,imageUrl:n.tonconnect.walletInfo.image,tondns:n.tonconnect.walletInfo.tondns,jsBridgeKey:t,injected:!0,embedded:n.tonconnect.isWalletBrowser,platforms:n.tonconnect.walletInfo.platforms}}))}static isWindowContainsWallet(e,t){return!!e&&t in e&&"object"===typeof e[t]&&"tonconnect"in e[t]}connect(e){this._connect(2,e)}restoreConnection(){return j(this,void 0,void 0,(function*(){try{ce("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();ce("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(Yn){yield this.connectionStorage.removeConnection(),console.error(Yn)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return j(this,void 0,void 0,(function*(){return new Promise((e=>{const t=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(e)};try{this.injectedWallet.disconnect(),t()}catch(Yn){ce(Yn),this.sendRequest({method:"disconnect",params:[]},t)}}))}))}closeAllListeners(){var e;this.listenSubscriptions=!1,this.listeners=[],null===(e=this.unsubscribeCallback)||void 0===e||e.call(this)}listen(e){return this.listeners.push(e),()=>this.listeners=this.listeners.filter((t=>t!==e))}sendRequest(e,t){var n;return j(this,void 0,void 0,(function*(){const r={};"function"===typeof t?r.onRequestSent=t:(r.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,r.signal=null===t||void 0===t?void 0:t.signal);const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),ce("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:o}));return i.then((e=>ce("Wallet message received:",e))),null===(n=null===r||void 0===r?void 0:r.onRequestSent)||void 0===n||n.call(r),i}))}_connect(e,t){return j(this,void 0,void 0,(function*(){try{ce(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);ce("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(Yn){ce("Injected Provider connect error:",Yn);const t={event:"connect_error",payload:{code:0,message:null===Yn||void 0===Yn?void 0:Yn.toString()}};this.listeners.forEach((e=>e(t)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{ce("Wallet message received:",e),this.listenSubscriptions&&this.listeners.forEach((t=>t(e))),"disconnect"===e.event&&this.disconnect()}))}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}Ce.window=ye();class ke{constructor(){this.localStorage=xe()}getItem(e){return j(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return j(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return j(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function Se(e){return function(e){return"jsBridgeKey"in e}(e)&&e.injected}function Ee(e){return Se(e)&&e.embedded}function Ae(e){return"bridgeUrl"in e}const _e=[{app_name:"telegram-wallet",name:"Wallet",image:"https://wallet.tg/images/logo-288.png",about_url:"https://wallet.tg/",universal_url:"https://t.me/wallet?attach=wallet",bridge:[{type:"sse",url:"https://bridge.ton.space/bridge"}],platforms:["ios","android","macos","windows","linux"]},{app_name:"tonkeeper",name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",deepLink:"tonkeeper-tc://",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","firefox","macos"]},{app_name:"mytonwallet",name:"MyTonWallet",image:"https://static.mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",universal_url:"https://connect.mytonwallet.org",bridge:[{type:"js",key:"mytonwallet"},{type:"sse",url:"https://tonconnectbridge.mytonwallet.org/bridge/"}],platforms:["chrome","windows","macos","linux","ios","android","firefox"]},{app_name:"openmask",name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}],platforms:["chrome"]},{app_name:"tonhub",name:"Tonhub",image:"https://tonhub.com/tonconnect_logo.png",about_url:"https://tonhub.com",universal_url:"https://tonhub.com/ton-connect",bridge:[{type:"js",key:"tonhub"},{type:"sse",url:"https://connect.tonhubapi.com/tonconnect"}],platforms:["ios","android"]},{app_name:"dewallet",name:"DeWallet",image:"https://raw.githubusercontent.com/delab-team/manifests-images/main/WalletAvatar.png",about_url:"https://delabwallet.com",universal_url:"https://t.me/dewallet?attach=wallet",bridge:[{type:"sse",url:"https://sse-bridge.delab.team/bridge"}],platforms:["ios","android"]},{app_name:"xtonwallet",name:"XTONWallet",image:"https://xtonwallet.com/assets/img/icon-256-back.png",about_url:"https://xtonwallet.com",bridge:[{type:"js",key:"xtonwallet"}],platforms:["chrome","firefox"]},{app_name:"tonwallet",name:"TON Wallet",image:"https://wallet.ton.org/assets/ui/qr-logo.png",about_url:"https://chrome.google.com/webstore/detail/ton-wallet/nphplpgoakhhjchkkhmiggakijnkhfnd",bridge:[{type:"js",key:"tonwallet"}],platforms:["chrome"]},{app_name:"bitgetTonWallet",name:"Bitget Wallet",image:"https://raw.githubusercontent.com/bitkeepwallet/download/main/logo/png/bitget_wallet_logo_0_gas_fee.png",about_url:"https://web3.bitget.com",deepLink:"bitkeep://",bridge:[{type:"js",key:"bitgetTonWallet"},{type:"sse",url:"https://bridge.tonapi.io/bridge"}],platforms:["ios","android","chrome"],universal_url:"https://bkcode.vip/ton-connect"},{app_name:"safepalwallet",name:"SafePal",image:"https://s.pvcliping.com/web/public_image/SafePal_x288.png",tondns:"",about_url:"https://www.safepal.com",universal_url:"https://link.safepal.io/ton-connect",deepLink:"safepal-tc://",bridge:[{type:"sse",url:"https://ton-bridge.safepal.com/tonbridge/v1/bridge"},{type:"js",key:"safepalwallet"}],platforms:["ios","android","chrome","firefox"]},{app_name:"okxTonWallet",name:"OKX Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/58E63FEA47A2B7D7.png",about_url:"https://www.okx.com/web3",universal_url:"https://www.okx.com/download?appendQuery=true&deeplink=okx://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]},{app_name:"okxTonWalletTr",name:"OKX TR Wallet",image:"https://static.okx.com/cdn/assets/imgs/247/587A8296F0BB640F.png",about_url:"https://tr.okx.com/web3",universal_url:"https://tr.okx.com/download?appendQuery=true&deeplink=okxtr://web3/wallet/tonconnect",bridge:[{type:"js",key:"okxTonWallet"},{type:"sse",url:"https://www.okx.com/tonbridge/discover/rpc/bridge"}],platforms:["chrome","safari","firefox","ios","android"]}];class Te{constructor(e){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets-v2.json",(null===e||void 0===e?void 0:e.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null===e||void 0===e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return j(this,void 0,void 0,(function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then((()=>{this.walletsListCacheCreationTimestamp=Date.now()})).catch((()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null}))),this.walletsListCache}))}getEmbeddedWallet(){return j(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(Ee);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return j(this,void 0,void 0,(function*(){let e=[];try{const t=yield fetch(this.walletsListSource);if(e=yield t.json(),!Array.isArray(e))throw new q("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(ue(`Wallet(s) ${n.map((e=>e.name)).join(", ")} config format is wrong. They were removed from the wallets list.`),e=e.filter((e=>this.isCorrectWalletConfigDTO(e))))}catch(Yn){ue(Yn),e=_e}let t=[];try{t=Ce.getCurrentlyInjectedWallets()}catch(Yn){ue(Yn)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(e),t)}))}walletConfigDTOListToWalletConfigList(e){return e.map((e=>{const t={name:e.name,appName:e.app_name,imageUrl:e.image,aboutUrl:e.about_url,tondns:e.tondns,platforms:e.platforms};return e.bridge.forEach((n=>{if("sse"===n.type&&(t.bridgeUrl=n.url,t.universalLink=e.universal_url,t.deepLink=e.deepLink),"js"===n.type){const e=n.key;t.jsBridgeKey=e,t.injected=Ce.isWalletInjected(e),t.embedded=Ce.isInsideWalletBrowser(e)}})),t}))}mergeWalletsLists(e,t){return[...new Set(e.concat(t).map((e=>e.name))).values()].map((n=>{const r=e.find((e=>e.name===n)),o=t.find((e=>e.name===n));return Object.assign(Object.assign({},r&&Object.assign({},r)),o&&Object.assign({},o))}))}isCorrectWalletConfigDTO(e){if(!e||"object"!==typeof e)return!1;if(!("name"in e)||!("image"in e)||!("about_url"in e)||!("platforms"in e)||!("app_name"in e))return!1;if(!e.platforms||!Array.isArray(e.platforms)||!e.platforms.length)return!1;if(!("bridge"in e)||!Array.isArray(e.bridge)||!e.bridge.length)return!1;const t=e.bridge;if(t.some((e=>!e||"object"!==typeof e||!("type"in e))))return!1;const n=t.find((e=>"sse"===e.type));if(n&&(!("url"in n)||!n.url||!e.universal_url))return!1;const r=t.find((e=>"js"===e.type));return!!(!r||"key"in r&&r.key)}}class Re extends ${get info(){return"Wallet doesn't support requested feature method."}constructor(){super(...arguments),Object.setPrototypeOf(this,Re.prototype)}}function Oe(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"===typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new Re("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new Re(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_SDK]",...t)}catch(Ye){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}function Pe(e){return{type:"response-version",version:e}}function Le(e){return{ton_connect_sdk_lib:e.ton_connect_sdk_lib,ton_connect_ui_lib:e.ton_connect_ui_lib}}function Me(e,t){var n,r,o,i,a,s,l,c;const u=(null===(n=null===t||void 0===t?void 0:t.connectItems)||void 0===n?void 0:n.tonProof)&&"proof"in t.connectItems.tonProof?"ton_proof":"ton_addr";return{wallet_address:null!==(o=null===(r=null===t||void 0===t?void 0:t.account)||void 0===r?void 0:r.address)&&void 0!==o?o:null,wallet_type:null!==(i=null===t||void 0===t?void 0:t.device.appName)&&void 0!==i?i:null,wallet_version:null!==(a=null===t||void 0===t?void 0:t.device.appVersion)&&void 0!==a?a:null,auth_type:u,custom_data:Object.assign({chain_id:null!==(l=null===(s=null===t||void 0===t?void 0:t.account)||void 0===s?void 0:s.chain)&&void 0!==l?l:null,provider:null!==(c=null===t||void 0===t?void 0:t.provider)&&void 0!==c?c:null},Le(e))}}function Ne(e){return{type:"connection-started",custom_data:Le(e)}}function Ie(e,t){return Object.assign({type:"connection-completed",is_success:!0},Me(e,t))}function je(e,t,n){return{type:"connection-error",is_success:!1,error_message:t,error_code:null!==n&&void 0!==n?n:null,custom_data:Le(e)}}function $e(e){return{type:"connection-restoring-started",custom_data:Le(e)}}function De(e,t){return Object.assign({type:"connection-restoring-completed",is_success:!0},Me(e,t))}function Ue(e,t){return{type:"connection-restoring-error",is_success:!1,error_message:t,custom_data:Le(e)}}function We(e,t){var n,r,o,i;return{valid_until:null!==(n=String(t.validUntil))&&void 0!==n?n:null,from:null!==(i=null!==(r=t.from)&&void 0!==r?r:null===(o=null===e||void 0===e?void 0:e.account)||void 0===o?void 0:o.address)&&void 0!==i?i:null,messages:t.messages.map((e=>{var t,n;return{address:null!==(t=e.address)&&void 0!==t?t:null,amount:null!==(n=e.amount)&&void 0!==n?n:null}}))}}function ze(e,t,n){return Object.assign(Object.assign({type:"transaction-sent-for-signature"},Me(e,t)),We(t,n))}function Be(e,t,n,r){return Object.assign(Object.assign({type:"transaction-signed",is_success:!0,signed_transaction:r.boc},Me(e,t)),We(t,n))}function Fe(e,t,n,r,o){return Object.assign(Object.assign({type:"transaction-signing-failed",is_success:!1,error_message:r,error_code:null!==o&&void 0!==o?o:null},Me(e,t)),We(t,n))}function He(e,t,n){return Object.assign({type:"disconnection",scope:n},Me(e,t))}class Ve{constructor(){this.window=ye()}dispatchEvent(e,t){var n;return j(this,void 0,void 0,(function*(){const r=new CustomEvent(e,{detail:t});null===(n=this.window)||void 0===n||n.dispatchEvent(r)}))}addEventListener(e,t,n){var r;return j(this,void 0,void 0,(function*(){return null===(r=this.window)||void 0===r||r.addEventListener(e,t,n),()=>{var n;return null===(n=this.window)||void 0===n?void 0:n.removeEventListener(e,t)}}))}}class Ke{constructor(e){var t;this.eventPrefix="ton-connect-",this.tonConnectUiVersion=null,this.eventDispatcher=null!==(t=null===e||void 0===e?void 0:e.eventDispatcher)&&void 0!==t?t:new Ve,this.tonConnectSdkVersion=e.tonConnectSdkVersion,this.init().catch()}get version(){return Le({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return j(this,void 0,void 0,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectUiVersion=yield this.requestTonConnectUiVersion()}catch(Yn){}}))}setRequestVersionHandler(){return j(this,void 0,void 0,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-request-version",(()=>j(this,void 0,void 0,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-response-version",Pe(this.tonConnectSdkVersion))}))))}))}requestTonConnectUiVersion(){return j(this,void 0,void 0,(function*(){return new Promise(((e,t)=>j(this,void 0,void 0,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-ui-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-ui-request-version",{type:"request-version"})}catch(Yn){t(Yn)}}))))}))}dispatchUserActionEvent(e){try{this.eventDispatcher.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Yn){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ne(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ie(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=je(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=$e(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=De(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ue(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=He(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ze(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Be(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Fe(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yn){}}}class qe{constructor(e){if(this.walletsList=new Te,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null===e||void 0===e?void 0:e.manifestUrl)||we(),storage:(null===e||void 0===e?void 0:e.storage)||new ke},this.walletsList=new Te({walletsListSource:null===e||void 0===e?void 0:e.walletsListSource,cacheTTLMs:null===e||void 0===e?void 0:e.walletsListCacheTTLMs}),this.tracker=new Ke({eventDispatcher:null===e||void 0===e?void 0:e.eventDispatcher,tonConnectSdkVersion:"3.0.5"}),!this.dappSettings.manifestUrl)throw new D("Dapp tonconnect-manifest.json must be specified if window.location.origin is undefined. See more https://github.com/ton-connect/docs/blob/main/requests-responses.md#app-manifest");this.bridgeConnectionStorage=new he(this.dappSettings.storage),(null===e||void 0===e?void 0:e.disableAutoPauseConnection)||this.addWindowFocusAndBlurSubscriptions()}static getWallets(){return this.walletsList.getWallets()}get connected(){return null!==this._wallet}get account(){var e;return(null===(e=this._wallet)||void 0===e?void 0:e.account)||null}get wallet(){return this._wallet}set wallet(e){this._wallet=e,this.statusChangeSubscriptions.forEach((e=>e(this._wallet)))}getWallets(){return this.walletsList.getWallets()}onStatusChange(e,t){return this.statusChangeSubscriptions.push(e),t&&this.statusChangeErrorSubscriptions.push(t),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter((t=>t!==e)),t&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter((e=>e!==t)))}}connect(e,t){var n,r;const o={};if("object"===typeof t&&"tonProof"in t&&(o.request=t),"object"===typeof t&&("openingDeadlineMS"in t||"signal"in t||"request"in t)&&(o.request=null===t||void 0===t?void 0:t.request,o.openingDeadlineMS=null===t||void 0===t?void 0:t.openingDeadlineMS,o.signal=null===t||void 0===t?void 0:t.signal),this.connected)throw new z;const i=se(null===o||void 0===o?void 0:o.signal);if(null===(n=this.abortController)||void 0===n||n.abort(),this.abortController=i,i.signal.aborted)throw new $("Connection was aborted");return null===(r=this.provider)||void 0===r||r.closeConnection(),this.provider=this.createProvider(e),i.signal.addEventListener("abort",(()=>{var e;null===(e=this.provider)||void 0===e||e.closeConnection(),this.provider=null})),this.tracker.trackConnectionStarted(),this.provider.connect(this.createConnectRequest(null===o||void 0===o?void 0:o.request),{openingDeadlineMS:null===o||void 0===o?void 0:o.openingDeadlineMS,signal:i.signal})}restoreConnection(e){var t,n;return j(this,void 0,void 0,(function*(){this.tracker.trackConnectionRestoringStarted();const r=se(null===e||void 0===e?void 0:e.signal);if(null===(t=this.abortController)||void 0===t||t.abort(),this.abortController=r,r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");const[o,i]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);if(r.signal.aborted)return void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");let a=null;try{switch(o){case"http":a=yield pe.fromStorage(this.dappSettings.storage);break;case"injected":a=yield Ce.fromStorage(this.dappSettings.storage);break;default:if(!i)return;a=this.createProvider(i)}}catch(Je){return this.tracker.trackConnectionRestoringError("Provider is not restored"),yield this.bridgeConnectionStorage.removeConnection(),null===a||void 0===a||a.closeConnection(),void(a=null)}if(r.signal.aborted)return null===a||void 0===a||a.closeConnection(),void this.tracker.trackConnectionRestoringError("Connection restoring was aborted");if(!a)return ue("Provider is not restored"),void this.tracker.trackConnectionRestoringError("Provider is not restored");null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=a,a.listen(this.walletEventsListener.bind(this));const s=()=>{this.tracker.trackConnectionRestoringError("Connection restoring was aborted"),null===a||void 0===a||a.closeConnection(),a=null};r.signal.addEventListener("abort",s);const l=le((t=>j(this,void 0,void 0,(function*(){yield null===a||void 0===a?void 0:a.restoreConnection({openingDeadlineMS:null===e||void 0===e?void 0:e.openingDeadlineMS,signal:t.signal}),r.signal.removeEventListener("abort",s),this.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):this.tracker.trackConnectionRestoringError("Connection restoring failed")}))),{attempts:Number.MAX_SAFE_INTEGER,delayMs:2e3,signal:null===e||void 0===e?void 0:e.signal}),c=new Promise((e=>setTimeout((()=>e()),12e3)));return Promise.race([l,c])}))}sendTransaction(e,t){return j(this,void 0,void 0,(function*(){const n={};"function"===typeof t?n.onRequestSent=t:(n.onRequestSent=null===t||void 0===t?void 0:t.onRequestSent,n.signal=null===t||void 0===t?void 0:t.signal);const r=se(null===n||void 0===n?void 0:n.signal);if(r.signal.aborted)throw new $("Transaction sending was aborted");this.checkConnection(),Oe(this.wallet.device.features,{requiredMessagesNumber:e.messages.length}),this.tracker.trackTransactionSentForSignature(this.wallet,e);const{validUntil:o}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["validUntil"]),a=e.from||this.account.address,s=e.network||this.account.chain,l=yield this.provider.sendRequest(te.convertToRpcRequest(Object.assign(Object.assign({},i),{valid_until:o,from:a,network:s})),{onRequestSent:n.onRequestSent,signal:r.signal});if(te.isError(l))return this.tracker.trackTransactionSigningFailed(this.wallet,e,l.error.message,l.error.code),te.parseAndThrowError(l);const c=te.convertFromRpcResponse(l);return this.tracker.trackTransactionSigned(this.wallet,e,c),c}))}disconnect(e){var t;return j(this,void 0,void 0,(function*(){if(!this.connected)throw new B;const n=se(null===e||void 0===e?void 0:e.signal),r=this.abortController;if(this.abortController=n,n.signal.aborted)throw new $("Disconnect was aborted");this.onWalletDisconnected("dapp"),yield null===(t=this.provider)||void 0===t?void 0:t.disconnect({signal:n.signal}),null===r||void 0===r||r.abort()}))}pauseConnection(){var e;"http"===(null===(e=this.provider)||void 0===e?void 0:e.type)&&this.provider.pause()}unPauseConnection(){var e;return"http"!==(null===(e=this.provider)||void 0===e?void 0:e.type)?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const e=be();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection().catch()}))}catch(Yn){ue("Cannot subscribe to the document.visibilitychange: ",Yn)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new Ce(this.dappSettings.storage,e.jsBridgeKey):new pe(this.dappSettings.storage,e),t.listen(this.walletEventsListener.bind(this)),t}walletEventsListener(e){switch(e.event){case"connect":this.onWalletConnected(e.payload);break;case"connect_error":this.onWalletConnectError(e.payload);break;case"disconnect":this.onWalletDisconnected("wallet")}}onWalletConnected(e){const t=e.items.find((e=>"ton_addr"===e.name)),n=e.items.find((e=>"ton_proof"===e.name));if(!t)throw new $("ton_addr connection item was not found");const r={device:e.device,provider:this.provider.type,account:{address:t.address,chain:t.network,walletStateInit:t.walletStateInit,publicKey:t.publicKey}};n&&(r.connectItems={tonProof:n}),this.wallet=r,this.tracker.trackConnectionCompleted(r)}onWalletConnectError(e){const t=X.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),ce(t),this.tracker.trackConnectionError(e.message,e.code),t instanceof W||t instanceof U)throw ue(t),t}onWalletDisconnected(e){this.tracker.trackDisconnection(this.wallet,e),this.wallet=null}checkConnection(){if(!this.connected)throw new B}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null===e||void 0===e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}qe.walletsList=new Te,qe.isWalletInjected=e=>Ce.isWalletInjected(e),qe.isInsideWalletBrowser=e=>Ce.isInsideWalletBrowser(e);function Ge(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new G(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new G(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new G(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null===r||void 0===r?void 0:r.length))throw new G(`Wrong address ${e}. Hex part must be 64bytes length, but ${null===r||void 0===r?void 0:r.length} received.`);return{wc:n,hex:Ze(r)}}(e);let o=81;t&&(o|=128);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(function(e){const t=4129;let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let e=128;for(;e>0;)n<<=1,o&e&&(n+=1),e>>=1,n>65535&&(n&=65535,n^=t)}return new Uint8Array([Math.floor(n/256),n%256])}(i),34),L.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}const Qe={};for(let n=0;n<=255;n++){let e=n.toString(16);e.length<2&&(e="0"+e),Qe[e]=n}function Ze(e){const t=(e=e.toLowerCase()).length;if(t%2!==0)throw new Q("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;o<n;o++){const t=2*o,n=e.substring(t,t+2);if(!Qe.hasOwnProperty(n))throw new Q("Invalid hex character: "+n);r[o]=Qe[n]}return r}var Ye,Xe,Je,et,tt,nt,rt,ot,it=n(7946),at=n(2414),st=n(8738),lt=Object.defineProperty,ct=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,pt=(e,t,n)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gt=(e,t)=>{for(var n in t||(t={}))ft.call(t,n)&&pt(e,n,t[n]);if(dt)for(var n of dt(t))ht.call(t,n)&&pt(e,n,t[n]);return e},mt=(e,t)=>ct(e,ut(t)),vt=(e,t,n)=>(pt(e,"symbol"!==typeof t?t+"":t,n),n),yt=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{s(n.next(e))}catch(t){o(t)}},a=e=>{try{s(n.throw(e))}catch(t){o(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(e,t)).next())}));const bt={};const wt=Symbol("solid-proxy"),xt=Symbol("solid-track"),Ct={equals:(e,t)=>e===t};let kt=tn;const St=1,Et=2,At={owned:null,cleanups:null,context:null,owner:null},_t={};var Tt=null;let Rt=null,Ot=null,Pt=null,Lt=null,Mt=0;function Nt(e,t){const n=Ot,r=Tt,o=0===e.length,i=o?At:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},a=o?e:()=>e((()=>Bt((()=>an(i)))));Tt=i,Ot=null;try{return en(a,!0)}finally{Ot=n,Tt=r}}function It(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Ct,t):Ct).equals||void 0};return[Qt.bind(n),e=>("function"===typeof e&&(e=e(n.value)),Zt(n,e))]}function jt(e,t,n){Yt(Xt(e,t,!0,St))}function $t(e,t,n){Yt(Xt(e,t,!1,St))}function Dt(e,t,n){kt=nn;const r=Xt(e,t,!1,St);r.user=!0,Lt?Lt.push(r):Yt(r)}function Ut(e,t,n){n=n?Object.assign({},Ct,n):Ct;const r=Xt(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,Yt(r),Qt.bind(r)}function Wt(e,t,n){let r,o,i;2===arguments.length&&"object"===typeof t||1===arguments.length?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=_t,l=null,c=!1,u="initialValue"in i,d="function"===typeof r&&Ut(r);const f=new Set,[h,p]=(i.storage||It)(i.initialValue),[g,m]=It(void 0),[v,y]=It(void 0,{equals:!1}),[b,w]=It(u?"ready":"unresolved");if(bt.context){let e;l=`${bt.context.id}${bt.context.count++}`,"initial"===i.ssrLoadFrom?s=i.initialValue:bt.load&&(e=bt.load(l))&&(s=e[0])}function x(e,t,n,r){return a===e&&(a=null,u=!0,e!==s&&t!==s||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),s=_t,function(e,t){en((()=>{void 0===t&&p((()=>e)),w(void 0!==t?"errored":"ready"),m(t);for(const e of f.keys())e.decrement();f.clear()}),!1)}(t,n)),t}function C(){const e=undefined,t=h(),n=g();if(void 0!==n&&!a)throw n;return Ot&&!Ot.user&&e&&jt((()=>{v(),a&&(e.resolved||f.has(e)||(e.increment(),f.add(e)))})),t}function k(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void x(a,Bt(h));const n=s!==_t?s:Bt((()=>o(t,{value:h(),refetching:e})));return"object"===typeof n&&n&&"then"in n?(a=n,c=!0,queueMicrotask((()=>c=!1)),en((()=>{w(u?"refreshing":"pending"),y()}),!1),n.then((e=>x(n,e,void 0,t)),(e=>x(n,void 0,sn(e),t)))):(x(a,n,void 0,t),n)}return Object.defineProperties(C,{state:{get:()=>b()},error:{get:()=>g()},loading:{get(){const e=b();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return C();const e=g();if(e&&!a)throw e;return h()}}}),d?jt((()=>k(!1))):k(!1),[C,{refetch:k,mutate:p}]}function zt(e){return en(e,!1)}function Bt(e){if(null===Ot)return e();const t=Ot;Ot=null;try{return e()}finally{Ot=t}}function Ft(e){Dt((()=>Bt(e)))}function Ht(e){return null===Tt||(null===Tt.cleanups?Tt.cleanups=[e]:Tt.cleanups.push(e)),e}function Vt(){return Ot}function Kt(e,t){const n=Symbol("context");return{id:n,Provider:dn(n),defaultValue:e}}function qt(e){let t;return void 0!==(t=cn(Tt,e.id))?t:e.defaultValue}function Gt(e){const t=Ut(e),n=Ut((()=>un(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function Qt(){const e=Rt;if(this.sources&&(this.state||e))if(this.state===St||e)Yt(this);else{const e=Pt;Pt=null,en((()=>rn(this)),!1),Pt=e}if(Ot){const e=this.observers?this.observers.length:0;Ot.sources?(Ot.sources.push(this),Ot.sourceSlots.push(e)):(Ot.sources=[this],Ot.sourceSlots=[e]),this.observers?(this.observers.push(Ot),this.observerSlots.push(Ot.sources.length-1)):(this.observers=[Ot],this.observerSlots=[Ot.sources.length-1])}return this.value}function Zt(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&en((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Rt&&Rt.running;r&&Rt.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?Pt.push(n):Lt.push(n),n.observers&&on(n)),r||(n.state=St)}if(Pt.length>1e6)throw Pt=[],new Error}),!1)),t}function Yt(e){if(!e.fn)return;an(e);const t=Tt,n=Ot,r=Mt;Ot=Tt=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=St,e.owned&&e.owned.forEach(an),e.owned=null),ln(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?Zt(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),Ot=n,Tt=t}function Xt(e,t,n){const r={fn:e,state:arguments.length>3&&void 0!==arguments[3]?arguments[3]:St,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Tt,context:null,pure:n};return null===Tt||Tt!==At&&(Tt.owned?Tt.owned.push(r):Tt.owned=[r]),r}function Jt(e){const t=Rt;if(0===e.state||t)return;if(e.state===Et||t)return rn(e);if(e.suspense&&Bt(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Mt);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===St||t)Yt(e);else if(e.state===Et||t){const t=Pt;Pt=null,en((()=>rn(e,n[0])),!1),Pt=t}}function en(e,t){if(Pt)return e();let n=!1;t||(Pt=[]),Lt?n=!0:Lt=[],Mt++;try{const t=e();return function(e){Pt&&(tn(Pt),Pt=null);if(e)return;const t=Lt;Lt=null,t.length&&en((()=>kt(t)),!1)}(n),t}catch(r){n||(Lt=null),Pt=null,ln(r)}}function tn(e){for(let t=0;t<e.length;t++)Jt(e[t])}function nn(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Jt(r)}var r;for(bt.context&&(bt.context=r),t=0;t<n;t++)Jt(e[t])}function rn(e,t){const n=Rt;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===St||n?o!==t&&Jt(o):(o.state===Et||n)&&rn(o,t))}}function on(e){const t=Rt;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Et,r.pure?Pt.push(r):Lt.push(r),r.observers&&on(r))}}function an(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.owned){for(t=0;t<e.owned.length;t++)an(e.owned[t]);e.owned=null}if(e.cleanups){for(t=0;t<e.cleanups.length;t++)e.cleanups[t]();e.cleanups=null}e.state=0,e.context=null}function sn(e){return e instanceof Error||"string"===typeof e?e:new Error("Unknown error")}function ln(e){throw e=sn(e)}function cn(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:cn(e.owner,t):void 0}function un(e){if("function"===typeof e&&!e.length)return un(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=un(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function dn(e,t){return function(t){let n;return $t((()=>n=Bt((()=>(Tt.context={[e]:t.value},Gt((()=>t.children)))))),void 0),n}}const fn=Symbol("fallback");function hn(e){for(let t=0;t<e.length;t++)e[t]()}function pn(e,t){return Bt((()=>e(t||{})))}function gn(){return!0}const mn={get:(e,t,n)=>t===wt?n:e.get(t),has:(e,t)=>t===wt||e.has(t),set:gn,deleteProperty:gn,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:gn,deleteProperty:gn}),ownKeys:e=>e.keys()};function vn(e){return(e="function"===typeof e?e():e)?e:{}}function yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=!1;for(let i=0;i<t.length;i++){const e=t[i];r=r||!!e&&wt in e,t[i]="function"===typeof e?(r=!0,Ut(e)):e}if(r)return new Proxy({get(e){for(let n=t.length-1;n>=0;n--){const r=vn(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in vn(t[n]))return!0;return!1},keys(){const e=[];for(let n=0;n<t.length;n++)e.push(...Object.keys(vn(t[n])));return[...new Set(e)]}},mn);const o={};for(let i=t.length-1;i>=0;i--)if(t[i]){const e=Object.getOwnPropertyDescriptors(t[i]);for(const n in e)n in o||Object.defineProperty(o,n,{enumerable:!0,get(){for(let e=t.length-1;e>=0;e--){const r=(t[e]||{})[n];if(void 0!==r)return r}}})}return o}function bn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=new Set(n.flat());if(wt in e){const t=n.map((t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter((t=>t in e))},mn)));return t.push(new Proxy({get:t=>o.has(t)?void 0:e[t],has:t=>!o.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},mn)),t}const i=Object.getOwnPropertyDescriptors(e);return n.push(Object.keys(i).filter((e=>!o.has(e)))),n.map((t=>{const n={};for(let r=0;r<t.length;r++){const o=t[r];o in e&&Object.defineProperty(n,o,i[o]?i[o]:{get:()=>e[o],set:()=>!0,enumerable:!0})}return n}))}function wn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return Ut(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],o=[],i=[],a=0,s=t.length>1?[]:null;return Ht((()=>hn(i))),()=>{let l,c,u=e()||[];return u[xt],Bt((()=>{let e,t,f,h,p,g,m,v,y,b=u.length;if(0===b)0!==a&&(hn(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[fn],o[0]=Nt((e=>(i[0]=e,n.fallback()))),a=1);else if(0===a){for(o=new Array(b),c=0;c<b;c++)r[c]=u[c],o[c]=Nt(d);a=b}else{for(f=new Array(b),h=new Array(b),s&&(p=new Array(b)),g=0,m=Math.min(a,b);g<m&&r[g]===u[g];g++);for(m=a-1,v=b-1;m>=g&&v>=g&&r[m]===u[v];m--,v--)f[v]=o[m],h[v]=i[m],s&&(p[v]=s[m]);for(e=new Map,t=new Array(v+1),c=v;c>=g;c--)y=u[c],l=e.get(y),t[c]=void 0===l?-1:l,e.set(y,c);for(l=g;l<=m;l++)y=r[l],c=e.get(y),void 0!==c&&-1!==c?(f[c]=o[l],h[c]=i[l],s&&(p[c]=s[l]),c=t[c],e.set(y,c)):i[l]();for(c=g;c<b;c++)c in f?(o[c]=f[c],i[c]=h[c],s&&(s[c]=p[c],s[c](c))):o[c]=Nt(d);o=o.slice(0,a=b),r=u.slice(0)}return o}));function d(e){if(i[c]=e,s){const[e,n]=It(c);return s[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function xn(e){let t=!1;const n=e.keyed,r=Ut((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e===!n});return Ut((()=>{const o=r();if(o){const r=e.children,i="function"===typeof r&&r.length>0;return t=n||i,i?Bt((()=>r(o))):r}return e.fallback}),void 0,void 0)}function Cn(e){let t=!1,n=!1;const r=Gt((()=>e.children)),o=Ut((()=>{let e=r();Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){const r=e[t].when;if(r)return n=!!e[t].keyed,[t,r,e[t]]}return[-1]}),void 0,{equals:(e,n)=>e[0]===n[0]&&(t?e[1]===n[1]:!e[1]===!n[1])&&e[2]===n[2]});return Ut((()=>{const[r,i,a]=o();if(r<0)return e.fallback;const s=a.children,l="function"===typeof s&&s.length>0;return t=n||l,l?Bt((()=>s(i))):s}),void 0,void 0)}function kn(e){return e}const Sn=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),En=new Set(["innerHTML","textContent","innerText","children"]),An=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),_n=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Tn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Rn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),On={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Pn="_$DX_DELEGATE";function Ln(e,t,n){if("undefined"===typeof window)return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function Mn(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Nn(e,t){null==t?e.removeAttribute("class"):e.className=t}function In(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};return(arguments.length>3?arguments[3]:void 0)||$t((()=>r.children=Bn(e,t.children,r.children))),$t((()=>t.ref&&t.ref(e))),$t((()=>function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];t||(t={});for(const a in o)if(!(a in t)){if("children"===a)continue;o[a]=Wn(e,a,null,o[a],n,i)}for(const a in t){if("children"===a){r||Bn(e,t.children);continue}const s=t[a];o[a]=Wn(e,a,s,o[a],n,i)}}(e,t,n,!0,r,!0))),r}function jn(e,t,n){return Bt((()=>e(t,n)))}function $n(e,t,n,r){if(void 0===n||r||(r=[]),"function"!==typeof t)return Bn(e,t,r,n);$t((r=>Bn(e,t(),r,n)),r)}function Dn(e){let t,n;return bt.context&&(t=bt.registry.get(n=function(){const e=bt.context;return`${e.id}${e.count++}`}()))?(bt.completed&&bt.completed.add(t),bt.registry.delete(n),t):e.cloneNode(!0)}function Un(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function Wn(e,t,n,r,o,i){let a,s,l;if("style"===t)return function(e,t,n){if(!t)return n?Mn(e,"style"):t;const r=e.style;if("string"===typeof t)return r.cssText=t;let o,i;for(i in"string"===typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[i]&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}(e,n,r);if("classList"===t)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;i<a;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Un(e,r,!1),delete n[r])}for(i=0,a=r.length;i<a;i++){const o=r[i],a=!!t[o];o&&"undefined"!==o&&n[o]!==a&&a&&(Un(e,o,!0),n[o]=a)}return n}(e,n,r);if(n===r)return r;if("ref"===t)i||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r),n&&e.addEventListener(o,n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),i=Tn.has(o);if(!i&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(i||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n)}(e,o,n,i),i&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;const n=t[Pn]||(t[Pn]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,zn))}}([o]))}else if((l=En.has(t))||!o&&(_n[t]||(s=Sn.has(t)))||(a=e.nodeName.includes("-")))"class"===t||"className"===t?Nn(e,n):!a||s||l?e[_n[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&On[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):Mn(e,An[t]||t,n)}var c;return n}function zn(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>n||document}),bt.registry&&!bt.done&&(bt.done=!0,document.querySelectorAll("[id^=pl-]").forEach((t=>{for(;t&&8!==t.nodeType&&t.nodeValue!=="pl-"+e;){let e=t.nextSibling;t.remove(),t=e}t&&t.remove()})));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(void 0!==o?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function Bn(e,t,n,r,o){for(bt.context&&!n&&(n=[...e.childNodes]);"function"===typeof n;)n=n();if(t===n)return n;const i=typeof t,a=void 0!==r;if(e=a&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(bt.context)return n;if("number"===i&&(t=t.toString()),a){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=Vn(e,n,r,o)}else n=""!==n&&"string"===typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(bt.context)return n;n=Vn(e,n,r)}else{if("function"===i)return $t((()=>{let o=t();for(;"function"===typeof o;)o=o();n=Bn(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],s=n&&Array.isArray(n);if(Fn(i,t,n,o))return $t((()=>n=Bn(e,i,n,r,!0))),()=>n;if(bt.context){if(!i.length)return n;for(let e=0;e<i.length;e++)if(i[e].parentNode)return n=i}if(0===i.length){if(n=Vn(e,n,r),a)return n}else s?0===n.length?Hn(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,c=null;for(;a<o||s<i;)if(t[a]!==n[s]){for(;t[o-1]===n[i-1];)o--,i--;if(o===a){const t=i<r?s?n[s-1].nextSibling:n[i-s]:l;for(;s<i;)e.insertBefore(n[s++],t)}else if(i===s)for(;a<o;)c&&c.has(t[a])||t[a].remove(),a++;else if(t[a]===n[i-1]&&n[s]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[s++],t[a++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=s;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[a]);if(null!=r)if(s<r&&r<i){let l,u=a,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-s){const o=t[a];for(;s<r;)e.insertBefore(n[s++],o)}else e.replaceChild(n[s++],t[a++])}else a++;else t[a++].remove()}}else a++,s++}(e,n,i):(n&&Vn(e),Hn(e,i));n=i}else if(t instanceof Node){if(bt.context&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Vn(e,n,r,t);Vn(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Fn(e,t,n,r){let o=!1;for(let i=0,a=t.length;i<a;i++){let a=t[i],s=n&&n[i];if(a instanceof Node)e.push(a);else if(null==a||!0===a||!1===a);else if(Array.isArray(a))o=Fn(e,a,s)||o;else if("function"===typeof a)if(r){for(;"function"===typeof a;)a=a();o=Fn(e,Array.isArray(a)?a:[a],Array.isArray(s)?s:[s])||o}else e.push(a),o=!0;else{const t=String(a);s&&3===s.nodeType&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return o}function Hn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Vn(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const t=a.parentNode===e;r||i?t&&a.remove():t?e.replaceChild(o,a):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const Kn="http://www.w3.org/2000/svg";function qn(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?document.createElementNS(Kn,e):document.createElement(e)}function Gn(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(bt.context){const[t,n]=It(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=It(!1),n=()=>t(!0);Nt((t=>$n(r,(()=>e()?t():o()()),null))),Ht((()=>{bt.context?queueMicrotask(n):n()}))}else{const i=qn(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),$n(a,o()),r.appendChild(i),e.ref&&e.ref(i),Ht((()=>r.removeChild(i)))}return n}function Qn(e){const[t,n]=bn(e,["component"]),r=Ut((()=>t.component));return Ut((()=>{const e=r();switch(typeof e){case"function":return Bt((()=>e(n)));case"string":const t=Rn.has(e),r=bt.context?Dn():qn(e,t);return In(r,n,t),r}}))}var Zn=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(Zn||{});let Yn={data:""},Xn=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Yn,Jn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,er=/\/\*[^]*?\*\/| +/g,tr=/\n+/g,nr=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?nr(a,i):i+"{"+nr(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=nr(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=nr.p?nr.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},rr={},or=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+or(e[n]);return t}return e},ir=(e,t,n,r,o)=>{let i=or(e),a=rr[i]||(rr[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!rr[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Jn.exec(e.replace(er,""));)t[4]?r.shift():t[3]?(n=t[3].replace(tr," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(tr," ").trim();return r[0]})(e);rr[a]=nr(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&rr.g?rr.g:null;return n&&(rr.g=rr[a]),l=rr[a],c=t,u=r,(d=s)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),a;var l,c,u,d},ar=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":nr(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function sr(e){let t=this||{},n=e.call?e(t.p):e;return ir(n.unshift?n.raw?ar(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Xn(t.target),t.g,t.o,t.k)}sr.bind({g:1});let lr=sr.bind({k:1});const cr=Kt();function ur(e){return pn(cr.Provider,{value:e.theme,get children(){return e.children}})}function dr(){return qt(cr)}function fr(e){let t=this||{};return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];const i=n=>{const o=yn(n,{theme:qt(cr)}),i=yn(o,{get class(){const e=o.class,n="class"in o&&/^go[0-9]+/.test(e);return[e,sr.apply({target:t.target,o:n,p:o,g:t.g},r)].filter(Boolean).join(" ")}}),[a,s]=bn(i,["as","theme"]),l=s,c=a.as||e;let u;return"function"===typeof c?u=c(l):1==t.g?(u=document.createElement(c),In(u,l)):u=Qn(yn({component:c},l)),u};return i.class=e=>Bt((()=>sr.apply({target:t.target,p:e,g:t.g},r))),i}}const hr=new Proxy(fr,{get:(e,t)=>e(t)});function pr(){const e=fr.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const gr="tc-root",mr="tc-disable-scroll",vr="tc-using-mouse",yr=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(vr))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(vr)}));return pn(pr`
3
+ ${gr} * {
4
4
  margin: 0;
5
5
  padding: 0;
6
6
  box-sizing: border-box;
@@ -11,48 +11,48 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
11
11
  -webkit-tap-highlight-color: transparent;
12
12
  }
13
13
 
14
- ${Fr} img {
14
+ ${gr} img {
15
15
  -webkit-user-select: none;
16
16
  -webkit-touch-callout: none;
17
17
  }
18
18
 
19
- ${Fr} *:focus {
19
+ ${gr} *:focus {
20
20
  outline: #08f auto 2px;
21
21
  }
22
22
 
23
- ${Fr} li {
23
+ ${gr} li {
24
24
  list-style: none;
25
25
  }
26
26
 
27
- ${Fr} button {
27
+ ${gr} button {
28
28
  outline: none;
29
29
  }
30
30
 
31
- body.${Hr} {
31
+ body.${mr} {
32
32
  position: fixed;
33
33
  overflow-y: scroll;
34
34
  right: 0;
35
35
  left: 0;
36
36
  }
37
37
 
38
- body.${Vr} ${Fr} *:focus {
38
+ body.${vr} ${gr} *:focus {
39
39
  outline: none;
40
40
  }
41
- `,{})};function qr(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function Gr(e){return e.toString()+"px"}const Zr=class{constructor(){Vt(this,"storage",{})}static getInstance(){return Zr.instance||(Zr.instance=new Zr),Zr.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Qr=Zr;Vt(Qr,"instance");class Yr extends fe{constructor(){super(...arguments),Object.setPrototypeOf(this,Yr.prototype)}}function Xr(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_UI]",...t)}catch(r){}}function Jr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_self";Xr("openLink",e,t),window.open(e,t,"noopener noreferrer")}function eo(e){Jr(e,"_blank")}function to(e,t){const n=setTimeout((()=>{lo("safari")||so("android")&&lo("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Jr(e,"_self")}function no(e){return Kt(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function ro(e){"complete"!==document.readyState?window.addEventListener("load",(()=>no((()=>ro(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function oo(){if("undefined"!==typeof window)return window}function io(){if(function(){try{return"undefined"!==typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new Yr("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Qr.getInstance()}function ao(){var e,t,n;const r=(new B).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function so(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(ao().os)}function lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(ao().browser)}function co(e,t){return t+new URL(e).search}class uo{constructor(){Vt(this,"localStorage"),Vt(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=io()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class fo{constructor(){Vt(this,"localStorage"),Vt(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=io()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class ho{constructor(){Vt(this,"localStorage"),Vt(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=io()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[po,go]=un({status:"closed",closeReason:null}),mo=pn((()=>"opened"===po().status)),[vo,yo]=un({status:"closed",closeReason:null}),bo=pn((()=>"opened"===vo().status)),wo=pn((()=>{const e=vo();return"opened"===e.status?e.walletInfo:null}));let xo="undefined"!==typeof window?new ho:void 0;const[Co,ko]=un((null==xo?void 0:xo.getLastSelectedWalletInfo())||null),So=e=>{xo||(xo=new ho),e?xo.setLastSelectedWalletInfo(e):xo.removeLastSelectedWalletInfo(),ko(e)},[Eo,Ao]=un(null),_o={common:{close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",openWallet:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",copyLink:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",linkCopied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",copied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",yourWallet:"\u0412\u0430\u0448 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",retry:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",get:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c",mobile:"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439",browserExtension:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435",desktop:"\u0414\u0435\u0441\u043a\u0442\u043e\u043f"},button:{connectWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",dropdown:{copy:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441",copied:"\u0410\u0434\u0440\u0435\u0441 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d!",disconnect:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},notifications:{confirm:{header:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }}, \u0447\u0442\u043e\u0431\u044b\xa0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e."},transactionSent:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430",text:"\u0412\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\xa0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437\xa0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434."},transactionCanceled:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430",text:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043d\u0435\xa0\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f."}},walletItem:{walletOn:"Wallet \u0432",recent:"\u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0439",installed:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d",popular:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d"},walletModal:{loading:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f",wallets:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438",mobileUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",openWalletOnTelegramOrSelect:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Wallet \u0432\xa0Telegram \u0438\u043b\u0438\xa0\u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a \u0434\u043b\u044f\xa0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432 Telegram",openLink:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"},desktopUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",availableWallets:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},mobileConnectionModal:{showQR:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c QR-\u043a\u043e\u0434",scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueIn:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u0432 {{ name }}\u2026",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},desktopConnectionModal:{scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueInExtension:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 {{ name }}",dontHaveExtension:"\u041f\u043e\u0445\u043e\u0436\u0435, \u0443 \u0432\u0430\u0441 \u043d\u0435\xa0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435\xa0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\xa0{{ name }}",getWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c {{ name }}",continueOnDesktop:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }} \u043d\u0430\xa0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435\u2026",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432\xa0Telegram",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},infoModal:{whatIsAWallet:"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a?",secureDigitalAssets:"\u041d\u0430\u0434\u0435\u0436\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",walletProtects:"\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f TON, \u0442\u043e\u043a\u0435\u043d\u044b \u0438\xa0\u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\xa0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c\u0438.",controlIdentity:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u0438\u0447\u043d\u043e\u0441\u0442\u0438 Web3",manageIdentity:"\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0432\u043e\u0435\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0438\xa0\u0441\xa0\u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\xa0\u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434\xa0\u0441\u0432\u043e\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\xa0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u0432\xa0\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435\xa0\u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430.",effortlessCryptoTransactions:"\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438",easilySend:"\u041b\u0435\u0433\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0438\xa0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\xa0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.",getAWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},actionModal:{confirmTransaction:{header:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\xa0{{ name }}",text:"\u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},To={en:Ro({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to\xa0confirm the\xa0transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction\xa0will be\xa0processed in\xa0a\xa0few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to\xa0your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueIn:"Continue in {{ name }}\u2026",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueInExtension:"Continue in\xa0{{ name }} browser extension\u2026",dontHaveExtension:"Seems you don't have installed {{ name }}\xa0browser\xa0extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in\xa0{{ name }} on desktop\u2026",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets\xa0including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in\xa0the\xa0blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies.\xa0Streamline your operations with\xa0decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the\xa0transaction in\xa0{{ name }}",text:"It will only take a\xa0moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:Ro(_o)};function Ro(e){const t=n=>{Object.entries(n).forEach((r=>{let[o,i]=r;if("object"===typeof i&&i)return t(i);if("string"===typeof i){if("$"===i[0]){const t=i.slice(1).split(".");let r=e;t.forEach((e=>{if(!(e in r))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);r=r[e]})),n[o]=r}"\\$"===i.slice(0,2)&&(n[o]=i.slice(1))}}))};return t(e),e}const Oo=xn(),Po=Symbol("store-raw"),Lo=Symbol("store-node"),Mo=Symbol("store-name");function No(e,t){let n=e[Gt];if(!n&&(Object.defineProperty(e,Gt,{value:n=new Proxy(e,zo)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function Io(e){let t;return null!=e&&"object"===typeof e&&(e[Gt]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function jo(e){let t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t=null!=e&&e[Po])return t;if(!Io(e)||i.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):i.add(e);for(let t=0,o=e.length;t<o;t++)r=e[t],(n=jo(r,i))!==r&&(e[t]=n)}else{Object.isFrozen(e)?e=Object.assign({},e):i.add(e);const t=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=t.length;s<l;s++)o=t[s],a[o].get||(r=e[o],(n=jo(r,i))!==r&&(e[o]=n))}return e}function $o(e){let t=e[Lo];return t||Object.defineProperty(e,Lo,{value:t={}}),t}function Do(e,t,n){return e[t]||(e[t]=Wo(n))}function Uo(e){if(wn()){const t=$o(e);(t._||(t._=Wo()))()}}function Wo(e){const[t,n]=un(e,{equals:!1,internal:!0});return t.$=n,t}const zo={get(e,t,n){if(t===Po)return e;if(t===Gt)return n;if(t===Zt)return Uo(e),n;const r=$o(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===Lo||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!wn()||"function"===typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Do(r,t,i)())}return Io(i)?No(i):i},has(e,t){return t===Po||t===Gt||t===Zt||t===Lo||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return Uo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Gt&&t!==Lo&&t!==Mo?(delete n.value,delete n.writable,n.get=()=>e[Gt][t],n):n}};function Bo(e,t,n){if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])&&e[t]===n)return;const r=e[t],o=e.length;void 0===n?delete e[t]:e[t]=n;let i,a=$o(e);(i=Do(a,t,r))&&i.$((()=>n)),Array.isArray(e)&&e.length!==o&&(i=Do(a,"length",o))&&i.$(e.length),(i=a._)&&i.$()}function Fo(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Bo(e,o,t[o])}}function Ho(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e;if(t.length>1){n=t.shift();const i=typeof n,a=Array.isArray(e);if(Array.isArray(n)){for(let o=0;o<n.length;o++)Ho(e,[n[o]].concat(t),r);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)n(e[o],o)&&Ho(e,[o].concat(t),r);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=n;for(let n=o;n<=i;n+=a)Ho(e,[n].concat(t),r);return}if(t.length>1)return void Ho(e[n],t,[n].concat(r));o=e[n],r=[n].concat(r)}let i=t[0];"function"===typeof i&&(i=i(o,r),i===o)||void 0===n&&void 0==i||(i=jo(i),void 0===n||Io(o)&&Io(i)&&!Array.isArray(i)?Fo(o,i):Bo(e,n,i))}function Vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t;const i=jo(r||{}),a=Array.isArray(i);return[No(i),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];mn((()=>{a&&1===t.length?function(e,t){if("function"===typeof t&&(t=t(e)),t=jo(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&Bo(e,n,r)}Bo(e,"length",r)}else Fo(e,t)}(i,t[0]):Ho(i,t)}))}]}const Ko={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function qo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Go(e){var t,n;return!1!==qo(e)&&(void 0===(t=e.constructor)||!1!==qo(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Zo(e,t){if(!e)return t;return Nt(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Go})}const[Qo,Yo]=Vo({theme:Sr.LIGHT,colors:Ko,borderRadius:"m"}),Xo={[Sr.LIGHT]:Ko,[Sr.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Jo={[Sr.LIGHT]:void 0,[Sr.DARK]:void 0};function ei(e,t){t&&(Jo[Sr.DARK]=Zo(t[Sr.DARK],Jo[Sr.DARK]),Jo[Sr.LIGHT]=Zo(t[Sr.LIGHT],Jo[Sr.LIGHT])),Yo({theme:e,colors:Zo(Jo[e],Xo[e])})}const ti=zr.div`
41
+ `,{})};function br(e,t){return"#"===e[0]&&(e=function(e){"#"===e[0]&&(e=e.slice(1));const t=parseInt(e,16);return[t>>16&255,t>>8&255,255&t].join(",")}(e)),`rgba(${e}, ${t})`}function wr(e){return e.toString()+"px"}const xr=class{constructor(){vt(this,"storage",{})}static getInstance(){return xr.instance||(xr.instance=new xr),xr.instance}get length(){return Object.keys(this.storage).length}clear(){this.storage={}}getItem(e){var t;return null!=(t=this.storage[e])?t:null}key(e){var t;const n=Object.keys(this.storage);return e<0||e>=n.length?null:null!=(t=n[e])?t:null}removeItem(e){delete this.storage[e]}setItem(e,t){this.storage[e]=t}};let Cr=xr;vt(Cr,"instance");class kr extends ${constructor(){super(...arguments),Object.setPrototypeOf(this,kr.prototype)}}function Sr(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.debug("[TON_CONNECT_UI]",...t)}catch(r){}}function Er(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_self";Sr("openLink",e,t),window.open(e,t,"noopener noreferrer")}function Ar(e){Er(e,"_blank")}function _r(e,t){const n=setTimeout((()=>{Nr("safari")||Mr("android")&&Nr("firefox")||t()}),200);window.addEventListener("blur",(()=>clearTimeout(n)),{once:!0}),Er(e,"_self")}function Tr(e){return yt(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function Rr(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Tr((()=>Rr(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function Or(){if("undefined"!==typeof window)return window}function Pr(){if(function(){try{return"undefined"!==typeof localStorage}catch(e){return!1}}())return localStorage;if("undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node)throw new kr("`localStorage` is unavailable, but it is required for TonConnect. For more details, see https://github.com/ton-connect/sdk/tree/main/packages/sdk#init-connector");return Cr.getInstance()}function Lr(){var e,t,n;const r=(new it).getResult(),o=null==(e=r.os.name)?void 0:e.toLowerCase();let i;switch(!0){case"ipad"===(null==(t=r.device.model)?void 0:t.toLowerCase()):i="ipad";break;case"ios"===o:i="ios";break;case"android"===o:i="android";break;case"mac os"===o:i="macos";break;case"linux"===o:i="linux";break;case null==o?void 0:o.includes("windows"):i="windows"}const a=null==(n=r.browser.name)?void 0:n.toLowerCase();let s;switch(!0){case"chrome"===a:s="chrome";break;case"firefox"===a:s="firefox";break;case null==a?void 0:a.includes("safari"):s="safari";break;case null==a?void 0:a.includes("opera"):s="opera"}return{os:i,browser:s}}function Mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(Lr().os)}function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(Lr().browser)}function Ir(e,t){return t+new URL(e).search}class jr{constructor(){vt(this,"localStorage"),vt(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=Pr()}setWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class $r{constructor(){vt(this,"localStorage"),vt(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=Pr()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Dr{constructor(){vt(this,"localStorage"),vt(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=Pr()}setLastSelectedWalletInfo(e){this.localStorage.setItem(this.storageKey,JSON.stringify(e))}getLastSelectedWalletInfo(){const e=this.localStorage.getItem(this.storageKey);return e?JSON.parse(e):null}removeLastSelectedWalletInfo(){this.localStorage.removeItem(this.storageKey)}}const[Ur,Wr]=It({status:"closed",closeReason:null}),zr=Ut((()=>"opened"===Ur().status)),[Br,Fr]=It({status:"closed",closeReason:null}),Hr=Ut((()=>"opened"===Br().status)),Vr=Ut((()=>{const e=Br();return"opened"===e.status?e.walletInfo:null}));let Kr="undefined"!==typeof window?new Dr:void 0;const[qr,Gr]=It((null==Kr?void 0:Kr.getLastSelectedWalletInfo())||null),Qr=e=>{Kr||(Kr=new Dr),e?Kr.setLastSelectedWalletInfo(e):Kr.removeLastSelectedWalletInfo(),Gr(e)},[Zr,Yr]=It(null),Xr={common:{close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",openWallet:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",copyLink:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",linkCopied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",copied:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430",yourWallet:"\u0412\u0430\u0448 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",retry:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",get:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c",mobile:"\u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439",browserExtension:"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435",desktop:"\u0414\u0435\u0441\u043a\u0442\u043e\u043f"},button:{connectWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a",dropdown:{copy:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441",copied:"\u0410\u0434\u0440\u0435\u0441 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d!",disconnect:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},notifications:{confirm:{header:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }}, \u0447\u0442\u043e\u0431\u044b\xa0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e."},transactionSent:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0430",text:"\u0412\u0430\u0448\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f\xa0\u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u0430 \u0447\u0435\u0440\u0435\u0437\xa0\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434."},transactionCanceled:{header:"\u0422\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043e\u0442\u043c\u0435\u043d\u0435\u043d\u0430",text:"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0447\u0451\u0442\u0430 \u043d\u0435\xa0\u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f."}},walletItem:{walletOn:"Wallet \u0432",recent:"\u041d\u0435\u0434\u0430\u0432\u043d\u0438\u0439",installed:"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d",popular:"\u041f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d"},walletModal:{loading:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f",wallets:"\u041a\u043e\u0448\u0435\u043b\u044c\u043a\u0438",mobileUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",openWalletOnTelegramOrSelect:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 Wallet \u0432\xa0Telegram \u0438\u043b\u0438\xa0\u0432\u044b\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a \u0434\u043b\u044f\xa0\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432 Telegram",openLink:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430"},desktopUniversalModal:{connectYourWallet:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a",scan:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\u0430\u0448\u0435\u0433\u043e\xa0\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",availableWallets:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438"},mobileConnectionModal:{showQR:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c QR-\u043a\u043e\u0434",scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueIn:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435 \u0432 {{ name }}\u2026",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},desktopConnectionModal:{scanQR:"\u041e\u0442\u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0439\u0442\u0435 QR-\u043a\u043e\u0434 \u043d\u0438\u0436\u0435 \u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0432\xa0\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 {{ name }}, \u0438\u043b\u0438\xa0\u043a\u0430\u043c\u0435\u0440\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430",continueInExtension:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 {{ name }}",dontHaveExtension:"\u041f\u043e\u0445\u043e\u0436\u0435, \u0443 \u0432\u0430\u0441 \u043d\u0435\xa0\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u0435\xa0\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435\xa0{{ name }}",getWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c {{ name }}",continueOnDesktop:"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 {{ name }} \u043d\u0430\xa0\u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435\u2026",openWalletOnTelegram:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c Wallet \u0432\xa0Telegram",connectionDeclined:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u043e"},infoModal:{whatIsAWallet:"\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043a\u043e\u0448\u0435\u043b\u0451\u043a?",secureDigitalAssets:"\u041d\u0430\u0434\u0435\u0436\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0445 \u0430\u043a\u0442\u0438\u0432\u043e\u0432",walletProtects:"\u041a\u043e\u0448\u0435\u043b\u0451\u043a \u0437\u0430\u0449\u0438\u0449\u0430\u0435\u0442 \u0432\u0430\u0448\u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0430\u043a\u0442\u0438\u0432\u044b, \u0432\u043a\u043b\u044e\u0447\u0430\u044f TON, \u0442\u043e\u043a\u0435\u043d\u044b \u0438\xa0\u043f\u0440\u0435\u0434\u043c\u0435\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\xa0\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u043c\u0438.",controlIdentity:"\u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0441\u0432\u043e\u0435\u0439 \u043b\u0438\u0447\u043d\u043e\u0441\u0442\u0438 Web3",manageIdentity:"\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0441\u0432\u043e\u0435\u0439 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u0438\xa0\u0441\xa0\u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a\xa0\u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c. \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0439\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043d\u0430\u0434\xa0\u0441\u0432\u043e\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\xa0\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u0439\u0442\u0435 \u0432\xa0\u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0435\xa0\u0431\u043b\u043e\u043a\u0447\u0435\u0439\u043d\u0430.",effortlessCryptoTransactions:"\u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438",easilySend:"\u041b\u0435\u0433\u043a\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435, \u043f\u043e\u043b\u0443\u0447\u0430\u0439\u0442\u0435 \u0438\xa0\u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u044b. \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0432\u043e\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441\xa0\u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.",getAWallet:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u0448\u0435\u043b\u0451\u043a"}},actionModal:{confirmTransaction:{header:"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0432\xa0{{ name }}",text:"\u042d\u0442\u043e \u0437\u0430\u0439\u043c\u0435\u0442 \u043f\u0430\u0440\u0443 \u0441\u0435\u043a\u0443\u043d\u0434."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},Jr={en:eo({common:{close:"Close",openWallet:"Open wallet",copyLink:"Copy Link",linkCopied:"Link Copied",copied:"Copied",yourWallet:"Your Wallet",retry:"Retry",get:"GET",mobile:"Mobile",browserExtension:"Browser Extension",desktop:"Desktop"},button:{connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},notifications:{confirm:{header:"Open {{ name }} to\xa0confirm the\xa0transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction\xa0will be\xa0processed in\xa0a\xa0few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to\xa0your account."}},walletItem:{walletOn:"Wallet On",recent:"Recent",installed:"Installed",popular:"Popular"},walletModal:{loading:"Loading wallets",wallets:"Wallets",mobileUniversalModal:{connectYourWallet:"Connect your wallet",openWalletOnTelegramOrSelect:"Open Wallet in Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet in Telegram",openLink:"Open Link",scan:"Scan with your mobile wallet"},desktopUniversalModal:{connectYourWallet:"Connect your wallet",scan:"Scan with your mobile wallet",availableWallets:"Available wallets"},mobileConnectionModal:{showQR:"Show QR Code",scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueIn:"Continue in {{ name }}\u2026",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the\xa0QR code below with your phone\u2019s\xa0or\xa0{{ name }}\u2019s camera",continueInExtension:"Continue in\xa0{{ name }} browser extension\u2026",dontHaveExtension:"Seems you don't have installed {{ name }}\xa0browser\xa0extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in\xa0{{ name }} on desktop\u2026",openWalletOnTelegram:"Open Wallet in Telegram on desktop",connectionDeclined:"Connection declined"},infoModal:{whatIsAWallet:"What is a wallet",secureDigitalAssets:"Secure digital assets storage",walletProtects:"A wallet protects and manages your digital assets\xa0including TON, tokens and collectables.",controlIdentity:"Control your Web3 identity",manageIdentity:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in\xa0the\xa0blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies.\xa0Streamline your operations with\xa0decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the\xa0transaction in\xa0{{ name }}",text:"It will only take a\xa0moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:eo(Xr)};function eo(e){const t=n=>{Object.entries(n).forEach((r=>{let[o,i]=r;if("object"===typeof i&&i)return t(i);if("string"===typeof i){if("$"===i[0]){const t=i.slice(1).split(".");let r=e;t.forEach((e=>{if(!(e in r))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);r=r[e]})),n[o]=r}"\\$"===i.slice(0,2)&&(n[o]=i.slice(1))}}))};return t(e),e}const to=Kt(),no=Symbol("store-raw"),ro=Symbol("store-node"),oo=Symbol("store-name");function io(e,t){let n=e[wt];if(!n&&(Object.defineProperty(e,wt,{value:n=new Proxy(e,ho)}),!Array.isArray(e))){const t=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let o=0,i=t.length;o<i;o++){const i=t[o];r[i].get&&Object.defineProperty(e,i,{enumerable:r[i].enumerable,get:r[i].get.bind(n)})}}return n}function ao(e){let t;return null!=e&&"object"===typeof e&&(e[wt]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function so(e){let t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t=null!=e&&e[no])return t;if(!ao(e)||i.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):i.add(e);for(let t=0,o=e.length;t<o;t++)r=e[t],(n=so(r,i))!==r&&(e[t]=n)}else{Object.isFrozen(e)?e=Object.assign({},e):i.add(e);const t=Object.keys(e),a=Object.getOwnPropertyDescriptors(e);for(let s=0,l=t.length;s<l;s++)o=t[s],a[o].get||(r=e[o],(n=so(r,i))!==r&&(e[o]=n))}return e}function lo(e){let t=e[ro];return t||Object.defineProperty(e,ro,{value:t={}}),t}function co(e,t,n){return e[t]||(e[t]=fo(n))}function uo(e){if(Vt()){const t=lo(e);(t._||(t._=fo()))()}}function fo(e){const[t,n]=It(e,{equals:!1,internal:!0});return t.$=n,t}const ho={get(e,t,n){if(t===no)return e;if(t===wt)return n;if(t===xt)return uo(e),n;const r=lo(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===ro||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!Vt()||"function"===typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=co(r,t,i)())}return ao(i)?io(i):i},has(e,t){return t===no||t===wt||t===xt||t===ro||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return uo(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==wt&&t!==ro&&t!==oo?(delete n.value,delete n.writable,n.get=()=>e[wt][t],n):n}};function po(e,t,n){if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])&&e[t]===n)return;const r=e[t],o=e.length;void 0===n?delete e[t]:e[t]=n;let i,a=lo(e);(i=co(a,t,r))&&i.$((()=>n)),Array.isArray(e)&&e.length!==o&&(i=co(a,"length",o))&&i.$(e.length),(i=a._)&&i.$()}function go(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];po(e,o,t[o])}}function mo(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=e;if(t.length>1){n=t.shift();const i=typeof n,a=Array.isArray(e);if(Array.isArray(n)){for(let o=0;o<n.length;o++)mo(e,[n[o]].concat(t),r);return}if(a&&"function"===i){for(let o=0;o<e.length;o++)n(e[o],o)&&mo(e,[o].concat(t),r);return}if(a&&"object"===i){const{from:o=0,to:i=e.length-1,by:a=1}=n;for(let n=o;n<=i;n+=a)mo(e,[n].concat(t),r);return}if(t.length>1)return void mo(e[n],t,[n].concat(r));o=e[n],r=[n].concat(r)}let i=t[0];"function"===typeof i&&(i=i(o,r),i===o)||void 0===n&&void 0==i||(i=so(i),void 0===n||ao(o)&&ao(i)&&!Array.isArray(i)?go(o,i):po(e,n,i))}function vo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t;const i=so(r||{}),a=Array.isArray(i);return[io(i),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];zt((()=>{a&&1===t.length?function(e,t){if("function"===typeof t&&(t=t(e)),t=so(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){const r=t[n];e[n]!==r&&po(e,n,r)}po(e,"length",r)}else go(e,t)}(i,t[0]):mo(i,t)}))}]}const yo={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#0098EA",telegramButton:"#0098EA",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF",tint:"#F1F3F5",qr:"#F1F3F5"},text:{primary:"#0F0F0F",secondary:"#6A7785"}};function bo(e){return"[object Object]"===Object.prototype.toString.call(e)}function wo(e){var t,n;return!1!==bo(e)&&(void 0===(t=e.constructor)||!1!==bo(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function xo(e,t){if(!e)return t;return at(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:wo})}const[Co,ko]=vo({theme:Zn.LIGHT,colors:yo,borderRadius:"m"}),So={[Zn.LIGHT]:yo,[Zn.DARK]:{constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#0098EA",foreground:"#FFFFFF"},accent:"#E5E5EA",telegramButton:"#31A6F5",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629",tint:"#222224",qr:"#FFFFFF"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}}},Eo={[Zn.LIGHT]:void 0,[Zn.DARK]:void 0};function Ao(e,t){t&&(Eo[Zn.DARK]=xo(t[Zn.DARK],Eo[Zn.DARK]),Eo[Zn.LIGHT]=xo(t[Zn.LIGHT],Eo[Zn.LIGHT])),ko({theme:e,colors:xo(Eo[e],So[e])})}const _o=hr.div`
42
42
  background-color: ${e=>e.theme.colors.background.secondary};
43
- `,ni=e=>{let t;const[n,r]=un(null);return hn((()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",(()=>r(t))),()=>t.removeEventListener("load",(()=>r(t))))})),[Bn(Zn,{get when(){return n()},get children(){return n()}}),Bn(Zn,{get when(){return!n()},get children(){return Bn(ti,{get class(){return e.class},ref(e){"function"===typeof t?t(e):t=e}})}})]};let ri={};try{ri=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=hi(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=hi(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=hi(r[0]),i=null==r[1]?null:hi(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(Yv){}let oi="unknown";if((null==ri?void 0:ri.tgWebAppPlatform)&&(oi=null!=(At=ri.tgWebAppPlatform)?At:"unknown"),"unknown"===oi){const e=oo();oi=null!=(Rt=null==(Tt=null==(_t=null==e?void 0:e.Telegram)?void 0:_t.WebApp)?void 0:Tt.platform)?Rt:"unknown"}let ii="6.0";if((null==ri?void 0:ri.tgWebAppVersion)&&(ii=ri.tgWebAppVersion),!ii){const e=oo();ii=null!=(Lt=null==(Pt=null==(Ot=null==e?void 0:e.Telegram)?void 0:Ot.WebApp)?void 0:Pt.version)?Lt:"6.0"}function ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(oi)}function si(){var e;return"unknown"!==oi||!!(null==(e=oo())?void 0:e.TelegramWebviewProxy)}function li(){var e;const t=!!(null==(e=oo())?void 0:e.TelegramWebview);return(si()||t)&&"unknown"===oi}function ci(){fi("web_app_expand",{})}function ui(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new Yr(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new Yr(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;di()||function(e,t){"string"!==typeof e&&(e=""),"string"!==typeof t&&(t="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(ii,"6.1")>=0?fi("web_app_open_tg_link",{path_full:r}):eo("https://t.me"+r)}function di(){try{const e=oo();return!!e&&(null!=e.parent&&e!==e.parent)}catch(Yv){return!1}}function fi(e,t){try{const n=oo();if(!n)throw new Yr("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Xr("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Xr("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!di())throw new Yr("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Xr("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(Yv){!function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.error("[TON_CONNECT_UI]",...n)}catch(e){}}(`Can't post event to parent window: ${Yv}`)}}function hi(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(Yv){return e}}const pi=440,gi=1020;function mi(e){const t=oo();if(!t)return"desktop"===e;if(ai("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>gi;case"tablet":return n>pi;default:return n<=pi||so("ios","android","ipad")}}function vi(e){switch(e){case"mobile":return`@media (max-width: ${pi}px)`;case"tablet":return`@media (max-width: ${gi}px) (min-width: ${pi}px)`;default:return`@media (min-width: ${gi}px)`}}const yi="@media (hover: none)",bi="@media not all and (hover: none)",wi={m:"100vh",s:"8px",none:"0"},xi={s:.02,m:.04},Ci=zr.button`
43
+ `,To=e=>{let t;const[n,r]=It(null);return Dt((()=>{const t=new window.Image;return t.src=e.src,t.alt=e.alt||"",t.setAttribute("draggable","false"),e.class&&t.classList.add(e.class),t.complete?r(t):(t.addEventListener("load",(()=>r(t))),()=>t.removeEventListener("load",(()=>r(t))))})),[pn(xn,{get when(){return n()},get children(){return n()}}),pn(xn,{get when(){return!n()},get children(){return pn(_o,{get class(){return e.class},ref(e){"function"===typeof t?t(e):t=e}})}})]};let Ro={};try{Ro=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Uo(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=Uo(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,a=e.split("&");for(n=0;n<a.length;n++)r=a[n].split("="),o=Uo(r[0]),i=null==r[1]?null:Uo(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(sy){}let Oo="unknown";if((null==Ro?void 0:Ro.tgWebAppPlatform)&&(Oo=null!=(Ye=Ro.tgWebAppPlatform)?Ye:"unknown"),"unknown"===Oo){const e=Or();Oo=null!=(et=null==(Je=null==(Xe=null==e?void 0:e.Telegram)?void 0:Xe.WebApp)?void 0:Je.platform)?et:"unknown"}let Po="6.0";if((null==Ro?void 0:Ro.tgWebAppVersion)&&(Po=Ro.tgWebAppVersion),!Po){const e=Or();Po=null!=(rt=null==(nt=null==(tt=null==e?void 0:e.Telegram)?void 0:tt.WebApp)?void 0:nt.version)?rt:"6.0"}function Lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(Oo)}function Mo(){var e;return"unknown"!==Oo||!!(null==(e=Or())?void 0:e.TelegramWebviewProxy)}function No(){var e;const t=!!(null==(e=Or())?void 0:e.TelegramWebview);return(Mo()||t)&&"unknown"===Oo}function Io(){Do("web_app_expand",{})}function jo(e,t){const n=new URL(e);if("http:"!==n.protocol&&"https:"!==n.protocol){if(t)return t();throw new kr(`Url protocol is not supported: ${n}`)}if("t.me"!==n.hostname){if(t)return t();throw new kr(`Url host is not supported: ${n}`)}const r=n.pathname+n.search;$o()||function(e,t){"string"!==typeof e&&(e=""),"string"!==typeof t&&(t="");let n,r,o,i,a=e.replace(/^\s+|\s+$/g,"").split("."),s=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(a.length,s.length),r=0;r<n;r++)if(o=parseInt(a[r])||0,i=parseInt(s[r])||0,o!==i)return o>i?1:-1;return 0}(Po,"6.1")>=0?Do("web_app_open_tg_link",{path_full:r}):Ar("https://t.me"+r)}function $o(){try{const e=Or();return!!e&&(null!=e.parent&&e!==e.parent)}catch(sy){return!1}}function Do(e,t){try{const n=Or();if(!n)throw new kr("Can't post event to parent window: window is not defined");if(void 0!==n.TelegramWebviewProxy)Sr("postEvent",e,t),n.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(n.external&&"notify"in n.external)Sr("postEvent",e,t),n.external.notify(JSON.stringify({eventType:e,eventData:t}));else{if(!$o())throw new kr("Can't post event to TMA");{const r="*",o=JSON.stringify({eventType:e,eventData:t});Sr("postEvent",e,t),n.parent.postMessage(o,r)}}}catch(sy){!function(){try{for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];console.error("[TON_CONNECT_UI]",...n)}catch(e){}}(`Can't post event to parent window: ${sy}`)}}function Uo(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(sy){return e}}const Wo=440,zo=1020;function Bo(e){const t=Or();if(!t)return"desktop"===e;if(Lo("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>zo;case"tablet":return n>Wo;default:return n<=Wo||Mr("ios","android","ipad")}}function Fo(e){switch(e){case"mobile":return`@media (max-width: ${Wo}px)`;case"tablet":return`@media (max-width: ${zo}px) (min-width: ${Wo}px)`;default:return`@media (min-width: ${zo}px)`}}const Ho="@media (hover: none)",Vo="@media not all and (hover: none)",Ko={m:"100vh",s:"8px",none:"0"},qo={s:.02,m:.04},Go=hr.button`
44
44
  display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
45
45
  gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
46
46
  align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
47
47
  justify-content: ${e=>e.leftIcon||e.rightIcon?"space-between":"unset"};
48
- background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:qr(e.theme.colors.accent,.12)};
48
+ background-color: ${e=>"flat"===e.appearance?"transparent":"secondary"===e.appearance?e.theme.colors.background.tint:br(e.theme.colors.accent,.12)};
49
49
  color: ${e=>"secondary"===e.appearance?e.theme.colors.text.primary:e.theme.colors.accent};
50
50
 
51
51
  padding: ${e=>"flat"===e.appearance?"0":"9px 16px"};
52
52
  padding-left: ${e=>e.leftIcon&&"flat"!==e.appearance?"12px":"16px"};
53
53
  padding-right: ${e=>e.rightIcon&&"flat"!==e.appearance?"12px":"16px"};
54
54
  border: none;
55
- border-radius: ${e=>wi[e.theme.borderRadius]};
55
+ border-radius: ${e=>Ko[e.theme.borderRadius]};
56
56
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
57
57
 
58
58
  font-size: 14px;
@@ -61,25 +61,25 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
61
61
 
62
62
  transition: transform 0.125s ease-in-out;
63
63
 
64
- ${bi} {
64
+ ${Vo} {
65
65
  &:hover {
66
- transform: ${e=>e.disabled?"unset":`scale(${1+xi[e.scale]})`};
66
+ transform: ${e=>e.disabled?"unset":`scale(${1+qo[e.scale]})`};
67
67
  }
68
68
  }
69
69
 
70
70
  &:active {
71
- transform: ${e=>e.disabled?"unset":`scale(${1-xi[e.scale]})`};
71
+ transform: ${e=>e.disabled?"unset":`scale(${1-qo[e.scale]})`};
72
72
  }
73
73
 
74
- ${yi} {
74
+ ${Ho} {
75
75
  &:active {
76
- transform: ${e=>e.disabled?"unset":`scale(${1-2*xi[e.scale]})`};
76
+ transform: ${e=>e.disabled?"unset":`scale(${1-2*qo[e.scale]})`};
77
77
  }
78
78
  }
79
- `;function ki(e){const t=vn((()=>Object.keys(e).filter((e=>e.startsWith("data-"))))),[n]=qn(e,t);return n}const Si=e=>{const t=ki(e);return Bn(Ci,Kn({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[pn((()=>e.leftIcon)),pn((()=>e.children)),pn((()=>e.rightIcon))]}}))};function Ei(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}const Ai=e=>{let t,n=!0;const[r,o]=un(),[i,a]=un(),s=kn((()=>e.children)),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:h}=e,p=pn((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}}));function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...h),mn((()=>{r()!==t&&o(t),i()===t&&a(void 0)})),u&&u(t),"inout"===e.mode&&m(t,s))};const d=p().enterClass.split(" "),f=p().enterActiveClass.split(" "),h=p().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),Ei((()=>{t.classList.remove(...d),t.classList.add(...h),c&&c(t,(()=>n())),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))}))}s&&!e.mode?a(t):o(t)}function m(t,n){const i=p().exitClass.split(" "),a=p().exitActiveClass.split(" "),s=p().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),h&&h(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),Ei((()=>{n.classList.remove(...i),n.classList.add(...s)})),f&&f(n,(()=>l())),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return dn((r=>{for(t=s();"function"===typeof t;)t=t();return vn((()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t)))})),[r,i]};function _i(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const Ti=e=>{const t=kn((()=>e.children)),n=pn((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}})),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=un();let d=[],f=!0;return dn((()=>{const e=t(),c=[...e],h=new Set(e),p=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),v=n().enterToClass.split(" "),y=n().exitClass.split(" "),b=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!p.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...v),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),Ei((()=>{n.classList.remove(...g),n.classList.add(...v),o&&o(n,(()=>e())),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))}))}}for(let t=0;t<d.length;t++){const e=d[t];if(!h.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...b),e.classList.remove(...w),l&&l(e),d=d.filter((t=>t!==e)),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...y),e.classList.add(...b),Ei((()=>{e.classList.remove(...y),e.classList.add(...w)})),s&&s(e,(()=>n())),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)})),hn((e=>{const t=c();return t.forEach((t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=_i(t)):e.set(t,n={pos:_i(t),new:!f}),n.new&&t.addEventListener("transitionend",(()=>{n.new=!1,t.parentNode&&(n.newPos=_i(t))}),{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=_i(t)})),f?(f=!1,e):(t.forEach((t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}})),document.body.offsetHeight,t.forEach((t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}})),e)}),new Map),c};const Ri="androidBackHandler",Oi={[Ri]:!0},Pi=ar('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),Li={left:0,top:90,right:180,bottom:270},Mi=e=>{const t=Ur();return Bn(zr("svg")`
80
- transform: rotate(${e=>Li[e.svgDirection]}deg);
79
+ `;function Qo(e){const t=Bt((()=>Object.keys(e).filter((e=>e.startsWith("data-"))))),[n]=bn(e,t);return n}const Zo=e=>{const t=Qo(e);return pn(Go,yn({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:t=>{var n;return null==(n=e.onClick)?void 0:n.call(e,t)},onMouseEnter:t=>{var n;return null==(n=e.onMouseEnter)?void 0:n.call(e,t)},onMouseLeave:t=>{var n;return null==(n=e.onMouseLeave)?void 0:n.call(e,t)},ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get disabled(){return e.disabled},get scale(){return e.scale||"m"},get leftIcon(){return!!e.leftIcon},get rightIcon(){return!!e.rightIcon},"data-tc-button":"true"},t,{get children(){return[Ut((()=>e.leftIcon)),Ut((()=>e.children)),Ut((()=>e.rightIcon))]}}))};function Yo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}const Xo=e=>{let t,n=!0;const[r,o]=It(),[i,a]=It(),s=Gt((()=>e.children)),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:f,onAfterExit:h}=e,p=Ut((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to"}}));function g(t,s){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...f),t.classList.remove(...h),zt((()=>{r()!==t&&o(t),i()===t&&a(void 0)})),u&&u(t),"inout"===e.mode&&m(t,s))};const d=p().enterClass.split(" "),f=p().enterActiveClass.split(" "),h=p().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...f),Yo((()=>{t.classList.remove(...d),t.classList.add(...h),c&&c(t,(()=>n())),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))}))}s&&!e.mode?a(t):o(t)}function m(t,n){const i=p().exitClass.split(" "),a=p().exitActiveClass.split(" "),s=p().exitToClass.split(" ");if(!n.parentNode)return l();function l(i){i&&i.target!==n||(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...a),n.classList.remove(...s),r()===n&&o(void 0),h&&h(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...a),Yo((()=>{n.classList.remove(...i),n.classList.add(...s)})),f&&f(n,(()=>l())),(!f||f.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return jt((r=>{for(t=s();"function"===typeof t;)t=t();return Bt((()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&m(t,r),n=!1,t)))})),[r,i]};function Jo(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const ei=e=>{const t=Gt((()=>e.children)),n=Ut((()=>{const t=e.name||"s";return{enterActiveClass:e.enterActiveClass||t+"-enter-active",enterClass:e.enterClass||t+"-enter",enterToClass:e.enterToClass||t+"-enter-to",exitActiveClass:e.exitActiveClass||t+"-exit-active",exitClass:e.exitClass||t+"-exit",exitToClass:e.exitToClass||t+"-exit-to",moveClass:e.moveClass||t+"-move"}})),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[c,u]=It();let d=[],f=!0;return jt((()=>{const e=t(),c=[...e],h=new Set(e),p=new Set(d),g=n().enterClass.split(" "),m=n().enterActiveClass.split(" "),v=n().enterToClass.split(" "),y=n().exitClass.split(" "),b=n().exitActiveClass.split(" "),w=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!f&&!p.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...m),n.classList.remove(...v),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...m),Yo((()=>{n.classList.remove(...g),n.classList.add(...v),o&&o(n,(()=>e())),(!o||o.length<2)&&(n.addEventListener("transitionend",e),n.addEventListener("animationend",e))}))}}for(let t=0;t<d.length;t++){const e=d[t];if(!h.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...b),e.classList.remove(...w),l&&l(e),d=d.filter((t=>t!==e)),u(d))};c.splice(t,0,e),a&&a(e),e.classList.add(...y),e.classList.add(...b),Yo((()=>{e.classList.remove(...y),e.classList.add(...w)})),s&&s(e,(()=>n())),(!s||s.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)})),Dt((e=>{const t=c();return t.forEach((t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=Jo(t)):e.set(t,n={pos:Jo(t),new:!f}),n.new&&t.addEventListener("transitionend",(()=>{n.new=!1,t.parentNode&&(n.newPos=Jo(t))}),{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=Jo(t)})),f?(f=!1,e):(t.forEach((t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,a=r.top-o.top;if(i||a){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${a}px)`,e.transitionDuration="0s"}})),document.body.offsetHeight,t.forEach((t=>{const r=e.get(t);if(r.moved){let e=function(n){n&&n.target!==t||!t.parentNode||n&&!/transform$/.test(n.propertyName)||(t.removeEventListener("transitionend",e),t.classList.remove(...i))};r.moved=!1;const o=t.style,i=n().moveClass.split(" ");t.classList.add(...i),o.transform=o.transitionDuration="",t.addEventListener("transitionend",e)}})),e)}),new Map),c};const ti="androidBackHandler",ni={[ti]:!0},ri=Ln('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2122 14.3407C10.5384 14.0854 10.5959 13.614 10.3406 13.2878L6.20237 8.00003L10.3406 2.71227C10.5959 2.38607 10.5384 1.91469 10.2122 1.6594C9.88604 1.40412 9.41465 1.46161 9.15937 1.7878L4.65937 7.5378C4.44688 7.80932 4.44688 8.19074 4.65937 8.46226L9.15937 14.2123C9.41465 14.5385 9.88604 14.5959 10.2122 14.3407Z"></path></svg>',0,!0),oi={left:0,top:90,right:180,bottom:270},ii=e=>{const t=dr();return pn(hr("svg")`
80
+ transform: rotate(${e=>oi[e.svgDirection]}deg);
81
81
  transition: transform 0.1s ease-in-out;
82
- `,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=Pi.cloneNode(!0);return fn((()=>sr(n,"fill",e.fill||t.colors.icon.secondary))),n}})},Ni=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z"></path></svg>'),Ii=e=>{const t=Ur();return(()=>{const n=Ni.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.secondary))),n})()},ji=zr.button`
82
+ `,{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",get svgDirection(){return e.direction||"left"},get children(){const n=ri.cloneNode(!0);return $t((()=>Mn(n,"fill",e.fill||t.colors.icon.secondary))),n}})},ai=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.71966 2.71968C3.01255 2.42678 3.48743 2.42677 3.78032 2.71966L8.00002 6.93925L12.2197 2.71967C12.5126 2.42677 12.9874 2.42678 13.2803 2.71967C13.5732 3.01257 13.5732 3.48744 13.2803 3.78033L9.06068 7.99991L13.2803 12.2197C13.5732 12.5126 13.5732 12.9874 13.2803 13.2803C12.9874 13.5732 12.5126 13.5732 12.2197 13.2803L8.00002 9.06057L3.78033 13.2803C3.48744 13.5732 3.01257 13.5732 2.71967 13.2803C2.42678 12.9874 2.42677 12.5126 2.71967 12.2197L6.93936 7.99991L2.71968 3.78034C2.42678 3.48745 2.42677 3.01257 2.71966 2.71968Z"></path></svg>'),si=e=>{const t=dr();return(()=>{const n=ai.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.secondary))),n})()},li=hr.button`
83
83
  padding: 0;
84
84
  display: flex;
85
85
  justify-content: center;
@@ -93,7 +93,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
93
93
 
94
94
  transition: transform 0.125s ease-in-out;
95
95
 
96
- ${bi} {
96
+ ${Vo} {
97
97
  &:hover {
98
98
  transform: scale(1.04);
99
99
  }
@@ -103,12 +103,12 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
103
103
  transform: scale(0.96);
104
104
  }
105
105
 
106
- ${yi} {
106
+ ${Ho} {
107
107
  &:active {
108
108
  transform: scale(0.92);
109
109
  }
110
110
  }
111
- `,$i=e=>{const t=ki(e),n=()=>e.icon||"close";return Bn(ji,Kn({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[Bn(Zn,{get when(){return!!e.children},get children(){return e.children}}),Bn(Zn,{get when(){return!e.children},get children(){return Bn(Qn,{get children(){return[Bn(Yn,{get when(){return"close"===n()},get children(){return Bn(Ii,{get fill(){return e.fill}})}}),Bn(Yn,{get when(){return"arrow"===n()},get children(){return Bn(Mi,{get fill(){return e.fill}})}}),Bn(Yn,{get when(){return"question"===n()},get children(){return Bn(ls,{get fill(){return e.fill}})}}),Bn(Yn,{get when(){return"string"!==typeof n()},get children(){return n()}})]}})}})]}}))},Di={m:"24px",s:"16px",none:"0"},Ui=zr.div`
111
+ `,ci=e=>{const t=Qo(e),n=()=>e.icon||"close";return pn(li,yn({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[pn(xn,{get when(){return!!e.children},get children(){return e.children}}),pn(xn,{get when(){return!e.children},get children(){return pn(Cn,{get children(){return[pn(kn,{get when(){return"close"===n()},get children(){return pn(si,{get fill(){return e.fill}})}}),pn(kn,{get when(){return"arrow"===n()},get children(){return pn(ii,{get fill(){return e.fill}})}}),pn(kn,{get when(){return"question"===n()},get children(){return pn(Na,{get fill(){return e.fill}})}}),pn(kn,{get when(){return"string"!==typeof n()},get children(){return n()}})]}})}})]}}))},ui={m:"24px",s:"16px",none:"0"},di=hr.div`
112
112
  display: flex;
113
113
  position: fixed;
114
114
  z-index: 1000;
@@ -120,20 +120,20 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
120
120
  padding: 20px 0;
121
121
  overflow-y: auto;
122
122
 
123
- ${vi("mobile")} {
123
+ ${Fo("mobile")} {
124
124
  padding-bottom: 0;
125
125
  }
126
- `,Wi=Ir`
126
+ `,fi=sr`
127
127
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 64px rgba(0, 0, 0, 0.16);
128
128
  width: fit-content;
129
129
  margin: auto;
130
130
 
131
- ${vi("mobile")} {
131
+ ${Fo("mobile")} {
132
132
  width: 100%;
133
133
  height: fit-content;
134
134
  margin: auto 0 0 0;
135
135
  }
136
- `,zi=zr.div`
136
+ `,hi=hr.div`
137
137
  position: relative;
138
138
  min-height: 100px;
139
139
  width: 416px;
@@ -142,33 +142,33 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
142
142
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
143
143
 
144
144
  background-color: ${e=>e.theme.colors.background.primary};
145
- border-radius: ${e=>Di[e.theme.borderRadius]};
145
+ border-radius: ${e=>ui[e.theme.borderRadius]};
146
146
 
147
- ${vi("mobile")} {
147
+ ${Fo("mobile")} {
148
148
  width: 100%;
149
149
  }
150
- `,Bi=zr($i)`
150
+ `,pi=hr(ci)`
151
151
  position: absolute;
152
152
  right: 16px;
153
153
  top: 16px;
154
- `,Fi=zr.div`
154
+ `,gi=hr.div`
155
155
  display: flex;
156
156
  justify-content: space-between;
157
157
  align-items: center;
158
158
  padding: 16px 16px 16px 18px;
159
- border-radius: 0 0 ${e=>Di[e.theme.borderRadius]}
160
- ${e=>Di[e.theme.borderRadius]};
161
- `,Hi=zr($i)`
162
- background-color: ${e=>qr(e.theme.colors.icon.secondary,.12)};
163
- `;class Vi{constructor(){Vt(this,"currentTime",0)}}const Ki=class{constructor(){Vt(this,"currentTime",0),Vt(this,"playbackRate",1),Vt(this,"startTime",null),Vt(this,"timeline",new Vi),Vt(this,"finished",Promise.resolve(this)),Vt(this,"effect",null),Vt(this,"id",""),Vt(this,"pending",!1),Vt(this,"playState","finished"),Vt(this,"replaceState","active"),Vt(this,"ready",Promise.resolve(this)),Vt(this,"oncancel",null),Vt(this,"onfinish",null),Vt(this,"onremove",null)}static create(){return Ki._instance||(!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_UI]",...t)}catch(Yv){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),Ki._instance=new Ki),Ki._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let qi=Ki;function Gi(e,t,n){return"animate"in e?e.animate(t,n):qi.create()}Vt(qi,"_instance",null);const Zi=ar("<div></div>"),Qi=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),bn((()=>document.body.removeEventListener("click",n)))},Yi=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),bn((()=>document.body.removeEventListener("keydown",n)))},Xi=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===ao().os))return;window.history.pushState(Oi,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),bn((()=>{window.removeEventListener("popstate",o),no((()=>{var e;!0===(null==(e=window.history.state)?void 0:e[Ri])&&window.history.back()}))}))},Ji=e=>{const t=Ur(),n=ki(e);return hn((()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Gr(-document.documentElement.scrollTop),document.body.classList.add(Hr)):(document.body.classList.remove(Hr),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")})),Bn(Ai,{onBeforeEnter:e=>{const t=mi("mobile")?200:100;Gi(e,[{opacity:0},{opacity:1}],{duration:t}),mi("mobile")&&Gi(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=mi("mobile")?200:100,r=Gi(e,[{opacity:1},{opacity:0}],{duration:n});if(mi("mobile")){const o=Gi(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return Bn(Zn,{get when(){return e.opened},get children(){return Bn(Ui,Kn({"data-tc-modal":"true"},n,{get children(){const n=Zi.cloneNode(!0);return ur(Xi,n,(()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()}))),ur(Yi,n,(()=>()=>e.onClose())),ur(Qi,n,(()=>()=>e.onClose())),dr(n,Bn(zi,{get class(){return e.class},get children(){return[Bn(Bi,{icon:"close",onClick:()=>e.onClose()}),pn((()=>e.children))]}}),null),dr(n,Bn(Zn,{get when(){return e.onClickQuestion},get children(){return Bn(Fi,{get children(){return[Bn(as,{}),Bn(Hi,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),fn((()=>lr(n,It(Wi,Ir`
164
- border-radius: ${Di[t.borderRadius]};
159
+ border-radius: 0 0 ${e=>ui[e.theme.borderRadius]}
160
+ ${e=>ui[e.theme.borderRadius]};
161
+ `,mi=hr(ci)`
162
+ background-color: ${e=>br(e.theme.colors.icon.secondary,.12)};
163
+ `;class vi{constructor(){vt(this,"currentTime",0)}}const yi=class{constructor(){vt(this,"currentTime",0),vt(this,"playbackRate",1),vt(this,"startTime",null),vt(this,"timeline",new vi),vt(this,"finished",Promise.resolve(this)),vt(this,"effect",null),vt(this,"id",""),vt(this,"pending",!1),vt(this,"playState","finished"),vt(this,"replaceState","active"),vt(this,"ready",Promise.resolve(this)),vt(this,"oncancel",null),vt(this,"onfinish",null),vt(this,"onremove",null)}static create(){return yi._instance||(!function(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.warn("[TON_CONNECT_UI]",...t)}catch(sy){}}("Animation is not supported in this environment: please consider using the `web-animations-js` polyfill to provide a fallback implementation of the Web Animations API."),yi._instance=new yi),yi._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let bi=yi;function wi(e,t,n){return"animate"in e?e.animate(t,n):bi.create()}vt(bi,"_instance",null);const xi=Ln("<div></div>"),Ci=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),Ht((()=>document.body.removeEventListener("click",n)))},ki=function(e,t){const n=e=>{var n,r;"Escape"===e.key&&(null==(n=document.activeElement)||n.blur(),null==(r=t())||r())};document.body.addEventListener("keydown",n),Ht((()=>document.body.removeEventListener("keydown",n)))},Si=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Lr().os))return;window.history.pushState(ni,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),Ht((()=>{window.removeEventListener("popstate",o),Tr((()=>{var e;!0===(null==(e=window.history.state)?void 0:e[ti])&&window.history.back()}))}))},Ei=e=>{const t=dr(),n=Qo(e);return Dt((()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=wr(-document.documentElement.scrollTop),document.body.classList.add(mr)):(document.body.classList.remove(mr),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")})),pn(Xo,{onBeforeEnter:e=>{const t=Bo("mobile")?200:100;wi(e,[{opacity:0},{opacity:1}],{duration:t}),Bo("mobile")&&wi(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Bo("mobile")?200:100,r=wi(e,[{opacity:1},{opacity:0}],{duration:n});if(Bo("mobile")){const o=wi(e.firstElementChild,[{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:n});Promise.all([r.finished,o.finished]).then(t)}else r.finished.then(t)},get children(){return pn(xn,{get when(){return e.opened},get children(){return pn(di,yn({"data-tc-modal":"true"},n,{get children(){const n=xi.cloneNode(!0);return jn(Si,n,(()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()}))),jn(ki,n,(()=>()=>e.onClose())),jn(Ci,n,(()=>()=>e.onClose())),$n(n,pn(hi,{get class(){return e.class},get children(){return[pn(pi,{icon:"close",onClick:()=>e.onClose()}),Ut((()=>e.children))]}}),null),$n(n,pn(xn,{get when(){return e.onClickQuestion},get children(){return pn(gi,{get children(){return[pn(La,{}),pn(mi,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),$t((()=>Nn(n,st(fi,sr`
164
+ border-radius: ${ui[t.borderRadius]};
165
165
  background-color: ${t.colors.background.tint};
166
166
 
167
- ${vi("mobile")} {
168
- border-radius: ${Di[t.borderRadius]}
169
- ${Di[t.borderRadius]} 0 0;
167
+ ${Fo("mobile")} {
168
+ border-radius: ${ui[t.borderRadius]}
169
+ ${ui[t.borderRadius]} 0 0;
170
170
  }
171
- `)))),n}}))}})}})},ea={m:"22px",s:"12px",none:"0"},ta={m:"18px",s:"8px",none:"0"},na=zr.div`
171
+ `)))),n}}))}})}})},Ai={m:"22px",s:"12px",none:"0"},_i={m:"18px",s:"8px",none:"0"},Ti=hr.div`
172
172
  display: grid;
173
173
  grid-template: 1fr / 1fr 1fr;
174
174
  width: fit-content;
@@ -177,10 +177,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
177
177
 
178
178
  position: relative;
179
179
  padding: 4px;
180
- border-radius: ${e=>ea[e.theme.borderRadius]};
180
+ border-radius: ${e=>Ai[e.theme.borderRadius]};
181
181
 
182
182
  background-color: ${e=>e.theme.colors.background.secondary};
183
- `,ra=zr.div`
183
+ `,Ri=hr.div`
184
184
  position: absolute;
185
185
  top: 4px;
186
186
  left: 4px;
@@ -188,15 +188,15 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
188
188
  height: calc(100% - 8px);
189
189
  width: calc(50% - 4px);
190
190
 
191
- border-radius: ${e=>ta[e.theme.borderRadius]};
191
+ border-radius: ${e=>_i[e.theme.borderRadius]};
192
192
  background-color: ${e=>e.theme.colors.background.segment};
193
193
 
194
194
  transform: ${e=>e.right?"translateX(100%)":"translateX(0)"};
195
195
 
196
196
  transition: transform 0.13s ease-in-out;
197
- `,oa=zr.input`
197
+ `,Oi=hr.input`
198
198
  display: none;
199
- `,ia=zr.label`
199
+ `,Pi=hr.label`
200
200
  padding: 9px 12px;
201
201
  z-index: 1;
202
202
 
@@ -211,7 +211,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
211
211
  > * {
212
212
  ${e=>e.isActive?"":`color: ${e.theme.colors.text.secondary};`}
213
213
  }
214
- `,aa={m:"16px",s:"12px",none:"0"},sa={m:"12px",s:"8px",none:"0"},la=zr.div`
214
+ `,Li={m:"16px",s:"12px",none:"0"},Mi={m:"12px",s:"8px",none:"0"},Ni=hr.div`
215
215
  width: 52px;
216
216
  height: 52px;
217
217
  background: transparent;
@@ -223,42 +223,42 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
223
223
  align-items: center;
224
224
  justify-content: center;
225
225
  transition: transform 0.125s ease-in-out;
226
- `,ca=zr.button`
226
+ `,Ii=hr.button`
227
227
  display: flex;
228
228
  align-items: center;
229
229
  position: relative;
230
230
  background-color: ${e=>e.theme.colors.background.qr};
231
- border-radius: ${e=>aa[e.theme.borderRadius]};
232
- padding: ${Gr(24)} 0;
233
- height: ${Gr(304)};
231
+ border-radius: ${e=>Li[e.theme.borderRadius]};
232
+ padding: ${wr(24)} 0;
233
+ height: ${wr(304)};
234
234
  width: 100%;
235
235
 
236
236
  overflow: hidden;
237
237
  cursor: pointer;
238
238
  border: none;
239
239
 
240
- ${bi} {
240
+ ${Vo} {
241
241
  &:hover {
242
- ${la.class} {
242
+ ${Ni.class} {
243
243
  transform: scale(1.04);
244
244
  }
245
245
  }
246
246
  }
247
247
 
248
248
  &:active {
249
- ${la.class} {
249
+ ${Ni.class} {
250
250
  transform: scale(0.96);
251
251
  }
252
252
  }
253
253
 
254
- ${yi} {
254
+ ${Ho} {
255
255
  &:active {
256
- ${la.class} {
256
+ ${Ni.class} {
257
257
  transform: scale(0.92);
258
258
  }
259
259
  }
260
260
  }
261
- `,ua=zr.div`
261
+ `,ji=hr.div`
262
262
  position: relative;
263
263
 
264
264
  width: fit-content;
@@ -277,21 +277,21 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
277
277
  path {
278
278
  fill: ${e=>e.theme.colors.constant.black};
279
279
  }
280
- `,da=zr.div`
280
+ `,$i=hr.div`
281
281
  position: absolute;
282
- width: ${Gr(60)};
283
- height: ${Gr(60)};
282
+ width: ${wr(60)};
283
+ height: ${wr(60)};
284
284
  background: ${e=>e.theme.colors.background.qr};
285
285
 
286
286
  display: flex;
287
287
  align-items: center;
288
288
  justify-content: center;
289
- `,fa=zr(ni)`
290
- width: ${e=>Gr(e.size)};
291
- height: ${e=>Gr(e.size)};
292
- border-radius: ${e=>sa[e.theme.borderRadius]};
289
+ `,Di=hr(To)`
290
+ width: ${e=>wr(e.size)};
291
+ height: ${e=>wr(e.size)};
292
+ border-radius: ${e=>Mi[e.theme.borderRadius]};
293
293
  background-color: ${e=>e.theme.colors.background.qr};
294
- `,ha=zr.div`
294
+ `,Ui=hr.div`
295
295
  position: absolute;
296
296
  bottom: 14px;
297
297
  left: 50%;
@@ -306,14 +306,14 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
306
306
 
307
307
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
308
308
  background-color: ${e=>e.theme.colors.background.segment};
309
- `;var pa={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=i[t],o=null,a=0,s=null,l=[],c={},u=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(a=4*n+17),d(0,0),d(a-7,0),d(0,a-7),h(),f(),k(e,t),n>=7&&g(e),null==s&&(s=A(n,r,l)),S(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<a-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},h=function(){for(var e=p.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},g=function(e){for(var t=p.getBCHTypeNumber(n),r=0;r<18;r+=1){var i=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+a-8-3]=i}for(r=0;r<18;r+=1){i=!e&&1==(t>>r&1);o[r%3+a-8-3][Math.floor(r/3)]=i}},k=function(e,t){for(var n=r<<3|t,i=p.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(i>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[a-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(i>>s&1);s<8?o[8][a-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[a-8][8]=!e},S=function(e,t){for(var n=-1,r=a-1,i=7,s=0,l=p.getMaskFunction(t),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>i&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(i-=1)&&(s+=1,i=7)}if((r+=n)<0||a<=r){r-=n,n=-n;break}}},A=function(e,t,n){for(var r=v.getRSBlocks(e,t),o=y(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s)&&(o.put(236,8),!(o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=p.getErrorCorrectPolynomial(c),f=m(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var h=u+f.getLength()-a[s].length;a[s][u]=h>=0?f.getAt(h):0}}var g=0;for(u=0;u<t.length;u+=1)g+=t[u].totalCount;var v=new Array(g),y=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(v[y]=i[s][u],y+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(v[y]=a[s][u],y+=1);return v}(o,r)};c.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=b(e);break;case"Alphanumeric":n=w(e);break;case"Byte":n=x(e);break;case"Kanji":n=C(e);break;default:throw"mode:"+t}l.push(n),s=null},c.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return o[e][t]},c.getModuleCount=function(){return a},c.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=v.getRSBlocks(e,r),o=y(),i=0;i<l.length;i++){var a=l[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<t.length;i++)s+=t[i].dataCount;if(o.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var r=p.getLostPoint(c);(0==n||e>r)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<c.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<c.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=c.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,l,u=c.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+_([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+_(r.id)+'">'+_(r.text)+"</title>":"",d+=n.text?'<description id="'+_(n.id)+'">'+_(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<c.getModuleCount();a+=1)for(s=a*e+t,i=0;i<c.getModuleCount();i+=1)c.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},c.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=c.getModuleCount()*e+2*t,r=t,o=n-t;return E(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return c.isDark(a,i)?0:1}return 1}))},c.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=c.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=c.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=_(n),o+='"'),o+="/>"};var _=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,l=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="\u2588",s<=n&&n<l&&s<=t&&t<l&&c.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&c.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="\u2588",f+=e<1&&t+1>=l?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),f="",h="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)i=1,s<=r&&r<l&&s<=n&&n<l&&c.isDark(o,Math.floor((r-s)/e))&&(i=0),h+=i?u:d;for(o=0;o<e;o+=1)f+=h+"\n"}return f.substring(0,f.length-1)},c.renderTo2dContext=function(e,t){t=t||2;for(var n=c.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=c.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},c};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=S(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t=1,n=2,r=4,o=8,i={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,c=3,u=4,d=5,f=6,h=7,p=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(i)>=0;)t^=i<<y(t)-y(i);return 21522^(e<<10|t)},v.getBCHTypeNumber=function(e){for(var t=e<<12;y(t)-y(p)>=0;)t^=p<<y(t)-y(p);return e<<12|t},v.getPatternPosition=function(t){return e[t-1]},v.getMaskFunction=function(e){switch(e){case a:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case l:return function(e,t){return t%3==0};case c:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case f:return function(e,t){return(e*t%2+e*t%3)%2==0};case h:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},v.getErrorCorrectPolynomial=function(e){for(var t=m([1],0),n=0;n<e;n+=1)t=t.multiply(m([1,g.gexp(n)],0));return t},v.getLengthInBits=function(e,i){if(1<=i&&i<10)switch(e){case t:return 10;case n:return 9;case r:case o:return 8;default:throw"mode:"+e}else if(i<27)switch(e){case t:return 12;case n:return 11;case r:return 16;case o:return 10;default:throw"mode:"+e}else{if(!(i<41))throw"type:"+i;switch(e){case t:return 14;case n:return 13;case r:return 16;case o:return 12;default:throw"mode:"+e}}},v.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},v}(),g=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function m(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=g.gexp(g.glog(r.getAt(n))+g.glog(e.getAt(o)));return m(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=g.glog(r.getAt(0))-g.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=g.gexp(g.glog(e.getAt(o))+t);return m(n,0).mod(e)}};return r}var v=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case i.L:return e[4*(t-1)+0];case i.M:return e[4*(t-1)+1];case i.Q:return e[4*(t-1)+2];case i.H:return e[4*(t-1)+3];default:return}}(n,r);if("undefined"==typeof o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var a=o.length/3,s=[],l=0;l<a;l+=1)for(var c=o[3*l+0],u=o[3*l+1],d=o[3*l+2],f=0;f<c;f+=1)s.push(t(u,d));return s},n}(),y=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},b=function(e){var n=t,r=e,o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(i(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(i(t.substring(n,n+1)),4):t.length-n==2&&e.put(i(t.substring(n,n+2)),7))}},i=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return o},w=function(e){var t=n,r=e,o={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*i(t.charAt(n))+i(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(i(t.charAt(n)),6)}},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return o},x=function(t){var n=r,o=e.stringToBytes(t),i={getMode:function(){return n},getLength:function(e){return o.length},write:function(e){for(var t=0;t<o.length;t+=1)e.put(o[t],8)}};return i},C=function(t){var n=o,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("\u53cb");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var i=r(t),a={getMode:function(){return n},getLength:function(e){return~~(i.length/2)},write:function(e){for(var t=i,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},k=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},E=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l=k(),c=function(e){var t=e,n=0,r=0;return{write:function(e,o){if(e>>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<<n|r)),o-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=o},flush:function(){n>0&&t.writeByte(r)}}}(l);c.write(t,r);var u=0,d=String.fromCharCode(o[u]);for(u+=1;u<o.length;){var f=String.fromCharCode(o[u]);u+=1,i.contains(d+f)?d+=f:(c.write(i.indexOf(d),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(d+f)),d=f)}return c.write(i.indexOf(d),r),c.write(n,r),c.flush(),l.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=k();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(pa);const ga=pa.exports;function ma(e){return Kt(this,null,(function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new Yr("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(Yv){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)}))}const va=ar("<div></div>"),ya=e=>{let t,n,r;const[o,i]=un(!1),[a,s]=un(48);hn((()=>{const o=ga(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=Gr(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Gr(e),r.style.width=Gr(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`}));let l=null;return Bn(ca,{get class(){return e.class},onClick:()=>{i(!0),ma(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[Bn(ua,{ref(e){"function"===typeof n?n(e):n=e},get children(){return[(()=>{const e=va.cloneNode(!0);return"function"===typeof t?ur(t,e):t=e,e})(),Bn(Zn,{get when(){return e.imageUrl},get children(){return Bn(da,{ref(e){"function"===typeof r?r(e):r=e},get children(){return Bn(fa,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),Bn(Ai,{onBeforeEnter:e=>{Gi(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Gi(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return Bn(Zn,{get when(){return o()&&!e.disableCopy},get children(){return Bn(ha,{get children(){return[Bn(Qa,{size:"xs"}),Bn(Sa,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),Bn(Zn,{get when(){return!e.disableCopy},get children(){return Bn(la,{get children(){return Bn(Ls,{})}})}})]}})};var ba=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},wa=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.language in e?navigator.language:Object.keys(e)[0];const[n,r]=un(t),[o,i]=Vo(e);return[(e,t,r)=>{const i=ba(o[n()],e,r||"");return"function"===typeof i?i(t):"string"===typeof i?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/{{(.*?)}}/g;return e.replace(n,((e,n)=>ba(t,n,"")))}(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>ba(o,e)}]},xa=xn({}),Ca=()=>Cn(xa);const ka=zr.div`
309
+ `;var Wi={exports:{}};!function(e){var t=function(){var e=function(e,t){var n=e,r=i[t],o=null,a=0,s=null,l=[],c={},u=function(e,t){o=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var r=0;r<e;r+=1)t[n][r]=null}return t}(a=4*n+17),d(0,0),d(a-7,0),d(0,a-7),h(),f(),k(e,t),n>=7&&g(e),null==s&&(s=A(n,r,l)),S(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||a<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||a<=t+r||(o[e+n][t+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},f=function(){for(var e=8;e<a-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<a-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},h=function(){for(var e=p.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],a=e[r];if(null==o[i][a])for(var s=-2;s<=2;s+=1)for(var l=-2;l<=2;l+=1)o[i+s][a+l]=-2==s||2==s||-2==l||2==l||0==s&&0==l}},g=function(e){for(var t=p.getBCHTypeNumber(n),r=0;r<18;r+=1){var i=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+a-8-3]=i}for(r=0;r<18;r+=1){i=!e&&1==(t>>r&1);o[r%3+a-8-3][Math.floor(r/3)]=i}},k=function(e,t){for(var n=r<<3|t,i=p.getBCHTypeInfo(n),s=0;s<15;s+=1){var l=!e&&1==(i>>s&1);s<6?o[s][8]=l:s<8?o[s+1][8]=l:o[a-15+s][8]=l}for(s=0;s<15;s+=1){l=!e&&1==(i>>s&1);s<8?o[8][a-s-1]=l:s<9?o[8][15-s-1+1]=l:o[8][15-s-1]=l}o[a-8][8]=!e},S=function(e,t){for(var n=-1,r=a-1,i=7,s=0,l=p.getMaskFunction(t),c=a-1;c>0;c-=2)for(6==c&&(c-=1);;){for(var u=0;u<2;u+=1)if(null==o[r][c-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>i&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(i-=1)&&(s+=1,i=7)}if((r+=n)<0||a<=r){r-=n,n=-n;break}}},A=function(e,t,n){for(var r=v.getRSBlocks(e,t),o=y(),i=0;i<n.length;i+=1){var a=n[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<r.length;i+=1)s+=r[i].dataCount;if(o.getLengthInBits()>8*s)throw"code length overflow. ("+o.getLengthInBits()+">"+8*s+")";for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s)&&(o.put(236,8),!(o.getLengthInBits()>=8*s));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),a=new Array(t.length),s=0;s<t.length;s+=1){var l=t[s].dataCount,c=t[s].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[s]=new Array(l);for(var u=0;u<i[s].length;u+=1)i[s][u]=255&e.getBuffer()[u+n];n+=l;var d=p.getErrorCorrectPolynomial(c),f=m(i[s],d.getLength()-1).mod(d);for(a[s]=new Array(d.getLength()-1),u=0;u<a[s].length;u+=1){var h=u+f.getLength()-a[s].length;a[s][u]=h>=0?f.getAt(h):0}}var g=0;for(u=0;u<t.length;u+=1)g+=t[u].totalCount;var v=new Array(g),y=0;for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<i[s].length&&(v[y]=i[s][u],y+=1);for(u=0;u<o;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(v[y]=a[s][u],y+=1);return v}(o,r)};c.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=b(e);break;case"Alphanumeric":n=w(e);break;case"Byte":n=x(e);break;case"Kanji":n=C(e);break;default:throw"mode:"+t}l.push(n),s=null},c.isDark=function(e,t){if(e<0||a<=e||t<0||a<=t)throw e+","+t;return o[e][t]},c.getModuleCount=function(){return a},c.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=v.getRSBlocks(e,r),o=y(),i=0;i<l.length;i++){var a=l[i];o.put(a.getMode(),4),o.put(a.getLength(),p.getLengthInBits(a.getMode(),e)),a.write(o)}var s=0;for(i=0;i<t.length;i++)s+=t[i].dataCount;if(o.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var r=p.getLostPoint(c);(0==n||e>r)&&(e=r,t=n)}return t}())},c.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<c.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<c.getModuleCount();o+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=c.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},c.createSvgTag=function(e,t,n,r){var o={};"object"==typeof arguments[0]&&(e=(o=arguments[0]).cellSize,t=o.margin,n=o.alt,r=o.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(r="string"===typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-title":null;var i,a,s,l,u=c.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=o.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=r.text||n.text?' role="img" aria-labelledby="'+_([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+_(r.id)+'">'+_(r.text)+"</title>":"",d+=n.text?'<description id="'+_(n.id)+'">'+_(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',a=0;a<c.getModuleCount();a+=1)for(s=a*e+t,i=0;i<c.getModuleCount();i+=1)c.isDark(a,i)&&(d+="M"+(i*e+t)+","+s+l);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},c.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=c.getModuleCount()*e+2*t,r=t,o=n-t;return E(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),a=Math.floor((n-r)/e);return c.isDark(a,i)?0:1}return 1}))},c.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var r=c.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=c.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=_(n),o+='"'),o+="/>"};var _=function(e){for(var t="",n=0;n<e.length;n+=1){var r=e.charAt(n);switch(r){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=r}}return t};return c.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,r,o,i,a=1*c.getModuleCount()+2*e,s=e,l=a-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},f="";for(t=0;t<a;t+=2){for(r=Math.floor((t-s)/1),o=Math.floor((t+1-s)/1),n=0;n<a;n+=1)i="\u2588",s<=n&&n<l&&s<=t&&t<l&&c.isDark(r,Math.floor((n-s)/1))&&(i=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&c.isDark(o,Math.floor((n-s)/1))?i+=" ":i+="\u2588",f+=e<1&&t+1>=l?d[i]:u[i];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("\u2580"):f.substring(0,f.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,r,o,i,a=c.getModuleCount()*e+2*t,s=t,l=a-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join(" "),f="",h="";for(n=0;n<a;n+=1){for(o=Math.floor((n-s)/e),h="",r=0;r<a;r+=1)i=1,s<=r&&r<l&&s<=n&&n<l&&c.isDark(o,Math.floor((r-s)/e))&&(i=0),h+=i?u:d;for(o=0;o<e;o+=1)f+=h+"\n"}return f.substring(0,f.length-1)},c.renderTo2dContext=function(e,t){t=t||2;for(var n=c.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=c.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},c};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e.charCodeAt(n);t.push(255&r)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=S(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var a=n.read();if(-1==a)break;var s=r(),l=r()<<8|r();i[String.fromCharCode(a<<8|s)]=l,o+=1}if(o!=t)throw o+" != "+t;return i}(),r="?".charCodeAt(0);return function(e){for(var t=[],o=0;o<e.length;o+=1){var i=e.charCodeAt(o);if(i<128)t.push(i);else{var a=n[e.charAt(o)];"number"==typeof a?(255&a)==a?t.push(a):(t.push(a>>>8),t.push(255&a)):t.push(r)}}return t}};var t=1,n=2,r=4,o=8,i={L:1,M:0,Q:3,H:2},a=0,s=1,l=2,c=3,u=4,d=5,f=6,h=7,p=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],i=1335,p=7973,v={},y=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return v.getBCHTypeInfo=function(e){for(var t=e<<10;y(t)-y(i)>=0;)t^=i<<y(t)-y(i);return 21522^(e<<10|t)},v.getBCHTypeNumber=function(e){for(var t=e<<12;y(t)-y(p)>=0;)t^=p<<y(t)-y(p);return e<<12|t},v.getPatternPosition=function(t){return e[t-1]},v.getMaskFunction=function(e){switch(e){case a:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case l:return function(e,t){return t%3==0};case c:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case f:return function(e,t){return(e*t%2+e*t%3)%2==0};case h:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},v.getErrorCorrectPolynomial=function(e){for(var t=m([1],0),n=0;n<e;n+=1)t=t.multiply(m([1,g.gexp(n)],0));return t},v.getLengthInBits=function(e,i){if(1<=i&&i<10)switch(e){case t:return 10;case n:return 9;case r:case o:return 8;default:throw"mode:"+e}else if(i<27)switch(e){case t:return 12;case n:return 11;case r:return 16;case o:return 10;default:throw"mode:"+e}else{if(!(i<41))throw"type:"+i;switch(e){case t:return 14;case n:return 13;case r:return 16;case o:return 12;default:throw"mode:"+e}}},v.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r+=1)for(var o=0;o<t;o+=1){for(var i=0,a=e.isDark(r,o),s=-1;s<=1;s+=1)if(!(r+s<0||t<=r+s))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==s&&0==l||a==e.isDark(r+s,o+l)&&(i+=1);i>5&&(n+=3+i-5)}for(r=0;r<t-1;r+=1)for(o=0;o<t-1;o+=1){var c=0;e.isDark(r,o)&&(c+=1),e.isDark(r+1,o)&&(c+=1),e.isDark(r,o+1)&&(c+=1),e.isDark(r+1,o+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(r=0;r<t;r+=1)for(o=0;o<t-6;o+=1)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(o=0;o<t;o+=1)for(r=0;r<t-6;r+=1)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);var u=0;for(o=0;o<t;o+=1)for(r=0;r<t;r+=1)e.isDark(r,o)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},v}(),g=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var r={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return r}();function m(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var r=new Array(e.length-n+t),o=0;o<e.length-n;o+=1)r[o]=e[o+n];return r}(),r={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(r.getLength()+e.getLength()-1),n=0;n<r.getLength();n+=1)for(var o=0;o<e.getLength();o+=1)t[n+o]^=g.gexp(g.glog(r.getAt(n))+g.glog(e.getAt(o)));return m(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=g.glog(r.getAt(0))-g.glog(e.getAt(0)),n=new Array(r.getLength()),o=0;o<r.getLength();o+=1)n[o]=r.getAt(o);for(o=0;o<e.getLength();o+=1)n[o]^=g.gexp(g.glog(e.getAt(o))+t);return m(n,0).mod(e)}};return r}var v=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,r){var o=function(t,n){switch(n){case i.L:return e[4*(t-1)+0];case i.M:return e[4*(t-1)+1];case i.Q:return e[4*(t-1)+2];case i.H:return e[4*(t-1)+3];default:return}}(n,r);if("undefined"==typeof o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var a=o.length/3,s=[],l=0;l<a;l+=1)for(var c=o[3*l+0],u=o[3*l+1],d=o[3*l+2],f=0;f<c;f+=1)s.push(t(u,d));return s},n}(),y=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var r=0;r<t;r+=1)n.putBit(1==(e>>>t-r-1&1))},getLengthInBits:function(){return t},putBit:function(n){var r=Math.floor(t/8);e.length<=r&&e.push(0),n&&(e[r]|=128>>>t%8),t+=1}};return n},b=function(e){var n=t,r=e,o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+2<t.length;)e.put(i(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(i(t.substring(n,n+1)),4):t.length-n==2&&e.put(i(t.substring(n,n+2)),7))}},i=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+a(e.charAt(n));return t},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return o},w=function(e){var t=n,r=e,o={getMode:function(){return t},getLength:function(e){return r.length},write:function(e){for(var t=r,n=0;n+1<t.length;)e.put(45*i(t.charAt(n))+i(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(i(t.charAt(n)),6)}},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return o},x=function(t){var n=r,o=e.stringToBytes(t),i={getMode:function(){return n},getLength:function(e){return o.length},write:function(e){for(var t=0;t<o.length;t+=1)e.put(o[t],8)}};return i},C=function(t){var n=o,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(){var e=r("\u53cb");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var i=r(t),a={getMode:function(){return n},getLength:function(e){return~~(i.length/2)},write:function(e){for(var t=i,n=0;n+1<t.length;){var r=(255&t[n])<<8|255&t[n+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(n+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),e.put(r,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return a},k=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,r){n=n||0,r=r||e.length;for(var o=0;o<r;o+=1)t.writeByte(e[o+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},S=function(e){var t=e,n=0,r=0,o=0,i={read:function(){for(;o<8;){if(n>=t.length){if(0==o)return-1;throw"unexpected end of file./"+o}var e=t.charAt(n);if(n+=1,"="==e)return o=0,-1;e.match(/^\s$/)||(r=r<<6|a(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},a=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},E=function(e,t,n){for(var r=function(e,t){var n=e,r=t,o=new Array(e*t),i={setPixel:function(e,t,r){o[t*n+e]=r},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(r),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(r),e.writeByte(0);var t=a(2);e.writeByte(2);for(var o=0;t.length-o>255;)e.writeByte(255),e.writeBytes(t,o,255),o+=255;e.writeByte(t.length-o),e.writeBytes(t,o,t.length-o),e.writeByte(0),e.writeString(";")}},a=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=s(),a=0;a<t;a+=1)i.add(String.fromCharCode(a));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l=k(),c=function(e){var t=e,n=0,r=0;return{write:function(e,o){if(e>>>o!=0)throw"length over";for(;n+o>=8;)t.writeByte(255&(e<<n|r)),o-=8-n,e>>>=8-n,r=0,n=0;r|=e<<n,n+=o},flush:function(){n>0&&t.writeByte(r)}}}(l);c.write(t,r);var u=0,d=String.fromCharCode(o[u]);for(u+=1;u<o.length;){var f=String.fromCharCode(o[u]);u+=1,i.contains(d+f)?d+=f:(c.write(i.indexOf(d),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(d+f)),d=f)}return c.write(i.indexOf(d),r),c.write(n,r),c.flush(),l.toByteArray()},s=function(){var e={},t=0,n={add:function(r){if(n.contains(r))throw"dup key:"+r;e[r]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return i}(e,t),o=0;o<t;o+=1)for(var i=0;i<e;i+=1)r.setPixel(i,o,n(i,o));var a=k();r.write(a);for(var s=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return o.writeByte=function(r){for(e=e<<8|255&r,t+=8,n+=1;t>=6;)i(e>>>t-6),t-=6},o.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),n%3!=0)for(var o=3-n%3,a=0;a<o;a+=1)r+="="},o.toString=function(){return r},o}(),l=a.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();t.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}(e)},e.exports=t}(Wi);const zi=Wi.exports;function Bi(e){return yt(this,null,(function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new kr("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(sy){}!function(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}(e)}))}const Fi=Ln("<div></div>"),Hi=e=>{let t,n,r;const[o,i]=It(!1),[a,s]=It(48);Dt((()=>{const o=zi(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,a=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*a)),t=wr(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=wr(e),r.style.width=wr(e),s(Math.round(48/a))}n.style.transform=`scale(${a})`}));let l=null;return pn(Ii,{get class(){return e.class},onClick:()=>{i(!0),Bi(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[pn(ji,{ref(e){"function"===typeof n?n(e):n=e},get children(){return[(()=>{const e=Fi.cloneNode(!0);return"function"===typeof t?jn(t,e):t=e,e})(),pn(xn,{get when(){return e.imageUrl},get children(){return pn($i,{ref(e){"function"===typeof r?r(e):r=e},get children(){return pn(Di,{get src(){return e.imageUrl},alt:"",get size(){return a()}})}})}})]}}),pn(Xo,{onBeforeEnter:e=>{wi(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{wi(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return pn(xn,{get when(){return o()&&!e.disableCopy},get children(){return pn(Ui,{get children(){return[pn(Ca,{size:"xs"}),pn(Zi,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),pn(xn,{get when(){return!e.disableCopy},get children(){return pn(Ni,{get children(){return pn(os,{})}})}})]}})};var Vi=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},Ki=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:navigator.language in e?navigator.language:Object.keys(e)[0];const[n,r]=It(t),[o,i]=vo(e);return[(e,t,r)=>{const i=Vi(o[n()],e,r||"");return"function"===typeof i?i(t):"string"===typeof i?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/{{(.*?)}}/g;return e.replace(n,((e,n)=>Vi(t,n,"")))}(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>Vi(o,e)}]},qi=Kt({}),Gi=()=>qt(qi);const Qi=hr.div`
310
310
  font-style: normal;
311
311
  font-weight: ${e=>e.fontWeight};
312
312
  font-size: ${e=>e.fontSize};
313
313
  line-height: ${e=>e.lineHeight};
314
314
 
315
315
  color: ${e=>e.color};
316
- `,Sa=e=>{const t=Ur(),[n]=Ca();let r;const o=Kn({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return hn((()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")})),Bn(ka,{get fontSize(){return o.fontSize},get fontWeight(){return o.fontWeight},get lineHeight(){return o.lineHeight},get color(){return e.color||t.colors.text.primary},get class(){return o.class},ref(e){"function"===typeof r?r(e):r=e},"data-tc-text":"true",get children(){var e;return pn((()=>!!o.translationKey))()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},Ea=zr.div`
316
+ `,Zi=e=>{const t=dr(),[n]=Gi();let r;const o=yn({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return Dt((()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")})),pn(Qi,{get fontSize(){return o.fontSize},get fontWeight(){return o.fontWeight},get lineHeight(){return o.lineHeight},get color(){return e.color||t.colors.text.primary},get class(){return o.class},ref(e){"function"===typeof r?r(e):r=e},"data-tc-text":"true",get children(){var e;return Ut((()=>!!o.translationKey))()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},Yi=hr.div`
317
317
  position: relative;
318
318
 
319
319
  &::after {
@@ -328,11 +328,11 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
328
328
 
329
329
  border-radius: inherit;
330
330
  }
331
- `,Aa=zr(ni)`
331
+ `,Xi=hr(To)`
332
332
  width: 100%;
333
333
  height: 100%;
334
334
  border-radius: inherit;
335
- `,_a=e=>Bn(Ea,{get class(){return e.class},get children(){return Bn(Aa,{get src(){return e.src}})}}),Ta={m:"16px",s:"12px",none:"0"},Ra={m:"6px",s:"6px",none:"0"},Oa=zr.button`
335
+ `,Ji=e=>pn(Yi,{get class(){return e.class},get children(){return pn(Xi,{get src(){return e.src}})}}),ea={m:"16px",s:"12px",none:"0"},ta={m:"6px",s:"6px",none:"0"},na=hr.button`
336
336
  position: relative;
337
337
  cursor: pointer;
338
338
  border: none;
@@ -345,7 +345,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
345
345
 
346
346
  transition: transform 0.125s ease-in-out;
347
347
 
348
- ${bi} {
348
+ ${Vo} {
349
349
  &:hover {
350
350
  transform: scale(1.04);
351
351
  }
@@ -355,41 +355,41 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
355
355
  transform: scale(0.96);
356
356
  }
357
357
 
358
- ${vi("mobile")} {
358
+ ${Fo("mobile")} {
359
359
  padding: 8px 4px;
360
360
  width: 82px;
361
361
  }
362
362
 
363
- ${yi} {
363
+ ${Ho} {
364
364
  &:active {
365
365
  transform: scale(0.92);
366
366
  }
367
367
  }
368
- `,Pa=zr(_a)`
368
+ `,ra=hr(Ji)`
369
369
  width: 60px;
370
370
  height: 60px;
371
- border-radius: ${e=>Ta[e.theme.borderRadius]};
371
+ border-radius: ${e=>ea[e.theme.borderRadius]};
372
372
 
373
373
  margin-bottom: 8px;
374
- `,La=zr(ni)`
374
+ `,oa=hr(To)`
375
375
  position: absolute;
376
376
  right: 10px;
377
377
  top: 50px;
378
378
  width: 24px;
379
379
  height: 24px;
380
- border-radius: ${e=>Ra[e.theme.borderRadius]};
380
+ border-radius: ${e=>ta[e.theme.borderRadius]};
381
381
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
382
- `,Ma=zr(Sa)`
382
+ `,ia=hr(Zi)`
383
383
  max-width: 90px;
384
384
  font-weight: 510;
385
385
  white-space: nowrap;
386
386
  text-overflow: ellipsis;
387
387
  overflow: hidden;
388
388
 
389
- ${vi("mobile")} {
389
+ ${Fo("mobile")} {
390
390
  max-width: 80px;
391
391
  }
392
- `,Na=zr(Sa)`
392
+ `,aa=hr(Zi)`
393
393
  font-weight: ${e=>e.colorPrimary?"510":"400"};
394
394
  max-width: 90px;
395
395
  white-space: nowrap;
@@ -397,10 +397,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
397
397
  overflow: hidden;
398
398
  color: ${e=>e.colorPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary};
399
399
 
400
- ${vi("mobile")} {
400
+ ${Fo("mobile")} {
401
401
  max-width: 80px;
402
402
  }
403
- `,Ia=ar("<div></div>"),ja=e=>{let t=null;const n=()=>{const e=null==t?void 0:t.querySelector("div");if(e&&e.scrollWidth>e.clientWidth){let t=0;const n=-.4,r=.05;for(;e.scrollWidth>e.clientWidth&&t>=n;)t-=r,e.style.letterSpacing=`${t}px`;0!==t&&(t-=r,e.style.letterSpacing=`${t}px`)}};return yn((()=>n())),hn((()=>{n()})),Bn(Oa,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[pn((()=>pn((()=>"string"===typeof e.icon))()?Bn(Pa,{get src(){return e.icon}}):e.icon)),pn((()=>pn((()=>!!e.badgeUrl))()&&Bn(La,{get src(){return e.badgeUrl}}))),(()=>{const n=Ia.cloneNode(!0);return ur((e=>t=e),n),dr(n,Bn(Ma,{get children(){return e.name}})),n})(),pn((()=>pn((()=>!!e.secondLine))()&&Bn(Na,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}})))]}})},$a=zr.h1`
403
+ `,sa=Ln("<div></div>"),la=e=>{let t=null;const n=()=>{const e=null==t?void 0:t.querySelector("div");if(e&&e.scrollWidth>e.clientWidth){let t=0;const n=-.4,r=.05;for(;e.scrollWidth>e.clientWidth&&t>=n;)t-=r,e.style.letterSpacing=`${t}px`;0!==t&&(t-=r,e.style.letterSpacing=`${t}px`)}};return Ft((()=>n())),Dt((()=>{n()})),pn(na,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[Ut((()=>Ut((()=>"string"===typeof e.icon))()?pn(ra,{get src(){return e.icon}}):e.icon)),Ut((()=>Ut((()=>!!e.badgeUrl))()&&pn(oa,{get src(){return e.badgeUrl}}))),(()=>{const n=sa.cloneNode(!0);return jn((e=>t=e),n),$n(n,pn(ia,{get children(){return e.name}})),n})(),Ut((()=>Ut((()=>!!e.secondLine))()&&pn(aa,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}})))]}})},ca=hr.h1`
404
404
  font-style: normal;
405
405
  font-weight: 590;
406
406
  font-size: 20px;
@@ -414,7 +414,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
414
414
  margin-bottom: 0;
415
415
 
416
416
  cursor: default;
417
- `,Da=e=>{const[t]=Ca();return Bn($a,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return pn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Ua=zr.h2`
417
+ `,ua=e=>{const[t]=Gi();return pn(ca,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return Ut((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},da=hr.h2`
418
418
  font-style: normal;
419
419
  font-weight: 400;
420
420
  font-size: 16px;
@@ -428,7 +428,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
428
428
  margin-bottom: 32px;
429
429
 
430
430
  cursor: default;
431
- `,Wa=e=>{const[t]=Ca();return Bn(Ua,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return pn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},za=zr.h3`
431
+ `,fa=e=>{const[t]=Gi();return pn(da,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return Ut((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},ha=hr.h3`
432
432
  font-style: normal;
433
433
  font-weight: 510;
434
434
  font-size: 16px;
@@ -440,8 +440,8 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
440
440
  margin-bottom: 0;
441
441
 
442
442
  cursor: default;
443
- `,Ba=e=>{const[t]=Ca();return Bn(za,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return pn((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Fa=ar('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.75 7.5C9.33579 7.5 9 7.16421 9 6.75C9 6.33579 9.33579 6 9.75 6H21.25C21.6642 6 22 6.33579 22 6.75V18.25C22 18.6642 21.6642 19 21.25 19C20.8358 19 20.5 18.6642 20.5 18.25V8.56066L6.28033 22.7803C5.98744 23.0732 5.51256 23.0732 5.21967 22.7803C4.92678 22.4874 4.92678 22.0126 5.21967 21.7197L19.4393 7.5H9.75Z"></path></svg>'),Ha=e=>{const t=Ur(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=Fa.cloneNode(!0),t=e.firstChild;return fn((r=>{const o=n(),i=n();return o!==r._v$&&sr(e,"fill",r._v$=o),i!==r._v$2&&sr(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Va=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),Ka=e=>{const t=Ur();return(()=>{const n=Va.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.primary))),n})()},qa=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),Ga=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),Za=ar('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Qa=e=>{const t=Ur(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return pn((()=>{const o=pn((()=>"xs"===n()));return()=>o()?(()=>{const n=qa.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&sr(n,"class",a._v$=s),l!==a._v$2&&sr(o,"fill",a._v$2=l),c!==a._v$3&&sr(i,"stroke",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=pn((()=>"s"===n()));return()=>o()?(()=>{const n=Ga.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&sr(n,"class",a._v$4=s),l!==a._v$5&&sr(o,"fill",a._v$5=l),c!==a._v$6&&sr(i,"fill",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Za.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&sr(n,"class",a._v$7=s),l!==a._v$8&&sr(o,"fill",a._v$8=l),c!==a._v$9&&sr(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Ya=ar('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Xa=ar('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Ja=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),es=e=>{const t=Ur(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return pn((()=>{const o=pn((()=>"m"===n()));return()=>o()?(()=>{const n=Ya.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&sr(n,"class",a._v$=s),l!==a._v$2&&sr(o,"fill",a._v$2=l),c!==a._v$3&&sr(i,"fill",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=pn((()=>"s"===n()));return()=>o()?(()=>{const n=Xa.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&sr(n,"class",a._v$4=s),l!==a._v$5&&sr(o,"fill",a._v$5=l),c!==a._v$6&&sr(i,"stroke",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Ja.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return fn((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&sr(n,"class",a._v$7=s),l!==a._v$8&&sr(o,"fill",a._v$8=l),c!==a._v$9&&sr(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},ts=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),ns=ar('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),rs=ar('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),os=e=>{const t=Ur(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=Ir`
444
- animation: ${jr`
443
+ `,pa=e=>{const[t]=Gi();return pn(ha,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return Ut((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},ga=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.75 7.5C9.33579 7.5 9 7.16421 9 6.75C9 6.33579 9.33579 6 9.75 6H21.25C21.6642 6 22 6.33579 22 6.75V18.25C22 18.6642 21.6642 19 21.25 19C20.8358 19 20.5 18.6642 20.5 18.25V8.56066L6.28033 22.7803C5.98744 23.0732 5.51256 23.0732 5.21967 22.7803C4.92678 22.4874 4.92678 22.0126 5.21967 21.7197L19.4393 7.5H9.75Z"></path></svg>'),ma=e=>{const t=dr(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=ga.cloneNode(!0),t=e.firstChild;return $t((r=>{const o=n(),i=n();return o!==r._v$&&Mn(e,"fill",r._v$=o),i!==r._v$2&&Mn(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},va=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M14.1839 17.7069C13.6405 18.6507 13.3688 19.1226 13.0591 19.348C12.4278 19.8074 11.5723 19.8074 10.941 19.348C10.6312 19.1226 10.3595 18.6507 9.81613 17.7069L5.52066 10.2464C4.76864 8.94024 4.39263 8.28717 4.33762 7.75894C4.2255 6.68236 4.81894 5.65591 5.80788 5.21589C6.29309 5 7.04667 5 8.55383 5H15.4462C16.9534 5 17.7069 5 18.1922 5.21589C19.1811 5.65591 19.7745 6.68236 19.6624 7.75894C19.6074 8.28717 19.2314 8.94024 18.4794 10.2464L14.1839 17.7069ZM11.1 16.3412L6.56139 8.48002C6.31995 8.06185 6.19924 7.85276 6.18146 7.68365C6.14523 7.33896 6.33507 7.01015 6.65169 6.86919C6.80703 6.80002 7.04847 6.80002 7.53133 6.80002H7.53134L11.1 6.80002V16.3412ZM12.9 16.3412L17.4387 8.48002C17.6801 8.06185 17.8008 7.85276 17.8186 7.68365C17.8548 7.33896 17.665 7.01015 17.3484 6.86919C17.193 6.80002 16.9516 6.80002 16.4687 6.80002L12.9 6.80002V16.3412Z"></path></svg>'),ya=e=>{const t=dr();return(()=>{const n=va.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.primary))),n})()},ba=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><g clip-path="url(#clip0_3783_2045)"><circle cx="8" cy="8.00098" r="8"></circle><path d="M4.75 8.50098L7 10.751L11.75 6.00098" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></g><defs><clipPath id="clip0_3783_2045"><rect width="16" height="16" fill="white" transform="translate(0 0.000976562)"></rect></clipPath></defs></svg>'),wa=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M17.1364 9.6364C17.4879 9.28493 17.4879 8.71508 17.1364 8.36361C16.7849 8.01214 16.2151 8.01214 15.8636 8.36361L10 14.2272L8.1364 12.3636C7.78493 12.0121 7.21508 12.0121 6.86361 12.3636C6.51214 12.7151 6.51214 13.2849 6.86361 13.6364L9.36361 16.1364C9.71508 16.4879 10.2849 16.4879 10.6364 16.1364L17.1364 9.6364Z"></path></svg>'),xa=Ln('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M50.9142 28.4142C51.6953 27.6332 51.6953 26.3668 50.9142 25.5858C50.1332 24.8047 48.8668 24.8047 48.0858 25.5858L30 43.6716L23.9142 37.5858C23.1332 36.8047 21.8668 36.8047 21.0858 37.5858C20.3047 38.3668 20.3047 39.6332 21.0858 40.4142L28.5858 47.9142C29.3668 48.6953 30.6332 48.6953 31.4142 47.9142L50.9142 28.4142Z"></path></svg>'),Ca=e=>{const t=dr(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Ut((()=>{const o=Ut((()=>"xs"===n()));return()=>o()?(()=>{const n=ba.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Mn(n,"class",a._v$=s),l!==a._v$2&&Mn(o,"fill",a._v$2=l),c!==a._v$3&&Mn(i,"stroke",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Ut((()=>"s"===n()));return()=>o()?(()=>{const n=wa.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Mn(n,"class",a._v$4=s),l!==a._v$5&&Mn(o,"fill",a._v$5=l),c!==a._v$6&&Mn(i,"fill",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=xa.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Mn(n,"class",a._v$7=s),l!==a._v$8&&Mn(o,"fill",a._v$8=l),c!==a._v$9&&Mn(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},ka=Ln('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="36" cy="36" r="33"></circle><path d="M24.0858 26.9142C23.3047 26.1332 23.3047 24.8668 24.0858 24.0858C24.8668 23.3047 26.1332 23.3047 26.9142 24.0858L36 33.1716L45.0858 24.0858C45.8668 23.3047 47.1332 23.3047 47.9142 24.0858C48.6953 24.8668 48.6953 26.1332 47.9142 26.9142L38.8284 36L47.9142 45.0858C48.6953 45.8668 48.6953 47.1332 47.9142 47.9142C47.1332 48.6953 45.8668 48.6953 45.0858 47.9142L36 38.8284L26.9142 47.9142C26.1332 48.6953 24.8668 48.6953 24.0858 47.9142C23.3047 47.1332 23.3047 45.8668 24.0858 45.0858L33.1716 36L24.0858 26.9142Z"></path></svg>'),Sa=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><circle cx="24" cy="24.001" r="22"></circle><path d="M24 24.001L31.5 16.501M24 24.001L16.5 16.501M24 24.001L16.5 31.501M24 24.001L31.5 31.501" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Ea=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="11"></circle><path d="M7.86361 9.1364C7.51214 8.78493 7.51214 8.21508 7.86361 7.86361C8.21508 7.51214 8.78493 7.51214 9.1364 7.86361L12 10.7272L14.8636 7.86361C15.2151 7.51214 15.7849 7.51214 16.1364 7.86361C16.4879 8.21508 16.4879 8.78493 16.1364 9.1364L13.2728 12L16.1364 14.8636C16.4879 15.2151 16.4879 15.7849 16.1364 16.1364C15.7849 16.4879 15.2151 16.4879 14.8636 16.1364L12 13.2728L9.1364 16.1364C8.78493 16.4879 8.21508 16.4879 7.86361 16.1364C7.51214 15.7849 7.51214 15.2151 7.86361 14.8636L10.7272 12L7.86361 9.1364Z"></path></svg>'),Aa=e=>{const t=dr(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return Ut((()=>{const o=Ut((()=>"m"===n()));return()=>o()?(()=>{const n=ka.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$&&Mn(n,"class",a._v$=s),l!==a._v$2&&Mn(o,"fill",a._v$2=l),c!==a._v$3&&Mn(i,"fill",a._v$3=c),a}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=Ut((()=>"s"===n()));return()=>o()?(()=>{const n=Sa.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$4&&Mn(n,"class",a._v$4=s),l!==a._v$5&&Mn(o,"fill",a._v$5=l),c!==a._v$6&&Mn(i,"stroke",a._v$6=c),a}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Ea.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return $t((a=>{const s=e.class,l=r(),c=t.colors.constant.white;return s!==a._v$7&&Mn(n,"class",a._v$7=s),l!==a._v$8&&Mn(o,"fill",a._v$8=l),c!==a._v$9&&Mn(i,"fill",a._v$9=c),a}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},_a=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.55 5.85123C18.9459 7.81184 20.1094 12.1541 18.1488 15.55C16.1882 18.9459 11.8459 20.1094 8.44998 18.1488C8.01952 17.9003 7.46909 18.0478 7.22056 18.4782C6.97203 18.9087 7.11952 19.4591 7.54998 19.7076C11.8068 22.1653 17.2499 20.7068 19.7076 16.45C22.1653 12.1932 20.7068 6.75005 16.45 4.29239C12.1932 1.83472 6.75003 3.29321 4.29236 7.55001C4.04383 7.98047 4.19132 8.53091 4.62178 8.77943C5.05224 9.02796 5.60268 8.88048 5.8512 8.45001C7.81181 5.05413 12.1541 3.89062 15.55 5.85123Z"></path></svg>'),Ta=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" viewBox="0 0 44 44" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 2.99951C11.5066 2.99951 3 11.5061 3 21.9995C3 32.4929 11.5066 40.9995 22 40.9995C22.8284 40.9995 23.5 41.6711 23.5 42.4995C23.5 43.3279 22.8284 43.9995 22 43.9995C9.84974 43.9995 0 34.1498 0 21.9995C0 9.84925 9.84974 -0.000488281 22 -0.000488281C34.1503 -0.000488281 44 9.84925 44 21.9995C44 22.8279 43.3284 23.4995 42.5 23.4995C41.6716 23.4995 41 22.8279 41 21.9995C41 11.5061 32.4934 2.99951 22 2.99951Z"></path></svg>'),Ra=Ln('<svg width="72" height="72" viewBox="0 0 72 72" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 56.7846C35.479 63.412 50.1572 59.479 56.7846 47.9999C63.412 36.5209 59.479 21.8427 48 15.2153C36.521 8.58791 21.8428 12.5209 15.2154 23.9999" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"></path></svg>'),Oa=e=>{const t=dr(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=sr`
444
+ animation: ${lr`
445
445
  0% {
446
446
  transform: rotate(0deg);
447
447
  }
@@ -449,21 +449,21 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
449
449
  transform: rotate(360deg);
450
450
  }
451
451
  `} 1s linear infinite;
452
- `;return pn((()=>{const t=pn((()=>"xs"===n()));return()=>t()?(()=>{const t=ts.cloneNode(!0),n=t.firstChild;return fn((i=>{const a=It(o,e.class),s=r();return a!==i._v$&&sr(t,"class",i._v$=a),s!==i._v$2&&sr(n,"fill",i._v$2=s),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=pn((()=>"s"===n()));return()=>t()?(()=>{const t=ns.cloneNode(!0),n=t.firstChild;return fn((i=>{const a=It(o,e.class),s=r();return a!==i._v$3&&sr(t,"class",i._v$3=a),s!==i._v$4&&sr(n,"fill",i._v$4=s),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=rs.cloneNode(!0),n=t.firstChild;return fn((i=>{const a=It(o,e.class),s=r();return a!==i._v$5&&sr(t,"class",i._v$5=a),s!==i._v$6&&sr(n,"stroke",i._v$6=s),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},is=ar('<svg width="158" height="28" viewBox="0 0 158 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z" fill="#0098EA"></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z"></path></svg>'),as=()=>{const e=Ur();return(()=>{const t=is.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return fn((()=>sr(n,"fill",e.theme===Sr.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},ss=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z"></path></svg>'),ls=e=>{const t=Ur();return(()=>{const n=ss.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.secondary))),n})()},cs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z"></path></svg>'),us=e=>{const t=Ur();return(()=>{const n=cs.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.primary))),n})()},ds=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z"></path></svg>'),fs=e=>{const t=Ur();return(()=>{const n=ds.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.primary))),n})()},hs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z"></path></svg>'),ps=e=>{const t=Ur();return(()=>{const n=hs.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.primary))),n})()},gs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1603)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id="clip0_3676_1603"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000488281)"></rect></clipPath></defs></svg>'),ms=e=>{const t=Ur();return(()=>{const n=gs.cloneNode(!0),r=n.firstChild.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.accent))),n})()},vs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z"></path></svg>'),ys=e=>{const t=Ur();return(()=>{const n=vs.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.accent))),n})()},bs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1274)"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id="clip0_3676_1274"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000976562)"></rect></clipPath></defs></svg>'),ws=e=>{const t=Ur();return(()=>{const n=bs.cloneNode(!0),r=n.firstChild.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.accent))),n})()},xs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z"></path></svg>'),Cs=e=>{const t=Ur();return(()=>{const n=xs.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},ks=ar('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z"></path></svg>'),Ss=e=>{const t=Ur();return(()=>{const n=ks.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Es=ar('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z"></path></svg>'),As=e=>{const t=Ur();return(()=>{const n=Es.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},_s=ar('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z"></path></svg>'),Ts=e=>{const t=Ur();return(()=>{const n=_s.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Rs=ar('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M24.7803 7.21967C25.0732 7.51256 25.0732 7.98744 24.7803 8.28033L11.5303 21.5303C11.2374 21.8232 10.7626 21.8232 10.4697 21.5303L4.21967 15.2803C3.92678 14.9874 3.92678 14.5126 4.21967 14.2197C4.51256 13.9268 4.98744 13.9268 5.28033 14.2197L11 19.9393L23.7197 7.21967C24.0126 6.92678 24.4874 6.92678 24.7803 7.21967Z"></path></svg>'),Os=e=>{const t=Ur();return(()=>{const n=Rs.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ps=ar('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z"></path></svg>'),Ls=e=>{const t=Ur(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=Ps.cloneNode(!0),t=e.firstChild;return fn((r=>{const o=n(),i=n();return o!==r._v$&&sr(e,"fill",r._v$=o),i!==r._v$2&&sr(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Ms=ar('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z"></path></svg>'),Ns=e=>{const t=Ur();return(()=>{const n=Ms.cloneNode(!0),r=n.firstChild;return fn((()=>sr(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Is={m:"16px",s:"12px",none:"0"},js={m:"6px",s:"6px",none:"0"},$s=zr.div`
452
+ `;return Ut((()=>{const t=Ut((()=>"xs"===n()));return()=>t()?(()=>{const t=_a.cloneNode(!0),n=t.firstChild;return $t((i=>{const a=st(o,e.class),s=r();return a!==i._v$&&Mn(t,"class",i._v$=a),s!==i._v$2&&Mn(n,"fill",i._v$2=s),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=Ut((()=>"s"===n()));return()=>t()?(()=>{const t=Ta.cloneNode(!0),n=t.firstChild;return $t((i=>{const a=st(o,e.class),s=r();return a!==i._v$3&&Mn(t,"class",i._v$3=a),s!==i._v$4&&Mn(n,"fill",i._v$4=s),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=Ra.cloneNode(!0),n=t.firstChild;return $t((i=>{const a=st(o,e.class),s=r();return a!==i._v$5&&Mn(t,"class",i._v$5=a),s!==i._v$6&&Mn(n,"stroke",i._v$6=s),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},Pa=Ln('<svg width="158" height="28" viewBox="0 0 158 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28 14.001C28 21.733 21.732 28.001 14 28.001C6.26801 28.001 0 21.733 0 14.001C0 6.26899 6.26801 0.000976562 14 0.000976562C21.732 0.000976562 28 6.26899 28 14.001ZM9.21931 8.00098H18.7801H18.7813C20.538 8.00098 21.6522 9.89966 20.7691 11.4302L14.8672 21.6576C14.4822 22.3254 13.5172 22.3254 13.1322 21.6576L7.23158 11.4302C6.34721 9.89726 7.4614 8.00098 9.21931 8.00098ZM13.1262 18.5882V9.74806H9.21811C8.78976 9.74806 8.53708 10.2029 8.74163 10.5578L11.8423 16.1035L13.1262 18.5882ZM16.1559 16.1047L19.2554 10.5566C19.4599 10.2017 19.2073 9.74685 18.7789 9.74685H14.8709V18.5906L16.1559 16.1047Z" fill="#0098EA"></path><path d="M18.7802 8.00098H9.21936C7.46145 8.00098 6.34727 9.89726 7.23164 11.4302L13.1322 21.6576C13.5173 22.3254 14.4823 22.3254 14.8673 21.6576L20.7691 11.4302C21.6523 9.89966 20.5381 8.00098 18.7814 8.00098H18.7802ZM13.1274 18.5906L11.8424 16.1035L8.74168 10.5578C8.53714 10.2029 8.78981 9.74806 9.21816 9.74806H13.1262V18.5918L13.1274 18.5906ZM19.2555 10.5566L16.156 16.1047L14.8709 18.5906V9.74685H18.779C19.2073 9.74685 19.46 10.2017 19.2555 10.5566Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M51.7483 22.1967C55.7182 22.1967 58.9609 18.954 58.9609 14.9841C58.9609 11.0142 55.7182 7.77148 51.7483 7.77148C47.7588 7.77148 44.5357 11.0142 44.5357 14.9841C44.5357 18.954 47.7588 22.1967 51.7483 22.1967ZM51.7483 19.1702C49.4686 19.1702 47.6802 17.2442 47.6802 14.9841C47.6802 12.724 49.4686 10.798 51.7483 10.798C54.0084 10.798 55.7968 12.724 55.7968 14.9841C55.7968 17.2442 54.0084 19.1702 51.7483 19.1702ZM37.0698 21.9609H40.2142V10.9946H44.2843V8.00732H33V10.9946H37.0698V21.9609ZM69.9379 8.00732H73.0823V21.9609H70.3899L63.59 13.3333V21.9609H60.4652V8.00732H63.1576L69.9379 16.6153V8.00732ZM79.2259 14.9887C79.2259 10.9202 82.351 7.77539 86.4982 7.77539C89.8592 7.77539 92.5519 9.95709 93.2202 12.6891H90.7437C90.154 11.0971 88.4637 9.9964 86.4982 9.9964C83.5893 9.9964 81.5452 12.1781 81.5452 14.9887C81.5452 17.7994 83.5893 19.9811 86.4982 19.9811C88.4637 19.9811 90.154 18.8804 90.7437 17.2884H93.2202C92.5519 20.0204 89.8592 22.2021 86.4982 22.2021C82.351 22.2021 79.2259 19.0573 79.2259 14.9887ZM104.584 17.0525C104.584 19.9025 102.343 22.1628 99.4342 22.1628C96.5253 22.1628 94.2846 19.9025 94.2846 17.0525C94.2846 14.2025 96.5253 11.9422 99.4342 11.9422C102.343 11.9422 104.584 14.2025 104.584 17.0525ZM96.4663 17.0525C96.4663 18.8018 97.6849 20.158 99.4342 20.158C101.164 20.158 102.382 18.8018 102.382 17.0525C102.382 15.3032 101.164 13.947 99.4342 13.947C97.6849 13.947 96.4663 15.3032 96.4663 17.0525ZM108.626 12.1388H106.463V21.9662H108.626V17.1311C108.626 15.0281 109.726 13.9077 111.161 13.9077C112.419 13.9077 113.205 14.8512 113.205 16.4039V21.9662H115.367V16.0501C115.367 13.5539 113.893 11.9422 111.613 11.9422C110.335 11.9422 109.215 12.4926 108.626 13.4753V12.1388ZM117.839 12.1388H120.001V13.4753C120.59 12.4926 121.711 11.9422 122.988 11.9422C125.268 11.9422 126.742 13.5539 126.742 16.0501V21.9662H124.58V16.4039C124.58 14.8512 123.794 13.9077 122.536 13.9077C121.101 13.9077 120.001 15.0281 120.001 17.1311V21.9662H117.839V12.1388ZM133.558 22.1628C136.054 22.1628 137.823 20.728 138.373 18.8804H136.113C135.661 19.8238 134.717 20.2563 133.636 20.2563C131.887 20.2563 130.747 19.077 130.668 17.5832H138.491C138.688 14.2419 136.585 11.9422 133.577 11.9422C130.551 11.9422 128.526 14.1436 128.526 17.0525C128.526 20.0007 130.629 22.1628 133.558 22.1628ZM130.747 16.0501C131.042 14.5367 132.162 13.7505 133.518 13.7505C134.717 13.7505 135.838 14.4581 136.172 16.0501H130.747ZM149.851 18.3694C149.32 20.5511 147.453 22.1628 144.859 22.1628C141.871 22.1628 139.709 19.8828 139.709 17.0525C139.709 14.2222 141.871 11.9422 144.859 11.9422C147.453 11.9422 149.32 13.5539 149.851 15.7356H147.571C147.178 14.6743 146.215 13.9077 144.859 13.9077C143.109 13.9077 141.91 15.2246 141.91 17.0525C141.91 18.8804 143.109 20.1973 144.859 20.1973C146.215 20.1973 147.178 19.4307 147.571 18.3694H149.851ZM155.75 22.0645C156.418 22.0645 156.929 21.9859 157.362 21.8483V19.9221C157.047 20.0401 156.615 20.1187 156.202 20.1187C155.082 20.1187 154.551 19.6666 154.551 18.448V14.065H157.362V12.1388H154.551V9.40675H152.389V12.1388H150.345V14.065H152.389V18.8018C152.389 21.0228 153.863 22.0645 155.75 22.0645Z"></path></svg>'),La=()=>{const e=dr();return(()=>{const t=Pa.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return $t((()=>Mn(n,"fill",e.theme===Zn.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},Ma=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.56608 4.42584C5.82527 3.32158 6.8176 2.5 8.00001 2.5C9.38072 2.5 10.5 3.61929 10.5 5C10.5 5.63026 10.3391 6.0386 10.1264 6.34455C9.90018 6.66993 9.58561 6.92478 9.18864 7.20877C9.12579 7.25372 9.05873 7.30025 8.9887 7.34883C8.27392 7.84472 7.25001 8.55507 7.25001 10V10.25C7.25001 10.6642 7.5858 11 8.00001 11C8.41422 11 8.75001 10.6642 8.75001 10.25V10C8.75001 9.36502 9.10777 9.1096 9.94554 8.51149L10.0614 8.42873C10.4769 8.13147 10.9748 7.75194 11.358 7.20076C11.7547 6.63015 12 5.91973 12 5C12 2.79086 10.2091 1 8.00001 1C6.10564 1 4.5205 2.31615 4.10577 4.08308C4.01112 4.48634 4.26129 4.88997 4.66454 4.98462C5.0678 5.07927 5.47143 4.8291 5.56608 4.42584ZM8.00001 15C8.60752 15 9.10001 14.5075 9.10001 13.9C9.10001 13.2925 8.60752 12.8 8.00001 12.8C7.39249 12.8 6.90001 13.2925 6.90001 13.9C6.90001 14.5075 7.39249 15 8.00001 15Z"></path></svg>'),Na=e=>{const t=dr();return(()=>{const n=Ma.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Ia=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.98156 8.75C9.84854 11.4328 9.01206 13.5 8 13.5C6.98794 13.5 6.15146 11.4328 6.01844 8.75H9.98156ZM11.4832 8.75C11.4217 10.1155 11.1929 11.3869 10.8239 12.4017C10.7734 12.5405 10.7188 12.6789 10.6595 12.8154C12.1454 11.993 13.2103 10.5029 13.4493 8.75H11.4832ZM13.4493 7.25H11.4832C11.4217 5.88453 11.1929 4.61314 10.8239 3.5983C10.7734 3.4595 10.7188 3.32111 10.6595 3.18459C12.1454 4.00697 13.2103 5.49709 13.4493 7.25ZM9.98156 7.25H6.01844C6.15144 4.56764 6.98769 2.50062 7.99955 2.5H8C9.01206 2.5 9.84854 4.56724 9.98156 7.25ZM4.51678 7.25C4.57826 5.88453 4.80706 4.61314 5.1761 3.5983C5.22657 3.4595 5.28124 3.32111 5.3405 3.18459C3.85463 4.00697 2.78972 5.49709 2.55071 7.25H4.51678ZM2.55071 8.75C2.78972 10.5029 3.85463 11.993 5.3405 12.8154C5.28124 12.6789 5.22657 12.5405 5.1761 12.4017C4.80706 11.3869 4.57826 10.1155 4.51678 8.75H2.55071ZM15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8Z"></path></svg>'),ja=e=>{const t=dr();return(()=>{const n=Ia.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.primary))),n})()},$a=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.5 4.8C2.5 3.11984 2.5 2.27976 2.82698 1.63803C3.1146 1.07354 3.57354 0.614601 4.13803 0.32698C4.77976 0 5.61984 0 7.3 0H8.7C10.3802 0 11.2202 0 11.862 0.32698C12.4265 0.614601 12.8854 1.07354 13.173 1.63803C13.5 2.27976 13.5 3.11984 13.5 4.8V11.2C13.5 12.8802 13.5 13.7202 13.173 14.362C12.8854 14.9265 12.4265 15.3854 11.862 15.673C11.2202 16 10.3802 16 8.7 16H7.3C5.61984 16 4.77976 16 4.13803 15.673C3.57354 15.3854 3.1146 14.9265 2.82698 14.362C2.5 13.7202 2.5 12.8802 2.5 11.2V4.8ZM4 3.9C4 3.05992 4 2.63988 4.16349 2.31901C4.3073 2.03677 4.53677 1.8073 4.81901 1.66349C5.13988 1.5 5.55992 1.5 6.4 1.5H9.6C10.4401 1.5 10.8601 1.5 11.181 1.66349C11.4632 1.8073 11.6927 2.03677 11.8365 2.31901C12 2.63988 12 3.05992 12 3.9V12.1C12 12.9401 12 13.3601 11.8365 13.681C11.6927 13.9632 11.4632 14.1927 11.181 14.3365C10.8601 14.5 10.4401 14.5 9.6 14.5H6.4C5.55992 14.5 5.13988 14.5 4.81901 14.3365C4.53677 14.1927 4.3073 13.9632 4.16349 13.681C4 13.3601 4 12.9401 4 12.1V3.9ZM7 2.5C6.58579 2.5 6.25 2.83579 6.25 3.25C6.25 3.66421 6.58579 4 7 4H9C9.41421 4 9.75 3.66421 9.75 3.25C9.75 2.83579 9.41421 2.5 9 2.5H7Z"></path></svg>'),Da=e=>{const t=dr();return(()=>{const n=$a.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.primary))),n})()},Ua=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 6.8C1.5 5.11984 1.5 4.27976 1.82698 3.63803C2.1146 3.07354 2.57354 2.6146 3.13803 2.32698C3.77976 2 4.61984 2 6.3 2H9.7C11.3802 2 12.2202 2 12.862 2.32698C13.4265 2.6146 13.8854 3.07354 14.173 3.63803C14.5 4.27976 14.5 5.11984 14.5 6.8V11.5H15.25C15.6642 11.5 16 11.8358 16 12.25C16 12.6642 15.6642 13 15.25 13H0.75C0.335786 13 0 12.6642 0 12.25C0 11.8358 0.335786 11.5 0.75 11.5H1.5V6.8ZM3 11.5H13V5.9C13 5.05992 13 4.63988 12.8365 4.31901C12.6927 4.03677 12.4632 3.8073 12.181 3.66349C11.8601 3.5 11.4401 3.5 10.6 3.5H5.4C4.55992 3.5 4.13988 3.5 3.81901 3.66349C3.53677 3.8073 3.3073 4.03677 3.16349 4.31901C3 4.63988 3 5.05992 3 5.9V11.5Z"></path></svg>'),Wa=e=>{const t=dr();return(()=>{const n=Ua.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.primary))),n})()},za=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1603)"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5 1.25049C15.5 0.836275 15.1642 0.500488 14.75 0.500488C14.3358 0.500488 14 0.836275 14 1.25049V3.67012C12.7187 2.04487 10.7318 1.00049 8.5 1.00049C4.63401 1.00049 1.5 4.1345 1.5 8.00049C1.5 11.8665 4.63401 15.0005 8.5 15.0005C11.6844 15.0005 14.3703 12.8748 15.2199 9.96661C15.3361 9.56902 15.1079 9.15254 14.7103 9.03638C14.3127 8.92023 13.8962 9.14838 13.7801 9.54597C13.1123 11.8319 11 13.5005 8.5 13.5005C5.46243 13.5005 3 11.0381 3 8.00049C3 4.96292 5.46243 2.50049 8.5 2.50049C10.321 2.50049 11.9363 3.3855 12.9377 4.75049H10.5C10.0858 4.75049 9.75 5.08627 9.75 5.50049C9.75 5.9147 10.0858 6.25049 10.5 6.25049H14.75C15.1642 6.25049 15.5 5.9147 15.5 5.50049V1.25049Z"></path></g><defs><clipPath id="clip0_3676_1603"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000488281)"></rect></clipPath></defs></svg>'),Ba=e=>{const t=dr();return(()=>{const n=za.cloneNode(!0),r=n.firstChild.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.accent))),n})()},Fa=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M13 4.06119V6.75053C13 7.16474 13.3358 7.50053 13.75 7.50053C14.1642 7.50053 14.5 7.16474 14.5 6.75053V2.75053L14.5 2.72807C14.5001 2.63191 14.5003 2.49627 14.4842 2.37627C14.4638 2.22503 14.4063 1.99261 14.2071 1.79342C14.0079 1.59423 13.7755 1.5367 13.6243 1.51637C13.5043 1.50023 13.3686 1.50039 13.2725 1.50051L13.25 1.50053H9.25C8.83579 1.50053 8.5 1.83631 8.5 2.25053C8.5 2.66474 8.83579 3.00053 9.25 3.00053H11.9393L7.21967 7.7202C6.92678 8.01309 6.92678 8.48796 7.21967 8.78086C7.51256 9.07375 7.98744 9.07375 8.28033 8.78086L13 4.06119ZM5.85 1.50053H5.81903H5.81899C5.21528 1.50052 4.71702 1.50051 4.31113 1.53367C3.88956 1.56812 3.50203 1.64204 3.13803 1.82751C2.57354 2.11513 2.1146 2.57407 1.82698 3.13856C1.64151 3.50256 1.56759 3.89009 1.53315 4.31166C1.49998 4.71755 1.49999 5.21581 1.5 5.81953V5.81955V5.85053V10.1505V10.1815V10.1815C1.49999 10.7852 1.49998 11.2835 1.53315 11.6894C1.56759 12.111 1.64151 12.4985 1.82698 12.8625C2.1146 13.427 2.57354 13.8859 3.13803 14.1735C3.50203 14.359 3.88956 14.4329 4.31113 14.4674C4.71702 14.5005 5.21527 14.5005 5.81897 14.5005H5.81901H5.85H10.15H10.181H10.181C10.7847 14.5005 11.283 14.5005 11.6889 14.4674C12.1104 14.4329 12.498 14.359 12.862 14.1735C13.4265 13.8859 13.8854 13.427 14.173 12.8625C14.3585 12.4985 14.4324 12.111 14.4669 11.6894C14.5 11.2835 14.5 10.7853 14.5 10.1816V10.1815V10.1505V9.75053C14.5 9.33631 14.1642 9.00053 13.75 9.00053C13.3358 9.00053 13 9.33631 13 9.75053V10.1505C13 10.793 12.9994 11.2297 12.9718 11.5672C12.945 11.8961 12.8963 12.0642 12.8365 12.1815C12.6927 12.4638 12.4632 12.6932 12.181 12.837C12.0637 12.8968 11.8955 12.9455 11.5667 12.9724C11.2292 12.9999 10.7924 13.0005 10.15 13.0005H5.85C5.20757 13.0005 4.77085 12.9999 4.43328 12.9724C4.10447 12.9455 3.93632 12.8968 3.81902 12.837C3.53677 12.6932 3.3073 12.4638 3.16349 12.1815C3.10372 12.0642 3.05503 11.8961 3.02816 11.5672C3.00058 11.2297 3 10.793 3 10.1505V5.85053C3 5.20809 3.00058 4.77137 3.02816 4.43381C3.05503 4.10499 3.10372 3.93684 3.16349 3.81954C3.3073 3.5373 3.53677 3.30783 3.81902 3.16402C3.93632 3.10425 4.10447 3.05556 4.43328 3.02869C4.77085 3.00111 5.20757 3.00053 5.85 3.00053H6.25C6.66422 3.00053 7 2.66474 7 2.25053C7 1.83631 6.66422 1.50053 6.25 1.50053H5.85Z"></path></svg>'),Ha=e=>{const t=dr();return(()=>{const n=Fa.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.accent))),n})()},Va=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none"><g clip-path="url(#clip0_3676_1274)"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.82698 2.63901C1.5 3.28074 1.5 4.12082 1.5 5.80098V8.80098V9.00098V10.201C1.5 11.8811 1.5 12.7212 1.82698 13.3629C2.1146 13.9274 2.57354 14.3864 3.13803 14.674C3.77976 15.001 4.61984 15.001 6.3 15.001H11.7C13.3802 15.001 14.2202 15.001 14.862 14.674C15.4265 14.3864 15.8854 13.9274 16.173 13.3629C16.5 12.7212 16.5 11.8811 16.5 10.201V8.80098C16.5 7.12082 16.5 6.28074 16.173 5.63901C15.8854 5.07452 15.4265 4.61558 14.862 4.32796C14.743 4.26733 14.6172 4.21795 14.4805 4.17772C14.4501 3.49449 14.3722 3.02994 14.173 2.63901C13.8854 2.07452 13.4265 1.61558 12.862 1.32796C12.2202 1.00098 11.3802 1.00098 9.7 1.00098H6.3C4.61984 1.00098 3.77976 1.00098 3.13803 1.32796C2.57354 1.61558 2.1146 2.07452 1.82698 2.63901ZM12.9861 4.00942C12.9684 3.7108 12.9281 3.49982 12.8365 3.31999C12.6927 3.03775 12.4632 2.80828 12.181 2.66447C11.8601 2.50098 11.4401 2.50098 10.6 2.50098H5.4C4.55992 2.50098 4.13988 2.50098 3.81901 2.66447C3.53677 2.80828 3.3073 3.03775 3.16349 3.31999C3.03615 3.56991 3.00799 3.88 3.00177 4.40188C3.04646 4.37612 3.09189 4.35146 3.13803 4.32796C3.77976 4.00098 4.61984 4.00098 6.3 4.00098H11.7C12.1966 4.00098 12.6197 4.00098 12.9861 4.00942ZM3 7.90098V8.10098C3 8.47468 3 8.76527 3.01439 9.00098H3V11.101C3 11.9411 3 12.3611 3.16349 12.682C3.3073 12.9642 3.53677 13.1937 3.81901 13.3375C4.13988 13.501 4.55992 13.501 5.4 13.501H12.6C13.4401 13.501 13.8601 13.501 14.181 13.3375C14.4632 13.1937 14.6927 12.9642 14.8365 12.682C15 12.3611 15 11.9411 15 11.101V7.90098C15 7.0609 15 6.64086 14.8365 6.31999C14.6927 6.03775 14.4632 5.80828 14.181 5.66447C13.8601 5.50098 13.4401 5.50098 12.6 5.50098H5.4C4.55992 5.50098 4.13988 5.50098 3.81901 5.66447C3.53677 5.80828 3.3073 6.03775 3.16349 6.31999C3 6.64086 3 7.0609 3 7.90098ZM10.5 9.75098C10.5 9.33676 10.8358 9.00098 11.25 9.00098H12.75C13.1642 9.00098 13.5 9.33676 13.5 9.75098C13.5 10.1652 13.1642 10.501 12.75 10.501H11.25C10.8358 10.501 10.5 10.1652 10.5 9.75098Z"></path></g><defs><clipPath id="clip0_3676_1274"><rect width="16" height="16" fill="white" transform="translate(0.5 0.000976562)"></rect></clipPath></defs></svg>'),Ka=e=>{const t=dr();return(()=>{const n=Va.cloneNode(!0),r=n.firstChild.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.accent))),n})()},qa=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M39.6319 16.8719C38.3212 16.2041 36.7002 16.0478 34 16.0112V11C34 5.47715 29.5228 1 24 1C18.4772 1 14 5.47715 14 11V16.0112C11.2998 16.0478 9.6788 16.2041 8.36808 16.8719C6.86278 17.6389 5.63893 18.8628 4.87195 20.3681C4 22.0794 4 24.3196 4 28.8V32.2C4 36.6804 4 38.9206 4.87195 40.6319C5.63893 42.1372 6.86278 43.3611 8.36808 44.1281C10.0794 45 12.3196 45 16.8 45H31.2C35.6804 45 37.9206 45 39.6319 44.1281C41.1372 43.3611 42.3611 42.1372 43.1281 40.6319C44 38.9206 44 36.6804 44 32.2V28.8C44 24.3196 44 22.0794 43.1281 20.3681C42.3611 18.8628 41.1372 17.6389 39.6319 16.8719ZM31 11V16H17V11C17 7.13401 20.134 4 24 4C27.866 4 31 7.13401 31 11ZM7.54497 21.73C7 22.7996 7 24.1997 7 27V34C7 36.8003 7 38.2004 7.54497 39.27C8.02433 40.2108 8.78924 40.9757 9.73005 41.455C10.7996 42 12.1997 42 15 42H33C35.8003 42 37.2004 42 38.27 41.455C39.2108 40.9757 39.9757 40.2108 40.455 39.27C41 38.2004 41 36.8003 41 34V27C41 24.1997 41 22.7996 40.455 21.73C39.9757 20.7892 39.2108 20.0243 38.27 19.545C37.2004 19 35.8003 19 33 19H15C12.1997 19 10.7996 19 9.73005 19.545C8.78924 20.0243 8.02433 20.7892 7.54497 21.73ZM24 24C23.1716 24 22.5 24.6716 22.5 25.5V29.5C22.5 30.3284 23.1716 31 24 31C24.8284 31 25.5 30.3284 25.5 29.5V25.5C25.5 24.6716 24.8284 24 24 24Z"></path></svg>'),Ga=e=>{const t=dr();return(()=>{const n=qa.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Qa=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M37.485 37.3849C40.894 33.9506 43 29.2212 43 24C43 13.5066 34.4934 5 24 5C13.5066 5 5 13.5066 5 24C5 29.2213 7.1061 33.9507 10.5151 37.385C13.3583 32.9438 18.3354 30 24.0001 30C29.6647 30 34.6418 32.9437 37.485 37.3849ZM35.1809 39.3635C32.9143 35.5532 28.7554 33 24.0001 33C19.2448 33 15.0858 35.5533 12.8193 39.3636C15.9564 41.6506 19.8206 43 24 43C28.1795 43 32.0437 41.6505 35.1809 39.3635ZM24 46C36.1503 46 46 36.1503 46 24C46 11.8497 36.1503 2 24 2C11.8497 2 2 11.8497 2 24C2 36.1503 11.8497 46 24 46ZM24 24C26.7614 24 29 21.7614 29 19C29 16.2386 26.7614 14 24 14C21.2386 14 19 16.2386 19 19C19 21.7614 21.2386 24 24 24ZM24 27C28.4183 27 32 23.4183 32 19C32 14.5817 28.4183 11 24 11C19.5817 11 16 14.5817 16 19C16 23.4183 19.5817 27 24 27Z"></path></svg>'),Za=e=>{const t=dr();return(()=>{const n=Qa.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ya=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M34.5607 4.43934C33.9749 3.85355 33.0251 3.85355 32.4393 4.43934C31.8536 5.02513 31.8536 5.97487 32.4393 6.56066L37.8787 12H10.5C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15H37.8787L32.4393 20.4393C31.8536 21.0251 31.8536 21.9749 32.4393 22.5607C33.0251 23.1464 33.9749 23.1464 34.5607 22.5607L42.5607 14.5607C43.1464 13.9749 43.1464 13.0251 42.5607 12.4393L34.5607 4.43934ZM13.4393 25.4393C14.0251 24.8536 14.9749 24.8536 15.5607 25.4393C16.1464 26.0251 16.1464 26.9749 15.5607 27.5607L10.1213 33H37.5C38.3284 33 39 33.6716 39 34.5C39 35.3284 38.3284 36 37.5 36H10.1213L15.5607 41.4393C16.1464 42.0251 16.1464 42.9749 15.5607 43.5607C14.9749 44.1464 14.0251 44.1464 13.4393 43.5607L5.43934 35.5607C4.85355 34.9749 4.85355 34.0251 5.43934 33.4393L13.4393 25.4393Z"></path></svg>'),Xa=e=>{const t=dr();return(()=>{const n=Ya.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Ja=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.75 12.002C1.75 9.20169 1.75 7.80156 2.29497 6.732C2.77433 5.79119 3.53924 5.02629 4.48005 4.54692C5.54961 4.00195 6.94974 4.00195 9.75 4.00195H17.25C20.0503 4.00195 21.4504 4.00195 22.52 4.54692C23.4608 5.02629 24.2257 5.79119 24.705 6.732C24.8256 6.96861 24.9195 7.2214 24.9926 7.50195H21.5C19.6377 7.50195 18.7065 7.50195 17.9609 7.77334C16.711 8.22828 15.7263 9.21291 15.2714 10.4629C15 11.2085 15 12.1396 15 14.002C15 15.8643 15 16.7954 15.2714 17.541C15.7263 18.791 16.711 19.7756 17.9609 20.2306C18.7065 20.502 19.6377 20.502 21.5 20.502H24.9926C24.9195 20.7825 24.8256 21.0353 24.705 21.2719C24.2257 22.2127 23.4608 22.9776 22.52 23.457C21.4504 24.002 20.0503 24.002 17.25 24.002H9.75C6.94974 24.002 5.54961 24.002 4.48005 23.457C3.53924 22.9776 2.77433 22.2127 2.29497 21.2719C1.75 20.2023 1.75 18.8022 1.75 16.002V12.002ZM16.4999 13.802C16.4999 12.1218 16.4999 11.2817 16.8269 10.64C17.1145 10.0755 17.5735 9.61656 18.138 9.32894C18.7797 9.00196 19.6198 9.00196 21.2999 9.00196H23.1999C24.8801 9.00196 25.7202 9.00196 26.3619 9.32894C26.9264 9.61656 27.3853 10.0755 27.673 10.64C27.9999 11.2817 27.9999 12.1218 27.9999 13.802V14.202C27.9999 15.8821 27.9999 16.7222 27.673 17.3639C27.3853 17.9284 26.9264 18.3874 26.3619 18.675C25.7202 19.002 24.8801 19.002 23.1999 19.002H21.2999C19.6198 19.002 18.7797 19.002 18.138 18.675C17.5735 18.3874 17.1145 17.9284 16.8269 17.3639C16.4999 16.7222 16.4999 15.8821 16.4999 14.202V13.802ZM22.4999 14.002C22.4999 14.9685 21.7164 15.752 20.7499 15.752C19.7834 15.752 18.9999 14.9685 18.9999 14.002C18.9999 13.0355 19.7834 12.252 20.7499 12.252C21.7164 12.252 22.4999 13.0355 22.4999 14.002Z"></path></svg>'),es=e=>{const t=dr();return(()=>{const n=Ja.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.constant.white;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},ts=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M24.7803 7.21967C25.0732 7.51256 25.0732 7.98744 24.7803 8.28033L11.5303 21.5303C11.2374 21.8232 10.7626 21.8232 10.4697 21.5303L4.21967 15.2803C3.92678 14.9874 3.92678 14.5126 4.21967 14.2197C4.51256 13.9268 4.98744 13.9268 5.28033 14.2197L11 19.9393L23.7197 7.21967C24.0126 6.92678 24.4874 6.92678 24.7803 7.21967Z"></path></svg>'),ns=e=>{const t=dr();return(()=>{const n=ts.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.icon.secondary;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},rs=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.0001 10.0001C10.0016 8.02333 10.0267 6.98719 10.436 6.18404C10.8195 5.43139 11.4314 4.81947 12.184 4.43597C13.0397 4 14.1598 4 16.4 4H17.6C19.8402 4 20.9603 4 21.816 4.43597C22.5686 4.81947 23.1805 5.43139 23.564 6.18404C24 7.03969 24 8.15979 24 10.4V11.6C24 13.8402 24 14.9603 23.564 15.816C23.1805 16.5686 22.5686 17.1805 21.816 17.564C21.0128 17.9733 19.9767 17.9984 17.9999 17.9999C17.9984 19.9767 17.9733 21.0128 17.564 21.816C17.1805 22.5686 16.5686 23.1805 15.816 23.564C14.9603 24 13.8402 24 11.6 24H10.4C8.15979 24 7.03969 24 6.18404 23.564C5.43139 23.1805 4.81947 22.5686 4.43597 21.816C4 20.9603 4 19.8402 4 17.6V16.4C4 14.1598 4 13.0397 4.43597 12.184C4.81947 11.4314 5.43139 10.8195 6.18404 10.436C6.98719 10.0267 8.02333 10.0016 10.0001 10.0001ZM10 11.5H9.5C8.09987 11.5 7.3998 11.5 6.86502 11.7725C6.39462 12.0122 6.01217 12.3946 5.77248 12.865C5.5 13.3998 5.5 14.0999 5.5 15.5V18.5C5.5 19.9001 5.5 20.6002 5.77248 21.135C6.01217 21.6054 6.39462 21.9878 6.86502 22.2275C7.3998 22.5 8.09987 22.5 9.5 22.5H12.5C13.9001 22.5 14.6002 22.5 15.135 22.2275C15.6054 21.9878 15.9878 21.6054 16.2275 21.135C16.5 20.6002 16.5 19.9001 16.5 18.5V18H16.4C14.1598 18 13.0397 18 12.184 17.564C11.4314 17.1805 10.8195 16.5686 10.436 15.816C10 14.9603 10 13.8402 10 11.6V11.5ZM11.5 9.5C11.5 8.09987 11.5 7.3998 11.7725 6.86502C12.0122 6.39462 12.3946 6.01217 12.865 5.77248C13.3998 5.5 14.0999 5.5 15.5 5.5H18.5C19.9001 5.5 20.6002 5.5 21.135 5.77248C21.6054 6.01217 21.9878 6.39462 22.2275 6.86502C22.5 7.3998 22.5 8.09987 22.5 9.5V12.5C22.5 13.9001 22.5 14.6002 22.2275 15.135C21.9878 15.6054 21.6054 15.9878 21.135 16.2275C20.6002 16.5 19.9001 16.5 18.5 16.5H15.5C14.0999 16.5 13.3998 16.5 12.865 16.2275C12.3946 15.9878 12.0122 15.6054 11.7725 15.135C11.5 14.6002 11.5 13.9001 11.5 12.5V9.5Z"></path></svg>'),os=e=>{const t=dr(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=rs.cloneNode(!0),t=e.firstChild;return $t((r=>{const o=n(),i=n();return o!==r._v$&&Mn(e,"fill",r._v$=o),i!==r._v$2&&Mn(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},is=Ln('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M1 4.12695C1 3.07754 1 2.55284 1.19202 2.14684C1.38986 1.72856 1.7266 1.39181 2.14489 1.19397C2.55088 1.00195 3.07559 1.00195 4.125 1.00195C5.17441 1.00195 5.69912 1.00195 6.10511 1.19397C6.5234 1.39181 6.86014 1.72856 7.05798 2.14684C7.25 2.55284 7.25 3.07754 7.25 4.12695C7.25 5.17636 7.25 5.70107 7.05798 6.10706C6.86014 6.52535 6.5234 6.8621 6.10511 7.05993C5.69912 7.25195 5.17441 7.25195 4.125 7.25195C3.07559 7.25195 2.55088 7.25195 2.14489 7.05993C1.7266 6.8621 1.38986 6.52535 1.19202 6.10706C1 5.70107 1 5.17636 1 4.12695ZM2.5 3.30195C2.5 3.02193 2.5 2.88191 2.5545 2.77496C2.60243 2.68088 2.67892 2.60439 2.773 2.55645C2.87996 2.50195 3.01997 2.50195 3.3 2.50195H4.95C5.23003 2.50195 5.37004 2.50195 5.477 2.55645C5.57108 2.60439 5.64757 2.68088 5.6955 2.77496C5.75 2.88191 5.75 3.02193 5.75 3.30195V4.95195C5.75 5.23198 5.75 5.37199 5.6955 5.47895C5.64757 5.57303 5.57108 5.64952 5.477 5.69746C5.37004 5.75195 5.23003 5.75195 4.95 5.75195H3.3C3.01997 5.75195 2.87996 5.75195 2.773 5.69746C2.67892 5.64952 2.60243 5.57303 2.5545 5.47895C2.5 5.37199 2.5 5.23198 2.5 4.95195V3.30195ZM1 11.877C1 10.8275 1 10.3028 1.19202 9.89684C1.38986 9.47856 1.7266 9.14181 2.14489 8.94397C2.55088 8.75195 3.07559 8.75195 4.125 8.75195C5.17441 8.75195 5.69912 8.75195 6.10511 8.94397C6.5234 9.14181 6.86014 9.47856 7.05798 9.89684C7.25 10.3028 7.25 10.8275 7.25 11.877C7.25 12.9264 7.25 13.4511 7.05798 13.8571C6.86014 14.2753 6.5234 14.6121 6.10511 14.8099C5.69912 15.002 5.17441 15.002 4.125 15.002C3.07559 15.002 2.55088 15.002 2.14489 14.8099C1.7266 14.6121 1.38986 14.2753 1.19202 13.8571C1 13.4511 1 12.9264 1 11.877ZM2.5 11.052C2.5 10.7719 2.5 10.6319 2.5545 10.525C2.60243 10.4309 2.67892 10.3544 2.773 10.3064C2.87996 10.252 3.01997 10.252 3.3 10.252H4.95C5.23003 10.252 5.37004 10.252 5.477 10.3064C5.57108 10.3544 5.64757 10.4309 5.6955 10.525C5.75 10.6319 5.75 10.7719 5.75 11.052V12.702C5.75 12.982 5.75 13.122 5.6955 13.2289C5.64757 13.323 5.57108 13.3995 5.477 13.4475C5.37004 13.502 5.23003 13.502 4.95 13.502H3.3C3.01997 13.502 2.87996 13.502 2.773 13.4475C2.67892 13.3995 2.60243 13.323 2.5545 13.2289C2.5 13.122 2.5 12.982 2.5 12.702V11.052ZM8.94202 2.14684C8.75 2.55284 8.75 3.07754 8.75 4.12695C8.75 5.17636 8.75 5.70107 8.94202 6.10706C9.13986 6.52535 9.4766 6.8621 9.89489 7.05993C10.3009 7.25195 10.8256 7.25195 11.875 7.25195C12.9244 7.25195 13.4491 7.25195 13.8551 7.05993C14.2734 6.8621 14.6101 6.52535 14.808 6.10706C15 5.70107 15 5.17636 15 4.12695C15 3.07754 15 2.55284 14.808 2.14684C14.6101 1.72856 14.2734 1.39181 13.8551 1.19397C13.4491 1.00195 12.9244 1.00195 11.875 1.00195C10.8256 1.00195 10.3009 1.00195 9.89489 1.19397C9.4766 1.39181 9.13986 1.72856 8.94202 2.14684ZM10.3045 2.77496C10.25 2.88191 10.25 3.02193 10.25 3.30195V4.95195C10.25 5.23198 10.25 5.37199 10.3045 5.47895C10.3524 5.57303 10.4289 5.64952 10.523 5.69746C10.63 5.75195 10.77 5.75195 11.05 5.75195H12.7C12.98 5.75195 13.12 5.75195 13.227 5.69746C13.3211 5.64952 13.3976 5.57303 13.4455 5.47895C13.5 5.37199 13.5 5.23198 13.5 4.95195V3.30195C13.5 3.02193 13.5 2.88191 13.4455 2.77496C13.3976 2.68088 13.3211 2.60439 13.227 2.55645C13.12 2.50195 12.98 2.50195 12.7 2.50195H11.05C10.77 2.50195 10.63 2.50195 10.523 2.55645C10.4289 2.60439 10.3524 2.68088 10.3045 2.77496ZM8.80727 9.13518C8.75 9.26242 8.75 9.4256 8.75 9.75195C8.75 10.0783 8.75 10.2415 8.80727 10.3687C8.87245 10.5136 8.9884 10.6295 9.13323 10.6947C9.26047 10.752 9.42365 10.752 9.75 10.752C10.0764 10.752 10.2395 10.752 10.3668 10.6947C10.5116 10.6295 10.6276 10.5136 10.6927 10.3687C10.75 10.2415 10.75 10.0783 10.75 9.75195C10.75 9.4256 10.75 9.26242 10.6927 9.13518C10.6276 8.99035 10.5116 8.8744 10.3668 8.80922C10.2395 8.75195 10.0764 8.75195 9.75 8.75195C9.42365 8.75195 9.26047 8.75195 9.13323 8.80922C8.9884 8.8744 8.87245 8.99035 8.80727 9.13518ZM10.87 11.8771C10.87 11.546 10.87 11.3805 10.9289 11.2517C10.9938 11.1098 11.1077 10.9959 11.2497 10.931C11.3784 10.8721 11.5439 10.8721 11.875 10.8721C12.2061 10.8721 12.3716 10.8721 12.5003 10.931C12.6423 10.9959 12.7562 11.1098 12.8211 11.2517C12.88 11.3805 12.88 11.546 12.88 11.8771C12.88 12.2081 12.88 12.3737 12.8211 12.5024C12.7562 12.6444 12.6423 12.7583 12.5003 12.8232C12.3716 12.8821 12.2061 12.8821 11.875 12.8821C11.5439 12.8821 11.3784 12.8821 11.2497 12.8232C11.1077 12.7583 10.9938 12.6444 10.9289 12.5024C10.87 12.3737 10.87 12.2081 10.87 11.8771ZM8.80727 13.3852C8.75 13.5124 8.75 13.6756 8.75 14.002C8.75 14.3283 8.75 14.4915 8.80727 14.6187C8.87245 14.7636 8.9884 14.8795 9.13323 14.9447C9.26047 15.002 9.42365 15.002 9.75 15.002C10.0764 15.002 10.2395 15.002 10.3668 14.9447C10.5116 14.8795 10.6276 14.7636 10.6927 14.6187C10.75 14.4915 10.75 14.3283 10.75 14.002C10.75 13.6756 10.75 13.5124 10.6927 13.3852C10.6276 13.2404 10.5116 13.1244 10.3668 13.0592C10.2395 13.002 10.0764 13.002 9.75 13.002C9.42365 13.002 9.26047 13.002 9.13323 13.0592C8.9884 13.1244 8.87245 13.2404 8.80727 13.3852ZM13 9.75195C13 9.4256 13 9.26242 13.0573 9.13518C13.1224 8.99035 13.2384 8.8744 13.3832 8.80922C13.5105 8.75195 13.6736 8.75195 14 8.75195C14.3264 8.75195 14.4895 8.75195 14.6168 8.80922C14.7616 8.8744 14.8776 8.99035 14.9427 9.13518C15 9.26242 15 9.4256 15 9.75195C15 10.0783 15 10.2415 14.9427 10.3687C14.8776 10.5136 14.7616 10.6295 14.6168 10.6947C14.4895 10.752 14.3264 10.752 14 10.752C13.6736 10.752 13.5105 10.752 13.3832 10.6947C13.2384 10.6295 13.1224 10.5136 13.0573 10.3687C13 10.2415 13 10.0783 13 9.75195ZM13.0573 13.3852C13 13.5124 13 13.6756 13 14.002C13 14.3283 13 14.4915 13.0573 14.6187C13.1224 14.7636 13.2384 14.8795 13.3832 14.9447C13.5105 15.002 13.6736 15.002 14 15.002C14.3264 15.002 14.4895 15.002 14.6168 14.9447C14.7616 14.8795 14.8776 14.7636 14.9427 14.6187C15 14.4915 15 14.3283 15 14.002C15 13.6756 15 13.5124 14.9427 13.3852C14.8776 13.2404 14.7616 13.1244 14.6168 13.0592C14.4895 13.002 14.3264 13.002 14 13.002C13.6736 13.002 13.5105 13.002 13.3832 13.0592C13.2384 13.1244 13.1224 13.2404 13.0573 13.3852Z"></path></svg>'),as=e=>{const t=dr();return(()=>{const n=is.cloneNode(!0),r=n.firstChild;return $t((()=>Mn(r,"fill",e.fill||t.colors.icon.secondary))),n})()},ss={m:"16px",s:"12px",none:"0"},ls={m:"6px",s:"6px",none:"0"},cs=hr.div`
453
453
  width: 60px;
454
454
  height: 60px;
455
455
  padding: 8px;
456
456
  margin-bottom: 8px;
457
- border-radius: ${e=>Is[e.theme.borderRadius]};
457
+ border-radius: ${e=>ss[e.theme.borderRadius]};
458
458
  background-color: ${e=>e.theme.colors.background.tint};
459
459
  display: grid;
460
460
  grid-template: 1fr 1fr / 1fr 1fr;
461
461
  gap: 4px;
462
- `,Ds=zr(_a)`
462
+ `,us=hr(Ji)`
463
463
  width: 20px;
464
464
  height: 20px;
465
- border-radius: ${e=>js[e.theme.borderRadius]};
466
- `,Us=e=>Bn(ja,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return Bn($s,{get children(){return Bn(Gn,{each:[0,1,2,3],children:t=>Bn(Ds,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),Ws="telegram-wallet",zs="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",Bs="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",Fs=e=>{const[t]=Ca();return pn((()=>{const n=pn((()=>e.wallet.appName===Ws));return()=>n()?Bn(ja,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return Bs},onClick:()=>e.onClick()}):Bn(ja,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==Ws)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):Je(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},Hs=zr.div`
465
+ border-radius: ${e=>ls[e.theme.borderRadius]};
466
+ `,ds=e=>pn(la,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return pn(cs,{get children(){return pn(wn,{each:[0,1,2,3],children:t=>pn(us,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),fs="telegram-wallet",hs="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",ps="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",gs=e=>{const[t]=Gi();return Ut((()=>{const n=Ut((()=>e.wallet.appName===fs));return()=>n()?pn(la,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return ps},onClick:()=>e.onClick()}):pn(la,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==fs)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):Se(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},ms=hr.div`
467
467
  width: 100%;
468
468
  overflow-y: auto;
469
469
  max-height: ${e=>e.maxHeight};
@@ -480,7 +480,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
480
480
  &&::-webkit-scrollbar-thumb {
481
481
  display: none;
482
482
  }
483
- `,Vs=zr.div`
483
+ `,vs=hr.div`
484
484
  height: 1px;
485
485
  margin: 0 -24px;
486
486
  width: calc(100% + 48px);
@@ -488,25 +488,25 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
488
488
  background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
489
489
  transition: background 0.15s ease-in-out;
490
490
 
491
- ${vi("mobile")} {
491
+ ${Fo("mobile")} {
492
492
  width: 100%;
493
493
  margin: 0;
494
494
  }
495
- `,[Ks,qs]=un((null==(Mt=oo())?void 0:Mt.innerHeight)||0);oo()&&window.addEventListener("resize",(()=>qs(window.innerHeight)));const[Gs,Zs]=un(mi("mobile")),Qs=()=>Zs(mi("mobile"));oo()&&(window.addEventListener("resize",(()=>Qs())),window.addEventListener("load",(()=>Qs()),{once:!0}));const Ys=e=>{const[t,n]=un(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:Ks()-(Gs()?150:200)+"px";return[Bn(Vs,{get isShown(){return t()}}),Bn(Hs,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Xs=zr.a`
495
+ `,[ys,bs]=It((null==(ot=Or())?void 0:ot.innerHeight)||0);Or()&&window.addEventListener("resize",(()=>bs(window.innerHeight)));const[ws,xs]=It(Bo("mobile")),Cs=()=>xs(Bo("mobile"));Or()&&(window.addEventListener("resize",(()=>Cs())),window.addEventListener("load",(()=>Cs()),{once:!0}));const ks=e=>{const[t,n]=It(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:ys()-(ws()?150:200)+"px";return[pn(vs,{get isShown(){return t()}}),pn(ms,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Ss=hr.a`
496
496
  display: block;
497
497
  text-decoration: unset;
498
- `,Js=e=>Bn(Xs,Kn({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},(()=>e.blank?{rel:"noreferrer noopener"}:{}),{get children(){return e.children}})),el=xn(),tl=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),nl=e=>{const t=Ur();return(()=>{const n=tl.cloneNode(!0),r=n.firstChild;return fn((o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&sr(n,"class",o._v$=i),a!==o._v$2&&sr(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},rl=ar('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),ol=e=>{const t=Ur(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=rl.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return fn((e=>{const o=n(),i=n();return o!==e._v$&&sr(t,"fill",e._v$=o),i!==e._v$2&&sr(r,"fill",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),e})()},il={m:"8px",s:"4px",none:"0"},al={m:"16px",s:"8px",none:"0"},sl=zr.div`
498
+ `,Es=e=>pn(Ss,yn({get href(){return e.href},get target(){return e.blank?"_blank":"_self"},get class(){return e.class}},(()=>e.blank?{rel:"noreferrer noopener"}:{}),{get children(){return e.children}})),As=Kt(),_s=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.76228 2.09998H10.2378C11.0458 2.09997 11.7067 2.09996 12.2438 2.14384C12.7997 2.18926 13.3017 2.28614 13.7706 2.52505C14.5045 2.89896 15.1011 3.49558 15.475 4.22941C15.7139 4.6983 15.8108 5.20038 15.8562 5.75629C15.9001 6.29337 15.9001 6.95422 15.9001 7.76227V8.1H16.2377C17.0457 8.09999 17.7066 8.09998 18.2437 8.14386C18.7996 8.18928 19.3017 8.28616 19.7705 8.52507C20.5044 8.89898 21.101 9.4956 21.4749 10.2294C21.7138 10.6983 21.8107 11.2004 21.8561 11.7563C21.9 12.2934 21.9 12.9542 21.9 13.7623V16.2377C21.9 17.0458 21.9 17.7066 21.8561 18.2437C21.8107 18.7996 21.7138 19.3017 21.4749 19.7706C21.101 20.5044 20.5044 21.101 19.7705 21.4749C19.3017 21.7138 18.7996 21.8107 18.2437 21.8561C17.7066 21.9 17.0458 21.9 16.2378 21.9H13.7623C12.9543 21.9 12.2934 21.9 11.7563 21.8561C11.2004 21.8107 10.6983 21.7138 10.2294 21.4749C9.49561 21.101 8.89898 20.5044 8.52508 19.7706C8.28616 19.3017 8.18928 18.7996 8.14386 18.2437C8.09998 17.7066 8.09999 17.0458 8.1 16.2377V15.9H7.76227C6.95426 15.9 6.29335 15.9 5.75629 15.8561C5.20038 15.8107 4.6983 15.7138 4.22941 15.4749C3.49558 15.101 2.89896 14.5044 2.52505 13.7705C2.28614 13.3017 2.18926 12.7996 2.14384 12.2437C2.09996 11.7066 2.09997 11.0458 2.09998 10.2377V7.76228C2.09997 6.95424 2.09996 6.29336 2.14384 5.75629C2.18926 5.20038 2.28614 4.6983 2.52505 4.22941C2.89896 3.49558 3.49558 2.89896 4.22941 2.52505C4.6983 2.28614 5.20038 2.18926 5.75629 2.14384C6.29336 2.09996 6.95425 2.09997 7.76228 2.09998ZM8.1 14.1V13.7623C8.09999 12.9542 8.09998 12.2934 8.14386 11.7563C8.18928 11.2004 8.28616 10.6983 8.52508 10.2294C8.89898 9.4956 9.49561 8.89898 10.2294 8.52507C10.6983 8.28616 11.2004 8.18928 11.7563 8.14386C12.2934 8.09998 12.9542 8.09999 13.7623 8.1H14.1001V7.79998C14.1001 6.94505 14.0994 6.35798 14.0622 5.90287C14.0259 5.45827 13.9593 5.21944 13.8712 5.0466C13.6699 4.65146 13.3486 4.3302 12.9535 4.12886C12.7806 4.04079 12.5418 3.97419 12.0972 3.93786C11.6421 3.90068 11.055 3.89998 10.2001 3.89998H7.79998C6.94505 3.89998 6.35798 3.90068 5.90287 3.93786C5.45827 3.97419 5.21944 4.04079 5.0466 4.12886C4.65146 4.3302 4.3302 4.65146 4.12886 5.0466C4.04079 5.21944 3.97419 5.45827 3.93786 5.90287C3.90068 6.35798 3.89998 6.94505 3.89998 7.79998V10.2C3.89998 11.0549 3.90068 11.642 3.93786 12.0971C3.97419 12.5417 4.04079 12.7805 4.12886 12.9534C4.3302 13.3485 4.65146 13.6698 5.0466 13.8711C5.21944 13.9592 5.45827 14.0258 5.90287 14.0621C6.35798 14.0993 6.94505 14.1 7.79998 14.1H8.1ZM11.0466 10.1289C11.2195 10.0408 11.4583 9.97421 11.9029 9.93788C12.358 9.9007 12.9451 9.9 13.8 9.9H16.2C17.0549 9.9 17.642 9.9007 18.0971 9.93788C18.5417 9.97421 18.7805 10.0408 18.9534 10.1289C19.3485 10.3302 19.6698 10.6515 19.8711 11.0466C19.9592 11.2195 20.0258 11.4583 20.0621 11.9029C20.0993 12.358 20.1 12.9451 20.1 13.8V16.2C20.1 17.0549 20.0993 17.642 20.0621 18.0971C20.0258 18.5417 19.9592 18.7805 19.8711 18.9534C19.6698 19.3485 19.3485 19.6698 18.9534 19.8711C18.7805 19.9592 18.5417 20.0258 18.0971 20.0621C17.642 20.0993 17.0549 20.1 16.2 20.1H13.8C12.9451 20.1 12.358 20.0993 11.9029 20.0621C11.4583 20.0258 11.2195 19.9592 11.0466 19.8711C10.6515 19.6698 10.3302 19.3485 10.1289 18.9534C10.0408 18.7805 9.97421 18.5417 9.93788 18.0971C9.9007 17.642 9.9 17.0549 9.9 16.2V13.8C9.9 12.9451 9.9007 12.358 9.93788 11.9029C9.97421 11.4583 10.0408 11.2195 10.1289 11.0466C10.3302 10.6515 10.6515 10.3302 11.0466 10.1289Z"></path></svg>'),Ts=e=>{const t=dr();return(()=>{const n=_s.cloneNode(!0),r=n.firstChild;return $t((o=>{const i=e.class,a=e.fill||t.colors.icon.primary;return i!==o._v$&&Mn(n,"class",o._v$=i),a!==o._v$2&&Mn(r,"fill",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),n})()},Rs=Ln('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.7624 3.10001C7.95435 3.1 7.29349 3.09999 6.75642 3.14387C6.2005 3.18929 5.69842 3.28617 5.22954 3.52508C4.4957 3.89899 3.89908 4.49561 3.52517 5.22944C3.28626 5.69833 3.18938 6.20041 3.14396 6.75632C3.10008 7.2934 3.10009 7.95424 3.1001 8.76229V15.2377C3.10009 16.0458 3.10008 16.7066 3.14396 17.2437C3.18938 17.7996 3.28626 18.3017 3.52517 18.7706C3.89908 19.5044 4.4957 20.101 5.22954 20.4749C5.69842 20.7138 6.2005 20.8107 6.75642 20.8561C7.29349 20.9 7.95434 20.9 8.76239 20.9H12.0001C12.4972 20.9 12.9001 20.4971 12.9001 20C12.9001 19.503 12.4972 19.1 12.0001 19.1H8.8001C7.94517 19.1 7.3581 19.0993 6.90299 19.0621C6.45839 19.0258 6.21956 18.9592 6.04672 18.8711C5.65158 18.6698 5.33032 18.3485 5.12898 17.9534C5.04092 17.7805 4.97431 17.5417 4.93798 17.0971C4.9008 16.642 4.9001 16.0549 4.9001 15.2V8.80001C4.9001 7.94508 4.9008 7.35801 4.93798 6.9029C4.97431 6.4583 5.04092 6.21947 5.12898 6.04663C5.33032 5.65149 5.65158 5.33023 6.04672 5.12889C6.21956 5.04082 6.45839 4.97422 6.90299 4.93789C7.3581 4.90071 7.94517 4.90001 8.8001 4.90001H12.0001C12.4972 4.90001 12.9001 4.49706 12.9001 4.00001C12.9001 3.50295 12.4972 3.10001 12.0001 3.10001H8.7624Z"></path><path d="M17.6364 7.3636C17.2849 7.01212 16.7151 7.01212 16.3636 7.3636C16.0121 7.71507 16.0121 8.28492 16.3636 8.63639L18.8272 11.1H9.00001C8.50295 11.1 8.10001 11.5029 8.10001 12C8.10001 12.497 8.50295 12.9 9.00001 12.9H18.8272L16.3636 15.3636C16.0121 15.7151 16.0121 16.2849 16.3636 16.6364C16.7151 16.9879 17.2849 16.9879 17.6364 16.6364L21.6364 12.6364C21.9879 12.2849 21.9879 11.7151 21.6364 11.3636L17.6364 7.3636Z"></path></svg>'),Os=e=>{const t=dr(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=Rs.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return $t((e=>{const o=n(),i=n();return o!==e._v$&&Mn(t,"fill",e._v$=o),i!==e._v$2&&Mn(r,"fill",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),e})()},Ps={m:"8px",s:"4px",none:"0"},Ls={m:"16px",s:"8px",none:"0"},Ms=hr.div`
499
499
  width: 256px;
500
500
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
501
- border-radius: ${e=>al[e.theme.borderRadius]};
501
+ border-radius: ${e=>Ls[e.theme.borderRadius]};
502
502
 
503
503
  background-color: ${e=>e.theme.colors.background.primary}
504
504
 
505
505
  color: ${e=>e.theme.colors.text.primary}
506
- `,ll=zr.ul`
506
+ `,Ns=hr.ul`
507
507
  background-color: ${e=>e.theme.colors.background.primary};
508
508
  padding: 8px;
509
- `,cl=zr.button`
509
+ `,Is=hr.button`
510
510
  display: flex;
511
511
  align-items: center;
512
512
  gap: 8px;
@@ -516,7 +516,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
516
516
 
517
517
  background-color: ${e=>e.theme.colors.background.primary};
518
518
  border: none;
519
- border-radius: ${e=>il[e.theme.borderRadius]};
519
+ border-radius: ${e=>Ps[e.theme.borderRadius]};
520
520
  cursor: pointer;
521
521
 
522
522
  transition: background-color, transform 0.1s ease-in-out;
@@ -528,7 +528,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
528
528
  &:active {
529
529
  transform: scale(0.96);
530
530
  }
531
- `,ul=ar("<li></li>"),dl=e=>Bn(Sa,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),fl={m:"16px",s:"8px",none:"0"},hl=zr.div`
531
+ `,js=Ln("<li></li>"),$s=e=>pn(Zi,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),Ds={m:"16px",s:"8px",none:"0"},Us=hr.div`
532
532
  width: 256px;
533
533
  padding: 12px 16px;
534
534
  display: flex;
@@ -536,108 +536,108 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
536
536
 
537
537
  background-color: ${e=>e.theme.colors.background.primary};
538
538
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
539
- border-radius: ${e=>fl[e.theme.borderRadius]};
540
- `,pl=zr.div`
539
+ border-radius: ${e=>Ds[e.theme.borderRadius]};
540
+ `,Ws=hr.div`
541
541
  width: 192px;
542
542
 
543
543
  > h3 {
544
544
  font-size: 15px;
545
545
  }
546
- `,gl=zr(Sa)`
546
+ `,zs=hr(Zi)`
547
547
  margin-top: 4px;
548
548
  color: ${e=>e.theme.colors.text.secondary};
549
- `,ml=e=>{const t=ki(e);return Bn(hl,Kn({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[Bn(pl,{get children(){return[Bn(Ba,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),Bn(Zn,{get when(){return e.text},get children(){return Bn(gl,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),pn((()=>e.icon))]}}))},vl=zr(os)`
549
+ `,Bs=e=>{const t=Qo(e);return pn(Us,yn({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[pn(Ws,{get children(){return[pn(pa,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),pn(xn,{get when(){return e.text},get children(){return pn(zs,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Ut((()=>e.icon))]}}))},Fs=hr(Oa)`
550
550
  align-self: center;
551
- `,yl=e=>{const t=Cn(el),[n]=Ca();return Bn(ml,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return Bn(vl,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},bl=zr(es)`
551
+ `,Hs=e=>{const t=qt(As),[n]=Gi();return pn(Bs,{get header(){return{translationKey:"notifications.confirm.header",translationValues:{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}}},get class(){return e.class},get icon(){return pn(Fs,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Vs=hr(Aa)`
552
552
  margin-top: 2px;
553
- `,wl=e=>Bn(ml,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return Bn(bl,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),xl=zr(Qa)`
553
+ `,Ks=e=>pn(Bs,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return pn(Vs,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),qs=hr(Ca)`
554
554
  margin-top: 2px;
555
- `,Cl=e=>Bn(ml,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return Bn(xl,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),kl=Ir`
555
+ `,Gs=e=>pn(Bs,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return pn(qs,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),Qs=sr`
556
556
  transform: translateY(-8px);
557
557
  margin-bottom: 12px;
558
- `,Sl={timeout:4500},[El,Al]=un(null);function _l(e){const{timeout:t}=Ft(Ft({},Sl),e),[n,r]=un([]),[o,i]=un([]);return hn(function(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let a;if(r){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(i)return void(i=!1);const s=vn((()=>t(a,o,n)));return o=a,s}}(Eo,(e=>{var n;if(!e||!e.showNotification)return;if(El()===e)return;if("confirm-transaction"===(null==(n=El())?void 0:n.name)&&"confirm-transaction"===e.name)return;Al(e),r((e=>e.filter((e=>"confirm-transaction"!==e.action))));const o={action:e.name};r((e=>[...e,o]));const a=setTimeout((()=>{r((e=>e.filter((e=>e!==o)))),i((e=>e.filter((e=>e!==a))))}),t);i((e=>[...e,a]))}))),bn((()=>{o().forEach((e=>clearTimeout(e)))})),n}const Tl=ar('<div data-tc-list-notifications="true"></div>'),Rl=zr(Si)`
558
+ `,Zs={timeout:4500},[Ys,Xs]=It(null);function Js(e){const{timeout:t}=gt(gt({},Zs),e),[n,r]=It([]),[o,i]=It([]);return Dt(function(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let a;if(r){a=Array(e.length);for(let t=0;t<e.length;t++)a[t]=e[t]()}else a=e();if(i)return void(i=!1);const s=Bt((()=>t(a,o,n)));return o=a,s}}(Zr,(e=>{var n;if(!e||!e.showNotification)return;if(Ys()===e)return;if("confirm-transaction"===(null==(n=Ys())?void 0:n.name)&&"confirm-transaction"===e.name)return;Xs(e),r((e=>e.filter((e=>"confirm-transaction"!==e.action))));const o={action:e.name};r((e=>[...e,o]));const a=setTimeout((()=>{r((e=>e.filter((e=>e!==o)))),i((e=>e.filter((e=>e!==a))))}),t);i((e=>[...e,a]))}))),Ht((()=>{o().forEach((e=>clearTimeout(e)))})),n}const el=Ln('<div data-tc-list-notifications="true"></div>'),tl=hr(Zo)`
559
559
  background-color: ${e=>e.theme.colors.connectButton.background};
560
560
  color: ${e=>e.theme.colors.connectButton.foreground};
561
- box-shadow: ${e=>`0 4px 24px ${qr(e.theme.colors.constant.black,.16)}`};
561
+ box-shadow: ${e=>`0 4px 24px ${br(e.theme.colors.constant.black,.16)}`};
562
562
  padding: 8px 16px 8px 12px;
563
563
 
564
564
  display: flex;
565
565
  align-items: center;
566
566
  gap: 4px;
567
567
  height: 40px;
568
- `,Ol=zr(Rl)`
568
+ `,nl=hr(tl)`
569
569
  padding: 12px 16px;
570
570
  min-width: 148px;
571
571
  justify-content: center;
572
572
  background-color: ${e=>e.theme.colors.background.primary};
573
- `,Pl=zr(Si)`
573
+ `,rl=hr(Zo)`
574
574
  min-width: 148px;
575
575
  height: 40px;
576
576
 
577
577
  background-color: ${e=>e.theme.colors.background.primary};
578
578
  color: ${e=>e.theme.colors.connectButton.foreground};
579
- box-shadow: ${e=>`0 4px 24px ${qr(e.theme.colors.constant.black,.16)}`};
579
+ box-shadow: ${e=>`0 4px 24px ${br(e.theme.colors.constant.black,.16)}`};
580
580
 
581
581
  display: flex;
582
582
  align-items: center;
583
583
  justify-content: center;
584
- `,Ll=zr(os)`
584
+ `,ol=hr(Oa)`
585
585
  height: 18px;
586
586
  width: 18px;
587
- `,Ml=zr.div`
587
+ `,il=hr.div`
588
588
  width: fit-content;
589
589
  display: flex;
590
590
  flex-direction: column;
591
591
  align-items: flex-end;
592
- `,Nl=zr((e=>{const t=Cn(el),[n,r]=un(!1);return Bn(sl,{ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return Bn(ll,{get children(){return[(()=>{const e=ul.cloneNode(!0);return dr(e,Bn(cl,{onClick:()=>Kt(void 0,null,(function*(){const e=kt(t.account.address,t.account.chain===oe.TESTNET);yield ma(e),r(!0),setTimeout((()=>r(!1)),1e3)})),get children(){return[Bn(nl,{}),Bn(Zn,{get when(){return!n()},get children(){return Bn(dl,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),Bn(Zn,{get when(){return n()},get children(){return Bn(dl,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=ul.cloneNode(!0);return dr(n,Bn(cl,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[Bn(ol,{}),Bn(dl,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})}))`
592
+ `,al=hr((e=>{const t=qt(As),[n,r]=It(!1);return pn(Ms,{ref(t){const n=e.ref;"function"===typeof n?n(t):e.ref=t},get class(){return e.class},"data-tc-dropdown":"true",get children(){return pn(Ns,{get children(){return[(()=>{const e=js.cloneNode(!0);return $n(e,pn(Is,{onClick:()=>yt(void 0,null,(function*(){const e=Ge(t.account.address,t.account.chain===R.TESTNET);yield Bi(e),r(!0),setTimeout((()=>r(!1)),1e3)})),get children(){return[pn(Ts,{}),pn(xn,{get when(){return!n()},get children(){return pn($s,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),pn(xn,{get when(){return n()},get children(){return pn($s,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const n=js.cloneNode(!0);return $n(n,pn(Is,{onClick:()=>(t.disconnect(),void e.onClose()),get children(){return[pn(Os,{}),pn($s,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),n})()]}})}})}))`
593
593
  box-sizing: border-box;
594
594
  overflow: hidden;
595
595
  margin-top: 12px;
596
- `,Il=zr((e=>{const t=_l();return(()=>{const n=Tl.cloneNode(!0);return dr(n,Bn(Ti,{onBeforeEnter:e=>{Gi(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Gi(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return Bn(Gn,{get each(){return t()},children:e=>Bn(Qn,{get children(){return[Bn(Yn,{get when(){return"transaction-sent"===e.action},get children(){return Bn(Cl,{class:kl})}}),Bn(Yn,{get when(){return"transaction-canceled"===e.action},get children(){return Bn(wl,{class:kl})}}),Bn(Yn,{get when(){return"confirm-transaction"===e.action},get children(){return Bn(yl,{class:kl})}})]}})})}})),fn((()=>lr(n,e.class))),n})()}))`
596
+ `,sl=hr((e=>{const t=Js();return(()=>{const n=el.cloneNode(!0);return $n(n,pn(ei,{onBeforeEnter:e=>{wi(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{wi(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return pn(wn,{get each(){return t()},children:e=>pn(Cn,{get children(){return[pn(kn,{get when(){return"transaction-sent"===e.action},get children(){return pn(Gs,{class:Qs})}}),pn(kn,{get when(){return"transaction-canceled"===e.action},get children(){return pn(Ks,{class:Qs})}}),pn(kn,{get when(){return"confirm-transaction"===e.action},get children(){return pn(Hs,{class:Qs})}})]}})})}})),$t((()=>Nn(n,e.class))),n})()}))`
597
597
  > div:first-child {
598
598
  margin-top: 20px;
599
599
  }
600
- `;function jl(e){return e.split("-")[0]}function $l(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(jl(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(jl(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Dl(e){return Ht(Ft({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Ul(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Wl(e){return Ul(e).getComputedStyle(e)}function zl(e){return Kl(e)?(e.nodeName||"").toLowerCase():""}let Bl;function Fl(){if(Bl)return Bl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Bl=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Bl):navigator.userAgent}function Hl(e){return e instanceof Ul(e).HTMLElement}function Vl(e){return e instanceof Ul(e).Element}function Kl(e){return e instanceof Ul(e).Node}function ql(e){if("undefined"===typeof ShadowRoot)return!1;return e instanceof Ul(e).ShadowRoot||e instanceof ShadowRoot}function Gl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wl(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Zl(e){return["table","td","th"].includes(zl(e))}function Ql(e){const t=/firefox/i.test(Fl()),n=Wl(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function Yl(){return!/^((?!chrome|android).)*safari/i.test(Fl())}function Xl(e){return["html","body","#document"].includes(zl(e))}const Jl=Math.min,ec=Math.max,tc=Math.round,nc={x:1,y:1};function rc(e){const t=!Vl(e)&&e.contextElement?e.contextElement:Vl(e)?e:null;if(!t)return nc;const n=t.getBoundingClientRect(),r=Wl(t);if("border-box"!==r.boxSizing)return Hl(t)?{x:t.offsetWidth>0&&tc(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&tc(n.height)/t.offsetHeight||1}:nc;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function oc(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=nc;t&&(r?Vl(r)&&(c=rc(r)):c=rc(e));const u=Vl(e)?Ul(e):window,d=!Yl()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,h=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,p=l.width/c.x,g=l.height/c.y;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}function ic(e){return((Kl(e)?e.ownerDocument:e.document)||window.document).documentElement}function ac(e){return Vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sc(e){return oc(ic(e)).left+ac(e).scrollLeft}function lc(e,t,n){const r=Hl(t),o=ic(t),i=oc(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==zl(t)||Gl(o))&&(a=ac(t)),Hl(t)){const e=oc(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=sc(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function cc(e){if("html"===zl(e))return e;const t=e.assignedSlot||e.parentNode||(ql(e)?e.host:null)||ic(e);return ql(t)?t.host:t}function uc(e){return Hl(e)&&"fixed"!==Wl(e).position?e.offsetParent:null}function dc(e){const t=Ul(e);let n=uc(e);for(;n&&Zl(n)&&"static"===Wl(n).position;)n=uc(n);return n&&("html"===zl(n)||"body"===zl(n)&&"static"===Wl(n).position&&!Ql(n))?t:n||function(e){let t=cc(e);for(;Hl(t)&&!Xl(t);){if(Ql(t))return t;t=cc(t)}return null}(e)||t}function fc(e){const t=cc(e);return Xl(t)?e.ownerDocument.body:Hl(t)&&Gl(t)?t:fc(t)}function hc(e,t){var n;void 0===t&&(t=[]);const r=fc(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ul(r);return o?t.concat(i,i.visualViewport||[],Gl(r)?r:[]):t.concat(r,hc(r))}function pc(e,t,n){return"viewport"===t?Dl(function(e,t){const n=Ul(e),r=ic(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=Yl();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):Vl(t)?function(e,t){const n=oc(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Hl(e)?rc(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):Dl(function(e){var t;const n=ic(e),r=ac(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ec(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ec(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+sc(e);const l=-r.scrollTop;return"rtl"===Wl(o||n).direction&&(s+=ec(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(ic(e)))}const gc={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=hc(e).filter((e=>Vl(e)&&"body"!==zl(e))),o=null;const i="fixed"===Wl(e).position;let a=i?cc(e):e;for(;Vl(a)&&!Xl(a);){const e=Wl(a),t=Ql(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=cc(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=pc(t,n,o);return e.top=ec(r.top,e.top),e.right=Jl(r.right,e.right),e.bottom=Jl(r.bottom,e.bottom),e.left=ec(r.left,e.left),e}),pc(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Hl(n),i=ic(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==zl(n)||Gl(i))&&(a=ac(n)),Hl(n))){const e=oc(n);s=rc(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:Vl,getDimensions:function(e){if(Hl(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=oc(e);return{width:t.width,height:t.height}},getOffsetParent:dc,getDocumentElement:ic,getScale:rc,getElementRects(e){return Kt(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||dc,i=this.getDimensions;return{reference:lc(t,yield o(n),r),floating:Ft({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Wl(e).direction};function mc(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...Vl(e)?hc(e):e.contextElement?hc(e.contextElement):[],...hc(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),Vl(e)&&!s&&d.observe(e),Vl(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?oc(e):null;return s&&function t(){const r=oc(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const vc=(e,t,n)=>{const r=new Map,o=Ft({platform:gc},n),i=Ht(Ft({},o.platform),{_c:r});return((e,t,n)=>Kt(void 0,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=$l(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:v,data:y,reset:b}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,h=Ht(Ft({},h),{[i]:Ft(Ft({},h[i]),y)}),"production"!=={}.NODE_ENV&&p>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=$l(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})))(e,t,Ht(Ft({},o),{platform:i}))};const yc=ar('<tc-root data-tc-dropdown-container="true"></tc-root>'),bc=()=>{const e=Ur(),t=Cn(Oo),n=Cn(el),[r,o]=un(!1),[i,a]=un(t.account),[s,l]=un(!t.account);let c;const[u,d]=un(),[f,h]=un(),p=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=un({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=un();hn((()=>{let e=s();if(e)throw e.value}));let c=pn((()=>(e(),t(),{})));function u(){let i=e(),s=t();if(i&&s){let e=c();vc(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&a(t)}),(e=>{l(e)}))}}return hn((()=>{let i=e(),a=t();if(null==n||n.middleware,r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&bn(e)}else u()})),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:mc,placement:"bottom-end"});n.connectionRestored.then((()=>l(!1)));const g=t.onStatusChange((e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)})),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return yn((()=>{document.body.addEventListener("click",m)})),bn((()=>{document.body.removeEventListener("click",m),g()})),Bn(kr,{component:Fr,get children(){return[Bn(Zn,{get when(){return s()},get children(){return Bn(Pl,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Bn(Ll,{})}})}}),Bn(Zn,{get when(){return!s()},get children(){return[Bn(Zn,{get when(){return!i()},get children(){return Bn(Rl,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[Bn(Ka,{get fill(){return e.colors.connectButton.foreground}}),Bn(Sa,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),Bn(Zn,{get when(){return i()},get children(){return Bn(Ml,{get children(){return[Bn(Ol,{onClick:()=>o((e=>!e)),ref:h,"data-tc-dropdown-button":"true",scale:"s",get children(){return[Bn(Sa,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=kt(e.address,e.chain===oe.TESTNET);return t.slice(0,4)+"\u2026"+t.slice(-4)}return""})()}}),Bn(Mi,{direction:"bottom"})]}}),Bn(Cr,{get children(){const e=vn((()=>document.importNode(yc,!0)));return ur(d,e),e.style.setProperty("z-index","999"),e._$owner=nn,dr(e,Bn(Ai,{onBeforeEnter:e=>{Gi(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Gi(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return Bn(Zn,{get when(){return r()},get children(){return Bn(Nl,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"===typeof c?c(e):c=e}})}})}}),null),dr(e,Bn(Il,{}),null),fn((t=>{var n,r;const o=p.strategy,i=`${null!=(n=p.y)?n:0}px`,a=`${null!=(r=p.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},wc=zr(Ji)`
600
+ `;function ll(e){return e.split("-")[0]}function cl(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=function(e){return["top","bottom"].includes(ll(e))?"x":"y"}(t),l="y"===s?"height":"width";const c=r[l]/2-o[l]/2,u="x"===s;let d;switch(ll(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function ul(e){return mt(gt({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function dl(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function fl(e){return dl(e).getComputedStyle(e)}function hl(e){return yl(e)?(e.nodeName||"").toLowerCase():""}let pl;function gl(){if(pl)return pl;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(pl=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),pl):navigator.userAgent}function ml(e){return e instanceof dl(e).HTMLElement}function vl(e){return e instanceof dl(e).Element}function yl(e){return e instanceof dl(e).Node}function bl(e){if("undefined"===typeof ShadowRoot)return!1;return e instanceof dl(e).ShadowRoot||e instanceof ShadowRoot}function wl(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fl(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function xl(e){return["table","td","th"].includes(hl(e))}function Cl(e){const t=/firefox/i.test(gl()),n=fl(e),r=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!r&&"none"!==r||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((e=>n.willChange.includes(e)))||["paint","layout","strict","content"].some((e=>{const t=n.contain;return null!=t&&t.includes(e)}))}function kl(){return!/^((?!chrome|android).)*safari/i.test(gl())}function Sl(e){return["html","body","#document"].includes(hl(e))}const El=Math.min,Al=Math.max,_l=Math.round,Tl={x:1,y:1};function Rl(e){const t=!vl(e)&&e.contextElement?e.contextElement:vl(e)?e:null;if(!t)return Tl;const n=t.getBoundingClientRect(),r=fl(t);if("border-box"!==r.boxSizing)return ml(t)?{x:t.offsetWidth>0&&_l(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&_l(n.height)/t.offsetHeight||1}:Tl;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}function Ol(e,t,n,r){var o,i,a,s;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Tl;t&&(r?vl(r)&&(c=Rl(r)):c=Rl(e));const u=vl(e)?dl(e):window,d=!kl()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,h=(l.top+(d&&null!=(a=null==(s=u.visualViewport)?void 0:s.offsetTop)?a:0))/c.y,p=l.width/c.x,g=l.height/c.y;return{width:p,height:g,top:h,right:f+p,bottom:h+g,left:f,x:f,y:h}}function Pl(e){return((yl(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ll(e){return vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ml(e){return Ol(Pl(e)).left+Ll(e).scrollLeft}function Nl(e,t,n){const r=ml(t),o=Pl(t),i=Ol(e,!0,"fixed"===n,t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==hl(t)||wl(o))&&(a=Ll(t)),ml(t)){const e=Ol(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=Ml(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function Il(e){if("html"===hl(e))return e;const t=e.assignedSlot||e.parentNode||(bl(e)?e.host:null)||Pl(e);return bl(t)?t.host:t}function jl(e){return ml(e)&&"fixed"!==fl(e).position?e.offsetParent:null}function $l(e){const t=dl(e);let n=jl(e);for(;n&&xl(n)&&"static"===fl(n).position;)n=jl(n);return n&&("html"===hl(n)||"body"===hl(n)&&"static"===fl(n).position&&!Cl(n))?t:n||function(e){let t=Il(e);for(;ml(t)&&!Sl(t);){if(Cl(t))return t;t=Il(t)}return null}(e)||t}function Dl(e){const t=Il(e);return Sl(t)?e.ownerDocument.body:ml(t)&&wl(t)?t:Dl(t)}function Ul(e,t){var n;void 0===t&&(t=[]);const r=Dl(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=dl(r);return o?t.concat(i,i.visualViewport||[],wl(r)?r:[]):t.concat(r,Ul(r))}function Wl(e,t,n){return"viewport"===t?ul(function(e,t){const n=dl(e),r=Pl(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=kl();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):vl(t)?function(e,t){const n=Ol(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ml(e)?Rl(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+a,bottom:c+s,x:l,y:c,width:a,height:s}}(t,n):ul(function(e){var t;const n=Pl(e),r=Ll(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Al(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Al(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+Ml(e);const l=-r.scrollTop;return"rtl"===fl(o||n).direction&&(s+=Al(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Pl(e)))}const zl={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=Ul(e).filter((e=>vl(e)&&"body"!==hl(e))),o=null;const i="fixed"===fl(e).position;let a=i?Il(e):e;for(;vl(a)&&!Sl(a);){const e=fl(a),t=Cl(a);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==a)),a=Il(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Wl(t,n,o);return e.top=Al(r.top,e.top),e.right=El(r.right,e.right),e.bottom=El(r.bottom,e.bottom),e.left=Al(r.left,e.left),e}),Wl(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=ml(n),i=Pl(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==hl(n)||wl(i))&&(a=Ll(n)),ml(n))){const e=Ol(n);s=Rl(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},isElement:vl,getDimensions:function(e){if(ml(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Ol(e);return{width:t.width,height:t.height}},getOffsetParent:$l,getDocumentElement:Pl,getScale:Rl,getElementRects(e){return yt(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||$l,i=this.getDimensions;return{reference:Nl(t,yield o(n),r),floating:gt({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===fl(e).direction};function Bl(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=l||i?[...vl(e)?Ul(e):e.contextElement?Ul(e.contextElement):[],...Ul(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(a){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),vl(e)&&!s&&d.observe(e),vl(e)||!e.contextElement||s||d.observe(e.contextElement),d.observe(t)}let f=s?Ol(e):null;return s&&function t(){const r=Ol(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,u=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{l&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,s&&cancelAnimationFrame(u)}}const Fl=(e,t,n)=>{const r=new Map,o=gt({platform:zl},n),i=mt(gt({},o.platform),{_c:r});return((e,t,n)=>yt(void 0,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield null==a.isRTL?void 0:a.isRTL(t);if("production"!=={}.NODE_ENV){if(null==a&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter((e=>{let{name:t}=e;return"autoPlacement"===t||"flip"===t})).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));e&&t||console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let c=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=cl(c,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){const{name:i,fn:g}=s[n],{x:m,y:v,data:y,reset:b}=yield g({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=v?v:d,h=mt(gt({},h),{[i]:gt(gt({},h[i]),y)}),"production"!=={}.NODE_ENV&&p>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?yield a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:u,y:d}=cl(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})))(e,t,mt(gt({},o),{platform:i}))};const Hl=Ln('<tc-root data-tc-dropdown-container="true"></tc-root>'),Vl=()=>{const e=dr(),t=qt(to),n=qt(As),[r,o]=It(!1),[i,a]=It(t.account),[s,l]=It(!t.account);let c;const[u,d]=It(),[f,h]=It(),p=function(e,t,n){let r=()=>{var e;return null!=(e=null==n?void 0:n.placement)?e:"bottom"},o=()=>{var e;return null!=(e=null==n?void 0:n.strategy)?e:"absolute"},[i,a]=It({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=It();Dt((()=>{let e=s();if(e)throw e.value}));let c=Ut((()=>(e(),t(),{})));function u(){let i=e(),s=t();if(i&&s){let e=c();Fl(i,s,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&a(t)}),(e=>{l(e)}))}}return Dt((()=>{let i=e(),a=t();if(null==n||n.middleware,r(),o(),i&&a)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,a,u);e&&Ht(e)}else u()})),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:u}}(f,u,{whileElementsMounted:Bl,placement:"bottom-end"});n.connectionRestored.then((()=>l(!1)));const g=t.onStatusChange((e=>{if(!e)return o(!1),a(null),void l(!1);a(e.account),l(!1)})),m=e=>{if(!i()||!r())return;const t=f().contains(e.target),n=c.contains(e.target);t||n||o(!1)};return Ft((()=>{document.body.addEventListener("click",m)})),Ht((()=>{document.body.removeEventListener("click",m),g()})),pn(Qn,{component:gr,get children(){return[pn(xn,{get when(){return s()},get children(){return pn(rl,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return pn(ol,{})}})}}),pn(xn,{get when(){return!s()},get children(){return[pn(xn,{get when(){return!i()},get children(){return pn(tl,{onClick:()=>n.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[pn(ya,{get fill(){return e.colors.connectButton.foreground}}),pn(Zi,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),pn(xn,{get when(){return i()},get children(){return pn(il,{get children(){return[pn(nl,{onClick:()=>o((e=>!e)),ref:h,"data-tc-dropdown-button":"true",scale:"s",get children(){return[pn(Zi,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const e=i();if(e){const t=Ge(e.address,e.chain===R.TESTNET);return t.slice(0,4)+"\u2026"+t.slice(-4)}return""})()}}),pn(ii,{direction:"bottom"})]}}),pn(Gn,{get children(){const e=Bt((()=>document.importNode(Hl,!0)));return jn(d,e),e.style.setProperty("z-index","999"),e._$owner=Tt,$n(e,pn(Xo,{onBeforeEnter:e=>{wi(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{wi(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return pn(xn,{get when(){return r()},get children(){return pn(al,{get hidden(){return!r()},onClose:()=>o(!1),ref(e){"function"===typeof c?c(e):c=e}})}})}}),null),$n(e,pn(sl,{}),null),$t((t=>{var n,r;const o=p.strategy,i=`${null!=(n=p.y)?n:0}px`,a=`${null!=(r=p.x)?r:0}px`;return o!==t._v$&&e.style.setProperty("position",t._v$=o),i!==t._v$2&&e.style.setProperty("top",t._v$2=i),a!==t._v$3&&e.style.setProperty("left",t._v$3=a),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},Kl=hr(Ei)`
601
601
  padding-left: 24px;
602
602
  padding-right: 24px;
603
603
  padding-top: 18px;
604
604
  padding-bottom: 0;
605
605
 
606
- ${vi("mobile")} {
606
+ ${Fo("mobile")} {
607
607
  padding-left: 0;
608
608
  padding-right: 0;
609
609
 
610
610
  min-height: 364px;
611
611
  }
612
- `,xc=zr(Da)`
612
+ `,ql=hr(ua)`
613
613
  margin-top: 12px;
614
614
 
615
- ${vi("mobile")} {
615
+ ${Fo("mobile")} {
616
616
  padding: 0 10px;
617
617
  }
618
- `,Cc=zr.div`
618
+ `,Gl=hr.div`
619
619
  margin: 30px 0;
620
620
  width: 100%;
621
621
  display: flex;
622
622
  justify-content: center;
623
623
 
624
- ${vi("mobile")} {
624
+ ${Fo("mobile")} {
625
625
  height: 160px;
626
626
  align-items: center;
627
627
  }
628
- `;zr(Sa)`
628
+ `;hr(Zi)`
629
629
  min-width: 84px;
630
630
  text-align: center;
631
631
  font-weight: 590;
632
- `,zr((e=>{const t="tabBar"+Math.floor(1e4*Math.random());return Bn(na,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[Bn(ra,{get right(){return 1===e.selectedTabIndex}}),Bn(ia,{get isActive(){return 0===e.selectedTabIndex},get children(){return[Bn(oa,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),pn((()=>e.tab1))]}}),Bn(ia,{get isActive(){return 1===e.selectedTabIndex},get children(){return[Bn(oa,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),pn((()=>e.tab2))]}})]}})}))`
632
+ `,hr((e=>{const t="tabBar"+Math.floor(1e4*Math.random());return pn(Ti,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[pn(Ri,{get right(){return 1===e.selectedTabIndex}}),pn(Pi,{get isActive(){return 0===e.selectedTabIndex},get children(){return[pn(Oi,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),Ut((()=>e.tab1))]}}),pn(Pi,{get isActive(){return 1===e.selectedTabIndex},get children(){return[pn(Oi,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),Ut((()=>e.tab2))]}})]}})}))`
633
633
  margin: 0 auto 22px;
634
- `;const[kc,Sc]=Vo({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function Ec(e){return"jsBridgeKey"in e?Ht(Ft({},e),{injected:Ct.isWalletInjected(e.jsBridgeKey),embedded:Ct.isInsideWalletBrowser(e.jsBridgeKey)}):e}function Ac(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(Ec),e=o.map((e=>{const t=i.find((t=>t[r]===e[r]));return i=i.filter((t=>t[r]!==e[r])),void 0===t?e:t})).concat(i)),e):e}function _c(e){return e.platforms.some((e=>["macos","linux","windows"].includes(e)))}function Tc(e){return e.platforms.some((e=>["ios","android"].includes(e)))}function Rc(e){return e.platforms.some((e=>["chrome","firefox","safari"].includes(e)))}function Oc(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const Pc=zr.div`
634
+ `;const[Ql,Zl]=vo({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function Yl(e){return"jsBridgeKey"in e?mt(gt({},e),{injected:qe.isWalletInjected(e.jsBridgeKey),embedded:qe.isInsideWalletBrowser(e.jsBridgeKey)}):e}function Xl(e,t){var n,r,o,i;return t?((null==(n=t.includeWallets)?void 0:n.length)&&(r="name",o=e,i=t.includeWallets.map(Yl),e=o.map((e=>{const t=i.find((t=>t[r]===e[r]));return i=i.filter((t=>t[r]!==e[r])),void 0===t?e:t})).concat(i)),e):e}function Jl(e){return e.platforms.some((e=>["macos","linux","windows"].includes(e)))}function ec(e){return e.platforms.some((e=>["ios","android"].includes(e)))}function tc(e){return e.platforms.some((e=>["chrome","firefox","safari"].includes(e)))}function nc(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const rc=hr.div`
635
635
  display: flex;
636
636
  flex-direction: column;
637
637
  align-items: center;
638
- `,Lc=zr(Da)`
638
+ `,oc=hr(ua)`
639
639
  margin-bottom: 18px;
640
- `;zr.div`
640
+ `;hr.div`
641
641
  height: 1px;
642
642
  margin: 0 -24px;
643
643
  width: calc(100% + 48px);
@@ -645,10 +645,10 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
645
645
  background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
646
646
  transition: background 0.15s ease-in-out;
647
647
 
648
- ${vi("mobile")} {
648
+ ${Fo("mobile")} {
649
649
  width: 100%;
650
650
  }
651
- `;const Mc=zr.ul`
651
+ `;const ic=hr.ul`
652
652
  display: grid;
653
653
  grid-template-columns: repeat(auto-fit, 92px);
654
654
  grid-template-rows: auto;
@@ -666,23 +666,23 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
666
666
  height: fit-content;
667
667
  }
668
668
 
669
- ${vi("mobile")} {
669
+ ${Fo("mobile")} {
670
670
  grid-template-columns: repeat(auto-fit, 82px);
671
671
  }
672
- `;zr(Si)`
672
+ `;hr(Zo)`
673
673
  display: block;
674
674
  margin: 0 auto 1px;
675
675
  font-size: 15px;
676
- `;const Nc=zr($i)`
676
+ `;const ac=hr(ci)`
677
677
  position: absolute;
678
678
  top: 16px;
679
679
  left: 16px;
680
- `,Ic=zr(Fs)`
680
+ `,sc=hr(gs)`
681
681
  height: 100%;
682
- `,jc=ar("<li></li>"),$c=e=>Bn(Pc,{"data-tc-wallets-modal-list":"true",get children(){return[Bn(Nc,{icon:"arrow",onClick:()=>e.onBack()}),Bn(Lc,{translationKey:"walletModal.wallets",children:"Wallets"}),Bn(Ys,{get maxHeight(){return Gs()?void 0:510},get children(){return Bn(Mc,{get children(){return Bn(Gn,{get each(){return Gs()?e.walletsList.filter(Tc):e.walletsList},children:t=>(()=>{const n=jc.cloneNode(!0);return dr(n,Bn(Ic,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}})}})]}}),Dc={m:"16px",s:"12px",none:"0"},Uc={m:"6px",s:"6px",none:"0"},Wc=zr.div`
682
+ `,lc=Ln("<li></li>"),cc=e=>pn(rc,{"data-tc-wallets-modal-list":"true",get children(){return[pn(ac,{icon:"arrow",onClick:()=>e.onBack()}),pn(oc,{translationKey:"walletModal.wallets",children:"Wallets"}),pn(ks,{get maxHeight(){return ws()?void 0:510},get children(){return pn(ic,{get children(){return pn(wn,{get each(){return ws()?e.walletsList.filter(ec):e.walletsList},children:t=>(()=>{const n=lc.cloneNode(!0);return $n(n,pn(sc,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}})}})]}}),uc={m:"16px",s:"12px",none:"0"},dc={m:"6px",s:"6px",none:"0"},fc=hr.div`
683
683
  display: flex;
684
684
  flex-direction: column;
685
- `,zc=zr.div`
685
+ `,hc=hr.div`
686
686
  flex: 1;
687
687
  margin-top: ${e=>e.qr?"0":"18px"};
688
688
  display: flex;
@@ -690,76 +690,76 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
690
690
  align-items: center;
691
691
  justify-content: center;
692
692
  min-height: 232px;
693
- `,Bc=zr(ya)`
693
+ `,pc=hr(Hi)`
694
694
  margin-bottom: 24px;
695
- `,Fc=zr(Da)`
695
+ `,gc=hr(ua)`
696
696
  max-width: 288px;
697
697
  margin: 0 auto 2px;
698
- `,Hc=zr(Wa)`
698
+ `,mc=hr(fa)`
699
699
  max-width: 288px;
700
700
  text-align: center;
701
701
  margin: 0 auto 20px;
702
- `,Vc=zr($i)`
702
+ `,vc=hr(ci)`
703
703
  position: absolute;
704
704
  top: 16px;
705
705
  left: 16px;
706
- `,Kc=zr.div`
706
+ `,yc=hr.div`
707
707
  display: flex;
708
708
  justify-content: center;
709
709
  gap: 8px;
710
710
  padding-bottom: 16px;
711
- `,qc=zr(Kc)`
711
+ `,bc=hr(yc)`
712
712
  padding-bottom: 0;
713
- `,Gc=zr(Si)`
713
+ `,wc=hr(Zo)`
714
714
  margin-bottom: 24px;
715
- `,Zc=zr(os)`
715
+ `,xc=hr(Oa)`
716
716
  margin-bottom: 18px;
717
717
  margin-top: 2px;
718
- `,Qc=zr(es)`
718
+ `,Cc=hr(Aa)`
719
719
  margin-bottom: 16px;
720
- `,Yc=zr(Wa)`
720
+ `,kc=hr(fa)`
721
721
  color: ${e=>e.theme.colors.text.secondary};
722
722
  text-align: center;
723
723
  margin-bottom: 20px;
724
- `,Xc=zr(Si)`
724
+ `,Sc=hr(Zo)`
725
725
  margin-top: -8px;
726
726
  margin-bottom: 24px;
727
727
  width: 100%;
728
728
  padding: 12px 12px 12px 20px;
729
- border-radius: ${e=>Dc[e.theme.borderRadius]};
729
+ border-radius: ${e=>uc[e.theme.borderRadius]};
730
730
  font-size: 16px;
731
731
  line-height: 20px;
732
- `,Jc=zr(ni)`
732
+ `,Ec=hr(To)`
733
733
  width: 32px;
734
734
  height: 32px;
735
- border-radius: ${e=>Uc[e.theme.borderRadius]};
736
- `,eu=e=>{const[t]=Ca();return pn((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function tu(e,t){let n;n="string"===typeof t?t:si()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!Me(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Ne(o)}function nu(e,t){t=Ft({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),li()){t.returnStrategy="back";eo(tu(r.toString(),t.returnStrategy))}else if(si())if(ai("ios","android","macos","tdesktop","web")){t.returnStrategy="back";ui(tu(r.toString(),t.returnStrategy))}else ai("weba")?ui(tu(r.toString(),t)):eo(tu(r.toString(),t));else if(so("ios")){"back"===t.returnStrategy&&(lo("safari")?t.returnStrategy="back":lo("chrome")?t.returnStrategy="googlechrome://":lo("firefox")?t.returnStrategy="firefox://":lo("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=lo("chrome"),n=lo("firefox");if((e||n)&&!t.forceRedirect){const e=tu(r.toString(),t.returnStrategy);to(ou(e),(()=>eo(e)))}else{eo(tu(r.toString(),t.returnStrategy))}}else if(so("android")){t.returnStrategy="back";const e=lo("chrome"),n=lo("firefox");if((e||n)&&!t.forceRedirect){const e=tu(r.toString(),t.returnStrategy);to(ou(e),(()=>eo(e)))}else{eo(tu(r.toString(),t.returnStrategy))}}else if(so("ipad")){"back"===t.returnStrategy&&(lo("safari")?t.returnStrategy="back":lo("chrome")?t.returnStrategy="googlechrome://":lo("firefox")?t.returnStrategy="firefox://":lo("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=lo("chrome"),n=lo("firefox"),o=(e||n)&&!t.forceRedirect,i=tu(r.toString(),t.returnStrategy);if(o){to(ou(i),(()=>eo(i)))}else eo(i)}else if(so("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=tu(r.toString(),t.returnStrategy);if(t.forceRedirect)eo(e);else{to(ou(e),(()=>eo(e)))}}else eo(tu(r.toString(),t))}function ru(e,t,n,r){if(n=Ft({},n),li())if(so("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Jr(tu(e,n.returnStrategy),"_self");else{r("universal-link");eo(tu(e,n.returnStrategy))}else if(si())if(ai("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=tu(e,n.returnStrategy);ui(t,(()=>{r("universal-link"),eo(t)}))}else if(ai("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=tu(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),to(co(o,t),(()=>{r("universal-link"),eo(o)}))):(r("universal-link"),eo(o))}else if(ai("weba")){"back"===n.returnStrategy&&(lo("safari")?n.returnStrategy=location.href:lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=tu(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),to(co(o,t),(()=>{r("universal-link"),eo(o)}))):(r("universal-link"),eo(o))}else if(ai("web")){"back"===n.returnStrategy&&(lo("safari")?n.returnStrategy=location.href:lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=tu(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),to(co(o,t),(()=>{r("universal-link"),eo(o)}))):(r("universal-link"),eo(o))}else{r("universal-link");eo(tu(e,n.returnStrategy))}else if(so("ios"))"back"===n.returnStrategy&&(lo("safari")?n.returnStrategy="none":lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),lo("chrome")?(r("universal-link"),Jr(tu(e,n.returnStrategy),"_self")):(r("universal-link"),eo(tu(e,n.returnStrategy)));else if(so("android"))"back"===n.returnStrategy&&(lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),eo(tu(e,n.returnStrategy));else if(so("ipad"))"back"===n.returnStrategy&&(lo("safari")?n.returnStrategy="none":lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),lo("chrome")?(r("universal-link"),Jr(tu(e,n.returnStrategy),"_self")):(r("universal-link"),eo(tu(e,n.returnStrategy)));else if(so("macos","windows","linux")){"back"===n.returnStrategy&&(lo("safari")?n.returnStrategy="none":lo("chrome")?n.returnStrategy="googlechrome://":lo("firefox")?n.returnStrategy="firefox://":lo("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=tu(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),to(co(o,t),(()=>{r("universal-link"),eo(o)}))):(r("universal-link"),eo(o))}else r("universal-link"),eo(tu(e,n.returnStrategy))}function ou(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const iu=e=>{const[t,n]=un("mobile"),[r,o]=un(!1),[i,a]=un(),[s,l]=un(!0),c=Cn(Oo);bn(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==Ws&&o(!0)})));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(Yv){}};hn((()=>{"extension"!==vn(t)&&(Tc(e.wallet)||_c(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),So(Ht(Ft({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(!1),"extension"===t()&&u(),n("desktop"),Me(i()))h();else{const t=!s();l(!1),ru(i(),e.wallet.deepLink,{returnStrategy:kc.returnStrategy,forceRedirect:t},(t=>{So(Ht(Ft({},e.wallet),{openMethod:t}))}))}},h=()=>{const t=!s();l(!1),So(Ht(Ft({},e.wallet),{openMethod:"universal-link"})),nu(i(),{returnStrategy:kc.returnStrategy,twaReturnUrl:kc.twaReturnUrl,forceRedirect:t})},p=()=>{o(!1),n("extension"),Je(e.wallet)&&(So(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return Tc(e.wallet)?d():Rc(e.wallet)?p():f(),Bn(Wc,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[Bn(Zn,{get when(){return!e.backDisabled},get children(){return Bn(Vc,{icon:"arrow",onClick:()=>e.onBackClick()})}}),Bn(Fc,{get children(){return e.wallet.name}}),Bn(Zn,{get when(){return"mobile"===t()},get children(){return Bn(Hc,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",pn((()=>e.wallet.name)),"\u2019s camera"]}})}}),Bn(zc,{get qr(){return"mobile"===t()},get children(){return Bn(Qn,{get children(){return[Bn(Yn,{get when(){return"mobile"===t()},get children(){return Bn(Bc,{disableCopy:!1,get sourceUrl(){return tu(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),Bn(Yn,{get when(){return r()},get children(){return[Bn(Qc,{size:"s"}),Bn(Yc,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),Bn(Kc,{get children(){return Bn(Si,{get leftIcon(){return Bn(ms,{})},get onClick(){return"extension"===t()?p:f},get children(){return Bn(eu,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Bn(Yn,{get when(){return"extension"===t()},get children(){return[Bn(Zn,{get when(){return Je(e.wallet)},get children(){return[Bn(Zc,{size:"s"}),Bn(Yc,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pn((()=>e.wallet.name))," browser extension\u2026"]}}),Bn(Kc,{get children(){return Bn(Si,{get leftIcon(){return Bn(ms,{})},onClick:p,get children(){return Bn(eu,{translationKey:"common.retry",children:"Retry"})}})}})]}}),Bn(Zn,{get when(){return!Je(e.wallet)},get children(){return[Bn(Yc,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",pn((()=>e.wallet.name))," browser extension"]}}),Bn(Kc,{get children(){return Bn(Js,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Bn(Si,{get rightIcon(){return Bn(ys,{})},onClick:p,get children(){return Bn(eu,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",pn((()=>e.wallet.name))]}})}})}})}})]}})]}}),Bn(Yn,{get when(){return"desktop"===t()},get children(){return[Bn(os,{size:"m"}),Bn(Yc,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pn((()=>e.wallet.name))," on desktop\u2026"]}}),Bn(Kc,{get children(){return[Bn(Si,{get leftIcon(){return Bn(ms,{})},onClick:f,get children(){return Bn(eu,{translationKey:"common.retry",children:"Retry"})}}),Bn(Js,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Bn(Si,{get rightIcon(){return Bn(ys,{})},get children(){return Bn(eu,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",pn((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),Bn(Zn,{get when(){return e.wallet.appName===Ws},get children(){return Bn(Xc,{get rightIcon(){return Bn(Jc,{get src(){return Bs}})},scale:"s",onClick:h,get children(){return Bn(eu,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),Bn(Zn,{get when(){return e.wallet.appName!==Ws},get children(){return Bn(qc,{get children(){return[Bn(Zn,{get when(){return pn((()=>"mobile"!==t()))()&&Tc(e.wallet)},get children(){return Bn(Gc,{appearance:"secondary",get leftIcon(){return Bn(fs,{})},onClick:d,get children(){return Bn(eu,{translationKey:"common.mobile",children:"Mobile"})}})}}),Bn(Zn,{get when(){return pn((()=>"extension"!==t()))()&&Rc(e.wallet)},get children(){return Bn(Gc,{appearance:"secondary",get leftIcon(){return Bn(us,{})},onClick:p,get children(){return Bn(eu,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),Bn(Zn,{get when(){return pn((()=>"desktop"!==t()))()&&_c(e.wallet)},get children(){return Bn(Gc,{appearance:"secondary",get leftIcon(){return Bn(ps,{})},onClick:f,get children(){return Bn(eu,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},au=zr.div``,su=zr($i)`
735
+ border-radius: ${e=>dc[e.theme.borderRadius]};
736
+ `,Ac=e=>{const[t]=Gi();return Ut((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))};function _c(e,t){let n;n="string"===typeof t?t:Mo()?t.twaReturnUrl||t.returnStrategy:"none";const r=function(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}(e,"ret",n);if(!oe(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+ie(o)}function Tc(e,t){t=gt({},t);const n=function(e){const t=new URL(e);t.searchParams.has("attach")&&(t.searchParams.delete("attach"),t.pathname+="/start");return t.toString()}(e),r=new URL(n);if(r.searchParams.has("startapp")||r.searchParams.append("startapp","tonconnect"),No()){t.returnStrategy="back";Ar(_c(r.toString(),t.returnStrategy))}else if(Mo())if(Lo("ios","android","macos","tdesktop","web")){t.returnStrategy="back";jo(_c(r.toString(),t.returnStrategy))}else Lo("weba")?jo(_c(r.toString(),t)):Ar(_c(r.toString(),t));else if(Mr("ios")){"back"===t.returnStrategy&&(Nr("safari")?t.returnStrategy="back":Nr("chrome")?t.returnStrategy="googlechrome://":Nr("firefox")?t.returnStrategy="firefox://":Nr("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Nr("chrome"),n=Nr("firefox");if((e||n)&&!t.forceRedirect){const e=_c(r.toString(),t.returnStrategy);_r(Oc(e),(()=>Ar(e)))}else{Ar(_c(r.toString(),t.returnStrategy))}}else if(Mr("android")){t.returnStrategy="back";const e=Nr("chrome"),n=Nr("firefox");if((e||n)&&!t.forceRedirect){const e=_c(r.toString(),t.returnStrategy);_r(Oc(e),(()=>Ar(e)))}else{Ar(_c(r.toString(),t.returnStrategy))}}else if(Mr("ipad")){"back"===t.returnStrategy&&(Nr("safari")?t.returnStrategy="back":Nr("chrome")?t.returnStrategy="googlechrome://":Nr("firefox")?t.returnStrategy="firefox://":Nr("opera")?t.returnStrategy="opera-http://":t.returnStrategy=location.href);const e=Nr("chrome"),n=Nr("firefox"),o=(e||n)&&!t.forceRedirect,i=_c(r.toString(),t.returnStrategy);if(o){_r(Oc(i),(()=>Ar(i)))}else Ar(i)}else if(Mr("macos","windows","linux")){t.returnStrategy="back",t.twaReturnUrl=void 0;const e=_c(r.toString(),t.returnStrategy);if(t.forceRedirect)Ar(e);else{_r(Oc(e),(()=>Ar(e)))}}else Ar(_c(r.toString(),t))}function Rc(e,t,n,r){if(n=gt({},n),No())if(Mr("ios","android"))"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link"),Er(_c(e,n.returnStrategy),"_self");else{r("universal-link");Ar(_c(e,n.returnStrategy))}else if(Mo())if(Lo("ios","android")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve"),r("universal-link");const t=_c(e,n.returnStrategy);jo(t,(()=>{r("universal-link"),Ar(t)}))}else if(Lo("macos","tdesktop")){"back"===n.returnStrategy&&(n.returnStrategy="tg://resolve");const o=_c(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),_r(Ir(o,t),(()=>{r("universal-link"),Ar(o)}))):(r("universal-link"),Ar(o))}else if(Lo("weba")){"back"===n.returnStrategy&&(Nr("safari")?n.returnStrategy=location.href:Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=_c(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),_r(Ir(o,t),(()=>{r("universal-link"),Ar(o)}))):(r("universal-link"),Ar(o))}else if(Lo("web")){"back"===n.returnStrategy&&(Nr("safari")?n.returnStrategy=location.href:Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href);const o=_c(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),_r(Ir(o,t),(()=>{r("universal-link"),Ar(o)}))):(r("universal-link"),Ar(o))}else{r("universal-link");Ar(_c(e,n.returnStrategy))}else if(Mr("ios"))"back"===n.returnStrategy&&(Nr("safari")?n.returnStrategy="none":Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Nr("chrome")?(r("universal-link"),Er(_c(e,n.returnStrategy),"_self")):(r("universal-link"),Ar(_c(e,n.returnStrategy)));else if(Mr("android"))"back"===n.returnStrategy&&(Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),r("universal-link"),Ar(_c(e,n.returnStrategy));else if(Mr("ipad"))"back"===n.returnStrategy&&(Nr("safari")?n.returnStrategy="none":Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy=location.href),Nr("chrome")?(r("universal-link"),Er(_c(e,n.returnStrategy),"_self")):(r("universal-link"),Ar(_c(e,n.returnStrategy)));else if(Mr("macos","windows","linux")){"back"===n.returnStrategy&&(Nr("safari")?n.returnStrategy="none":Nr("chrome")?n.returnStrategy="googlechrome://":Nr("firefox")?n.returnStrategy="firefox://":Nr("opera")?n.returnStrategy="opera-http://":n.returnStrategy="none");const o=_c(e,n.returnStrategy);!!t&&!n.forceRedirect?(r("custom-deeplink"),_r(Ir(o,t),(()=>{r("universal-link"),Ar(o)}))):(r("universal-link"),Ar(o))}else r("universal-link"),Ar(_c(e,n.returnStrategy))}function Oc(e){const t=new URL(e),[,n,r]=t.pathname.split("/");return`tg://resolve?domain=${n}&appname=${r}&startapp=${t.searchParams.get("startapp")}`}const Pc=e=>{const[t,n]=It("mobile"),[r,o]=It(!1),[i,a]=It(),[s,l]=It(!0),c=qt(to);Ht(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==fs&&o(!0)})));const u=()=>{try{const t=c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest);a(t)}catch(sy){}};Dt((()=>{"extension"!==Bt(t)&&(ec(e.wallet)||Jl(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),Qr(mt(gt({},e.wallet),{openMethod:"qrcode"}))},f=()=>{if(o(!1),"extension"===t()&&u(),n("desktop"),oe(i()))h();else{const t=!s();l(!1),Rc(i(),e.wallet.deepLink,{returnStrategy:Ql.returnStrategy,forceRedirect:t},(t=>{Qr(mt(gt({},e.wallet),{openMethod:t}))}))}},h=()=>{const t=!s();l(!1),Qr(mt(gt({},e.wallet),{openMethod:"universal-link"})),Tc(i(),{returnStrategy:Ql.returnStrategy,twaReturnUrl:Ql.twaReturnUrl,forceRedirect:t})},p=()=>{o(!1),n("extension"),Se(e.wallet)&&(Qr(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return ec(e.wallet)?d():tc(e.wallet)?p():f(),pn(fc,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[pn(xn,{get when(){return!e.backDisabled},get children(){return pn(vc,{icon:"arrow",onClick:()=>e.onBackClick()})}}),pn(gc,{get children(){return e.wallet.name}}),pn(xn,{get when(){return"mobile"===t()},get children(){return pn(mc,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",Ut((()=>e.wallet.name)),"\u2019s camera"]}})}}),pn(hc,{get qr(){return"mobile"===t()},get children(){return pn(Cn,{get children(){return[pn(kn,{get when(){return"mobile"===t()},get children(){return pn(pc,{disableCopy:!1,get sourceUrl(){return _c(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),pn(kn,{get when(){return r()},get children(){return[pn(Cc,{size:"s"}),pn(kc,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),pn(yc,{get children(){return pn(Zo,{get leftIcon(){return pn(Ba,{})},get onClick(){return"extension"===t()?p:f},get children(){return pn(Ac,{translationKey:"common.retry",children:"Retry"})}})}})]}}),pn(kn,{get when(){return"extension"===t()},get children(){return[pn(xn,{get when(){return Se(e.wallet)},get children(){return[pn(xc,{size:"s"}),pn(kc,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Ut((()=>e.wallet.name))," browser extension\u2026"]}}),pn(yc,{get children(){return pn(Zo,{get leftIcon(){return pn(Ba,{})},onClick:p,get children(){return pn(Ac,{translationKey:"common.retry",children:"Retry"})}})}})]}}),pn(xn,{get when(){return!Se(e.wallet)},get children(){return[pn(kc,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",Ut((()=>e.wallet.name))," browser extension"]}}),pn(yc,{get children(){return pn(Es,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return pn(Zo,{get rightIcon(){return pn(Ha,{})},onClick:p,get children(){return pn(Ac,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Ut((()=>e.wallet.name))]}})}})}})}})]}})]}}),pn(kn,{get when(){return"desktop"===t()},get children(){return[pn(Oa,{size:"m"}),pn(kc,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Ut((()=>e.wallet.name))," on desktop\u2026"]}}),pn(yc,{get children(){return[pn(Zo,{get leftIcon(){return pn(Ba,{})},onClick:f,get children(){return pn(Ac,{translationKey:"common.retry",children:"Retry"})}}),pn(Es,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return pn(Zo,{get rightIcon(){return pn(Ha,{})},get children(){return pn(Ac,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",Ut((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),pn(xn,{get when(){return e.wallet.appName===fs},get children(){return pn(Sc,{get rightIcon(){return pn(Ec,{get src(){return ps}})},scale:"s",onClick:h,get children(){return pn(Ac,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),pn(xn,{get when(){return e.wallet.appName!==fs},get children(){return pn(bc,{get children(){return[pn(xn,{get when(){return Ut((()=>"mobile"!==t()))()&&ec(e.wallet)},get children(){return pn(wc,{appearance:"secondary",get leftIcon(){return pn(Da,{})},onClick:d,get children(){return pn(Ac,{translationKey:"common.mobile",children:"Mobile"})}})}}),pn(xn,{get when(){return Ut((()=>"extension"!==t()))()&&tc(e.wallet)},get children(){return pn(wc,{appearance:"secondary",get leftIcon(){return pn(ja,{})},onClick:p,get children(){return pn(Ac,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),pn(xn,{get when(){return Ut((()=>"desktop"!==t()))()&&Jl(e.wallet)},get children(){return pn(wc,{appearance:"secondary",get leftIcon(){return pn(Wa,{})},onClick:f,get children(){return pn(Ac,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Lc=hr.div``,Mc=hr(ci)`
737
737
  position: absolute;
738
738
  top: 16px;
739
739
  left: 16px;
740
- `,lu=zr(Da)`
740
+ `,Nc=hr(ua)`
741
741
  margin-bottom: 18px;
742
- `,cu=zr.div`
742
+ `,Ic=hr.div`
743
743
  padding: 16px 0;
744
744
  display: flex;
745
745
  flex-direction: column;
746
746
  align-items: center;
747
- `,uu=Ir`
747
+ `,jc=sr`
748
748
  margin-bottom: 12px;
749
- `,du=zr(Ba)`
749
+ `,$c=hr(pa)`
750
750
  text-align: center;
751
751
  margin-bottom: 4px;
752
- `,fu=zr(Sa)`
752
+ `,Dc=hr(Zi)`
753
753
  text-align: center;
754
754
  max-width: 352px;
755
755
  color: ${e=>e.theme.colors.text.secondary};
756
- `,hu=zr.div`
756
+ `,Uc=hr.div`
757
757
  padding: 16px 24px 24px;
758
758
  display: flex;
759
759
  align-items: center;
760
760
  justify-content: center;
761
761
  gap: 8px;
762
- `,pu="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",gu=e=>Bn(au,{"data-tc-wallets-modal-info":"true",get children(){return[Bn(su,{icon:"arrow",onClick:()=>e.onBackClick()}),Bn(lu,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),Bn(Ys,{get children(){return[Bn(cu,{get children(){return[Bn(Cs,{class:uu}),Bn(du,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),Bn(fu,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),Bn(cu,{get children(){return[Bn(Ss,{class:uu}),Bn(du,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),Bn(fu,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),Bn(cu,{get children(){return[Bn(As,{class:uu}),Bn(du,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),Bn(fu,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),Bn(hu,{get children(){return Bn(Js,{get href(){return pu},blank:!0,get children(){return Bn(Si,{get rightIcon(){return Bn(ws,{})},get children(){return Bn(eu,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),mu=zr.div``,vu=zr.div`
762
+ `,Wc="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",zc=e=>pn(Lc,{"data-tc-wallets-modal-info":"true",get children(){return[pn(Mc,{icon:"arrow",onClick:()=>e.onBackClick()}),pn(Nc,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),pn(ks,{get children(){return[pn(Ic,{get children(){return[pn(Ga,{class:jc}),pn($c,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),pn(Dc,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),pn(Ic,{get children(){return[pn(Za,{class:jc}),pn($c,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),pn(Dc,{translationKey:"walletModal.infoModal.manageIdentity",children:"Manage your digital identity and access decentralized applications with ease. Maintain control over your data and engage securely in the blockchain ecosystem."})]}}),pn(Ic,{get children(){return[pn(Xa,{class:jc}),pn($c,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),pn(Dc,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),pn(Uc,{get children(){return pn(Es,{get href(){return Wc},blank:!0,get children(){return pn(Zo,{get rightIcon(){return pn(Ka,{})},get children(){return pn(Ac,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),Bc=hr.div``,Fc=hr.div`
763
763
  flex: 1;
764
764
  margin-top: 18px;
765
765
  display: flex;
@@ -767,49 +767,49 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
767
767
  align-items: center;
768
768
  justify-content: center;
769
769
  min-height: 232px;
770
- `,yu=zr(Da)`
770
+ `,Hc=hr(ua)`
771
771
  max-width: 262px;
772
772
  margin: 0 auto 8px;
773
- `,bu=zr($i)`
773
+ `,Vc=hr(ci)`
774
774
  position: absolute;
775
775
  top: 16px;
776
776
  left: 16px;
777
- `,wu=zr.div`
777
+ `,Kc=hr.div`
778
778
  padding: 16px;
779
779
  display: flex;
780
780
  align-items: center;
781
781
  gap: 12px;
782
- border-top: 0.5px solid ${e=>qr(e.theme.colors.icon.secondary,.2)};
783
- `,xu=zr(ni)`
782
+ border-top: 0.5px solid ${e=>br(e.theme.colors.icon.secondary,.2)};
783
+ `,qc=hr(To)`
784
784
  width: 36px;
785
785
  height: 36px;
786
786
  border-radius: 10px;
787
- `,Cu=zr(Js)`
787
+ `,Gc=hr(Es)`
788
788
  margin-left: auto;
789
- `,ku=zr(os)`
789
+ `,Qc=hr(Oa)`
790
790
  margin-bottom: 18px;
791
791
  margin-top: 2px;
792
- `,Su=zr(es)`
792
+ `,Zc=hr(Aa)`
793
793
  margin-bottom: 16px;
794
- `,Eu=zr(Wa)`
794
+ `,Yc=hr(fa)`
795
795
  color: ${e=>e.theme.colors.text.secondary};
796
796
  text-align: center;
797
797
  margin-bottom: 20px;
798
- `,Au=zr.div`
798
+ `,Xc=hr.div`
799
799
  display: flex;
800
800
  justify-content: center;
801
801
  gap: 8px;
802
802
  padding-bottom: 16px;
803
- `,_u=zr(Da)`
803
+ `,Jc=hr(ua)`
804
804
  margin-bottom: 2px;
805
805
  padding: 0 64px;
806
- `,Tu=zr(Wa)`
806
+ `,eu=hr(fa)`
807
807
  margin-bottom: 20px;
808
808
  padding: 0 64px;
809
809
  min-height: 44px;
810
- `,Ru=zr.div`
810
+ `,tu=hr.div`
811
811
  padding: 0 24px 24px;
812
- `,Ou=e=>[Bn(_u,{get children(){return e.walletInfo.name}}),Bn(Tu,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",pn((()=>e.walletInfo.name)),"\u2019s camera"]}}),Bn(Ru,{get children(){return Bn(ya,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return tu(e.universalLink,"none")},disableCopy:!0})}})],Pu=e=>{const t=Ur(),[n,r]=un(!0),[o,i]=un(!1),[a,s]=un(!1),l=Cn(Oo),c=l.onStatusChange((()=>{}),(()=>{s(!0)})),u=pn((()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))),d=()=>{if(Me(u()))return So(Ht(Ft({},e.wallet),{openMethod:"universal-link"})),void nu(u(),{returnStrategy:kc.returnStrategy,twaReturnUrl:kc.twaReturnUrl,forceRedirect:!0});s(!1);const t=!n();r(!1),ru(u(),e.wallet.deepLink,{returnStrategy:kc.returnStrategy,forceRedirect:t},(t=>{So(Ht(Ft({},e.wallet),{openMethod:t}))}))},f=()=>{s(!1),i(!0),So(Ht(Ft({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o()?(i(!1),So(Ht(Ft({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return bn(c),d(),Bn(mu,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[Bn(Zn,{get when(){return!e.backDisabled||o()},get children(){return Bn(bu,{icon:"arrow",onClick:h})}}),Bn(Zn,{get when(){return o()},get children(){return Bn(Ou,{get universalLink(){return u()},get walletInfo(){return e.wallet}})}}),Bn(Zn,{get when(){return!o()},get children(){return[Bn(yu,{get children(){return e.wallet.name}}),Bn(vu,{get children(){return[Bn(Zn,{get when(){return a()},get children(){return[Bn(Su,{size:"s"}),Bn(Eu,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),Bn(Au,{get children(){return[Bn(Si,{get leftIcon(){return Bn(ms,{})},onClick:d,get children(){return Bn(eu,{translationKey:"common.retry",children:"Retry"})}}),Bn(Si,{get leftIcon(){return Bn(Ns,{get fill(){return t.colors.accent}})},onClick:f,get children(){return Bn(eu,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),Bn(Zn,{get when(){return!a()},get children(){return[Bn(ku,{size:"s"}),Bn(Eu,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",pn((()=>e.wallet.name)),"\u2026"]}}),Bn(Au,{get children(){return[Bn(Si,{get leftIcon(){return Bn(ms,{})},onClick:d,get children(){return Bn(eu,{translationKey:"common.retry",children:"Retry"})}}),Bn(Si,{get leftIcon(){return Bn(Ns,{get fill(){return t.colors.accent}})},onClick:f,get children(){return Bn(eu,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),Bn(wu,{get children(){return[Bn(xu,{get src(){return e.wallet.imageUrl}}),Bn(Ba,{get children(){return e.wallet.name}}),Bn(Cu,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return Bn(Si,{get children(){return Bn(eu,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},Lu={m:"16px",s:"12px",none:"0"},Mu={m:"6px",s:"6px",none:"0"},Nu=zr.ul`
812
+ `,nu=e=>[pn(Jc,{get children(){return e.walletInfo.name}}),pn(eu,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone\u2019s or ",Ut((()=>e.walletInfo.name)),"\u2019s camera"]}}),pn(tu,{get children(){return pn(Hi,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return _c(e.universalLink,"none")},disableCopy:!0})}})],ru=e=>{const t=dr(),[n,r]=It(!0),[o,i]=It(!1),[a,s]=It(!1),l=qt(to),c=l.onStatusChange((()=>{}),(()=>{s(!0)})),u=Ut((()=>l.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))),d=()=>{if(oe(u()))return Qr(mt(gt({},e.wallet),{openMethod:"universal-link"})),void Tc(u(),{returnStrategy:Ql.returnStrategy,twaReturnUrl:Ql.twaReturnUrl,forceRedirect:!0});s(!1);const t=!n();r(!1),Rc(u(),e.wallet.deepLink,{returnStrategy:Ql.returnStrategy,forceRedirect:t},(t=>{Qr(mt(gt({},e.wallet),{openMethod:t}))}))},f=()=>{s(!1),i(!0),Qr(mt(gt({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o()?(i(!1),Qr(mt(gt({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return Ht(c),d(),pn(Bc,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[pn(xn,{get when(){return!e.backDisabled||o()},get children(){return pn(Vc,{icon:"arrow",onClick:h})}}),pn(xn,{get when(){return o()},get children(){return pn(nu,{get universalLink(){return u()},get walletInfo(){return e.wallet}})}}),pn(xn,{get when(){return!o()},get children(){return[pn(Hc,{get children(){return e.wallet.name}}),pn(Fc,{get children(){return[pn(xn,{get when(){return a()},get children(){return[pn(Zc,{size:"s"}),pn(Yc,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),pn(Xc,{get children(){return[pn(Zo,{get leftIcon(){return pn(Ba,{})},onClick:d,get children(){return pn(Ac,{translationKey:"common.retry",children:"Retry"})}}),pn(Zo,{get leftIcon(){return pn(as,{get fill(){return t.colors.accent}})},onClick:f,get children(){return pn(Ac,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),pn(xn,{get when(){return!a()},get children(){return[pn(Qc,{size:"s"}),pn(Yc,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",Ut((()=>e.wallet.name)),"\u2026"]}}),pn(Xc,{get children(){return[pn(Zo,{get leftIcon(){return pn(Ba,{})},onClick:d,get children(){return pn(Ac,{translationKey:"common.retry",children:"Retry"})}}),pn(Zo,{get leftIcon(){return pn(as,{get fill(){return t.colors.accent}})},onClick:f,get children(){return pn(Ac,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),pn(Kc,{get children(){return[pn(qc,{get src(){return e.wallet.imageUrl}}),pn(pa,{get children(){return e.wallet.name}}),pn(Gc,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return pn(Zo,{get children(){return pn(Ac,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},ou={m:"16px",s:"12px",none:"0"},iu={m:"6px",s:"6px",none:"0"},au=hr.ul`
813
813
  display: flex;
814
814
  justify-content: space-between;
815
815
  margin: 0 auto;
@@ -831,7 +831,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
831
831
  > li {
832
832
  height: fit-content;
833
833
  }
834
- `,Iu=zr.li`
834
+ `,su=hr.li`
835
835
  width: 82px;
836
836
  min-width: 82px;
837
837
  height: 124px;
@@ -845,7 +845,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
845
845
 
846
846
  transition: transform 0.1s ease-in-out;
847
847
 
848
- ${bi} {
848
+ ${Vo} {
849
849
  &:hover {
850
850
  transform: scale(1.04);
851
851
  }
@@ -855,12 +855,12 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
855
855
  transform: scale(0.96);
856
856
  }
857
857
 
858
- ${yi} {
858
+ ${Ho} {
859
859
  &:active {
860
860
  transform: scale(0.92);
861
861
  }
862
862
  }
863
- `,ju=zr.div`
863
+ `,lu=hr.div`
864
864
  width: 1px;
865
865
  margin: 0 10px;
866
866
  height: 24px;
@@ -869,34 +869,34 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
869
869
 
870
870
  background-color: ${e=>e.theme.colors.icon.secondary};
871
871
  opacity: 0.2;
872
- `,$u=zr.div`
872
+ `,cu=hr.div`
873
873
  width: 60px;
874
874
  height: 60px;
875
- border-radius: ${e=>Lu[e.theme.borderRadius]};
875
+ border-radius: ${e=>ou[e.theme.borderRadius]};
876
876
  display: flex;
877
877
  align-items: center;
878
878
  justify-content: center;
879
879
 
880
880
  background-color: ${e=>e.theme.colors.background.tint};
881
881
  margin-bottom: 8px;
882
- `,Du=zr(Da)`
882
+ `,uu=hr(ua)`
883
883
  margin-top: 38px;
884
884
  margin-bottom: 4px;
885
885
  padding: 0 24px;
886
- `,Uu=zr(Wa)`
886
+ `,du=hr(fa)`
887
887
  margin-bottom: 24px;
888
888
  padding: 0 24px;
889
889
  min-height: 44px;
890
890
  max-width: ${e=>e.maxWidth}px;
891
891
  margin-left: ${e=>e.maxWidth?"auto":"0px"};
892
892
  margin-right: ${e=>e.maxWidth?"auto":"0px"};
893
- `;zr(Si)`
893
+ `;hr(Zo)`
894
894
  display: block;
895
895
  margin: 0 auto;
896
- `;const Wu=zr(Si)`
896
+ `;const fu=hr(Zo)`
897
897
  margin: 0 24px 24px;
898
898
  width: calc(100% - 48px);
899
- border-radius: ${e=>Lu[e.theme.borderRadius]};
899
+ border-radius: ${e=>ou[e.theme.borderRadius]};
900
900
  padding: 14px 16px 14px 14px;
901
901
  background-color: ${e=>e.theme.colors.telegramButton};
902
902
 
@@ -904,50 +904,50 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
904
904
  font-weight: 510;
905
905
  font-size: 16px;
906
906
  line-height: 20px;
907
- `,zu=zr(ni)`
907
+ `,hu=hr(To)`
908
908
  background-color: transparent;
909
- border-radius: ${e=>Mu[e.theme.borderRadius]};
909
+ border-radius: ${e=>iu[e.theme.borderRadius]};
910
910
  width: 24px;
911
911
  height: 24px;
912
- `,Bu=zr($i)`
912
+ `,pu=hr(ci)`
913
913
  position: absolute;
914
914
  top: 16px;
915
915
  left: 16px;
916
- `,Fu=zr(Da)`
916
+ `,gu=hr(ua)`
917
917
  margin-bottom: 2px;
918
918
  padding: 0 64px;
919
- `,Hu=zr(Wa)`
919
+ `,mu=hr(fa)`
920
920
  margin-bottom: 20px;
921
921
  padding: 0 64px;
922
- `,Vu=zr.div`
922
+ `,vu=hr.div`
923
923
  padding: 0 24px 24px;
924
- `,Ku=e=>[Bn(Fu,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),Bn(Hu,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),Bn(Vu,{get children(){return Bn(ya,{get imageUrl(){return zs},get sourceUrl(){return tu(e.universalLink,"none")},disableCopy:!0})}})];function qu(e){const t=new Set(e.filter(tt).map((e=>e.bridgeUrl)));return Array.from(t).map((e=>({bridgeUrl:e})))}function Gu(e,t){const n=new Set(null==e?void 0:e.map((e=>e.bridgeUrl))),r=new Set(null==t?void 0:t.map((e=>e.bridgeUrl)));return n.size===r.size&&[...n].every((e=>r.has(e)))}const Zu=ar("<li></li>"),Qu=ar('<div data-tc-wallets-modal-universal-mobile="true"></div>'),Yu=e=>{const[t,n]=un(!1),[r,o]=un(!0),[i,a]=un(null),s=kc.connector,l=()=>e.walletsList.filter((e=>Tc(e)&&e.appName!==Ws)),c=()=>l().length>7,u=pn((()=>qu(e.walletsList)),null,{equals:Gu}),d=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());So({openMethod:"universal-link"});const[f,h]=un(void 0),p=()=>Kt(void 0,null,(function*(){void 0!==f()&&clearTimeout(f()),yield ma(d());const e=setTimeout((()=>h(void 0)),1500);h(e)})),g=()=>{const e=!r();o(!1),ru(d(),void 0,{returnStrategy:kc.returnStrategy,forceRedirect:e},(e=>{So({openMethod:e})}))},m=()=>{a(null);const t=e.walletsList.find((e=>e.appName===Ws));if(!t||!tt(t))throw new Yr("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),nu(n,{returnStrategy:kc.returnStrategy,twaReturnUrl:kc.twaReturnUrl,forceRedirect:i})},v=()=>{n(!0),So({openMethod:"qrcode"})},y=()=>{n(!1),So({openMethod:"universal-link"})};return(()=>{const n=Qu.cloneNode(!0);return dr(n,Bn(Zn,{get when(){return t()},get children(){return[Bn(Bu,{icon:"arrow",onClick:y}),Bn(Ku,{get universalLink(){return d()}})]}}),null),dr(n,Bn(Zn,{get when(){return!t()},get children(){return[Bn(Bu,{get icon(){return Bn(Ns,{})},onClick:v}),Bn(Du,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),Bn(Uu,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:342,children:"Open Wallet in Telegram or select your wallet to connect"}),Bn(Wu,{get leftIcon(){return Bn(Ts,{})},get rightIcon(){return Bn(zu,{get src(){return Bs}})},onClick:m,scale:"s",get children(){return Bn(eu,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet in Telegram"})}}),Bn(Nu,{get children(){return[Bn(Gn,{get each(){return pn((()=>!!c()))()?l().slice(0,4):l()},children:t=>(()=>{const n=Zu.cloneNode(!0);return dr(n,Bn(ja,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),Bn(Zn,{get when(){return c()},get children(){const t=Zu.cloneNode(!0);return dr(t,Bn(Us,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})),t}}),Bn(ju,{children:"\xa0"}),Bn(Iu,{onClick:g,get children(){return[Bn($u,{get children(){return Bn(Ha,{})}}),Bn(Sa,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),Bn(Iu,{onClick:p,get children(){return[Bn($u,{get children(){return pn((()=>void 0!==f()))()?Bn(Os,{}):Bn(Ls,{})}}),Bn(Sa,{fontWeight:590,get translationKey(){return void 0!==f()?"common.copied":"common.copyLink"},get children(){return void 0!==f()?"Copied":"Copy Link"}})]}})]}})]}}),null),n})()},Xu={m:"16px",s:"8px",none:"0"},Ju={m:"8px",s:"4px",none:"0"},ed=zr.div`
924
+ `,yu=e=>[pn(gu,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),pn(mu,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),pn(vu,{get children(){return pn(Hi,{get imageUrl(){return hs},get sourceUrl(){return _c(e.universalLink,"none")},disableCopy:!0})}})];function bu(e){const t=new Set(e.filter(Ae).map((e=>e.bridgeUrl)));return Array.from(t).map((e=>({bridgeUrl:e})))}function wu(e,t){const n=new Set(null==e?void 0:e.map((e=>e.bridgeUrl))),r=new Set(null==t?void 0:t.map((e=>e.bridgeUrl)));return n.size===r.size&&[...n].every((e=>r.has(e)))}const xu=Ln("<li></li>"),Cu=Ln('<div data-tc-wallets-modal-universal-mobile="true"></div>'),ku=e=>{const[t,n]=It(!1),[r,o]=It(!0),[i,a]=It(null),s=Ql.connector,l=()=>e.walletsList.filter((e=>ec(e)&&e.appName!==fs)),c=()=>l().length>7,u=Ut((()=>bu(e.walletsList)),null,{equals:wu}),d=()=>(i()||a(s.connect(u(),e.additionalRequest)),i());Qr({openMethod:"universal-link"});const[f,h]=It(void 0),p=()=>yt(void 0,null,(function*(){void 0!==f()&&clearTimeout(f()),yield Bi(d());const e=setTimeout((()=>h(void 0)),1500);h(e)})),g=()=>{const e=!r();o(!1),Rc(d(),void 0,{returnStrategy:Ql.returnStrategy,forceRedirect:e},(e=>{Qr({openMethod:e})}))},m=()=>{a(null);const t=e.walletsList.find((e=>e.appName===fs));if(!t||!Ae(t))throw new kr("@wallet bot not found in the wallets list");const n=s.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),i=!r();o(!1),Tc(n,{returnStrategy:Ql.returnStrategy,twaReturnUrl:Ql.twaReturnUrl,forceRedirect:i})},v=()=>{n(!0),Qr({openMethod:"qrcode"})},y=()=>{n(!1),Qr({openMethod:"universal-link"})};return(()=>{const n=Cu.cloneNode(!0);return $n(n,pn(xn,{get when(){return t()},get children(){return[pn(pu,{icon:"arrow",onClick:y}),pn(yu,{get universalLink(){return d()}})]}}),null),$n(n,pn(xn,{get when(){return!t()},get children(){return[pn(pu,{get icon(){return pn(as,{})},onClick:v}),pn(uu,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),pn(du,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",maxWidth:342,children:"Open Wallet in Telegram or select your wallet to connect"}),pn(fu,{get leftIcon(){return pn(es,{})},get rightIcon(){return pn(hu,{get src(){return ps}})},onClick:m,scale:"s",get children(){return pn(Ac,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet in Telegram"})}}),pn(au,{get children(){return[pn(wn,{get each(){return Ut((()=>!!c()))()?l().slice(0,4):l()},children:t=>(()=>{const n=xu.cloneNode(!0);return $n(n,pn(la,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),pn(xn,{get when(){return c()},get children(){const t=xu.cloneNode(!0);return $n(t,pn(ds,{labelLine1:"View all",labelLine2:"wallets",get images(){return l().slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})),t}}),pn(lu,{children:"\xa0"}),pn(su,{onClick:g,get children(){return[pn(cu,{get children(){return pn(ma,{})}}),pn(Zi,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),pn(su,{onClick:p,get children(){return[pn(cu,{get children(){return Ut((()=>void 0!==f()))()?pn(ns,{}):pn(os,{})}}),pn(Zi,{fontWeight:590,get translationKey(){return void 0!==f()?"common.copied":"common.copyLink"},get children(){return void 0!==f()?"Copied":"Copy Link"}})]}})]}})]}}),null),n})()},Su={m:"16px",s:"8px",none:"0"},Eu={m:"8px",s:"4px",none:"0"},Au=hr.div`
925
925
  display: flex;
926
926
  flex-direction: column;
927
927
  align-items: center;
928
928
  padding-bottom: 16px;
929
- `,td=zr(Wa)`
929
+ `,_u=hr(fa)`
930
930
  max-width: 320px;
931
931
  margin-top: 2px;
932
932
  margin-bottom: 20px;
933
- `,nd=zr(Wa)`
933
+ `,Tu=hr(fa)`
934
934
  margin-bottom: 16px;
935
- `,rd=zr(ya)`
935
+ `,Ru=hr(Hi)`
936
936
  margin-bottom: 24px;
937
- `,od=zr.ul`
937
+ `,Ou=hr.ul`
938
938
  display: flex;
939
- `;zr.div`
939
+ `;hr.div`
940
940
  display: flex;
941
941
  gap: 16px;
942
942
  width: 100%;
943
- `,zr(Si)`
943
+ `,hr(Zo)`
944
944
  position: relative;
945
945
  font-size: 16px;
946
946
  line-height: 20px;
947
947
  width: 100%;
948
948
  padding: 0 16px;
949
949
  height: 56px;
950
- border-radius: ${e=>Xu[e.theme.borderRadius]};
950
+ border-radius: ${e=>Su[e.theme.borderRadius]};
951
951
 
952
952
  &:hover {
953
953
  ${e=>e.disableEventsAnimation?"transform: unset;":""}
@@ -956,7 +956,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
956
956
  &:active {
957
957
  ${e=>e.disableEventsAnimation?"transform: unset;":""}
958
958
  }
959
- `,zr.ul`
959
+ `,hr.ul`
960
960
  position: absolute;
961
961
  bottom: 100%;
962
962
  left: 0;
@@ -966,9 +966,9 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
966
966
  transform: translateY(-16px);
967
967
 
968
968
  background-color: ${e=>e.theme.colors.background.primary};
969
- border-radius: ${e=>Xu[e.theme.borderRadius]};
969
+ border-radius: ${e=>Su[e.theme.borderRadius]};
970
970
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
971
- `,zr.li`
971
+ `,hr.li`
972
972
  padding: 8px;
973
973
 
974
974
  display: flex;
@@ -976,7 +976,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
976
976
  gap: 8px;
977
977
 
978
978
  cursor: pointer;
979
- border-radius: ${e=>Ju[e.theme.borderRadius]};
979
+ border-radius: ${e=>Eu[e.theme.borderRadius]};
980
980
 
981
981
  transition: background-color, transform 0.1s ease-in-out;
982
982
 
@@ -987,29 +987,29 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
987
987
  &:active {
988
988
  transform: scale(0.96);
989
989
  }
990
- `,zr(ni)`
990
+ `,hr(To)`
991
991
  width: 24px;
992
992
  height: 24px;
993
993
 
994
994
  border-radius: 6px;
995
- `,zr.div`
995
+ `,hr.div`
996
996
  margin-top: 23px;
997
997
  margin-bottom: 1px;
998
998
  width: 100%;
999
999
  display: flex;
1000
1000
  justify-content: center;
1001
1001
  align-items: center;
1002
- `,zr(Sa)`
1002
+ `,hr(Zi)`
1003
1003
  color: ${e=>e.theme.colors.text.secondary};
1004
1004
  font-size: 16px;
1005
- `;const id=ar("<li></li>"),ad=e=>{const[t,n]=un(!1),r=kc.connector,o=pn((()=>qu(e.walletsList)),null,{equals:Gu});So({openMethod:"qrcode"});const i=pn((()=>r.connect(o(),e.additionalRequest)));return Bn(ed,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[Bn(Da,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),Bn(td,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),Bn(rd,{get sourceUrl(){return tu(i(),"none")},get disableCopy(){return t()},get imageUrl(){return zs}}),Bn(nd,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),Bn(od,{get children(){return[Bn(Gn,{get each(){return e.walletsList.slice(0,3)},children:t=>(()=>{const n=id.cloneNode(!0);return dr(n,Bn(Fs,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),Bn(Us,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})]}})]}})},sd=()=>{const{locale:e}=Ca()[1];hn((()=>e(kc.language))),hn((()=>{mo()?Qs():(i(null),s("universal"),c(!1))}));const t=Cn(Oo),n=Cn(el),[r]=gn((()=>n.getWallets())),[o,i]=un(null),[a,s]=un("universal"),[l,c]=un(!1),u=pn((()=>{if("ready"!==r.state)return null;let e=Ac(r(),kc.walletsListConfiguration);const t=e.filter(Je),n=e.filter((e=>!Je(e)));e=(t||[]).concat(n);const o=kc.preferredWalletAppName,i=e.find((e=>Oc(e,o))),a=e.filter((e=>Oc(e,o))).length>=2;o&&i&&!a&&(e=[Ht(Ft({},i),{isPreferred:!0})].concat(e.filter((e=>!Oc(e,o)))));const s=e.find((e=>Oc(e,Ws)));return s&&(e=[s].concat(e.filter((e=>!Oc(e,Ws))))),e})),d=()=>{var e;return"loading"===(null==(e=kc.connectRequestParameters)?void 0:e.state)},f=pn((()=>{var e;if(!d())return null==(e=kc.connectRequestParameters)?void 0:e.value})),h=e=>{n.closeModal(e)},p=t.onStatusChange((e=>{e&&h("wallet-selected")})),g=()=>{s("all-wallets")},m=()=>{s("universal")},v=()=>{i(null)};return bn((()=>{i(null),c(!1)})),bn(p),Bn(wc,{get opened(){return mo()},get enableAndroidBackHandler(){return kc.enableAndroidBackHandler},onClose:()=>h("action-cancelled"),onClickQuestion:()=>c((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[Bn(Zn,{get when(){return l()},get children(){return Bn(gu,{onBackClick:()=>c(!1)})}}),Bn(Zn,{get when(){return!l()},get children(){return[Bn(Zn,{get when(){return d()||!u()},get children(){return[Bn(xc,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Bn(Cc,{get children(){return Bn(os,{size:"m"})}})]}}),Bn(Zn,{get when(){return pn((()=>!d()))()&&u()},get children(){return Bn(Qn,{get children(){return[Bn(Yn,{get when(){return o()},get children(){return Bn(kr,{get component(){return Gs()?Pu:iu},get wallet(){return o()},get additionalRequest(){return f()},onBackClick:v})}}),Bn(Yn,{get when(){return"universal"===a()},get children(){return Bn(kr,{get component(){return Gs()?Yu:ad},onSelect:i,get walletsList(){return u()},get additionalRequest(){return f()},onSelectAllWallets:g})}}),Bn(Yn,{get when(){return"all-wallets"===a()},get children(){return Bn($c,{get walletsList(){return u()},onBack:m,onSelect:i})}})]}})}})]}})]}})},ld=zr.div`
1005
+ `;const Pu=Ln("<li></li>"),Lu=e=>{const[t,n]=It(!1),r=Ql.connector,o=Ut((()=>bu(e.walletsList)),null,{equals:wu});Qr({openMethod:"qrcode"});const i=Ut((()=>r.connect(o(),e.additionalRequest)));return pn(Au,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[pn(ua,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),pn(_u,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),pn(Ru,{get sourceUrl(){return _c(i(),"none")},get disableCopy(){return t()},get imageUrl(){return hs}}),pn(Tu,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),pn(Ou,{get children(){return[pn(wn,{get each(){return e.walletsList.slice(0,3)},children:t=>(()=>{const n=Pu.cloneNode(!0);return $n(n,pn(gs,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),pn(ds,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})]}})]}})},Mu=()=>{const{locale:e}=Gi()[1];Dt((()=>e(Ql.language))),Dt((()=>{zr()?Cs():(i(null),s("universal"),c(!1))}));const t=qt(to),n=qt(As),[r]=Wt((()=>n.getWallets())),[o,i]=It(null),[a,s]=It("universal"),[l,c]=It(!1),u=Ut((()=>{if("ready"!==r.state)return null;let e=Xl(r(),Ql.walletsListConfiguration);const t=e.filter(Se),n=e.filter((e=>!Se(e)));e=(t||[]).concat(n);const o=Ql.preferredWalletAppName,i=e.find((e=>nc(e,o))),a=e.filter((e=>nc(e,o))).length>=2;o&&i&&!a&&(e=[mt(gt({},i),{isPreferred:!0})].concat(e.filter((e=>!nc(e,o)))));const s=e.find((e=>nc(e,fs)));return s&&(e=[s].concat(e.filter((e=>!nc(e,fs))))),e})),d=()=>{var e;return"loading"===(null==(e=Ql.connectRequestParameters)?void 0:e.state)},f=Ut((()=>{var e;if(!d())return null==(e=Ql.connectRequestParameters)?void 0:e.value})),h=e=>{n.closeModal(e)},p=t.onStatusChange((e=>{e&&h("wallet-selected")})),g=()=>{s("all-wallets")},m=()=>{s("universal")},v=()=>{i(null)};return Ht((()=>{i(null),c(!1)})),Ht(p),pn(Kl,{get opened(){return zr()},get enableAndroidBackHandler(){return Ql.enableAndroidBackHandler},onClose:()=>h("action-cancelled"),onClickQuestion:()=>c((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[pn(xn,{get when(){return l()},get children(){return pn(zc,{onBackClick:()=>c(!1)})}}),pn(xn,{get when(){return!l()},get children(){return[pn(xn,{get when(){return d()||!u()},get children(){return[pn(ql,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),pn(Gl,{get children(){return pn(Oa,{size:"m"})}})]}}),pn(xn,{get when(){return Ut((()=>!d()))()&&u()},get children(){return pn(Cn,{get children(){return[pn(kn,{get when(){return o()},get children(){return pn(Qn,{get component(){return ws()?ru:Pc},get wallet(){return o()},get additionalRequest(){return f()},onBackClick:v})}}),pn(kn,{get when(){return"universal"===a()},get children(){return pn(Qn,{get component(){return ws()?ku:Lu},onSelect:i,get walletsList(){return u()},get additionalRequest(){return f()},onSelectAllWallets:g})}}),pn(kn,{get when(){return"all-wallets"===a()},get children(){return pn(cc,{get walletsList(){return u()},onBack:m,onSelect:i})}})]}})}})]}})]}})},Nu=hr.div`
1006
1006
  display: flex;
1007
1007
  flex-direction: column;
1008
1008
  align-items: center;
1009
1009
  padding-bottom: 8px;
1010
- `,cd=zr(Da)`
1010
+ `,Iu=hr(ua)`
1011
1011
  margin-top: 16px;
1012
- `,ud=zr(Sa)`
1012
+ `,ju=hr(Zi)`
1013
1013
  font-weight: 510;
1014
1014
  font-size: 16px;
1015
1015
  line-height: 20px;
@@ -1017,15 +1017,15 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1017
1017
  max-width: 250px;
1018
1018
 
1019
1019
  color: ${e=>e.theme.colors.text.secondary};
1020
- `,dd=zr(Si)`
1020
+ `,$u=hr(Zo)`
1021
1021
  min-width: 112px;
1022
1022
  margin-top: 32px;
1023
- `,fd=zr(os)`
1023
+ `,Du=hr(Oa)`
1024
1024
  height: 16px;
1025
1025
  width: 16px;
1026
- `,hd=zr(Si)`
1026
+ `,Uu=hr(Zo)`
1027
1027
  margin-top: 32px;
1028
- `,pd=e=>{const t=ki(e),n=Cn(el),[r,o]=un(!0),[i,a]=un(!1);let s,l;hn((()=>{const e=Eo();a(!!e&&"sent"in e&&e.sent)})),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||Me(n.wallet.universalLink)&&si())&&(s=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||Me(n.wallet.deepLink)&&si())&&(l=n.wallet.deepLink);const c=()=>{const e=Eo(),t="returnStrategy"in e?e.returnStrategy:kc.returnStrategy,n=!r();o(!1),Me(s)?nu(s,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:kc.twaReturnUrl,forceRedirect:n}):ru(s,l,{returnStrategy:t,forceRedirect:n},(()=>{}))};return Bn(ld,Kn(t,{get children(){return[pn((()=>e.icon)),Bn(cd,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),Bn(ud,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),Bn(Zn,{get when(){return!i()&&("open-wallet"===e.showButton&&s||"open-wallet"!==e.showButton)},get children(){return Bn(dd,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return Bn(fd,{})}})}}),Bn(Zn,{get when(){return i()},get children(){return[Bn(Zn,{get when(){return"open-wallet"!==e.showButton},get children(){return Bn(hd,{onClick:()=>e.onClose(),get children(){return Bn(eu,{translationKey:"common.close",children:"Close"})}})}}),Bn(Zn,{get when(){return"open-wallet"===e.showButton&&s},get children(){return Bn(hd,{onClick:c,get children(){return Bn(eu,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},gd=e=>{const t=Cn(el),[n]=Ca();return Bn(pd,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return Bn(os,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},md=e=>Bn(pd,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return Bn(es,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),vd=e=>Bn(pd,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return Bn(Qa,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),yd=()=>Bn(Ji,{get opened(){var e;return pn((()=>null!==Eo()))()&&!0===(null==(e=Eo())?void 0:e.openModal)},get enableAndroidBackHandler(){return kc.enableAndroidBackHandler},onClose:()=>Ao(null),"data-tc-actions-modal-container":"true",get children(){return Bn(Qn,{get children(){return[Bn(Yn,{get when(){return"transaction-sent"===Eo().name},get children(){return Bn(vd,{onClose:()=>Ao(null)})}}),Bn(Yn,{get when(){return"transaction-canceled"===Eo().name},get children(){return Bn(md,{onClose:()=>Ao(null)})}}),Bn(Yn,{get when(){return"confirm-transaction"===Eo().name},get children(){return Bn(gd,{onClose:()=>Ao(null)})}})]}})}}),bd=()=>{const{locale:e}=Ca()[1];hn((()=>e(kc.language))),hn((()=>{bo()&&Qs()}));const t=Cn(Oo),n=Cn(el),[r,o]=un(!1),i=()=>{var e;return"loading"===(null==(e=kc.connectRequestParameters)?void 0:e.state)},a=pn((()=>{var e;if(!i())return null==(e=kc.connectRequestParameters)?void 0:e.value})),s=e=>{n.closeSingleWalletModal(e)};return bn(t.onStatusChange((e=>{e&&s("wallet-selected")}))),bn((()=>{o(!1)})),Bn(wc,{get opened(){return bo()},get enableAndroidBackHandler(){return kc.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[Bn(Zn,{get when(){return r()},get children(){return Bn(gu,{onBackClick:()=>o(!1)})}}),Bn(Zn,{get when(){return!r()},get children(){return[Bn(Zn,{get when(){return i()},get children(){return[Bn(xc,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),Bn(Cc,{get children(){return Bn(os,{size:"m"})}})]}}),Bn(Zn,{get when(){return!i()},get children(){return Bn(kr,{get component(){return Gs()?Pu:iu},get wallet(){return wo()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},wd=e=>{const t=wa(To,kc.language);return customElements.define(Fr,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),Bn(xa.Provider,{value:t,get children(){return Bn(el.Provider,{get value(){return e.tonConnectUI},get children(){return Bn(Oo.Provider,{get value(){return kc.connector},get children(){return[Bn(Kr,{}),Bn(Dr,{theme:Qo,get children(){return[Bn(Zn,{get when(){return kc.buttonRootId},get children(){return Bn(Cr,{get mount(){return document.getElementById(kc.buttonRootId)},get children(){return Bn(bc,{})}})}}),Bn(kr,{component:Fr,get children(){return[Bn(sd,{}),Bn(bd,{}),Bn(yd,{})]}})]}})]}})}})}})},xd=()=>{setTimeout((()=>go({status:"opened",closeReason:null})))},Cd=e=>{setTimeout((()=>go({status:"closed",closeReason:e})))},kd=e=>{setTimeout((()=>yo({status:"opened",closeReason:null,walletInfo:e})))},Sd=e=>{setTimeout((()=>yo({status:"closed",closeReason:e})))},Ed=e=>{setTimeout((()=>Ao(e)))},Ad=()=>{setTimeout((()=>Ao(null)))},_d=()=>Co(),Td=()=>So(null),Rd=(e,t)=>function(e,t,n){let r;return cn((o=>{r=o,t===document?e():dr(t,e(),t.firstChild?null:void 0,n)}),(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).owner),()=>{r(),t.textContent=""}}((()=>Bn(wd,{tonConnectUI:t})),document.getElementById(e));class Od{constructor(e){Vt(this,"connector"),Vt(this,"setConnectRequestParametersCallback"),Vt(this,"consumers",[]),Vt(this,"tracker"),Vt(this,"state",po()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,hn((()=>{const e=po();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return Kt(this,null,(function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(et);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()}))}close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled";"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Cd(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{So(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=kc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return Kt(this,null,(function*(){return si()&&ci(),xd(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class Pd{constructor(e){Vt(this,"connector"),Vt(this,"consumers",[]),this.connector=e.connector,hn((()=>{const e=Eo();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}class Ld{constructor(e){Vt(this,"connector"),Vt(this,"setConnectRequestParametersCallback"),Vt(this,"consumers",[]),Vt(this,"tracker"),Vt(this,"state",vo()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,hn((()=>{const e=vo();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(e){return Kt(this,null,(function*(){this.tracker.trackConnectionStarted();const t=Ac(yield this.connector.getWallets(),kc.walletsListConfiguration),n=t.find(et);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(tt).find((t=>Oc(t,e)));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new Yr(o)}))}close(){"action-cancelled"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled")&&this.tracker.trackConnectionError("Connection was cancelled"),Sd("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{So(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=kc.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return Kt(this,null,(function*(){return si()&&ci(),kd(e),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class Md{constructor(e){var t;Vt(this,"eventPrefix","ton-connect-ui-"),Vt(this,"tonConnectUiVersion"),Vt(this,"tonConnectSdkVersion",null),Vt(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new wt,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return st({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return Kt(this,null,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(Yv){}}))}setRequestVersionHandler(){return Kt(this,null,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",(()=>Kt(this,null,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",at(this.tonConnectUiVersion))}))))}))}requestTonConnectSdkVersion(){return Kt(this,null,(function*(){return new Promise(((e,t)=>Kt(this,null,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(Yv){t(Yv)}}))))}))}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(Yv){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ct(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ut(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=dt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ft(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ht(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=pt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=bt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=mt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=vt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=yt(this.version,...t);this.dispatchUserActionEvent(r)}catch(Yv){}}}class Nd{constructor(e){if(Vt(this,"walletInfoStorage",new uo),Vt(this,"preferredWalletStorage",new fo),Vt(this,"tracker"),Vt(this,"walletInfo",null),Vt(this,"systemThemeChangeUnsubscribe",null),Vt(this,"actionsConfiguration"),Vt(this,"walletsList"),Vt(this,"connectRequestParametersCallback"),Vt(this,"connector"),Vt(this,"modal"),Vt(this,"singleWalletModal"),Vt(this,"transactionModal"),Vt(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new Yr("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new Ct({manifestUrl:e.manifestUrl,eventDispatcher:null==e?void 0:e.eventDispatcher})}this.tracker=new Md({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.0.9"}),this.modal=new Od({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new Ld({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new Pd({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return ro((t=e.map((e=>e.imageUrl)),[...new Set(t)]));var t}));const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return Kt(this,null,(function*(){return yield new Promise((e=>requestAnimationFrame(e))),e()}))}((()=>Kt(this,null,(function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))))),this.uiOptions=Zo(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();Sc({connector:this.connector,preferredWalletAppName:n}),Rd(t,this)}static getWallets(){return Ct.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?Ft(Ft({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),ei(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(ei(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?Sr.LIGHT:Sr.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?Sr.DARK:Sr.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(ei))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Jo[Sr.DARK]=Zo(a[Sr.DARK],Jo[Sr.DARK]),Jo[Sr.LIGHT]=Zo(a[Sr.LIGHT],Jo[Sr.LIGHT]),Yo((e=>({colors:Zo(Jo[e.theme],Xo[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,Yo({borderRadius:s})),Sc((t=>{var n,r;const o=Zo(Ft(Ft(Ft(Ft({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),jo(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;Sc({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return Kt(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>Kt(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(Ft(Ft({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return Kt(this,null,(function*(){return this.modal.open()}))}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return Kt(this,null,(function*(){return this.singleWalletModal.open(e)}))}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return Kt(this,null,(function*(){const e=(yield this.getWallets()).find(et);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Ad(),Td(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return Kt(this,null,(function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new Yr("Connect wallet to send a transaction.");si()&&ci();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:a}=this.getModalsAndNotificationsConfiguration(t);Ed({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const s=()=>{l.signal.aborted||(Ed({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(Me(this.walletInfo.universalLink)?nu(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i||kc.twaReturnUrl,forceRedirect:!1}):ru(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:o,forceRedirect:!1},(()=>{}))))},l=new AbortController,c=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(c(),e||l.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,signal:l.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Ed({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(Yv){throw Ed({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),Yv instanceof fe?Yv:(console.error(Yv),new Yr("Unhandled error:"+Yv))}finally{c()}}))}connectEmbeddedWallet(e){return Kt(this,null,(function*(){const t=t=>{So(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=kc.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})}))}connectExternalWallet(){return Kt(this,null,(function*(){const e=new AbortController;xd();const t=this.onModalStateChange((n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())}));return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})}))}waitForWalletConnection(e){return Kt(this,null,(function*(){return new Promise(((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new Yr("Wallet was not connected"));const i=e=>Kt(this,null,(function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new Yr("Wallet was not connected"))}})),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange((e=>i(e)),(e=>a(e)));o&&o.addEventListener("abort",(()=>{s(),n(new Yr("Wallet was not connected"))}),{once:!0})}))}))}waitForSendTransaction(e,t){return Kt(this,null,(function*(){return new Promise(((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Yr("Transaction was not sent"));const a=e=>Kt(this,null,(function*(){n(e)})),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new Yr("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then((e=>(i.removeEventListener("abort",s),a(e)))).catch((e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e))))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>Kt(this,null,(function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),Sc({preferredWalletAppName:e})}getSelectedWalletInfo(e){return Kt(this,null,(function*(){let t,n=_d();if(!n)return null;if("name"in n)t=n;else{const r=Ac(yield this.walletsList,kc.walletsListConfiguration).find((t=>Oc(t,e.device.appName)));if(!r)throw new Yr(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=Ft(Ft({},r),n)}return t}))}updateWalletInfo(e){return Kt(this,null,(function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find((t=>Oc(t,e.device.appName)))||null)}))}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new Yr(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return si()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}function Id(e,t){return function(){return e.apply(t,arguments)}}const{toString:jd}=Object.prototype,{getPrototypeOf:$d}=Object,Dd=(Ud=Object.create(null),e=>{const t=jd.call(e);return Ud[t]||(Ud[t]=t.slice(8,-1).toLowerCase())});var Ud;const Wd=e=>(e=e.toLowerCase(),t=>Dd(t)===e),zd=e=>t=>typeof t===e,{isArray:Bd}=Array,Fd=zd("undefined");const Hd=Wd("ArrayBuffer");const Vd=zd("string"),Kd=zd("function"),qd=zd("number"),Gd=e=>null!==e&&"object"===typeof e,Zd=e=>{if("object"!==Dd(e))return!1;const t=$d(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Qd=Wd("Date"),Yd=Wd("File"),Xd=Wd("Blob"),Jd=Wd("FileList"),ef=Wd("URLSearchParams"),[tf,nf,rf,of]=["ReadableStream","Request","Response","Headers"].map(Wd);function af(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Bd(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function sf(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const lf="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,cf=e=>!Fd(e)&&e!==lf;const uf=(df="undefined"!==typeof Uint8Array&&$d(Uint8Array),e=>df&&e instanceof df);var df;const ff=Wd("HTMLFormElement"),hf=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),pf=Wd("RegExp"),gf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};af(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},mf="abcdefghijklmnopqrstuvwxyz",vf="0123456789",yf={DIGIT:vf,ALPHA:mf,ALPHA_DIGIT:mf+mf.toUpperCase()+vf};const bf=Wd("AsyncFunction"),wf=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],lf.addEventListener("message",(e=>{let{source:t,data:o}=e;t===lf&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),lf.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,Kd(lf.postMessage)),xf="undefined"!==typeof queueMicrotask?queueMicrotask.bind(lf):"undefined"!==typeof process&&process.nextTick||wf,Cf={isArray:Bd,isArrayBuffer:Hd,isBuffer:function(e){return null!==e&&!Fd(e)&&null!==e.constructor&&!Fd(e.constructor)&&Kd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Kd(e.append)&&("formdata"===(t=Dd(e))||"object"===t&&Kd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Hd(e.buffer),t},isString:Vd,isNumber:qd,isBoolean:e=>!0===e||!1===e,isObject:Gd,isPlainObject:Zd,isReadableStream:tf,isRequest:nf,isResponse:rf,isHeaders:of,isUndefined:Fd,isDate:Qd,isFile:Yd,isBlob:Xd,isRegExp:pf,isFunction:Kd,isStream:e=>Gd(e)&&Kd(e.pipe),isURLSearchParams:ef,isTypedArray:uf,isFileList:Jd,forEach:af,merge:function e(){const{caseless:t}=cf(this)&&this||{},n={},r=(r,o)=>{const i=t&&sf(n,o)||o;Zd(n[i])&&Zd(r)?n[i]=e(n[i],r):Zd(r)?n[i]=e({},r):Bd(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&af(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return af(t,((t,r)=>{n&&Kd(t)?e[r]=Id(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&$d(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Dd,kindOfTest:Wd,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Bd(e))return e;let t=e.length;if(!qd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ff,hasOwnProperty:hf,hasOwnProp:hf,reduceDescriptors:gf,freezeMethods:e=>{gf(e,((t,n)=>{if(Kd(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Kd(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Bd(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:sf,global:lf,isContextDefined:cf,ALPHABET:yf,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yf.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Kd(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Gd(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Bd(e)?[]:{};return af(e,((e,t)=>{const i=n(e,r+1);!Fd(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:bf,isThenable:e=>e&&(Gd(e)||Kd(e))&&Kd(e.then)&&Kd(e.catch),setImmediate:wf,asap:xf};function kf(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Cf.inherits(kf,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Cf.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Sf=kf.prototype,Ef={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ef[e]={value:e}})),Object.defineProperties(kf,Ef),Object.defineProperty(Sf,"isAxiosError",{value:!0}),kf.from=(e,t,n,r,o,i)=>{const a=Object.create(Sf);return Cf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),kf.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Af=kf;function _f(e){return Cf.isPlainObject(e)||Cf.isArray(e)}function Tf(e){return Cf.endsWith(e,"[]")?e.slice(0,-2):e}function Rf(e,t,n){return e?e.concat(t).map((function(e,t){return e=Tf(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Of=Cf.toFlatObject(Cf,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Pf=function(e,t,n){if(!Cf.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Cf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Cf.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&Cf.isSpecCompliantForm(t);if(!Cf.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Cf.isDate(e))return e.toISOString();if(!s&&Cf.isBlob(e))throw new Af("Blob is not supported. Use a Buffer instead.");return Cf.isArrayBuffer(e)||Cf.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(Cf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Cf.isArray(e)&&function(e){return Cf.isArray(e)&&!e.some(_f)}(e)||(Cf.isFileList(e)||Cf.endsWith(n,"[]"))&&(s=Cf.toArray(e)))return n=Tf(n),s.forEach((function(e,r){!Cf.isUndefined(e)&&null!==e&&t.append(!0===a?Rf([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!_f(e)||(t.append(Rf(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Of,{defaultVisitor:c,convertValue:l,isVisitable:_f});if(!Cf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Cf.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Cf.forEach(n,(function(n,i){!0===(!(Cf.isUndefined(n)||null===n)&&o.call(t,n,Cf.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Lf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Mf(e,t){this._pairs=[],e&&Pf(e,this,t)}const Nf=Mf.prototype;Nf.append=function(e,t){this._pairs.push([e,t])},Nf.toString=function(e){const t=e?function(t){return e.call(this,t,Lf)}:Lf;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const If=Mf;function jf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $f(e,t,n){if(!t)return e;const r=n&&n.encode||jf,o=n&&n.serialize;let i;if(i=o?o(t,n):Cf.isURLSearchParams(t)?t.toString():new If(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Df=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Cf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Uf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wf={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:If,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},zf="undefined"!==typeof window&&"undefined"!==typeof document,Bf=(Ff="undefined"!==typeof navigator&&navigator.product,zf&&["ReactNative","NativeScript","NS"].indexOf(Ff)<0);var Ff;const Hf="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Vf=zf&&window.location.href||"http://localhost",Kf={...e,...Wf};const qf=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Cf.isArray(r)?r.length:i,s)return Cf.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Cf.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Cf.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Cf.isFormData(e)&&Cf.isFunction(e.entries)){const n={};return Cf.forEachEntry(e,((e,r)=>{t(function(e){return Cf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Gf={transitional:Uf,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Cf.isObject(e);o&&Cf.isHTMLForm(e)&&(e=new FormData(e));if(Cf.isFormData(e))return r?JSON.stringify(qf(e)):e;if(Cf.isArrayBuffer(e)||Cf.isBuffer(e)||Cf.isStream(e)||Cf.isFile(e)||Cf.isBlob(e)||Cf.isReadableStream(e))return e;if(Cf.isArrayBufferView(e))return e.buffer;if(Cf.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Pf(e,new Kf.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Kf.isNode&&Cf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Cf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Pf(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Cf.isString(e))try{return(t||JSON.parse)(e),Cf.trim(e)}catch(Er){if("SyntaxError"!==Er.name)throw Er}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Gf.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Cf.isResponse(e)||Cf.isReadableStream(e))return e;if(e&&Cf.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Er){if(n){if("SyntaxError"===Er.name)throw Af.from(Er,Af.ERR_BAD_RESPONSE,this,null,this.response);throw Er}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kf.classes.FormData,Blob:Kf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Cf.forEach(["delete","get","head","post","put","patch"],(e=>{Gf.headers[e]={}}));const Zf=Gf,Qf=Cf.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yf=Symbol("internals");function Xf(e){return e&&String(e).trim().toLowerCase()}function Jf(e){return!1===e||null==e?e:Cf.isArray(e)?e.map(Jf):String(e)}function eh(e,t,n,r,o){return Cf.isFunction(r)?r.call(this,t,n):(o&&(t=n),Cf.isString(t)?Cf.isString(r)?-1!==t.indexOf(r):Cf.isRegExp(r)?r.test(t):void 0:void 0)}class th{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Xf(t);if(!o)throw new Error("header name must be a non-empty string");const i=Cf.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Jf(e))}const i=(e,t)=>Cf.forEach(e,((e,n)=>o(e,n,t)));if(Cf.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Cf.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Qf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Cf.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Xf(e)){const n=Cf.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Cf.isFunction(t))return t.call(this,e,n);if(Cf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Xf(e)){const n=Cf.findKey(this,e);return!(!n||void 0===this[n]||t&&!eh(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Xf(e)){const o=Cf.findKey(n,e);!o||t&&!eh(0,n[o],o,t)||(delete n[o],r=!0)}}return Cf.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!eh(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Cf.forEach(this,((r,o)=>{const i=Cf.findKey(n,o);if(i)return t[i]=Jf(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Jf(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Cf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Cf.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Yf]=this[Yf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Xf(e);t[r]||(!function(e,t){const n=Cf.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Cf.isArray(e)?e.forEach(r):r(e),this}}th.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Cf.reduceDescriptors(th.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),Cf.freezeMethods(th);const nh=th;function rh(e,t){const n=this||Zf,r=t||n,o=nh.from(r.headers);let i=r.data;return Cf.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function oh(e){return!(!e||!e.__CANCEL__)}function ih(e,t,n){Af.call(this,null==e?"canceled":e,Af.ERR_CANCELED,t,n),this.name="CanceledError"}Cf.inherits(ih,Af,{__CANCEL__:!0});const ah=ih;function sh(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Af("Request failed with status code "+n.status,[Af.ERR_BAD_REQUEST,Af.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const lh=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const ch=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},uh=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=lh(50,250);return ch((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},dh=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fh=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Cf.asap((()=>e(...n)))},hh=Kf.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Cf.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},ph=Kf.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Cf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Cf.isString(r)&&a.push("path="+r),Cf.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function gh(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const mh=e=>e instanceof nh?{...e}:e;function vh(e,t){t=t||{};const n={};function r(e,t,n){return Cf.isPlainObject(e)&&Cf.isPlainObject(t)?Cf.merge.call({caseless:n},e,t):Cf.isPlainObject(t)?Cf.merge({},t):Cf.isArray(t)?t.slice():t}function o(e,t,n){return Cf.isUndefined(t)?Cf.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Cf.isUndefined(t))return r(void 0,t)}function a(e,t){return Cf.isUndefined(t)?Cf.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(mh(e),mh(t),!0)};return Cf.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Cf.isUndefined(a)&&i!==s||(n[r]=a)})),n}const yh=e=>{const t=vh({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=nh.from(s),t.url=$f(gh(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Cf.isFormData(r))if(Kf.hasStandardBrowserEnv||Kf.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Kf.hasStandardBrowserEnv&&(o&&Cf.isFunction(o)&&(o=o(t)),o||!1!==o&&hh(t.url))){const e=i&&a&&ph.read(a);e&&s.set(i,e)}return t},bh="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=yh(e);let o=r.data;const i=nh.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=nh.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());sh((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new Af("Request aborted",Af.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new Af("Network Error",Af.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Uf;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Af(t,o.clarifyTimeoutError?Af.ETIMEDOUT:Af.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&Cf.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),Cf.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([l,u]=uh(h,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=uh(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new ah(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Kf.protocols.indexOf(v)?n(new Af("Unsupported protocol "+v+":",Af.ERR_BAD_REQUEST,e)):g.send(o||null)}))},wh=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Af?t:new ah(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Af(`timeout ${t} of ms exceeded`,Af.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},xh=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ch=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*xh(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},kh="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Sh=kh&&"function"===typeof ReadableStream,Eh=kh&&("function"===typeof TextEncoder?(Ah=new TextEncoder,e=>Ah.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ah;const _h=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(Er){return!1}},Th=Sh&&_h((()=>{let e=!1;const t=new Request(Kf.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Rh=Sh&&_h((()=>Cf.isReadableStream(new Response("").body))),Oh={stream:Rh&&(e=>e.body)};var Ph;kh&&(Ph=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Oh[e]&&(Oh[e]=Cf.isFunction(Ph[e])?t=>t[e]():(t,n)=>{throw new Af(`Response type '${e}' is not supported`,Af.ERR_NOT_SUPPORT,n)})})));const Lh=async(e,t)=>{const n=Cf.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Cf.isBlob(e)?e.size:Cf.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Cf.isArrayBufferView(e)||Cf.isArrayBuffer(e)?e.byteLength:(Cf.isURLSearchParams(e)&&(e+=""),Cf.isString(e)?(await Eh(e)).byteLength:void 0))(t):n},Mh=kh&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=yh(e);c=c?(c+"").toLowerCase():"text";let h,p,[g,m]=o||i||a?wh([o,i],a):[];const v=()=>{!h&&setTimeout((()=>{g&&g.unsubscribe()})),h=!0};let y;try{if(l&&Th&&"get"!==n&&"head"!==n&&0!==(y=await Lh(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Cf.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=dh(y,uh(fh(l)));r=Ch(n.body,65536,e,t,Eh)}}Cf.isString(d)||(d=d?"include":"omit"),p=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(p);const i=Rh&&("stream"===c||"response"===c);if(Rh&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Cf.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&dh(t,uh(fh(s),!0))||[];o=new Response(Ch(o.body,65536,n,(()=>{r&&r(),i&&v()}),Eh),e)}c=c||"text";let a=await Oh[Cf.findKey(Oh,c)||"text"](o,e);return!i&&v(),m&&m(),await new Promise(((t,n)=>{sh(t,n,{data:a,headers:nh.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(b){if(v(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Af("Network Error",Af.ERR_NETWORK,e,p),{cause:b.cause||b});throw Af.from(b,b&&b.code,e,p)}}),Nh={http:null,xhr:bh,fetch:Mh};Cf.forEach(Nh,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Er){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ih=e=>`- ${e}`,jh=e=>Cf.isFunction(e)||null===e||!1===e,$h=e=>{e=Cf.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!jh(n)&&(r=Nh[(t=String(n)).toLowerCase()],void 0===r))throw new Af(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Ih).join("\n"):" "+Ih(e[0]):"as no adapter specified";throw new Af("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Dh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ah(null,e)}function Uh(e){Dh(e),e.headers=nh.from(e.headers),e.data=rh.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return $h(e.adapter||Zf.adapter)(e).then((function(t){return Dh(e),t.data=rh.call(e,e.transformResponse,t),t.headers=nh.from(t.headers),t}),(function(t){return oh(t)||(Dh(e),t&&t.response&&(t.response.data=rh.call(e,e.transformResponse,t.response),t.response.headers=nh.from(t.response.headers))),Promise.reject(t)}))}const Wh="1.7.4",zh={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{zh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Bh={};zh.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Af(r(o," has been removed"+(t?" in "+t:"")),Af.ERR_DEPRECATED);return t&&!Bh[o]&&(Bh[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Fh={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Af("options must be an object",Af.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Af("option "+i+" must be "+n,Af.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Af("Unknown option "+i,Af.ERR_BAD_OPTION)}},validators:zh},Hh=Fh.validators;class Vh{constructor(e){this.defaults=e,this.interceptors={request:new Df,response:new Df}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Er){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=vh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Fh.assertOptions(n,{silentJSONParsing:Hh.transitional(Hh.boolean),forcedJSONParsing:Hh.transitional(Hh.boolean),clarifyTimeoutError:Hh.transitional(Hh.boolean)},!1),null!=r&&(Cf.isFunction(r)?t.paramsSerializer={serialize:r}:Fh.assertOptions(r,{encode:Hh.function,serialize:Hh.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Cf.merge(o.common,o[t.method]);o&&Cf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=nh.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Uh.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=Uh.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return $f(gh((e=vh(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Cf.forEach(["delete","get","head","options"],(function(e){Vh.prototype[e]=function(t,n){return this.request(vh(n||{},{method:e,url:t,data:(n||{}).data}))}})),Cf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(vh(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Vh.prototype[e]=t(),Vh.prototype[e+"Form"]=t(!0)}));const Kh=Vh;class qh{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ah(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new qh((function(t){e=t}));return{token:t,cancel:e}}}const Gh=qh;const Zh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zh).forEach((e=>{let[t,n]=e;Zh[n]=t}));const Qh=Zh;const Yh=function e(t){const n=new Kh(t),r=Id(Kh.prototype.request,n);return Cf.extend(r,Kh.prototype,n,{allOwnKeys:!0}),Cf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(vh(t,n))},r}(Zf);Yh.Axios=Kh,Yh.CanceledError=ah,Yh.CancelToken=Gh,Yh.isCancel=oh,Yh.VERSION=Wh,Yh.toFormData=Pf,Yh.AxiosError=Af,Yh.Cancel=Yh.CanceledError,Yh.all=function(e){return Promise.all(e)},Yh.spread=function(e){return function(t){return e.apply(null,t)}},Yh.isAxiosError=function(e){return Cf.isObject(e)&&!0===e.isAxiosError},Yh.mergeConfig=vh,Yh.AxiosHeaders=nh,Yh.formToJSON=e=>qf(Cf.isHTMLForm(e)?new FormData(e):e),Yh.getAdapter=$h,Yh.HttpStatusCode=Qh,Yh.default=Yh;const Xh=Yh;const Jh=new class{constructor(){this._axios=void 0}init(){this._axios=Xh.create({timeout:1e4}),this._axios.interceptors.request.use((e=>(e.url.includes("api/pluto")&&(e.baseURL=V.API_URL,V.TOKEN&&(e.headers.Authorization=`Bearer ${V.TOKEN}`)),e)),(e=>(console.log(e),Promise.reject({code:I.NetConfigError,message:"Net config error"})))),this._axios.interceptors.response.use((e=>e),(e=>(console.log(e.toJSON()),Promise.reject({code:I.NetError,message:e.message}))))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={};return t&&(n.params=t),this._axios.get(e,n).then((e=>e.data))}post(e,t){return this._axios.post(e,t).then((e=>e.data))}};const ep=new class{constructor(){this._tonConnect=null,this._tokenJettonWalletAddress={}}get connected(){return this._tonConnect.connected}get rawAddress(){return this._tonConnect.connected?this._tonConnect.wallet.account.address:null}get friendlyAddress(){return this._tonConnect.connected?kt(this._tonConnect.wallet.account.address,!1):null}get chain(){return this._tonConnect.connected?this._tonConnect.wallet.account.chain:null}init(){let e=this._tonConnect=new Nd({manifestUrl:V.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then((e=>{e?(C().publish(_,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")}))}connect(){return new Promise(((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange((r=>{if(console.log("onStatusChange==>"+JSON.stringify(r)),n(),!r)return t({code:I.WalletError,message:"The wallet info is null"});let o=r.account.address;C().publish(_,!0),e(o)})),r=this._tonConnect.onModalStateChange((e=>{console.log("onModalStateChange==>"+JSON.stringify(e)),"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:I.WalletError,message:"Wallet connect failed"})))}));this._tonConnect.openModal().then((()=>{console.log("openModal success")})).catch((e=>{n(),r(),t({code:I.WalletError,message:"Open modal error"})}))}))}disconnect(){return new Promise(((e,t)=>{if(!this.connected)return t({code:I.WalletError,message:"Wallet not connected"});this._tonConnect.disconnect().then((()=>{C().publish(_,!1),this._tokenJettonWalletAddress={},e()})).catch((e=>{console.log(e),t({code:I.WalletError,message:"Wallet disconnect error"})}))}))}sendTransaction(e){return new Promise(((t,n)=>{if(!this.connected)return n({code:I.WalletError,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+600,messages:[{...e}]};this._tonConnect.sendTransaction(r).then((e=>{console.log("transaction success"),t(e.boc)})).catch((e=>{console.log("transaction error==>"+JSON.stringify(e)),n({code:I.WalletError,message:"Wallet transaction error"})}))}))}getTokenJettonPayInfo(e,t,n,r){return new Promise(((o,i)=>{this.getTokenJettonWalletAddress(e).then((a=>{let s=`${V.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Jh.get(s).then((e=>{o({address:a,payload:e.data.payload})})).catch((e=>{console.log(e),i({code:I.TokenUseError,message:"Load token payload error"})}))})).catch((e=>{i(e)}))}))}getTokenJettonWalletAddress(e){return new Promise(((t,n)=>{if(this._tokenJettonWalletAddress[e])return t(this._tokenJettonWalletAddress[e]);let r=V.TOKENS_JETTON_ADDRESS[e];if(!r)return console.log(`token invalid: ${e}`),n({code:I.TokenUseError,message:`${e} invalid`});let o={owner_address:this.rawAddress,jetton_address:r,limit:"1",offset:"0"};Jh.get(V.TON_CENTER_URL,o).then((r=>{var o;let i=null===(o=r.jetton_wallets[0])||void 0===o?void 0:o.address;if(!i)return n({code:I.TokenUseError,message:`Insufficient ${e} assets`});this._tokenJettonWalletAddress[e]=i,t(i)})).catch((e=>{console.log(e),n({code:I.TokenUseError,message:"Load jetton wallet error"})}))}))}};const tp=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{const n=this._handlerMap.event_playButtonClicked;n&&n.apply(null,[])},this.onPuchaseCompleted=(e,t)=>{const n=this._handlerMap[P];n&&n.apply(null,[t]);const r=this._callbackMap[P];r&&(r.apply(null,[t]),this._callbackMap[P]=null)},this.onCheckInCompleted=(e,t)=>{const n=this._handlerMap[L];n&&n.apply(null,[t]);const r=this._callbackMap[L];r&&(r.apply(null,[t]),this._callbackMap[L]=null)}}init(){C().subscribe(T,this.onPlayButtonClicked),C().subscribe(R,this.onPuchaseCompleted),C().subscribe(O,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class np{static showLog(e){V.TEST_MODE&&console.log(e)}static get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=`api/pluto/${e}/${V.GAME_ID}`;return new Promise(((r,o)=>{Jh.get(n,t).then((t=>{if(np.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static post(e,t){const n=`api/pluto/${e}/${V.GAME_ID}`;return new Promise(((r,o)=>{Jh.post(n,t).then((t=>{if(np.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static gameInfo(){const e={botname:V.BOT_NAME,initdata:V.INIT_DATA};return np.post("gameinfo",e)}static login(){const e={botname:V.BOT_NAME,initdata:V.INIT_DATA};return np.post("login",e)}static priceExchange(e){const t={amount:e};return np.post("priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return np.post("order",s)}static getItem(e){const t={k:e};return np.post("getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return np.post("setuserdata",n)}static finishOrder(e){const t={orderno:e};return np.post("finishorder",t)}static unfinishRecord(){return np.get("unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return np.post("checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return np.post("checkinverify",o)}}const rp=new class{constructor(){this._gameInfo=void 0,this._plutoId=void 0,this._firstName=void 0,this._lastName=void 0,this._icon=void 0,this._purchaseData=void 0,this._checkInData=void 0}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}};const op=new class{get hideShare(){return"1002"==V.GAME_ID}init(){Telegram.WebApp.expand(),Telegram.WebApp.ready(),Telegram.WebApp.disableVerticalSwipes(),Telegram.WebApp.enableClosingConfirmation()}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await np.gameInfo();let t={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:e.catalog||[]};return rp.gameInfo=t,rp.plutoId=e.plutoid,Promise.resolve(t)}catch(e){if(10==t)return Promise.reject({code:I.InitError,message:"Init error"});await new Promise((e=>window.setTimeout(e,500)))}}reqLogin(){return np.login().then((e=>{let t=rp.plutoId=e.plutoid,n=rp.firstName=e.tgfirstname,r=rp.lastName=e.tglastname,o=rp.icon=e.icon,i=e.ticket;return V.TOKEN=e.token,V.GAME_URL=e.gameurl,{plutoId:t,firstName:n,lastName:r,icon:o,ticket:i}}))}reqPurchase(e,t,n,r,o){return np.priceExchange(r).then((r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.usdtoff)||0,u=parseFloat(r.tonoff)||0,d=parseFloat(r.catioff)||0,f=parseFloat(r.staroff)||0,h=parseFloat(r.usdtdiscount)||0,p=parseFloat(r.tondiscount)||0,g=parseFloat(r.catidiscount)||0,m=parseFloat(r.stardiscount)||0;rp.purchaseData={name:t,productId:e,orderId:n,customData:o,usdt:h?c:i,usdtOld:i,usdtDiscount:h,ton:p?u:a,tonOld:a,tonDiscount:p,cati:g?d:s,catiOld:s,catiDiscount:g,star:m?f:l,starOld:l,starDiscount:m}}))}reqOrder(e,t){const{productId:n,name:r,orderId:o,usdt:i,customData:a}=rp.purchaseData;return np.order(n,r,o,i,e,t,a).then((e=>(rp.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress})))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await np.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:I.OrderConfirming,message:"The order is being confirmed"});await new Promise((e=>window.setTimeout(e,5e3)))}}reqUnfinishRecord(){return np.unfinishRecord().then((e=>{let t=[];return(e.records||[]).forEach((e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)})),t}))}reqCheckIn(e,t,n){return np.checkIn(e,t,n).then((r=>{rp.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}}))}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await np.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise((e=>window.setTimeout(e,5e3)))}}reqGetItem(e){return np.getItem(e).then((e=>e.v))}reqSetItem(e,t){return np.setItem(e,t).then((e=>{}))}openLink(e){Telegram.WebApp.openLink(e)}openTelegramLink(e){Telegram.WebApp.openTelegramLink(e)}openInvoice(e){return new Promise(((t,n)=>{Telegram.WebApp.openInvoice(e,(e=>{if("paid"==e)return t();n({code:I.OpenInvoiceError,message:"Open invoice error"})}))}))}share(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=`${rp.gameInfo.appUrl}?startapp=g_${V.GAME_ID}_${rp.plutoId}`;e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`);let n=`https://t.me/share/url?url=${t}&text=${encodeURIComponent(N[V.GAME_ID]||N[1e3])}`;q()&&Q()?this.openTelegramLink(n):this.openLink(n)}enableClosingConfirmation(){Telegram.WebApp.enableClosingConfirmation()}disableClosingConfirmation(){Telegram.WebApp.disableClosingConfirmation()}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}};var ip=n(9254),ap=n(8587),sp=n(2004),lp=n(116),cp=n(505),up=n(237);const dp=["className","component"];var fp=n(4501),hp=n(7775),pp=n(1763);const gp=(0,pp.A)("MuiBox",["root"]),mp=(0,hp.A)(),vp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=(0,lp.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(cp.A),l=i.forwardRef((function(e,i){const l=f(n),c=(0,up.A)(e),{className:u,component:d="div"}=c,p=(0,ap.A)(c,dp);return(0,h.jsx)(s,(0,o.A)({as:d,ref:i,className:(0,sp.A)(u,a?a(r):r),theme:t&&l[t]||l},p))}));return l}({themeId:m.A,defaultTheme:mp,defaultClassName:gp.root,generateClassName:fp.A.generate}),yp=vp;class bp extends i.PureComponent{render(){return(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(yp,{component:"img",src:K("bg_2.png"),sx:{display:"none"}}),(0,h.jsx)(yp,{component:"img",src:K("button_1.png"),sx:{display:"none"}}),(0,h.jsx)(yp,{component:"img",src:K("button_2.png"),sx:{display:"none"}}),(0,h.jsx)(yp,{component:"img",src:K("button_3.png"),sx:{display:"none"}}),(0,h.jsx)(yp,{component:"img",src:K("cat_ball.png"),sx:{display:"none"}})]})}}function wp(e,t){return wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wp(e,t)}function xp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wp(e,t)}var Cp=n(7119);const kp=!1,Sp=i.createContext(null);var Ep="unmounted",Ap="exited",_p="entering",Tp="entered",Rp="exiting",Op=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Ap,r.appearStatus=_p):o=Tp:o=t.unmountOnExit||t.mountOnEnter?Ep:Ap,r.state={status:o},r.nextCallback=null,r}xp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ep?{status:Ap}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==_p&&n!==Tp&&(t=_p):n!==_p&&n!==Tp||(t=Rp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===_p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Cp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ap&&this.setState({status:Ep})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Cp.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||kp?this.safeSetState({status:Tp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:_p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Tp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Cp.findDOMNode(this);t&&!kp?(this.props.onExit(r),this.safeSetState({status:Rp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ap},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ap},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Cp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ep)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,ap.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(Sp.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function Pp(){}Op.contextType=Sp,Op.propTypes={},Op.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pp,onEntering:Pp,onEntered:Pp,onExit:Pp,onExiting:Pp,onExited:Pp},Op.UNMOUNTED=Ep,Op.EXITED=Ap,Op.ENTERING=_p,Op.ENTERED=Tp,Op.EXITING=Rp;const Lp=Op;var Mp=n(1380),Np=n(4326);function Ip(){const e=f(g.A);return e[m.A]||e}const jp=e=>e.scrollTop;function $p(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}var Dp=n(1733);const Up=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Wp(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,Dp.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const zp=i.forwardRef((function(e,t){const n=Ip(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=r,in:p,onEnter:g,onEntered:m,onEntering:v,onExit:y,onExited:b,onExiting:w,style:x,timeout:C=a,TransitionComponent:k=Lp}=e,S=(0,ap.A)(e,Up),E=i.useRef(null),A=(0,Np.A)(c.ref,E,t),_=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},T=_(((e,t)=>{Wp(d,e,u),jp(e),g&&g(e,t)})),R=_(((e,t)=>{const r=$p({timeout:C,style:x,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,o.A)({},r)),e.style.transition=n.transitions.create("transform",(0,o.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)})),O=_(m),P=_(w),L=_((e=>{const t=$p({timeout:C,style:x,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Wp(d,e,u),y&&y(e)})),M=_((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),N=i.useCallback((()=>{E.current&&Wp(d,E.current,u)}),[d,u]);return i.useEffect((()=>{if(p||"down"===d||"right"===d)return;const e=(0,Mp.A)((()=>{E.current&&Wp(d,E.current,u)})),t=(0,Dp.A)(E.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,p,u]),i.useEffect((()=>{p||N()}),[p,N]),(0,h.jsx)(k,(0,o.A)({nodeRef:E,onEnter:T,onEntered:O,onEntering:R,onExit:L,onExited:M,onExiting:P,addEndListener:e=>{s&&s(E.current,e)},appear:l,in:p,timeout:C},S,{children:(e,t)=>i.cloneElement(c,(0,o.A)({ref:A,style:(0,o.A)({visibility:"exited"!==e||p?void 0:"hidden"},x,c.props.style)},t))}))})),Bp=zp;class Fp extends i.PureComponent{render(){return(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",borderWidth:40,borderStyle:"solid",borderImage:`url(${K("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}}const Hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vp={entering:{opacity:1},entered:{opacity:1}},Kp=i.forwardRef((function(e,t){const n=Ip(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Lp}=e,x=(0,ap.A)(e,Hp),C=i.useRef(null),k=(0,Np.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),A=S(((e,t)=>{jp(e);const r=$p({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),_=S(f),T=S(v),R=S((e=>{const t=$p({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:A,onEntered:_,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Vp[e],y,l.props.style),ref:k},t))}))})),qp=Kp,Gp={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class Zp extends i.PureComponent{constructor(){super(...arguments),this._aniUrl=`${K("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(Gp).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=Gp[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?(0,h.jsx)(yp,{sx:{marginLeft:8,height:118},children:(0,h.jsx)(yp,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):(0,h.jsx)(yp,{sx:{marginLeft:8,height:118}})}}class Qp extends i.PureComponent{render(){return(0,h.jsx)(qp,{in:!0,timeout:{enter:1e3},children:(0,h.jsxs)(yp,{sx:{width:1,top:"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[(0,h.jsx)(Zp,{}),(0,h.jsx)(yp,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),(0,h.jsx)(yp,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}var Yp=n(5447),Xp=n(423),Jp=n(8465),eg=n(7483);const tg=["ownerState"],ng=["variants"],rg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function og(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ig=(0,l.A)(),ag=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function sg(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function lg(e){return e?(t,n)=>n[e]:null}function cg(e,t){let{ownerState:n}=t,r=(0,ap.A)(t,tg);const i="function"===typeof e?e((0,o.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>cg(e,(0,o.A)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,ap.A)(i,ng);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.A)({ownerState:n},r,n)):e.style))})),t}return i}const ug=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=ig,rootShouldForwardProp:r=og,slotShouldForwardProp:i=og}=e,a=e=>(0,cp.A)((0,o.A)({},e,{theme:sg((0,o.A)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,lp.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=lg(ag(c))}=s,h=(0,ap.A)(s,rg),p=void 0!==u?u:c&&"Root"!==c&&"root"!==c||!1,g=d||!1;let m=og;"Root"===c||"root"===c?m=r:c?m=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,lp.default)(e,(0,o.A)({shouldForwardProp:m,label:undefined},h)),y=e=>"function"===typeof e&&e.__emotion_real!==e||(0,eg.Q)(e)?r=>cg(e,(0,o.A)({},r,{theme:sg({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=function(r){let i=y(r);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];const d=c?c.map(y):[];l&&f&&d.push((e=>{const r=sg((0,o.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const i=r.components[l].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=cg(i,(0,o.A)({},e,{theme:r}))})),f(e,a)})),l&&!p&&d.push((e=>{var r;const i=sg((0,o.A)({},e,{defaultTheme:n,themeId:t}));return cg({variants:null==i||null==(r=i.components)||null==(r=r[l])?void 0:r.variants},(0,o.A)({},e,{theme:i}))})),g||d.push(a);const h=d.length-c.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const m=v(i,...d);return e.muiName&&(m.muiName=e.muiName),m};return v.withConfig&&(b.withConfig=v.withConfig),b}}(),dg=ug;var fg=n(5537);function hg(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,i=f(r);o&&(i=i[o]||i);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,fg.A)(t.components[n].defaultProps,r):r}({theme:i,name:n,props:t});return a}const pg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"===typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!==typeof t&&"string"!==typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,i};function gg(e){return e?`Level${e}`:""}function mg(e){return e.unstable_level>0&&e.container}function vg(e){return function(t){return`var(--Grid-${t}Spacing${gg(e.unstable_level)})`}}function yg(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${gg(e.unstable_level-1)})`}}function bg(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${gg(e.unstable_level-1)})`}const wg=e=>{let{theme:t,ownerState:n}=e;const r=vg(n),o={};return pg(t.breakpoints,n.gridSize,((e,t)=>{let i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"===typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / ${bg(n)}${mg(n)?` + ${r("column")}`:""})`}),e(o,i)})),o},xg=e=>{let{theme:t,ownerState:n}=e;const r={};return pg(t.breakpoints,n.gridOffset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"===typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / ${bg(n)})`}),e(r,o)})),r},Cg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=mg(n)?{[`--Grid-columns${gg(n.unstable_level)}`]:bg(n)}:{"--Grid-columns":12};return pg(t.breakpoints,n.columns,((e,t)=>{e(r,{[`--Grid-columns${gg(n.unstable_level)}`]:t})})),r},kg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=yg(n),o=mg(n)?{[`--Grid-rowSpacing${gg(n.unstable_level)}`]:r("row")}:{};return pg(t.breakpoints,n.rowSpacing,((e,r)=>{var i;e(o,{[`--Grid-rowSpacing${gg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},Sg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=yg(n),o=mg(n)?{[`--Grid-columnSpacing${gg(n.unstable_level)}`]:r("column")}:{};return pg(t.breakpoints,n.columnSpacing,((e,r)=>{var i;e(o,{[`--Grid-columnSpacing${gg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},Eg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r={};return pg(t.breakpoints,n.direction,((e,t)=>{e(r,{flexDirection:t})})),r},Ag=e=>{let{ownerState:t}=e;const n=vg(t),r=yg(t);return(0,o.A)({minWidth:0,boxSizing:"border-box"},t.container&&(0,o.A)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!t.container||mg(t))&&(0,o.A)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},_g=e=>{const t=[];return Object.entries(e).forEach((e=>{let[n,r]=e;!1!==r&&void 0!==r&&t.push(`grid-${n}-${String(r)}`)})),t},Tg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function n(e){return void 0!==e&&("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"===typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((e=>{let[r,o]=e;n(o)&&t.push(`spacing-${r}-${String(o)}`)})),t}return[]},Rg=e=>void 0===e?[]:"object"===typeof e?Object.entries(e).map((e=>{let[t,n]=e;return`direction-${t}-${n}`})):[`direction-xs-${String(e)}`],Og=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Pg=(0,l.A)(),Lg=dg("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function Mg(e){return hg({props:e,name:"MuiGrid",defaultTheme:Pg})}const Ng=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Lg,useThemeProps:n=Mg,componentName:r="MuiGrid"}=e,a=i.createContext(void 0),s=t(Cg,Sg,kg,wg,Eg,Ag,xg),l=i.forwardRef((function(e,t){var l,c,u,d,p,g,m,v;const y=f(),b=n(e),w=(0,up.A)(b),x=i.useContext(a),{className:C,children:k,columns:S=12,container:E=!1,component:A="div",direction:_="row",wrap:T="wrap",spacing:R=0,rowSpacing:O=R,columnSpacing:P=R,disableEqualOverflow:L,unstable_level:M=0}=w,N=(0,ap.A)(w,Og);let I=L;M&&void 0!==L&&(I=e.disableEqualOverflow);const j={},$={},D={};Object.entries(N).forEach((e=>{let[t,n]=e;void 0!==y.breakpoints.values[t]?j[t]=n:void 0!==y.breakpoints.values[t.replace("Offset","")]?$[t.replace("Offset","")]=n:D[t]=n}));const U=null!=(l=e.columns)?l:M?void 0:S,W=null!=(c=e.spacing)?c:M?void 0:R,z=null!=(u=null!=(d=e.rowSpacing)?d:e.spacing)?u:M?void 0:O,B=null!=(p=null!=(g=e.columnSpacing)?g:e.spacing)?p:M?void 0:P,F=(0,o.A)({},w,{level:M,columns:U,container:E,direction:_,wrap:T,spacing:W,rowSpacing:z,columnSpacing:B,gridSize:j,gridOffset:$,disableEqualOverflow:null!=(m=null!=(v=I)?v:x)&&m,parentDisableEqualOverflow:x}),H=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e,l={root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...Rg(o),..._g(s),...n?Tg(i,t.breakpoints.keys[0]):[]]};return(0,Jp.A)(l,(e=>(0,Xp.Ay)(r,e)),{})})(F,y);let V=(0,h.jsx)(s,(0,o.A)({ref:t,as:A,ownerState:F,className:(0,sp.A)(H.root,C)},D,{children:i.Children.map(k,(e=>{var t;return i.isValidElement(e)&&(0,Yp.A)(e,["Grid"])?i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1}):e}))}));return void 0!==I&&I!==(null!=x&&x)&&(V=(0,h.jsx)(a.Provider,{value:I,children:V})),V}));return l.muiName="Grid",l}({createStyledComponent:(0,ip.Ay)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,a.b)({props:e,name:"MuiGrid2"})}),Ig=Ng;class jg extends i.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=M[e]||M[1];return(0,h.jsxs)(yp,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[(0,h.jsx)(yp,{component:"img",src:`${K(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),(0,h.jsx)(yp,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class $g extends i.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=rp.gameInfo;return(0,h.jsxs)(yp,{sx:{pb:2},children:[(0,h.jsxs)(yp,{sx:{display:"flex",alignItems:"center",pt:2},children:[(0,h.jsx)(yp,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),(0,h.jsxs)(yp,{children:[(0,h.jsx)(yp,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),(0,h.jsx)(Ig,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map(((e,t)=>(0,h.jsx)(Ig,{children:(0,h.jsx)(jg,{tagId:e})},t)))})]})]}),(0,h.jsx)(yp,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}var Dg=n(9269),Ug=n(741),Wg=n(5018),zg=n(2937);function Bg(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function Fg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Hg(e,t,n){var r=Bg(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Fg(s,"exit",e),enter:Fg(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Fg(s,"exit",e),enter:Fg(s,"enter",e)})}})),o}var Vg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Kg=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}xp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Bg(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Fg(e,"appear",n),enter:Fg(e,"enter",n),exit:Fg(e,"exit",n)})}))):Hg(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Bg(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,ap.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Vg(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(Sp.Provider,{value:o},a):i.createElement(Sp.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);Kg.propTypes={},Kg.defaultProps={component:"div",childFactory:function(e){return e}};const qg=Kg;var Gg=n(8283),Zg=n(1824);const Qg=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=i.useState(!1),p=(0,sp.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,sp.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),i.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,h.jsx)("span",{className:p,style:g,children:(0,h.jsx)("span",{className:m})})};const Yg=(0,pp.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xg=["center","classes","className"];let Jg,em,tm,nm,rm=e=>e;const om=(0,Gg.i7)(Jg||(Jg=rm`
1028
+ `,Wu=e=>{const t=Qo(e),n=qt(As),[r,o]=It(!0),[i,a]=It(!1);let s,l;Dt((()=>{const e=Zr();a(!!e&&"sent"in e&&e.sent)})),(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||oe(n.wallet.universalLink)&&Mo())&&(s=n.wallet.universalLink),(null==n?void 0:n.wallet)&&"deepLink"in n.wallet&&("custom-deeplink"===n.wallet.openMethod||oe(n.wallet.deepLink)&&Mo())&&(l=n.wallet.deepLink);const c=()=>{const e=Zr(),t="returnStrategy"in e?e.returnStrategy:Ql.returnStrategy,n=!r();o(!1),oe(s)?Tc(s,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:Ql.twaReturnUrl,forceRedirect:n}):Rc(s,l,{returnStrategy:t,forceRedirect:n},(()=>{}))};return pn(Nu,yn(t,{get children(){return[Ut((()=>e.icon)),pn(Iu,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),pn(ju,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),pn(xn,{get when(){return!i()&&("open-wallet"===e.showButton&&s||"open-wallet"!==e.showButton)},get children(){return pn($u,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return pn(Du,{})}})}}),pn(xn,{get when(){return i()},get children(){return[pn(xn,{get when(){return"open-wallet"!==e.showButton},get children(){return pn(Uu,{onClick:()=>e.onClose(),get children(){return pn(Ac,{translationKey:"common.close",children:"Close"})}})}}),pn(xn,{get when(){return"open-wallet"===e.showButton&&s},get children(){return pn(Uu,{onClick:c,get children(){return pn(Ac,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}})]}}))},zu=e=>{const t=qt(As),[n]=Gi();return pn(Wu,{headerTranslationKey:"actionModal.confirmTransaction.header",get headerTranslationValues(){return{name:t.wallet&&"name"in t.wallet?t.wallet.name:n("common.yourWallet",{},"Your wallet")}},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return pn(Oa,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Bu=e=>pn(Wu,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return pn(Aa,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),Fu=e=>pn(Wu,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return pn(Ca,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Hu=()=>pn(Ei,{get opened(){var e;return Ut((()=>null!==Zr()))()&&!0===(null==(e=Zr())?void 0:e.openModal)},get enableAndroidBackHandler(){return Ql.enableAndroidBackHandler},onClose:()=>Yr(null),"data-tc-actions-modal-container":"true",get children(){return pn(Cn,{get children(){return[pn(kn,{get when(){return"transaction-sent"===Zr().name},get children(){return pn(Fu,{onClose:()=>Yr(null)})}}),pn(kn,{get when(){return"transaction-canceled"===Zr().name},get children(){return pn(Bu,{onClose:()=>Yr(null)})}}),pn(kn,{get when(){return"confirm-transaction"===Zr().name},get children(){return pn(zu,{onClose:()=>Yr(null)})}})]}})}}),Vu=()=>{const{locale:e}=Gi()[1];Dt((()=>e(Ql.language))),Dt((()=>{Hr()&&Cs()}));const t=qt(to),n=qt(As),[r,o]=It(!1),i=()=>{var e;return"loading"===(null==(e=Ql.connectRequestParameters)?void 0:e.state)},a=Ut((()=>{var e;if(!i())return null==(e=Ql.connectRequestParameters)?void 0:e.value})),s=e=>{n.closeSingleWalletModal(e)};return Ht(t.onStatusChange((e=>{e&&s("wallet-selected")}))),Ht((()=>{o(!1)})),pn(Kl,{get opened(){return Hr()},get enableAndroidBackHandler(){return Ql.enableAndroidBackHandler},onClose:()=>s("action-cancelled"),onClickQuestion:()=>o((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[pn(xn,{get when(){return r()},get children(){return pn(zc,{onBackClick:()=>o(!1)})}}),pn(xn,{get when(){return!r()},get children(){return[pn(xn,{get when(){return i()},get children(){return[pn(ql,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),pn(Gl,{get children(){return pn(Oa,{size:"m"})}})]}}),pn(xn,{get when(){return!i()},get children(){return pn(Qn,{get component(){return ws()?ru:Pc},get wallet(){return Vr()},get additionalRequest(){return a()},onBackClick:()=>{},backDisabled:!0})}})]}})]}})},Ku=e=>{const t=Ki(Jr,Ql.language);return customElements.define(gr,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),pn(qi.Provider,{value:t,get children(){return pn(As.Provider,{get value(){return e.tonConnectUI},get children(){return pn(to.Provider,{get value(){return Ql.connector},get children(){return[pn(yr,{}),pn(ur,{theme:Co,get children(){return[pn(xn,{get when(){return Ql.buttonRootId},get children(){return pn(Gn,{get mount(){return document.getElementById(Ql.buttonRootId)},get children(){return pn(Vl,{})}})}}),pn(Qn,{component:gr,get children(){return[pn(Mu,{}),pn(Vu,{}),pn(Hu,{})]}})]}})]}})}})}})},qu=()=>{setTimeout((()=>Wr({status:"opened",closeReason:null})))},Gu=e=>{setTimeout((()=>Wr({status:"closed",closeReason:e})))},Qu=e=>{setTimeout((()=>Fr({status:"opened",closeReason:null,walletInfo:e})))},Zu=e=>{setTimeout((()=>Fr({status:"closed",closeReason:e})))},Yu=e=>{setTimeout((()=>Yr(e)))},Xu=()=>{setTimeout((()=>Yr(null)))},Ju=()=>qr(),ed=()=>Qr(null),td=(e,t)=>function(e,t,n){let r;return Nt((o=>{r=o,t===document?e():$n(t,e(),t.firstChild?null:void 0,n)}),(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).owner),()=>{r(),t.textContent=""}}((()=>pn(Ku,{tonConnectUI:t})),document.getElementById(e));class nd{constructor(e){vt(this,"connector"),vt(this,"setConnectRequestParametersCallback"),vt(this,"consumers",[]),vt(this,"tracker"),vt(this,"state",Ur()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Dt((()=>{const e=Ur();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return yt(this,null,(function*(){this.tracker.trackConnectionStarted();const e=(yield this.connector.getWallets()).find(Ee);return e?this.connectEmbeddedWallet(e):this.openWalletsModal()}))}close(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled";"action-cancelled"===e&&this.tracker.trackConnectionError("Connection was cancelled"),Gu(e)}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{Qr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Ql.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openWalletsModal(){return yt(this,null,(function*(){return Mo()&&Io(),qu(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class rd{constructor(e){vt(this,"connector"),vt(this,"consumers",[]),this.connector=e.connector,Dt((()=>{const e=Zr();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}class od{constructor(e){vt(this,"connector"),vt(this,"setConnectRequestParametersCallback"),vt(this,"consumers",[]),vt(this,"tracker"),vt(this,"state",Br()),this.connector=e.connector,this.tracker=e.tracker,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,Dt((()=>{const e=Br();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(e){return yt(this,null,(function*(){this.tracker.trackConnectionStarted();const t=Xl(yield this.connector.getWallets(),Ql.walletsListConfiguration),n=t.find(Ee);if(!!n)return this.connectEmbeddedWallet(n);const r=t.filter(Ae).find((t=>nc(t,e)));if(!!r)return this.openSingleWalletModal(r);const o=`Trying to open modal window with unknown wallet "${e}".`;throw this.tracker.trackConnectionError(o),new kr(o)}))}close(){"action-cancelled"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"action-cancelled")&&this.tracker.trackConnectionError("Connection was cancelled"),Zu("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{Qr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Ql.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}openSingleWalletModal(e){return yt(this,null,(function*(){return Mo()&&Io(),Qu(e),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class id{constructor(e){var t;vt(this,"eventPrefix","ton-connect-ui-"),vt(this,"tonConnectUiVersion"),vt(this,"tonConnectSdkVersion",null),vt(this,"eventDispatcher"),this.eventDispatcher=null!=(t=null==e?void 0:e.eventDispatcher)?t:new Ve,this.tonConnectUiVersion=e.tonConnectUiVersion,this.init().catch()}get version(){return Le({ton_connect_sdk_lib:this.tonConnectSdkVersion,ton_connect_ui_lib:this.tonConnectUiVersion})}init(){return yt(this,null,(function*(){try{yield this.setRequestVersionHandler(),this.tonConnectSdkVersion=yield this.requestTonConnectSdkVersion()}catch(sy){}}))}setRequestVersionHandler(){return yt(this,null,(function*(){yield this.eventDispatcher.addEventListener("ton-connect-ui-request-version",(()=>yt(this,null,(function*(){yield this.eventDispatcher.dispatchEvent("ton-connect-ui-response-version",Pe(this.tonConnectUiVersion))}))))}))}requestTonConnectSdkVersion(){return yt(this,null,(function*(){return new Promise(((e,t)=>yt(this,null,(function*(){try{yield this.eventDispatcher.addEventListener("ton-connect-response-version",(t=>{e(t.detail.version)}),{once:!0}),yield this.eventDispatcher.dispatchEvent("ton-connect-request-version",{type:"request-version"})}catch(sy){t(sy)}}))))}))}dispatchUserActionEvent(e){var t;try{null==(t=this.eventDispatcher)||t.dispatchEvent(`${this.eventPrefix}${e.type}`,e).catch()}catch(sy){}}trackConnectionStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ne(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackConnectionCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ie(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackConnectionError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=je(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackConnectionRestoringStarted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=$e(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackConnectionRestoringCompleted(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=De(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackConnectionRestoringError(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Ue(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackDisconnection(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=He(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackTransactionSentForSignature(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=ze(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackTransactionSigned(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Be(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}trackTransactionSigningFailed(){try{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=Fe(this.version,...t);this.dispatchUserActionEvent(r)}catch(sy){}}}class ad{constructor(e){if(vt(this,"walletInfoStorage",new jr),vt(this,"preferredWalletStorage",new $r),vt(this,"tracker"),vt(this,"walletInfo",null),vt(this,"systemThemeChangeUnsubscribe",null),vt(this,"actionsConfiguration"),vt(this,"walletsList"),vt(this,"connectRequestParametersCallback"),vt(this,"connector"),vt(this,"modal"),vt(this,"singleWalletModal"),vt(this,"transactionModal"),vt(this,"connectionRestored",Promise.resolve(!1)),e&&"connector"in e&&e.connector)this.connector=e.connector;else{if(!(e&&"manifestUrl"in e&&e.manifestUrl))throw new kr("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new qe({manifestUrl:e.manifestUrl,eventDispatcher:null==e?void 0:e.eventDispatcher})}this.tracker=new id({eventDispatcher:null==e?void 0:e.eventDispatcher,tonConnectUiVersion:"2.0.9"}),this.modal=new nd({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.singleWalletModal=new od({connector:this.connector,tracker:this.tracker,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new rd({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return Rr((t=e.map((e=>e.imageUrl)),[...new Set(t)]));var t}));const t=this.normalizeWidgetRoot(null==e?void 0:e.widgetRootId);this.subscribeToWalletChange(),!1!==(null==e?void 0:e.restoreConnection)&&(this.connectionRestored=function(e){return yt(this,null,(function*(){return yield new Promise((e=>requestAnimationFrame(e))),e()}))}((()=>yt(this,null,(function*(){return this.tracker.trackConnectionRestoringStarted(),yield this.connector.restoreConnection(),this.connector.connected?this.tracker.trackConnectionRestoringCompleted(this.wallet):(this.tracker.trackConnectionRestoringError("Connection was not restored"),this.walletInfoStorage.removeWalletInfo()),this.connector.connected}))))),this.uiOptions=xo(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();Zl({connector:this.connector,preferredWalletAppName:n}),td(t,this)}static getWallets(){return qe.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?gt(gt({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,a,s;this.checkButtonRootExist(e.buttonRootId),this.actionsConfiguration=e.actionsConfiguration,(null==(t=e.uiPreferences)?void 0:t.theme)?"SYSTEM"!==(null==(n=e.uiPreferences)?void 0:n.theme)?(null==(r=this.systemThemeChangeUnsubscribe)||r.call(this),Ao(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Ao(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?Zn.LIGHT:Zn.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?Zn.DARK:Zn.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Ao))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(a=e.uiPreferences.colorsSet,Eo[Zn.DARK]=xo(a[Zn.DARK],Eo[Zn.DARK]),Eo[Zn.LIGHT]=xo(a[Zn.LIGHT],Eo[Zn.LIGHT]),ko((e=>({colors:xo(Eo[e.theme],So[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(s=e.uiPreferences.borderRadius,ko({borderRadius:s})),Zl((t=>{var n,r;const o=xo(gt(gt(gt(gt({},e.language&&{language:e.language}),!!(null==(n=e.actionsConfiguration)?void 0:n.returnStrategy)&&{returnStrategy:e.actionsConfiguration.returnStrategy}),!!(null==(r=e.actionsConfiguration)?void 0:r.twaReturnUrl)&&{twaReturnUrl:e.actionsConfiguration.twaReturnUrl}),!!e.walletsListConfiguration&&{walletsListConfiguration:e.walletsListConfiguration}),so(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;Zl({connectRequestParameters:e}),"ready"!==(null==e?void 0:e.state)&&e||null==(t=this.connectRequestParametersCallback)||t.call(this,null==e?void 0:e.value)}getWallets(){return yt(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>yt(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(gt(gt({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return yt(this,null,(function*(){return this.modal.open()}))}closeModal(e){this.modal.close(e)}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}openSingleWalletModal(e){return yt(this,null,(function*(){return this.singleWalletModal.open(e)}))}closeSingleWalletModal(e){this.singleWalletModal.close(e)}onSingleWalletModalStateChange(e){return this.singleWalletModal.onStateChange(e)}get singleWalletModalState(){return this.singleWalletModal.state}connectWallet(){return yt(this,null,(function*(){const e=(yield this.getWallets()).find(Ee);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return this.tracker.trackDisconnection(this.wallet,"dapp"),Xu(),ed(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return yt(this,null,(function*(){if(this.tracker.trackTransactionSentForSignature(this.wallet,e),!this.connected)throw this.tracker.trackTransactionSigningFailed(this.wallet,e,"Wallet was not connected"),new kr("Connect wallet to send a transaction.");Mo()&&Io();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:a}=this.getModalsAndNotificationsConfiguration(t);Yu({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!1});const s=()=>{l.signal.aborted||(Yu({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before"),sent:!0}),this.walletInfo&&"universalLink"in this.walletInfo&&("universal-link"===this.walletInfo.openMethod||"custom-deeplink"===this.walletInfo.openMethod)&&(oe(this.walletInfo.universalLink)?Tc(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i||Ql.twaReturnUrl,forceRedirect:!1}):Rc(this.walletInfo.universalLink,this.walletInfo.deepLink,{returnStrategy:o,forceRedirect:!1},(()=>{}))))},l=new AbortController,c=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(c(),e||l.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,signal:l.signal},s);return this.tracker.trackTransactionSigned(this.wallet,e,t),Yu({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(sy){throw Yu({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),sy instanceof $?sy:(console.error(sy),new kr("Unhandled error:"+sy))}finally{c()}}))}connectEmbeddedWallet(e){return yt(this,null,(function*(){const t=t=>{Qr(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Ql.connectRequestParameters;return"loading"===(null==n?void 0:n.state)?this.connectRequestParametersCallback=t:t(null==n?void 0:n.value),yield this.waitForWalletConnection({ignoreErrors:!1})}))}connectExternalWallet(){return yt(this,null,(function*(){const e=new AbortController;qu();const t=this.onModalStateChange((n=>{const{status:r,closeReason:o}=n;"opened"!==r&&(t(),"action-cancelled"===o&&e.abort())}));return yield this.waitForWalletConnection({ignoreErrors:!0,signal:e.signal})}))}waitForWalletConnection(e){return yt(this,null,(function*(){return new Promise(((t,n)=>{this.tracker.trackConnectionStarted();const{ignoreErrors:r=!1,signal:o=null}=e;if(o&&o.aborted)return this.tracker.trackConnectionError("Connection was cancelled"),n(new kr("Wallet was not connected"));const i=e=>yt(this,null,(function*(){if(e)this.tracker.trackConnectionCompleted(e),s(),t(e);else{if(this.tracker.trackConnectionError("Connection was cancelled"),r)return;s(),n(new kr("Wallet was not connected"))}})),a=e=>{this.tracker.trackConnectionError(e.message),r||(s(),n(e))},s=this.onStatusChange((e=>i(e)),(e=>a(e)));o&&o.addEventListener("abort",(()=>{s(),n(new kr("Wallet was not connected"))}),{once:!0})}))}))}waitForSendTransaction(e,t){return yt(this,null,(function*(){return new Promise(((n,r)=>{const{transaction:o,signal:i}=e;if(i.aborted)return this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new kr("Transaction was not sent"));const a=e=>yt(this,null,(function*(){n(e)})),s=()=>{this.tracker.trackTransactionSigningFailed(this.wallet,o,"Transaction was cancelled"),r(new kr("Transaction was not sent"))};i.addEventListener("abort",s,{once:!0}),this.connector.sendTransaction(o,{onRequestSent:t,signal:i}).then((e=>(i.removeEventListener("abort",s),a(e)))).catch((e=>(i.removeEventListener("abort",s),(e=>{r(e)})(e))))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>yt(this,null,(function*(){var t;e?(yield this.updateWalletInfo(e),this.setPreferredWalletAppName((null==(t=this.walletInfo)?void 0:t.appName)||e.device.appName)):this.walletInfoStorage.removeWalletInfo()}))))}setPreferredWalletAppName(e){this.preferredWalletStorage.setPreferredWalletAppName(e),Zl({preferredWalletAppName:e})}getSelectedWalletInfo(e){return yt(this,null,(function*(){let t,n=Ju();if(!n)return null;if("name"in n)t=n;else{const r=Xl(yield this.walletsList,Ql.walletsListConfiguration).find((t=>nc(t,e.device.appName)));if(!r)throw new kr(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=gt(gt({},r),n)}return t}))}updateWalletInfo(e){return yt(this,null,(function*(){const t=yield this.getSelectedWalletInfo(e);if(t)return this.walletInfo=t,void this.walletInfoStorage.setWalletInfo(t);const n=this.walletInfoStorage.getWalletInfo();this.walletInfo=n||((yield this.walletsList).find((t=>nc(t,e.device.appName)))||null)}))}normalizeWidgetRoot(e){if(!e||!document.getElementById(e)){e="tc-widget-root";const t=document.createElement("div");t.id=e,document.body.appendChild(t)}return e}checkButtonRootExist(e){if(null!=e&&!document.getElementById(e))throw new kr(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,a;const s=["before","success","error"];let l=s;(null==(t=this.actionsConfiguration)?void 0:t.notifications)&&"all"!==(null==(n=this.actionsConfiguration)?void 0:n.notifications)&&(l=this.actionsConfiguration.notifications),(null==e?void 0:e.notifications)&&(l="all"===e.notifications?s:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?s:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?s:e.modals);const u=(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",d=(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl);let f=(null==e?void 0:e.skipRedirectToWallet)||(null==(a=this.actionsConfiguration)?void 0:a.skipRedirectToWallet)||"ios";return Mo()&&(f="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:f}}}var sd=n(3450),ld=n.n(sd);const cd="ps_app_did_mount",ud="ps_game_info_loaded",dd="ps_game_ready",fd="ps_switch_page",hd="ps_wallet_connect",pd="ps_play_button_clicked",gd="ps_purchase_completed",md="ps_check_in_completed",vd="event_purchaseCompleted",yd="event_checkInCompleted",bd={1:{bgColor:"#F5A413",borderColor:"#FEF8E2",textColor:"#fff",text:"Airdrop",icon:"tag_icon1.png",iconWidth:20,iconHeight:18},2:{bgColor:"#25A3AC",borderColor:"#FEF8E2",textColor:"#fff",text:"Earn",icon:"tag_icon2.png",iconWidth:16,iconHeight:18}};let wd=function(e){return e[e.Success=1e4]="Success",e[e.NetConfigError=10001]="NetConfigError",e[e.NetError=10002]="NetError",e[e.ParamError=10003]="ParamError",e[e.NotInit=10004]="NotInit",e[e.InitError=10005]="InitError",e[e.NotLogin=10006]="NotLogin",e[e.Logined=10007]="Logined",e[e.Purchaseing=10008]="Purchaseing",e[e.ClipboardError=10009]="ClipboardError",e[e.WalletError=10010]="WalletError",e[e.OpenInvoiceError=10011]="OpenInvoiceError",e[e.TokenUseError=10012]="TokenUseError",e[e.OrderConfirming=10013]="OrderConfirming",e[e.CheckingIn=10014]="CheckingIn",e}({}),xd=function(e){return e[e.None=0]="None",e[e.Index=1]="Index",e[e.Login=2]="Login",e[e.Purchase=3]="Purchase",e[e.CheckIn=4]="CheckIn",e}({}),Cd=function(e){return e[e.star=1]="star",e[e.tonConnect=2]="tonConnect",e}({}),kd=function(e){return e.usdt="USDT",e.ton="TON",e.cati="CATI",e.star="STAR",e}({}),Sd=function(e){return e.cati="CATI",e.usdt="USDT",e}({}),Ed=function(e){return e[e.portrait=0]="portrait",e[e.landscape=1]="landscape",e}({}),Ad=function(e){return e.users="users",e.groups="groups",e.channels="channels",e}({});const _d={[kd.usdt]:"USDT",[kd.ton]:"TON",[kd.cati]:"CATI",[kd.star]:"Star"},Td={[kd.usdt]:"coin_usdt.png",[kd.ton]:"coin_ton.png",[kd.cati]:"coin_cati.png",[kd.star]:"coin_star.png"};function Rd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Od}=Object.prototype,{getPrototypeOf:Pd}=Object,Ld=(Md=Object.create(null),e=>{const t=Od.call(e);return Md[t]||(Md[t]=t.slice(8,-1).toLowerCase())});var Md;const Nd=e=>(e=e.toLowerCase(),t=>Ld(t)===e),Id=e=>t=>typeof t===e,{isArray:jd}=Array,$d=Id("undefined");const Dd=Nd("ArrayBuffer");const Ud=Id("string"),Wd=Id("function"),zd=Id("number"),Bd=e=>null!==e&&"object"===typeof e,Fd=e=>{if("object"!==Ld(e))return!1;const t=Pd(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Hd=Nd("Date"),Vd=Nd("File"),Kd=Nd("Blob"),qd=Nd("FileList"),Gd=Nd("URLSearchParams"),[Qd,Zd,Yd,Xd]=["ReadableStream","Request","Response","Headers"].map(Nd);function Jd(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),jd(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function ef(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const tf="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,nf=e=>!$d(e)&&e!==tf;const rf=(of="undefined"!==typeof Uint8Array&&Pd(Uint8Array),e=>of&&e instanceof of);var of;const af=Nd("HTMLFormElement"),sf=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),lf=Nd("RegExp"),cf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Jd(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},uf="abcdefghijklmnopqrstuvwxyz",df="0123456789",ff={DIGIT:df,ALPHA:uf,ALPHA_DIGIT:uf+uf.toUpperCase()+df};const hf=Nd("AsyncFunction"),pf=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],tf.addEventListener("message",(e=>{let{source:t,data:o}=e;t===tf&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),tf.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,Wd(tf.postMessage)),gf="undefined"!==typeof queueMicrotask?queueMicrotask.bind(tf):"undefined"!==typeof process&&process.nextTick||pf,mf={isArray:jd,isArrayBuffer:Dd,isBuffer:function(e){return null!==e&&!$d(e)&&null!==e.constructor&&!$d(e.constructor)&&Wd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||Wd(e.append)&&("formdata"===(t=Ld(e))||"object"===t&&Wd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Dd(e.buffer),t},isString:Ud,isNumber:zd,isBoolean:e=>!0===e||!1===e,isObject:Bd,isPlainObject:Fd,isReadableStream:Qd,isRequest:Zd,isResponse:Yd,isHeaders:Xd,isUndefined:$d,isDate:Hd,isFile:Vd,isBlob:Kd,isRegExp:lf,isFunction:Wd,isStream:e=>Bd(e)&&Wd(e.pipe),isURLSearchParams:Gd,isTypedArray:rf,isFileList:qd,forEach:Jd,merge:function e(){const{caseless:t}=nf(this)&&this||{},n={},r=(r,o)=>{const i=t&&ef(n,o)||o;Fd(n[i])&&Fd(r)?n[i]=e(n[i],r):Fd(r)?n[i]=e({},r):jd(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Jd(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Jd(t,((t,r)=>{n&&Wd(t)?e[r]=Rd(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Pd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ld,kindOfTest:Nd,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(jd(e))return e;let t=e.length;if(!zd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:af,hasOwnProperty:sf,hasOwnProp:sf,reduceDescriptors:cf,freezeMethods:e=>{cf(e,((t,n)=>{if(Wd(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Wd(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return jd(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ef,global:tf,isContextDefined:nf,ALPHABET:ff,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ff.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Wd(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Bd(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=jd(e)?[]:{};return Jd(e,((e,t)=>{const i=n(e,r+1);!$d(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:hf,isThenable:e=>e&&(Bd(e)||Wd(e))&&Wd(e.then)&&Wd(e.catch),setImmediate:pf,asap:gf};function vf(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}mf.inherits(vf,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:mf.toJSONObject(this.config),code:this.code,status:this.status}}});const yf=vf.prototype,bf={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{bf[e]={value:e}})),Object.defineProperties(vf,bf),Object.defineProperty(yf,"isAxiosError",{value:!0}),vf.from=(e,t,n,r,o,i)=>{const a=Object.create(yf);return mf.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),vf.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const wf=vf;function xf(e){return mf.isPlainObject(e)||mf.isArray(e)}function Cf(e){return mf.endsWith(e,"[]")?e.slice(0,-2):e}function kf(e,t,n){return e?e.concat(t).map((function(e,t){return e=Cf(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Sf=mf.toFlatObject(mf,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Ef=function(e,t,n){if(!mf.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=mf.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!mf.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&mf.isSpecCompliantForm(t);if(!mf.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(mf.isDate(e))return e.toISOString();if(!s&&mf.isBlob(e))throw new wf("Blob is not supported. Use a Buffer instead.");return mf.isArrayBuffer(e)||mf.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(mf.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(mf.isArray(e)&&function(e){return mf.isArray(e)&&!e.some(xf)}(e)||(mf.isFileList(e)||mf.endsWith(n,"[]"))&&(s=mf.toArray(e)))return n=Cf(n),s.forEach((function(e,r){!mf.isUndefined(e)&&null!==e&&t.append(!0===a?kf([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!xf(e)||(t.append(kf(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Sf,{defaultVisitor:c,convertValue:l,isVisitable:xf});if(!mf.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!mf.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),mf.forEach(n,(function(n,i){!0===(!(mf.isUndefined(n)||null===n)&&o.call(t,n,mf.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Af(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function _f(e,t){this._pairs=[],e&&Ef(e,this,t)}const Tf=_f.prototype;Tf.append=function(e,t){this._pairs.push([e,t])},Tf.toString=function(e){const t=e?function(t){return e.call(this,t,Af)}:Af;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Rf=_f;function Of(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pf(e,t,n){if(!t)return e;const r=n&&n.encode||Of;mf.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):mf.isURLSearchParams(t)?t.toString():new Rf(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const Lf=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){mf.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Mf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nf={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Rf,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},If="undefined"!==typeof window&&"undefined"!==typeof document,jf="object"===typeof navigator&&navigator||void 0,$f=If&&(!jf||["ReactNative","NativeScript","NS"].indexOf(jf.product)<0),Df="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Uf=If&&window.location.href||"http://localhost",Wf={...e,...Nf};const zf=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&mf.isArray(r)?r.length:i,s)return mf.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&mf.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&mf.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(mf.isFormData(e)&&mf.isFunction(e.entries)){const n={};return mf.forEachEntry(e,((e,r)=>{t(function(e){return mf.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Bf={transitional:Mf,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=mf.isObject(e);o&&mf.isHTMLForm(e)&&(e=new FormData(e));if(mf.isFormData(e))return r?JSON.stringify(zf(e)):e;if(mf.isArrayBuffer(e)||mf.isBuffer(e)||mf.isStream(e)||mf.isFile(e)||mf.isBlob(e)||mf.isReadableStream(e))return e;if(mf.isArrayBufferView(e))return e.buffer;if(mf.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ef(e,new Wf.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Wf.isNode&&mf.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=mf.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ef(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(mf.isString(e))try{return(t||JSON.parse)(e),mf.trim(e)}catch(Yn){if("SyntaxError"!==Yn.name)throw Yn}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Bf.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(mf.isResponse(e)||mf.isReadableStream(e))return e;if(e&&mf.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Yn){if(n){if("SyntaxError"===Yn.name)throw wf.from(Yn,wf.ERR_BAD_RESPONSE,this,null,this.response);throw Yn}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wf.classes.FormData,Blob:Wf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};mf.forEach(["delete","get","head","post","put","patch"],(e=>{Bf.headers[e]={}}));const Ff=Bf,Hf=mf.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vf=Symbol("internals");function Kf(e){return e&&String(e).trim().toLowerCase()}function qf(e){return!1===e||null==e?e:mf.isArray(e)?e.map(qf):String(e)}function Gf(e,t,n,r,o){return mf.isFunction(r)?r.call(this,t,n):(o&&(t=n),mf.isString(t)?mf.isString(r)?-1!==t.indexOf(r):mf.isRegExp(r)?r.test(t):void 0:void 0)}class Qf{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Kf(t);if(!o)throw new Error("header name must be a non-empty string");const i=mf.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=qf(e))}const i=(e,t)=>mf.forEach(e,((e,n)=>o(e,n,t)));if(mf.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(mf.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Hf[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(mf.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Kf(e)){const n=mf.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(mf.isFunction(t))return t.call(this,e,n);if(mf.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Kf(e)){const n=mf.findKey(this,e);return!(!n||void 0===this[n]||t&&!Gf(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Kf(e)){const o=mf.findKey(n,e);!o||t&&!Gf(0,n[o],o,t)||(delete n[o],r=!0)}}return mf.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Gf(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return mf.forEach(this,((r,o)=>{const i=mf.findKey(n,o);if(i)return t[i]=qf(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=qf(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return mf.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&mf.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[Vf]=this[Vf]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Kf(e);t[r]||(!function(e,t){const n=mf.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return mf.isArray(e)?e.forEach(r):r(e),this}}Qf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),mf.reduceDescriptors(Qf.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),mf.freezeMethods(Qf);const Zf=Qf;function Yf(e,t){const n=this||Ff,r=t||n,o=Zf.from(r.headers);let i=r.data;return mf.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Xf(e){return!(!e||!e.__CANCEL__)}function Jf(e,t,n){wf.call(this,null==e?"canceled":e,wf.ERR_CANCELED,t,n),this.name="CanceledError"}mf.inherits(Jf,wf,{__CANCEL__:!0});const eh=Jf;function th(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new wf("Request failed with status code "+n.status,[wf.ERR_BAD_REQUEST,wf.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const nh=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const rh=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},oh=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=nh(50,250);return rh((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},ih=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ah=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return mf.asap((()=>e(...n)))},sh=Wf.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Wf.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Wf.origin),Wf.navigator&&/(msie|trident)/i.test(Wf.navigator.userAgent)):()=>!0,lh=Wf.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];mf.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),mf.isString(r)&&a.push("path="+r),mf.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function ch(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const uh=e=>e instanceof Zf?{...e}:e;function dh(e,t){t=t||{};const n={};function r(e,t,n,r){return mf.isPlainObject(e)&&mf.isPlainObject(t)?mf.merge.call({caseless:r},e,t):mf.isPlainObject(t)?mf.merge({},t):mf.isArray(t)?t.slice():t}function o(e,t,n,o){return mf.isUndefined(t)?mf.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!mf.isUndefined(t))return r(void 0,t)}function a(e,t){return mf.isUndefined(t)?mf.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(uh(e),uh(t),0,!0)};return mf.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);mf.isUndefined(a)&&i!==s||(n[r]=a)})),n}const fh=e=>{const t=dh({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Zf.from(s),t.url=Pf(ch(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),mf.isFormData(r))if(Wf.hasStandardBrowserEnv||Wf.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Wf.hasStandardBrowserEnv&&(o&&mf.isFunction(o)&&(o=o(t)),o||!1!==o&&sh(t.url))){const e=i&&a&&lh.read(a);e&&s.set(i,e)}return t},hh="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=fh(e);let o=r.data;const i=Zf.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=Zf.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());th((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new wf("Request aborted",wf.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new wf("Network Error",wf.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Mf;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new wf(t,o.clarifyTimeoutError?wf.ETIMEDOUT:wf.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&mf.forEach(i.toJSON(),(function(e,t){g.setRequestHeader(t,e)})),mf.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),h&&([l,u]=oh(h,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,c]=oh(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new eh(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Wf.protocols.indexOf(v)?n(new wf("Unsupported protocol "+v+":",wf.ERR_BAD_REQUEST,e)):g.send(o||null)}))},ph=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof wf?t:new eh(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new wf(`timeout ${t} of ms exceeded`,wf.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>mf.asap(a),s}},gh=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},mh=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},vh=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of mh(e))yield*gh(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},yh="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,bh=yh&&"function"===typeof ReadableStream,wh=yh&&("function"===typeof TextEncoder?(xh=new TextEncoder,e=>xh.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var xh;const Ch=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(Yn){return!1}},kh=bh&&Ch((()=>{let e=!1;const t=new Request(Wf.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Sh=bh&&Ch((()=>mf.isReadableStream(new Response("").body))),Eh={stream:Sh&&(e=>e.body)};var Ah;yh&&(Ah=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Eh[e]&&(Eh[e]=mf.isFunction(Ah[e])?t=>t[e]():(t,n)=>{throw new wf(`Response type '${e}' is not supported`,wf.ERR_NOT_SUPPORT,n)})})));const _h=async(e,t)=>{const n=mf.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(mf.isBlob(e))return e.size;if(mf.isSpecCompliantForm(e)){const t=new Request(Wf.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return mf.isArrayBufferView(e)||mf.isArrayBuffer(e)?e.byteLength:(mf.isURLSearchParams(e)&&(e+=""),mf.isString(e)?(await wh(e)).byteLength:void 0)})(t):n},Th=yh&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=fh(e);c=c?(c+"").toLowerCase():"text";let h,p=ph([o,i&&i.toAbortSignal()],a);const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(l&&kh&&"get"!==n&&"head"!==n&&0!==(m=await _h(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(mf.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ih(m,oh(ah(l)));r=vh(n.body,65536,e,t)}}mf.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;h=new Request(t,{...f,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(h);const a=Sh&&("stream"===c||"response"===c);if(Sh&&(s||a&&g)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=mf.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&ih(t,oh(ah(s),!0))||[];i=new Response(vh(i.body,65536,n,(()=>{r&&r(),g&&g()})),e)}c=c||"text";let v=await Eh[mf.findKey(Eh,c)||"text"](i,e);return!a&&g&&g(),await new Promise(((t,n)=>{th(t,n,{data:v,headers:Zf.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(v){if(g&&g(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new wf("Network Error",wf.ERR_NETWORK,e,h),{cause:v.cause||v});throw wf.from(v,v&&v.code,e,h)}}),Rh={http:null,xhr:hh,fetch:Th};mf.forEach(Rh,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Yn){}Object.defineProperty(e,"adapterName",{value:t})}}));const Oh=e=>`- ${e}`,Ph=e=>mf.isFunction(e)||null===e||!1===e,Lh=e=>{e=mf.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Ph(n)&&(r=Rh[(t=String(n)).toLowerCase()],void 0===r))throw new wf(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(Oh).join("\n"):" "+Oh(e[0]):"as no adapter specified";throw new wf("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Mh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eh(null,e)}function Nh(e){Mh(e),e.headers=Zf.from(e.headers),e.data=Yf.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Lh(e.adapter||Ff.adapter)(e).then((function(t){return Mh(e),t.data=Yf.call(e,e.transformResponse,t),t.headers=Zf.from(t.headers),t}),(function(t){return Xf(t)||(Mh(e),t&&t.response&&(t.response.data=Yf.call(e,e.transformResponse,t.response),t.response.headers=Zf.from(t.response.headers))),Promise.reject(t)}))}const Ih="1.7.8",jh={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{jh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $h={};jh.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new wf(r(o," has been removed"+(t?" in "+t:"")),wf.ERR_DEPRECATED);return t&&!$h[o]&&($h[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},jh.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Dh={assertOptions:function(e,t,n){if("object"!==typeof e)throw new wf("options must be an object",wf.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new wf("option "+i+" must be "+n,wf.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new wf("Unknown option "+i,wf.ERR_BAD_OPTION)}},validators:jh},Uh=Dh.validators;class Wh{constructor(e){this.defaults=e,this.interceptors={request:new Lf,response:new Lf}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Yn){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=dh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Dh.assertOptions(n,{silentJSONParsing:Uh.transitional(Uh.boolean),forcedJSONParsing:Uh.transitional(Uh.boolean),clarifyTimeoutError:Uh.transitional(Uh.boolean)},!1),null!=r&&(mf.isFunction(r)?t.paramsSerializer={serialize:r}:Dh.assertOptions(r,{encode:Uh.function,serialize:Uh.function},!0)),Dh.assertOptions(t,{baseUrl:Uh.spelling("baseURL"),withXsrfToken:Uh.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&mf.merge(o.common,o[t.method]);o&&mf.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Zf.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Nh.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=Nh.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Pf(ch((e=dh(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}mf.forEach(["delete","get","head","options"],(function(e){Wh.prototype[e]=function(t,n){return this.request(dh(n||{},{method:e,url:t,data:(n||{}).data}))}})),mf.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(dh(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Wh.prototype[e]=t(),Wh.prototype[e+"Form"]=t(!0)}));const zh=Wh;class Bh{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new eh(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Bh((function(t){e=t}));return{token:t,cancel:e}}}const Fh=Bh;const Hh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hh).forEach((e=>{let[t,n]=e;Hh[n]=t}));const Vh=Hh;const Kh=function e(t){const n=new zh(t),r=Rd(zh.prototype.request,n);return mf.extend(r,zh.prototype,n,{allOwnKeys:!0}),mf.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(dh(t,n))},r}(Ff);Kh.Axios=zh,Kh.CanceledError=eh,Kh.CancelToken=Fh,Kh.isCancel=Xf,Kh.VERSION=Ih,Kh.toFormData=Ef,Kh.AxiosError=wf,Kh.Cancel=Kh.CanceledError,Kh.all=function(e){return Promise.all(e)},Kh.spread=function(e){return function(t){return e.apply(null,t)}},Kh.isAxiosError=function(e){return mf.isObject(e)&&!0===e.isAxiosError},Kh.mergeConfig=dh,Kh.AxiosHeaders=Zf,Kh.formToJSON=e=>zf(mf.isHTMLForm(e)?new FormData(e):e),Kh.getAdapter=Lh,Kh.HttpStatusCode=Vh,Kh.default=Kh;const qh=Kh;const Gh=new class{constructor(){this._axios=void 0}init(){this._axios=qh.create({timeout:1e4}),this._axios.interceptors.request.use((e=>(e.url.includes("api/pluto")&&(e.baseURL=k.API_URL,k.TOKEN&&(e.headers.Authorization=`Bearer ${k.TOKEN}`)),e)),(e=>(console.log(e),Promise.reject({code:wd.NetConfigError,message:"Net config error"})))),this._axios.interceptors.response.use((e=>e),(e=>(console.log(e.toJSON()),Promise.reject({code:wd.NetError,message:e.message}))))}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={};return t&&(n.params=t),this._axios.get(e,n).then((e=>e.data))}post(e,t){return this._axios.post(e,t).then((e=>e.data))}},Qh=Gh;const Zh=new class{constructor(){this._tonConnect=null,this._tokenJettonWalletAddress={}}get connected(){return this._tonConnect.connected}get rawAddress(){return this._tonConnect.connected?this._tonConnect.wallet.account.address:null}get friendlyAddress(){return this._tonConnect.connected?Ge(this._tonConnect.wallet.account.address,!1):null}get chain(){return this._tonConnect.connected?this._tonConnect.wallet.account.chain:null}init(){let e=this._tonConnect=new ad({manifestUrl:k.MANIFEST_URL});e.setConnectRequestParameters({state:"ready",value:{tonProof:"success"}}),e.connectionRestored.then((e=>{e?(ld().publish(hd,!0),console.log("tonConnect restored.")):console.log("tonConnect not restored.")}))}connect(){return new Promise(((e,t)=>{if(this.connected)return e(this._tonConnect.account.address);const n=this._tonConnect.onStatusChange((r=>{if(console.log("onStatusChange==>"+JSON.stringify(r)),n(),!r)return t({code:wd.WalletError,message:"The wallet info is null"});let o=r.account.address;ld().publish(hd,!0),e(o)})),r=this._tonConnect.onModalStateChange((e=>{console.log("onModalStateChange==>"+JSON.stringify(e)),"closed"==e.status&&(r(),"wallet-selected"!=e.closeReason&&(n(),t({code:wd.WalletError,message:"Wallet connect failed"})))}));this._tonConnect.openModal().then((()=>{console.log("openModal success")})).catch((e=>{n(),r(),t({code:wd.WalletError,message:"Open modal error"})}))}))}disconnect(){return new Promise(((e,t)=>{if(!this.connected)return t({code:wd.WalletError,message:"Wallet not connected"});this._tonConnect.disconnect().then((()=>{ld().publish(hd,!1),this._tokenJettonWalletAddress={},e()})).catch((e=>{console.log(e),t({code:wd.WalletError,message:"Wallet disconnect error"})}))}))}sendTransaction(e){return new Promise(((t,n)=>{if(!this.connected)return n({code:wd.WalletError,message:"Wallet not connected"});const r={validUntil:Math.floor(Date.now()/1e3)+600,messages:[{...e}]};this._tonConnect.sendTransaction(r).then((e=>{console.log("transaction success"),t(e.boc)})).catch((e=>{console.log("transaction error==>"+JSON.stringify(e)),n({code:wd.WalletError,message:"Wallet transaction error"})}))}))}getTokenJettonPayInfo(e,t,n,r){return new Promise(((o,i)=>{this.getTokenJettonWalletAddress(e).then((a=>{let s=`${k.PAYLOAD_URL}/${e}/${this.rawAddress}/${r}/${t}/${n}`;Qh.get(s).then((e=>{o({address:a,payload:e.data.payload})})).catch((e=>{console.log(e),i({code:wd.TokenUseError,message:"Load token payload error"})}))})).catch((e=>{i(e)}))}))}getTokenJettonWalletAddress(e){return new Promise(((t,n)=>{if(this._tokenJettonWalletAddress[e])return t(this._tokenJettonWalletAddress[e]);let r=k.TOKENS_JETTON_ADDRESS[e];if(!r)return console.log(`token invalid: ${e}`),n({code:wd.TokenUseError,message:`${e} invalid`});let o={owner_address:this.rawAddress,jetton_address:r,limit:"1",offset:"0"};Qh.get(k.TON_CENTER_URL,o).then((r=>{var o;let i=null===(o=r.jetton_wallets[0])||void 0===o?void 0:o.address;if(!i)return n({code:wd.TokenUseError,message:`Insufficient ${e} assets`});this._tokenJettonWalletAddress[e]=i,t(i)})).catch((e=>{console.log(e),n({code:wd.TokenUseError,message:"Load jetton wallet error"})}))}))}};const Yh=new class{constructor(){this._callbackMap={},this._handlerMap={},this.onPlayButtonClicked=(e,t)=>{const n=this._handlerMap.event_playButtonClicked;n&&n.apply(null,[])},this.onPuchaseCompleted=(e,t)=>{const n=this._handlerMap[vd];n&&n.apply(null,[t]);const r=this._callbackMap[vd];r&&(r.apply(null,[t]),this._callbackMap[vd]=null)},this.onCheckInCompleted=(e,t)=>{const n=this._handlerMap[yd];n&&n.apply(null,[t]);const r=this._callbackMap[yd];r&&(r.apply(null,[t]),this._callbackMap[yd]=null)}}init(){ld().subscribe(pd,this.onPlayButtonClicked),ld().subscribe(gd,this.onPuchaseCompleted),ld().subscribe(md,this.onCheckInCompleted)}registerCallback(e,t){e&&t&&(this._callbackMap[e]=t)}registerHandler(e,t){e&&t&&(this._handlerMap[e]=t)}};class Xh{static showLog(e){k.TEST_MODE&&console.log(e)}static get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=`api/pluto/${e}/${k.GAME_ID}`;return new Promise(((r,o)=>{Qh.get(n,t).then((t=>{if(Xh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static post(e,t){const n=`api/pluto/${e}/${k.GAME_ID}`;return new Promise(((r,o)=>{Qh.post(n,t).then((t=>{if(Xh.showLog(`${e}: ${JSON.stringify(t)}`),0!=t.code)return o({code:t.code,message:t.message});r(t.data)})).catch((e=>{o(e)}))}))}static gameInfo(){const e={botname:k.BOT_NAME,initdata:k.INIT_DATA};return Xh.post("gameinfo",e)}static login(){const e={botname:k.BOT_NAME,initdata:k.INIT_DATA};return Xh.post("login",e)}static priceExchange(e){const t={amount:e};return Xh.post("priceexchange",t)}static order(e,t,n,r,o,i,a){const s={productid:e,productname:t,orderid:n,amount:r,paytype:o,currencycode:i,customdata:a};return Xh.post("order",s)}static getItem(e){const t={k:e};return Xh.post("getuserdata",t)}static setItem(e,t){const n={k:e,v:t};return Xh.post("setuserdata",n)}static finishOrder(e){const t={orderno:e};return Xh.post("finishorder",t)}static unfinishRecord(){return Xh.get("unfinishrecord")}static checkIn(e,t,n){const r={title:e,checkinid:t,customdata:n};return Xh.post("checkin",r)}static checkInVerify(e,t,n,r){const o={checknet:e,wallet:r,checkdata:t,checkinno:n};return Xh.post("checkinverify",o)}static getShareMessage(e,t,n,r){const o={link:e,allowUserChats:t,allowGroupChats:n,allowChannelChats:r};return Xh.post("share",o)}}const Jh=new class{constructor(){this._gameInfo=void 0,this._plutoId=void 0,this._firstName=void 0,this._lastName=void 0,this._icon=void 0,this._purchaseData=void 0,this._checkInData=void 0}get gameInfo(){return this._gameInfo}set gameInfo(e){this._gameInfo=e}get plutoId(){return this._plutoId}set plutoId(e){this._plutoId=e}get firstName(){return this._firstName}set firstName(e){this._firstName=e}get lastName(){return this._lastName}set lastName(e){this._lastName=e}get icon(){return this._icon}set icon(e){this._icon=e}get purchaseData(){return this._purchaseData||{}}set purchaseData(e){this._purchaseData=e}get checkInData(){return this._checkInData||{}}set checkInData(e){this._checkInData=e}};const ep=new class{get hideShare(){return"1002"==k.GAME_ID}init(){Telegram.WebApp.expand(),Telegram.WebApp.ready(),Telegram.WebApp.disableVerticalSwipes(),Telegram.WebApp.enableClosingConfirmation()}async reqGameInfo(){for(let t=1;t<=10;t++)try{const e=await Xh.gameInfo();let t={name:e.gamename,describe:e.gamesummary,icon:e.gameicon,appUrl:e.appurl,tags:e.catalog||[],orientation:e.orientation||Ed.portrait};return Jh.gameInfo=t,Jh.plutoId=e.plutoid,Promise.resolve(t)}catch(e){if(10==t)return Promise.reject({code:wd.InitError,message:"Init error"});await new Promise((e=>window.setTimeout(e,500)))}}reqLogin(){return Xh.login().then((e=>{let t=Jh.plutoId=e.plutoid,n=Jh.firstName=e.tgfirstname,r=Jh.lastName=e.tglastname,o=Jh.icon=e.icon,i=e.ticket;return k.TOKEN=e.token,k.GAME_URL=e.gameurl,{plutoId:t,firstName:n,lastName:r,icon:o,ticket:i}}))}reqPurchase(e,t,n,r,o){return Xh.priceExchange(r).then((r=>{const i=parseFloat(r.usdt)||0,a=parseFloat(r.ton)||0,s=parseFloat(r.cati)||0,l=parseInt(r.star)||0,c=parseFloat(r.usdtoff)||0,u=parseFloat(r.tonoff)||0,d=parseFloat(r.catioff)||0,f=parseFloat(r.staroff)||0,h=parseFloat(r.usdtdiscount)||0,p=parseFloat(r.tondiscount)||0,g=parseFloat(r.catidiscount)||0,m=parseFloat(r.stardiscount)||0;Jh.purchaseData={name:t,productId:e,orderId:n,customData:o,usdt:h?c:i,usdtOld:i,usdtDiscount:h,ton:p?u:a,tonOld:a,tonDiscount:p,cati:g?d:s,catiOld:s,catiDiscount:g,star:m?f:l,starOld:l,starDiscount:m}}))}reqOrder(e,t){const{productId:n,name:r,orderId:o,usdt:i,customData:a}=Jh.purchaseData;return Xh.order(n,r,o,i,e,t,a).then((e=>(Jh.purchaseData.orderNo=e.orderNo,{amount:e.amount,orderNo:e.orderNo,payload:e.payload,payLink:e.payLink,address:e.walletAddress})))}async reqFinishOrder(e){for(let n=1;n<=12;n++)try{return await Xh.finishOrder(e),Promise.resolve()}catch(t){if(22==t.code)return Promise.reject(t);if(12==n)return Promise.reject({code:wd.OrderConfirming,message:"The order is being confirmed"});await new Promise((e=>window.setTimeout(e,5e3)))}}reqUnfinishRecord(){return Xh.unfinishRecord().then((e=>{let t=[];return(e.records||[]).forEach((e=>{const n={orderNo:e.orderno,orderId:e.orderid,productId:e.productid,name:e.productname,customData:e.customdata};t.push(n)})),t}))}reqCheckIn(e,t,n){return Xh.checkIn(e,t,n).then((r=>{Jh.checkInData={name:e,orderId:t,customData:n,amount:"8000000",orderNo:r.checkinno,payload:r.payload,address:r.address}}))}async reqCheckInVerify(e,t,n,r){for(let i=1;i<=12;i++)try{return await Xh.checkInVerify(e,t,n,r),Promise.resolve()}catch(o){if(12==i)return Promise.reject(o);await new Promise((e=>window.setTimeout(e,5e3)))}}reqGetItem(e){return Xh.getItem(e).then((e=>e.v))}reqSetItem(e,t){return Xh.setItem(e,t).then((e=>{}))}reqGetShareMessage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=!0,r=!0,o=!0;return t&&t.length>0&&(n=-1!=t.indexOf(Ad.users),r=-1!=t.indexOf(Ad.groups),o=-1!=t.indexOf(Ad.channels)),Xh.getShareMessage(e,n,r,o).then((e=>e.id))}formatShareLink(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=`${Jh.gameInfo.appUrl}?startapp=g_${k.GAME_ID}_${Jh.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}openLink(e){Telegram.WebApp.openLink(e)}openTelegramLink(e){Telegram.WebApp.openTelegramLink(e)}openInvoice(e){return new Promise(((t,n)=>{Telegram.WebApp.openInvoice(e,(e=>{if("paid"==e)return t();n({code:wd.OpenInvoiceError,message:"Open invoice error"})}))}))}shareMessage(e){return new Promise(((t,n)=>{Telegram.WebApp.shareMessage(e,(e=>{if(!e)return n();t()}))}))}enableClosingConfirmation(){Telegram.WebApp.enableClosingConfirmation()}disableClosingConfirmation(){Telegram.WebApp.disableClosingConfirmation()}vibrate(e){const t={1:"light",2:"medium",3:"heavy"},n={4:"error",5:"success",6:"warning"};t[e]?Telegram.WebApp.HapticFeedback.impactOccurred(t[e]):n[e]&&Telegram.WebApp.HapticFeedback.notificationOccurred(n[e])}requestFullscreen(){try{Telegram.WebApp.requestFullscreen()}catch(e){}}addToHomeScreen(){try{Telegram.WebApp.addToHomeScreen()}catch(e){}}getSafeAreaInset(){return Telegram.WebApp.SafeAreaInset}getContentSafeAreaInset(){return Telegram.WebApp.SafeAreaInset}},tp=ep;var np=n(9254),rp=n(8587),op=n(2004),ip=n(116),ap=n(505),sp=n(237);const lp=["className","component"];var cp=n(4501),up=n(7775),dp=n(1763);const fp=(0,dp.A)("MuiBox",["root"]),hp=(0,up.A)(),pp=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=(0,ip.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ap.A),l=i.forwardRef((function(e,i){const l=f(n),c=(0,sp.A)(e),{className:u,component:d="div"}=c,p=(0,rp.A)(c,lp);return(0,h.jsx)(s,(0,o.A)({as:d,ref:i,className:(0,op.A)(u,a?a(r):r),theme:t&&l[t]||l},p))}));return l}({themeId:m.A,defaultTheme:hp,defaultClassName:fp.root,generateClassName:cp.A.generate}),gp=pp,mp=e=>`${k.RES_URL}${e}`,vp=()=>{const e=Telegram.WebApp.platform||"";return e.includes("macos")||e.includes("ios")||e.includes("pados")},yp=()=>(Telegram.WebApp.platform||"").includes("android"),bp=()=>{const e=(new it.UAParser).getDevice().type;return"mobile"==e||"tablet"==e},wp=e=>new Promise(((t,n)=>{if(!navigator||!navigator.clipboard)return n();navigator.clipboard.writeText(e).then((()=>{t()})).catch((()=>{n()}))})),xp=e=>new Promise(((t,n)=>{let r=document.createElement("textarea");r.value=e,r.style.position="absolute",r.style.opacity="0",r.style.left="-999999px",r.style.top="-999999px",document.body.appendChild(r),r.focus(),r.select();let o=document.execCommand("copy");r.remove(),o?t():n()}));class Cp extends i.PureComponent{render(){return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(gp,{component:"img",src:mp("bg_2.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:mp("button_1.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:mp("button_2.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:mp("button_3.png"),sx:{display:"none"}}),(0,h.jsx)(gp,{component:"img",src:mp("cat_ball.png"),sx:{display:"none"}})]})}}function kp(e,t){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kp(e,t)}function Sp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kp(e,t)}var Ep=n(7119);const Ap=!1,_p=i.createContext(null);var Tp="unmounted",Rp="exited",Op="entering",Pp="entered",Lp="exiting",Mp=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Rp,r.appearStatus=Op):o=Pp:o=t.unmountOnExit||t.mountOnEnter?Tp:Rp,r.state={status:o},r.nextCallback=null,r}Sp(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Tp?{status:Rp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Op&&n!==Pp&&(t=Op):n!==Op&&n!==Pp||(t=Lp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Op){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ep.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rp&&this.setState({status:Tp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ep.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Ap?this.safeSetState({status:Pp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Op},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Pp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Ep.findDOMNode(this);t&&!Ap?(this.props.onExit(r),this.safeSetState({status:Lp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Rp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Rp},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Ep.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Tp)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,rp.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(_p.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function Np(){}Mp.contextType=_p,Mp.propTypes={},Mp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Np,onEntering:Np,onEntered:Np,onExit:Np,onExiting:Np,onExited:Np},Mp.UNMOUNTED=Tp,Mp.EXITED=Rp,Mp.ENTERING=Op,Mp.ENTERED=Pp,Mp.EXITING=Lp;const Ip=Mp;var jp=n(1380),$p=n(4326);function Dp(){const e=f(g.A);return e[m.A]||e}const Up=e=>e.scrollTop;function Wp(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}var zp=n(1733);const Bp=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fp(e,t,n){var r;const o=function(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=(0,zp.A)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?o?`translateX(${o.right+s-r.left}px)`:`translateX(${i.innerWidth+s-r.left}px)`:"right"===e?o?`translateX(-${r.right-o.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:"up"===e?o?`translateY(${o.bottom+l-r.top}px)`:`translateY(${i.innerHeight+l-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}(e,t,"function"===typeof(r=n)?r():r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const Hp=i.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,container:u,direction:d="down",easing:f=r,in:p,onEnter:g,onEntered:m,onEntering:v,onExit:y,onExited:b,onExiting:w,style:x,timeout:C=a,TransitionComponent:k=Ip}=e,S=(0,rp.A)(e,Bp),E=i.useRef(null),A=(0,$p.A)(c.ref,E,t),_=e=>t=>{e&&(void 0===t?e(E.current):e(E.current,t))},T=_(((e,t)=>{Fp(d,e,u),Up(e),g&&g(e,t)})),R=_(((e,t)=>{const r=Wp({timeout:C,style:x,easing:f},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,o.A)({},r)),e.style.transition=n.transitions.create("transform",(0,o.A)({},r)),e.style.webkitTransform="none",e.style.transform="none",v&&v(e,t)})),O=_(m),P=_(w),L=_((e=>{const t=Wp({timeout:C,style:x,easing:f},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),Fp(d,e,u),y&&y(e)})),M=_((e=>{e.style.webkitTransition="",e.style.transition="",b&&b(e)})),N=i.useCallback((()=>{E.current&&Fp(d,E.current,u)}),[d,u]);return i.useEffect((()=>{if(p||"down"===d||"right"===d)return;const e=(0,jp.A)((()=>{E.current&&Fp(d,E.current,u)})),t=(0,zp.A)(E.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[d,p,u]),i.useEffect((()=>{p||N()}),[p,N]),(0,h.jsx)(k,(0,o.A)({nodeRef:E,onEnter:T,onEntered:O,onEntering:R,onExit:L,onExited:M,onExiting:P,addEndListener:e=>{s&&s(E.current,e)},appear:l,in:p,timeout:C},S,{children:(e,t)=>i.cloneElement(c,(0,o.A)({ref:A,style:(0,o.A)({visibility:"exited"!==e||p?void 0:"hidden"},x,c.props.style)},t))}))})),Vp=Hp;class Kp extends i.PureComponent{render(){return(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",borderWidth:40,borderStyle:"solid",borderImage:`url(${mp("bg_2.png")})`,borderImageRepeat:"repeat",borderImageSlice:"40 fill"}})}}const qp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Gp={entering:{opacity:1},entered:{opacity:1}},Qp=i.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Ip}=e,x=(0,rp.A)(e,qp),C=i.useRef(null),k=(0,$p.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),A=S(((e,t)=>{Up(e);const r=Wp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),d&&d(e,t)})),_=S(f),T=S(v),R=S((e=>{const t=Wp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:A,onEntered:_,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},Gp[e],y,l.props.style),ref:k},t))}))})),Zp=Qp,Yp={0:{x:0,y:0},1:{x:-222,y:0},2:{x:-444,y:0},3:{x:-666,y:0},4:{x:-888,y:0},5:{x:0,y:-119},6:{x:-222,y:-119},7:{x:-444,y:-119},8:{x:-666,y:-119},9:{x:-888,y:-119},10:{x:0,y:-238},11:{x:-222,y:-238},12:{x:-444,y:-238},13:{x:-666,y:-238},14:{x:-888,y:-238},15:{x:0,y:-357},16:{x:-222,y:-357},17:{x:-444,y:-357},18:{x:-666,y:-357},19:{x:-888,y:-357},20:{x:0,y:-476},21:{x:0,y:-595},22:{x:0,y:-714},23:{x:0,y:-833},24:{x:-222,y:-476},25:{x:-444,y:-476},26:{x:-666,y:-476},27:{x:-888,y:-476},28:{x:-222,y:-595},29:{x:-222,y:-714},30:{x:-222,y:-833},31:{x:-444,y:-595},32:{x:-666,y:-595},33:{x:-888,y:-595},34:{x:-444,y:-714},35:{x:-444,y:-833},36:{x:-666,y:-714},37:{x:-888,y:-714},38:{x:-666,y:-833},39:{x:-888,y:-833}};class Xp extends i.PureComponent{constructor(){super(...arguments),this._aniUrl=`${mp("cat_ball.png")}`,this.state={resLoaded:!1},this.formatFrames=()=>{let e=Object.keys(Yp).length,t={},n=1/e*100;for(let r=0;r<e;r++){let e=Yp[r]||{x:0,y:0};t[r*n+"%"]={backgroundPosition:`${e.x}px ${e.y}px`}}return t}}componentDidMount(){let e=new Image;e.src=this._aniUrl,e.onload=()=>{this.setState({resLoaded:!0})},e.onerror=()=>{console.log("image onerror")}}render(){const{resLoaded:e}=this.state;return e?(0,h.jsx)(gp,{sx:{marginLeft:8,height:118},children:(0,h.jsx)(gp,{sx:{width:221,height:118,backgroundImage:`url(${this._aniUrl})`,display:"inline-block",animation:"cat_ball 3.2s step-end infinite","@keyframes cat_ball":this.formatFrames()}})}):(0,h.jsx)(gp,{sx:{marginLeft:8,height:118}})}}class Jp extends i.PureComponent{render(){return(0,h.jsx)(Zp,{in:!0,timeout:{enter:1e3},children:(0,h.jsxs)(gp,{sx:{width:1,top:"6%","@media (max-height: 570px)":{top:"2%"},"@media (max-height: 480px)":{display:"none"},textAlign:"center",position:"absolute"},children:[(0,h.jsx)(Xp,{}),(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",color:"#764428"},children:"Catizen"}),(0,h.jsx)(gp,{sx:{m:"0 auto",width:360,textAlign:"center",wordWrap:"break-word",fontSize:18,fontWeight:"bold",color:"#bc805e"},children:"Catizen's Games:Play, Earn, Airdrop!"})]})})}}var eg=n(5447),tg=n(423),ng=n(8465),rg=n(7483);const og=["ownerState"],ig=["variants"],ag=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const lg=(0,l.A)(),cg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ug(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function dg(e){return e?(t,n)=>n[e]:null}function fg(e,t){let{ownerState:n}=t,r=(0,rp.A)(t,og);const i="function"===typeof e?e((0,o.A)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>fg(e,(0,o.A)({ownerState:n},r))));if(i&&"object"===typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,rp.A)(i,ig);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.A)({ownerState:n},r,n)):e.style))})),t}return i}const hg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=lg,rootShouldForwardProp:r=sg,slotShouldForwardProp:i=sg}=e,a=e=>(0,ap.A)((0,o.A)({},e,{theme:ug((0,o.A)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ip.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:c,skipVariantsResolver:u,skipSx:d,overridesResolver:f=dg(cg(c))}=s,h=(0,rp.A)(s,ag),p=void 0!==u?u:c&&"Root"!==c&&"root"!==c||!1,g=d||!1;let m=sg;"Root"===c||"root"===c?m=r:c?m=i:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const v=(0,ip.default)(e,(0,o.A)({shouldForwardProp:m,label:undefined},h)),y=e=>"function"===typeof e&&e.__emotion_real!==e||(0,rg.Q)(e)?r=>fg(e,(0,o.A)({},r,{theme:ug({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=function(r){let i=y(r);for(var s=arguments.length,c=new Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];const d=c?c.map(y):[];l&&f&&d.push((e=>{const r=ug((0,o.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const i=r.components[l].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=fg(i,(0,o.A)({},e,{theme:r}))})),f(e,a)})),l&&!p&&d.push((e=>{var r;const i=ug((0,o.A)({},e,{defaultTheme:n,themeId:t}));return fg({variants:null==i||null==(r=i.components)||null==(r=r[l])?void 0:r.variants},(0,o.A)({},e,{theme:i}))})),g||d.push(a);const h=d.length-c.length;if(Array.isArray(r)&&h>0){const e=new Array(h).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const m=v(i,...d);return e.muiName&&(m.muiName=e.muiName),m};return v.withConfig&&(b.withConfig=v.withConfig),b}}(),pg=hg;var gg=n(5537);function mg(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,i=f(r);o&&(i=i[o]||i);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,gg.A)(t.components[n].defaultProps,r):r}({theme:i,name:n,props:t});return a}const vg=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"===typeof t){(Object.keys(t).length>e.keys.length?e.keys:(o=e.keys,i=Object.keys(t),o.filter((e=>i.includes(e))))).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!==typeof t&&"string"!==typeof t||n(((e,t)=>{Object.assign(e,t)}),t);var o,i};function yg(e){return e?`Level${e}`:""}function bg(e){return e.unstable_level>0&&e.container}function wg(e){return function(t){return`var(--Grid-${t}Spacing${yg(e.unstable_level)})`}}function xg(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${yg(e.unstable_level-1)})`}}function Cg(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${yg(e.unstable_level-1)})`}const kg=e=>{let{theme:t,ownerState:n}=e;const r=wg(n),o={};return vg(t.breakpoints,n.gridSize,((e,t)=>{let i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"===typeof t&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${t} / ${Cg(n)}${bg(n)?` + ${r("column")}`:""})`}),e(o,i)})),o},Sg=e=>{let{theme:t,ownerState:n}=e;const r={};return vg(t.breakpoints,n.gridOffset,((e,t)=>{let o={};"auto"===t&&(o={marginLeft:"auto"}),"number"===typeof t&&(o={marginLeft:0===t?"0px":`calc(100% * ${t} / ${Cg(n)})`}),e(r,o)})),r},Eg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=bg(n)?{[`--Grid-columns${yg(n.unstable_level)}`]:Cg(n)}:{"--Grid-columns":12};return vg(t.breakpoints,n.columns,((e,t)=>{e(r,{[`--Grid-columns${yg(n.unstable_level)}`]:t})})),r},Ag=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=xg(n),o=bg(n)?{[`--Grid-rowSpacing${yg(n.unstable_level)}`]:r("row")}:{};return vg(t.breakpoints,n.rowSpacing,((e,r)=>{var i;e(o,{[`--Grid-rowSpacing${yg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},_g=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r=xg(n),o=bg(n)?{[`--Grid-columnSpacing${yg(n.unstable_level)}`]:r("column")}:{};return vg(t.breakpoints,n.columnSpacing,((e,r)=>{var i;e(o,{[`--Grid-columnSpacing${yg(n.unstable_level)}`]:"string"===typeof r?r:null==(i=t.spacing)?void 0:i.call(t,r)})})),o},Tg=e=>{let{theme:t,ownerState:n}=e;if(!n.container)return{};const r={};return vg(t.breakpoints,n.direction,((e,t)=>{e(r,{flexDirection:t})})),r},Rg=e=>{let{ownerState:t}=e;const n=wg(t),r=xg(t);return(0,o.A)({minWidth:0,boxSizing:"border-box"},t.container&&(0,o.A)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:`calc(${n("row")} / -2) calc(${n("column")} / -2)`},t.disableEqualOverflow&&{margin:`calc(${n("row")} * -1) 0px 0px calc(${n("column")} * -1)`}),(!t.container||bg(t))&&(0,o.A)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},Og=e=>{const t=[];return Object.entries(e).forEach((e=>{let[n,r]=e;!1!==r&&void 0!==r&&t.push(`grid-${n}-${String(r)}`)})),t},Pg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function n(e){return void 0!==e&&("string"===typeof e&&!Number.isNaN(Number(e))||"number"===typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"===typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((e=>{let[r,o]=e;n(o)&&t.push(`spacing-${r}-${String(o)}`)})),t}return[]},Lg=e=>void 0===e?[]:"object"===typeof e?Object.entries(e).map((e=>{let[t,n]=e;return`direction-${t}-${n}`})):[`direction-xs-${String(e)}`],Mg=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],Ng=(0,l.A)(),Ig=pg("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function jg(e){return mg({props:e,name:"MuiGrid",defaultTheme:Ng})}const $g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=Ig,useThemeProps:n=jg,componentName:r="MuiGrid"}=e,a=i.createContext(void 0),s=t(Eg,_g,Ag,kg,Tg,Rg,Sg),l=i.forwardRef((function(e,t){var l,c,u,d,p,g,m,v;const y=f(),b=n(e),w=(0,sp.A)(b),x=i.useContext(a),{className:C,children:k,columns:S=12,container:E=!1,component:A="div",direction:_="row",wrap:T="wrap",spacing:R=0,rowSpacing:O=R,columnSpacing:P=R,disableEqualOverflow:L,unstable_level:M=0}=w,N=(0,rp.A)(w,Mg);let I=L;M&&void 0!==L&&(I=e.disableEqualOverflow);const j={},$={},D={};Object.entries(N).forEach((e=>{let[t,n]=e;void 0!==y.breakpoints.values[t]?j[t]=n:void 0!==y.breakpoints.values[t.replace("Offset","")]?$[t.replace("Offset","")]=n:D[t]=n}));const U=null!=(l=e.columns)?l:M?void 0:S,W=null!=(c=e.spacing)?c:M?void 0:R,z=null!=(u=null!=(d=e.rowSpacing)?d:e.spacing)?u:M?void 0:O,B=null!=(p=null!=(g=e.columnSpacing)?g:e.spacing)?p:M?void 0:P,F=(0,o.A)({},w,{level:M,columns:U,container:E,direction:_,wrap:T,spacing:W,rowSpacing:z,columnSpacing:B,gridSize:j,gridOffset:$,disableEqualOverflow:null!=(m=null!=(v=I)?v:x)&&m,parentDisableEqualOverflow:x}),H=((e,t)=>{const{container:n,direction:o,spacing:i,wrap:a,gridSize:s}=e,l={root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...Lg(o),...Og(s),...n?Pg(i,t.breakpoints.keys[0]):[]]};return(0,ng.A)(l,(e=>(0,tg.Ay)(r,e)),{})})(F,y);let V=(0,h.jsx)(s,(0,o.A)({ref:t,as:A,ownerState:F,className:(0,op.A)(H.root,C)},D,{children:i.Children.map(k,(e=>{var t;return i.isValidElement(e)&&(0,eg.A)(e,["Grid"])?i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1}):e}))}));return void 0!==I&&I!==(null!=x&&x)&&(V=(0,h.jsx)(a.Provider,{value:I,children:V})),V}));return l.muiName="Grid",l}({createStyledComponent:(0,np.Ay)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,a.b)({props:e,name:"MuiGrid2"})}),Dg=$g;class Ug extends i.PureComponent{render(){const{tagId:e}=this.props,{bgColor:t,borderColor:n,textColor:r,text:o,icon:i,iconWidth:a,iconHeight:s}=bd[e]||bd[1];return(0,h.jsxs)(gp,{sx:{display:"flex",alignItems:"center",width:"fit-content",height:24,position:"relative",bgcolor:t,borderRadius:1,border:1,borderColor:n},children:[(0,h.jsx)(gp,{component:"img",src:`${mp(i)}`,sx:{width:a,height:s,position:"relative",ml:.5}}),(0,h.jsx)(gp,{sx:{position:"relative",display:"inline-block",fontSize:16,fontWeight:"bold",color:r,mx:.5},children:o})]})}}class Wg extends i.PureComponent{render(){const{icon:e,name:t,describe:n,tags:r}=Jh.gameInfo;return(0,h.jsxs)(gp,{sx:{pb:2},children:[(0,h.jsxs)(gp,{sx:{display:"flex",alignItems:"center",pt:2},children:[(0,h.jsx)(gp,{component:"img",src:e,sx:{width:66,height:66,border:"2px solid #774428",borderRadius:3.5}}),(0,h.jsxs)(gp,{children:[(0,h.jsx)(gp,{sx:{ml:1.25,fontSize:20,fontWeight:"bold",color:"#7c4b30",textAlign:"left"},children:t}),(0,h.jsx)(Dg,{container:!0,columnSpacing:.5,sx:{ml:1.25},children:r.map(((e,t)=>(0,h.jsx)(Dg,{children:(0,h.jsx)(Ug,{tagId:e})},t)))})]})]}),(0,h.jsx)(gp,{sx:{mt:1,fontSize:14,fontWeight:"bold",color:"#ca996e",textAlign:"left",wordWrap:"break-word"},children:n})]})}}var zg=n(9269),Bg=n(741),Fg=n(5018),Hg=n(2937);function Vg(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function Kg(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qg(e,t,n){var r=Vg(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:Kg(s,"exit",e),enter:Kg(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:Kg(s,"exit",e),enter:Kg(s,"enter",e)})}})),o}var Gg=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Qg=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Sp(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Vg(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:Kg(e,"appear",n),enter:Kg(e,"enter",n),exit:Kg(e,"exit",n)})}))):qg(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Vg(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,o.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,rp.A)(e,["component","childFactory"]),o=this.state.contextValue,a=Gg(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(_p.Provider,{value:o},a):i.createElement(_p.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);Qg.propTypes={},Qg.defaultProps={component:"div",childFactory:function(e){return e}};const Zg=Qg;var Yg=n(8283),Xg=n(1824);const Jg=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=i.useState(!1),p=(0,op.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,op.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),i.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,h.jsx)("span",{className:p,style:g,children:(0,h.jsx)("span",{className:m})})};const em=(0,dp.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tm=["center","classes","className"];let nm,rm,om,im,am=e=>e;const sm=(0,Yg.i7)(nm||(nm=am`
1029
1029
  0% {
1030
1030
  transform: scale(0);
1031
1031
  opacity: 0.1;
@@ -1035,7 +1035,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1035
1035
  transform: scale(1);
1036
1036
  opacity: 0.3;
1037
1037
  }
1038
- `)),im=(0,Gg.i7)(em||(em=rm`
1038
+ `)),lm=(0,Yg.i7)(rm||(rm=am`
1039
1039
  0% {
1040
1040
  opacity: 1;
1041
1041
  }
@@ -1043,7 +1043,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1043
1043
  100% {
1044
1044
  opacity: 0;
1045
1045
  }
1046
- `)),am=(0,Gg.i7)(tm||(tm=rm`
1046
+ `)),cm=(0,Yg.i7)(om||(om=am`
1047
1047
  0% {
1048
1048
  transform: scale(1);
1049
1049
  }
@@ -1055,7 +1055,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1055
1055
  100% {
1056
1056
  transform: scale(1);
1057
1057
  }
1058
- `)),sm=(0,ip.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),lm=(0,ip.Ay)(Qg,{name:"MuiTouchRipple",slot:"Ripple"})(nm||(nm=rm`
1058
+ `)),um=(0,np.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dm=(0,np.Ay)(Jg,{name:"MuiTouchRipple",slot:"Ripple"})(im||(im=am`
1059
1059
  opacity: 0;
1060
1060
  position: absolute;
1061
1061
 
@@ -1098,7 +1098,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1098
1098
  animation-iteration-count: infinite;
1099
1099
  animation-delay: 200ms;
1100
1100
  }
1101
- `),Yg.rippleVisible,om,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Yg.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),Yg.child,Yg.childLeaving,im,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),Yg.childPulsate,am,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),cm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:l}=n,c=(0,ap.A)(n,Xg),[u,d]=i.useState([]),f=i.useRef(0),p=i.useRef(null);i.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[u]);const g=i.useRef(!1),m=(0,Zg.A)(),v=i.useRef(null),y=i.useRef(null),b=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;d((e=>[...e,(0,h.jsx)(lm,{classes:{ripple:(0,sp.A)(s.ripple,Yg.ripple),rippleVisible:(0,sp.A)(s.rippleVisible,Yg.rippleVisible),ripplePulsate:(0,sp.A)(s.ripplePulsate,Yg.ripplePulsate),child:(0,sp.A)(s.child,Yg.child),childLeaving:(0,sp.A)(s.childLeaving,Yg.childLeaving),childPulsate:(0,sp.A)(s.childPulsate,Yg.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,p.current=i}),[s]),w=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},m.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,b,m]),x=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),C=i.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void m.start(0,(()=>{C(e,t)}));v.current=null,d((e=>e.length>0?e.slice(1):e)),p.current=t}),[m]);return i.useImperativeHandle(t,(()=>({pulsate:x,start:w,stop:C})),[x,w,C]),(0,h.jsx)(sm,(0,o.A)({className:(0,sp.A)(Yg.root,s.root,l),ref:y},c,{children:(0,h.jsx)(qg,{component:null,exit:!0,children:u})}))})),um=cm;function dm(e){return(0,Xp.Ay)("MuiButtonBase",e)}const fm=(0,pp.A)("MuiButtonBase",["root","disabled","focusVisible"]),hm=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],pm=(0,ip.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:l,className:c,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:m="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:C,onKeyDown:k,onKeyUp:S,onMouseDown:E,onMouseLeave:A,onMouseUp:_,onTouchEnd:T,onTouchMove:R,onTouchStart:O,tabIndex:P=0,TouchRippleProps:L,touchRippleRef:M,type:N}=n,I=(0,ap.A)(n,hm),j=i.useRef(null),$=i.useRef(null),D=(0,Np.A)($,M),{isFocusVisibleRef:U,onFocus:W,onBlur:z,ref:B}=(0,zg.A)(),[F,H]=i.useState(!1);d&&F&&H(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,K]=i.useState(!1);i.useEffect((()=>{K(!0)}),[]);const q=V&&!f&&!d;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return(0,Wg.A)((r=>{t&&t(r);return!n&&$.current&&$.current[e](r),!0}))}i.useEffect((()=>{F&&g&&!f&&V&&$.current.pulsate()}),[f,g,F,V]);const Z=G("start",E),Q=G("stop",b),Y=G("stop",w),X=G("stop",_),J=G("stop",(e=>{F&&e.preventDefault(),A&&A(e)})),ee=G("start",O),te=G("stop",T),ne=G("stop",R),re=G("stop",(e=>{z(e),!1===U.current&&H(!1),v&&v(e)}),!1),oe=(0,Wg.A)((e=>{j.current||(j.current=e.currentTarget),W(e),!0===U.current&&(H(!0),C&&C(e)),x&&x(e)})),ie=()=>{const e=j.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ae=i.useRef(!1),se=(0,Wg.A)((e=>{g&&!ae.current&&F&&$.current&&" "===e.key&&(ae.current=!0,$.current.stop(e,(()=>{$.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))})),le=(0,Wg.A)((e=>{g&&" "===e.key&&$.current&&F&&!e.defaultPrevented&&(ae.current=!1,$.current.stop(e,(()=>{$.current.pulsate(e)}))),S&&S(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=u;"button"===ce&&(I.href||I.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===N?"button":N,ue.disabled=d):(I.href||I.to||(ue.role="button"),d&&(ue["aria-disabled"]=d));const de=(0,Np.A)(t,B,j);const fe=(0,o.A)({},n,{centerRipple:s,component:u,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:P,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,Jp.A)(i,dm,o);return n&&r&&(a.root+=` ${r}`),a})(fe);return(0,h.jsxs)(pm,(0,o.A)({as:ce,className:(0,sp.A)(he.root,c),ownerState:fe,onBlur:re,onClick:y,onContextMenu:Q,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:Z,onMouseLeave:J,onMouseUp:X,onDragLeave:Y,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:de,tabIndex:d?-1:P,type:N},ue,I,{children:[l,q?(0,h.jsx)(um,(0,o.A)({ref:D,center:s},L)):null]}))})),mm=gm;var vm=n(1676);function ym(e){return(0,Xp.Ay)("MuiButton",e)}const bm=(0,pp.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const wm=i.createContext({});const xm=i.createContext(void 0),Cm=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],km=e=>(0,o.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Sm=(0,ip.Ay)(mm,{shouldForwardProp:e=>(0,Ug.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,vm.A)(n.color)}`],t[`size${(0,vm.A)(n.size)}`],t[`${n.variant}Size${(0,vm.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,o.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Dg.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Dg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,Dg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${bm.focusVisible}`]:(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${bm.disabled}`]:(0,o.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,Dg.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bm.disabled}`]:{boxShadow:"none"}}})),Em=(0,ip.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,vm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},km(t))})),Am=(0,ip.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,vm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},km(t))})),_m=i.forwardRef((function(e,t){const n=i.useContext(wm),r=i.useContext(xm),s=(0,fg.A)(n,e),l=(0,a.b)({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:w="medium",startIcon:x,type:C,variant:k="text"}=l,S=(0,ap.A)(l,Cm),E=(0,o.A)({},l,{color:u,component:d,disabled:p,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:C,variant:k}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,vm.A)(t)}`,`size${(0,vm.A)(i)}`,`${a}Size${(0,vm.A)(i)}`,`color${(0,vm.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,vm.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,vm.A)(i)}`]},c=(0,Jp.A)(l,ym,s);return(0,o.A)({},s,c)})(E),_=x&&(0,h.jsx)(Em,{className:A.startIcon,ownerState:E,children:x}),T=v&&(0,h.jsx)(Am,{className:A.endIcon,ownerState:E,children:v}),R=r||"";return(0,h.jsxs)(Sm,(0,o.A)({ownerState:E,className:(0,sp.A)(n.className,A.root,f,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:(0,sp.A)(A.focusVisible,y),ref:t,type:C},S,{classes:A,children:[_,c,T]}))})),Tm=_m;var Rm=n(4300);class Om extends i.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i}=this.props,a={color:n,fontSize:t,fontWeight:"bold",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:"attr(content)",WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return(0,h.jsx)(yp,{content:e,sx:a,children:e})}}class Pm extends i.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{rp.plutoId?op.share():console.log("pluto id is null")}}render(){return(0,h.jsx)(yp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Tm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${K("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Rm.A,{sx:{width:26,height:26,position:"relative",mr:1}}),(0,h.jsx)(Om,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}function Lm(e){return(0,Xp.Ay)("MuiCircularProgress",e)}(0,pp.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Mm=["className","color","disableShrink","size","style","thickness","value","variant"];let Nm,Im,jm,$m,Dm=e=>e;const Um=44,Wm=(0,Gg.i7)(Nm||(Nm=Dm`
1101
+ `),em.rippleVisible,sm,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),em.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),em.child,em.childLeaving,lm,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),em.childPulsate,cm,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),fm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:l}=n,c=(0,rp.A)(n,tm),[u,d]=i.useState([]),f=i.useRef(0),p=i.useRef(null);i.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[u]);const g=i.useRef(!1),m=(0,Xg.A)(),v=i.useRef(null),y=i.useRef(null),b=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:i}=e;d((e=>[...e,(0,h.jsx)(dm,{classes:{ripple:(0,op.A)(s.ripple,em.ripple),rippleVisible:(0,op.A)(s.rippleVisible,em.rippleVisible),ripplePulsate:(0,op.A)(s.ripplePulsate,em.ripplePulsate),child:(0,op.A)(s.child,em.child),childLeaving:(0,op.A)(s.childLeaving,em.childLeaving),childPulsate:(0,op.A)(s.childPulsate,em.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},f.current)])),f.current+=1,p.current=i}),[s]),w=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=a?null:y.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},m.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):b({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,b,m]),x=i.useCallback((()=>{w({},{pulsate:!0})}),[w]),C=i.useCallback(((e,t)=>{if(m.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void m.start(0,(()=>{C(e,t)}));v.current=null,d((e=>e.length>0?e.slice(1):e)),p.current=t}),[m]);return i.useImperativeHandle(t,(()=>({pulsate:x,start:w,stop:C})),[x,w,C]),(0,h.jsx)(um,(0,o.A)({className:(0,op.A)(em.root,s.root,l),ref:y},c,{children:(0,h.jsx)(Zg,{component:null,exit:!0,children:u})}))})),hm=fm;function pm(e){return(0,tg.Ay)("MuiButtonBase",e)}const gm=(0,dp.A)("MuiButtonBase",["root","disabled","focusVisible"]),mm=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],vm=(0,np.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${gm.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ym=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:l,className:c,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:m="a",onBlur:v,onClick:y,onContextMenu:b,onDragLeave:w,onFocus:x,onFocusVisible:C,onKeyDown:k,onKeyUp:S,onMouseDown:E,onMouseLeave:A,onMouseUp:_,onTouchEnd:T,onTouchMove:R,onTouchStart:O,tabIndex:P=0,TouchRippleProps:L,touchRippleRef:M,type:N}=n,I=(0,rp.A)(n,mm),j=i.useRef(null),$=i.useRef(null),D=(0,$p.A)($,M),{isFocusVisibleRef:U,onFocus:W,onBlur:z,ref:B}=(0,Hg.A)(),[F,H]=i.useState(!1);d&&F&&H(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{H(!0),j.current.focus()}})),[]);const[V,K]=i.useState(!1);i.useEffect((()=>{K(!0)}),[]);const q=V&&!f&&!d;function G(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return(0,Fg.A)((r=>{t&&t(r);return!n&&$.current&&$.current[e](r),!0}))}i.useEffect((()=>{F&&g&&!f&&V&&$.current.pulsate()}),[f,g,F,V]);const Q=G("start",E),Z=G("stop",b),Y=G("stop",w),X=G("stop",_),J=G("stop",(e=>{F&&e.preventDefault(),A&&A(e)})),ee=G("start",O),te=G("stop",T),ne=G("stop",R),re=G("stop",(e=>{z(e),!1===U.current&&H(!1),v&&v(e)}),!1),oe=(0,Fg.A)((e=>{j.current||(j.current=e.currentTarget),W(e),!0===U.current&&(H(!0),C&&C(e)),x&&x(e)})),ie=()=>{const e=j.current;return u&&"button"!==u&&!("A"===e.tagName&&e.href)},ae=i.useRef(!1),se=(0,Fg.A)((e=>{g&&!ae.current&&F&&$.current&&" "===e.key&&(ae.current=!0,$.current.stop(e,(()=>{$.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!d&&(e.preventDefault(),y&&y(e))})),le=(0,Fg.A)((e=>{g&&" "===e.key&&$.current&&F&&!e.defaultPrevented&&(ae.current=!1,$.current.stop(e,(()=>{$.current.pulsate(e)}))),S&&S(e),y&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&y(e)}));let ce=u;"button"===ce&&(I.href||I.to)&&(ce=m);const ue={};"button"===ce?(ue.type=void 0===N?"button":N,ue.disabled=d):(I.href||I.to||(ue.role="button"),d&&(ue["aria-disabled"]=d));const de=(0,$p.A)(t,B,j);const fe=(0,o.A)({},n,{centerRipple:s,component:u,disabled:d,disableRipple:f,disableTouchRipple:p,focusRipple:g,tabIndex:P,focusVisible:F}),he=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,ng.A)(i,pm,o);return n&&r&&(a.root+=` ${r}`),a})(fe);return(0,h.jsxs)(vm,(0,o.A)({as:ce,className:(0,op.A)(he.root,c),ownerState:fe,onBlur:re,onClick:y,onContextMenu:Z,onFocus:oe,onKeyDown:se,onKeyUp:le,onMouseDown:Q,onMouseLeave:J,onMouseUp:X,onDragLeave:Y,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:de,tabIndex:d?-1:P,type:N},ue,I,{children:[l,q?(0,h.jsx)(hm,(0,o.A)({ref:D,center:s},L)):null]}))})),bm=ym;var wm=n(1676);function xm(e){return(0,tg.Ay)("MuiButton",e)}const Cm=(0,dp.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const km=i.createContext({});const Sm=i.createContext(void 0),Em=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Am=e=>(0,o.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),_m=(0,np.Ay)(bm,{shouldForwardProp:e=>(0,Bg.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${(0,wm.A)(n.color)}`],t[`size${(0,wm.A)(n.size)}`],t[`${n.variant}Size${(0,wm.A)(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,i;const a="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],s="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,o.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,o.A)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,zg.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,zg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:`1px solid ${(t.vars||t).palette[n.color].main}`,backgroundColor:t.vars?`rgba(${t.vars.palette[n.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:(0,zg.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:s,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),[`&.${Cm.focusVisible}`]:(0,o.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),[`&.${Cm.disabled}`]:(0,o.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[n.color].mainChannel} / 0.5)`:`1px solid ${(0,zg.X4)(t.palette[n.color].main,.5)}`},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(i=t.palette).getContrastText)?void 0:r.call(i,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:a,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cm.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cm.disabled}`]:{boxShadow:"none"}}})),Tm=(0,np.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${(0,wm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},Am(t))})),Rm=(0,np.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${(0,wm.A)(n.size)}`]]}})((e=>{let{ownerState:t}=e;return(0,o.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},Am(t))})),Om=i.forwardRef((function(e,t){const n=i.useContext(km),r=i.useContext(Sm),s=(0,gg.A)(n,e),l=(0,a.b)({props:s,name:"MuiButton"}),{children:c,color:u="primary",component:d="button",className:f,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:y,fullWidth:b=!1,size:w="medium",startIcon:x,type:C,variant:k="text"}=l,S=(0,rp.A)(l,Em),E=(0,o.A)({},l,{color:u,component:d,disabled:p,disableElevation:g,disableFocusRipple:m,fullWidth:b,size:w,type:C,variant:k}),A=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,l={root:["root",a,`${a}${(0,wm.A)(t)}`,`size${(0,wm.A)(i)}`,`${a}Size${(0,wm.A)(i)}`,`color${(0,wm.A)(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,wm.A)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,wm.A)(i)}`]},c=(0,ng.A)(l,xm,s);return(0,o.A)({},s,c)})(E),_=x&&(0,h.jsx)(Tm,{className:A.startIcon,ownerState:E,children:x}),T=v&&(0,h.jsx)(Rm,{className:A.endIcon,ownerState:E,children:v}),R=r||"";return(0,h.jsxs)(_m,(0,o.A)({ownerState:E,className:(0,op.A)(n.className,A.root,f,R),component:d,disabled:p,focusRipple:!m,focusVisibleClassName:(0,op.A)(A.focusVisible,y),ref:t,type:C},S,{classes:A,children:[_,c,T]}))})),Pm=Om;var Lm=n(4300);class Mm extends i.PureComponent{render(){const{content:e,fontSize:t,color:n,strokeColor:r,strokeWidth:o,decorationLine:i}=this.props,a={color:n,fontSize:t,fontWeight:"bold",position:"relative",zIndex:0,textTransform:"none",textDecorationLine:i?"line-through":"none",textDecorationColor:"#f30808",textDecorationThickness:"0.1em","&:after":{content:"attr(content)",WebkitTextStrokeColor:r,WebkitTextStrokeWidth:o,zIndex:-1,position:"absolute",left:0,top:0}};return(0,h.jsx)(gp,{content:e,sx:a,children:e})}}function Nm(e){return(0,tg.Ay)("MuiCircularProgress",e)}(0,dp.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Im=["className","color","disableShrink","size","style","thickness","value","variant"];let jm,$m,Dm,Um,Wm=e=>e;const zm=44,Bm=(0,Yg.i7)(jm||(jm=Wm`
1102
1102
  0% {
1103
1103
  transform: rotate(0deg);
1104
1104
  }
@@ -1106,7 +1106,7 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1106
1106
  100% {
1107
1107
  transform: rotate(360deg);
1108
1108
  }
1109
- `)),zm=(0,Gg.i7)(Im||(Im=Dm`
1109
+ `)),Fm=(0,Yg.i7)($m||($m=Wm`
1110
1110
  0% {
1111
1111
  stroke-dasharray: 1px, 200px;
1112
1112
  stroke-dashoffset: 0;
@@ -1121,8 +1121,8 @@ var PlutoSDK;(()=>{var e={8603:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=fu
1121
1121
  stroke-dasharray: 100px, 200px;
1122
1122
  stroke-dashoffset: -125px;
1123
1123
  }
1124
- `)),Bm=(0,ip.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,vm.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Gg.AH)(jm||(jm=Dm`
1124
+ `)),Hm=(0,np.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,wm.A)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,Yg.AH)(Dm||(Dm=Wm`
1125
1125
  animation: ${0} 1.4s linear infinite;
1126
- `),Wm)})),Fm=(0,ip.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Hm=(0,ip.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,vm.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Gg.AH)($m||($m=Dm`
1126
+ `),Bm)})),Vm=(0,np.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Km=(0,np.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,wm.A)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,o.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,Yg.AH)(Um||(Um=Wm`
1127
1127
  animation: ${0} 1.4s ease-in-out infinite;
1128
- `),zm)})),Vm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=(0,ap.A)(n,Mm),g=(0,o.A)({},n,{color:i,disableShrink:s,size:l,thickness:u,value:d,variant:f}),m=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,vm.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,vm.A)(n)}`,o&&"circleDisableShrink"]};return(0,Jp.A)(i,Lm,t)})(g),v={},y={},b={};if("determinate"===f){const e=2*Math.PI*((Um-u)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,h.jsx)(Bm,(0,o.A)({className:(0,sp.A)(m.root,r),style:(0,o.A)({width:l,height:l},y,c),ownerState:g,ref:t,role:"progressbar"},b,p,{children:(0,h.jsx)(Fm,{className:m.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,h.jsx)(Hm,{className:m.circle,style:v,ownerState:g,cx:Um,cy:Um,r:(Um-u)/2,fill:"none",strokeWidth:u})})}))})),Km=Vm;class qm extends i.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){C().subscribe(E,this.onReady)}componentWillUnmount(){C().unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?(0,h.jsx)(yp,{sx:{height:50,position:"relative",mx:1.25},children:(0,h.jsxs)(Tm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${K("button_1.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Om,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):(0,h.jsxs)(yp,{sx:{height:50,position:"relative",mx:1.25},children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${K("button_3.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsxs)(yp,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(Om,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),(0,h.jsx)(Km,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}const Gm=(0,ip.Ay)(yp)((()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"})));class Zm extends i.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(A,j.None)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(T,{})}}render(){const{showSlide:e}=this.state,t=op.hideShare;return(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${K("bg_1.png")})`}}),(0,h.jsx)(Qp,{}),(0,h.jsx)(yp,{sx:{width:1,bottom:Q()?40:20,position:"absolute"},children:(0,h.jsx)(Bp,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(yp,{children:[(0,h.jsxs)(Gm,{children:[(0,h.jsx)(Fp,{}),(0,h.jsxs)(yp,{sx:{position:"relative",px:4,pt:1,pb:4},children:[(0,h.jsx)($g,{}),t?null:(0,h.jsx)(Pm,{})]})]}),(0,h.jsx)(Gm,{sx:{paddingTop:2},children:(0,h.jsx)(qm,{onClick:this.onClickPlay})})]})})})]})}}var Qm=n(8286),Ym=n(7937);const Xm=["component","direction","spacing","divider","children","className","useFlexGap"],Jm=(0,l.A)(),ev=dg("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function tv(e){return hg({props:e,name:"MuiStack",defaultTheme:Jm})}function nv(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e)),[])}const rv=e=>{let{ownerState:t,theme:n}=e,r=(0,o.A)({display:"flex",flexDirection:"column"},(0,Qm.NI)({theme:n},(0,Qm.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Ym.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,Qm.kW)({values:t.direction,base:o}),a=(0,Qm.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Ym._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,Ym._W)(e,n)}};var o};r=(0,eg.A)(r,(0,Qm.NI)({theme:n},a,s))}return r=(0,Qm.iZ)(n.breakpoints,r),r};const ov=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=ev,useThemeProps:n=tv,componentName:r="MuiStack"}=e,a=t(rv),s=i.forwardRef((function(e,t){const i=n(e),s=(0,up.A)(i),{component:l="div",direction:c="column",spacing:u=0,divider:d,children:f,className:p,useFlexGap:g=!1}=s,m=(0,ap.A)(s,Xm),v={direction:c,spacing:u,useFlexGap:g},y=(0,Jp.A)({root:["root"]},(e=>(0,Xp.Ay)(r,e)),{});return(0,h.jsx)(a,(0,o.A)({as:l,ownerState:v,ref:t,className:(0,sp.A)(y.root,p)},m,{children:d?nv(f,d):f}))}));return s}({createStyledComponent:(0,ip.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:"MuiStack"})}),iv=ov;class av extends i.PureComponent{render(){return(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}}class sv extends i.PureComponent{render(){const{title:e}=this.props;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(yp,{sx:{width:1,height:70,position:"relative"},children:(0,h.jsxs)(yp,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(yp,{component:"img",src:K("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5}}),(0,h.jsx)(yp,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),(0,h.jsx)(yp,{component:"img",src:K("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5}})]})}),(0,h.jsx)(yp,{sx:{mx:5,borderBottom:"3px solid #a8774d",position:"relative"}})]})}}const lv=(0,ip.Ay)(Tm)((()=>({color:"#fff",width:100,height:30,borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none","&:hover":{backgroundColor:"#e0c6a0",borderColor:"#e0c6a0"}}))),cv=(0,ip.Ay)(Tm)((()=>({color:"#666666",width:100,height:30,borderRadius:13,backgroundColor:"#fff",borderColor:"#787772",textTransform:"none","&:hover":{backgroundColor:"#fff",borderColor:"#787772"}})));class uv extends i.PureComponent{constructor(){super(...arguments),this.state={address:ep.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:ep.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{ep.disconnect()}}componentDidMount(){C().subscribe(_,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return(0,h.jsxs)(iv,{spacing:1,sx:{float:"right",width:100,pt:.5},children:[(0,h.jsx)(lv,{variant:"outlined",onClick:this.onClickWallet,children:r}),t?(0,h.jsx)(cv,{variant:"outlined",onClick:this.onClickDisconnect,children:"Disconnect"}):null]})}}class dv extends i.PureComponent{render(){const{name:e,usdt:t}=rp.purchaseData;return(0,h.jsxs)(yp,{sx:{width:1,height:120,position:"relative"},children:[(0,h.jsxs)(yp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:[(0,h.jsx)(yp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e}),(0,h.jsx)(yp,{sx:{width:1,display:"flex",justifyContent:"center"},children:(0,h.jsx)(Om,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),(0,h.jsx)(yp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(uv,{})})]})}}class fv extends i.PureComponent{render(){const{currency:e,price:t,oldPrice:n,discount:r,onClickPay:o}=this.props,i=K(z[e]),a=W[e],s=`${e==D.star?t:t.toFixed(2)} ${a}`,l=`\xa0${e==D.star?n:n.toFixed(2)} ${a}\xa0`;return(0,h.jsxs)(yp,{sx:{height:50,position:"relative"},children:[(0,h.jsxs)(Tm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:o,children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${K("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(yp,{component:"img",src:i,sx:{width:30,height:30,mr:1,position:"relative"}}),(0,h.jsx)(Om,{content:s,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),(0,h.jsx)(yp,{sx:{width:"10px"}}),r>0?(0,h.jsx)(Om,{content:l,fontSize:14,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),r>0?(0,h.jsx)(yp,{sx:{top:-12,right:-20,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:(0,h.jsxs)(yp,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[(0,h.jsx)(yp,{component:"img",src:K("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),(0,h.jsx)(yp,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*r+"%"}),(0,h.jsx)(yp,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})}):null]})}}const hv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pv={entering:{transform:"none"},entered:{transform:"none"}},gv=i.forwardRef((function(e,t){const n=Ip(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Lp}=e,x=(0,ap.A)(e,hv),C=i.useRef(null),k=(0,Np.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),A=S(((e,t)=>{jp(e);const r=$p({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),d&&d(e,t)})),_=S(f),T=S(v),R=S((e=>{const t=$p({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:A,onEntered:_,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({transform:"scale(0)",visibility:"exited"!==e||u?void 0:"hidden"},pv[e],y,l.props.style),ref:k},t))}))})),mv=gv;class vv extends i.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout((()=>{bv(e)}),500)}}componentDidMount(){this._aniTimer=window.setTimeout((()=>{this.setState({checked:!1})}),2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return(0,h.jsx)(yp,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:(0,h.jsx)(Bp,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:(0,h.jsx)(yp,{children:(0,h.jsx)(mv,{in:!0,timeout:{enter:1e3},children:(0,h.jsx)(yp,{sx:{display:"flex"},children:(0,h.jsx)(qp,{in:e,timeout:{enter:1e3,exit:1e3},children:(0,h.jsx)(yp,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const yv={},bv=e=>{var t;const n=yv[e];if(!n)return;const r=n.div;n.root.unmount(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),delete yv[e]},wv=e=>{const n=((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(1,1e3)+"-"+Date.now(),r=document.createElement("div");document.body.appendChild(r);const o=(0,t.H)(r);o.render((0,h.jsx)(vv,{id:n,text:e})),yv[n]={div:r,root:o}};class xv extends i.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout((()=>{this.setState({showCircle:!0})}),600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return(0,h.jsx)(yp,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:(0,h.jsxs)(yp,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[(0,h.jsx)(yp,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),(0,h.jsx)(yp,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:(0,h.jsx)(Km,{color:"inherit"})})]})})}}let Cv=null;const kv=()=>{if(Cv)return;const e=document.createElement("div");document.body.appendChild(e);const n=(0,t.H)(e);n.render((0,h.jsx)(xv,{})),Cv={div:e,root:n}},Sv=()=>{var e;if(!Cv)return;const t=Cv.div;Cv.root.unmount(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),Cv=null};class Ev extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onExited=()=>{C().publish(A,j.None)},this.onClickTon=()=>{this.connectWallet().then((()=>(kv(),op.reqOrder($.tonConnect,D.ton)))).then((e=>{Sv(),this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})})).catch((e=>{Sv(),e.code!=I.WalletError&&wv(e.message)}))},this.onClickCati=()=>{this.connectWallet().then((()=>(kv(),op.reqOrder($.tonConnect,D.cati)))).then((e=>ep.getTokenJettonPayInfo(U.cati,e.amount,e.payload,e.address))).then((e=>{Sv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{Sv(),e.code!=I.WalletError&&wv(e.message)}))},this.onClickUsdt=()=>{this.connectWallet().then((()=>(kv(),op.reqOrder($.tonConnect,D.usdt)))).then((e=>ep.getTokenJettonPayInfo(U.usdt,e.amount,e.payload,e.address))).then((e=>{Sv(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{Sv(),e.code!=I.WalletError&&wv(e.message)}))},this.onClickStar=()=>{kv(),op.reqOrder($.star,D.star).then((e=>{Sv(),op.openInvoice(e.payLink).then((()=>{this._status=!0,this.onClickClose()}))})).catch((e=>{Sv(),wv(e.message)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=rp.purchaseData,o=e?rp.purchaseData.orderNo:"";C().publish(R,{success:e,productId:t,orderId:n,customData:r,orderNo:o})}render(){const{ton:e,tonOld:t,tonDiscount:n,usdt:r,usdtOld:o,usdtDiscount:i,cati:a,catiOld:s,catiDiscount:l,star:c,starOld:u,starDiscount:d}=rp.purchaseData,{showSlide:f}=this.state;return(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(av,{}),(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(yp,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:20,"@media (max-height: 480px)":{top:10}},children:(0,h.jsx)(Bp,{direction:"up",in:f,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(yp,{sx:{width:1,maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Fp,{}),(0,h.jsx)(sv,{title:"Purchase"}),(0,h.jsx)(dv,{}),(0,h.jsxs)(iv,{spacing:2,sx:{mx:5,pb:4},children:[this.showTokenPay()?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(fv,{currency:D.cati,price:a,oldPrice:s,discount:l,onClickPay:this.onClickCati}),(0,h.jsx)(fv,{currency:D.ton,price:e,oldPrice:t,discount:n,onClickPay:this.onClickTon}),(0,h.jsx)(fv,{currency:D.usdt,price:r,oldPrice:o,discount:i,onClickPay:this.onClickUsdt})]}):null,this.showStarPay()?(0,h.jsx)(fv,{currency:D.star,price:c,oldPrice:u,discount:d,onClickPay:this.onClickStar}):null]})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(ep.connected)return e();ep.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=ep.chain;V.TEST_MODE&&t==oe.MAINNET?wv("Please switch chain TESTNET"):V.TEST_MODE||t!=oe.TESTNET?ep.sendTransaction(e).then((e=>{this._status=!0,this.onClickClose()})).catch((e=>{console.log(e.message)})):wv("Please switch chain MAINNET")}showTokenPay(){return!!V.TEST_MODE||!G()&&!Z()}showStarPay(){return!!(()=>{const e=Telegram.WebApp.platform,t=Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)})()}}class Av extends i.PureComponent{render(){const{name:e}=rp.checkInData;return(0,h.jsxs)(yp,{sx:{width:1,height:100,position:"relative"},children:[(0,h.jsx)(yp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:(0,h.jsx)(yp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),(0,h.jsx)(yp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(uv,{})})]})}}class _v extends i.PureComponent{constructor(){super(...arguments),this.state={buttonText:ep.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){C().subscribe(_,this.onWalletConnect)}componentWillUnmount(){C().unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return(0,h.jsx)(yp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Tm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${K("button_2.png")})`,borderWidth:20,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"20 fill"}}),(0,h.jsx)(Om,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Tv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{C().publish(A,j.None)},this.onClickSignIn=()=>{this.connectWallet().then((()=>{const{amount:e,payload:t,address:n}=rp.checkInData;this.sendTransaction({amount:e,address:n,payload:t})})).catch((e=>{console.log(e)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=rp.checkInData;C().publish(O,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(av,{}),(0,h.jsxs)(yp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(yp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(yp,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:(0,h.jsx)(Bp,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:(0,h.jsxs)(yp,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Fp,{}),(0,h.jsx)(sv,{title:"Claim"}),(0,h.jsx)(Av,{}),(0,h.jsx)(iv,{spacing:2,sx:{mx:5,pb:4},children:(0,h.jsx)(_v,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(ep.connected)return e();ep.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=ep.chain;V.TEST_MODE&&t==oe.MAINNET?wv("Please switch chain TESTNET"):V.TEST_MODE||t!=oe.TESTNET?ep.sendTransaction(e).then((e=>{this.verify(e)})).catch((e=>{console.log(e.message)})):wv("Please switch chain MAINNET")}verify(e){const t=ep.chain,n=ep.friendlyAddress,r=rp.checkInData.orderNo;kv(),op.reqCheckInVerify(t,e,r,n).then((()=>{Sv(),this._status=!0,this.onClickClose()})).catch((e=>{Sv(),wv(e.message),this.onClickClose()}))}}const Rv=(0,ip.Ay)(yp)((()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0})));class Ov extends i.PureComponent{constructor(){super(...arguments),this.state={pageId:j.Index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){C().subscribe(A,this.onSwitchPage),C().publish(k,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case j.Index:t=bp;break;case j.Login:t=Zm;break;case j.Purchase:t=Ev;break;case j.CheckIn:t=Tv}return t?(0,h.jsx)(Rv,{children:(0,h.jsx)(t,{})}):null}}const Pv=()=>{console.info(`Pluto SDK version: ${V.APP_VERSION}`),V.init(),Jh.init(),op.init(),ep.init(),tp.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);(0,t.H)(e).render((0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{}),(0,h.jsx)(Ov,{})]})),"orientation"in window.screen&&Q()&&window.screen.orientation.addEventListener("change",(e=>{C().publish("ps_orientation_change",{})}))},Lv=()=>{document.body?Pv():document.addEventListener("DOMContentLoaded",(e=>{Pv()}))},Mv=()=>Qv.init(),Nv=()=>Qv.login(),Iv=()=>{Qv.ready()},jv=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return Qv.purchase(e,t,n,r,o,i)},$v=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Qv.checkIn(e,t,n,r)},Dv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Qv.share(e)},Uv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Qv.getShareLink(e)},Wv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Qv.copyShareLink(e)},zv=e=>Qv.getItem(e),Bv=(e,t)=>Qv.setItem(e,t),Fv=e=>Qv.consumePurchase(e),Hv=()=>Qv.queryPurchses(),Vv=e=>{Qv.vibrate(e)},Kv=(e,t)=>{Qv.onEvent(e,t)},qv=()=>Qv.isDesktopEnabled(),Gv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Qv.openGameForWeb(e)},Zv=()=>Qv.getCpCustomLink();const Qv=new class{constructor(){this._appDidMount=!1,this._loadingGame=!1,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},C().subscribe(k,this.onAppDidMount)}init(){return new Promise(((e,t)=>{if(rp.gameInfo)return this._initialized=!0,e();C().subscribeOnce(S,((n,r)=>{if(r)return this._initialized=!0,e();wv("Init game error, please try again later"),t({code:I.InitError,message:"Init error"})})),this._appDidMount&&this.getGameInfo()}))}login(){return this._initialized?this._logined?Promise.reject({code:I.Logined,message:"Pluto sdk already login"}):op.reqLogin().then((e=>(this._logined=!0,e))):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}ready(){this._logined?C().publish(E,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise(((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:I.Purchaseing,message:"Payment is being processed"}):(tp.registerCallback(P,i),this._purchaseing=!0,void op.reqPurchase(e,t,n,r,o).then((()=>{this._purchaseing=!1,C().publish(A,j.Purchase),a()})).catch((e=>{this._purchaseing=!1,console.log(e.message),s(e)}))):s({code:I.NotLogin,message:"Pluto sdk not login"}):s({code:I.ParamError,message:"Params error"})))}checkIn(e,t,n,r){return new Promise(((o,i)=>e&&t?this._logined?this._checkingIn?i({code:I.CheckingIn,message:"Check in is being processed"}):(tp.registerCallback(L,r),this._checkingIn=!0,void op.reqCheckIn(e,t,n).then((()=>{this._checkingIn=!1,C().publish(A,j.CheckIn),o()})).catch((e=>{this._checkingIn=!1,console.log(e.message),i(e)}))):i({code:I.NotLogin,message:"Pluto sdk not login"}):i({code:I.ParamError,message:"Params error"})))}share(e){if(!this._logined)return console.log("pluto sdk not login");console.log("pluto sdk share"),op.share(e)}getShareLink(e){if(!this._logined)return console.log("pluto sdk not login"),"";let t=`${rp.gameInfo.appUrl}?startapp=g_${V.GAME_ID}_${rp.plutoId}`;return e&&/^[A-Za-z0-9]*$/.test(e)&&(t+=`_${e}`),t}copyShareLink(e){return new Promise(((t,n)=>{if(!this._logined)return n({code:I.NotLogin,message:"Pluto sdk not login"});let r=`${rp.gameInfo.appUrl}?startapp=g_${V.GAME_ID}_${rp.plutoId}`;var o;e&&/^[A-Za-z0-9]*$/.test(e)&&(r+=`_${e}`),(o=r,new Promise(((e,t)=>{if(!o)return t("copy content is null.");Y(o).then((()=>{e()})).catch((()=>{X(o).then((()=>{e()})).catch((()=>{t("copy content faile.")}))}))}))).then((()=>{t()})).catch((e=>{n({code:I.ClipboardError,message:e})}))}))}getItem(e){return e?this._initialized?op.reqGetItem(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?op.reqSetItem(e,t):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}consumePurchase(e){return e?this._initialized?op.reqFinishOrder(e):Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:I.ParamError,message:"Params error"})}queryPurchses(){return this._initialized?op.reqUnfinishRecord():Promise.reject({code:I.NotInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&tp.registerHandler(`event_${e}`,t)}vibrate(e){op.vibrate(e)}isDesktopEnabled(){return q()&&(G()||Z())}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!V.GAME_URL)return void console.log("game url is null");const t=(new F.o).encode(V.INIT_DATA),n=new URL(V.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),op.openLink(n.href)}getCpCustomLink(){return V.CP_CUSTOM_LINK}getGameInfo(){this._loadingGame||(this._loadingGame=!0,op.reqGameInfo().then((e=>{this._loadingGame=!1,C().publish(A,j.Login),C().publish(S,!0)})).catch((e=>{this._loadingGame=!1,C().publish(S,!1),console.log(e)})))}};Lv()})(),PlutoSDK=r})();
1128
+ `),Fm)})),qm=i.forwardRef((function(e,t){const n=(0,a.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:i="primary",disableShrink:s=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=n,p=(0,rp.A)(n,Im),g=(0,o.A)({},n,{color:i,disableShrink:s,size:l,thickness:u,value:d,variant:f}),m=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${(0,wm.A)(r)}`],svg:["svg"],circle:["circle",`circle${(0,wm.A)(n)}`,o&&"circleDisableShrink"]};return(0,ng.A)(i,Nm,t)})(g),v={},y={},b={};if("determinate"===f){const e=2*Math.PI*((zm-u)/2);v.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(d),v.strokeDashoffset=`${((100-d)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,h.jsx)(Hm,(0,o.A)({className:(0,op.A)(m.root,r),style:(0,o.A)({width:l,height:l},y,c),ownerState:g,ref:t,role:"progressbar"},b,p,{children:(0,h.jsx)(Vm,{className:m.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,h.jsx)(Km,{className:m.circle,style:v,ownerState:g,cx:zm,cy:zm,r:(zm-u)/2,fill:"none",strokeWidth:u})})}))})),Gm=qm;class Qm extends i.PureComponent{constructor(){super(...arguments),this._timer=null,this.state={showCircle:!1}}componentDidMount(){this._timer=window.setTimeout((()=>{this.setState({showCircle:!0})}),600)}componentWillUnmount(){this._timer&&window.clearTimeout(this._timer)}render(){return(0,h.jsx)(gp,{sx:{height:1,width:1,display:"flex",position:"fixed",zIndex:999,left:0,top:0},children:(0,h.jsxs)(gp,{sx:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",margin:"0 auto"},children:[(0,h.jsx)(gp,{sx:{width:120,height:80,backgroundColor:"#424242",borderRadius:2,opacity:.7}}),(0,h.jsx)(gp,{sx:{top:0,right:0,bottom:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",color:"#fff"},children:(0,h.jsx)(Gm,{color:"inherit"})})]})})}}let Zm=null;const Ym=()=>{if(Zm)return;const e=document.createElement("div");document.body.appendChild(e);const n=(0,t.H)(e);n.render((0,h.jsx)(Qm,{})),Zm={div:e,root:n}},Xm=()=>{var e;if(!Zm)return;const t=Zm.div;Zm.root.unmount(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),Zm=null};class Jm extends i.PureComponent{constructor(){super(...arguments),this.onClickShare=()=>{if(!Jh.plutoId)return void console.log("pluto id is null");Ym();const e=tp.formatShareLink();tp.reqGetShareMessage(e).then((e=>(console.log("pluto sdk share"),Xm(),tp.shareMessage(e)))).then((()=>{console.log("share success")})).catch((()=>{Xm()}))}}render(){return(0,h.jsx)(gp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Pm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:this.onClickShare,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsx)(Lm.A,{sx:{width:26,height:26,position:"relative",mr:1}}),(0,h.jsx)(Mm,{content:"Share",fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class ev extends i.PureComponent{constructor(){super(...arguments),this.state={showPlay:!1},this.onReady=(e,t)=>{this.setState({showPlay:t})}}componentDidMount(){ld().subscribe(dd,this.onReady)}componentWillUnmount(){ld().unsubscribe(this.onReady)}render(){const{showPlay:e}=this.state,{onClick:t}=this.props;return e?(0,h.jsx)(gp,{sx:{height:50,position:"relative",mx:1.25},children:(0,h.jsxs)(Pm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:t,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_1.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsx)(Mm,{content:"Play",fontSize:22,color:"#fff",strokeColor:"#0e3772",strokeWidth:3})]})}):(0,h.jsxs)(gp,{sx:{height:50,position:"relative",mx:1.25},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_3.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsxs)(gp,{sx:{width:1,height:1,color:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(Mm,{content:"Loading",fontSize:22,color:"#fff",strokeColor:"#505151",strokeWidth:3}),(0,h.jsx)(Gm,{sx:{position:"absolute",right:20},color:"inherit",size:28})]})]})}}class tv extends i.PureComponent{constructor(){super(...arguments),this.onClickAdd=()=>{tp.addToHomeScreen()}}render(){return(0,h.jsx)(gp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Pm,{sx:{width:1,height:1,borderRadius:3,minWidth:50},variant:"contained",onClick:this.onClickAdd,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsx)(gp,{component:"img",src:mp("add_screen.png"),sx:{position:"relative"}})]})})}}const nv=(0,np.Ay)(gp)((()=>({width:"100%",maxWidth:430,margin:"0 auto",position:"relative"})));class rv extends i.PureComponent{constructor(){super(...arguments),this.state={showSlide:!0},this.onExited=()=>{PubSub.publish(fd,xd.None)},this.onClickPlay=()=>{this.setState({showSlide:!1}),PubSub.publish(pd,{})}}render(){const{showSlide:e}=this.state,t=tp.hideShare;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",backgroundColor:"#FEF8E2"},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"relative",backgroundImage:`url(${mp("bg_1.png")})`}}),(0,h.jsx)(Jp,{}),(0,h.jsx)(gp,{sx:{width:1,bottom:bp()?40:20,position:"absolute"},children:(0,h.jsx)(Vp,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(gp,{children:[(0,h.jsxs)(nv,{children:[(0,h.jsx)(Kp,{}),(0,h.jsxs)(gp,{sx:{position:"relative",px:3,pt:1,pb:4},children:[(0,h.jsx)(Wg,{}),t?null:bp()?(0,h.jsxs)(gp,{sx:{height:50},children:[(0,h.jsx)(gp,{sx:{width:.8,height:50,float:"left"},children:(0,h.jsx)(Jm,{})}),(0,h.jsx)(gp,{sx:{width:.18,height:50,float:"right"},children:(0,h.jsx)(tv,{})})]}):(0,h.jsx)(Jm,{})]})]}),(0,h.jsx)(nv,{sx:{paddingTop:2},children:(0,h.jsx)(ev,{onClick:this.onClickPlay})})]})})})]})}}var ov=n(8286),iv=n(7937);const av=["component","direction","spacing","divider","children","className","useFlexGap"],sv=(0,l.A)(),lv=pg("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function cv(e){return mg({props:e,name:"MuiStack",defaultTheme:sv})}function uv(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:`separator-${o}`})),e)),[])}const dv=e=>{let{ownerState:t,theme:n}=e,r=(0,o.A)({display:"flex",flexDirection:"column"},(0,ov.NI)({theme:n},(0,ov.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,iv.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,ov.kW)({values:t.direction,base:o}),a=(0,ov.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,iv._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:(0,iv._W)(e,n)}};var o};r=(0,rg.A)(r,(0,ov.NI)({theme:n},a,s))}return r=(0,ov.iZ)(n.breakpoints,r),r};const fv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=lv,useThemeProps:n=cv,componentName:r="MuiStack"}=e,a=t(dv),s=i.forwardRef((function(e,t){const i=n(e),s=(0,sp.A)(i),{component:l="div",direction:c="column",spacing:u=0,divider:d,children:f,className:p,useFlexGap:g=!1}=s,m=(0,rp.A)(s,av),v={direction:c,spacing:u,useFlexGap:g},y=(0,ng.A)({root:["root"]},(e=>(0,tg.Ay)(r,e)),{});return(0,h.jsx)(a,(0,o.A)({as:l,ownerState:v,ref:t,className:(0,op.A)(y.root,p)},m,{children:d?uv(f,d):f}))}));return s}({createStyledComponent:(0,np.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,a.b)({props:e,name:"MuiStack"})}),hv=fv;class pv extends i.PureComponent{render(){return(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",left:0,top:0,background:"rgba(0,0,0,0.4)",backgroundSize:"cover",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)"}})}}class gv extends i.PureComponent{render(){const{title:e}=this.props;return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(gp,{sx:{width:1,height:70,position:"relative"},children:(0,h.jsxs)(gp,{sx:{width:1,height:70,pt:1,position:"absolute",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,h.jsx)(gp,{component:"img",src:mp("dot.png"),sx:{width:28,height:24,position:"relative",mt:1.5}}),(0,h.jsx)(gp,{sx:{fontSize:32,fontWeight:"bold",color:"#ca996e",mx:1},children:e}),(0,h.jsx)(gp,{component:"img",src:mp("dot.png"),sx:{width:28,height:24,position:"relative",mb:1.5}})]})}),(0,h.jsx)(gp,{sx:{mx:5,borderBottom:"3px solid #a8774d",position:"relative"}})]})}}const mv=(0,np.Ay)(Pm)((()=>({color:"#fff",width:100,height:30,borderRadius:13,backgroundColor:"#e0c6a0",borderColor:"#e0c6a0",textTransform:"none","&:hover":{backgroundColor:"#e0c6a0",borderColor:"#e0c6a0"}}))),vv=(0,np.Ay)(Pm)((()=>({color:"#666666",width:100,height:30,borderRadius:13,backgroundColor:"#fff",borderColor:"#787772",textTransform:"none","&:hover":{backgroundColor:"#fff",borderColor:"#787772"}})));class yv extends i.PureComponent{constructor(){super(...arguments),this.state={address:Zh.friendlyAddress,showDisconnect:!1},this.onWalletConnect=(e,t)=>{t?this.setState({address:Zh.friendlyAddress}):this.setState({address:null,showDisconnect:!1})},this.onClickWallet=()=>{const{showDisconnect:e}=this.state;this.setState({showDisconnect:!e})},this.onClickDisconnect=()=>{Zh.disconnect()}}componentDidMount(){ld().subscribe(hd,this.onWalletConnect)}componentWillUnmount(){ld().unsubscribe(this.onWalletConnect)}render(){const{address:e,showDisconnect:t}=this.state;if(!e)return null;let n=e.length,r=e.substring(0,4)+"..."+e.substring(n-4,n);return(0,h.jsxs)(hv,{spacing:1,sx:{float:"right",width:100,pt:.5},children:[(0,h.jsx)(mv,{variant:"outlined",onClick:this.onClickWallet,children:r}),t?(0,h.jsx)(vv,{variant:"outlined",onClick:this.onClickDisconnect,children:"Disconnect"}):null]})}}class bv extends i.PureComponent{render(){const{name:e,usdt:t}=Jh.purchaseData;return(0,h.jsxs)(gp,{sx:{width:1,height:120,position:"relative"},children:[(0,h.jsxs)(gp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:[(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e}),(0,h.jsx)(gp,{sx:{width:1,display:"flex",justifyContent:"center"},children:(0,h.jsx)(Mm,{content:`= $${t.toFixed(2)}`,fontSize:18,color:"#fff",strokeColor:"#ba4f25",strokeWidth:3})})]}),(0,h.jsx)(gp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(yv,{})})]})}}class wv extends i.PureComponent{render(){const{currency:e,price:t,oldPrice:n,discount:r,onClickPay:o}=this.props,i=mp(Td[e]),a=_d[e],s=`${e==kd.star?t:t.toFixed(2)} ${a}`,l=`\xa0${e==kd.star?n:n.toFixed(2)} ${a}\xa0`;return(0,h.jsxs)(gp,{sx:{height:50,position:"relative"},children:[(0,h.jsxs)(Pm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:o,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsx)(gp,{component:"img",src:i,sx:{width:30,height:30,mr:1,position:"relative"}}),(0,h.jsx)(Mm,{content:s,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3}),(0,h.jsx)(gp,{sx:{width:"10px"}}),r>0?(0,h.jsx)(Mm,{content:l,fontSize:14,color:"#fff",strokeColor:"#4a7408",strokeWidth:2,decorationLine:!0}):null]}),r>0?(0,h.jsx)(gp,{sx:{top:-12,right:-20,bottom:0,left:-20,position:"absolute",pointerEvents:"none"},children:(0,h.jsxs)(gp,{sx:{width:62,height:50,rotate:"-20deg",position:"relative",float:"right",display:"inline-block"},children:[(0,h.jsx)(gp,{component:"img",src:mp("sale_off.png"),sx:{width:62,height:50,position:"absolute",display:"block"}}),(0,h.jsx)(gp,{sx:{top:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:100*r+"%"}),(0,h.jsx)(gp,{sx:{bottom:6,width:62,height:25,textAlign:"center",color:"#fff",fontSize:16,fontWeight:"bold",position:"absolute"},children:"OFF"})]})}):null]})}}const xv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cv={entering:{transform:"none"},entered:{transform:"none"}},kv=i.forwardRef((function(e,t){const n=Dp(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:v,style:y,timeout:b=r,TransitionComponent:w=Ip}=e,x=(0,rp.A)(e,xv),C=i.useRef(null),k=(0,$p.A)(C,l.ref,t),S=e=>t=>{if(e){const n=C.current;void 0===t?e(n):e(n,t)}},E=S(p),A=S(((e,t)=>{Up(e);const r=Wp({style:y,timeout:b,easing:c},{mode:"enter"});e.style.webkitTransition=n.transitions.create("transform",r),e.style.transition=n.transitions.create("transform",r),d&&d(e,t)})),_=S(f),T=S(v),R=S((e=>{const t=Wp({style:y,timeout:b,easing:c},{mode:"exit"});e.style.webkitTransition=n.transitions.create("transform",t),e.style.transition=n.transitions.create("transform",t),g&&g(e)})),O=S(m);return(0,h.jsx)(w,(0,o.A)({appear:s,in:u,nodeRef:C,onEnter:A,onEntered:_,onEntering:E,onExit:R,onExited:O,onExiting:T,addEndListener:e=>{a&&a(C.current,e)},timeout:b},x,{children:(e,t)=>i.cloneElement(l,(0,o.A)({style:(0,o.A)({transform:"scale(0)",visibility:"exited"!==e||u?void 0:"hidden"},Cv[e],y,l.props.style),ref:k},t))}))})),Sv=kv;class Ev extends i.PureComponent{constructor(){super(...arguments),this._aniTimer=null,this._closeTimer=null,this.state={checked:!0},this.onExited=()=>{const{id:e}=this.props;this._closeTimer=window.setTimeout((()=>{_v(e)}),500)}}componentDidMount(){this._aniTimer=window.setTimeout((()=>{this.setState({checked:!1})}),2e3)}componentWillUnmount(){this._aniTimer&&window.clearTimeout(this._aniTimer),this._closeTimer&&window.clearTimeout(this._closeTimer)}render(){const{checked:e}=this.state,{text:t}=this.props;return(0,h.jsx)(gp,{sx:{position:"fixed",zIndex:999,top:"40%",width:"100%"},children:(0,h.jsx)(Vp,{direction:"down",in:e,timeout:{exit:1200},onExited:this.onExited,children:(0,h.jsx)(gp,{children:(0,h.jsx)(Sv,{in:!0,timeout:{enter:1e3},children:(0,h.jsx)(gp,{sx:{display:"flex"},children:(0,h.jsx)(Zp,{in:e,timeout:{enter:1e3,exit:1e3},children:(0,h.jsx)(gp,{sx:{minWidth:160,maxWidth:320,m:"0 auto",backgroundColor:"#757575",textAlign:"center",p:1,borderRadius:2,color:"#fff",wordWrap:"break-word"},children:t})})})})})})})}}const Av={},_v=e=>{var t;const n=Av[e];if(!n)return;const r=n.div;n.root.unmount(),null===(t=r.parentNode)||void 0===t||t.removeChild(r),delete Av[e]},Tv=e=>{const n=((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(1,1e3)+"-"+Date.now(),r=document.createElement("div");document.body.appendChild(r);const o=(0,t.H)(r);o.render((0,h.jsx)(Ev,{id:n,text:e})),Av[n]={div:r,root:o}};class Rv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onExited=()=>{ld().publish(fd,xd.None)},this.onClickTon=()=>{this.connectWallet().then((()=>(Ym(),tp.reqOrder(Cd.tonConnect,kd.ton)))).then((e=>{Xm(),this.sendTransaction({amount:e.amount,address:e.address,payload:e.payload})})).catch((e=>{Xm(),e.code!=wd.WalletError&&Tv(e.message)}))},this.onClickCati=()=>{this.connectWallet().then((()=>(Ym(),tp.reqOrder(Cd.tonConnect,kd.cati)))).then((e=>Zh.getTokenJettonPayInfo(Sd.cati,e.amount,e.payload,e.address))).then((e=>{Xm(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{Xm(),e.code!=wd.WalletError&&Tv(e.message)}))},this.onClickUsdt=()=>{this.connectWallet().then((()=>(Ym(),tp.reqOrder(Cd.tonConnect,kd.usdt)))).then((e=>Zh.getTokenJettonPayInfo(Sd.usdt,e.amount,e.payload,e.address))).then((e=>{Xm(),this.sendTransaction({amount:"100000000",address:e.address,payload:e.payload})})).catch((e=>{Xm(),e.code!=wd.WalletError&&Tv(e.message)}))},this.onClickStar=()=>{Ym(),tp.reqOrder(Cd.star,kd.star).then((e=>{Xm(),tp.openInvoice(e.payLink).then((()=>{this._status=!0,this.onClickClose()}))})).catch((e=>{Xm(),Tv(e.message)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{productId:t,orderId:n,customData:r}=Jh.purchaseData,o=e?Jh.purchaseData.orderNo:"";ld().publish(gd,{success:e,productId:t,orderId:n,customData:r,orderNo:o})}render(){const{ton:e,tonOld:t,tonDiscount:n,usdt:r,usdtOld:o,usdtDiscount:i,cati:a,catiOld:s,catiDiscount:l,star:c,starOld:u,starDiscount:d}=Jh.purchaseData,{showSlide:f}=this.state;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(pv,{}),(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative",overflowY:"auto",scrollbarWidth:"none !important","::-webkit-scrollbar":{display:"none !important"}},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(gp,{sx:{width:"100%",position:"absolute",pointerEvents:"none",bottom:20,"@media (max-height: 480px)":{top:10}},children:(0,h.jsx)(Vp,{direction:"up",in:f,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onExited:this.onExited,children:(0,h.jsxs)(gp,{sx:{width:1,maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Kp,{}),(0,h.jsx)(gv,{title:"Purchase"}),(0,h.jsx)(bv,{}),(0,h.jsxs)(hv,{spacing:2,sx:{mx:5,pb:4},children:[this.showTokenPay()?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(wv,{currency:kd.cati,price:a,oldPrice:s,discount:l,onClickPay:this.onClickCati}),(0,h.jsx)(wv,{currency:kd.ton,price:e,oldPrice:t,discount:n,onClickPay:this.onClickTon}),(0,h.jsx)(wv,{currency:kd.usdt,price:r,oldPrice:o,discount:i,onClickPay:this.onClickUsdt})]}):null,this.showStarPay()?(0,h.jsx)(wv,{currency:kd.star,price:c,oldPrice:u,discount:d,onClickPay:this.onClickStar}):null]})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Zh.connected)return e();Zh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Zh.chain;k.TEST_MODE&&t==R.MAINNET?Tv("Please switch chain TESTNET"):k.TEST_MODE||t!=R.TESTNET?Zh.sendTransaction(e).then((e=>{this._status=!0,this.onClickClose()})).catch((e=>{console.log(e.message)})):Tv("Please switch chain MAINNET")}showTokenPay(){return!!k.TEST_MODE||!vp()&&!yp()}showStarPay(){return!!(()=>{const e=Telegram.WebApp.platform,t=Telegram.WebApp.version;return!(!e||"unknown"==e)&&!(!t||"6.0"==t)})()}}class Ov extends i.PureComponent{render(){const{name:e}=Jh.checkInData;return(0,h.jsxs)(gp,{sx:{width:1,height:100,position:"relative"},children:[(0,h.jsx)(gp,{sx:{top:0,left:0,width:1,textAlign:"center",position:"absolute"},children:(0,h.jsx)(gp,{sx:{fontSize:24,fontWeight:"bold",pt:4,color:"#7c4b30"},children:e})}),(0,h.jsx)(gp,{sx:{mx:5,position:"relative"},children:(0,h.jsx)(yv,{})})]})}}class Pv extends i.PureComponent{constructor(){super(...arguments),this.state={buttonText:Zh.connected?"Claim":"Connect wallet"},this.onWalletConnect=(e,t)=>{this.setState({buttonText:t?"Claim":"Connect wallet"})}}componentDidMount(){ld().subscribe(hd,this.onWalletConnect)}componentWillUnmount(){ld().unsubscribe(this.onWalletConnect)}render(){const{onClickSignIn:e}=this.props,{buttonText:t}=this.state;return(0,h.jsx)(gp,{sx:{height:50,position:"relative"},children:(0,h.jsxs)(Pm,{sx:{width:1,height:1,borderRadius:3},variant:"contained",onClick:e,children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"absolute",top:0,borderImage:`url(${mp("button_2.png")})`,borderWidth:15,borderStyle:"solid",borderImageRepeat:"repeat",borderImageSlice:"15 fill"}}),(0,h.jsx)(Mm,{content:t,fontSize:22,color:"#fff",strokeColor:"#4a7408",strokeWidth:3})]})})}}class Lv extends i.PureComponent{constructor(){super(...arguments),this._status=!1,this.state={showSlide:!0},this.onEntered=()=>{this.onClickSignIn()},this.onExited=()=>{ld().publish(fd,xd.None)},this.onClickSignIn=()=>{this.connectWallet().then((()=>{const{amount:e,payload:t,address:n}=Jh.checkInData;this.sendTransaction({amount:e,address:n,payload:t})})).catch((e=>{console.log(e)}))},this.onClickClose=()=>{this.setState({showSlide:!1})}}componentWillUnmount(){const e=this._status,{orderId:t,customData:n}=Jh.checkInData;ld().publish(md,{success:e,orderId:t,customData:n})}render(){const{showSlide:e}=this.state;return(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(pv,{}),(0,h.jsxs)(gp,{sx:{width:1,height:1,position:"relative"},children:[(0,h.jsx)(gp,{sx:{width:1,height:1,position:"fixed"},onClick:this.onClickClose}),(0,h.jsx)(gp,{sx:{width:1,position:"absolute",bottom:40,pointerEvents:"none"},children:(0,h.jsx)(Vp,{direction:"up",in:e,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:600,exit:600},onEntered:this.onEntered,onExited:this.onExited,children:(0,h.jsxs)(gp,{sx:{width:"96%",maxWidth:430,m:"0 auto",position:"relative",pointerEvents:"auto"},children:[(0,h.jsx)(Kp,{}),(0,h.jsx)(gv,{title:"Claim"}),(0,h.jsx)(Ov,{}),(0,h.jsx)(hv,{spacing:2,sx:{mx:5,pb:4},children:(0,h.jsx)(Pv,{onClickSignIn:this.onClickSignIn})})]})})})]})]})}connectWallet(){return new Promise(((e,t)=>{if(Zh.connected)return e();Zh.connect().then((t=>{e()})).catch((e=>{t(e)}))}))}sendTransaction(e){const t=Zh.chain;k.TEST_MODE&&t==R.MAINNET?Tv("Please switch chain TESTNET"):k.TEST_MODE||t!=R.TESTNET?Zh.sendTransaction(e).then((e=>{this.verify(e)})).catch((e=>{console.log(e.message)})):Tv("Please switch chain MAINNET")}verify(e){const t=Zh.chain,n=Zh.friendlyAddress,r=Jh.checkInData.orderNo;Ym(),tp.reqCheckInVerify(t,e,r,n).then((()=>{Xm(),this._status=!0,this.onClickClose()})).catch((e=>{Xm(),Tv(e.message),this.onClickClose()}))}}const Mv=(0,np.Ay)(gp)((()=>({height:"100%",width:"100%",display:"flex",position:"fixed",zIndex:999,left:0,top:0})));class Nv extends i.PureComponent{constructor(){super(...arguments),this.state={pageId:xd.Index},this.onSwitchPage=(e,t)=>{this.setState({pageId:t})}}componentDidMount(){ld().subscribe(fd,this.onSwitchPage),ld().publish(cd,null)}render(){const{pageId:e}=this.state;let t=null;switch(e){case xd.Index:t=Cp;break;case xd.Login:t=rv;break;case xd.Purchase:t=Rv;break;case xd.CheckIn:t=Lv}return t?(0,h.jsx)(Mv,{children:(0,h.jsx)(t,{})}):null}}const Iv=()=>{console.info(`Pluto SDK version: ${k.APP_VERSION}`),k.init(),Qh.init(),tp.init(),Zh.init(),Yh.init();document.body.style.overflow="hidden";const e=document.createElement("div");e.id="pluto-root",document.body.appendChild(e);(0,t.H)(e).render((0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{}),(0,h.jsx)(Nv,{})]}))},jv=()=>{document.body?Iv():document.addEventListener("DOMContentLoaded",(e=>{Iv()}))};class $v extends i.PureComponent{render(){const e=Jh.gameInfo.orientation==Ed.portrait,t=`This game is in ${e?"vertical":"horizontal"} mode`,n=e?"rotate_mobile_v.png":"rotate_mobile_h.png";return(0,h.jsx)(gp,{sx:{height:1,width:1,display:"flex",alignItems:"center",position:"fixed",zIndex:999,left:0,top:0,backgroundColor:"#424242"},children:(0,h.jsxs)(gp,{sx:{position:"relative",margin:"0 auto",textAlign:"center"},children:[(0,h.jsx)(gp,{component:"img",src:mp(n),sx:{position:"relative"}}),(0,h.jsx)(gp,{sx:{fontSize:28,fontWeight:"bold",color:"#fff"},children:"Rotate you device"}),(0,h.jsx)(gp,{sx:{fontSize:16,color:"#fff"},children:t})]})})}}let Dv=null;const Uv=()=>{if(Dv)return;const e=document.createElement("div");document.body.appendChild(e);const n=(0,t.H)(e);n.render((0,h.jsx)($v,{})),Dv={div:e,root:n}},Wv=()=>{var e;if(!Dv)return;const t=Dv.div;Dv.root.unmount(),null===(e=t.parentNode)||void 0===e||e.removeChild(t),Dv=null},zv=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return ay.init(e)},Bv=()=>ay.login(),Fv=()=>{ay.ready()},Hv=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;return ay.purchase(e,t,n,r,o,i)},Vv=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ay.checkIn(e,t,n,r)},Kv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return ay.share(e,t)},qv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ay.getShareLink(e)},Gv=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ay.copyShareLink(e)},Qv=e=>ay.getItem(e),Zv=(e,t)=>ay.setItem(e,t),Yv=e=>ay.consumePurchase(e),Xv=()=>ay.queryPurchses(),Jv=e=>{ay.vibrate(e)},ey=(e,t)=>{ay.onEvent(e,t)},ty=()=>ay.getSafeAreaInset(),ny=()=>ay.getContentSafeAreaInset(),ry=()=>ay.isDesktopEnabled(),oy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";ay.openGameForWeb(e)},iy=()=>ay.getCpCustomLink();const ay=new class{constructor(){this._appDidMount=!1,this._loadingGame=!1,this._initialized=!1,this._logined=!1,this._purchaseing=!1,this._checkingIn=!1,this.onAppDidMount=(e,t)=>{this._appDidMount=!0,this.getGameInfo()},ld().subscribe(cd,this.onAppDidMount)}init(e){return e&&bp()&&tp.requestFullscreen(),new Promise(((e,t)=>{if(Jh.gameInfo)return this._initialized=!0,this.addOrientationChangeListener(),e();ld().subscribeOnce(ud,((n,r)=>{if(r)return this._initialized=!0,this.addOrientationChangeListener(),e();Tv("Init game error, please try again later"),t({code:wd.InitError,message:"Init error"})})),this._appDidMount&&this.getGameInfo()}))}login(){return this._initialized?this._logined?Promise.reject({code:wd.Logined,message:"Pluto sdk already login"}):tp.reqLogin().then((e=>(this._logined=!0,e))):Promise.reject({code:wd.NotInit,message:"Pluto sdk not initialize"})}ready(){this._logined?ld().publish(dd,!0):console.warn("pluto sdk not login!")}purchase(e,t,n,r,o,i){return new Promise(((a,s)=>e&&t&&n&&r?this._logined?this._purchaseing?s({code:wd.Purchaseing,message:"Payment is being processed"}):(Yh.registerCallback(vd,i),this._purchaseing=!0,void tp.reqPurchase(e,t,n,r,o).then((()=>{this._purchaseing=!1,ld().publish(fd,xd.Purchase),a()})).catch((e=>{this._purchaseing=!1,console.log(e.message),s(e)}))):s({code:wd.NotLogin,message:"Pluto sdk not login"}):s({code:wd.ParamError,message:"Params error"})))}checkIn(e,t,n,r){return new Promise(((o,i)=>e&&t?this._logined?this._checkingIn?i({code:wd.CheckingIn,message:"Check in is being processed"}):(Yh.registerCallback(yd,r),this._checkingIn=!0,void tp.reqCheckIn(e,t,n).then((()=>{this._checkingIn=!1,ld().publish(fd,xd.CheckIn),o()})).catch((e=>{this._checkingIn=!1,console.log(e.message),i(e)}))):i({code:wd.NotLogin,message:"Pluto sdk not login"}):i({code:wd.ParamError,message:"Params error"})))}share(e,t){return new Promise(((n,r)=>{if(!this._logined)return r("pluto sdk not login");Ym();const o=tp.formatShareLink(e);tp.reqGetShareMessage(o,t).then((e=>(console.log("pluto sdk share"),Xm(),tp.shareMessage(e)))).then((()=>{n()})).catch((()=>{Xm(),r()}))}))}getShareLink(e){return this._logined?tp.formatShareLink(e):(console.log("pluto sdk not login"),"")}copyShareLink(e){return new Promise(((t,n)=>{if(!this._logined)return n({code:wd.NotLogin,message:"Pluto sdk not login"});let r=tp.formatShareLink(e);var o;(o=r,new Promise(((e,t)=>{if(!o)return t("copy content is null.");wp(o).then((()=>{e()})).catch((()=>{xp(o).then((()=>{e()})).catch((()=>{t("copy content faile.")}))}))}))).then((()=>{t()})).catch((e=>{n({code:wd.ClipboardError,message:e})}))}))}getItem(e){return e?this._initialized?tp.reqGetItem(e):Promise.reject({code:wd.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:wd.ParamError,message:"Params error"})}setItem(e,t){return e&&t&&"string"==typeof t?this._initialized?tp.reqSetItem(e,t):Promise.reject({code:wd.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:wd.ParamError,message:"Params error"})}consumePurchase(e){return e?this._initialized?tp.reqFinishOrder(e):Promise.reject({code:wd.NotInit,message:"Pluto sdk not initialize"}):Promise.reject({code:wd.ParamError,message:"Params error"})}queryPurchses(){return this._initialized?tp.reqUnfinishRecord():Promise.reject({code:wd.NotInit,message:"Pluto sdk not initialize"})}onEvent(e,t){e&&t&&"function"==typeof t&&Yh.registerHandler(`event_${e}`,t)}getSafeAreaInset(){return tp.getSafeAreaInset()}getContentSafeAreaInset(){return tp.getContentSafeAreaInset()}vibrate(e){tp.vibrate(e)}isDesktopEnabled(){return(()=>{const e=Telegram.WebApp.platform;return!(!e||"unknown"==e||e.includes("web"))})()&&(vp()||yp())}openGameForWeb(e){if(!this.isDesktopEnabled())return void console.log("openGameForWeb not support for web.");if(!k.GAME_URL)return void console.log("game url is null");const t=(new x.o).encode(k.INIT_DATA),n=new URL(k.GAME_URL);n.searchParams.append("initdata",t),e&&n.searchParams.append("pcplink",e),tp.openLink(n.href)}getCpCustomLink(){return k.CP_CUSTOM_LINK}getGameInfo(){this._loadingGame||(this._loadingGame=!0,tp.reqGameInfo().then((e=>{this._loadingGame=!1,ld().publish(fd,xd.Login),ld().publish(ud,!0)})).catch((e=>{this._loadingGame=!1,ld().publish(ud,!1),console.log(e)})))}addOrientationChangeListener(){bp()&&"orientation"in window.screen&&(window.screen.orientation.addEventListener("change",(e=>{this.checkOrientaiton()})),this.checkOrientaiton())}checkOrientaiton(){(()=>{var e;return bp()?(null===(e=window.screen.orientation)||void 0===e?void 0:e.type).startsWith("portrait")?Ed.portrait:Ed.landscape:Ed.portrait})()!=Jh.gameInfo.orientation?Uv():Wv()}};jv()})(),PlutoSDK=r})();