@tonconnect/ui 2.0.0-beta.5 → 2.0.0-beta.7

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.
@@ -1,4 +1,4 @@
1
- var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n),__async=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{a(n.next(e))}catch(t){o(t)}},s=e=>{try{a(n.throw(e))}catch(t){o(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}));!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TON_CONNECT_UI={})}(this,(function(e){var t,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o,i,s,a={exports:{}};i=n,s=function(){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?void 0!==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},(o=a).exports?o.exports=s():(i.nacl||(i.nacl={}),i.nacl.util=s());const l=a.exports;function c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var u={exports:{}};const d=r(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));!function(e){!function(e){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},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),s=t([1]),a=t([56129,1]),l=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]),h=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]),g=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 w(e,t,n,r,o){var i,s=0;for(i=0;i<o;i++)s|=e[t+i]^n[r+i];return(1&s-1>>>8)-1}function m(e,t,n,r){return w(e,t,n,r,16)}function v(e,t,n,r){return w(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,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=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,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,g=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,w=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=i,x=s,_=a,k=l,S=c,E=u,L=d,R=h,A=f,T=g,M=p,O=w,$=m,P=v,I=y,N=b,U=0;U<20;U+=2)C^=(o=($^=(o=(A^=(o=(S^=(o=C+$|0)<<7|o>>>25)+C|0)<<9|o>>>23)+S|0)<<13|o>>>19)+A|0)<<18|o>>>14,E^=(o=(x^=(o=(P^=(o=(T^=(o=E+x|0)<<7|o>>>25)+E|0)<<9|o>>>23)+T|0)<<13|o>>>19)+P|0)<<18|o>>>14,M^=(o=(L^=(o=(_^=(o=(I^=(o=M+L|0)<<7|o>>>25)+M|0)<<9|o>>>23)+I|0)<<13|o>>>19)+_|0)<<18|o>>>14,N^=(o=(O^=(o=(R^=(o=(k^=(o=N+O|0)<<7|o>>>25)+N|0)<<9|o>>>23)+k|0)<<13|o>>>19)+R|0)<<18|o>>>14,C^=(o=(k^=(o=(_^=(o=(x^=(o=C+k|0)<<7|o>>>25)+C|0)<<9|o>>>23)+x|0)<<13|o>>>19)+_|0)<<18|o>>>14,E^=(o=(S^=(o=(R^=(o=(L^=(o=E+S|0)<<7|o>>>25)+E|0)<<9|o>>>23)+L|0)<<13|o>>>19)+R|0)<<18|o>>>14,M^=(o=(T^=(o=(A^=(o=(O^=(o=M+T|0)<<7|o>>>25)+M|0)<<9|o>>>23)+O|0)<<13|o>>>19)+A|0)<<18|o>>>14,N^=(o=(I^=(o=(P^=(o=($^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+$|0)<<13|o>>>19)+P|0)<<18|o>>>14;C=C+i|0,x=x+s|0,_=_+a|0,k=k+l|0,S=S+c|0,E=E+u|0,L=L+d|0,R=R+h|0,A=A+f|0,T=T+g|0,M=M+p|0,O=O+w|0,$=$+m|0,P=P+v|0,I=I+y|0,N=N+b|0,e[0]=C>>>0&255,e[1]=C>>>8&255,e[2]=C>>>16&255,e[3]=C>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>24&255,e[24]=L>>>0&255,e[25]=L>>>8&255,e[26]=L>>>16&255,e[27]=L>>>24&255,e[28]=R>>>0&255,e[29]=R>>>8&255,e[30]=R>>>16&255,e[31]=R>>>24&255,e[32]=A>>>0&255,e[33]=A>>>8&255,e[34]=A>>>16&255,e[35]=A>>>24&255,e[36]=T>>>0&255,e[37]=T>>>8&255,e[38]=T>>>16&255,e[39]=T>>>24&255,e[40]=M>>>0&255,e[41]=M>>>8&255,e[42]=M>>>16&255,e[43]=M>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=$>>>0&255,e[49]=$>>>8&255,e[50]=$>>>16&255,e[51]=$>>>24&255,e[52]=P>>>0&255,e[53]=P>>>8&255,e[54]=P>>>16&255,e[55]=P>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>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,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=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,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,g=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,p=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,w=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=0;C<20;C+=2)i^=(o=(m^=(o=(f^=(o=(c^=(o=i+m|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+f|0)<<18|o>>>14,u^=(o=(s^=(o=(v^=(o=(g^=(o=u+s|0)<<7|o>>>25)+u|0)<<9|o>>>23)+g|0)<<13|o>>>19)+v|0)<<18|o>>>14,p^=(o=(d^=(o=(a^=(o=(y^=(o=p+d|0)<<7|o>>>25)+p|0)<<9|o>>>23)+y|0)<<13|o>>>19)+a|0)<<18|o>>>14,b^=(o=(w^=(o=(h^=(o=(l^=(o=b+w|0)<<7|o>>>25)+b|0)<<9|o>>>23)+l|0)<<13|o>>>19)+h|0)<<18|o>>>14,i^=(o=(l^=(o=(a^=(o=(s^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+s|0)<<13|o>>>19)+a|0)<<18|o>>>14,u^=(o=(c^=(o=(h^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+h|0)<<18|o>>>14,p^=(o=(g^=(o=(f^=(o=(w^=(o=p+g|0)<<7|o>>>25)+p|0)<<9|o>>>23)+w|0)<<13|o>>>19)+f|0)<<18|o>>>14,b^=(o=(y^=(o=(v^=(o=(m^=(o=b+y|0)<<7|o>>>25)+b|0)<<9|o>>>23)+m|0)<<13|o>>>19)+v|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]=p>>>0&255,e[9]=p>>>8&255,e[10]=p>>>16&255,e[11]=p>>>24&255,e[12]=b>>>0&255,e[13]=b>>>8&255,e[14]=b>>>16&255,e[15]=b>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=f>>>0&255,e[25]=f>>>8&255,e[26]=f>>>16&255,e[27]=f>>>24&255,e[28]=g>>>0&255,e[29]=g>>>8&255,e[30]=g>>>16&255,e[31]=g>>>24&255}(e,t,n,r)}var C=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,s){var a,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,s,C),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(a=1,l=8;l<16;l++)a=a+(255&c[l])|0,c[l]=255&a,a>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,s,C),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function _(e,t,n,r,o){var i,s,a=new Uint8Array(16),l=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=r[s];for(;n>=64;){for(y(l,a,o,C),s=0;s<64;s++)e[t+s]=l[s];for(i=1,s=8;s<16;s++)i=i+(255&a[s])|0,a[s]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,a,o,C),s=0;s<n;s++)e[t+s]=l[s];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,C);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=r[a+16];return _(e,t,n,s,i)}function S(e,t,n,r,o,i,s){var a=new Uint8Array(32);b(a,i,s,C);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,a)}var E=function(e){var t,n,r,o,i,s,a,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,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>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 L(e,t,n,r,o,i){var s=new E(i);return s.update(n,r,o),s.finish(e,t),0}function R(e,t,n,r,o,i){var s=new Uint8Array(16);return L(s,0,n,r,o,i),m(e,t,s,0)}function A(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),L(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function T(e,t,n,r,o){var i,s=new Uint8Array(32);if(n<32)return-1;if(k(s,0,32,r,o),0!==R(t,16,t,32,n-32,s))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function M(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(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 $(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 P(e,n){var r,o,i,s=t(),a=t();for(r=0;r<16;r++)a[r]=n[r];for(O(a),O(a),O(a),o=0;o<2;o++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,$(a,s,1-i)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function I(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return P(n,e),P(r,t),v(n,0,r,0)}function N(e){var t=new Uint8Array(32);return P(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function W(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function B(e,t,n){var r,o,i=0,s=0,a=0,l=0,c=0,u=0,d=0,h=0,f=0,g=0,p=0,w=0,m=0,v=0,y=0,b=0,C=0,x=0,_=0,k=0,S=0,E=0,L=0,R=0,A=0,T=0,M=0,O=0,$=0,P=0,I=0,N=n[0],U=n[1],W=n[2],j=n[3],B=n[4],H=n[5],K=n[6],V=n[7],F=n[8],D=n[9],q=n[10],z=n[11],Z=n[12],G=n[13],Y=n[14],Q=n[15];i+=(r=t[0])*N,s+=r*U,a+=r*W,l+=r*j,c+=r*B,u+=r*H,d+=r*K,h+=r*V,f+=r*F,g+=r*D,p+=r*q,w+=r*z,m+=r*Z,v+=r*G,y+=r*Y,b+=r*Q,s+=(r=t[1])*N,a+=r*U,l+=r*W,c+=r*j,u+=r*B,d+=r*H,h+=r*K,f+=r*V,g+=r*F,p+=r*D,w+=r*q,m+=r*z,v+=r*Z,y+=r*G,b+=r*Y,C+=r*Q,a+=(r=t[2])*N,l+=r*U,c+=r*W,u+=r*j,d+=r*B,h+=r*H,f+=r*K,g+=r*V,p+=r*F,w+=r*D,m+=r*q,v+=r*z,y+=r*Z,b+=r*G,C+=r*Y,x+=r*Q,l+=(r=t[3])*N,c+=r*U,u+=r*W,d+=r*j,h+=r*B,f+=r*H,g+=r*K,p+=r*V,w+=r*F,m+=r*D,v+=r*q,y+=r*z,b+=r*Z,C+=r*G,x+=r*Y,_+=r*Q,c+=(r=t[4])*N,u+=r*U,d+=r*W,h+=r*j,f+=r*B,g+=r*H,p+=r*K,w+=r*V,m+=r*F,v+=r*D,y+=r*q,b+=r*z,C+=r*Z,x+=r*G,_+=r*Y,k+=r*Q,u+=(r=t[5])*N,d+=r*U,h+=r*W,f+=r*j,g+=r*B,p+=r*H,w+=r*K,m+=r*V,v+=r*F,y+=r*D,b+=r*q,C+=r*z,x+=r*Z,_+=r*G,k+=r*Y,S+=r*Q,d+=(r=t[6])*N,h+=r*U,f+=r*W,g+=r*j,p+=r*B,w+=r*H,m+=r*K,v+=r*V,y+=r*F,b+=r*D,C+=r*q,x+=r*z,_+=r*Z,k+=r*G,S+=r*Y,E+=r*Q,h+=(r=t[7])*N,f+=r*U,g+=r*W,p+=r*j,w+=r*B,m+=r*H,v+=r*K,y+=r*V,b+=r*F,C+=r*D,x+=r*q,_+=r*z,k+=r*Z,S+=r*G,E+=r*Y,L+=r*Q,f+=(r=t[8])*N,g+=r*U,p+=r*W,w+=r*j,m+=r*B,v+=r*H,y+=r*K,b+=r*V,C+=r*F,x+=r*D,_+=r*q,k+=r*z,S+=r*Z,E+=r*G,L+=r*Y,R+=r*Q,g+=(r=t[9])*N,p+=r*U,w+=r*W,m+=r*j,v+=r*B,y+=r*H,b+=r*K,C+=r*V,x+=r*F,_+=r*D,k+=r*q,S+=r*z,E+=r*Z,L+=r*G,R+=r*Y,A+=r*Q,p+=(r=t[10])*N,w+=r*U,m+=r*W,v+=r*j,y+=r*B,b+=r*H,C+=r*K,x+=r*V,_+=r*F,k+=r*D,S+=r*q,E+=r*z,L+=r*Z,R+=r*G,A+=r*Y,T+=r*Q,w+=(r=t[11])*N,m+=r*U,v+=r*W,y+=r*j,b+=r*B,C+=r*H,x+=r*K,_+=r*V,k+=r*F,S+=r*D,E+=r*q,L+=r*z,R+=r*Z,A+=r*G,T+=r*Y,M+=r*Q,m+=(r=t[12])*N,v+=r*U,y+=r*W,b+=r*j,C+=r*B,x+=r*H,_+=r*K,k+=r*V,S+=r*F,E+=r*D,L+=r*q,R+=r*z,A+=r*Z,T+=r*G,M+=r*Y,O+=r*Q,v+=(r=t[13])*N,y+=r*U,b+=r*W,C+=r*j,x+=r*B,_+=r*H,k+=r*K,S+=r*V,E+=r*F,L+=r*D,R+=r*q,A+=r*z,T+=r*Z,M+=r*G,O+=r*Y,$+=r*Q,y+=(r=t[14])*N,b+=r*U,C+=r*W,x+=r*j,_+=r*B,k+=r*H,S+=r*K,E+=r*V,L+=r*F,R+=r*D,A+=r*q,T+=r*z,M+=r*Z,O+=r*G,$+=r*Y,P+=r*Q,b+=(r=t[15])*N,s+=38*(x+=r*W),a+=38*(_+=r*j),l+=38*(k+=r*B),c+=38*(S+=r*H),u+=38*(E+=r*K),d+=38*(L+=r*V),h+=38*(R+=r*F),f+=38*(A+=r*D),g+=38*(T+=r*q),p+=38*(M+=r*z),w+=38*(O+=r*Z),m+=38*($+=r*G),v+=38*(P+=r*Y),y+=38*(I+=r*Q),i=(r=(i+=38*(C+=r*U))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+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)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+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)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+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)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+o+65535)-65536*(o=Math.floor(r/65536)),g=(r=g+o+65535)-65536*(o=Math.floor(r/65536)),p=(r=p+o+65535)-65536*(o=Math.floor(r/65536)),w=(r=w+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)),i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=g,e[10]=p,e[11]=w,e[12]=m,e[13]=v,e[14]=y,e[15]=b}function H(e,t){B(e,t,t)}function K(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)H(o,o),2!==r&&4!==r&&B(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function V(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)H(o,o),1!==r&&B(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function F(e,n,r){var o,i,s=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),h=t(),f=t(),g=t();for(i=0;i<31;i++)s[i]=n[i];for(s[31]=127&n[31]|64,s[0]&=248,U(l,r),i=0;i<16;i++)u[i]=l[i],h[i]=c[i]=d[i]=0;for(c[0]=h[0]=1,i=254;i>=0;--i)$(c,u,o=s[i>>>3]>>>(7&i)&1),$(d,h,o),W(f,c,d),j(c,c,d),W(d,u,h),j(u,u,h),H(h,f),H(g,c),B(c,d,c),B(d,u,f),W(f,c,d),j(c,c,d),H(u,c),j(d,h,g),B(c,d,a),W(c,c,h),B(d,d,c),B(c,h,g),B(h,u,l),H(u,f),$(c,u,o),$(d,h,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=h[i];var p=l.subarray(32),w=l.subarray(16);return K(p,p),B(w,w,p),P(e,w),0}function D(e,t){return F(e,t,o)}function q(e,t){return n(t,32),D(e,t)}function z(e,t,n){var o=new Uint8Array(32);return F(o,n,t),b(e,r,o,C)}E.prototype.blocks=function(e,t,n){for(var r,o,i,s,a,l,c,u,d,h,f,g,p,w,m,v,y,b,C,x=this.fin?0:2048,_=this.h[0],k=this.h[1],S=this.h[2],E=this.h[3],L=this.h[4],R=this.h[5],A=this.h[6],T=this.h[7],M=this.h[8],O=this.h[9],$=this.r[0],P=this.r[1],I=this.r[2],N=this.r[3],U=this.r[4],W=this.r[5],j=this.r[6],B=this.r[7],H=this.r[8],K=this.r[9];n>=16;)h=d=0,h+=(_+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*$,h+=(k+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*K),h+=(S+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*H),h+=(E+=8191&(i>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*B),d=(h+=(L+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*j))>>>13,h&=8191,h+=(R+=a>>>1&8191)*(5*W),h+=(A+=8191&(a>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*U),h+=(T+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),h+=(M+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),f=d+=(h+=(O+=u>>>5|x)*(5*P))>>>13,f+=_*P,f+=k*$,f+=S*(5*K),f+=E*(5*H),d=(f+=L*(5*B))>>>13,f&=8191,f+=R*(5*j),f+=A*(5*W),f+=T*(5*U),f+=M*(5*N),d+=(f+=O*(5*I))>>>13,f&=8191,g=d,g+=_*I,g+=k*P,g+=S*$,g+=E*(5*K),d=(g+=L*(5*H))>>>13,g&=8191,g+=R*(5*B),g+=A*(5*j),g+=T*(5*W),g+=M*(5*U),p=d+=(g+=O*(5*N))>>>13,p+=_*N,p+=k*I,p+=S*P,p+=E*$,d=(p+=L*(5*K))>>>13,p&=8191,p+=R*(5*H),p+=A*(5*B),p+=T*(5*j),p+=M*(5*W),w=d+=(p+=O*(5*U))>>>13,w+=_*U,w+=k*N,w+=S*I,w+=E*P,d=(w+=L*$)>>>13,w&=8191,w+=R*(5*K),w+=A*(5*H),w+=T*(5*B),w+=M*(5*j),m=d+=(w+=O*(5*W))>>>13,m+=_*W,m+=k*U,m+=S*N,m+=E*I,d=(m+=L*P)>>>13,m&=8191,m+=R*$,m+=A*(5*K),m+=T*(5*H),m+=M*(5*B),v=d+=(m+=O*(5*j))>>>13,v+=_*j,v+=k*W,v+=S*U,v+=E*N,d=(v+=L*I)>>>13,v&=8191,v+=R*P,v+=A*$,v+=T*(5*K),v+=M*(5*H),y=d+=(v+=O*(5*B))>>>13,y+=_*B,y+=k*j,y+=S*W,y+=E*U,d=(y+=L*N)>>>13,y&=8191,y+=R*I,y+=A*P,y+=T*$,y+=M*(5*K),b=d+=(y+=O*(5*H))>>>13,b+=_*H,b+=k*B,b+=S*j,b+=E*W,d=(b+=L*U)>>>13,b&=8191,b+=R*N,b+=A*I,b+=T*P,b+=M*$,C=d+=(b+=O*(5*K))>>>13,C+=_*K,C+=k*H,C+=S*B,C+=E*j,d=(C+=L*W)>>>13,C&=8191,C+=R*U,C+=A*N,C+=T*I,C+=M*P,_=h=8191&(d=(d=((d+=(C+=O*$)>>>13)<<2)+d|0)+(h&=8191)|0),k=f+=d>>>=13,S=g&=8191,E=p&=8191,L=w&=8191,R=m&=8191,A=v&=8191,T=y&=8191,M=b&=8191,O=C&=8191,t+=16,n-=16;this.h[0]=_,this.h[1]=k,this.h[2]=S,this.h[3]=E,this.h[4]=L,this.h[5]=R,this.h[6]=A,this.h[7]=T,this.h[8]=M,this.h[9]=O},E.prototype.finish=function(e,t){var n,r,o,i,s=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,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,i=1;i<10;i++)s[i]=this.h[i]+n,n=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,r=(1^n)-1,i=0;i<10;i++)s[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|s[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 Z=A,G=T;var Y=[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,s,a,l,c,u,d,h,f,g,p,w,m,v,y,b,C,x,_,k,S,E,L,R,A,T=new Int32Array(16),M=new Int32Array(16),O=e[0],$=e[1],P=e[2],I=e[3],N=e[4],U=e[5],W=e[6],j=e[7],B=t[0],H=t[1],K=t[2],V=t[3],F=t[4],D=t[5],q=t[6],z=t[7],Z=0;r>=128;){for(x=0;x<16;x++)_=8*x+Z,T[x]=n[_+0]<<24|n[_+1]<<16|n[_+2]<<8|n[_+3],M[x]=n[_+4]<<24|n[_+5]<<16|n[_+6]<<8|n[_+7];for(x=0;x<80;x++)if(o=O,i=$,s=P,a=I,l=N,c=U,u=W,j,h=B,f=H,g=K,p=V,w=F,m=D,v=q,z,E=65535&(S=z),L=S>>>16,R=65535&(k=j),A=k>>>16,E+=65535&(S=(F>>>14|N<<18)^(F>>>18|N<<14)^(N>>>9|F<<23)),L+=S>>>16,R+=65535&(k=(N>>>14|F<<18)^(N>>>18|F<<14)^(F>>>9|N<<23)),A+=k>>>16,E+=65535&(S=F&D^~F&q),L+=S>>>16,R+=65535&(k=N&U^~N&W),A+=k>>>16,k=Y[2*x],E+=65535&(S=Y[2*x+1]),L+=S>>>16,R+=65535&k,A+=k>>>16,k=T[x%16],L+=(S=M[x%16])>>>16,R+=65535&k,A+=k>>>16,R+=(L+=(E+=65535&S)>>>16)>>>16,E=65535&(S=C=65535&E|L<<16),L=S>>>16,R=65535&(k=b=65535&R|(A+=R>>>16)<<16),A=k>>>16,E+=65535&(S=(B>>>28|O<<4)^(O>>>2|B<<30)^(O>>>7|B<<25)),L+=S>>>16,R+=65535&(k=(O>>>28|B<<4)^(B>>>2|O<<30)^(B>>>7|O<<25)),A+=k>>>16,L+=(S=B&H^B&K^H&K)>>>16,R+=65535&(k=O&$^O&P^$&P),A+=k>>>16,d=65535&(R+=(L+=(E+=65535&S)>>>16)>>>16)|(A+=R>>>16)<<16,y=65535&E|L<<16,E=65535&(S=p),L=S>>>16,R=65535&(k=a),A=k>>>16,L+=(S=C)>>>16,R+=65535&(k=b),A+=k>>>16,$=o,P=i,I=s,N=a=65535&(R+=(L+=(E+=65535&S)>>>16)>>>16)|(A+=R>>>16)<<16,U=l,W=c,j=u,O=d,H=h,K=f,V=g,F=p=65535&E|L<<16,D=w,q=m,z=v,B=y,x%16==15)for(_=0;_<16;_++)k=T[_],E=65535&(S=M[_]),L=S>>>16,R=65535&k,A=k>>>16,k=T[(_+9)%16],E+=65535&(S=M[(_+9)%16]),L+=S>>>16,R+=65535&k,A+=k>>>16,b=T[(_+1)%16],E+=65535&(S=((C=M[(_+1)%16])>>>1|b<<31)^(C>>>8|b<<24)^(C>>>7|b<<25)),L+=S>>>16,R+=65535&(k=(b>>>1|C<<31)^(b>>>8|C<<24)^b>>>7),A+=k>>>16,b=T[(_+14)%16],L+=(S=((C=M[(_+14)%16])>>>19|b<<13)^(b>>>29|C<<3)^(C>>>6|b<<26))>>>16,R+=65535&(k=(b>>>19|C<<13)^(C>>>29|b<<3)^b>>>6),A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,T[_]=65535&R|A<<16,M[_]=65535&E|L<<16;E=65535&(S=B),L=S>>>16,R=65535&(k=O),A=k>>>16,k=e[0],L+=(S=t[0])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[0]=O=65535&R|A<<16,t[0]=B=65535&E|L<<16,E=65535&(S=H),L=S>>>16,R=65535&(k=$),A=k>>>16,k=e[1],L+=(S=t[1])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[1]=$=65535&R|A<<16,t[1]=H=65535&E|L<<16,E=65535&(S=K),L=S>>>16,R=65535&(k=P),A=k>>>16,k=e[2],L+=(S=t[2])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[2]=P=65535&R|A<<16,t[2]=K=65535&E|L<<16,E=65535&(S=V),L=S>>>16,R=65535&(k=I),A=k>>>16,k=e[3],L+=(S=t[3])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[3]=I=65535&R|A<<16,t[3]=V=65535&E|L<<16,E=65535&(S=F),L=S>>>16,R=65535&(k=N),A=k>>>16,k=e[4],L+=(S=t[4])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[4]=N=65535&R|A<<16,t[4]=F=65535&E|L<<16,E=65535&(S=D),L=S>>>16,R=65535&(k=U),A=k>>>16,k=e[5],L+=(S=t[5])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[5]=U=65535&R|A<<16,t[5]=D=65535&E|L<<16,E=65535&(S=q),L=S>>>16,R=65535&(k=W),A=k>>>16,k=e[6],L+=(S=t[6])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[6]=W=65535&R|A<<16,t[6]=q=65535&E|L<<16,E=65535&(S=z),L=S>>>16,R=65535&(k=j),A=k>>>16,k=e[7],L+=(S=t[7])>>>16,R+=65535&k,A+=k>>>16,A+=(R+=(L+=(E+=65535&S)>>>16)>>>16)>>>16,e[7]=j=65535&R|A<<16,t[7]=z=65535&E|L<<16,Z+=128,r-=128}return r}function J(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),s=new Uint8Array(256),a=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++)s[r]=t[a-n+r];for(s[n]=128,s[(n=256-128*(n<112?1:0))-9]=0,p(s,n-8,a/536870912|0,a<<3),Q(o,i,s,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(),s=t(),a=t(),l=t(),c=t(),d=t(),h=t();j(r,e[1],e[0]),j(h,n[1],n[0]),B(r,r,h),W(o,e[0],e[1]),W(h,n[0],n[1]),B(o,o,h),B(i,e[3],n[3]),B(i,i,u),B(s,e[2],n[2]),W(s,s,s),j(a,o,r),j(l,s,i),W(c,s,i),W(d,o,r),B(e[0],a,l),B(e[1],d,c),B(e[2],c,l),B(e[3],a,d)}function ee(e,t,n){var r;for(r=0;r<4;r++)$(e[r],t[r],n)}function te(e,n){var r=t(),o=t(),i=t();K(i,n[2]),B(r,n[0],i),B(o,n[1],i),P(e,o),e[31]^=N(r)<<7}function ne(e,t,n){var r,o;for(M(e[0],i),M(e[1],s),M(e[2],s),M(e[3],i),o=255;o>=0;--o)ee(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),ee(e,t,r)}function re(e,n){var r=[t(),t(),t(),t()];M(r[0],h),M(r[1],f),M(r[2],s),B(r[3],h,f),ne(e,r,n)}function oe(e,r,o){var i,s=new Uint8Array(64),a=[t(),t(),t(),t()];for(o||n(r,32),J(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),te(e,a),i=0;i<32;i++)r[i+32]=e[i];return 0}var ie=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 se(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]*ie[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)*ie[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*ie[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;se(e,n)}function le(e,n,r,o){var i,s,a=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];J(a,o,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=a[32+i];for(J(c,e.subarray(32),r+32),ae(c),re(d,c),te(e,d),i=32;i<64;i++)e[i]=o[i];for(J(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(s=0;s<32;s++)u[i+s]+=l[i]*a[s];return se(e.subarray(32),u),h}function ce(e,n,r,o){var a,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],h=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),a=t(),c=t(),u=t(),d=t(),h=t();return M(e[2],s),U(e[1],n),H(a,e[1]),B(c,a,l),j(a,a,e[2]),W(c,e[2],c),H(u,c),H(d,u),B(h,d,u),B(r,h,a),B(r,r,c),V(r,r),B(r,r,a),B(r,r,c),B(r,r,c),B(e[0],r,c),H(o,e[0]),B(o,o,c),I(o,a)&&B(e[0],e[0],g),H(o,e[0]),B(o,o,c),I(o,a)?-1:(N(e[0])===n[31]>>7&&j(e[0],i,e[0]),B(e[3],e[0],e[1]),0)}(h,o))return-1;for(a=0;a<r;a++)e[a]=n[a];for(a=0;a<32;a++)e[a+32]=o[a];if(J(u,e,r),ae(u),ne(d,h,u),re(h,n.subarray(32)),X(d,h),te(c,d),r-=64,v(n,0,c,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=n[a+64];return r}var ue=32,de=24,he=16,fe=32,ge=32,pe=de,we=64,me=32,ve=64;function ye(e,t){if(e.length!==ue)throw new Error("bad key size");if(t.length!==de)throw new Error("bad nonce size")}function be(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ce(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:_,crypto_onetimeauth:L,crypto_onetimeauth_verify:R,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:A,crypto_secretbox_open:T,crypto_scalarmult:F,crypto_scalarmult_base:D,crypto_box_beforenm:z,crypto_box_afternm:Z,crypto_box:function(e,t,n,r,o,i){var s=new Uint8Array(32);return z(s,o,i),Z(e,t,n,r,s)},crypto_box_open:function(e,t,n,r,o,i){var s=new Uint8Array(32);return z(s,o,i),G(e,t,n,r,s)},crypto_box_keypair:q,crypto_hash:J,crypto_sign:le,crypto_sign_keypair:oe,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:ue,crypto_secretbox_NONCEBYTES:de,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:he,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:fe,crypto_box_SECRETKEYBYTES:ge,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:pe,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:we,crypto_sign_PUBLICKEYBYTES:me,crypto_sign_SECRETKEYBYTES:ve,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:ie,pack25519:P,unpack25519:U,M:B,A:W,S:H,Z:j,pow2523:V,add:X,set25519:M,modL:se,scalarmult:ne,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){be(e,t,n),ye(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 A(o,r,r.length,t,n),o.subarray(he)},e.secretbox.open=function(e,t,n){be(e,t,n),ye(n,t);for(var r=new Uint8Array(he+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+he]=e[i];return r.length<32||0!==T(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=ue,e.secretbox.nonceLength=de,e.secretbox.overheadLength=he,e.scalarMult=function(e,t){if(be(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(be(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return D(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){be(e,t),function(e,t){if(e.length!==fe)throw new Error("bad public key size");if(t.length!==ge)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return z(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(fe),t=new Uint8Array(ge);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(be(e),e.length!==ge)throw new Error("bad secret key size");var t=new Uint8Array(fe);return D(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=fe,e.box.secretKeyLength=ge,e.box.sharedKeyLength=32,e.box.nonceLength=pe,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(be(e,t),t.length!==ve)throw new Error("bad secret key size");var n=new Uint8Array(we+e.length);return le(n,e,e.length,t),n},e.sign.open=function(e,t){if(be(e,t),t.length!==me)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=ce(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(we),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(be(e,t,n),t.length!==we)throw new Error("bad signature size");if(n.length!==me)throw new Error("bad public key size");var r,o=new Uint8Array(we+e.length),i=new Uint8Array(we+e.length);for(r=0;r<we;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+we]=e[r];return ce(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(me),t=new Uint8Array(ve);return oe(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(be(e),e.length!==ve)throw new Error("bad secret key size");for(var t=new Uint8Array(me),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(be(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(me),n=new Uint8Array(ve),r=0;r<32;r++)n[r]=e[r];return oe(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=me,e.sign.secretKeyLength=ve,e.sign.seedLength=32,e.sign.signatureLength=we,e.hash=function(e){be(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return be(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===w(e,0,t,0,e.length))},e.setPRNG=function(e){n=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];Ce(o)}))}else void 0!==c&&(t=d)&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];Ce(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})}(u);const h=u.exports;var f,g,p,w,m,v,y,b,C,x;(g=f||(f={}))[g.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",g[g.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",g[g.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",g[g.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",g[g.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",g[g.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",g[g.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",e.CONNECT_ITEM_ERROR_CODES=void 0,(p=e.CONNECT_ITEM_ERROR_CODES||(e.CONNECT_ITEM_ERROR_CODES={}))[p.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",p[p.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(m=w||(w={}))[m.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",m[m.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",m[m.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",m[m.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",m[m.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(y=v||(v={}))[y.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",y[y.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",y[y.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",y[y.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",y[y.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(C=b||(b={}))[C.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",C[C.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",C[C.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",C[C.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",e.CHAIN=void 0,(x=e.CHAIN||(e.CHAIN={})).MAINNET="-239",x.TESTNET="-3";const _={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=l.decodeUTF8(e)),function(e,t){const n=l.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),l.decodeBase64(e)}(e,t);return{toString:()=>l.encodeUTF8(n),toObject(){try{return JSON.parse(l.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function k(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function S(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 E{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=k(this.keyPair.publicKey)}createKeypair(){return h.box.keyPair()}createKeypairFromString(e){return{publicKey:S(e.publicKey),secretKey:S(e.secretKey)}}createNonce(){return h.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,h.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=h.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:k(this.keyPair.publicKey),secretKey:k(this.keyPair.secretKey)}}}function L(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(t){i(t)}}function a(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}class R extends Error{constructor(e,t){super(e,t),this.message=`${R.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,R.prototype)}get info(){return""}}R.prefix="[TON_CONNECT_SDK_ERROR]";class A extends R{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,A.prototype)}}class T extends R{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(...e){super(...e),Object.setPrototypeOf(this,T.prototype)}}class M extends R{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(...e){super(...e),Object.setPrototypeOf(this,M.prototype)}}class O extends R{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,O.prototype)}}class $ extends R{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,$.prototype)}}class P extends R{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,P.prototype)}}class I extends R{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,I.prototype)}}class N extends R{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,N.prototype)}}class U extends R{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,U.prototype)}}class W extends R{get info(){return"Storage was not specified in the `DappMetadata` and default `localStorage` was not detected in the environment."}constructor(...e){super(...e),Object.setPrototypeOf(this,W.prototype)}}class j extends R{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,j.prototype)}}class B extends R{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,B.prototype)}}class H extends R{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,H.prototype)}}class K extends R{constructor(...e){super(...e),Object.setPrototypeOf(this,K.prototype)}}const V={[f.UNKNOWN_ERROR]:K,[f.USER_REJECTS_ERROR]:P,[f.BAD_REQUEST_ERROR]:I,[f.UNKNOWN_APP_ERROR]:N,[f.MANIFEST_NOT_FOUND_ERROR]:M,[f.MANIFEST_CONTENT_ERROR]:T};const F=new class{parseError(e){let t=K;return e.code in V&&(t=V[e.code]||K),new t(e.message)}};class D{isError(e){return"error"in e}}const q={[w.UNKNOWN_ERROR]:K,[w.USER_REJECTS_ERROR]:P,[w.BAD_REQUEST_ERROR]:I,[w.UNKNOWN_APP_ERROR]:N};const z=new class extends D{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=K;throw e.error.code in q&&(t=q[e.error.code]||K),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class Z{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return L(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return L(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return L(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function G(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function Y(e){const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function Q(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}class J{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.isClosed=!1,this.bridgeGatewayStorage=new Z(e,t)}registerSession(e){return L(this,void 0,void 0,(function*(){const t=new URL(G(this.bridgeUrl,this.ssePath));t.searchParams.append("client_id",this.sessionId);const n=yield this.bridgeGatewayStorage.getLastEventId();if(!this.isClosed)return n&&t.searchParams.append("last_event_id",n),this.eventSource=new EventSource(t.toString()),new Promise(((t,n)=>{const r=(null==e?void 0:e.openingDeadlineMS)?setTimeout((()=>{var e;(null===(e=this.eventSource)||void 0===e?void 0:e.readyState)!==EventSource.OPEN&&(n(new R("Bridge connection timeout")),this.close())}),e.openingDeadlineMS):void 0;this.eventSource.onerror=()=>n,this.eventSource.onopen=()=>{clearTimeout(r),this.isClosed=!1,this.eventSource.onerror=this.errorsHandler.bind(this),this.eventSource.onmessage=this.messagesHandler.bind(this),t()}}))}))}send(e,t,n,r){return L(this,void 0,void 0,(function*(){const o=new URL(G(this.bridgeUrl,this.postPath));o.searchParams.append("client_id",this.sessionId),o.searchParams.append("to",t),o.searchParams.append("ttl",(r||this.defaultTtl).toString()),o.searchParams.append("topic",n),yield fetch(o,{method:"post",body:_.encode(e)})}))}pause(){var e;null===(e=this.eventSource)||void 0===e||e.close()}unPause(){return this.registerSession()}close(){var e;this.isClosed=!0,null===(e=this.eventSource)||void 0===e||e.close()}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}errorsHandler(e){var t,n;if(!this.isClosed){if((null===(t=this.eventSource)||void 0===t?void 0:t.readyState)===EventSource.CLOSED)return this.eventSource.close(),void this.registerSession();if((null===(n=this.eventSource)||void 0===n?void 0:n.readyState)===EventSource.CONNECTING)return void console.debug("[TON_CONNET_SDK_ERROR]: Bridge error",JSON.stringify(e));this.errorsListener(e)}}messagesHandler(e){return L(this,void 0,void 0,(function*(){if(e.data!==this.heartbeatMessage&&(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),!this.isClosed)){let n;try{n=JSON.parse(e.data)}catch(t){throw new R(`Bridge message parse failed, message ${t.data}`)}this.listener(n)}}))}}function X(e){return!("connectEvent"in e)}class ee{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return L(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!X(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 L(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return L(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 E(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 E(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return L(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new R("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new R("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return L(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new R("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new R("Trying to read HTTP connection source while injected connection is stored");if(!X(e))throw new R("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return L(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new R("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new R("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return L(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 L(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!X(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return L(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return L(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 L(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}function te(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function ne(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class re{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.connectionStorage=new ee(e)}static fromStorage(e){return L(this,void 0,void 0,(function*(){const t=new ee(e),n=yield t.getHttpConnection();return X(n)?new re(e,n.connectionSource):new re(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e){this.closeGateways();const t=new E;this.session={sessionCrypto:t,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:t}).then((()=>this.openGateways(t)));const n="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(n,e)}restoreConnection(){return L(this,void 0,void 0,(function*(){this.closeGateways();const e=yield this.connectionStorage.getHttpConnection();if(e){if(X(e))return this.session={sessionCrypto:e.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.openGateways(e.sessionCrypto,{openingDeadlineMS:5e3});if(Array.isArray(this.walletConnectionSource))throw new R("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");this.session=e.session,this.gateway=new J(this.storage,this.walletConnectionSource.bridgeUrl,e.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this));try{yield this.gateway.registerSession({openingDeadlineMS:5e3})}catch(t){return void(yield this.disconnect())}this.listeners.forEach((t=>t(e.connectEvent)))}}))}sendRequest(e,t){return new Promise(((n,r)=>L(this,void 0,void 0,(function*(){if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new R("Trying to send bridge request without session");const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),te("Send http-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:o})),S(this.session.walletPublicKey));this.gateway.send(i,this.session.walletPublicKey,e.method).catch(r),this.pendingRequests.set(o.toString(),n),null==t||t()}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(){return L(this,void 0,void 0,(function*(){return new Promise((e=>L(this,void 0,void 0,(function*(){let t=!1;const n=()=>{t=!0,this.removeBridgeAndSession().then(e)};try{yield this.sendRequest({method:"disconnect",params:[]},n)}catch(r){console.debug(r),t||this.removeBridgeAndSession().then(e)}}))))}))}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 L(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 L(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);e.close()}))}gatewayListener(e){return L(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(_.decode(e.message).toUint8Array(),S(e.from)));if(te("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 te(`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 ne(`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&&(yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return L(this,void 0,void 0,(function*(){throw new R(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return L(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 L(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return Y(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-"+Q(this.generateRegularUniversalLink("about:blank",t).split("?")[1]),r=new URL(e);return r.searchParams.append("startattach",n),r.toString()}openGateways(e,t){return L(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new J(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(e=>{console.error(e)}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>e.registerSession(t)))))):(this.gateway=new J(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),this.gateway.registerSession(t))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null==e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function oe(e,t){return ie(e,[t])}function ie(e,t){return!(!e||"object"!=typeof e)&&t.every((t=>t in e))}class se{constructor(){this.storage={}}static getInstance(){return se.instance||(se.instance=new se),se.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 ae(){if("undefined"!=typeof window)return window}function le(){var e;const t=null===(e=ae())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function ce(){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 R("`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 se.getInstance()}class ue{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=ue.window;if(!ue.isWindowContainsWallet(n,t))throw new U;this.connectionStorage=new ee(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return L(this,void 0,void 0,(function*(){const t=new ee(e),n=yield t.getInjectedConnection();return new ue(e,n.jsBridgeKey)}))}static isWalletInjected(e){return ue.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!ue.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=ae();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter((([e,t])=>function(e){try{return!(!oe(e,"tonconnect")||!oe(e.tonconnect,"walletInfo"))&&ie(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t))).map((([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.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 L(this,void 0,void 0,(function*(){try{te("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();te("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return L(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(n){te(n),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){return L(this,void 0,void 0,(function*(){const n=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),te("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:n}));const r=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:n}));return r.then((e=>te("Wallet message received:",e))),null==t||t(),r}))}_connect(e,t){return L(this,void 0,void 0,(function*(){try{te(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);te("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(n){te(n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach((t=>t(e)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{te("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})}}ue.window=ae();class de{constructor(){this.localStorage=ce()}getItem(e){return L(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return L(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return L(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function he(e){return ge(e)&&e.injected}function fe(e){return he(e)&&e.embedded}function ge(e){return"jsBridgeKey"in e}function pe(e){return"bridgeUrl"in e}const we=[{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.tonapi.io/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",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","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:"mytonwallet",name:"MyTonWallet",image:"https://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"]},{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:"tonflow",name:"TonFlow",image:"https://tonflow.net/assets/images/tonflow_ico_192.png",about_url:"https://tonflow.net",bridge:[{type:"js",key:"tonflow"}],platforms:["chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{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"]}];class me{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.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null==e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return L(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 L(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(fe);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return L(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 j("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(ne(`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(n){ne(n),e=we}let t=[];try{t=ue.getCurrentlyInjectedWallets()}catch(n){ne(n)}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=ue.isWalletInjected(e),t.embedded=ue.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 ve extends R{get info(){return"Wallet doesn't support requested feature method."}constructor(...e){super(...e),Object.setPrototypeOf(this,ve.prototype)}}function ye(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"==typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new ve("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new ve(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}class be{constructor(e){if(this.walletsList=new me,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||le(),storage:(null==e?void 0:e.storage)||new de},this.walletsList=new me({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),!this.dappSettings.manifestUrl)throw new A("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 ee(this.dappSettings.storage),(null==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;if(this.connected)throw new O;return null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=this.createProvider(e),this.provider.connect(this.createConnectRequest(t))}restoreConnection(){return L(this,void 0,void 0,(function*(){const[e,t]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);try{switch(e){case"http":this.provider=yield re.fromStorage(this.dappSettings.storage);break;case"injected":this.provider=yield ue.fromStorage(this.dappSettings.storage);break;default:if(!t)return;this.provider=yield this.createProvider(t)}}catch(n){return yield this.bridgeConnectionStorage.removeConnection(),void(this.provider=null)}return this.provider.listen(this.walletEventsListener.bind(this)),this.provider.restoreConnection()}))}sendTransaction(e){return L(this,void 0,void 0,(function*(){this.checkConnection(),ye(this.wallet.device.features,{requiredMessagesNumber:e.messages.length});const{validUntil:t}=e,n=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"]),r=e.from||this.account.address,o=e.network||this.account.chain,i=yield this.provider.sendRequest(z.convertToRpcRequest(Object.assign(Object.assign({},n),{valid_until:t,from:r,network:o})));return z.isError(i)?z.parseAndThrowError(i):z.convertFromRpcResponse(i)}))}disconnect(){return L(this,void 0,void 0,(function*(){if(!this.connected)throw new $;yield this.provider.disconnect(),this.onWalletDisconnected()}))}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=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection()}))}catch(t){console.error("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new ue(this.dappSettings.storage,e.jsBridgeKey):new re(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()}}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 R("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}onWalletConnectError(e){const t=F.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),console.debug(t),t instanceof M||t instanceof T)throw console.error(t),t}onWalletDisconnected(){this.wallet=null}checkConnection(){if(!this.connected)throw new $}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}be.walletsList=new me,be.isWalletInjected=e=>ue.isWalletInjected(e),be.isInsideWalletBrowser=e=>ue.isInsideWalletBrowser(e);const Ce=81,xe=128;function _e(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new B(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new B(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new B(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new B(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:Se(r)}}(e);let o=Ce;t&&(o|=xe);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const s=new Uint8Array(36);return s.set(i),s.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),_.encode(s).replace(/\+/g,"-").replace(/\//g,"_")}const ke={};for(let zc=0;zc<=255;zc++){let e=zc.toString(16);e.length<2&&(e="0"+e),ke[e]=zc}function Se(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new H("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(!ke.hasOwnProperty(n))throw new H("Invalid hex character: "+n);r[o]=ke[n]}return r}const Ee={};const Le=Symbol("solid-proxy"),Re=Symbol("solid-track"),Ae={equals:(e,t)=>e===t};let Te=lt;const Me=1,Oe=2,$e={owned:null,cleanups:null,context:null,owner:null},Pe={};var Ie=null;let Ne,Ue=null,We=null,je=null,Be=null,He=0;function Ke(e,t){const n=We,r=Ie,o=0===e.length,i=o?$e:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},s=o?e:()=>e((()=>Ye((()=>ht(i)))));Ie=i,We=null;try{return at(s,!0)}finally{We=n,Ie=r}}function Ve(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Ae,t):Ae).equals||void 0};return[nt.bind(n),e=>("function"==typeof e&&(e=e(n.value)),rt(n,e))]}function Fe(e,t,n){ot(it(e,t,!0,Me))}function De(e,t,n){ot(it(e,t,!1,Me))}function qe(e,t,n){Te=ct;const r=it(e,t,!1,Me);r.user=!0,Be?Be.push(r):ot(r)}function ze(e,t,n){n=n?Object.assign({},Ae,n):Ae;const r=it(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ot(r),nt.bind(r)}function Ze(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 s=null,a=Pe,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&ze(r);const h=new Set,[f,g]=(i.storage||Ve)(i.initialValue),[p,w]=Ve(void 0),[m,v]=Ve(void 0,{equals:!1}),[y,b]=Ve(u?"ready":"unresolved");if(Ee.context){let e;l=`${Ee.context.id}${Ee.context.count++}`,"initial"===i.ssrLoadFrom?a=i.initialValue:Ee.load&&(e=Ee.load(l))&&(a=e[0])}function C(e,t,n,r){return s===e&&(s=null,u=!0,e!==a&&t!==a||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),a=Pe,function(e,t){at((()=>{void 0===t&&g((()=>e)),b(void 0!==t?"errored":"ready"),w(t);for(const e of h.keys())e.decrement();h.clear()}),!1)}(t,n)),t}function x(){const e=Ne,t=f(),n=p();if(void 0!==n&&!s)throw n;return We&&!We.user&&e&&Fe((()=>{m(),s&&(e.resolved||h.has(e)||(e.increment(),h.add(e)))})),t}function _(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void C(s,Ye(f));const n=a!==Pe?a:Ye((()=>o(t,{value:f(),refetching:e})));return"object"==typeof n&&n&&"then"in n?(s=n,c=!0,queueMicrotask((()=>c=!1)),at((()=>{b(u?"refreshing":"pending"),v()}),!1),n.then((e=>C(n,e,void 0,t)),(e=>C(n,void 0,ft(e),t)))):(C(s,n,void 0,t),n)}return Object.defineProperties(x,{state:{get:()=>y()},error:{get:()=>p()},loading:{get(){const e=y();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return x();const e=p();if(e&&!s)throw e;return f()}}}),d?Fe((()=>_(!1))):_(!1),[x,{refetch:_,mutate:g}]}function Ge(e){return at(e,!1)}function Ye(e){if(null===We)return e();const t=We;We=null;try{return e()}finally{We=t}}function Qe(e){return null===Ie||(null===Ie.cleanups?Ie.cleanups=[e]:Ie.cleanups.push(e)),e}function Je(){return We}function Xe(e,t){const n=Symbol("context");return{id:n,Provider:mt(n),defaultValue:e}}function et(e){let t;return void 0!==(t=pt(Ie,e.id))?t:e.defaultValue}function tt(e){const t=ze(e),n=ze((()=>wt(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function nt(){const e=Ue;if(this.sources&&(this.state||e))if(this.state===Me||e)ot(this);else{const e=je;je=null,at((()=>ut(this)),!1),je=e}if(We){const e=this.observers?this.observers.length:0;We.sources?(We.sources.push(this),We.sourceSlots.push(e)):(We.sources=[this],We.sourceSlots=[e]),this.observers?(this.observers.push(We),this.observerSlots.push(We.sources.length-1)):(this.observers=[We],this.observerSlots=[We.sources.length-1])}return this.value}function rt(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&at((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Ue&&Ue.running;r&&Ue.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?je.push(n):Be.push(n),n.observers&&dt(n)),r||(n.state=Me)}if(je.length>1e6)throw je=[],new Error}),!1)),t}function ot(e){if(!e.fn)return;ht(e);const t=Ie,n=We,r=He;We=Ie=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Me,e.owned&&e.owned.forEach(ht),e.owned=null),gt(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?rt(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),We=n,Ie=t}function it(e,t,n,r=Me,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ie,context:null,pure:n};return null===Ie||Ie!==$e&&(Ie.owned?Ie.owned.push(i):Ie.owned=[i]),i}function st(e){const t=Ue;if(0===e.state||t)return;if(e.state===Oe||t)return ut(e);if(e.suspense&&Ye(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<He);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Me||t)ot(e);else if(e.state===Oe||t){const t=je;je=null,at((()=>ut(e,n[0])),!1),je=t}}function at(e,t){if(je)return e();let n=!1;t||(je=[]),Be?n=!0:Be=[],He++;try{const t=e();return function(e){je&&(lt(je),je=null);if(e)return;const t=Be;Be=null,t.length&&at((()=>Te(t)),!1)}(n),t}catch(r){n||(Be=null),je=null,gt(r)}}function lt(e){for(let t=0;t<e.length;t++)st(e[t])}function ct(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:st(r)}var r;for(Ee.context&&(Ee.context=r),t=0;t<n;t++)st(e[t])}function ut(e,t){const n=Ue;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Me||n?o!==t&&st(o):(o.state===Oe||n)&&ut(o,t))}}function dt(e){const t=Ue;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Oe,r.pure?je.push(r):Be.push(r),r.observers&&dt(r))}}function ht(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++)ht(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 ft(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function gt(e){throw e=ft(e)}function pt(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:pt(e.owner,t):void 0}function wt(e){if("function"==typeof e&&!e.length)return wt(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=wt(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function mt(e,t){return function(t){let n;return De((()=>n=Ye((()=>(Ie.context={[e]:t.value},tt((()=>t.children)))))),void 0),n}}const vt=Symbol("fallback");function yt(e){for(let t=0;t<e.length;t++)e[t]()}function bt(e,t){return Ye((()=>e(t||{})))}function Ct(){return!0}const xt={get:(e,t,n)=>t===Le?n:e.get(t),has:(e,t)=>t===Le||e.has(t),set:Ct,deleteProperty:Ct,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Ct,deleteProperty:Ct}),ownKeys:e=>e.keys()};function _t(e){return(e="function"==typeof e?e():e)?e:{}}function kt(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Le in n,e[r]="function"==typeof n?(t=!0,ze(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=_t(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in _t(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(_t(e[n])));return[...new Set(t)]}},xt);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function St(e,...t){const n=new Set(t.flat());if(Le in e){const r=t.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))},xt)));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!n.has(e)))},xt)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter((e=>!n.has(e)))),t.map((t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n}))}function Et(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ze(function(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return Qe((()=>yt(i))),()=>{let l,c,u=e()||[];return u[Re],Ye((()=>{let e,t,h,f,g,p,w,m,v,y=u.length;if(0===y)0!==s&&(yt(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[vt],o[0]=Ke((e=>(i[0]=e,n.fallback()))),s=1);else if(0===s){for(o=new Array(y),c=0;c<y;c++)r[c]=u[c],o[c]=Ke(d);s=y}else{for(h=new Array(y),f=new Array(y),a&&(g=new Array(y)),p=0,w=Math.min(s,y);p<w&&r[p]===u[p];p++);for(w=s-1,m=y-1;w>=p&&m>=p&&r[w]===u[m];w--,m--)h[m]=o[w],f[m]=i[w],a&&(g[m]=a[w]);for(e=new Map,t=new Array(m+1),c=m;c>=p;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=p;l<=w;l++)v=r[l],c=e.get(v),void 0!==c&&-1!==c?(h[c]=o[l],f[c]=i[l],a&&(g[c]=a[l]),c=t[c],e.set(v,c)):i[l]();for(c=p;c<y;c++)c in h?(o[c]=h[c],i[c]=f[c],a&&(a[c]=g[c],a[c](c))):o[c]=Ke(d);o=o.slice(0,s=y),r=u.slice(0)}return o}));function d(e){if(i[c]=e,a){const[e,n]=Ve(c);return a[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function Lt(e){let t=!1;const n=e.keyed,r=ze((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return ze((()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Ye((()=>r(o))):r}return e.fallback}),void 0,void 0)}function Rt(e){let t=!1,n=!1;const r=tt((()=>e.children)),o=ze((()=>{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 ze((()=>{const[r,i,s]=o();if(r<0)return e.fallback;const a=s.children,l="function"==typeof a&&a.length>0;return t=n||l,l?Ye((()=>a(i))):a}),void 0,void 0)}function At(e){return e}const Tt=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"]),Mt=new Set(["innerHTML","textContent","innerText","children"]),Ot=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),$t=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Pt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),It=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"]),Nt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Ut="_$DX_DELEGATE";function Wt(e,t,n){const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function jt(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Bt(e,t){null==t?e.removeAttribute("class"):e.className=t}function Ht(e,t={},n,r){const o={};return r||De((()=>o.children=Zt(e,t.children,o.children))),De((()=>t.ref&&t.ref(e))),De((()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if("children"===s)continue;o[s]=qt(e,s,null,o[s],n,i)}for(const s in t){if("children"===s){r||Zt(e,t.children);continue}const a=t[s];o[s]=qt(e,s,a,o[s],n,i)}}(e,t,n,!0,o,!0))),o}function Kt(e,t,n){return Ye((()=>e(t,n)))}function Vt(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Zt(e,t,r,n);De((r=>Zt(e,t(),r,n)),r)}function Ft(e){let t,n;return Ee.context&&(t=Ee.registry.get(n=function(){const e=Ee.context;return`${e.id}${e.count++}`}()))?(Ee.completed&&Ee.completed.add(t),Ee.registry.delete(n),t):e.cloneNode(!0)}function Dt(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 qt(e,t,n,r,o,i){let s,a,l;if("style"===t)return function(e,t,n){if(!t)return n?jt(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,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Dt(e,r,!1),delete n[r])}for(i=0,s=r.length;i<s;i++){const o=r[i],s=!!t[o];o&&"undefined"!==o&&n[o]!==s&&s&&(Dt(e,o,!0),n[o]=s)}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=Pt.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,t=window.document){const n=t[Ut]||(t[Ut]=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,zt))}}([o]))}else if((l=Mt.has(t))||!o&&($t[t]||(a=Tt.has(t)))||(s=e.nodeName.includes("-")))"class"===t||"className"===t?Bt(e,n):!s||a||l?e[$t[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&Nt[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):jt(e,Ot[t]||t,n)}var c;return n}function zt(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}),Ee.registry&&!Ee.done&&(Ee.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 Zt(e,t,n,r,o){for(Ee.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,s=void 0!==r;if(e=s&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Ee.context)return n;if("number"===i&&(t=t.toString()),s){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=Qt(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Ee.context)return n;n=Qt(e,n,r)}else{if("function"===i)return De((()=>{let o=t();for(;"function"==typeof o;)o=o();n=Zt(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],a=n&&Array.isArray(n);if(Gt(i,t,n,o))return De((()=>n=Zt(e,i,n,r,!0))),()=>n;if(Ee.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=Qt(e,n,r),s)return n}else a?0===n.length?Yt(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;)if(t[s]!==n[a]){for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const t=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],t)}else if(i===a)for(;s<o;)c&&c.has(t[s])||t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=a;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[s]);if(null!=r)if(a<r&&r<i){let l,u=s,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-a){const o=t[s];for(;a<r;)e.insertBefore(n[a++],o)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}else s++,a++}(e,n,i):(n&&Qt(e),Yt(e,i));n=i}else if(t instanceof Node){if(Ee.context&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Qt(e,n,r,t);Qt(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Gt(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let s=t[i],a=n&&n[i];if(s instanceof Node)e.push(s);else if(null==s||!0===s||!1===s);else if(Array.isArray(s))o=Gt(e,s,a)||o;else if("function"==typeof s)if(r){for(;"function"==typeof s;)s=s();o=Gt(e,Array.isArray(s)?s:[s],Array.isArray(a)?a:[a])||o}else e.push(s),o=!0;else{const t=String(s);a&&3===a.nodeType&&a.data===t?e.push(a):e.push(document.createTextNode(t))}}return o}function Yt(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Qt(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 s=t[i];if(o!==s){const t=s.parentNode===e;r||i?t&&s.remove():t?e.replaceChild(o,s):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const Jt="http://www.w3.org/2000/svg";function Xt(e,t=!1){return t?document.createElementNS(Jt,e):document.createElement(e)}function en(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Ee.context){const[t,n]=Ve(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Ve(!1),n=()=>t(!0);Ke((t=>Vt(r,(()=>e()?t():o()()),null))),Qe((()=>{Ee.context?queueMicrotask(n):n()}))}else{const i=Xt(e.isSVG?"g":"div",e.isSVG),s=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Vt(s,o()),r.appendChild(i),e.ref&&e.ref(i),Qe((()=>r.removeChild(i)))}return n}function tn(e){const[t,n]=St(e,["component"]),r=ze((()=>t.component));return ze((()=>{const e=r();switch(typeof e){case"function":return Ye((()=>e(n)));case"string":const t=It.has(e),r=Ee.context?Ft():Xt(e,t);return Ht(r,n,t),r}}))}var nn=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(nn||{});let rn={data:""},on=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||rn,sn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,an=/\/\*[^]*?\*\/| +/g,ln=/\n+/g,cn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?cn(s,i):i+"{"+cn(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=cn(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=cn.p?cn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},un={},dn=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+dn(e[n]);return t}return e},hn=(e,t,n,r,o)=>{let i=dn(e),s=un[i]||(un[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!un[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=sn.exec(e.replace(an,""));)t[4]?r.shift():t[3]?(n=t[3].replace(ln," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ln," ").trim();return r[0]})(e);un[s]=cn(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&un.g?un.g:null;return n&&(un.g=un[s]),l=un[s],c=t,u=r,(d=a)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),s;var l,c,u,d},fn=(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?"":cn(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function gn(e){let t=this||{},n=e.call?e(t.p):e;return hn(n.unshift?n.raw?fn(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,on(t.target),t.g,t.o,t.k)}gn.bind({g:1});let pn=gn.bind({k:1});const wn=Xe();function mn(e){return bt(wn.Provider,{value:e.theme,get children(){return e.children}})}function vn(){return et(wn)}function yn(e){let t=this||{};return(...n)=>{const r=r=>{const o=kt(r,{theme:et(wn)}),i=kt(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,gn.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[s,a]=St(i,["as","theme"]),l=a,c=s.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Ht(u,l)):u=tn(kt({component:c},l)),u};return r.class=e=>Ye((()=>gn.apply({target:t.target,p:e,g:t.g},n))),r}}const bn=new Proxy(yn,{get:(e,t)=>e(t)});function Cn(){const e=yn.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const xn="tc-root",_n="tc-disable-scroll",kn="tc-using-mouse",Sn=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(kn))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(kn)}));return bt(Cn`
1
+ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__publicField=(e,t,n)=>(__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),n),__async=(e,t,n)=>new Promise(((r,o)=>{var i=e=>{try{a(n.next(e))}catch(t){o(t)}},s=e=>{try{a(n.throw(e))}catch(t){o(t)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,s);a((n=n.apply(e,t)).next())}));!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).TON_CONNECT_UI={})}(this,(function(e){var t,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var o,i,s,a={exports:{}};i=n,s=function(){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?void 0!==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},(o=a).exports?o.exports=s():(i.nacl||(i.nacl={}),i.nacl.util=s());const l=a.exports;function c(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var u={exports:{}};const d=r(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));!function(e){!function(e){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},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var i=t(),s=t([1]),a=t([56129,1]),l=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]),h=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]),p=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function g(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 w(e,t,n,r,o){var i,s=0;for(i=0;i<o;i++)s|=e[t+i]^n[r+i];return(1&s-1>>>8)-1}function m(e,t,n,r){return w(e,t,n,r,16)}function v(e,t,n,r){return w(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,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=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,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=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,w=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=i,x=s,_=a,k=l,S=c,E=u,R=d,L=h,T=f,A=p,M=g,O=w,$=m,P=v,I=y,N=b,U=0;U<20;U+=2)C^=(o=($^=(o=(T^=(o=(S^=(o=C+$|0)<<7|o>>>25)+C|0)<<9|o>>>23)+S|0)<<13|o>>>19)+T|0)<<18|o>>>14,E^=(o=(x^=(o=(P^=(o=(A^=(o=E+x|0)<<7|o>>>25)+E|0)<<9|o>>>23)+A|0)<<13|o>>>19)+P|0)<<18|o>>>14,M^=(o=(R^=(o=(_^=(o=(I^=(o=M+R|0)<<7|o>>>25)+M|0)<<9|o>>>23)+I|0)<<13|o>>>19)+_|0)<<18|o>>>14,N^=(o=(O^=(o=(L^=(o=(k^=(o=N+O|0)<<7|o>>>25)+N|0)<<9|o>>>23)+k|0)<<13|o>>>19)+L|0)<<18|o>>>14,C^=(o=(k^=(o=(_^=(o=(x^=(o=C+k|0)<<7|o>>>25)+C|0)<<9|o>>>23)+x|0)<<13|o>>>19)+_|0)<<18|o>>>14,E^=(o=(S^=(o=(L^=(o=(R^=(o=E+S|0)<<7|o>>>25)+E|0)<<9|o>>>23)+R|0)<<13|o>>>19)+L|0)<<18|o>>>14,M^=(o=(A^=(o=(T^=(o=(O^=(o=M+A|0)<<7|o>>>25)+M|0)<<9|o>>>23)+O|0)<<13|o>>>19)+T|0)<<18|o>>>14,N^=(o=(I^=(o=(P^=(o=($^=(o=N+I|0)<<7|o>>>25)+N|0)<<9|o>>>23)+$|0)<<13|o>>>19)+P|0)<<18|o>>>14;C=C+i|0,x=x+s|0,_=_+a|0,k=k+l|0,S=S+c|0,E=E+u|0,R=R+d|0,L=L+h|0,T=T+f|0,A=A+p|0,M=M+g|0,O=O+w|0,$=$+m|0,P=P+v|0,I=I+y|0,N=N+b|0,e[0]=C>>>0&255,e[1]=C>>>8&255,e[2]=C>>>16&255,e[3]=C>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=E>>>0&255,e[21]=E>>>8&255,e[22]=E>>>16&255,e[23]=E>>>24&255,e[24]=R>>>0&255,e[25]=R>>>8&255,e[26]=R>>>16&255,e[27]=R>>>24&255,e[28]=L>>>0&255,e[29]=L>>>8&255,e[30]=L>>>16&255,e[31]=L>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=A>>>0&255,e[37]=A>>>8&255,e[38]=A>>>16&255,e[39]=A>>>24&255,e[40]=M>>>0&255,e[41]=M>>>8&255,e[42]=M>>>16&255,e[43]=M>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=$>>>0&255,e[49]=$>>>8&255,e[50]=$>>>16&255,e[51]=$>>>24&255,e[52]=P>>>0&255,e[53]=P>>>8&255,e[54]=P>>>16&255,e[55]=P>>>24&255,e[56]=I>>>0&255,e[57]=I>>>8&255,e[58]=I>>>16&255,e[59]=I>>>24&255,e[60]=N>>>0&255,e[61]=N>>>8&255,e[62]=N>>>16&255,e[63]=N>>>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,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=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,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,f=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,w=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=0;C<20;C+=2)i^=(o=(m^=(o=(f^=(o=(c^=(o=i+m|0)<<7|o>>>25)+i|0)<<9|o>>>23)+c|0)<<13|o>>>19)+f|0)<<18|o>>>14,u^=(o=(s^=(o=(v^=(o=(p^=(o=u+s|0)<<7|o>>>25)+u|0)<<9|o>>>23)+p|0)<<13|o>>>19)+v|0)<<18|o>>>14,g^=(o=(d^=(o=(a^=(o=(y^=(o=g+d|0)<<7|o>>>25)+g|0)<<9|o>>>23)+y|0)<<13|o>>>19)+a|0)<<18|o>>>14,b^=(o=(w^=(o=(h^=(o=(l^=(o=b+w|0)<<7|o>>>25)+b|0)<<9|o>>>23)+l|0)<<13|o>>>19)+h|0)<<18|o>>>14,i^=(o=(l^=(o=(a^=(o=(s^=(o=i+l|0)<<7|o>>>25)+i|0)<<9|o>>>23)+s|0)<<13|o>>>19)+a|0)<<18|o>>>14,u^=(o=(c^=(o=(h^=(o=(d^=(o=u+c|0)<<7|o>>>25)+u|0)<<9|o>>>23)+d|0)<<13|o>>>19)+h|0)<<18|o>>>14,g^=(o=(p^=(o=(f^=(o=(w^=(o=g+p|0)<<7|o>>>25)+g|0)<<9|o>>>23)+w|0)<<13|o>>>19)+f|0)<<18|o>>>14,b^=(o=(y^=(o=(v^=(o=(m^=(o=b+y|0)<<7|o>>>25)+b|0)<<9|o>>>23)+m|0)<<13|o>>>19)+v|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]=b>>>0&255,e[13]=b>>>8&255,e[14]=b>>>16&255,e[15]=b>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=f>>>0&255,e[25]=f>>>8&255,e[26]=f>>>16&255,e[27]=f>>>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 C=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,s){var a,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,s,C),l=0;l<64;l++)e[t+l]=n[r+l]^u[l];for(a=1,l=8;l<16;l++)a=a+(255&c[l])|0,c[l]=255&a,a>>>=8;o-=64,t+=64,r+=64}if(o>0)for(y(u,c,s,C),l=0;l<o;l++)e[t+l]=n[r+l]^u[l];return 0}function _(e,t,n,r,o){var i,s,a=new Uint8Array(16),l=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=r[s];for(;n>=64;){for(y(l,a,o,C),s=0;s<64;s++)e[t+s]=l[s];for(i=1,s=8;s<16;s++)i=i+(255&a[s])|0,a[s]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(y(l,a,o,C),s=0;s<n;s++)e[t+s]=l[s];return 0}function k(e,t,n,r,o){var i=new Uint8Array(32);b(i,r,o,C);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=r[a+16];return _(e,t,n,s,i)}function S(e,t,n,r,o,i,s){var a=new Uint8Array(32);b(a,i,s,C);for(var l=new Uint8Array(8),c=0;c<8;c++)l[c]=i[c+16];return x(e,t,n,r,o,l,a)}var E=function(e){var t,n,r,o,i,s,a,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,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),l=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>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 R(e,t,n,r,o,i){var s=new E(i);return s.update(n,r,o),s.finish(e,t),0}function L(e,t,n,r,o,i){var s=new Uint8Array(16);return R(s,0,n,r,o,i),m(e,t,s,0)}function T(e,t,n,r,o){var i;if(n<32)return-1;for(S(e,0,t,0,n,r,o),R(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function A(e,t,n,r,o){var i,s=new Uint8Array(32);if(n<32)return-1;if(k(s,0,32,r,o),0!==L(t,16,t,32,n-32,s))return-1;for(S(e,0,t,0,n,r,o),i=0;i<32;i++)e[i]=0;return 0}function M(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function O(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 $(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 P(e,n){var r,o,i,s=t(),a=t();for(r=0;r<16;r++)a[r]=n[r];for(O(a),O(a),O(a),o=0;o<2;o++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,$(a,s,1-i)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function I(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return P(n,e),P(r,t),v(n,0,r,0)}function N(e){var t=new Uint8Array(32);return P(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function W(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function B(e,t,n){var r,o,i=0,s=0,a=0,l=0,c=0,u=0,d=0,h=0,f=0,p=0,g=0,w=0,m=0,v=0,y=0,b=0,C=0,x=0,_=0,k=0,S=0,E=0,R=0,L=0,T=0,A=0,M=0,O=0,$=0,P=0,I=0,N=n[0],U=n[1],W=n[2],j=n[3],B=n[4],H=n[5],K=n[6],V=n[7],D=n[8],F=n[9],q=n[10],z=n[11],Z=n[12],G=n[13],Y=n[14],Q=n[15];i+=(r=t[0])*N,s+=r*U,a+=r*W,l+=r*j,c+=r*B,u+=r*H,d+=r*K,h+=r*V,f+=r*D,p+=r*F,g+=r*q,w+=r*z,m+=r*Z,v+=r*G,y+=r*Y,b+=r*Q,s+=(r=t[1])*N,a+=r*U,l+=r*W,c+=r*j,u+=r*B,d+=r*H,h+=r*K,f+=r*V,p+=r*D,g+=r*F,w+=r*q,m+=r*z,v+=r*Z,y+=r*G,b+=r*Y,C+=r*Q,a+=(r=t[2])*N,l+=r*U,c+=r*W,u+=r*j,d+=r*B,h+=r*H,f+=r*K,p+=r*V,g+=r*D,w+=r*F,m+=r*q,v+=r*z,y+=r*Z,b+=r*G,C+=r*Y,x+=r*Q,l+=(r=t[3])*N,c+=r*U,u+=r*W,d+=r*j,h+=r*B,f+=r*H,p+=r*K,g+=r*V,w+=r*D,m+=r*F,v+=r*q,y+=r*z,b+=r*Z,C+=r*G,x+=r*Y,_+=r*Q,c+=(r=t[4])*N,u+=r*U,d+=r*W,h+=r*j,f+=r*B,p+=r*H,g+=r*K,w+=r*V,m+=r*D,v+=r*F,y+=r*q,b+=r*z,C+=r*Z,x+=r*G,_+=r*Y,k+=r*Q,u+=(r=t[5])*N,d+=r*U,h+=r*W,f+=r*j,p+=r*B,g+=r*H,w+=r*K,m+=r*V,v+=r*D,y+=r*F,b+=r*q,C+=r*z,x+=r*Z,_+=r*G,k+=r*Y,S+=r*Q,d+=(r=t[6])*N,h+=r*U,f+=r*W,p+=r*j,g+=r*B,w+=r*H,m+=r*K,v+=r*V,y+=r*D,b+=r*F,C+=r*q,x+=r*z,_+=r*Z,k+=r*G,S+=r*Y,E+=r*Q,h+=(r=t[7])*N,f+=r*U,p+=r*W,g+=r*j,w+=r*B,m+=r*H,v+=r*K,y+=r*V,b+=r*D,C+=r*F,x+=r*q,_+=r*z,k+=r*Z,S+=r*G,E+=r*Y,R+=r*Q,f+=(r=t[8])*N,p+=r*U,g+=r*W,w+=r*j,m+=r*B,v+=r*H,y+=r*K,b+=r*V,C+=r*D,x+=r*F,_+=r*q,k+=r*z,S+=r*Z,E+=r*G,R+=r*Y,L+=r*Q,p+=(r=t[9])*N,g+=r*U,w+=r*W,m+=r*j,v+=r*B,y+=r*H,b+=r*K,C+=r*V,x+=r*D,_+=r*F,k+=r*q,S+=r*z,E+=r*Z,R+=r*G,L+=r*Y,T+=r*Q,g+=(r=t[10])*N,w+=r*U,m+=r*W,v+=r*j,y+=r*B,b+=r*H,C+=r*K,x+=r*V,_+=r*D,k+=r*F,S+=r*q,E+=r*z,R+=r*Z,L+=r*G,T+=r*Y,A+=r*Q,w+=(r=t[11])*N,m+=r*U,v+=r*W,y+=r*j,b+=r*B,C+=r*H,x+=r*K,_+=r*V,k+=r*D,S+=r*F,E+=r*q,R+=r*z,L+=r*Z,T+=r*G,A+=r*Y,M+=r*Q,m+=(r=t[12])*N,v+=r*U,y+=r*W,b+=r*j,C+=r*B,x+=r*H,_+=r*K,k+=r*V,S+=r*D,E+=r*F,R+=r*q,L+=r*z,T+=r*Z,A+=r*G,M+=r*Y,O+=r*Q,v+=(r=t[13])*N,y+=r*U,b+=r*W,C+=r*j,x+=r*B,_+=r*H,k+=r*K,S+=r*V,E+=r*D,R+=r*F,L+=r*q,T+=r*z,A+=r*Z,M+=r*G,O+=r*Y,$+=r*Q,y+=(r=t[14])*N,b+=r*U,C+=r*W,x+=r*j,_+=r*B,k+=r*H,S+=r*K,E+=r*V,R+=r*D,L+=r*F,T+=r*q,A+=r*z,M+=r*Z,O+=r*G,$+=r*Y,P+=r*Q,b+=(r=t[15])*N,s+=38*(x+=r*W),a+=38*(_+=r*j),l+=38*(k+=r*B),c+=38*(S+=r*H),u+=38*(E+=r*K),d+=38*(R+=r*V),h+=38*(L+=r*D),f+=38*(T+=r*F),p+=38*(A+=r*q),g+=38*(M+=r*z),w+=38*(O+=r*Z),m+=38*($+=r*G),v+=38*(P+=r*Y),y+=38*(I+=r*Q),i=(r=(i+=38*(C+=r*U))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+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)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+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)),w=(r=w+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)),i=(r=(i+=o-1+37*(o-1))+(o=1)+65535)-65536*(o=Math.floor(r/65536)),s=(r=s+o+65535)-65536*(o=Math.floor(r/65536)),a=(r=a+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)),h=(r=h+o+65535)-65536*(o=Math.floor(r/65536)),f=(r=f+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)),w=(r=w+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)),i+=o-1+37*(o-1),e[0]=i,e[1]=s,e[2]=a,e[3]=l,e[4]=c,e[5]=u,e[6]=d,e[7]=h,e[8]=f,e[9]=p,e[10]=g,e[11]=w,e[12]=m,e[13]=v,e[14]=y,e[15]=b}function H(e,t){B(e,t,t)}function K(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=253;r>=0;r--)H(o,o),2!==r&&4!==r&&B(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function V(e,n){var r,o=t();for(r=0;r<16;r++)o[r]=n[r];for(r=250;r>=0;r--)H(o,o),1!==r&&B(o,o,n);for(r=0;r<16;r++)e[r]=o[r]}function D(e,n,r){var o,i,s=new Uint8Array(32),l=new Float64Array(80),c=t(),u=t(),d=t(),h=t(),f=t(),p=t();for(i=0;i<31;i++)s[i]=n[i];for(s[31]=127&n[31]|64,s[0]&=248,U(l,r),i=0;i<16;i++)u[i]=l[i],h[i]=c[i]=d[i]=0;for(c[0]=h[0]=1,i=254;i>=0;--i)$(c,u,o=s[i>>>3]>>>(7&i)&1),$(d,h,o),W(f,c,d),j(c,c,d),W(d,u,h),j(u,u,h),H(h,f),H(p,c),B(c,d,c),B(d,u,f),W(f,c,d),j(c,c,d),H(u,c),j(d,h,p),B(c,d,a),W(c,c,h),B(d,d,c),B(c,h,p),B(h,u,l),H(u,f),$(c,u,o),$(d,h,o);for(i=0;i<16;i++)l[i+16]=c[i],l[i+32]=d[i],l[i+48]=u[i],l[i+64]=h[i];var g=l.subarray(32),w=l.subarray(16);return K(g,g),B(w,w,g),P(e,w),0}function F(e,t){return D(e,t,o)}function q(e,t){return n(t,32),F(e,t)}function z(e,t,n){var o=new Uint8Array(32);return D(o,n,t),b(e,r,o,C)}E.prototype.blocks=function(e,t,n){for(var r,o,i,s,a,l,c,u,d,h,f,p,g,w,m,v,y,b,C,x=this.fin?0:2048,_=this.h[0],k=this.h[1],S=this.h[2],E=this.h[3],R=this.h[4],L=this.h[5],T=this.h[6],A=this.h[7],M=this.h[8],O=this.h[9],$=this.r[0],P=this.r[1],I=this.r[2],N=this.r[3],U=this.r[4],W=this.r[5],j=this.r[6],B=this.r[7],H=this.r[8],K=this.r[9];n>=16;)h=d=0,h+=(_+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*$,h+=(k+=8191&(r>>>13|(o=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*K),h+=(S+=8191&(o>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*H),h+=(E+=8191&(i>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*B),d=(h+=(R+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*j))>>>13,h&=8191,h+=(L+=a>>>1&8191)*(5*W),h+=(T+=8191&(a>>>14|(l=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*U),h+=(A+=8191&(l>>>11|(c=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*N),h+=(M+=8191&(c>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*I),f=d+=(h+=(O+=u>>>5|x)*(5*P))>>>13,f+=_*P,f+=k*$,f+=S*(5*K),f+=E*(5*H),d=(f+=R*(5*B))>>>13,f&=8191,f+=L*(5*j),f+=T*(5*W),f+=A*(5*U),f+=M*(5*N),d+=(f+=O*(5*I))>>>13,f&=8191,p=d,p+=_*I,p+=k*P,p+=S*$,p+=E*(5*K),d=(p+=R*(5*H))>>>13,p&=8191,p+=L*(5*B),p+=T*(5*j),p+=A*(5*W),p+=M*(5*U),g=d+=(p+=O*(5*N))>>>13,g+=_*N,g+=k*I,g+=S*P,g+=E*$,d=(g+=R*(5*K))>>>13,g&=8191,g+=L*(5*H),g+=T*(5*B),g+=A*(5*j),g+=M*(5*W),w=d+=(g+=O*(5*U))>>>13,w+=_*U,w+=k*N,w+=S*I,w+=E*P,d=(w+=R*$)>>>13,w&=8191,w+=L*(5*K),w+=T*(5*H),w+=A*(5*B),w+=M*(5*j),m=d+=(w+=O*(5*W))>>>13,m+=_*W,m+=k*U,m+=S*N,m+=E*I,d=(m+=R*P)>>>13,m&=8191,m+=L*$,m+=T*(5*K),m+=A*(5*H),m+=M*(5*B),v=d+=(m+=O*(5*j))>>>13,v+=_*j,v+=k*W,v+=S*U,v+=E*N,d=(v+=R*I)>>>13,v&=8191,v+=L*P,v+=T*$,v+=A*(5*K),v+=M*(5*H),y=d+=(v+=O*(5*B))>>>13,y+=_*B,y+=k*j,y+=S*W,y+=E*U,d=(y+=R*N)>>>13,y&=8191,y+=L*I,y+=T*P,y+=A*$,y+=M*(5*K),b=d+=(y+=O*(5*H))>>>13,b+=_*H,b+=k*B,b+=S*j,b+=E*W,d=(b+=R*U)>>>13,b&=8191,b+=L*N,b+=T*I,b+=A*P,b+=M*$,C=d+=(b+=O*(5*K))>>>13,C+=_*K,C+=k*H,C+=S*B,C+=E*j,d=(C+=R*W)>>>13,C&=8191,C+=L*U,C+=T*N,C+=A*I,C+=M*P,_=h=8191&(d=(d=((d+=(C+=O*$)>>>13)<<2)+d|0)+(h&=8191)|0),k=f+=d>>>=13,S=p&=8191,E=g&=8191,R=w&=8191,L=m&=8191,T=v&=8191,A=y&=8191,M=b&=8191,O=C&=8191,t+=16,n-=16;this.h[0]=_,this.h[1]=k,this.h[2]=S,this.h[3]=E,this.h[4]=R,this.h[5]=L,this.h[6]=T,this.h[7]=A,this.h[8]=M,this.h[9]=O},E.prototype.finish=function(e,t){var n,r,o,i,s=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,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,i=1;i<10;i++)s[i]=this.h[i]+n,n=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,r=(1^n)-1,i=0;i<10;i++)s[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|s[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 Z=T,G=A;var Y=[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,s,a,l,c,u,d,h,f,p,g,w,m,v,y,b,C,x,_,k,S,E,R,L,T,A=new Int32Array(16),M=new Int32Array(16),O=e[0],$=e[1],P=e[2],I=e[3],N=e[4],U=e[5],W=e[6],j=e[7],B=t[0],H=t[1],K=t[2],V=t[3],D=t[4],F=t[5],q=t[6],z=t[7],Z=0;r>=128;){for(x=0;x<16;x++)_=8*x+Z,A[x]=n[_+0]<<24|n[_+1]<<16|n[_+2]<<8|n[_+3],M[x]=n[_+4]<<24|n[_+5]<<16|n[_+6]<<8|n[_+7];for(x=0;x<80;x++)if(o=O,i=$,s=P,a=I,l=N,c=U,u=W,j,h=B,f=H,p=K,g=V,w=D,m=F,v=q,z,E=65535&(S=z),R=S>>>16,L=65535&(k=j),T=k>>>16,E+=65535&(S=(D>>>14|N<<18)^(D>>>18|N<<14)^(N>>>9|D<<23)),R+=S>>>16,L+=65535&(k=(N>>>14|D<<18)^(N>>>18|D<<14)^(D>>>9|N<<23)),T+=k>>>16,E+=65535&(S=D&F^~D&q),R+=S>>>16,L+=65535&(k=N&U^~N&W),T+=k>>>16,k=Y[2*x],E+=65535&(S=Y[2*x+1]),R+=S>>>16,L+=65535&k,T+=k>>>16,k=A[x%16],R+=(S=M[x%16])>>>16,L+=65535&k,T+=k>>>16,L+=(R+=(E+=65535&S)>>>16)>>>16,E=65535&(S=C=65535&E|R<<16),R=S>>>16,L=65535&(k=b=65535&L|(T+=L>>>16)<<16),T=k>>>16,E+=65535&(S=(B>>>28|O<<4)^(O>>>2|B<<30)^(O>>>7|B<<25)),R+=S>>>16,L+=65535&(k=(O>>>28|B<<4)^(B>>>2|O<<30)^(B>>>7|O<<25)),T+=k>>>16,R+=(S=B&H^B&K^H&K)>>>16,L+=65535&(k=O&$^O&P^$&P),T+=k>>>16,d=65535&(L+=(R+=(E+=65535&S)>>>16)>>>16)|(T+=L>>>16)<<16,y=65535&E|R<<16,E=65535&(S=g),R=S>>>16,L=65535&(k=a),T=k>>>16,R+=(S=C)>>>16,L+=65535&(k=b),T+=k>>>16,$=o,P=i,I=s,N=a=65535&(L+=(R+=(E+=65535&S)>>>16)>>>16)|(T+=L>>>16)<<16,U=l,W=c,j=u,O=d,H=h,K=f,V=p,D=g=65535&E|R<<16,F=w,q=m,z=v,B=y,x%16==15)for(_=0;_<16;_++)k=A[_],E=65535&(S=M[_]),R=S>>>16,L=65535&k,T=k>>>16,k=A[(_+9)%16],E+=65535&(S=M[(_+9)%16]),R+=S>>>16,L+=65535&k,T+=k>>>16,b=A[(_+1)%16],E+=65535&(S=((C=M[(_+1)%16])>>>1|b<<31)^(C>>>8|b<<24)^(C>>>7|b<<25)),R+=S>>>16,L+=65535&(k=(b>>>1|C<<31)^(b>>>8|C<<24)^b>>>7),T+=k>>>16,b=A[(_+14)%16],R+=(S=((C=M[(_+14)%16])>>>19|b<<13)^(b>>>29|C<<3)^(C>>>6|b<<26))>>>16,L+=65535&(k=(b>>>19|C<<13)^(C>>>29|b<<3)^b>>>6),T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,A[_]=65535&L|T<<16,M[_]=65535&E|R<<16;E=65535&(S=B),R=S>>>16,L=65535&(k=O),T=k>>>16,k=e[0],R+=(S=t[0])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[0]=O=65535&L|T<<16,t[0]=B=65535&E|R<<16,E=65535&(S=H),R=S>>>16,L=65535&(k=$),T=k>>>16,k=e[1],R+=(S=t[1])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[1]=$=65535&L|T<<16,t[1]=H=65535&E|R<<16,E=65535&(S=K),R=S>>>16,L=65535&(k=P),T=k>>>16,k=e[2],R+=(S=t[2])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[2]=P=65535&L|T<<16,t[2]=K=65535&E|R<<16,E=65535&(S=V),R=S>>>16,L=65535&(k=I),T=k>>>16,k=e[3],R+=(S=t[3])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[3]=I=65535&L|T<<16,t[3]=V=65535&E|R<<16,E=65535&(S=D),R=S>>>16,L=65535&(k=N),T=k>>>16,k=e[4],R+=(S=t[4])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[4]=N=65535&L|T<<16,t[4]=D=65535&E|R<<16,E=65535&(S=F),R=S>>>16,L=65535&(k=U),T=k>>>16,k=e[5],R+=(S=t[5])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[5]=U=65535&L|T<<16,t[5]=F=65535&E|R<<16,E=65535&(S=q),R=S>>>16,L=65535&(k=W),T=k>>>16,k=e[6],R+=(S=t[6])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[6]=W=65535&L|T<<16,t[6]=q=65535&E|R<<16,E=65535&(S=z),R=S>>>16,L=65535&(k=j),T=k>>>16,k=e[7],R+=(S=t[7])>>>16,L+=65535&k,T+=k>>>16,T+=(L+=(R+=(E+=65535&S)>>>16)>>>16)>>>16,e[7]=j=65535&L|T<<16,t[7]=z=65535&E|R<<16,Z+=128,r-=128}return r}function J(e,t,n){var r,o=new Int32Array(8),i=new Int32Array(8),s=new Uint8Array(256),a=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++)s[r]=t[a-n+r];for(s[n]=128,s[(n=256-128*(n<112?1:0))-9]=0,g(s,n-8,a/536870912|0,a<<3),Q(o,i,s,n),r=0;r<8;r++)g(e,8*r,o[r],i[r]);return 0}function X(e,n){var r=t(),o=t(),i=t(),s=t(),a=t(),l=t(),c=t(),d=t(),h=t();j(r,e[1],e[0]),j(h,n[1],n[0]),B(r,r,h),W(o,e[0],e[1]),W(h,n[0],n[1]),B(o,o,h),B(i,e[3],n[3]),B(i,i,u),B(s,e[2],n[2]),W(s,s,s),j(a,o,r),j(l,s,i),W(c,s,i),W(d,o,r),B(e[0],a,l),B(e[1],d,c),B(e[2],c,l),B(e[3],a,d)}function ee(e,t,n){var r;for(r=0;r<4;r++)$(e[r],t[r],n)}function te(e,n){var r=t(),o=t(),i=t();K(i,n[2]),B(r,n[0],i),B(o,n[1],i),P(e,o),e[31]^=N(r)<<7}function ne(e,t,n){var r,o;for(M(e[0],i),M(e[1],s),M(e[2],s),M(e[3],i),o=255;o>=0;--o)ee(e,t,r=n[o/8|0]>>(7&o)&1),X(t,e),X(e,e),ee(e,t,r)}function re(e,n){var r=[t(),t(),t(),t()];M(r[0],h),M(r[1],f),M(r[2],s),B(r[3],h,f),ne(e,r,n)}function oe(e,r,o){var i,s=new Uint8Array(64),a=[t(),t(),t(),t()];for(o||n(r,32),J(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),te(e,a),i=0;i<32;i++)r[i+32]=e[i];return 0}var ie=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 se(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]*ie[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)*ie[o],n=t[o]>>8,t[o]&=255;for(o=0;o<32;o++)t[o]-=n*ie[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;se(e,n)}function le(e,n,r,o){var i,s,a=new Uint8Array(64),l=new Uint8Array(64),c=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];J(a,o,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(i=0;i<r;i++)e[64+i]=n[i];for(i=0;i<32;i++)e[32+i]=a[32+i];for(J(c,e.subarray(32),r+32),ae(c),re(d,c),te(e,d),i=32;i<64;i++)e[i]=o[i];for(J(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(s=0;s<32;s++)u[i+s]+=l[i]*a[s];return se(e.subarray(32),u),h}function ce(e,n,r,o){var a,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],h=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),o=t(),a=t(),c=t(),u=t(),d=t(),h=t();return M(e[2],s),U(e[1],n),H(a,e[1]),B(c,a,l),j(a,a,e[2]),W(c,e[2],c),H(u,c),H(d,u),B(h,d,u),B(r,h,a),B(r,r,c),V(r,r),B(r,r,a),B(r,r,c),B(r,r,c),B(e[0],r,c),H(o,e[0]),B(o,o,c),I(o,a)&&B(e[0],e[0],p),H(o,e[0]),B(o,o,c),I(o,a)?-1:(N(e[0])===n[31]>>7&&j(e[0],i,e[0]),B(e[3],e[0],e[1]),0)}(h,o))return-1;for(a=0;a<r;a++)e[a]=n[a];for(a=0;a<32;a++)e[a+32]=o[a];if(J(u,e,r),ae(u),ne(d,h,u),re(h,n.subarray(32)),X(d,h),te(c,d),r-=64,v(n,0,c,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=n[a+64];return r}var ue=32,de=24,he=16,fe=32,pe=32,ge=de,we=64,me=32,ve=64;function ye(e,t){if(e.length!==ue)throw new Error("bad key size");if(t.length!==de)throw new Error("bad nonce size")}function be(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Ce(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:_,crypto_onetimeauth:R,crypto_onetimeauth_verify:L,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:T,crypto_secretbox_open:A,crypto_scalarmult:D,crypto_scalarmult_base:F,crypto_box_beforenm:z,crypto_box_afternm:Z,crypto_box:function(e,t,n,r,o,i){var s=new Uint8Array(32);return z(s,o,i),Z(e,t,n,r,s)},crypto_box_open:function(e,t,n,r,o,i){var s=new Uint8Array(32);return z(s,o,i),G(e,t,n,r,s)},crypto_box_keypair:q,crypto_hash:J,crypto_sign:le,crypto_sign_keypair:oe,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:ue,crypto_secretbox_NONCEBYTES:de,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:he,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:fe,crypto_box_SECRETKEYBYTES:pe,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:ge,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:we,crypto_sign_PUBLICKEYBYTES:me,crypto_sign_SECRETKEYBYTES:ve,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:ie,pack25519:P,unpack25519:U,M:B,A:W,S:H,Z:j,pow2523:V,add:X,set25519:M,modL:se,scalarmult:ne,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){be(e,t,n),ye(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(he)},e.secretbox.open=function(e,t,n){be(e,t,n),ye(n,t);for(var r=new Uint8Array(he+e.length),o=new Uint8Array(r.length),i=0;i<e.length;i++)r[i+he]=e[i];return r.length<32||0!==A(o,r,r.length,t,n)?null:o.subarray(32)},e.secretbox.keyLength=ue,e.secretbox.nonceLength=de,e.secretbox.overheadLength=he,e.scalarMult=function(e,t){if(be(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 D(n,e,t),n},e.scalarMult.base=function(e){if(be(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return F(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){be(e,t),function(e,t){if(e.length!==fe)throw new Error("bad public key size");if(t.length!==pe)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return z(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(fe),t=new Uint8Array(pe);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(be(e),e.length!==pe)throw new Error("bad secret key size");var t=new Uint8Array(fe);return F(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=fe,e.box.secretKeyLength=pe,e.box.sharedKeyLength=32,e.box.nonceLength=ge,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(be(e,t),t.length!==ve)throw new Error("bad secret key size");var n=new Uint8Array(we+e.length);return le(n,e,e.length,t),n},e.sign.open=function(e,t){if(be(e,t),t.length!==me)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=ce(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(we),i=0;i<o.length;i++)o[i]=r[i];return o},e.sign.detached.verify=function(e,t,n){if(be(e,t,n),t.length!==we)throw new Error("bad signature size");if(n.length!==me)throw new Error("bad public key size");var r,o=new Uint8Array(we+e.length),i=new Uint8Array(we+e.length);for(r=0;r<we;r++)o[r]=t[r];for(r=0;r<e.length;r++)o[r+we]=e[r];return ce(i,o,o.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(me),t=new Uint8Array(ve);return oe(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(be(e),e.length!==ve)throw new Error("bad secret key size");for(var t=new Uint8Array(me),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(be(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(me),n=new Uint8Array(ve),r=0;r<32;r++)n[r]=e[r];return oe(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=me,e.sign.secretKeyLength=ve,e.sign.seedLength=32,e.sign.signatureLength=we,e.hash=function(e){be(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return be(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===w(e,0,t,0,e.length))},e.setPRNG=function(e){n=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];Ce(o)}))}else void 0!==c&&(t=d)&&t.randomBytes&&e.setPRNG((function(e,n){var r,o=t.randomBytes(n);for(r=0;r<n;r++)e[r]=o[r];Ce(o)}))}()}(e.exports?e.exports:self.nacl=self.nacl||{})}(u);const h=u.exports;var f,p,g,w,m,v,y,b,C,x;(p=f||(f={}))[p.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",p[p.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",p[p.MANIFEST_NOT_FOUND_ERROR=2]="MANIFEST_NOT_FOUND_ERROR",p[p.MANIFEST_CONTENT_ERROR=3]="MANIFEST_CONTENT_ERROR",p[p.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",p[p.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",p[p.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",e.CONNECT_ITEM_ERROR_CODES=void 0,(g=e.CONNECT_ITEM_ERROR_CODES||(e.CONNECT_ITEM_ERROR_CODES={}))[g.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",g[g.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(m=w||(w={}))[m.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",m[m.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",m[m.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",m[m.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",m[m.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(y=v||(v={}))[y.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",y[y.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",y[y.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",y[y.USER_REJECTS_ERROR=300]="USER_REJECTS_ERROR",y[y.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",(C=b||(b={}))[C.UNKNOWN_ERROR=0]="UNKNOWN_ERROR",C[C.BAD_REQUEST_ERROR=1]="BAD_REQUEST_ERROR",C[C.UNKNOWN_APP_ERROR=100]="UNKNOWN_APP_ERROR",C[C.METHOD_NOT_SUPPORTED=400]="METHOD_NOT_SUPPORTED",e.CHAIN=void 0,(x=e.CHAIN||(e.CHAIN={})).MAINNET="-239",x.TESTNET="-3";const _={encode:function(e,t=!1){let n;return e instanceof Uint8Array?n=e:("string"!=typeof e&&(e=JSON.stringify(e)),n=l.decodeUTF8(e)),function(e,t){const n=l.encodeBase64(e);return t?encodeURIComponent(n):n}(n,t)},decode:function(e,t=!1){const n=function(e,t){return t&&(e=decodeURIComponent(e)),l.decodeBase64(e)}(e,t);return{toString:()=>l.encodeUTF8(n),toObject(){try{return JSON.parse(l.encodeUTF8(n))}catch(e){return null}},toUint8Array:()=>n}}};function k(e){let t="";return e.forEach((e=>{t+=("0"+(255&e).toString(16)).slice(-2)})),t}function S(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 E{constructor(e){this.nonceLength=24,this.keyPair=e?this.createKeypairFromString(e):this.createKeypair(),this.sessionId=k(this.keyPair.publicKey)}createKeypair(){return h.box.keyPair()}createKeypairFromString(e){return{publicKey:S(e.publicKey),secretKey:S(e.secretKey)}}createNonce(){return h.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,h.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=h.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:k(this.keyPair.publicKey),secretKey:k(this.keyPair.secretKey)}}}function R(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(t){i(t)}}function a(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}class L extends Error{constructor(e,t){super(e,t),this.message=`${L.prefix} ${this.constructor.name}${this.info?": "+this.info:""}${e?"\n"+e:""}`,Object.setPrototypeOf(this,L.prototype)}get info(){return""}}L.prefix="[TON_CONNECT_SDK_ERROR]";class T extends L{get info(){return"Passed DappMetadata is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,T.prototype)}}class A extends L{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(...e){super(...e),Object.setPrototypeOf(this,A.prototype)}}class M extends L{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(...e){super(...e),Object.setPrototypeOf(this,M.prototype)}}class O extends L{get info(){return"Wallet connection called but wallet already connected. To avoid the error, disconnect the wallet before doing a new connection."}constructor(...e){super(...e),Object.setPrototypeOf(this,O.prototype)}}class $ extends L{get info(){return"Send transaction or other protocol methods called while wallet is not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,$.prototype)}}class P extends L{get info(){return"User rejects the action in the wallet."}constructor(...e){super(...e),Object.setPrototypeOf(this,P.prototype)}}class I extends L{get info(){return"Request to the wallet contains errors."}constructor(...e){super(...e),Object.setPrototypeOf(this,I.prototype)}}class N extends L{get info(){return"App tries to send rpc request to the injected wallet while not connected."}constructor(...e){super(...e),Object.setPrototypeOf(this,N.prototype)}}class U extends L{get info(){return"There is an attempt to connect to the injected wallet while it is not exists in the webpage."}constructor(...e){super(...e),Object.setPrototypeOf(this,U.prototype)}}class W extends L{get info(){return"Storage was not specified in the `DappMetadata` and default `localStorage` was not detected in the environment."}constructor(...e){super(...e),Object.setPrototypeOf(this,W.prototype)}}class j extends L{get info(){return"An error occurred while fetching the wallets list."}constructor(...e){super(...e),Object.setPrototypeOf(this,j.prototype)}}class B extends L{get info(){return"Passed address is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,B.prototype)}}class H extends L{get info(){return"Passed hex is in incorrect format."}constructor(...e){super(...e),Object.setPrototypeOf(this,H.prototype)}}class K extends L{constructor(...e){super(...e),Object.setPrototypeOf(this,K.prototype)}}const V={[f.UNKNOWN_ERROR]:K,[f.USER_REJECTS_ERROR]:P,[f.BAD_REQUEST_ERROR]:I,[f.UNKNOWN_APP_ERROR]:N,[f.MANIFEST_NOT_FOUND_ERROR]:M,[f.MANIFEST_CONTENT_ERROR]:A};const D=new class{parseError(e){let t=K;return e.code in V&&(t=V[e.code]||K),new t(e.message)}};class F{isError(e){return"error"in e}}const q={[w.UNKNOWN_ERROR]:K,[w.USER_REJECTS_ERROR]:P,[w.BAD_REQUEST_ERROR]:I,[w.UNKNOWN_APP_ERROR]:N};const z=new class extends F{convertToRpcRequest(e){return{method:"sendTransaction",params:[JSON.stringify(e)]}}parseAndThrowError(e){let t=K;throw e.error.code in q&&(t=q[e.error.code]||K),new t(e.error.message)}convertFromRpcResponse(e){return{boc:e.result}}};class Z{constructor(e,t){this.storage=e,this.storeKey="ton-connect-storage_http-bridge-gateway::"+t}storeLastEventId(e){return R(this,void 0,void 0,(function*(){return this.storage.setItem(this.storeKey,e)}))}removeLastEventId(){return R(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getLastEventId(){return R(this,void 0,void 0,(function*(){const e=yield this.storage.getItem(this.storeKey);return e||null}))}}function G(e,t){return function(e){return"/"===e.slice(-1)?e.slice(0,-1):e}(e)+"/"+t}function Y(e){if(!e)return!1;const t=new URL(e);return"tg:"===t.protocol||"t.me"===t.hostname}function Q(e){return e.replaceAll(".","%2E").replaceAll("-","%2D").replaceAll("_","%5F").replaceAll("&","-").replaceAll("=","__").replaceAll("%","--")}class J{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.isClosed=!1,this.bridgeGatewayStorage=new Z(e,t)}registerSession(e){return R(this,void 0,void 0,(function*(){const t=new URL(G(this.bridgeUrl,this.ssePath));t.searchParams.append("client_id",this.sessionId);const n=yield this.bridgeGatewayStorage.getLastEventId();if(!this.isClosed)return n&&t.searchParams.append("last_event_id",n),this.eventSource=new EventSource(t.toString()),new Promise(((t,n)=>{const r=(null==e?void 0:e.openingDeadlineMS)?setTimeout((()=>{var e;(null===(e=this.eventSource)||void 0===e?void 0:e.readyState)!==EventSource.OPEN&&(n(new L("Bridge connection timeout")),this.close())}),e.openingDeadlineMS):void 0;this.eventSource.onerror=()=>n,this.eventSource.onopen=()=>{clearTimeout(r),this.isClosed=!1,this.eventSource.onerror=this.errorsHandler.bind(this),this.eventSource.onmessage=this.messagesHandler.bind(this),t()}}))}))}send(e,t,n,r){return R(this,void 0,void 0,(function*(){const o=new URL(G(this.bridgeUrl,this.postPath));o.searchParams.append("client_id",this.sessionId),o.searchParams.append("to",t),o.searchParams.append("ttl",(r||this.defaultTtl).toString()),o.searchParams.append("topic",n);const i=yield fetch(o,{method:"post",body:_.encode(e)});if(!i.ok)throw new L(`Bridge send failed, status ${i.status}`)}))}pause(){var e;null===(e=this.eventSource)||void 0===e||e.close()}unPause(){return this.registerSession()}close(){var e;this.isClosed=!0,null===(e=this.eventSource)||void 0===e||e.close()}setListener(e){this.listener=e}setErrorsListener(e){this.errorsListener=e}errorsHandler(e){var t,n;if(!this.isClosed){if((null===(t=this.eventSource)||void 0===t?void 0:t.readyState)===EventSource.CLOSED)return this.eventSource.close(),void this.registerSession();if((null===(n=this.eventSource)||void 0===n?void 0:n.readyState)===EventSource.CONNECTING)return void console.debug("[TON_CONNET_SDK_ERROR]: Bridge error",JSON.stringify(e));this.errorsListener(e)}}messagesHandler(e){return R(this,void 0,void 0,(function*(){if(e.data!==this.heartbeatMessage&&(yield this.bridgeGatewayStorage.storeLastEventId(e.lastEventId),!this.isClosed)){let n;try{n=JSON.parse(e.data)}catch(t){throw new L(`Bridge message parse failed, message ${t.data}`)}this.listener(n)}}))}}function X(e){return!("connectEvent"in e)}class ee{constructor(e){this.storage=e,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(e){return R(this,void 0,void 0,(function*(){if("injected"===e.type)return this.storage.setItem(this.storeKey,JSON.stringify(e));if(!X(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 R(this,void 0,void 0,(function*(){return this.storage.removeItem(this.storeKey)}))}getConnection(){return R(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 E(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 E(t.sessionCrypto),connectionSource:t.connectionSource}}))}getHttpConnection(){return R(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new L("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new L("Trying to read HTTP connection source while injected connection is stored");return e}))}getHttpPendingConnection(){return R(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new L("Trying to read HTTP connection source while nothing is stored");if("injected"===e.type)throw new L("Trying to read HTTP connection source while injected connection is stored");if(!X(e))throw new L("Trying to read HTTP-pending connection while http connection is stored");return e}))}getInjectedConnection(){return R(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(!e)throw new L("Trying to read Injected bridge connection source while nothing is stored");if("http"===(null==e?void 0:e.type))throw new L("Trying to read Injected bridge connection source while HTTP connection is stored");return e}))}storedConnectionType(){return R(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 R(this,void 0,void 0,(function*(){const t=yield this.getConnection();if(t&&"http"===t.type&&!X(t))return t.lastWalletEventId=e,this.storeConnection(t)}))}getLastWalletEventId(){return R(this,void 0,void 0,(function*(){const e=yield this.getConnection();if(e&&"lastWalletEventId"in e)return e.lastWalletEventId}))}increaseNextRpcRequestId(){return R(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 R(this,void 0,void 0,(function*(){const e=yield this.getConnection();return e&&"nextRpcRequestId"in e&&e.nextRpcRequestId||0}))}}function te(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch(t){}}function ne(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch(t){}}class re{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.connectionStorage=new ee(e)}static fromStorage(e){return R(this,void 0,void 0,(function*(){const t=new ee(e),n=yield t.getHttpConnection();return X(n)?new re(e,n.connectionSource):new re(e,{bridgeUrl:n.session.bridgeUrl})}))}connect(e){this.closeGateways();const t=new E;this.session={sessionCrypto:t,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.connectionStorage.storeConnection({type:"http",connectionSource:this.walletConnectionSource,sessionCrypto:t}).then((()=>this.openGateways(t)));const n="universalLink"in this.walletConnectionSource&&this.walletConnectionSource.universalLink?this.walletConnectionSource.universalLink:this.standardUniversalLink;return this.generateUniversalLink(n,e)}restoreConnection(){return R(this,void 0,void 0,(function*(){this.closeGateways();const e=yield this.connectionStorage.getHttpConnection();if(e){if(X(e))return this.session={sessionCrypto:e.sessionCrypto,bridgeUrl:"bridgeUrl"in this.walletConnectionSource?this.walletConnectionSource.bridgeUrl:""},this.openGateways(e.sessionCrypto,{openingDeadlineMS:5e3});if(Array.isArray(this.walletConnectionSource))throw new L("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");this.session=e.session,this.gateway=new J(this.storage,this.walletConnectionSource.bridgeUrl,e.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this));try{yield this.gateway.registerSession({openingDeadlineMS:5e3})}catch(t){return void(yield this.disconnect())}this.listeners.forEach((t=>t(e.connectEvent)))}}))}sendRequest(e,t){return new Promise(((n,r)=>R(this,void 0,void 0,(function*(){if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new L("Trying to send bridge request without session");const o=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),te("Send http-bridge request:",Object.assign(Object.assign({},e),{id:o}));const i=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{id:o})),S(this.session.walletPublicKey));this.gateway.send(i,this.session.walletPublicKey,e.method).catch(r),this.pendingRequests.set(o.toString(),n),null==t||t()}))))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(){return R(this,void 0,void 0,(function*(){return new Promise((e=>R(this,void 0,void 0,(function*(){let t=!1;const n=()=>{t=!0,this.removeBridgeAndSession().then(e)};try{yield this.sendRequest({method:"disconnect",params:[]},n)}catch(r){console.debug(r),t||this.removeBridgeAndSession().then(e)}}))))}))}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 R(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 R(this,void 0,void 0,(function*(){if(this.pendingGateways.includes(e))return this.closeGateways({except:e}),this.session.bridgeUrl=t,this.gateway=e,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(n);e.close()}))}gatewayListener(e){return R(this,void 0,void 0,(function*(){const t=JSON.parse(this.session.sessionCrypto.decrypt(_.decode(e.message).toUint8Array(),S(e.from)));if(te("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 te(`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 ne(`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&&(yield this.removeBridgeAndSession()),n.forEach((e=>e(t)))}))}gatewayErrorsListener(e){return R(this,void 0,void 0,(function*(){throw new L(`Bridge error ${JSON.stringify(e)}`)}))}updateSession(e,t){return R(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 R(this,void 0,void 0,(function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()}))}generateUniversalLink(e,t){return Y(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-"+Q(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 R(this,void 0,void 0,(function*(){return Array.isArray(this.walletConnectionSource)?(this.pendingGateways=this.walletConnectionSource.map((t=>{const n=new J(this.storage,t.bridgeUrl,e.sessionId,(()=>{}),(e=>{console.error(e)}));return n.setListener((e=>this.pendingGatewaysListener(n,t.bridgeUrl,e))),n})),void(yield Promise.allSettled(this.pendingGateways.map((e=>e.registerSession(t)))))):(this.gateway=new J(this.storage,this.walletConnectionSource.bridgeUrl,e.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),this.gateway.registerSession(t))}))}closeGateways(e){var t;null===(t=this.gateway)||void 0===t||t.close(),this.pendingGateways.filter((t=>t!==(null==e?void 0:e.except))).forEach((e=>e.close())),this.pendingGateways=[]}}function oe(e,t){return ie(e,[t])}function ie(e,t){return!(!e||"object"!=typeof e)&&t.every((t=>t in e))}class se{constructor(){this.storage={}}static getInstance(){return se.instance||(se.instance=new se),se.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 ae(){if("undefined"!=typeof window)return window}function le(){var e;const t=null===(e=ae())||void 0===e?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}function ce(){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 L("`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 se.getInstance()}class ue{constructor(e,t){this.injectedWalletKey=t,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const n=ue.window;if(!ue.isWindowContainsWallet(n,t))throw new U;this.connectionStorage=new ee(e),this.injectedWallet=n[t].tonconnect}static fromStorage(e){return R(this,void 0,void 0,(function*(){const t=new ee(e),n=yield t.getInjectedConnection();return new ue(e,n.jsBridgeKey)}))}static isWalletInjected(e){return ue.isWindowContainsWallet(this.window,e)}static isInsideWalletBrowser(e){return!!ue.isWindowContainsWallet(this.window,e)&&this.window[e].tonconnect.isWalletBrowser}static getCurrentlyInjectedWallets(){if(!this.window)return[];return function(){const e=ae();if(!e)return[];try{return Object.keys(e)}catch(t){return[]}}().filter((([e,t])=>function(e){try{return!(!oe(e,"tonconnect")||!oe(e.tonconnect,"walletInfo"))&&ie(e.tonconnect.walletInfo,["name","app_name","image","about_url","platforms"])}catch(t){return!1}}(t))).map((([e,t])=>({name:t.tonconnect.walletInfo.name,appName:t.tonconnect.walletInfo.app_name,aboutUrl:t.tonconnect.walletInfo.about_url,imageUrl:t.tonconnect.walletInfo.image,tondns:t.tonconnect.walletInfo.tondns,jsBridgeKey:e,injected:!0,embedded:t.tonconnect.isWalletBrowser,platforms:t.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 R(this,void 0,void 0,(function*(){try{te("Injected Provider restoring connection...");const e=yield this.injectedWallet.restoreConnection();te("Injected Provider restoring connection response",e),"connect"===e.event?(this.makeSubscriptions(),this.listeners.forEach((t=>t(e)))):yield this.connectionStorage.removeConnection()}catch(e){yield this.connectionStorage.removeConnection(),console.error(e)}}))}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return R(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(n){te(n),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){return R(this,void 0,void 0,(function*(){const n=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),te("Send injected-bridge request:",Object.assign(Object.assign({},e),{id:n}));const r=this.injectedWallet.send(Object.assign(Object.assign({},e),{id:n}));return r.then((e=>te("Wallet message received:",e))),null==t||t(),r}))}_connect(e,t){return R(this,void 0,void 0,(function*(){try{te(`Injected Provider connect request: protocolVersion: ${e}, message:`,t);const n=yield this.injectedWallet.connect(e,t);te("Injected Provider connect response:",n),"connect"===n.event&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach((e=>e(n)))}catch(n){te(n);const e={event:"connect_error",payload:{code:0,message:null==n?void 0:n.toString()}};this.listeners.forEach((t=>t(e)))}}))}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen((e=>{te("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})}}ue.window=ae();class de{constructor(){this.localStorage=ce()}getItem(e){return R(this,void 0,void 0,(function*(){return this.localStorage.getItem(e)}))}removeItem(e){return R(this,void 0,void 0,(function*(){this.localStorage.removeItem(e)}))}setItem(e,t){return R(this,void 0,void 0,(function*(){this.localStorage.setItem(e,t)}))}}function he(e){return pe(e)&&e.injected}function fe(e){return he(e)&&e.embedded}function pe(e){return"jsBridgeKey"in e}function ge(e){return"bridgeUrl"in e}const we=[{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.tonapi.io/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",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}],platforms:["ios","android","chrome","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:"mytonwallet",name:"MyTonWallet",image:"https://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"]},{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:"tonflow",name:"TonFlow",image:"https://tonflow.net/assets/images/tonflow_ico_192.png",about_url:"https://tonflow.net",bridge:[{type:"js",key:"tonflow"}],platforms:["chrome"]},{app_name:"dewallet",name:"DeWallet",image:"https://app.delabwallet.com/logo_black.png",about_url:"https://delabwallet.com",bridge:[{type:"js",key:"dewallet"}],platforms:["chrome"]},{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"]}];class me{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.walletsListSource)&&(this.walletsListSource=e.walletsListSource),(null==e?void 0:e.cacheTTLMs)&&(this.cacheTTLMs=e.cacheTTLMs)}getWallets(){return R(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 R(this,void 0,void 0,(function*(){const e=(yield this.getWallets()).filter(fe);return 1!==e.length?null:e[0]}))}fetchWalletsList(){return R(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 j("Wrong wallets list format, wallets list must be an array.");const n=e.filter((e=>!this.isCorrectWalletConfigDTO(e)));n.length&&(ne(`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(n){ne(n),e=we}let t=[];try{t=ue.getCurrentlyInjectedWallets()}catch(n){ne(n)}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=ue.isWalletInjected(e),t.embedded=ue.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 ve extends L{get info(){return"Wallet doesn't support requested feature method."}constructor(...e){super(...e),Object.setPrototypeOf(this,ve.prototype)}}function ye(e,t){const n=e.includes("SendTransaction"),r=e.find((e=>e&&"object"==typeof e&&"SendTransaction"===e.name));if(!n&&!r)throw new ve("Wallet doesn't support SendTransaction feature.");if(r&&void 0!==r.maxMessages){if(r.maxMessages<t.requiredMessagesNumber)throw new ve(`Wallet is not able to handle such SendTransaction request. Max support messages number is ${r.maxMessages}, but ${t.requiredMessagesNumber} is required.`)}else!function(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch(t){}}("Connected wallet didn't provide information about max allowed messages in the SendTransaction request. Request may be rejected by the wallet.")}class be{constructor(e){if(this.walletsList=new me,this._wallet=null,this.provider=null,this.statusChangeSubscriptions=[],this.statusChangeErrorSubscriptions=[],this.dappSettings={manifestUrl:(null==e?void 0:e.manifestUrl)||le(),storage:(null==e?void 0:e.storage)||new de},this.walletsList=new me({walletsListSource:null==e?void 0:e.walletsListSource,cacheTTLMs:null==e?void 0:e.walletsListCacheTTLMs}),!this.dappSettings.manifestUrl)throw new T("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 ee(this.dappSettings.storage),(null==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;if(this.connected)throw new O;return null===(n=this.provider)||void 0===n||n.closeConnection(),this.provider=this.createProvider(e),this.provider.connect(this.createConnectRequest(t))}restoreConnection(){return R(this,void 0,void 0,(function*(){const[e,t]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);try{switch(e){case"http":this.provider=yield re.fromStorage(this.dappSettings.storage);break;case"injected":this.provider=yield ue.fromStorage(this.dappSettings.storage);break;default:if(!t)return;this.provider=yield this.createProvider(t)}}catch(n){return yield this.bridgeConnectionStorage.removeConnection(),void(this.provider=null)}return this.provider.listen(this.walletEventsListener.bind(this)),this.provider.restoreConnection()}))}sendTransaction(e,t){return R(this,void 0,void 0,(function*(){this.checkConnection(),ye(this.wallet.device.features,{requiredMessagesNumber:e.messages.length});const{validUntil:n}=e,r=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"]),o=e.from||this.account.address,i=e.network||this.account.chain,s=yield this.provider.sendRequest(z.convertToRpcRequest(Object.assign(Object.assign({},r),{valid_until:n,from:o,network:i})),t);return z.isError(s)?z.parseAndThrowError(s):z.convertFromRpcResponse(s)}))}disconnect(){return R(this,void 0,void 0,(function*(){if(!this.connected)throw new $;yield this.provider.disconnect(),this.onWalletDisconnected()}))}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=function(){if("undefined"!=typeof document)return document}();if(e)try{e.addEventListener("visibilitychange",(()=>{e.hidden?this.pauseConnection():this.unPauseConnection()}))}catch(t){console.error("Cannot subscribe to the document.visibilitychange: ",t)}}createProvider(e){let t;return t=!Array.isArray(e)&&"jsBridgeKey"in e?new ue(this.dappSettings.storage,e.jsBridgeKey):new re(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()}}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 L("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}onWalletConnectError(e){const t=D.parseError(e);if(this.statusChangeErrorSubscriptions.forEach((e=>e(t))),console.debug(t),t instanceof M||t instanceof A)throw console.error(t),t}onWalletDisconnected(){this.wallet=null}checkConnection(){if(!this.connected)throw new $}createConnectRequest(e){const t=[{name:"ton_addr"}];return(null==e?void 0:e.tonProof)&&t.push({name:"ton_proof",payload:e.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:t}}}be.walletsList=new me,be.isWalletInjected=e=>ue.isWalletInjected(e),be.isInsideWalletBrowser=e=>ue.isInsideWalletBrowser(e);const Ce=81,xe=128;function _e(e,t=!1){const{wc:n,hex:r}=function(e){if(!e.includes(":"))throw new B(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(2!==t.length)throw new B(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(0!==n&&-1!==n)throw new B(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if(64!==(null==r?void 0:r.length))throw new B(`Wrong address ${e}. Hex part must be 64bytes length, but ${null==r?void 0:r.length} received.`);return{wc:n,hex:Se(r)}}(e);let o=Ce;t&&(o|=xe);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const s=new Uint8Array(36);return s.set(i),s.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),_.encode(s).replace(/\+/g,"-").replace(/\//g,"_")}const ke={};for(let iu=0;iu<=255;iu++){let e=iu.toString(16);e.length<2&&(e="0"+e),ke[e]=iu}function Se(e){const t=(e=e.toLowerCase()).length;if(t%2!=0)throw new H("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(!ke.hasOwnProperty(n))throw new H("Invalid hex character: "+n);r[o]=ke[n]}return r}const Ee={};const Re=Symbol("solid-proxy"),Le=Symbol("solid-track"),Te={equals:(e,t)=>e===t};let Ae=lt;const Me=1,Oe=2,$e={owned:null,cleanups:null,context:null,owner:null},Pe={};var Ie=null;let Ne,Ue=null,We=null,je=null,Be=null,He=0;function Ke(e,t){const n=We,r=Ie,o=0===e.length,i=o?$e:{owned:null,cleanups:null,context:null,owner:void 0===t?r:t},s=o?e:()=>e((()=>Ye((()=>ht(i)))));Ie=i,We=null;try{return at(s,!0)}finally{We=n,Ie=r}}function Ve(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},Te,t):Te).equals||void 0};return[nt.bind(n),e=>("function"==typeof e&&(e=e(n.value)),rt(n,e))]}function De(e,t,n){ot(it(e,t,!0,Me))}function Fe(e,t,n){ot(it(e,t,!1,Me))}function qe(e,t,n){Ae=ct;const r=it(e,t,!1,Me);r.user=!0,Be?Be.push(r):ot(r)}function ze(e,t,n){n=n?Object.assign({},Te,n):Te;const r=it(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ot(r),nt.bind(r)}function Ze(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 s=null,a=Pe,l=null,c=!1,u="initialValue"in i,d="function"==typeof r&&ze(r);const h=new Set,[f,p]=(i.storage||Ve)(i.initialValue),[g,w]=Ve(void 0),[m,v]=Ve(void 0,{equals:!1}),[y,b]=Ve(u?"ready":"unresolved");if(Ee.context){let e;l=`${Ee.context.id}${Ee.context.count++}`,"initial"===i.ssrLoadFrom?a=i.initialValue:Ee.load&&(e=Ee.load(l))&&(a=e[0])}function C(e,t,n,r){return s===e&&(s=null,u=!0,e!==a&&t!==a||!i.onHydrated||queueMicrotask((()=>i.onHydrated(r,{value:t}))),a=Pe,function(e,t){at((()=>{void 0===t&&p((()=>e)),b(void 0!==t?"errored":"ready"),w(t);for(const e of h.keys())e.decrement();h.clear()}),!1)}(t,n)),t}function x(){const e=Ne,t=f(),n=g();if(void 0!==n&&!s)throw n;return We&&!We.user&&e&&De((()=>{m(),s&&(e.resolved||h.has(e)||(e.increment(),h.add(e)))})),t}function _(e=!0){if(!1!==e&&c)return;c=!1;const t=d?d():r;if(null==t||!1===t)return void C(s,Ye(f));const n=a!==Pe?a:Ye((()=>o(t,{value:f(),refetching:e})));return"object"==typeof n&&n&&"then"in n?(s=n,c=!0,queueMicrotask((()=>c=!1)),at((()=>{b(u?"refreshing":"pending"),v()}),!1),n.then((e=>C(n,e,void 0,t)),(e=>C(n,void 0,ft(e),t)))):(C(s,n,void 0,t),n)}return Object.defineProperties(x,{state:{get:()=>y()},error:{get:()=>g()},loading:{get(){const e=y();return"pending"===e||"refreshing"===e}},latest:{get(){if(!u)return x();const e=g();if(e&&!s)throw e;return f()}}}),d?De((()=>_(!1))):_(!1),[x,{refetch:_,mutate:p}]}function Ge(e){return at(e,!1)}function Ye(e){if(null===We)return e();const t=We;We=null;try{return e()}finally{We=t}}function Qe(e){return null===Ie||(null===Ie.cleanups?Ie.cleanups=[e]:Ie.cleanups.push(e)),e}function Je(){return We}function Xe(e,t){const n=Symbol("context");return{id:n,Provider:mt(n),defaultValue:e}}function et(e){let t;return void 0!==(t=gt(Ie,e.id))?t:e.defaultValue}function tt(e){const t=ze(e),n=ze((()=>wt(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function nt(){const e=Ue;if(this.sources&&(this.state||e))if(this.state===Me||e)ot(this);else{const e=je;je=null,at((()=>ut(this)),!1),je=e}if(We){const e=this.observers?this.observers.length:0;We.sources?(We.sources.push(this),We.sourceSlots.push(e)):(We.sources=[this],We.sourceSlots=[e]),this.observers?(this.observers.push(We),this.observerSlots.push(We.sources.length-1)):(this.observers=[We],this.observerSlots=[We.sources.length-1])}return this.value}function rt(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&at((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=Ue&&Ue.running;r&&Ue.disposed.has(n),(r&&!n.tState||!r&&!n.state)&&(n.pure?je.push(n):Be.push(n),n.observers&&dt(n)),r||(n.state=Me)}if(je.length>1e6)throw je=[],new Error}),!1)),t}function ot(e){if(!e.fn)return;ht(e);const t=Ie,n=We,r=He;We=Ie=e,function(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Me,e.owned&&e.owned.forEach(ht),e.owned=null),pt(o)}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?rt(e,r):e.value=r,e.updatedAt=n)}(e,e.value,r),We=n,Ie=t}function it(e,t,n,r=Me,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ie,context:null,pure:n};return null===Ie||Ie!==$e&&(Ie.owned?Ie.owned.push(i):Ie.owned=[i]),i}function st(e){const t=Ue;if(0===e.state||t)return;if(e.state===Oe||t)return ut(e);if(e.suspense&&Ye(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<He);)(e.state||t)&&n.push(e);for(let r=n.length-1;r>=0;r--)if((e=n[r]).state===Me||t)ot(e);else if(e.state===Oe||t){const t=je;je=null,at((()=>ut(e,n[0])),!1),je=t}}function at(e,t){if(je)return e();let n=!1;t||(je=[]),Be?n=!0:Be=[],He++;try{const t=e();return function(e){je&&(lt(je),je=null);if(e)return;const t=Be;Be=null,t.length&&at((()=>Ae(t)),!1)}(n),t}catch(r){n||(Be=null),je=null,pt(r)}}function lt(e){for(let t=0;t<e.length;t++)st(e[t])}function ct(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:st(r)}var r;for(Ee.context&&(Ee.context=r),t=0;t<n;t++)st(e[t])}function ut(e,t){const n=Ue;e.state=0;for(let r=0;r<e.sources.length;r+=1){const o=e.sources[r];o.sources&&(o.state===Me||n?o!==t&&st(o):(o.state===Oe||n)&&ut(o,t))}}function dt(e){const t=Ue;for(let n=0;n<e.observers.length;n+=1){const r=e.observers[n];r.state&&!t||(r.state=Oe,r.pure?je.push(r):Be.push(r),r.observers&&dt(r))}}function ht(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++)ht(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 ft(e){return e instanceof Error||"string"==typeof e?e:new Error("Unknown error")}function pt(e){throw e=ft(e)}function gt(e,t){return e?e.context&&void 0!==e.context[t]?e.context[t]:gt(e.owner,t):void 0}function wt(e){if("function"==typeof e&&!e.length)return wt(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=wt(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function mt(e,t){return function(t){let n;return Fe((()=>n=Ye((()=>(Ie.context={[e]:t.value},tt((()=>t.children)))))),void 0),n}}const vt=Symbol("fallback");function yt(e){for(let t=0;t<e.length;t++)e[t]()}function bt(e,t){return Ye((()=>e(t||{})))}function Ct(){return!0}const xt={get:(e,t,n)=>t===Re?n:e.get(t),has:(e,t)=>t===Re||e.has(t),set:Ct,deleteProperty:Ct,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Ct,deleteProperty:Ct}),ownKeys:e=>e.keys()};function _t(e){return(e="function"==typeof e?e():e)?e:{}}function kt(...e){let t=!1;for(let r=0;r<e.length;r++){const n=e[r];t=t||!!n&&Re in n,e[r]="function"==typeof n?(t=!0,ze(n)):n}if(t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=_t(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in _t(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(_t(e[n])));return[...new Set(t)]}},xt);const n={};for(let r=e.length-1;r>=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in n||Object.defineProperty(n,r,{enumerable:!0,get(){for(let t=e.length-1;t>=0;t--){const n=(e[t]||{})[r];if(void 0!==n)return n}}})}return n}function St(e,...t){const n=new Set(t.flat());if(Re in e){const r=t.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))},xt)));return r.push(new Proxy({get:t=>n.has(t)?void 0:e[t],has:t=>!n.has(t)&&t in e,keys:()=>Object.keys(e).filter((e=>!n.has(e)))},xt)),r}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter((e=>!n.has(e)))),t.map((t=>{const n={};for(let o=0;o<t.length;o++){const i=t[o];i in e&&Object.defineProperty(n,i,r[i]?r[i]:{get:()=>e[i],set:()=>!0,enumerable:!0})}return n}))}function Et(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ze(function(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return Qe((()=>yt(i))),()=>{let l,c,u=e()||[];return u[Le],Ye((()=>{let e,t,h,f,p,g,w,m,v,y=u.length;if(0===y)0!==s&&(yt(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[vt],o[0]=Ke((e=>(i[0]=e,n.fallback()))),s=1);else if(0===s){for(o=new Array(y),c=0;c<y;c++)r[c]=u[c],o[c]=Ke(d);s=y}else{for(h=new Array(y),f=new Array(y),a&&(p=new Array(y)),g=0,w=Math.min(s,y);g<w&&r[g]===u[g];g++);for(w=s-1,m=y-1;w>=g&&m>=g&&r[w]===u[m];w--,m--)h[m]=o[w],f[m]=i[w],a&&(p[m]=a[w]);for(e=new Map,t=new Array(m+1),c=m;c>=g;c--)v=u[c],l=e.get(v),t[c]=void 0===l?-1:l,e.set(v,c);for(l=g;l<=w;l++)v=r[l],c=e.get(v),void 0!==c&&-1!==c?(h[c]=o[l],f[c]=i[l],a&&(p[c]=a[l]),c=t[c],e.set(v,c)):i[l]();for(c=g;c<y;c++)c in h?(o[c]=h[c],i[c]=f[c],a&&(a[c]=p[c],a[c](c))):o[c]=Ke(d);o=o.slice(0,s=y),r=u.slice(0)}return o}));function d(e){if(i[c]=e,a){const[e,n]=Ve(c);return a[c]=n,t(u[c],e)}return t(u[c])}}}((()=>e.each),e.children,t||void 0))}function Rt(e){let t=!1;const n=e.keyed,r=ze((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return ze((()=>{const o=r();if(o){const r=e.children,i="function"==typeof r&&r.length>0;return t=n||i,i?Ye((()=>r(o))):r}return e.fallback}),void 0,void 0)}function Lt(e){let t=!1,n=!1;const r=tt((()=>e.children)),o=ze((()=>{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 ze((()=>{const[r,i,s]=o();if(r<0)return e.fallback;const a=s.children,l="function"==typeof a&&a.length>0;return t=n||l,l?Ye((()=>a(i))):a}),void 0,void 0)}function Tt(e){return e}const At=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"]),Mt=new Set(["innerHTML","textContent","innerText","children"]),Ot=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),$t=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Pt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),It=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"]),Nt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const Ut="_$DX_DELEGATE";function Wt(e,t,n){const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function jt(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function Bt(e,t){null==t?e.removeAttribute("class"):e.className=t}function Ht(e,t={},n,r){const o={};return r||Fe((()=>o.children=Zt(e,t.children,o.children))),Fe((()=>t.ref&&t.ref(e))),Fe((()=>function(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if("children"===s)continue;o[s]=qt(e,s,null,o[s],n,i)}for(const s in t){if("children"===s){r||Zt(e,t.children);continue}const a=t[s];o[s]=qt(e,s,a,o[s],n,i)}}(e,t,n,!0,o,!0))),o}function Kt(e,t,n){return Ye((()=>e(t,n)))}function Vt(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return Zt(e,t,r,n);Fe((r=>Zt(e,t(),r,n)),r)}function Dt(e){let t,n;return Ee.context&&(t=Ee.registry.get(n=function(){const e=Ee.context;return`${e.id}${e.count++}`}()))?(Ee.completed&&Ee.completed.add(t),Ee.registry.delete(n),t):e.cloneNode(!0)}function Ft(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 qt(e,t,n,r,o,i){let s,a,l;if("style"===t)return function(e,t,n){if(!t)return n?jt(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,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const r=o[i];r&&"undefined"!==r&&!t[r]&&(Ft(e,r,!1),delete n[r])}for(i=0,s=r.length;i<s;i++){const o=r[i],s=!!t[o];o&&"undefined"!==o&&n[o]!==s&&s&&(Ft(e,o,!0),n[o]=s)}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=Pt.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,t=window.document){const n=t[Ut]||(t[Ut]=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,zt))}}([o]))}else if((l=Mt.has(t))||!o&&($t[t]||(a=At.has(t)))||(s=e.nodeName.includes("-")))"class"===t||"className"===t?Bt(e,n):!s||a||l?e[$t[t]||t]=n:e[(c=t,c.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n;else{const r=o&&t.indexOf(":")>-1&&Nt[t.split(":")[0]];r?function(e,t,n,r){null==r?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}(e,r,t,n):jt(e,Ot[t]||t,n)}var c;return n}function zt(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}),Ee.registry&&!Ee.done&&(Ee.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 Zt(e,t,n,r,o){for(Ee.context&&!n&&(n=[...e.childNodes]);"function"==typeof n;)n=n();if(t===n)return n;const i=typeof t,s=void 0!==r;if(e=s&&n[0]&&n[0].parentNode||e,"string"===i||"number"===i){if(Ee.context)return n;if("number"===i&&(t=t.toString()),s){let o=n[0];o&&3===o.nodeType?o.data=t:o=document.createTextNode(t),n=Qt(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===i){if(Ee.context)return n;n=Qt(e,n,r)}else{if("function"===i)return Fe((()=>{let o=t();for(;"function"==typeof o;)o=o();n=Zt(e,o,n,r)})),()=>n;if(Array.isArray(t)){const i=[],a=n&&Array.isArray(n);if(Gt(i,t,n,o))return Fe((()=>n=Zt(e,i,n,r,!0))),()=>n;if(Ee.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=Qt(e,n,r),s)return n}else a?0===n.length?Yt(e,i,r):function(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;)if(t[s]!==n[a]){for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const t=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],t)}else if(i===a)for(;s<o;)c&&c.has(t[s])||t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],r),t[o]=n[i]}else{if(!c){c=new Map;let e=a;for(;e<i;)c.set(n[e],e++)}const r=c.get(t[s]);if(null!=r)if(a<r&&r<i){let l,u=s,d=1;for(;++u<o&&u<i&&null!=(l=c.get(t[u]))&&l===r+d;)d++;if(d>r-a){const o=t[s];for(;a<r;)e.insertBefore(n[a++],o)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}else s++,a++}(e,n,i):(n&&Qt(e),Yt(e,i));n=i}else if(t instanceof Node){if(Ee.context&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Qt(e,n,r,t);Qt(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Gt(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let s=t[i],a=n&&n[i];if(s instanceof Node)e.push(s);else if(null==s||!0===s||!1===s);else if(Array.isArray(s))o=Gt(e,s,a)||o;else if("function"==typeof s)if(r){for(;"function"==typeof s;)s=s();o=Gt(e,Array.isArray(s)?s:[s],Array.isArray(a)?a:[a])||o}else e.push(s),o=!0;else{const t=String(s);a&&3===a.nodeType&&a.data===t?e.push(a):e.push(document.createTextNode(t))}}return o}function Yt(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Qt(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 s=t[i];if(o!==s){const t=s.parentNode===e;r||i?t&&s.remove():t?e.replaceChild(o,s):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}const Jt="http://www.w3.org/2000/svg";function Xt(e,t=!1){return t?document.createElementNS(Jt,e):document.createElement(e)}function en(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(Ee.context){const[t,n]=Ve(!1);return queueMicrotask((()=>n(!0))),()=>t()&&e.children}return()=>e.children}if(r instanceof HTMLHeadElement){const[e,t]=Ve(!1),n=()=>t(!0);Ke((t=>Vt(r,(()=>e()?t():o()()),null))),Qe((()=>{Ee.context?queueMicrotask(n):n()}))}else{const i=Xt(e.isSVG?"g":"div",e.isSVG),s=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get:()=>n.parentNode,configurable:!0}),Vt(s,o()),r.appendChild(i),e.ref&&e.ref(i),Qe((()=>r.removeChild(i)))}return n}function tn(e){const[t,n]=St(e,["component"]),r=ze((()=>t.component));return ze((()=>{const e=r();switch(typeof e){case"function":return Ye((()=>e(n)));case"string":const t=It.has(e),r=Ee.context?Dt():Xt(e,t);return Ht(r,n,t),r}}))}var nn=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(nn||{});let rn={data:""},on=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||rn,sn=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,an=/\/\*[^]*?\*\/| +/g,ln=/\n+/g,cn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+s+";":r+="f"==i[1]?cn(s,i):i+"{"+cn(s,"k"==i[1]?"":t)+"}":"object"==typeof s?r+=cn(s,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=s&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=cn.p?cn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},un={},dn=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+dn(e[n]);return t}return e},hn=(e,t,n,r,o)=>{let i=dn(e),s=un[i]||(un[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!un[s]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=sn.exec(e.replace(an,""));)t[4]?r.shift():t[3]?(n=t[3].replace(ln," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ln," ").trim();return r[0]})(e);un[s]=cn(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&un.g?un.g:null;return n&&(un.g=un[s]),l=un[s],c=t,u=r,(d=a)?c.data=c.data.replace(d,l):-1===c.data.indexOf(l)&&(c.data=u?l+c.data:c.data+l),s;var l,c,u,d},fn=(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?"":cn(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function pn(e){let t=this||{},n=e.call?e(t.p):e;return hn(n.unshift?n.raw?fn(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,on(t.target),t.g,t.o,t.k)}pn.bind({g:1});let gn=pn.bind({k:1});const wn=Xe();function mn(e){return bt(wn.Provider,{value:e.theme,get children(){return e.children}})}function vn(){return et(wn)}function yn(e){let t=this||{};return(...n)=>{const r=r=>{const o=kt(r,{theme:et(wn)}),i=kt(o,{get class(){const e=o.class,r="class"in o&&/^go[0-9]+/.test(e);return[e,pn.apply({target:t.target,o:r,p:o,g:t.g},n)].filter(Boolean).join(" ")}}),[s,a]=St(i,["as","theme"]),l=a,c=s.as||e;let u;return"function"==typeof c?u=c(l):1==t.g?(u=document.createElement(c),Ht(u,l)):u=tn(kt({component:c},l)),u};return r.class=e=>Ye((()=>pn.apply({target:t.target,p:e,g:t.g},n))),r}}const bn=new Proxy(yn,{get:(e,t)=>e(t)});function Cn(){const e=yn.call({g:1},"div").apply(null,arguments);return function(t){return e(t),null}}const xn="tc-root",_n="tc-disable-scroll",kn="tc-using-mouse",Sn=()=>{document.body.addEventListener("mousedown",(()=>document.body.classList.add(kn))),document.body.addEventListener("keydown",(e=>{"Tab"===e.key&&document.body.classList.remove(kn)}));return bt(Cn`
2
2
  ${xn} * {
3
3
  margin: 0;
4
4
  padding: 0;
@@ -37,9 +37,9 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
37
37
  body.${kn} ${xn} *:focus {
38
38
  outline: none;
39
39
  }
40
- `,{})};function En(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 Ln(e){return e.toString()+"px"}var Rn={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",s="object",a="string",l="major",c="model",u="name",d="type",h="vendor",f="version",g="architecture",p="console",w="mobile",m="tablet",v="smarttv",y="wearable",b="embedded",C="Amazon",x="Apple",_="ASUS",k="BlackBerry",S="Browser",E="Chrome",L="Firefox",R="Google",A="Huawei",T="LG",M="Microsoft",O="Motorola",$="Opera",P="Samsung",I="Sharp",N="Sony",U="Xiaomi",W="Zebra",j="Facebook",B="Chromium OS",H="Mac OS",K=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===a&&-1!==F(t).indexOf(F(e))},F=function(e){return e.toLowerCase()},D=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},q=function(e,t){for(var n,i,a,l,c,u,d=0;d<t.length&&!c;){var h=t[d],f=t[d+1];for(n=i=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(a=0;a<f.length;a++)u=c[++i],typeof(l=f[a])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):r:this[l[0]]=u?l[1].call(this,u,l[2]):r:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):r):this[l]=u||r;d+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r: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"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,$+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,$]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],f],[/\bfocus\/([\w\.]+)/i],[f,[u,L+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[f,[u,L]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,E+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,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],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,L+" 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],[u,f],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,F]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",F]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,F]]],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],[c,[h,P],[d,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,P],[d,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,x],[d,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,x],[d,m]],[/(macintosh);/i],[c,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,I],[d,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,A],[d,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,A],[d,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,w]],[/\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],[c,[h,O],[d,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,O],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,T],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,T],[d,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,w]],[/(pixel c)\b/i],[c,[h,R],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,R],[d,w]],[/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],[c,[h,N],[d,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,N],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,C],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,C],[d,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[d,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,_],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,_],[d,w]],[/(nexus 9)/i],[c,[h,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,w]],[/(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],[h,c,[d,m]],[/(surface duo)/i],[c,[h,M],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,w]],[/(u304aa)/i],[c,[h,"AT&T"],[d,w]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,w]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,m]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,w]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,w]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,m]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,w]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[h,c,[d,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,M],[d,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,W],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,W],[d,w]],[/smart-tv.+(samsung)/i],[h,[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,P],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,T],[d,v]],[/(apple) ?tv/i],[h,[c,x+" TV"],[d,v]],[/crkey/i],[[c,E+"cast"],[h,R],[d,v]],[/droid.+aft(\w)( bui|\))/i],[c,[h,C],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,I],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,N],[d,v]],[/(mitv-\w{5}) bui/i],[c,[h,U],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,D],[c,D],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,p]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,p]],[/(playstation [345portablevi]+)/i],[c,[h,N],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,M],[d,p]],[/((pebble))app/i],[h,c,[d,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,x],[d,y]],[/droid.+; (glass) \d/i],[c,[h,R],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,W],[d,y]],[/(quest( 2| pro)?)/i],[c,[h,j],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,b]],[/(aeobc)\b/i],[c,[h,C],[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"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],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,z,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,z,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,L+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,B],f],[/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],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Y=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var p=typeof n!==i&&n.navigator?n.navigator:r,v=e||(p&&p.userAgent?p.userAgent:""),y=p&&p.userAgentData?p.userAgentData:r,b=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}(G,t):G,C=p&&p.userAgent==v;return this.getBrowser=function(){var e,t={};return t[u]=r,t[f]=r,q.call(t,v,b.browser),t[l]=typeof(e=t[f])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,C&&p&&p.brave&&typeof p.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[g]=r,q.call(e,v,b.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[c]=r,e[d]=r,q.call(e,v,b.device),C&&!e[d]&&y&&y.mobile&&(e[d]=w),C&&"Macintosh"==e[c]&&p&&typeof p.standalone!==i&&p.maxTouchPoints&&p.maxTouchPoints>2&&(e[c]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.engine),e},this.getOS=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.os),C&&!e[u]&&y&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,B).replace(/macos/i,H)),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 v},this.setUA=function(e){return v=typeof e===a&&e.length>350?D(e,350):e,this},this.setUA(v),this};Y.VERSION="1.0.35",Y.BROWSER=K([u,f,l]),Y.CPU=K([g]),Y.DEVICE=K([c,h,d,p,w,v,m,y,b]),Y.ENGINE=Y.OS=K([u,f]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var J=new Y;Q.ua=J.getResult(),Q.ua.get=function(){return J.getUA()},Q.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:n)}(Rn,Rn.exports);const An=Rn.exports,Tn=class{constructor(){__publicField(this,"storage",{})}static getInstance(){return Tn.instance||(Tn.instance=new Tn),Tn.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 Mn=Tn;__publicField(Mn,"instance");class On extends R{constructor(...e){super(...e),Object.setPrototypeOf(this,On.prototype)}}function $n(e){!function(e,t="_self"){window.open(e,t,"noreferrer noopener")}(e,"_blank")}function Pn(e,t){let n;n="string"==typeof t?t:Bn()?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(!Y(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Q(o)}function In(e){"complete"!==document.readyState?window.addEventListener("load",(()=>In(e)),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function Nn(){if("undefined"!=typeof window)return window}function Un(){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 On("`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 Mn.getInstance()}function Wn(){var e,t;const n=(new An).getResult(),r=null==(e=n.os.name)?void 0:e.toLowerCase();let o;switch(!0){case"ios"===r:o="ios";break;case"android"===r:o="android";break;case"mac os"===r:o="macos";break;case"linux"===r:o="linux";break;case null==r?void 0:r.includes("windows"):o="windows"}const i=null==(t=n.browser.name)?void 0:t.toLowerCase();let s;switch(!0){case"chrome"===i:s="chrome";break;case"firefox"===i:s="firefox";break;case null==i?void 0:i.includes("safari"):s="safari"}return{os:o,browser:s}}function jn(e,t){const n=new URL(e);n.searchParams.append("startattach","tonconnect"),$n(Pn(n.toString(),t))}function Bn(){var e;return!!(null==(e=Nn())?void 0:e.TelegramWebviewProxy)}class Hn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=Un()}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 Kn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=Un()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class Vn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=Un()}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[Fn,Dn]=Ve({status:"closed",closeReason:null}),qn=ze((()=>"opened"===Fn().status));let zn="undefined"!=typeof window?new Vn:void 0;const[Zn,Gn]=Ve((null==zn?void 0:zn.getLastSelectedWalletInfo())||null),Yn=e=>{zn||(zn=new Vn),e?zn.setLastSelectedWalletInfo(e):zn.removeLastSelectedWalletInfo(),Gn(e)},[Qn,Jn]=Ve(null),Xn={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Копировать ссылку",linkCopied:"Ссылка скопирована",copied:"Ссылка скопирована",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете кошелёк для подключения",openWalletOnTelegram:"Открыть Wallet в Telegram",openLink:"Открыть ссылку",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueIn:"Продолжите в {{ name }}…",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",getWallet:"Скачать {{ name }}",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},er={en:tr({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 confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your 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 on Telegram or select your wallet to connect",openWalletOnTelegram:"Open Wallet on 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 QR code below with your phone’s or {{ name }}’s camera",continueIn:"Continue in {{ name }}…",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in {{ name }} on desktop…",openWalletOnTelegram:"Open Wallet on 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 including 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 the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:tr(Xn)};function tr(e){const t=n=>{Object.entries(n).forEach((([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach((e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]})),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}}))};return t(e),e}const nr=Xe(),rr=Symbol("store-raw"),or=Symbol("store-node"),ir=Symbol("store-name");function sr(e,t){let n=e[Le];if(!n&&(Object.defineProperty(e,Le,{value:n=new Proxy(e,fr)}),!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 ar(e){let t;return null!=e&&"object"==typeof e&&(e[Le]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function lr(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[rr])return n;if(!ar(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=lr(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let a=0,l=n.length;a<l;a++)i=n[a],s[i].get||(o=e[i],(r=lr(o,t))!==o&&(e[i]=r))}return e}function cr(e){let t=e[or];return t||Object.defineProperty(e,or,{value:t={}}),t}function ur(e,t,n){return e[t]||(e[t]=hr(n))}function dr(e){if(Je()){const t=cr(e);(t._||(t._=hr()))()}}function hr(e){const[t,n]=Ve(e,{equals:!1,internal:!0});return t.$=n,t}const fr={get(e,t,n){if(t===rr)return e;if(t===Le)return n;if(t===Re)return dr(e),n;const r=cr(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===or||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!Je()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=ur(r,t,i)())}return ar(i)?sr(i):i},has(e,t){return t===rr||t===Le||t===Re||t===or||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return dr(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Le&&t!==or&&t!==ir?(delete n.value,delete n.writable,n.get=()=>e[Le][t],n):n}};function gr(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let s,a=cr(e);(s=ur(a,t,o))&&s.$((()=>n)),Array.isArray(e)&&e.length!==i&&(s=ur(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function pr(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];gr(e,o,t[o])}}function wr(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)wr(e,[r[o]].concat(t),n);return}if(s&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&wr(e,[o].concat(t),n);return}if(s&&"object"===i){const{from:o=0,to:i=e.length-1,by:s=1}=r;for(let r=o;r<=i;r+=s)wr(e,[r].concat(t),n);return}if(t.length>1)return void wr(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=lr(i),void 0===r||ar(o)&&ar(i)&&!Array.isArray(i)?pr(o,i):gr(e,r,i))}function mr(...[e,t]){const n=lr(e||{}),r=Array.isArray(n);return[sr(n),function(...e){Ge((()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=lr(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&&gr(e,n,r)}gr(e,"length",r)}else pr(e,t)}(n,e[0]):wr(n,e)}))}]}const vr={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"}};var yr=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===br}(e)}(e)};var br="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Cr(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Er((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function xr(e,t,n){return e.concat(t).map((function(e){return Cr(e,n)}))}function _r(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function kr(e,t){try{return t in e}catch(n){return!1}}function Sr(e,t,n){var r={};return n.isMergeableObject(e)&&_r(e).forEach((function(t){r[t]=Cr(e[t],n)})),_r(t).forEach((function(o){(function(e,t){return kr(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(kr(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Er;var n=t.customMerge(e);return"function"==typeof n?n:Er}(o,n)(e[o],t[o],n):r[o]=Cr(t[o],n))})),r}function Er(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||xr,n.isMergeableObject=n.isMergeableObject||yr,n.cloneUnlessOtherwiseSpecified=Cr;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Sr(e,t,n):Cr(t,n)}Er.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Er(e,n,t)}),{})};var Lr=Er;function Rr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ar(e){var t,n;return!1!==Rr(e)&&(void 0===(t=e.constructor)||!1!==Rr(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Tr(e,t){if(!e)return t;return Lr(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Ar})}const[Mr,Or]=mr({theme:nn.LIGHT,colors:vr,borderRadius:"m"}),$r={[nn.LIGHT]:vr,[nn.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"}}},Pr={[nn.LIGHT]:void 0,[nn.DARK]:void 0};function Ir(e,t){t&&(Pr[nn.DARK]=Tr(t[nn.DARK],Pr[nn.DARK]),Pr[nn.LIGHT]=Tr(t[nn.LIGHT],Pr[nn.LIGHT])),Or({theme:e,colors:Tr(Pr[e],$r[e])})}const Nr=bn.div`
40
+ `,{})};function En(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 Rn(e){return e.toString()+"px"}var Ln={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",s="object",a="string",l="major",c="model",u="name",d="type",h="vendor",f="version",p="architecture",g="console",w="mobile",m="tablet",v="smarttv",y="wearable",b="embedded",C="Amazon",x="Apple",_="ASUS",k="BlackBerry",S="Browser",E="Chrome",R="Firefox",L="Google",T="Huawei",A="LG",M="Microsoft",O="Motorola",$="Opera",P="Samsung",I="Sharp",N="Sony",U="Xiaomi",W="Zebra",j="Facebook",B="Chromium OS",H="Mac OS",K=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===a&&-1!==D(t).indexOf(D(e))},D=function(e){return e.toLowerCase()},F=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},q=function(e,t){for(var n,i,a,l,c,u,d=0;d<t.length&&!c;){var h=t[d],f=t[d+1];for(n=i=0;n<h.length&&!c&&h[n];)if(c=h[n++].exec(e))for(a=0;a<f.length;a++)u=c[++i],typeof(l=f[a])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):r:this[l[0]]=u?l[1].call(this,u,l[2]):r:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):r):this[l]=u||r;d+=2}},z=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(V(t[n][o],e))return"?"===n?r:n}else if(V(t[n],e))return"?"===n?r: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"},G={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,$+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,$]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],f],[/\bfocus\/([\w\.]+)/i],[f,[u,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,$+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,$+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[f,[u,R]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,E+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,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],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,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],[u,f],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,D]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",D]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,D]]],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],[c,[h,P],[d,m]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,P],[d,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,x],[d,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,x],[d,m]],[/(macintosh);/i],[c,[h,x]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,I],[d,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,T],[d,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,T],[d,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,U],[d,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[d,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[d,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[d,w]],[/\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],[c,[h,O],[d,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,O],[d,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,A],[d,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,A],[d,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[d,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[d,w]],[/(pixel c)\b/i],[c,[h,L],[d,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,L],[d,w]],[/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],[c,[h,N],[d,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,N],[d,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[d,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,C],[d,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,C],[d,w]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[d,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[d,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,_],[d,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,_],[d,w]],[/(nexus 9)/i],[c,[h,"HTC"],[d,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[d,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[d,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[d,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[d,w]],[/(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],[h,c,[d,m]],[/(surface duo)/i],[c,[h,M],[d,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[d,w]],[/(u304aa)/i],[c,[h,"AT&T"],[d,w]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[d,w]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[d,m]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[d,m]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[d,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[d,m]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[d,m]],[/\b(k88) b/i],[c,[h,"ZTE"],[d,m]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[d,w]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[d,w]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[d,m]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[d,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[d,m]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[d,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[d,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[d,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[d,w]],[/\b(ph-1) /i],[c,[h,"Essential"],[d,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[d,m]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[d,m]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[d,m]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[d,m]],[/(sprint) (\w+)/i],[h,c,[d,w]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,M],[d,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,W],[d,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,W],[d,w]],[/smart-tv.+(samsung)/i],[h,[d,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,P],[d,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,A],[d,v]],[/(apple) ?tv/i],[h,[c,x+" TV"],[d,v]],[/crkey/i],[[c,E+"cast"],[h,L],[d,v]],[/droid.+aft(\w)( bui|\))/i],[c,[h,C],[d,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,I],[d,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,N],[d,v]],[/(mitv-\w{5}) bui/i],[c,[h,U],[d,v]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[d,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,F],[c,F],[d,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[d,g]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[c,[h,N],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,M],[d,g]],[/((pebble))app/i],[h,c,[d,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,x],[d,y]],[/droid.+; (glass) \d/i],[c,[h,L],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,W],[d,y]],[/(quest( 2| pro)?)/i],[c,[h,j],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,b]],[/(aeobc)\b/i],[c,[h,C],[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[d,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[d,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,w]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"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],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,z,Z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,z,Z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,H],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[u,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[u,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,B],f],[/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],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Y=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof Y))return new Y(e,t).getResult();var g=typeof n!==i&&n.navigator?n.navigator:r,v=e||(g&&g.userAgent?g.userAgent:""),y=g&&g.userAgentData?g.userAgentData:r,b=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}(G,t):G,C=g&&g.userAgent==v;return this.getBrowser=function(){var e,t={};return t[u]=r,t[f]=r,q.call(t,v,b.browser),t[l]=typeof(e=t[f])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,C&&g&&g.brave&&typeof g.brave.isBrave==o&&(t[u]="Brave"),t},this.getCPU=function(){var e={};return e[p]=r,q.call(e,v,b.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[c]=r,e[d]=r,q.call(e,v,b.device),C&&!e[d]&&y&&y.mobile&&(e[d]=w),C&&"Macintosh"==e[c]&&g&&typeof g.standalone!==i&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[c]="iPad",e[d]=m),e},this.getEngine=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.engine),e},this.getOS=function(){var e={};return e[u]=r,e[f]=r,q.call(e,v,b.os),C&&!e[u]&&y&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,B).replace(/macos/i,H)),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 v},this.setUA=function(e){return v=typeof e===a&&e.length>350?F(e,350):e,this},this.setUA(v),this};Y.VERSION="1.0.35",Y.BROWSER=K([u,f,l]),Y.CPU=K([p]),Y.DEVICE=K([c,h,d,g,w,v,m,y,b]),Y.ENGINE=Y.OS=K([u,f]),e.exports&&(t=e.exports=Y),t.UAParser=Y;var Q=typeof n!==i&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var J=new Y;Q.ua=J.getResult(),Q.ua.get=function(){return J.getUA()},Q.ua.set=function(e){J.setUA(e);var t=J.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:n)}(Ln,Ln.exports);const Tn=Ln.exports,An=class{constructor(){__publicField(this,"storage",{})}static getInstance(){return An.instance||(An.instance=new An),An.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 Mn=An;__publicField(Mn,"instance");class On extends L{constructor(...e){super(...e),Object.setPrototypeOf(this,On.prototype)}}let $n={};try{$n=function(e){e=e.replace(/^#/,"");let t={};if(!e.length)return t;if(e.indexOf("=")<0&&e.indexOf("?")<0)return t._path=Kn(e),t;let n=e.indexOf("?");if(n>=0){let r=e.substr(0,n);t._path=Kn(r),e=e.substr(n+1)}let r=function(e){let t={};if(!e.length)return t;let n,r,o,i,s=e.split("&");for(n=0;n<s.length;n++)r=s[n].split("="),o=Kn(r[0]),i=null==r[1]?null:Kn(r[1]),t[o]=i;return t}(e);for(let o in r)t[o]=r[o];return t}(location.hash.toString())}catch(ou){}let Pn="unknown";$n.tgWebAppPlatform&&(Pn=$n.tgWebAppPlatform);let In="6.0";function Nn(...e){return e.includes(Pn)}function Un(){var e;return"unknown"!==Pn||!!(null==(e=zn())?void 0:e.TelegramWebviewProxy)}function Wn(){Hn("web_app_expand",{})}function jn(e){const t=new URL(e);if("http:"!==t.protocol&&"https:"!==t.protocol)throw new On(`Url protocol is not supported: ${t}`);if("t.me"!==t.hostname)throw new On(`Url host is not supported: ${t}`);const n=t.pathname+t.search;Bn()||function(e,t){"string"!=typeof e&&(e=""),"string"!=typeof t&&(t="");let n,r,o,i,s=e.replace(/^\s+|\s+$/g,"").split("."),a=t.replace(/^\s+|\s+$/g,"").split(".");for(n=Math.max(s.length,a.length),r=0;r<n;r++)if(o=parseInt(s[r])||0,i=parseInt(a[r])||0,o!==i)return o>i?1:-1;return 0}(In,"6.1")>=0?Hn("web_app_open_tg_link",{path_full:n}):window.open("https://t.me"+n,"_blank","noreferrer noopener")}function Bn(){try{return null!=window.parent&&window!==window.parent}catch(ou){return!1}}function Hn(e,t){try{if(void 0!==window.TelegramWebviewProxy)window.TelegramWebviewProxy.postEvent(e,JSON.stringify(t));else if(window.external&&"notify"in window.external)window.external.notify(JSON.stringify({eventType:e,eventData:t}));else if(Bn()){const n="*",r=JSON.stringify({eventType:e,eventData:t});window.parent.postMessage(r,n)}throw new On("Can't post event to TMA")}catch(ou){!function(...t){try{console.error("[TON_CONNECT_UI]",...t)}catch(e){}}(`Can't post event to parent window: ${ou}`)}}function Kn(e){try{return e=e.replace(/\+/g,"%20"),decodeURIComponent(e)}catch(ou){return e}}function Vn(e){!function(e,t="_self"){window.open(e,t,"noopener noreferrer")}(e,"_blank")}function Dn(e,t){let n;n="string"==typeof t?t:Un()?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(!Y(e))return r;const o=r.slice(r.lastIndexOf("&")+1);return r.slice(0,r.lastIndexOf("&"))+"-"+Q(o)}function Fn(e){return __async(this,null,(function*(){yield new Promise((e=>requestAnimationFrame(e))),e()}))}function qn(e){"complete"!==document.readyState?window.addEventListener("load",(()=>Fn((()=>qn(e)))),{once:!0}):e.forEach((e=>{(new window.Image).src=e}))}function zn(){if("undefined"!=typeof window)return window}function Zn(){if(function(){try{return"undefined"!=typeof localStorage}catch(ou){return!1}}())return localStorage;if("undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node)throw new On("`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 Mn.getInstance()}function Gn(){var e,t;const n=(new Tn).getResult(),r=null==(e=n.os.name)?void 0:e.toLowerCase();let o;switch(!0){case"ios"===r:o="ios";break;case"android"===r:o="android";break;case"mac os"===r:o="macos";break;case"linux"===r:o="linux";break;case null==r?void 0:r.includes("windows"):o="windows"}const i=null==(t=n.browser.name)?void 0:t.toLowerCase();let s;switch(!0){case"chrome"===i:s="chrome";break;case"firefox"===i:s="firefox";break;case null==i?void 0:i.includes("safari"):s="safari"}return{os:o,browser:s}}function Yn(...e){return e.includes(Gn().os)}function Qn(e,t){t=__spreadValues({},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"),Un())if(Nn("ios","android"))t.returnStrategy="none",t.twaReturnUrl=void 0,jn(Dn(r.toString(),t));else if(Nn("macos","tdesktop")){if(!t.twaReturnUrl)throw new On("`twaReturnUrl` is required for this platform");jn(Dn(r.toString(),t))}else Nn("weba")?jn(Dn(r.toString(),t)):Nn("web")?(t.returnStrategy="none",t.twaReturnUrl=void 0,jn(Dn(r.toString(),t))):Vn(Dn(r.toString(),t));else if(Yn("ios","android"))t.returnStrategy="back",Vn(Dn(r.toString(),t.returnStrategy));else if(Yn("macos","windows","linux"))if(t.returnStrategy="none",t.twaReturnUrl=void 0,t.forceRedirect)Vn(Dn(r.toString(),t));else{const e=Dn(r.toString(),t),n=function(e){const t=new URL(e),[,n,r]=t.pathname.split("/"),o=t.searchParams.get("startapp");return`tg://resolve?domain=${n}&appname=${r}&startapp=${o}`}(e);!function(e,t){const n=document.createElement("iframe");n.style.display="none",n.src=e,document.body.appendChild(n);const r=setTimeout((()=>t()),1e3);window.addEventListener("blur",(()=>clearTimeout(r)),{once:!0}),setTimeout((()=>document.body.removeChild(n)),1e3)}(n,(()=>Vn(e)))}else Vn(Dn(r.toString(),t))}$n.tgWebAppVersion&&(In=$n.tgWebAppVersion);class Jn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_wallet-info"),this.localStorage=Zn()}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 Xn{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_preferred-wallet"),this.localStorage=Zn()}setPreferredWalletAppName(e){this.localStorage.setItem(this.storageKey,e)}getPreferredWalletAppName(){return this.localStorage.getItem(this.storageKey)||void 0}}class er{constructor(){__publicField(this,"localStorage"),__publicField(this,"storageKey","ton-connect-ui_last-selected-wallet-info"),this.localStorage=Zn()}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[tr,nr]=Ve({status:"closed",closeReason:null}),rr=ze((()=>"opened"===tr().status));let or="undefined"!=typeof window?new er:void 0;const[ir,sr]=Ve((null==or?void 0:or.getLastSelectedWalletInfo())||null),ar=e=>{or||(or=new er),e?or.setLastSelectedWalletInfo(e):or.removeLastSelectedWalletInfo(),sr(e)},[lr,cr]=Ve(null),ur={common:{close:"Закрыть",openWallet:"Открыть кошелёк",copyLink:"Копировать ссылку",linkCopied:"Ссылка скопирована",copied:"Ссылка скопирована",yourWallet:"Ваш кошелёк",retry:"Повторить",get:"Скачать",mobile:"Мобильный",browserExtension:"Расширение",desktop:"Десктоп"},button:{connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},notifications:{confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},walletItem:{walletOn:"Wallet в",recent:"Недавний",installed:"Установлен",popular:"Популярен"},walletModal:{loading:"Кошельки загружаются",wallets:"Кошельки",mobileUniversalModal:{connectYourWallet:"Подключите кошелёк",openWalletOnTelegramOrSelect:"Подключите Wallet в Telegram или выберете кошелёк для подключения",openWalletOnTelegram:"Открыть Wallet в Telegram",openLink:"Открыть ссылку",scan:"Отсканируйте камерой вашего телефона"},desktopUniversalModal:{connectYourWallet:"Подключите кошелёк",scan:"Отсканируйте QR-код камерой вашего телефона",availableWallets:"Доступные кошельки"},mobileConnectionModal:{showQR:"Показать QR-код",scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueIn:"Продолжите в {{ name }}…",connectionDeclined:"Подключение отклонено"},desktopConnectionModal:{scanQR:"Отсканируйте QR-код ниже камерой в приложении {{ name }}, или камерой телефона",continueInExtension:"Откройте браузерное расширение {{ name }}",dontHaveExtension:"Похоже, у вас не установлено браузерное расширение {{ name }}",getWallet:"Скачать {{ name }}",continueOnDesktop:"Откройте {{ name }} на компьютере…",openWalletOnTelegram:"Открыть Wallet в Telegram",connectionDeclined:"Подключение отклонено"},infoModal:{whatIsAWallet:"Что такое кошелёк?",secureDigitalAssets:"Надежное хранилище цифровых активов",walletProtects:"Кошелёк защищает ваши цифровые активы, включая TON, токены и предметы коллекционирования, и управляет ими.",controlIdentity:"Контроль своей личности Web3",manageIdentity:"Управляйте своей цифровой идентификацией и с легкостью получайте доступ к децентрализованным приложениям. Сохраняйте контроль над своими данными и безопасно участвуйте в экосистеме блокчейна.",effortlessCryptoTransactions:"Простые криптотранзакции",easilySend:"Легко отправляйте, получайте и отслеживайте свои криптовалюты. Оптимизируйте свои операции с помощью децентрализованных приложений.",getAWallet:"Скачать кошелёк"}},actionModal:{confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}},dr={en:hr({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 confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your 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 QR code below with your phone’s or {{ name }}’s camera",continueIn:"Continue in {{ name }}…",connectionDeclined:"Connection declined"},desktopConnectionModal:{scanQR:"Scan the QR code below with your phone’s or {{ name }}’s camera",continueInExtension:"Continue in {{ name }} browser extension…",dontHaveExtension:"Seems you don't have installed {{ name }} browser extension",getWallet:"Get {{ name }}",continueOnDesktop:"Continue in {{ name }} on desktop…",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 including 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 the blockchain ecosystem.",effortlessCryptoTransactions:"Effortless crypto transactions",easilySend:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications.",getAWallet:"Get a Wallet"}},actionModal:{confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"}}),ru:hr(ur)};function hr(e){const t=n=>{Object.entries(n).forEach((([r,o])=>{if("object"==typeof o&&o)return t(o);if("string"==typeof o){if("$"===o[0]){const t=o.slice(1).split(".");let i=e;t.forEach((e=>{if(!(e in i))throw new Error(`Cannot parse translations: there is no property ${e} in translation`);i=i[e]})),n[r]=i}"\\$"===o.slice(0,2)&&(n[r]=o.slice(1))}}))};return t(e),e}const fr=Xe(),pr=Symbol("store-raw"),gr=Symbol("store-node"),wr=Symbol("store-name");function mr(e,t){let n=e[Re];if(!n&&(Object.defineProperty(e,Re,{value:n=new Proxy(e,kr)}),!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 vr(e){let t;return null!=e&&"object"==typeof e&&(e[Re]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function yr(e,t=new Set){let n,r,o,i;if(n=null!=e&&e[pr])return n;if(!vr(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,i=e.length;n<i;n++)o=e[n],(r=yr(o,t))!==o&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);const n=Object.keys(e),s=Object.getOwnPropertyDescriptors(e);for(let a=0,l=n.length;a<l;a++)i=n[a],s[i].get||(o=e[i],(r=yr(o,t))!==o&&(e[i]=r))}return e}function br(e){let t=e[gr];return t||Object.defineProperty(e,gr,{value:t={}}),t}function Cr(e,t,n){return e[t]||(e[t]=_r(n))}function xr(e){if(Je()){const t=br(e);(t._||(t._=_r()))()}}function _r(e){const[t,n]=Ve(e,{equals:!1,internal:!0});return t.$=n,t}const kr={get(e,t,n){if(t===pr)return e;if(t===Re)return n;if(t===Le)return xr(e),n;const r=br(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===gr||"__proto__"===t)return i;if(!o){const n=Object.getOwnPropertyDescriptor(e,t);!Je()||"function"==typeof i&&!e.hasOwnProperty(t)||n&&n.get||(i=Cr(r,t,i)())}return vr(i)?mr(i):i},has(e,t){return t===pr||t===Re||t===Le||t===gr||"__proto__"===t||(this.get(e,t,e),t in e)},set:()=>!0,deleteProperty:()=>!0,ownKeys:function(e){return xr(e),Reflect.ownKeys(e)},getOwnPropertyDescriptor:function(e,t){const n=Reflect.getOwnPropertyDescriptor(e,t);return n&&!n.get&&n.configurable&&t!==Re&&t!==gr&&t!==wr?(delete n.value,delete n.writable,n.get=()=>e[Re][t],n):n}};function Sr(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;void 0===n?delete e[t]:e[t]=n;let s,a=br(e);(s=Cr(a,t,o))&&s.$((()=>n)),Array.isArray(e)&&e.length!==i&&(s=Cr(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function Er(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];Sr(e,o,t[o])}}function Rr(e,t,n=[]){let r,o=e;if(t.length>1){r=t.shift();const i=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let o=0;o<r.length;o++)Rr(e,[r[o]].concat(t),n);return}if(s&&"function"===i){for(let o=0;o<e.length;o++)r(e[o],o)&&Rr(e,[o].concat(t),n);return}if(s&&"object"===i){const{from:o=0,to:i=e.length-1,by:s=1}=r;for(let r=o;r<=i;r+=s)Rr(e,[r].concat(t),n);return}if(t.length>1)return void Rr(e[r],t,[r].concat(n));o=e[r],n=[r].concat(n)}let i=t[0];"function"==typeof i&&(i=i(o,n),i===o)||void 0===r&&null==i||(i=yr(i),void 0===r||vr(o)&&vr(i)&&!Array.isArray(i)?Er(o,i):Sr(e,r,i))}function Lr(...[e,t]){const n=yr(e||{}),r=Array.isArray(n);return[mr(n),function(...e){Ge((()=>{r&&1===e.length?function(e,t){if("function"==typeof t&&(t=t(e)),t=yr(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&&Sr(e,n,r)}Sr(e,"length",r)}else Er(e,t)}(n,e[0]):Rr(n,e)}))}]}const Tr={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"}};var Ar=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===Mr}(e)}(e)};var Mr="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Or(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ur((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function $r(e,t,n){return e.concat(t).map((function(e){return Or(e,n)}))}function Pr(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ir(e,t){try{return t in e}catch(n){return!1}}function Nr(e,t,n){var r={};return n.isMergeableObject(e)&&Pr(e).forEach((function(t){r[t]=Or(e[t],n)})),Pr(t).forEach((function(o){(function(e,t){return Ir(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ir(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Ur;var n=t.customMerge(e);return"function"==typeof n?n:Ur}(o,n)(e[o],t[o],n):r[o]=Or(t[o],n))})),r}function Ur(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||$r,n.isMergeableObject=n.isMergeableObject||Ar,n.cloneUnlessOtherwiseSpecified=Or;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Nr(e,t,n):Or(t,n)}Ur.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ur(e,n,t)}),{})};var Wr=Ur;function jr(e){return"[object Object]"===Object.prototype.toString.call(e)}function Br(e){var t,n;return!1!==jr(e)&&(void 0===(t=e.constructor)||!1!==jr(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function Hr(e,t){if(!e)return t;return Wr(t,e,{arrayMerge:(e,t,n)=>t,isMergeableObject:Br})}const[Kr,Vr]=Lr({theme:nn.LIGHT,colors:Tr,borderRadius:"m"}),Dr={[nn.LIGHT]:Tr,[nn.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"}}},Fr={[nn.LIGHT]:void 0,[nn.DARK]:void 0};function qr(e,t){t&&(Fr[nn.DARK]=Hr(t[nn.DARK],Fr[nn.DARK]),Fr[nn.LIGHT]=Hr(t[nn.LIGHT],Fr[nn.LIGHT])),Vr({theme:e,colors:Hr(Fr[e],Dr[e])})}const zr=bn.div`
41
41
  background-color: ${e=>e.theme.colors.background.secondary};
42
- `,Ur=e=>{let t;const[n,r]=Ve(null);return qe((()=>{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))))})),[bt(Lt,{get when(){return n()},get children(){return n()}}),bt(Lt,{get when(){return!n()},get children(){return bt(Nr,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]},Wr={mobile:440,tablet:1020};function jr(e){const t=Nn();if(!t)return"desktop"===e;const n=t.innerWidth;switch(e){case"desktop":return n>Wr.tablet;case"tablet":return n>Wr.mobile;default:return n<=Wr.mobile}}function Br(e){switch(e){case"mobile":return`@media (max-width: ${Wr.mobile}px)`;case"tablet":return`@media (max-width: ${Wr.tablet}px) (min-width: ${Wr.mobile}px)`;default:return`@media (min-width: ${Wr.tablet}px)`}}const Hr="@media (hover: none)",Kr="@media not all and (hover: none)",Vr={m:"100vh",s:"8px",none:"0"},Fr={s:.02,m:.04},Dr=bn.button`
42
+ `,Zr=e=>{let t;const[n,r]=Ve(null);return qe((()=>{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))))})),[bt(Rt,{get when(){return n()},get children(){return n()}}),bt(Rt,{get when(){return!n()},get children(){return bt(zr,{get class(){return e.class},ref(e){"function"==typeof t?t(e):t=e}})}})]},Gr={mobile:440,tablet:1020};function Yr(e){const t=zn();if(!t)return"desktop"===e;if(Nn("weba"))return!0;const n=t.innerWidth;switch(e){case"desktop":return n>Gr.tablet;case"tablet":return n>Gr.mobile;default:return n<=Gr.mobile}}function Qr(e){switch(e){case"mobile":return`@media (max-width: ${Gr.mobile}px)`;case"tablet":return`@media (max-width: ${Gr.tablet}px) (min-width: ${Gr.mobile}px)`;default:return`@media (min-width: ${Gr.tablet}px)`}}const Jr="@media (hover: none)",Xr="@media not all and (hover: none)",eo={m:"100vh",s:"8px",none:"0"},to={s:.02,m:.04},no=bn.button`
43
43
  display: ${e=>e.leftIcon||e.rightIcon?"flex":"inline-block"};
44
44
  gap: ${e=>e.leftIcon||e.rightIcon?"6px":"unset"};
45
45
  align-items: ${e=>e.leftIcon||e.rightIcon?"center":"unset"};
@@ -51,7 +51,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
51
51
  padding-left: ${e=>e.leftIcon&&"flat"!==e.appearance?"12px":"16px"};
52
52
  padding-right: ${e=>e.rightIcon&&"flat"!==e.appearance?"12px":"16px"};
53
53
  border: none;
54
- border-radius: ${e=>Vr[e.theme.borderRadius]};
54
+ border-radius: ${e=>eo[e.theme.borderRadius]};
55
55
  cursor: ${e=>e.disabled?"not-allowed":"pointer"};
56
56
 
57
57
  font-size: 14px;
@@ -60,25 +60,25 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
60
60
 
61
61
  transition: transform 0.125s ease-in-out;
62
62
 
63
- ${Kr} {
63
+ ${Xr} {
64
64
  &:hover {
65
- transform: ${e=>e.disabled?"unset":`scale(${1+Fr[e.scale]})`};
65
+ transform: ${e=>e.disabled?"unset":`scale(${1+to[e.scale]})`};
66
66
  }
67
67
  }
68
68
 
69
69
  &:active {
70
- transform: ${e=>e.disabled?"unset":`scale(${1-Fr[e.scale]})`};
70
+ transform: ${e=>e.disabled?"unset":`scale(${1-to[e.scale]})`};
71
71
  }
72
72
 
73
- ${Hr} {
73
+ ${Jr} {
74
74
  &:active {
75
- transform: ${e=>e.disabled?"unset":`scale(${1-2*Fr[e.scale]})`};
75
+ transform: ${e=>e.disabled?"unset":`scale(${1-2*to[e.scale]})`};
76
76
  }
77
77
  }
78
- `;function qr(e){const t=Ye((()=>Object.keys(e).filter((e=>e.startsWith("data-"))))),[n]=St(e,t);return n}const zr=e=>{const t=qr(e);return bt(Dr,kt({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[ze((()=>e.leftIcon)),ze((()=>e.children)),ze((()=>e.rightIcon))]}}))};var Zr={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)t.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Zr);const Gr=Zr.exports;function Yr(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}const Qr=e=>{let t,n=!0;const[r,o]=Ve(),[i,s]=Ve(),a=tt((()=>e.children)),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:h,onAfterExit:f}=e,g=ze((()=>{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 p(t,a){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...h),t.classList.remove(...f),Ge((()=>{r()!==t&&o(t),i()===t&&s(void 0)})),u&&u(t),"inout"===e.mode&&w(t,a))};const d=g().enterClass.split(" "),h=g().enterActiveClass.split(" "),f=g().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...h),Yr((()=>{t.classList.remove(...d),t.classList.add(...f),c&&c(t,(()=>n())),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))}))}a&&!e.mode?s(t):o(t)}function w(t,n){const i=g().exitClass.split(" "),s=g().exitActiveClass.split(" "),a=g().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(...s),n.classList.remove(...a),r()===n&&o(void 0),f&&f(n),"outin"===e.mode&&p(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...s),Yr((()=>{n.classList.remove(...i),n.classList.add(...a)})),h&&h(n,(()=>l())),(!h||h.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return Fe((r=>{for(t=a();"function"==typeof t;)t=t();return Ye((()=>(t&&t!==r&&("outin"!==e.mode?p(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&w(t,r),n=!1,t)))})),[r,i]};function Jr(e){const{top:t,bottom:n,left:r,right:o,width:i,height:s}=e.getBoundingClientRect(),a=e.parentNode.getBoundingClientRect();return{top:t-a.top,bottom:n,left:r-a.left,right:o,width:i,height:s}}const Xr=e=>{const t=tt((()=>e.children)),n=ze((()=>{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:s,onExit:a,onAfterExit:l}=e,[c,u]=Ve();let d=[],h=!0;return Fe((()=>{const e=t(),c=[...e],f=new Set(e),g=new Set(d),p=n().enterClass.split(" "),w=n().enterActiveClass.split(" "),m=n().enterToClass.split(" "),v=n().exitClass.split(" "),y=n().exitActiveClass.split(" "),b=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!h&&!g.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...w),n.classList.remove(...m),i&&i(n))};r&&r(n),n.classList.add(...p),n.classList.add(...w),Yr((()=>{n.classList.remove(...p),n.classList.add(...m),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(!f.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...y),e.classList.remove(...b),l&&l(e),d=d.filter((t=>t!==e)),u(d))};c.splice(t,0,e),s&&s(e),e.classList.add(...v),e.classList.add(...y),Yr((()=>{e.classList.remove(...v),e.classList.add(...b)})),a&&a(e,(()=>n())),(!a||a.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)})),qe((e=>{const t=c();return t.forEach((t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=Jr(t)):e.set(t,n={pos:Jr(t),new:!h}),n.new&&t.addEventListener("transitionend",(()=>{n.new=!1,t.parentNode&&(n.newPos=Jr(t))}),{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=Jr(t)})),h?(h=!1,e):(t.forEach((t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,s=r.top-o.top;if(i||s){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${s}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 eo="androidBackHandler",to={[eo]:!0},no=Wt('<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),ro={left:0,top:90,right:180,bottom:270},oo=e=>{const t=vn();return bt(bn("svg")`
79
- transform: rotate(${e=>ro[e.svgDirection]}deg);
78
+ `;function ro(e){const t=Ye((()=>Object.keys(e).filter((e=>e.startsWith("data-"))))),[n]=St(e,t);return n}const oo=e=>{const t=ro(e);return bt(no,kt({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[ze((()=>e.leftIcon)),ze((()=>e.children)),ze((()=>e.rightIcon))]}}))};var io={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&e.push(s)}}else if("object"===i){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){e.push(o.toString());continue}for(var a in o)t.call(o,a)&&o[a]&&e.push(a)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(io);const so=io.exports;function ao(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}const lo=e=>{let t,n=!0;const[r,o]=Ve(),[i,s]=Ve(),a=tt((()=>e.children)),{onBeforeEnter:l,onEnter:c,onAfterEnter:u,onBeforeExit:d,onExit:h,onAfterExit:f}=e,p=ze((()=>{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,a){if(!n||e.appear){let n=function(l){!t||l&&l.target!==t||(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),t.classList.remove(...h),t.classList.remove(...f),Ge((()=>{r()!==t&&o(t),i()===t&&s(void 0)})),u&&u(t),"inout"===e.mode&&w(t,a))};const d=p().enterClass.split(" "),h=p().enterActiveClass.split(" "),f=p().enterToClass.split(" ");l&&l(t),t.classList.add(...d),t.classList.add(...h),ao((()=>{t.classList.remove(...d),t.classList.add(...f),c&&c(t,(()=>n())),(!c||c.length<2)&&(t.addEventListener("transitionend",n),t.addEventListener("animationend",n))}))}a&&!e.mode?s(t):o(t)}function w(t,n){const i=p().exitClass.split(" "),s=p().exitActiveClass.split(" "),a=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(...s),n.classList.remove(...a),r()===n&&o(void 0),f&&f(n),"outin"===e.mode&&g(t,n))}d&&d(n),n.classList.add(...i),n.classList.add(...s),ao((()=>{n.classList.remove(...i),n.classList.add(...a)})),h&&h(n,(()=>l())),(!h||h.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))}return De((r=>{for(t=a();"function"==typeof t;)t=t();return Ye((()=>(t&&t!==r&&("outin"!==e.mode?g(t,r):n&&o(t)),r&&r!==t&&"inout"!==e.mode&&w(t,r),n=!1,t)))})),[r,i]};function co(e){const{top:t,bottom:n,left:r,right:o,width:i,height:s}=e.getBoundingClientRect(),a=e.parentNode.getBoundingClientRect();return{top:t-a.top,bottom:n,left:r-a.left,right:o,width:i,height:s}}const uo=e=>{const t=tt((()=>e.children)),n=ze((()=>{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:s,onExit:a,onAfterExit:l}=e,[c,u]=Ve();let d=[],h=!0;return De((()=>{const e=t(),c=[...e],f=new Set(e),p=new Set(d),g=n().enterClass.split(" "),w=n().enterActiveClass.split(" "),m=n().enterToClass.split(" "),v=n().exitClass.split(" "),y=n().exitActiveClass.split(" "),b=n().exitToClass.split(" ");for(let t=0;t<e.length;t++){const n=e[t];if(!h&&!p.has(n)){let e=function(t){!n||t&&t.target!==n||(n.removeEventListener("transitionend",e),n.removeEventListener("animationend",e),n.classList.remove(...w),n.classList.remove(...m),i&&i(n))};r&&r(n),n.classList.add(...g),n.classList.add(...w),ao((()=>{n.classList.remove(...g),n.classList.add(...m),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(!f.has(e)&&e.parentNode){let n=function(t){t&&t.target!==e||(e.removeEventListener("transitionend",n),e.removeEventListener("animationend",n),e.classList.remove(...y),e.classList.remove(...b),l&&l(e),d=d.filter((t=>t!==e)),u(d))};c.splice(t,0,e),s&&s(e),e.classList.add(...v),e.classList.add(...y),ao((()=>{e.classList.remove(...v),e.classList.add(...b)})),a&&a(e,(()=>n())),(!a||a.length<2)&&(e.addEventListener("transitionend",n),e.addEventListener("animationend",n))}}d=c,u(c)})),qe((e=>{const t=c();return t.forEach((t=>{let n;(n=e.get(t))?n.new&&(n.new=!1,n.newPos=co(t)):e.set(t,n={pos:co(t),new:!h}),n.new&&t.addEventListener("transitionend",(()=>{n.new=!1,t.parentNode&&(n.newPos=co(t))}),{once:!0}),n.newPos&&(n.pos=n.newPos),n.newPos=co(t)})),h?(h=!1,e):(t.forEach((t=>{const n=e.get(t),r=n.pos,o=n.newPos,i=r.left-o.left,s=r.top-o.top;if(i||s){n.moved=!0;const e=t.style;e.transform=`translate(${i}px,${s}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 ho="androidBackHandler",fo={[ho]:!0},po=Wt('<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),go={left:0,top:90,right:180,bottom:270},wo=e=>{const t=vn();return bt(bn("svg")`
79
+ transform: rotate(${e=>go[e.svgDirection]}deg);
80
80
  transition: transform 0.1s ease-in-out;
81
- `,{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=no.cloneNode(!0);return De((()=>jt(n,"fill",e.fill||t.colors.icon.secondary))),n}})},io=Wt('<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>'),so=e=>{const t=vn();return(()=>{const n=io.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},ao=bn.button`
81
+ `,{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=po.cloneNode(!0);return Fe((()=>jt(n,"fill",e.fill||t.colors.icon.secondary))),n}})},mo=Wt('<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>'),vo=e=>{const t=vn();return(()=>{const n=mo.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},yo=bn.button`
82
82
  padding: 0;
83
83
  display: flex;
84
84
  justify-content: center;
@@ -92,7 +92,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
92
92
 
93
93
  transition: transform 0.125s ease-in-out;
94
94
 
95
- ${Kr} {
95
+ ${Xr} {
96
96
  &:hover {
97
97
  transform: scale(1.04);
98
98
  }
@@ -102,12 +102,12 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
102
102
  transform: scale(0.96);
103
103
  }
104
104
 
105
- ${Hr} {
105
+ ${Jr} {
106
106
  &:active {
107
107
  transform: scale(0.92);
108
108
  }
109
109
  }
110
- `,lo=e=>{const t=qr(e),n=()=>e.icon||"close";return bt(ao,kt({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[bt(Lt,{get when(){return!!e.children},get children(){return e.children}}),bt(Lt,{get when(){return!e.children},get children(){return bt(Rt,{get children(){return[bt(At,{get when(){return"close"===n()},get children(){return bt(so,{get fill(){return e.fill}})}}),bt(At,{get when(){return"arrow"===n()},get children(){return bt(oo,{get fill(){return e.fill}})}}),bt(At,{get when(){return"question"===n()},get children(){return bt($i,{get fill(){return e.fill}})}}),bt(At,{get when(){return"string"!=typeof n()},get children(){return n()}})]}})}})]}}))},co={m:"24px",s:"16px",none:"0"},uo=bn.div`
110
+ `,bo=e=>{const t=ro(e),n=()=>e.icon||"close";return bt(yo,kt({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[bt(Rt,{get when(){return!!e.children},get children(){return e.children}}),bt(Rt,{get when(){return!e.children},get children(){return bt(Lt,{get children(){return[bt(Tt,{get when(){return"close"===n()},get children(){return bt(vo,{get fill(){return e.fill}})}}),bt(Tt,{get when(){return"arrow"===n()},get children(){return bt(wo,{get fill(){return e.fill}})}}),bt(Tt,{get when(){return"question"===n()},get children(){return bt(Di,{get fill(){return e.fill}})}}),bt(Tt,{get when(){return"string"!=typeof n()},get children(){return n()}})]}})}})]}}))},Co={m:"24px",s:"16px",none:"0"},xo=bn.div`
111
111
  display: flex;
112
112
  position: fixed;
113
113
  z-index: 1000;
@@ -119,20 +119,20 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
119
119
  padding: 20px 0;
120
120
  overflow-y: auto;
121
121
 
122
- ${Br("mobile")} {
122
+ ${Qr("mobile")} {
123
123
  padding-bottom: 0;
124
124
  }
125
- `,ho=gn`
125
+ `,_o=pn`
126
126
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 64px rgba(0, 0, 0, 0.16);
127
127
  width: fit-content;
128
128
  margin: auto;
129
129
 
130
- ${Br("mobile")} {
130
+ ${Qr("mobile")} {
131
131
  width: 100%;
132
132
  height: fit-content;
133
133
  margin: auto 0 0 0;
134
134
  }
135
- `,fo=bn.div`
135
+ `,ko=bn.div`
136
136
  position: relative;
137
137
  min-height: 100px;
138
138
  width: 416px;
@@ -141,33 +141,33 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
141
141
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
142
142
 
143
143
  background-color: ${e=>e.theme.colors.background.primary};
144
- border-radius: ${e=>co[e.theme.borderRadius]};
144
+ border-radius: ${e=>Co[e.theme.borderRadius]};
145
145
 
146
- ${Br("mobile")} {
146
+ ${Qr("mobile")} {
147
147
  width: 100%;
148
148
  }
149
- `,go=bn(lo)`
149
+ `,So=bn(bo)`
150
150
  position: absolute;
151
151
  right: 16px;
152
152
  top: 16px;
153
- `,po=bn.div`
153
+ `,Eo=bn.div`
154
154
  display: flex;
155
155
  justify-content: space-between;
156
156
  align-items: center;
157
157
  padding: 16px 16px 16px 18px;
158
- border-radius: 0 0 ${e=>co[e.theme.borderRadius]}
159
- ${e=>co[e.theme.borderRadius]};
160
- `,wo=bn(lo)`
158
+ border-radius: 0 0 ${e=>Co[e.theme.borderRadius]}
159
+ ${e=>Co[e.theme.borderRadius]};
160
+ `,Ro=bn(bo)`
161
161
  background-color: ${e=>En(e.theme.colors.icon.secondary,.12)};
162
- `;class mo{constructor(){__publicField(this,"currentTime",0)}}const vo=class{constructor(){__publicField(this,"currentTime",0),__publicField(this,"playbackRate",1),__publicField(this,"startTime",null),__publicField(this,"timeline",new mo),__publicField(this,"finished",Promise.resolve(this)),__publicField(this,"effect",null),__publicField(this,"id",""),__publicField(this,"pending",!1),__publicField(this,"playState","finished"),__publicField(this,"replaceState","active"),__publicField(this,"ready",Promise.resolve(this)),__publicField(this,"oncancel",null),__publicField(this,"onfinish",null),__publicField(this,"onremove",null)}static create(){return vo._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(t){}}("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."),vo._instance=new vo),vo._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let yo=vo;function bo(e,t,n){return"animate"in e?e.animate(t,n):yo.create()}__publicField(yo,"_instance",null);const Co=Wt("<div></div>"),xo=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),Qe((()=>document.body.removeEventListener("click",n)))},_o=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),Qe((()=>document.body.removeEventListener("keydown",n)))},ko=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Wn().os))return;window.history.pushState(to,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),Qe((()=>{window.removeEventListener("popstate",o),new Promise((e=>requestAnimationFrame(e))).then((()=>{var e;!0===(null==(e=window.history.state)?void 0:e[eo])&&window.history.back()}))}))},So=e=>{const t=vn(),n=qr(e);return qe((()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Ln(-document.documentElement.scrollTop),document.body.classList.add(_n)):(document.body.classList.remove(_n),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")})),bt(Qr,{onBeforeEnter:e=>{const t=jr("mobile")?200:100;bo(e,[{opacity:0},{opacity:1}],{duration:t}),jr("mobile")&&bo(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=jr("mobile")?200:100,r=bo(e,[{opacity:1},{opacity:0}],{duration:n});if(jr("mobile")){const o=bo(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 bt(Lt,{get when(){return e.opened},get children(){return bt(uo,kt({"data-tc-modal":"true"},n,{get children(){const n=Co.cloneNode(!0);return Kt(ko,n,(()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()}))),Kt(_o,n,(()=>()=>e.onClose())),Kt(xo,n,(()=>()=>e.onClose())),Vt(n,bt(fo,{get class(){return e.class},get children(){return[bt(go,{icon:"close",onClick:()=>e.onClose()}),ze((()=>e.children))]}}),null),Vt(n,bt(Lt,{get when(){return e.onClickQuestion},get children(){return bt(po,{get children(){return[bt(Mi,{}),bt(wo,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),De((()=>Bt(n,Gr(ho,gn`
163
- border-radius: ${co[t.borderRadius]};
162
+ `;class Lo{constructor(){__publicField(this,"currentTime",0)}}const To=class{constructor(){__publicField(this,"currentTime",0),__publicField(this,"playbackRate",1),__publicField(this,"startTime",null),__publicField(this,"timeline",new Lo),__publicField(this,"finished",Promise.resolve(this)),__publicField(this,"effect",null),__publicField(this,"id",""),__publicField(this,"pending",!1),__publicField(this,"playState","finished"),__publicField(this,"replaceState","active"),__publicField(this,"ready",Promise.resolve(this)),__publicField(this,"oncancel",null),__publicField(this,"onfinish",null),__publicField(this,"onremove",null)}static create(){return To._instance||(!function(...e){try{console.warn("[TON_CONNECT_UI]",...e)}catch(ou){}}("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."),To._instance=new To),To._instance}cancel(){}finish(){}pause(){}play(){}reverse(){}addEventListener(e,t,n){}dispatchEvent(e){return!1}removeEventListener(e,t,n){}updatePlaybackRate(e){}commitStyles(){}persist(){}};let Ao=To;function Mo(e,t,n){return"animate"in e?e.animate(t,n):Ao.create()}__publicField(Ao,"_instance",null);const Oo=Wt("<div></div>"),$o=function(e,t){const n=n=>{var r;return!e.contains(n.target)&&(null==(r=t())?void 0:r())};document.body.addEventListener("click",n),Qe((()=>document.body.removeEventListener("click",n)))},Po=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),Qe((()=>document.body.removeEventListener("keydown",n)))},Io=function(e,t){const{isEnabled:n,onClose:r}=t();if(!n)return;if(!("android"===Gn().os))return;window.history.pushState(fo,"");const o=e=>{e.preventDefault(),r()};window.addEventListener("popstate",o,{once:!0}),Qe((()=>{window.removeEventListener("popstate",o),Fn((()=>{var e;!0===(null==(e=window.history.state)?void 0:e[ho])&&window.history.back()}))}))},No=e=>{const t=vn(),n=ro(e);return qe((()=>{e.opened?document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=Rn(-document.documentElement.scrollTop),document.body.classList.add(_n)):(document.body.classList.remove(_n),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto")})),bt(lo,{onBeforeEnter:e=>{const t=Yr("mobile")?200:100;Mo(e,[{opacity:0},{opacity:1}],{duration:t}),Yr("mobile")&&Mo(e.firstElementChild,[{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:t})},onExit:(e,t)=>{const n=Yr("mobile")?200:100,r=Mo(e,[{opacity:1},{opacity:0}],{duration:n});if(Yr("mobile")){const o=Mo(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 bt(Rt,{get when(){return e.opened},get children(){return bt(xo,kt({"data-tc-modal":"true"},n,{get children(){const n=Oo.cloneNode(!0);return Kt(Io,n,(()=>({isEnabled:e.enableAndroidBackHandler,onClose:()=>e.onClose()}))),Kt(Po,n,(()=>()=>e.onClose())),Kt($o,n,(()=>()=>e.onClose())),Vt(n,bt(ko,{get class(){return e.class},get children(){return[bt(So,{icon:"close",onClick:()=>e.onClose()}),ze((()=>e.children))]}}),null),Vt(n,bt(Rt,{get when(){return e.onClickQuestion},get children(){return bt(Eo,{get children(){return[bt(Ki,{}),bt(Ro,{get onClick(){return e.onClickQuestion},icon:"question"})]}})}}),null),Fe((()=>Bt(n,so(_o,pn`
163
+ border-radius: ${Co[t.borderRadius]};
164
164
  background-color: ${t.colors.background.tint};
165
165
 
166
- ${Br("mobile")} {
167
- border-radius: ${co[t.borderRadius]}
168
- ${co[t.borderRadius]} 0 0;
166
+ ${Qr("mobile")} {
167
+ border-radius: ${Co[t.borderRadius]}
168
+ ${Co[t.borderRadius]} 0 0;
169
169
  }
170
- `)))),n}}))}})}})},Eo={m:"22px",s:"12px",none:"0"},Lo={m:"18px",s:"8px",none:"0"},Ro=bn.div`
170
+ `)))),n}}))}})}})},Uo={m:"22px",s:"12px",none:"0"},Wo={m:"18px",s:"8px",none:"0"},jo=bn.div`
171
171
  display: grid;
172
172
  grid-template: 1fr / 1fr 1fr;
173
173
  width: fit-content;
@@ -176,10 +176,10 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
176
176
 
177
177
  position: relative;
178
178
  padding: 4px;
179
- border-radius: ${e=>Eo[e.theme.borderRadius]};
179
+ border-radius: ${e=>Uo[e.theme.borderRadius]};
180
180
 
181
181
  background-color: ${e=>e.theme.colors.background.secondary};
182
- `,Ao=bn.div`
182
+ `,Bo=bn.div`
183
183
  position: absolute;
184
184
  top: 4px;
185
185
  left: 4px;
@@ -187,15 +187,15 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
187
187
  height: calc(100% - 8px);
188
188
  width: calc(50% - 4px);
189
189
 
190
- border-radius: ${e=>Lo[e.theme.borderRadius]};
190
+ border-radius: ${e=>Wo[e.theme.borderRadius]};
191
191
  background-color: ${e=>e.theme.colors.background.segment};
192
192
 
193
193
  transform: ${e=>e.right?"translateX(100%)":"translateX(0)"};
194
194
 
195
195
  transition: transform 0.13s ease-in-out;
196
- `,To=bn.input`
196
+ `,Ho=bn.input`
197
197
  display: none;
198
- `,Mo=bn.label`
198
+ `,Ko=bn.label`
199
199
  padding: 9px 12px;
200
200
  z-index: 1;
201
201
 
@@ -210,7 +210,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
210
210
  > * {
211
211
  ${e=>e.isActive?"":`color: ${e.theme.colors.text.secondary};`}
212
212
  }
213
- `,Oo={m:"16px",s:"12px",none:"0"},$o={m:"12px",s:"8px",none:"0"},Po=bn.div`
213
+ `,Vo={m:"16px",s:"12px",none:"0"},Do={m:"12px",s:"8px",none:"0"},Fo=bn.div`
214
214
  width: 52px;
215
215
  height: 52px;
216
216
  background: transparent;
@@ -222,42 +222,42 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
222
222
  align-items: center;
223
223
  justify-content: center;
224
224
  transition: transform 0.125s ease-in-out;
225
- `,Io=bn.button`
225
+ `,qo=bn.button`
226
226
  display: flex;
227
227
  align-items: center;
228
228
  position: relative;
229
229
  background-color: ${e=>e.theme.colors.background.qr};
230
- border-radius: ${e=>Oo[e.theme.borderRadius]};
231
- padding: ${Ln(24)} 0;
232
- height: ${Ln(304)};
230
+ border-radius: ${e=>Vo[e.theme.borderRadius]};
231
+ padding: ${Rn(24)} 0;
232
+ height: ${Rn(304)};
233
233
  width: 100%;
234
234
 
235
235
  overflow: hidden;
236
236
  cursor: pointer;
237
237
  border: none;
238
238
 
239
- ${Kr} {
239
+ ${Xr} {
240
240
  &:hover {
241
- ${Po.class} {
241
+ ${Fo.class} {
242
242
  transform: scale(1.04);
243
243
  }
244
244
  }
245
245
  }
246
246
 
247
247
  &:active {
248
- ${Po.class} {
248
+ ${Fo.class} {
249
249
  transform: scale(0.96);
250
250
  }
251
251
  }
252
252
 
253
- ${Hr} {
253
+ ${Jr} {
254
254
  &:active {
255
- ${Po.class} {
255
+ ${Fo.class} {
256
256
  transform: scale(0.92);
257
257
  }
258
258
  }
259
259
  }
260
- `,No=bn.div`
260
+ `,zo=bn.div`
261
261
  position: relative;
262
262
 
263
263
  width: fit-content;
@@ -276,21 +276,21 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
276
276
  path {
277
277
  fill: ${e=>e.theme.colors.constant.black};
278
278
  }
279
- `,Uo=bn.div`
279
+ `,Zo=bn.div`
280
280
  position: absolute;
281
- width: ${Ln(60)};
282
- height: ${Ln(60)};
281
+ width: ${Rn(60)};
282
+ height: ${Rn(60)};
283
283
  background: ${e=>e.theme.colors.background.qr};
284
284
 
285
285
  display: flex;
286
286
  align-items: center;
287
287
  justify-content: center;
288
- `,Wo=bn(Ur)`
289
- width: ${e=>Ln(e.size)};
290
- height: ${e=>Ln(e.size)};
291
- border-radius: ${e=>$o[e.theme.borderRadius]};
288
+ `,Go=bn(Zr)`
289
+ width: ${e=>Rn(e.size)};
290
+ height: ${e=>Rn(e.size)};
291
+ border-radius: ${e=>Do[e.theme.borderRadius]};
292
292
  background-color: ${e=>e.theme.colors.background.qr};
293
- `,jo=bn.div`
293
+ `,Yo=bn.div`
294
294
  position: absolute;
295
295
  bottom: 14px;
296
296
  left: 50%;
@@ -305,14 +305,14 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
305
305
 
306
306
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08));
307
307
  background-color: ${e=>e.theme.colors.background.segment};
308
- `;var Bo={exports:{}};!function(e,t){var n=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,s=null,a=[],l={},c=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}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),f(),h(),p(e,t),n>=7&&g(e),null==s&&(s=m(n,r,a)),w(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=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)},h=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},f=function(){for(var e=y.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],s=e[r];if(null==o[i][s])for(var a=-2;a<=2;a+=1)for(var l=-2;l<=2;l+=1)o[i+a][s+l]=-2==a||2==a||-2==l||2==l||0==a&&0==l}},g=function(e){for(var t=y.getBCHTypeNumber(n),r=0;r<18;r+=1){var s=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=s}for(r=0;r<18;r+=1){s=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=s}},p=function(e,t){for(var n=r<<3|t,s=y.getBCHTypeInfo(n),a=0;a<15;a+=1){var l=!e&&1==(s>>a&1);a<6?o[a][8]=l:a<8?o[a+1][8]=l:o[i-15+a][8]=l}for(a=0;a<15;a+=1){l=!e&&1==(s>>a&1);a<8?o[8][i-a-1]=l:a<9?o[8][15-a-1+1]=l:o[8][15-a-1]=l}o[i-8][8]=!e},w=function(e,t){for(var n=-1,r=i-1,s=7,a=0,l=y.getMaskFunction(t),c=i-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;a<e.length&&(d=1==(e[a]>>>s&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(s-=1)&&(a+=1,s=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},m=function(e,t,n){for(var r=x.getRSBlocks(e,t),o=_(),i=0;i<n.length;i+=1){var s=n[i];o.put(s.getMode(),4),o.put(s.getLength(),y.getLengthInBits(s.getMode(),e)),s.write(o)}var a=0;for(i=0;i<r.length;i+=1)a+=r[i].dataCount;if(o.getLengthInBits()>8*a)throw"code length overflow. ("+o.getLengthInBits()+">"+8*a+")";for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*a||(o.put(236,8),o.getLengthInBits()>=8*a));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),s=new Array(t.length),a=0;a<t.length;a+=1){var l=t[a].dataCount,c=t[a].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[a]=new Array(l);for(var u=0;u<i[a].length;u+=1)i[a][u]=255&e.getBuffer()[u+n];n+=l;var d=y.getErrorCorrectPolynomial(c),h=C(i[a],d.getLength()-1).mod(d);for(s[a]=new Array(d.getLength()-1),u=0;u<s[a].length;u+=1){var f=u+h.getLength()-s[a].length;s[a][u]=f>=0?h.getAt(f):0}}var g=0;for(u=0;u<t.length;u+=1)g+=t[u].totalCount;var p=new Array(g),w=0;for(u=0;u<r;u+=1)for(a=0;a<t.length;a+=1)u<i[a].length&&(p[w]=i[a][u],w+=1);for(u=0;u<o;u+=1)for(a=0;a<t.length;a+=1)u<s[a].length&&(p[w]=s[a][u],w+=1);return p}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=k(e);break;case"Alphanumeric":n=S(e);break;case"Byte":n=E(e);break;case"Kanji":n=L(e);break;default:throw"mode:"+t}a.push(n),s=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=x.getRSBlocks(e,r),o=_(),i=0;i<a.length;i++){var s=a[i];o.put(s.getMode(),4),o.put(s.getLength(),y.getLengthInBits(s.getMode(),e)),s.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=y.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.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=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.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+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.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=void 0===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,s,a,c,u=l.getModuleCount()*e+2*t,d="";for(c="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="'+v([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+v(r.id)+'">'+v(r.text)+"</title>":"",d+=n.text?'<description id="'+v(n.id)+'">'+v(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',s=0;s<l.getModuleCount();s+=1)for(a=s*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(s,i)&&(d+="M"+(i*e+t)+","+a+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return T(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),s=Math.floor((n-r)/e);return l.isDark(s,i)?0:1}return 1}))},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=v(n),o+='"'),o+="/>"};var v=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 l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,s=1*l.getModuleCount()+2*e,a=e,c=s-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(t=0;t<s;t+=2){for(r=Math.floor((t-a)/1),o=Math.floor((t+1-a)/1),n=0;n<s;n+=1)i="█",a<=n&&n<c&&a<=t&&t<c&&l.isDark(r,Math.floor((n-a)/1))&&(i=" "),a<=n&&n<c&&a<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-a)/1))?i+=" ":i+="█",h+=e<1&&t+1>=c?d[i]:u[i];h+="\n"}return s%2&&e>0?h.substring(0,h.length-s-1)+Array(s+1).join("▀"):h.substring(0,h.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,s=l.getModuleCount()*e+2*t,a=t,c=s-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),h="",f="";for(n=0;n<s;n+=1){for(o=Math.floor((n-a)/e),f="",r=0;r<s;r+=1)i=1,a<=r&&r<c&&a<=n&&n<c&&l.isDark(o,Math.floor((r-a)/e))&&(i=0),f+=i?u:d;for(o=0;o<e;o+=1)h+=f+"\n"}return h.substring(0,h.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};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=A(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var s=n.read();if(-1==s)break;var a=r(),l=r()<<8|r();i[String.fromCharCode(s<<8|a)]=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 s=n[e.charAt(o)];"number"==typeof s?(255&s)==s?t.push(s):(t.push(s>>>8),t.push(255&s)):t.push(r)}}return t}};var t,n,r,o,i,s=1,a=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,h=1,f=2,g=3,p=4,w=5,m=6,v=7,y=(t=[[],[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]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case h:return function(e,t){return e%2==0};case f:return function(e,t){return t%3==0};case g:return function(e,t){return(e+t)%3==0};case p:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case w:return function(e,t){return e*t%2+e*t%3==0};case m:return function(e,t){return(e*t%2+e*t%3)%2==0};case v:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=C([1],0),n=0;n<e;n+=1)t=t.multiply(C([1,b.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case s:return 10;case a:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case s:return 12;case a:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case s:return 14;case a:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.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,s=e.isDark(r,o),a=-1;a<=1;a+=1)if(!(r+a<0||t<=r+a))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==a&&0==l||s==e.isDark(r+a,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+=Math.abs(100*u/t/t-50)/5*10},o),b=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 C(e,t){if(void 0===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]^=b.gexp(b.glog(r.getAt(n))+b.glog(e.getAt(o)));return C(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=b.glog(r.getAt(0))-b.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]^=b.gexp(b.glog(e.getAt(o))+t);return C(n,0).mod(e)}};return r}var x=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 u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,s=[],a=0;a<i;a+=1)for(var l=o[3*a+0],c=o[3*a+1],d=o[3*a+2],h=0;h<l;h+=1)s.push(t(c,d));return s},n}(),_=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},k=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},S=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=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 r},E=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},L=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(e,t){var n=r("友");if(2!=n.length||38726!=(n[0]<<8|n[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,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 i},R=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},A=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|s(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},s=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},T=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=s(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(";")}},s=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=a(),s=0;s<t;s+=1)i.add(String.fromCharCode(s));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=R(),h=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});h.write(t,r);var f=0,g=String.fromCharCode(o[f]);for(f+=1;f<o.length;){var p=String.fromCharCode(o[f]);f+=1,i.contains(g+p)?g+=p:(h.write(i.indexOf(g),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(g+p)),g=p)}return h.write(i.indexOf(g),r),h.write(n,r),h.flush(),d.toByteArray()},a=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 void 0!==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 s=R();r.write(s);for(var a=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(s(63&e))},s=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,s=0;s<o;s+=1)r+="="},o.toString=function(){return r},o}(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return e}();n.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=n}(Bo);const Ho=Bo.exports;function Ko(e){return(null==navigator?void 0:navigator.clipboard)?navigator.clipboard.writeText(e):(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),Promise.resolve())}const Vo=Wt("<div></div>"),Fo=e=>{let t,n,r;const[o,i]=Ve(!1),[s,a]=Ve(48);qe((()=>{const o=Ho(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,s=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*s)),t=Ln(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Ln(e),r.style.width=Ln(e),a(Math.round(48/s))}n.style.transform=`scale(${s})`}));let l=null;return bt(Io,{get class(){return e.class},onClick:()=>{i(!0),Ko(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[bt(No,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=Vo.cloneNode(!0);return"function"==typeof t?Kt(t,e):t=e,e})(),bt(Lt,{get when(){return e.imageUrl},get children(){return bt(Uo,{ref(e){"function"==typeof r?r(e):r=e},get children(){return bt(Wo,{get src(){return e.imageUrl},alt:"",get size(){return s()}})}})}})]}}),bt(Qr,{onBeforeEnter:e=>{bo(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{bo(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return bt(Lt,{get when(){return o()&&!e.disableCopy},get children(){return bt(jo,{get children(){return[bt(Ci,{size:"xs"}),bt(Yo,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),bt(Lt,{get when(){return!e.disableCopy},get children(){return bt(Po,{get children(){return bt(rs,{})}})}})]}})};var Do=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},qo=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Ve(t),[o,i]=mr(e);return[(e,t,r)=>{const i=Do(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,((e,n)=>Do(t,n,""))))(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>Do(o,e)}]},zo=Xe({}),Zo=()=>et(zo);const Go=bn.div`
308
+ `;var Qo={exports:{}};!function(e,t){var n=function(){var e=function(e,t){var n=e,r=u[t],o=null,i=0,s=null,a=[],l={},c=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}(i=4*n+17),d(0,0),d(i-7,0),d(0,i-7),f(),h(),g(e,t),n>=7&&p(e),null==s&&(s=m(n,r,a)),w(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||i<=e+n))for(var r=-1;r<=7;r+=1)t+r<=-1||i<=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)},h=function(){for(var e=8;e<i-8;e+=1)null==o[e][6]&&(o[e][6]=e%2==0);for(var t=8;t<i-8;t+=1)null==o[6][t]&&(o[6][t]=t%2==0)},f=function(){for(var e=y.getPatternPosition(n),t=0;t<e.length;t+=1)for(var r=0;r<e.length;r+=1){var i=e[t],s=e[r];if(null==o[i][s])for(var a=-2;a<=2;a+=1)for(var l=-2;l<=2;l+=1)o[i+a][s+l]=-2==a||2==a||-2==l||2==l||0==a&&0==l}},p=function(e){for(var t=y.getBCHTypeNumber(n),r=0;r<18;r+=1){var s=!e&&1==(t>>r&1);o[Math.floor(r/3)][r%3+i-8-3]=s}for(r=0;r<18;r+=1){s=!e&&1==(t>>r&1);o[r%3+i-8-3][Math.floor(r/3)]=s}},g=function(e,t){for(var n=r<<3|t,s=y.getBCHTypeInfo(n),a=0;a<15;a+=1){var l=!e&&1==(s>>a&1);a<6?o[a][8]=l:a<8?o[a+1][8]=l:o[i-15+a][8]=l}for(a=0;a<15;a+=1){l=!e&&1==(s>>a&1);a<8?o[8][i-a-1]=l:a<9?o[8][15-a-1+1]=l:o[8][15-a-1]=l}o[i-8][8]=!e},w=function(e,t){for(var n=-1,r=i-1,s=7,a=0,l=y.getMaskFunction(t),c=i-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;a<e.length&&(d=1==(e[a]>>>s&1)),l(r,c-u)&&(d=!d),o[r][c-u]=d,-1==(s-=1)&&(a+=1,s=7)}if((r+=n)<0||i<=r){r-=n,n=-n;break}}},m=function(e,t,n){for(var r=x.getRSBlocks(e,t),o=_(),i=0;i<n.length;i+=1){var s=n[i];o.put(s.getMode(),4),o.put(s.getLength(),y.getLengthInBits(s.getMode(),e)),s.write(o)}var a=0;for(i=0;i<r.length;i+=1)a+=r[i].dataCount;if(o.getLengthInBits()>8*a)throw"code length overflow. ("+o.getLengthInBits()+">"+8*a+")";for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*a||(o.put(236,8),o.getLengthInBits()>=8*a));)o.put(17,8);return function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),s=new Array(t.length),a=0;a<t.length;a+=1){var l=t[a].dataCount,c=t[a].totalCount-l;r=Math.max(r,l),o=Math.max(o,c),i[a]=new Array(l);for(var u=0;u<i[a].length;u+=1)i[a][u]=255&e.getBuffer()[u+n];n+=l;var d=y.getErrorCorrectPolynomial(c),h=C(i[a],d.getLength()-1).mod(d);for(s[a]=new Array(d.getLength()-1),u=0;u<s[a].length;u+=1){var f=u+h.getLength()-s[a].length;s[a][u]=f>=0?h.getAt(f):0}}var p=0;for(u=0;u<t.length;u+=1)p+=t[u].totalCount;var g=new Array(p),w=0;for(u=0;u<r;u+=1)for(a=0;a<t.length;a+=1)u<i[a].length&&(g[w]=i[a][u],w+=1);for(u=0;u<o;u+=1)for(a=0;a<t.length;a+=1)u<s[a].length&&(g[w]=s[a][u],w+=1);return g}(o,r)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=k(e);break;case"Alphanumeric":n=S(e);break;case"Byte":n=E(e);break;case"Kanji":n=R(e);break;default:throw"mode:"+t}a.push(n),s=null},l.isDark=function(e,t){if(e<0||i<=e||t<0||i<=t)throw e+","+t;return o[e][t]},l.getModuleCount=function(){return i},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=x.getRSBlocks(e,r),o=_(),i=0;i<a.length;i++){var s=a[i];o.put(s.getMode(),4),o.put(s.getLength(),y.getLengthInBits(s.getMode(),e)),s.write(o)}var u=0;for(i=0;i<t.length;i++)u+=t[i].dataCount;if(o.getLengthInBits()<=8*u)break}n=e}c(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){c(!0,n);var r=y.getLostPoint(l);(0==n||e>r)&&(e=r,t=n)}return t}())},l.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=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var r=0;r<l.getModuleCount();r+=1){n+="<tr>";for(var o=0;o<l.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+=l.isDark(r,o)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.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=void 0===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,s,a,c,u=l.getModuleCount()*e+2*t,d="";for(c="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="'+v([r.id,n.id].join(" ").trim())+'"':"",d+=">",d+=r.text?'<title id="'+v(r.id)+'">'+v(r.text)+"</title>":"",d+=n.text?'<description id="'+v(n.id)+'">'+v(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',s=0;s<l.getModuleCount();s+=1)for(a=s*e+t,i=0;i<l.getModuleCount();i+=1)l.isDark(s,i)&&(d+="M"+(i*e+t)+","+a+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=l.getModuleCount()*e+2*t,r=t,o=n-t;return A(n,n,(function(t,n){if(r<=t&&t<o&&r<=n&&n<o){var i=Math.floor((t-r)/e),s=Math.floor((n-r)/e);return l.isDark(s,i)?0:1}return 1}))},l.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var r=l.getModuleCount()*e+2*t,o="";return o+="<img",o+=' src="',o+=l.createDataURL(e,t),o+='"',o+=' width="',o+=r,o+='"',o+=' height="',o+=r,o+='"',n&&(o+=' alt="',o+=v(n),o+='"'),o+="/>"};var v=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 l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,r,o,i,s=1*l.getModuleCount()+2*e,a=e,c=s-e,u={"██":"█","█ ":"▀"," █":"▄"," ":" "},d={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(t=0;t<s;t+=2){for(r=Math.floor((t-a)/1),o=Math.floor((t+1-a)/1),n=0;n<s;n+=1)i="█",a<=n&&n<c&&a<=t&&t<c&&l.isDark(r,Math.floor((n-a)/1))&&(i=" "),a<=n&&n<c&&a<=t+1&&t+1<c&&l.isDark(o,Math.floor((n-a)/1))?i+=" ":i+="█",h+=e<1&&t+1>=c?d[i]:u[i];h+="\n"}return s%2&&e>0?h.substring(0,h.length-s-1)+Array(s+1).join("▀"):h.substring(0,h.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,r,o,i,s=l.getModuleCount()*e+2*t,a=t,c=s-t,u=Array(e+1).join("██"),d=Array(e+1).join(" "),h="",f="";for(n=0;n<s;n+=1){for(o=Math.floor((n-a)/e),f="",r=0;r<s;r+=1)i=1,a<=r&&r<c&&a<=n&&n<c&&l.isDark(o,Math.floor((r-a)/e))&&(i=0),f+=i?u:d;for(o=0;o<e;o+=1)h+=f+"\n"}return h.substring(0,h.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),r=0;r<n;r++)for(var o=0;o<n;o++)e.fillStyle=l.isDark(r,o)?"black":"white",e.fillRect(r*t,o*t,t,t)},l};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=T(e),r=function(){var e=n.read();if(-1==e)throw"eof";return e},o=0,i={};;){var s=n.read();if(-1==s)break;var a=r(),l=r()<<8|r();i[String.fromCharCode(s<<8|a)]=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 s=n[e.charAt(o)];"number"==typeof s?(255&s)==s?t.push(s):(t.push(s>>>8),t.push(255&s)):t.push(r)}}return t}};var t,n,r,o,i,s=1,a=2,l=4,c=8,u={L:1,M:0,Q:3,H:2},d=0,h=1,f=2,p=3,g=4,w=5,m=6,v=7,y=(t=[[],[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]],n=1335,r=7973,i=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(o={}).getBCHTypeInfo=function(e){for(var t=e<<10;i(t)-i(n)>=0;)t^=n<<i(t)-i(n);return 21522^(e<<10|t)},o.getBCHTypeNumber=function(e){for(var t=e<<12;i(t)-i(r)>=0;)t^=r<<i(t)-i(r);return e<<12|t},o.getPatternPosition=function(e){return t[e-1]},o.getMaskFunction=function(e){switch(e){case d:return function(e,t){return(e+t)%2==0};case h:return function(e,t){return e%2==0};case f:return function(e,t){return t%3==0};case p:return function(e,t){return(e+t)%3==0};case g:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case w:return function(e,t){return e*t%2+e*t%3==0};case m:return function(e,t){return(e*t%2+e*t%3)%2==0};case v:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},o.getErrorCorrectPolynomial=function(e){for(var t=C([1],0),n=0;n<e;n+=1)t=t.multiply(C([1,b.gexp(n)],0));return t},o.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case s:return 10;case a:return 9;case l:case c:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case s:return 12;case a:return 11;case l:return 16;case c:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case s:return 14;case a:return 13;case l:return 16;case c:return 12;default:throw"mode:"+e}}},o.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,s=e.isDark(r,o),a=-1;a<=1;a+=1)if(!(r+a<0||t<=r+a))for(var l=-1;l<=1;l+=1)o+l<0||t<=o+l||0==a&&0==l||s==e.isDark(r+a,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+=Math.abs(100*u/t/t-50)/5*10},o),b=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 C(e,t){if(void 0===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]^=b.gexp(b.glog(r.getAt(n))+b.glog(e.getAt(o)));return C(t,0)},mod:function(e){if(r.getLength()-e.getLength()<0)return r;for(var t=b.glog(r.getAt(0))-b.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]^=b.gexp(b.glog(e.getAt(o))+t);return C(n,0).mod(e)}};return r}var x=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 u.L:return e[4*(t-1)+0];case u.M:return e[4*(t-1)+1];case u.Q:return e[4*(t-1)+2];case u.H:return e[4*(t-1)+3];default:return}}(n,r);if(void 0===o)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+r;for(var i=o.length/3,s=[],a=0;a<i;a+=1)for(var l=o[3*a+0],c=o[3*a+1],d=o[3*a+2],h=0;h<l;h+=1)s.push(t(c,d));return s},n}(),_=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},k=function(e){var t=s,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+2<t.length;)e.put(o(t.substring(r,r+3)),10),r+=3;r<t.length&&(t.length-r==1?e.put(o(t.substring(r,r+1)),4):t.length-r==2&&e.put(o(t.substring(r,r+2)),7))}},o=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},S=function(e){var t=a,n=e,r={getMode:function(){return t},getLength:function(e){return n.length},write:function(e){for(var t=n,r=0;r+1<t.length;)e.put(45*o(t.charAt(r))+o(t.charAt(r+1)),11),r+=2;r<t.length&&e.put(o(t.charAt(r)),6)}},o=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 r},E=function(t){var n=l,r=e.stringToBytes(t),o={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return o},R=function(t){var n=c,r=e.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(e,t){var n=r("友");if(2!=n.length||38726!=(n[0]<<8|n[1]))throw"sjis not supported."}();var o=r(t),i={getMode:function(){return n},getLength:function(e){return~~(o.length/2)},write:function(e){for(var t=o,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 i},L=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},T=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|s(e.charCodeAt(0)),o+=6)}var i=r>>>o-8&255;return o-=8,i}},s=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},A=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=s(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(";")}},s=function(e){for(var t=1<<e,n=1+(1<<e),r=e+1,i=a(),s=0;s<t;s+=1)i.add(String.fromCharCode(s));i.add(String.fromCharCode(t)),i.add(String.fromCharCode(n));var l,c,u,d=L(),h=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});h.write(t,r);var f=0,p=String.fromCharCode(o[f]);for(f+=1;f<o.length;){var g=String.fromCharCode(o[f]);f+=1,i.contains(p+g)?p+=g:(h.write(i.indexOf(p),r),i.size()<4095&&(i.size()==1<<r&&(r+=1),i.add(p+g)),p=g)}return h.write(i.indexOf(p),r),h.write(n,r),h.flush(),d.toByteArray()},a=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 void 0!==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 s=L();r.write(s);for(var a=function(){var e=0,t=0,n=0,r="",o={},i=function(e){r+=String.fromCharCode(s(63&e))},s=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,s=0;s<o;s+=1)r+="="},o.toString=function(){return r},o}(),l=s.toByteArray(),c=0;c<l.length;c+=1)a.writeByte(l[c]);return a.flush(),"data:image/gif;base64,"+a};return e}();n.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=n}(Qo);const Jo=Qo.exports;function Xo(e){return __async(this,null,(function*(){try{if(!(null==navigator?void 0:navigator.clipboard))throw new On("Clipboard API not available");return yield navigator.clipboard.writeText(e)}catch(ou){}!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 ei=Wt("<div></div>"),ti=e=>{let t,n,r;const[o,i]=Ve(!1),[s,a]=Ve(48);qe((()=>{const o=Jo(0,"L");o.addData(e.sourceUrl),o.make(),t.innerHTML=o.createSvgTag(4,0);const i=t.firstElementChild.clientWidth,s=Math.round(256/i*1e5)/1e5;if(r){const e=4*Math.ceil(60/(4*s)),t=Rn(4*Math.ceil((i-e)/8));r.style.top=t,r.style.left=t,r.style.height=Rn(e),r.style.width=Rn(e),a(Math.round(48/s))}n.style.transform=`scale(${s})`}));let l=null;return bt(qo,{get class(){return e.class},onClick:()=>{i(!0),Xo(e.sourceUrl),null!=l&&clearTimeout(l),l=setTimeout((()=>i(!1)),1500)},get children(){return[bt(zo,{ref(e){"function"==typeof n?n(e):n=e},get children(){return[(()=>{const e=ei.cloneNode(!0);return"function"==typeof t?Kt(t,e):t=e,e})(),bt(Rt,{get when(){return e.imageUrl},get children(){return bt(Zo,{ref(e){"function"==typeof r?r(e):r=e},get children(){return bt(Go,{get src(){return e.imageUrl},alt:"",get size(){return s()}})}})}})]}}),bt(lo,{onBeforeEnter:e=>{Mo(e,[{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:150,easing:"ease-out"})},onExit:(e,t)=>{Mo(e,[{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:150,easing:"ease-out"}).finished.then((()=>{t()}))},get children(){return bt(Rt,{get when(){return o()&&!e.disableCopy},get children(){return bt(Yo,{get children(){return[bt(Oi,{size:"xs"}),bt(ai,{translationKey:"common.linkCopied",children:"Link Copied"})]}})}})}}),bt(Rt,{get when(){return!e.disableCopy},get children(){return bt(Fo,{get children(){return bt(ps,{})}})}})]}})};var ni=(e,t,n)=>{const r=t.trim().split(".").reduce(((e,t)=>e?e[t]:void 0),e);return void 0!==r?r:n},ri=(e={},t=(navigator.language in e?navigator.language:Object.keys(e)[0]))=>{const[n,r]=Ve(t),[o,i]=Lr(e);return[(e,t,r)=>{const i=ni(o[n()],e,r||"");return"function"==typeof i?i(t):"string"==typeof i?((e,t,n=/{{(.*?)}}/g)=>e.replace(n,((e,n)=>ni(t,n,""))))(i,t||{}):i},{add(e,t){i(e,(e=>Object.assign(e||{},t)))},locale:e=>e?r(e):n(),dict:e=>ni(o,e)}]},oi=Xe({}),ii=()=>et(oi);const si=bn.div`
309
309
  font-style: normal;
310
310
  font-weight: ${e=>e.fontWeight};
311
311
  font-size: ${e=>e.fontSize};
312
312
  line-height: ${e=>e.lineHeight};
313
313
 
314
314
  color: ${e=>e.color};
315
- `,Yo=e=>{const t=vn(),[n]=Zo();let r;const o=kt({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return qe((()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")})),bt(Go,{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 ze((()=>!!o.translationKey))()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},Qo=bn.div`
315
+ `,ai=e=>{const t=vn(),[n]=ii();let r;const o=kt({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return qe((()=>{r&&"unset"!==o.cursor&&"pointer"!==getComputedStyle(r).cursor&&(r.style.cursor="default")})),bt(si,{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 ze((()=>!!o.translationKey))()?n(o.translationKey,o.translationValues,null==(e=o.children)?void 0:e.toString()):o.children}})},li=bn.div`
316
316
  position: relative;
317
317
 
318
318
  &::after {
@@ -327,11 +327,11 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
327
327
 
328
328
  border-radius: inherit;
329
329
  }
330
- `,Jo=bn(Ur)`
330
+ `,ci=bn(Zr)`
331
331
  width: 100%;
332
332
  height: 100%;
333
333
  border-radius: inherit;
334
- `,Xo=e=>bt(Qo,{get class(){return e.class},get children(){return bt(Jo,{get src(){return e.src}})}}),ei={m:"16px",s:"12px",none:"0"},ti={m:"6px",s:"6px",none:"0"},ni=bn.button`
334
+ `,ui=e=>bt(li,{get class(){return e.class},get children(){return bt(ci,{get src(){return e.src}})}}),di={m:"16px",s:"12px",none:"0"},hi={m:"6px",s:"6px",none:"0"},fi=bn.button`
335
335
  position: relative;
336
336
  cursor: pointer;
337
337
  border: none;
@@ -344,7 +344,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
344
344
 
345
345
  transition: transform 0.125s ease-in-out;
346
346
 
347
- ${Kr} {
347
+ ${Xr} {
348
348
  &:hover {
349
349
  transform: scale(1.04);
350
350
  }
@@ -354,41 +354,41 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
354
354
  transform: scale(0.96);
355
355
  }
356
356
 
357
- ${Br("mobile")} {
357
+ ${Qr("mobile")} {
358
358
  padding: 8px 4px;
359
359
  width: 82px;
360
360
  }
361
361
 
362
- ${Hr} {
362
+ ${Jr} {
363
363
  &:active {
364
364
  transform: scale(0.92);
365
365
  }
366
366
  }
367
- `,ri=bn(Xo)`
367
+ `,pi=bn(ui)`
368
368
  width: 60px;
369
369
  height: 60px;
370
- border-radius: ${e=>ei[e.theme.borderRadius]};
370
+ border-radius: ${e=>di[e.theme.borderRadius]};
371
371
 
372
372
  margin-bottom: 8px;
373
- `,oi=bn(Ur)`
373
+ `,gi=bn(Zr)`
374
374
  position: absolute;
375
375
  right: 10px;
376
376
  top: 50px;
377
377
  width: 24px;
378
378
  height: 24px;
379
- border-radius: ${e=>ti[e.theme.borderRadius]};
379
+ border-radius: ${e=>hi[e.theme.borderRadius]};
380
380
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.08);
381
- `,ii=bn(Yo)`
381
+ `,wi=bn(ai)`
382
382
  max-width: 90px;
383
383
  font-weight: 590;
384
384
  white-space: nowrap;
385
385
  text-overflow: ellipsis;
386
386
  overflow: hidden;
387
387
 
388
- ${Br("mobile")} {
388
+ ${Qr("mobile")} {
389
389
  max-width: 80px;
390
390
  }
391
- `,si=bn(Yo)`
391
+ `,mi=bn(ai)`
392
392
  font-weight: 510;
393
393
  max-width: 90px;
394
394
  white-space: nowrap;
@@ -396,10 +396,10 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
396
396
  overflow: hidden;
397
397
  color: ${e=>e.colorPrimary?e.theme.colors.text.primary:e.theme.colors.text.secondary};
398
398
 
399
- ${Br("mobile")} {
399
+ ${Qr("mobile")} {
400
400
  max-width: 80px;
401
401
  }
402
- `,ai=e=>bt(ni,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[ze((()=>ze((()=>"string"==typeof e.icon))()?bt(ri,{get src(){return e.icon}}):e.icon)),ze((()=>ze((()=>!!e.badgeUrl))()&&bt(oi,{get src(){return e.badgeUrl}}))),bt(ii,{get children(){return e.name}}),ze((()=>ze((()=>!!e.secondLine))()&&bt(si,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}})))]}}),li=bn.h1`
402
+ `,vi=e=>bt(fi,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[ze((()=>ze((()=>"string"==typeof e.icon))()?bt(pi,{get src(){return e.icon}}):e.icon)),ze((()=>ze((()=>!!e.badgeUrl))()&&bt(gi,{get src(){return e.badgeUrl}}))),bt(wi,{get children(){return e.name}}),ze((()=>ze((()=>!!e.secondLine))()&&bt(mi,{get colorPrimary(){var t;return null==(t=e.secondLineColorPrimary)||t},get children(){return e.secondLine}})))]}}),yi=bn.h1`
403
403
  font-style: normal;
404
404
  font-weight: 700;
405
405
  font-size: 20px;
@@ -413,7 +413,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
413
413
  margin-bottom: 0;
414
414
 
415
415
  cursor: default;
416
- `,ci=e=>{const[t]=Zo();return bt(li,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},ui=bn.h2`
416
+ `,bi=e=>{const[t]=ii();return bt(yi,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Ci=bn.h2`
417
417
  font-style: normal;
418
418
  font-weight: 510;
419
419
  font-size: 16px;
@@ -427,7 +427,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
427
427
  margin-bottom: 32px;
428
428
 
429
429
  cursor: default;
430
- `,di=e=>{const[t]=Zo();return bt(ui,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},hi=bn.h3`
430
+ `,xi=e=>{const[t]=ii();return bt(Ci,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},_i=bn.h3`
431
431
  font-style: normal;
432
432
  font-weight: 590;
433
433
  font-size: 16px;
@@ -439,8 +439,8 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
439
439
  margin-bottom: 0;
440
440
 
441
441
  cursor: default;
442
- `,fi=e=>{const[t]=Zo();return bt(hi,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},gi=Wt('<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>'),pi=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=gi.cloneNode(!0),t=e.firstChild;return De((r=>{const o=n(),i=n();return o!==r._v$&&jt(e,"fill",r._v$=o),i!==r._v$2&&jt(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},wi=Wt('<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>'),mi=e=>{const t=vn();return(()=>{const n=wi.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},vi=Wt('<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>'),yi=Wt('<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>'),bi=Wt('<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>'),Ci=e=>{const t=vn(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return ze((()=>{const o=ze((()=>"xs"===n()));return()=>o()?(()=>{const n=vi.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$&&jt(n,"class",s._v$=a),l!==s._v$2&&jt(o,"fill",s._v$2=l),c!==s._v$3&&jt(i,"stroke",s._v$3=c),s}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=ze((()=>"s"===n()));return()=>o()?(()=>{const n=yi.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$4&&jt(n,"class",s._v$4=a),l!==s._v$5&&jt(o,"fill",s._v$5=l),c!==s._v$6&&jt(i,"fill",s._v$6=c),s}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=bi.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$7&&jt(n,"class",s._v$7=a),l!==s._v$8&&jt(o,"fill",s._v$8=l),c!==s._v$9&&jt(i,"fill",s._v$9=c),s}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},xi=Wt('<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>'),_i=Wt('<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>'),ki=Wt('<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>'),Si=e=>{const t=vn(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return ze((()=>{const o=ze((()=>"m"===n()));return()=>o()?(()=>{const n=xi.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$&&jt(n,"class",s._v$=a),l!==s._v$2&&jt(o,"fill",s._v$2=l),c!==s._v$3&&jt(i,"fill",s._v$3=c),s}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=ze((()=>"s"===n()));return()=>o()?(()=>{const n=_i.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$4&&jt(n,"class",s._v$4=a),l!==s._v$5&&jt(o,"fill",s._v$5=l),c!==s._v$6&&jt(i,"stroke",s._v$6=c),s}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=ki.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return De((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$7&&jt(n,"class",s._v$7=a),l!==s._v$8&&jt(o,"fill",s._v$8=l),c!==s._v$9&&jt(i,"fill",s._v$9=c),s}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Ei=Wt('<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>'),Li=Wt('<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>'),Ri=Wt('<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>'),Ai=e=>{const t=vn(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=gn`
443
- animation: ${pn`
442
+ `,ki=e=>{const[t]=ii();return bt(_i,{"data-tc-h3":"true",get class(){return e.class},get children(){var n;return ze((()=>!!e.translationKey))()?t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString()):e.children}})},Si=Wt('<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>'),Ei=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=Si.cloneNode(!0),t=e.firstChild;return Fe((r=>{const o=n(),i=n();return o!==r._v$&&jt(e,"fill",r._v$=o),i!==r._v$2&&jt(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},Ri=Wt('<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>'),Li=e=>{const t=vn();return(()=>{const n=Ri.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Ti=Wt('<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>'),Ai=Wt('<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>'),Mi=Wt('<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>'),Oi=e=>{const t=vn(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return ze((()=>{const o=ze((()=>"xs"===n()));return()=>o()?(()=>{const n=Ti.cloneNode(!0),o=n.firstChild.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$&&jt(n,"class",s._v$=a),l!==s._v$2&&jt(o,"fill",s._v$2=l),c!==s._v$3&&jt(i,"stroke",s._v$3=c),s}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=ze((()=>"s"===n()));return()=>o()?(()=>{const n=Ai.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$4&&jt(n,"class",s._v$4=a),l!==s._v$5&&jt(o,"fill",s._v$5=l),c!==s._v$6&&jt(i,"fill",s._v$6=c),s}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Mi.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$7&&jt(n,"class",s._v$7=a),l!==s._v$8&&jt(o,"fill",s._v$8=l),c!==s._v$9&&jt(i,"fill",s._v$9=c),s}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},$i=Wt('<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>'),Pi=Wt('<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>'),Ii=Wt('<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>'),Ni=e=>{const t=vn(),n=()=>e.size||"m",r=()=>e.fill||t.colors.icon.error;return ze((()=>{const o=ze((()=>"m"===n()));return()=>o()?(()=>{const n=$i.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$&&jt(n,"class",s._v$=a),l!==s._v$2&&jt(o,"fill",s._v$2=l),c!==s._v$3&&jt(i,"fill",s._v$3=c),s}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),n})():(()=>{const o=ze((()=>"s"===n()));return()=>o()?(()=>{const n=Pi.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$4&&jt(n,"class",s._v$4=a),l!==s._v$5&&jt(o,"fill",s._v$5=l),c!==s._v$6&&jt(i,"stroke",s._v$6=c),s}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n})():(()=>{const n=Ii.cloneNode(!0),o=n.firstChild,i=o.nextSibling;return Fe((s=>{const a=e.class,l=r(),c=t.colors.constant.white;return a!==s._v$7&&jt(n,"class",s._v$7=a),l!==s._v$8&&jt(o,"fill",s._v$8=l),c!==s._v$9&&jt(i,"fill",s._v$9=c),s}),{_v$7:void 0,_v$8:void 0,_v$9:void 0}),n})()})()})())},Ui=Wt('<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>'),Wi=Wt('<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>'),ji=Wt('<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>'),Bi=e=>{const t=vn(),n=()=>e.size||"xs",r=()=>e.fill||t.colors.icon.tertiary,o=pn`
443
+ animation: ${gn`
444
444
  0% {
445
445
  transform: rotate(0deg);
446
446
  }
@@ -448,21 +448,21 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
448
448
  transform: rotate(360deg);
449
449
  }
450
450
  `} 1s linear infinite;
451
- `;return ze((()=>{const t=ze((()=>"xs"===n()));return()=>t()?(()=>{const t=Ei.cloneNode(!0),n=t.firstChild;return De((i=>{const s=Gr(o,e.class),a=r();return s!==i._v$&&jt(t,"class",i._v$=s),a!==i._v$2&&jt(n,"fill",i._v$2=a),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=ze((()=>"s"===n()));return()=>t()?(()=>{const t=Li.cloneNode(!0),n=t.firstChild;return De((i=>{const s=Gr(o,e.class),a=r();return s!==i._v$3&&jt(t,"class",i._v$3=s),a!==i._v$4&&jt(n,"fill",i._v$4=a),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=Ri.cloneNode(!0),n=t.firstChild;return De((i=>{const s=Gr(o,e.class),a=r();return s!==i._v$5&&jt(t,"class",i._v$5=s),a!==i._v$6&&jt(n,"stroke",i._v$6=a),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},Ti=Wt('<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>'),Mi=()=>{const e=vn();return(()=>{const t=Ti.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return De((()=>jt(n,"fill",e.theme===nn.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},Oi=Wt('<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>'),$i=e=>{const t=vn();return(()=>{const n=Oi.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Pi=Wt('<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>'),Ii=e=>{const t=vn();return(()=>{const n=Pi.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Ni=Wt('<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>'),Ui=e=>{const t=vn();return(()=>{const n=Ni.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Wi=Wt('<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>'),ji=e=>{const t=vn();return(()=>{const n=Wi.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Bi=Wt('<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>'),Hi=e=>{const t=vn();return(()=>{const n=Bi.cloneNode(!0),r=n.firstChild.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},Ki=Wt('<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>'),Vi=e=>{const t=vn();return(()=>{const n=Ki.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},Fi=Wt('<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>'),Di=e=>{const t=vn();return(()=>{const n=Fi.cloneNode(!0),r=n.firstChild.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},qi=Wt('<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>'),zi=e=>{const t=vn();return(()=>{const n=qi.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},Zi=Wt('<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>'),Gi=e=>{const t=vn();return(()=>{const n=Zi.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},Yi=Wt('<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>'),Qi=e=>{const t=vn();return(()=>{const n=Yi.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},Ji=Wt('<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>'),Xi=e=>{const t=vn();return(()=>{const n=Ji.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.constant.white;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},es=Wt('<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>'),ts=e=>{const t=vn();return(()=>{const n=es.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},ns=Wt('<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>'),rs=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=ns.cloneNode(!0),t=e.firstChild;return De((r=>{const o=n(),i=n();return o!==r._v$&&jt(e,"fill",r._v$=o),i!==r._v$2&&jt(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},os=Wt('<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>'),is=e=>{const t=vn();return(()=>{const n=os.cloneNode(!0),r=n.firstChild;return De((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},ss={m:"16px",s:"12px",none:"0"},as={m:"6px",s:"6px",none:"0"},ls=bn.div`
451
+ `;return ze((()=>{const t=ze((()=>"xs"===n()));return()=>t()?(()=>{const t=Ui.cloneNode(!0),n=t.firstChild;return Fe((i=>{const s=so(o,e.class),a=r();return s!==i._v$&&jt(t,"class",i._v$=s),a!==i._v$2&&jt(n,"fill",i._v$2=a),i}),{_v$:void 0,_v$2:void 0}),t})():(()=>{const t=ze((()=>"s"===n()));return()=>t()?(()=>{const t=Wi.cloneNode(!0),n=t.firstChild;return Fe((i=>{const s=so(o,e.class),a=r();return s!==i._v$3&&jt(t,"class",i._v$3=s),a!==i._v$4&&jt(n,"fill",i._v$4=a),i}),{_v$3:void 0,_v$4:void 0}),t})():(()=>{const t=ji.cloneNode(!0),n=t.firstChild;return Fe((i=>{const s=so(o,e.class),a=r();return s!==i._v$5&&jt(t,"class",i._v$5=s),a!==i._v$6&&jt(n,"stroke",i._v$6=a),i}),{_v$5:void 0,_v$6:void 0}),t})()})()})())},Hi=Wt('<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>'),Ki=()=>{const e=vn();return(()=>{const t=Hi.cloneNode(!0),n=t.firstChild.nextSibling.nextSibling;return Fe((()=>jt(n,"fill",e.theme===nn.DARK?e.colors.constant.white:e.colors.constant.black))),t})()},Vi=Wt('<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>'),Di=e=>{const t=vn();return(()=>{const n=Vi.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},Fi=Wt('<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>'),qi=e=>{const t=vn();return(()=>{const n=Fi.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},zi=Wt('<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>'),Zi=e=>{const t=vn();return(()=>{const n=zi.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Gi=Wt('<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>'),Yi=e=>{const t=vn();return(()=>{const n=Gi.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.primary))),n})()},Qi=Wt('<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>'),Ji=e=>{const t=vn();return(()=>{const n=Qi.cloneNode(!0),r=n.firstChild.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},Xi=Wt('<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>'),es=e=>{const t=vn();return(()=>{const n=Xi.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},ts=Wt('<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>'),ns=e=>{const t=vn();return(()=>{const n=ts.cloneNode(!0),r=n.firstChild.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.accent))),n})()},rs=Wt('<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>'),os=e=>{const t=vn();return(()=>{const n=rs.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},is=Wt('<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=vn();return(()=>{const n=is.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},as=Wt('<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>'),ls=e=>{const t=vn();return(()=>{const n=as.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},cs=Wt('<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>'),us=e=>{const t=vn();return(()=>{const n=cs.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.constant.white;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},ds=Wt('<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>'),hs=e=>{const t=vn();return(()=>{const n=ds.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.icon.secondary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},fs=Wt('<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>'),ps=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const e=fs.cloneNode(!0),t=e.firstChild;return Fe((r=>{const o=n(),i=n();return o!==r._v$&&jt(e,"fill",r._v$=o),i!==r._v$2&&jt(t,"fill",r._v$2=i),r}),{_v$:void 0,_v$2:void 0}),e})()},gs=Wt('<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>'),ws=e=>{const t=vn();return(()=>{const n=gs.cloneNode(!0),r=n.firstChild;return Fe((()=>jt(r,"fill",e.fill||t.colors.icon.secondary))),n})()},ms={m:"16px",s:"12px",none:"0"},vs={m:"6px",s:"6px",none:"0"},ys=bn.div`
452
452
  width: 60px;
453
453
  height: 60px;
454
454
  padding: 8px;
455
455
  margin-bottom: 8px;
456
- border-radius: ${e=>ss[e.theme.borderRadius]};
456
+ border-radius: ${e=>ms[e.theme.borderRadius]};
457
457
  background-color: ${e=>e.theme.colors.background.tint};
458
458
  display: grid;
459
459
  grid-template: 1fr 1fr / 1fr 1fr;
460
460
  gap: 4px;
461
- `,cs=bn(Xo)`
461
+ `,bs=bn(ui)`
462
462
  width: 20px;
463
463
  height: 20px;
464
- border-radius: ${e=>as[e.theme.borderRadius]};
465
- `,us=e=>bt(ai,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return bt(ls,{get children(){return bt(Et,{each:[0,1,2,3],children:t=>bt(cs,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),ds="telegram-wallet",hs="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",fs="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",gs=e=>{const[t]=Zo();return ze((()=>{const n=ze((()=>e.wallet.appName===ds));return()=>n()?bt(ai,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return fs},onClick:()=>e.onClick()}):bt(ai,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==ds)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):he(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},ps=bn.div`
464
+ border-radius: ${e=>vs[e.theme.borderRadius]};
465
+ `,Cs=e=>bt(vi,{get name(){return e.labelLine1},get secondLine(){return e.labelLine2},get icon(){return bt(ys,{get children(){return bt(Et,{each:[0,1,2,3],children:t=>bt(bs,{get src(){return e.images[t]}})})}})},onClick:()=>e.onClick()}),xs="telegram-wallet",_s="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/ton-icon-48.png",ks="https://raw.githubusercontent.com/ton-connect/sdk/main/assets/tg.png",Ss=e=>{const[t]=ii();return ze((()=>{const n=ze((()=>e.wallet.appName===xs));return()=>n()?bt(vi,{get icon(){return e.wallet.imageUrl},get name(){return t("walletItem.walletOn",{},"Wallet On")},secondLine:"Telegram",get badgeUrl(){return ks},onClick:()=>e.onClick()}):bt(vi,{get icon(){return e.wallet.imageUrl},get name(){return e.wallet.name},get secondLine(){return(()=>{if(e.wallet.appName!==xs)return"isPreferred"in e.wallet&&e.wallet.isPreferred?t("walletItem.recent",{},"Recent"):he(e.wallet)?t("walletItem.installed",{},"Installed"):"Tonkeeper"===e.wallet.name?t("walletItem.popular",{},"Popular"):void 0})()},secondLineColorPrimary:!1,onClick:()=>e.onClick()})})())},Es=bn.div`
466
466
  width: 100%;
467
467
  overflow-y: auto;
468
468
  max-height: ${e=>e.maxHeight};
@@ -479,7 +479,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
479
479
  &&::-webkit-scrollbar-thumb {
480
480
  display: none;
481
481
  }
482
- `,ws=bn.div`
482
+ `,Rs=bn.div`
483
483
  height: 1px;
484
484
  margin: 0 -24px;
485
485
  width: calc(100% + 48px);
@@ -487,25 +487,25 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
487
487
  background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
488
488
  transition: background 0.15s ease-in-out;
489
489
 
490
- ${Br("mobile")} {
490
+ ${Qr("mobile")} {
491
491
  width: 100%;
492
492
  margin: 0;
493
493
  }
494
- `,[ms,vs]=Ve((null==(t=Nn())?void 0:t.innerHeight)||0);Nn()&&window.addEventListener("resize",(()=>vs(window.innerHeight)));const[ys,bs]=Ve(jr("mobile")),Cs=()=>bs(jr("mobile"));Nn()&&(window.addEventListener("resize",(()=>Cs())),window.addEventListener("load",(()=>Cs()),{once:!0}));const xs=e=>{const[t,n]=Ve(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:ms()-(ys()?150:200)+"px";return[bt(ws,{get isShown(){return t()}}),bt(ps,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},_s=bn.a`
494
+ `,[Ls,Ts]=Ve((null==(t=zn())?void 0:t.innerHeight)||0);zn()&&window.addEventListener("resize",(()=>Ts(window.innerHeight)));const[As,Ms]=Ve(Yr("mobile")),Os=()=>Ms(Yr("mobile"));zn()&&(window.addEventListener("resize",(()=>Os())),window.addEventListener("load",(()=>Os()),{once:!0}));const $s=e=>{const[t,n]=Ve(!1),r=()=>void 0!==e.maxHeight?`${e.maxHeight}px`:Ls()-(As()?150:200)+"px";return[bt(Rs,{get isShown(){return t()}}),bt(Es,{get maxHeight(){return r()},onScroll:e=>{n(e.target.scrollTop>0)},get class(){return e.class},get children(){return e.children}})]},Ps=bn.a`
495
495
  display: block;
496
496
  text-decoration: unset;
497
- `,ks=e=>bt(_s,kt({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}})),Ss=Xe(),Es=Wt('<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>'),Ls=e=>{const t=vn();return(()=>{const n=Es.cloneNode(!0),r=n.firstChild;return De((o=>{const i=e.class,s=e.fill||t.colors.icon.primary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},Rs=Wt('<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>'),As=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=Rs.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return De((e=>{const o=n(),i=n();return o!==e._v$&&jt(t,"fill",e._v$=o),i!==e._v$2&&jt(r,"fill",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),e})()},Ts={m:"8px",s:"4px",none:"0"},Ms={m:"16px",s:"8px",none:"0"},Os=bn.div`
497
+ `,Is=e=>bt(Ps,kt({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}})),Ns=Xe(),Us=Wt('<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>'),Ws=e=>{const t=vn();return(()=>{const n=Us.cloneNode(!0),r=n.firstChild;return Fe((o=>{const i=e.class,s=e.fill||t.colors.icon.primary;return i!==o._v$&&jt(n,"class",o._v$=i),s!==o._v$2&&jt(r,"fill",o._v$2=s),o}),{_v$:void 0,_v$2:void 0}),n})()},js=Wt('<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>'),Bs=e=>{const t=vn(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const e=js.cloneNode(!0),t=e.firstChild,r=t.nextSibling;return Fe((e=>{const o=n(),i=n();return o!==e._v$&&jt(t,"fill",e._v$=o),i!==e._v$2&&jt(r,"fill",e._v$2=i),e}),{_v$:void 0,_v$2:void 0}),e})()},Hs={m:"8px",s:"4px",none:"0"},Ks={m:"16px",s:"8px",none:"0"},Vs=bn.div`
498
498
  width: 256px;
499
499
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
500
- border-radius: ${e=>Ms[e.theme.borderRadius]};
500
+ border-radius: ${e=>Ks[e.theme.borderRadius]};
501
501
 
502
502
  background-color: ${e=>e.theme.colors.background.primary}
503
503
 
504
504
  color: ${e=>e.theme.colors.text.primary}
505
- `,$s=bn.ul`
505
+ `,Ds=bn.ul`
506
506
  background-color: ${e=>e.theme.colors.background.primary};
507
507
  padding: 8px;
508
- `,Ps=bn.button`
508
+ `,Fs=bn.button`
509
509
  display: flex;
510
510
  align-items: center;
511
511
  gap: 8px;
@@ -515,7 +515,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
515
515
 
516
516
  background-color: ${e=>e.theme.colors.background.primary};
517
517
  border: none;
518
- border-radius: ${e=>Ts[e.theme.borderRadius]};
518
+ border-radius: ${e=>Hs[e.theme.borderRadius]};
519
519
  cursor: pointer;
520
520
 
521
521
  transition: background-color, transform 0.1s ease-in-out;
@@ -527,7 +527,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
527
527
  &:active {
528
528
  transform: scale(0.96);
529
529
  }
530
- `,Is=Wt("<li></li>"),Ns=e=>bt(Yo,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),Us={m:"16px",s:"8px",none:"0"},Ws=bn.div`
530
+ `,qs=Wt("<li></li>"),zs=e=>bt(ai,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),Zs={m:"16px",s:"8px",none:"0"},Gs=bn.div`
531
531
  width: 256px;
532
532
  padding: 12px 16px;
533
533
  display: flex;
@@ -535,26 +535,26 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
535
535
 
536
536
  background-color: ${e=>e.theme.colors.background.primary};
537
537
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
538
- border-radius: ${e=>Us[e.theme.borderRadius]};
539
- `,js=bn.div`
538
+ border-radius: ${e=>Zs[e.theme.borderRadius]};
539
+ `,Ys=bn.div`
540
540
  width: 192px;
541
541
 
542
542
  > h3 {
543
543
  font-size: 15px;
544
544
  }
545
- `,Bs=bn(Yo)`
545
+ `,Qs=bn(ai)`
546
546
  margin-top: 4px;
547
547
  color: ${e=>e.theme.colors.text.secondary};
548
- `,Hs=e=>{const t=qr(e);return bt(Ws,kt({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[bt(js,{get children(){return[bt(fi,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),bt(Lt,{get when(){return e.text},get children(){return bt(Bs,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),ze((()=>e.icon))]}}))},Ks=bn(Ai)`
548
+ `,Js=e=>{const t=ro(e);return bt(Gs,kt({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[bt(Ys,{get children(){return[bt(ki,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),bt(Rt,{get when(){return e.text},get children(){return bt(Qs,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),ze((()=>e.icon))]}}))},Xs=bn(Bi)`
549
549
  align-self: center;
550
- `,Vs=e=>{const t=et(Ss),[n]=Zo();return bt(Hs,{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 bt(Ks,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Fs=bn(Si)`
550
+ `,ea=e=>{const t=et(Ns),[n]=ii();return bt(Js,{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 bt(Xs,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},ta=bn(Ni)`
551
551
  margin-top: 2px;
552
- `,Ds=e=>bt(Hs,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return bt(Fs,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),qs=bn(Ci)`
552
+ `,na=e=>bt(Js,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return bt(ta,{size:"xs"})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),ra=bn(Oi)`
553
553
  margin-top: 2px;
554
- `,zs=e=>bt(Hs,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return bt(qs,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),Zs=gn`
554
+ `,oa=e=>bt(Js,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return bt(ra,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),ia=pn`
555
555
  transform: translateY(-8px);
556
556
  margin-bottom: 12px;
557
- `,Gs={timeout:4500},[Ys,Qs]=Ve(null);function Js(e){const{timeout:t}=__spreadValues(__spreadValues({},Gs),e),[n,r]=Ve([]),[o,i]=Ve([]);return qe(function(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let s;if(r){s=Array(e.length);for(let t=0;t<e.length;t++)s[t]=e[t]()}else s=e();if(i)return void(i=!1);const a=Ye((()=>t(s,o,n)));return o=s,a}}(Qn,(e=>{if(!e||!e.showNotification)return;if(Ys()===e)return;Qs(e),r((e=>e.filter((e=>"confirm-transaction"!==e.action))));const n={action:e.name};r((e=>[...e,n]));const o=setTimeout((()=>{r((e=>e.filter((e=>e!==n)))),i((e=>e.filter((e=>e!==o))))}),t);i((e=>[...e,o]))}))),Qe((()=>{o().forEach((e=>clearTimeout(e)))})),n}const Xs=Wt('<div data-tc-list-notifications="true"></div>'),ea=bn(zr)`
557
+ `,sa={timeout:4500},[aa,la]=Ve(null);function ca(e){const{timeout:t}=__spreadValues(__spreadValues({},sa),e),[n,r]=Ve([]),[o,i]=Ve([]);return qe(function(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return n=>{let s;if(r){s=Array(e.length);for(let t=0;t<e.length;t++)s[t]=e[t]()}else s=e();if(i)return void(i=!1);const a=Ye((()=>t(s,o,n)));return o=s,a}}(lr,(e=>{if(!e||!e.showNotification)return;if(aa()===e)return;la(e),r((e=>e.filter((e=>"confirm-transaction"!==e.action))));const n={action:e.name};r((e=>[...e,n]));const o=setTimeout((()=>{r((e=>e.filter((e=>e!==n)))),i((e=>e.filter((e=>e!==o))))}),t);i((e=>[...e,o]))}))),Qe((()=>{o().forEach((e=>clearTimeout(e)))})),n}const ua=Wt('<div data-tc-list-notifications="true"></div>'),da=bn(oo)`
558
558
  background-color: ${e=>e.theme.colors.connectButton.background};
559
559
  color: ${e=>e.theme.colors.connectButton.foreground};
560
560
  box-shadow: ${e=>`0 4px 24px ${En(e.theme.colors.constant.black,.16)}`};
@@ -564,12 +564,12 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
564
564
  align-items: center;
565
565
  gap: 4px;
566
566
  height: 40px;
567
- `,ta=bn(ea)`
567
+ `,ha=bn(da)`
568
568
  padding: 12px 16px;
569
569
  min-width: 148px;
570
570
  justify-content: center;
571
571
  background-color: ${e=>e.theme.colors.background.primary};
572
- `,na=bn(zr)`
572
+ `,fa=bn(oo)`
573
573
  min-width: 148px;
574
574
  height: 40px;
575
575
 
@@ -580,61 +580,61 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
580
580
  display: flex;
581
581
  align-items: center;
582
582
  justify-content: center;
583
- `,ra=bn(Ai)`
583
+ `,pa=bn(Bi)`
584
584
  height: 18px;
585
585
  width: 18px;
586
- `,oa=bn.div`
586
+ `,ga=bn.div`
587
587
  width: fit-content;
588
588
  display: flex;
589
589
  flex-direction: column;
590
590
  align-items: flex-end;
591
- `,ia=bn((t=>{const n=et(Ss),[r,o]=Ve(!1),i=()=>__async(this,null,(function*(){const t=_e(n.account.address,n.account.chain===e.CHAIN.TESTNET);yield Ko(t),o(!0),setTimeout((()=>o(!1)),1e3)}));return bt(Os,{ref(e){const n=t.ref;"function"==typeof n?n(e):t.ref=e},get class(){return t.class},"data-tc-dropdown":"true",get children(){return bt($s,{get children(){return[(()=>{const e=Is.cloneNode(!0);return Vt(e,bt(Ps,{onClick:()=>i(),get children(){return[bt(Ls,{}),bt(Lt,{get when(){return!r()},get children(){return bt(Ns,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),bt(Lt,{get when(){return r()},get children(){return bt(Ns,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const e=Is.cloneNode(!0);return Vt(e,bt(Ps,{onClick:()=>(n.disconnect(),void t.onClose()),get children(){return[bt(As,{}),bt(Ns,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),e})()]}})}})}))`
591
+ `,wa=bn((t=>{const n=et(Ns),[r,o]=Ve(!1),i=()=>__async(this,null,(function*(){const t=_e(n.account.address,n.account.chain===e.CHAIN.TESTNET);yield Xo(t),o(!0),setTimeout((()=>o(!1)),1e3)}));return bt(Vs,{ref(e){const n=t.ref;"function"==typeof n?n(e):t.ref=e},get class(){return t.class},"data-tc-dropdown":"true",get children(){return bt(Ds,{get children(){return[(()=>{const e=qs.cloneNode(!0);return Vt(e,bt(Fs,{onClick:()=>i(),get children(){return[bt(Ws,{}),bt(Rt,{get when(){return!r()},get children(){return bt(zs,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),bt(Rt,{get when(){return r()},get children(){return bt(zs,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),e})(),(()=>{const e=qs.cloneNode(!0);return Vt(e,bt(Fs,{onClick:()=>(n.disconnect(),void t.onClose()),get children(){return[bt(Bs,{}),bt(zs,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),e})()]}})}})}))`
592
592
  box-sizing: border-box;
593
593
  overflow: hidden;
594
594
  margin-top: 12px;
595
- `,sa=bn((e=>{const t=Js();return(()=>{const n=Xs.cloneNode(!0);return Vt(n,bt(Xr,{onBeforeEnter:e=>{bo(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{bo(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return bt(Et,{get each(){return t()},children:e=>bt(Rt,{get children(){return[bt(At,{get when(){return"transaction-sent"===e.action},get children(){return bt(zs,{class:Zs})}}),bt(At,{get when(){return"transaction-canceled"===e.action},get children(){return bt(Ds,{class:Zs})}}),bt(At,{get when(){return"confirm-transaction"===e.action},get children(){return bt(Vs,{class:Zs})}})]}})})}})),De((()=>Bt(n,e.class))),n})()}))`
595
+ `,ma=bn((e=>{const t=ca();return(()=>{const n=ua.cloneNode(!0);return Vt(n,bt(uo,{onBeforeEnter:e=>{Mo(e,[{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(e,t)=>{Mo(e,[{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(t)},get children(){return bt(Et,{get each(){return t()},children:e=>bt(Lt,{get children(){return[bt(Tt,{get when(){return"transaction-sent"===e.action},get children(){return bt(oa,{class:ia})}}),bt(Tt,{get when(){return"transaction-canceled"===e.action},get children(){return bt(na,{class:ia})}}),bt(Tt,{get when(){return"confirm-transaction"===e.action},get children(){return bt(ea,{class:ia})}})]}})})}})),Fe((()=>Bt(n,e.class))),n})()}))`
596
596
  > div:first-child {
597
597
  margin-top: 20px;
598
598
  }
599
- `;function aa(e){return e.split("-")[0]}function la(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=function(e){return["top","bottom"].includes(aa(e))?"x":"y"}(t),l="y"===a?"height":"width";const c=r[l]/2-o[l]/2,u="x"===a;let d;switch(aa(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:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[a]-=c*(n&&u?-1:1);break;case"end":d[a]+=c*(n&&u?-1:1)}return d}const ca=(e,t,n)=>__async(this,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=yield null==s.isRTL?void 0:s.isRTL(t);if("production"!=={}.NODE_ENV){if(null==s&&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(" ")),a.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 s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=la(c,r,l),h=r,f={},g=0;for(let n=0;n<a.length;n++){const{name:i,fn:p}=a[n],{x:w,y:m,data:v,reset:y}=yield p({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=w?w:u,d=null!=m?m:d,f=__spreadProps(__spreadValues({},f),{[i]:__spreadValues(__spreadValues({},f[i]),v)}),"production"!=={}.NODE_ENV&&g>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(" ")),y&&g<=50&&(g++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?yield s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=la(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:f}}));function ua(e){return __spreadProps(__spreadValues({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function da(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ha(e){return da(e).getComputedStyle(e)}function fa(e){return va(e)?(e.nodeName||"").toLowerCase():""}let ga;function pa(){if(ga)return ga;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(ga=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),ga):navigator.userAgent}function wa(e){return e instanceof da(e).HTMLElement}function ma(e){return e instanceof da(e).Element}function va(e){return e instanceof da(e).Node}function ya(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof da(e).ShadowRoot||e instanceof ShadowRoot}function ba(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ha(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Ca(e){return["table","td","th"].includes(fa(e))}function xa(e){const t=/firefox/i.test(pa()),n=ha(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 _a(){return!/^((?!chrome|android).)*safari/i.test(pa())}function ka(e){return["html","body","#document"].includes(fa(e))}const Sa=Math.min,Ea=Math.max,La=Math.round,Ra={x:1,y:1};function Aa(e){const t=!ma(e)&&e.contextElement?e.contextElement:ma(e)?e:null;if(!t)return Ra;const n=t.getBoundingClientRect(),r=ha(t);if("border-box"!==r.boxSizing)return wa(t)?{x:t.offsetWidth>0&&La(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&La(n.height)/t.offsetHeight||1}:Ra;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 Ta(e,t,n,r){var o,i,s,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=Ra;t&&(r?ma(r)&&(c=Aa(r)):c=Aa(e));const u=ma(e)?da(e):window,d=!_a()&&n,h=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,f=(l.top+(d&&null!=(s=null==(a=u.visualViewport)?void 0:a.offsetTop)?s:0))/c.y,g=l.width/c.x,p=l.height/c.y;return{width:g,height:p,top:f,right:h+g,bottom:f+p,left:h,x:h,y:f}}function Ma(e){return((va(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oa(e){return ma(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $a(e){return Ta(Ma(e)).left+Oa(e).scrollLeft}function Pa(e,t,n){const r=wa(t),o=Ma(t),i=Ta(e,!0,"fixed"===n,t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==fa(t)||ba(o))&&(s=Oa(t)),wa(t)){const e=Ta(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=$a(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function Ia(e){if("html"===fa(e))return e;const t=e.assignedSlot||e.parentNode||(ya(e)?e.host:null)||Ma(e);return ya(t)?t.host:t}function Na(e){return wa(e)&&"fixed"!==ha(e).position?e.offsetParent:null}function Ua(e){const t=da(e);let n=Na(e);for(;n&&Ca(n)&&"static"===ha(n).position;)n=Na(n);return n&&("html"===fa(n)||"body"===fa(n)&&"static"===ha(n).position&&!xa(n))?t:n||function(e){let t=Ia(e);for(;wa(t)&&!ka(t);){if(xa(t))return t;t=Ia(t)}return null}(e)||t}function Wa(e){const t=Ia(e);return ka(t)?e.ownerDocument.body:wa(t)&&ba(t)?t:Wa(t)}function ja(e,t){var n;void 0===t&&(t=[]);const r=Wa(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=da(r);return o?t.concat(i,i.visualViewport||[],ba(r)?r:[]):t.concat(r,ja(r))}function Ba(e,t,n){return"viewport"===t?ua(function(e,t){const n=da(e),r=Ma(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=_a();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n)):ma(t)?function(e,t){const n=Ta(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wa(e)?Aa(e):{x:1,y:1},s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+s,bottom:c+a,x:l,y:c,width:s,height:a}}(t,n):ua(function(e){var t;const n=Ma(e),r=Oa(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ea(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ea(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-r.scrollLeft+$a(e);const l=-r.scrollTop;return"rtl"===ha(o||n).direction&&(a+=Ea(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Ma(e)))}const Ha={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=ja(e).filter((e=>ma(e)&&"body"!==fa(e))),o=null;const i="fixed"===ha(e).position;let s=i?Ia(e):e;for(;ma(s)&&!ka(s);){const e=ha(s),t=xa(s);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==s)),s=Ia(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Ba(t,n,o);return e.top=Ea(r.top,e.top),e.right=Sa(r.right,e.right),e.bottom=Sa(r.bottom,e.bottom),e.left=Ea(r.left,e.left),e}),Ba(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=wa(n),i=Ma(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==fa(n)||ba(i))&&(s=Oa(n)),wa(n))){const e=Ta(n);a=Aa(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:ma,getDimensions:function(e){if(wa(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Ta(e);return{width:t.width,height:t.height}},getOffsetParent:Ua,getDocumentElement:Ma,getScale:Aa,getElementRects(e){return __async(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Ua,i=this.getDimensions;return{reference:Pa(t,yield o(n),r),floating:__spreadValues({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ha(e).direction};function Ka(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=o&&!a,c=l||i?[...ma(e)?ja(e):e.contextElement?ja(e.contextElement):[],...ja(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(s){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),ma(e)&&!a&&d.observe(e),ma(e)||!e.contextElement||a||d.observe(e.contextElement),d.observe(t)}let h=a?Ta(e):null;return a&&function t(){const r=Ta(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=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,a&&cancelAnimationFrame(u)}}const Va=(e,t,n)=>{const r=new Map,o=__spreadValues({platform:Ha},n),i=__spreadProps(__spreadValues({},o.platform),{_c:r});return ca(e,t,__spreadProps(__spreadValues({},o),{platform:i}))};const Fa=Wt('<tc-root data-tc-dropdown-container="true"></tc-root>'),Da=()=>{const t=vn(),n=et(nr),r=et(Ss),[o,i]=Ve(!1),[s,a]=Ve(n.account),[l,c]=Ve(!0);let u;const[d,h]=Ve(),[f,g]=Ve(),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,s]=Ve({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[a,l]=Ve();qe((()=>{let e=a();if(e)throw e.value}));let c=ze((()=>(e(),t(),{})));function u(){let i=e(),a=t();if(i&&a){let e=c();Va(i,a,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&s(t)}),(e=>{l(e)}))}}return qe((()=>{let i=e(),s=t();if(null==n||n.middleware,r(),o(),i&&s)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,s,u);e&&Qe(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,d,{whileElementsMounted:Ka,placement:"bottom-end"});r.connectionRestored.then((()=>c(!1)));const w=n.onStatusChange((e=>{if(!e)return i(!1),void a(null);a(e.account)})),m=e=>{if(!s()||!o())return;const t=f().contains(e.target),n=u.contains(e.target);t||n||i(!1)};var v;return v=()=>{document.body.addEventListener("click",m)},qe((()=>Ye(v))),Qe((()=>{document.body.removeEventListener("click",m),w()})),bt(tn,{component:xn,get children(){return[bt(Lt,{get when(){return l()},get children(){return bt(na,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return bt(ra,{})}})}}),bt(Lt,{get when(){return!l()},get children(){return[bt(Lt,{get when(){return!s()},get children(){return bt(ea,{onClick:()=>r.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[bt(mi,{get fill(){return t.colors.connectButton.foreground}}),bt(Yo,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return t.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),bt(Lt,{get when(){return s()},get children(){return bt(oa,{get children(){return[bt(ta,{onClick:()=>i((e=>!e)),ref:g,"data-tc-dropdown-button":"true",scale:"s",get children(){return[bt(Yo,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const t=s();if(t){const n=_e(t.address,t.chain===e.CHAIN.TESTNET);return n.slice(0,4)+"…"+n.slice(-4)}return""})()}}),bt(oo,{direction:"bottom"})]}}),bt(en,{get children(){const e=Ye((()=>document.importNode(Fa,!0)));return Kt(h,e),e.style.setProperty("z-index","999"),e._$owner=Ie,Vt(e,bt(Qr,{onBeforeEnter:e=>{bo(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{bo(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return bt(Lt,{get when(){return o()},get children(){return bt(ia,{get hidden(){return!o()},onClose:()=>i(!1),ref(e){"function"==typeof u?u(e):u=e}})}})}}),null),Vt(e,bt(sa,{}),null),De((t=>{var n,r;const o=p.strategy,i=`${null!=(n=p.y)?n:0}px`,s=`${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),s!==t._v$3&&e.style.setProperty("left",t._v$3=s),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},qa=bn(So)`
599
+ `;function va(e){return e.split("-")[0]}function ya(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,s=r.y+r.height/2-o.height/2,a=function(e){return["top","bottom"].includes(va(e))?"x":"y"}(t),l="y"===a?"height":"width";const c=r[l]/2-o[l]/2,u="x"===a;let d;switch(va(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:s};break;case"left":d={x:r.x-o.width,y:s};break;default:d={x:r.x,y:r.y}}switch(function(e){return e.split("-")[1]}(t)){case"start":d[a]-=c*(n&&u?-1:1);break;case"end":d[a]+=c*(n&&u?-1:1)}return d}const ba=(e,t,n)=>__async(this,null,(function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=yield null==s.isRTL?void 0:s.isRTL(t);if("production"!=={}.NODE_ENV){if(null==s&&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(" ")),a.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 s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ya(c,r,l),h=r,f={},p=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:w,y:m,data:v,reset:y}=yield g({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:f,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=w?w:u,d=null!=m?m:d,f=__spreadProps(__spreadValues({},f),{[i]:__spreadValues(__spreadValues({},f[i]),v)}),"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(" ")),y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?yield s.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=ya(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:f}}));function Ca(e){return __spreadProps(__spreadValues({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function xa(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _a(e){return xa(e).getComputedStyle(e)}function ka(e){return Ta(e)?(e.nodeName||"").toLowerCase():""}let Sa;function Ea(){if(Sa)return Sa;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Sa=e.brands.map((e=>e.brand+"/"+e.version)).join(" "),Sa):navigator.userAgent}function Ra(e){return e instanceof xa(e).HTMLElement}function La(e){return e instanceof xa(e).Element}function Ta(e){return e instanceof xa(e).Node}function Aa(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof xa(e).ShadowRoot||e instanceof ShadowRoot}function Ma(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=_a(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Oa(e){return["table","td","th"].includes(ka(e))}function $a(e){const t=/firefox/i.test(Ea()),n=_a(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 Pa(){return!/^((?!chrome|android).)*safari/i.test(Ea())}function Ia(e){return["html","body","#document"].includes(ka(e))}const Na=Math.min,Ua=Math.max,Wa=Math.round,ja={x:1,y:1};function Ba(e){const t=!La(e)&&e.contextElement?e.contextElement:La(e)?e:null;if(!t)return ja;const n=t.getBoundingClientRect(),r=_a(t);if("border-box"!==r.boxSizing)return Ra(t)?{x:t.offsetWidth>0&&Wa(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&Wa(n.height)/t.offsetHeight||1}:ja;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 Ha(e,t,n,r){var o,i,s,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=ja;t&&(r?La(r)&&(c=Ba(r)):c=Ba(e));const u=La(e)?xa(e):window,d=!Pa()&&n,h=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c.x,f=(l.top+(d&&null!=(s=null==(a=u.visualViewport)?void 0:a.offsetTop)?s:0))/c.y,p=l.width/c.x,g=l.height/c.y;return{width:p,height:g,top:f,right:h+p,bottom:f+g,left:h,x:h,y:f}}function Ka(e){return((Ta(e)?e.ownerDocument:e.document)||window.document).documentElement}function Va(e){return La(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Da(e){return Ha(Ka(e)).left+Va(e).scrollLeft}function Fa(e,t,n){const r=Ra(t),o=Ka(t),i=Ha(e,!0,"fixed"===n,t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==ka(t)||Ma(o))&&(s=Va(t)),Ra(t)){const e=Ha(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=Da(o));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function qa(e){if("html"===ka(e))return e;const t=e.assignedSlot||e.parentNode||(Aa(e)?e.host:null)||Ka(e);return Aa(t)?t.host:t}function za(e){return Ra(e)&&"fixed"!==_a(e).position?e.offsetParent:null}function Za(e){const t=xa(e);let n=za(e);for(;n&&Oa(n)&&"static"===_a(n).position;)n=za(n);return n&&("html"===ka(n)||"body"===ka(n)&&"static"===_a(n).position&&!$a(n))?t:n||function(e){let t=qa(e);for(;Ra(t)&&!Ia(t);){if($a(t))return t;t=qa(t)}return null}(e)||t}function Ga(e){const t=qa(e);return Ia(t)?e.ownerDocument.body:Ra(t)&&Ma(t)?t:Ga(t)}function Ya(e,t){var n;void 0===t&&(t=[]);const r=Ga(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=xa(r);return o?t.concat(i,i.visualViewport||[],Ma(r)?r:[]):t.concat(r,Ya(r))}function Qa(e,t,n){return"viewport"===t?Ca(function(e,t){const n=xa(e),r=Ka(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const e=Pa();(e||!e&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}(e,n)):La(t)?function(e,t){const n=Ha(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ra(e)?Ba(e):{x:1,y:1},s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{top:c,left:l,right:l+s,bottom:c+a,x:l,y:c,width:s,height:a}}(t,n):Ca(function(e){var t;const n=Ka(e),r=Va(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Ua(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ua(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let a=-r.scrollLeft+Da(e);const l=-r.scrollTop;return"rtl"===_a(o||n).direction&&(a+=Ua(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(Ka(e)))}const Ja={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=Ya(e).filter((e=>La(e)&&"body"!==ka(e))),o=null;const i="fixed"===_a(e).position;let s=i?qa(e):e;for(;La(s)&&!Ia(s);){const e=_a(s),t=$a(s);(i?t||o:t||"static"!==e.position||!o||!["absolute","fixed"].includes(o.position))?o=e:r=r.filter((e=>e!==s)),s=qa(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=i[0],a=i.reduce(((e,n)=>{const r=Qa(t,n,o);return e.top=Ua(r.top,e.top),e.right=Na(r.right,e.right),e.bottom=Na(r.bottom,e.bottom),e.left=Ua(r.left,e.left),e}),Qa(t,s,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Ra(n),i=Ka(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==ka(n)||Ma(i))&&(s=Va(n)),Ra(n))){const e=Ha(n);a=Ba(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:La,getDimensions:function(e){if(Ra(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Ha(e);return{width:t.width,height:t.height}},getOffsetParent:Za,getDocumentElement:Ka,getScale:Ba,getElementRects(e){return __async(this,null,(function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Za,i=this.getDimensions;return{reference:Fa(t,yield o(n),r),floating:__spreadValues({x:0,y:0},yield i(n))}}))},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===_a(e).direction};function Xa(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=o&&!a,c=l||i?[...La(e)?Ya(e):e.contextElement?Ya(e.contextElement):[],...Ya(t)]:[];c.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));let u,d=null;if(s){let r=!0;d=new ResizeObserver((()=>{r||n(),r=!1})),La(e)&&!a&&d.observe(e),La(e)||!e.contextElement||a||d.observe(e.contextElement),d.observe(t)}let h=a?Ha(e):null;return a&&function t(){const r=Ha(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=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,a&&cancelAnimationFrame(u)}}const el=(e,t,n)=>{const r=new Map,o=__spreadValues({platform:Ja},n),i=__spreadProps(__spreadValues({},o.platform),{_c:r});return ba(e,t,__spreadProps(__spreadValues({},o),{platform:i}))};const tl=Wt('<tc-root data-tc-dropdown-container="true"></tc-root>'),nl=()=>{const t=vn(),n=et(fr),r=et(Ns),[o,i]=Ve(!1),[s,a]=Ve(n.account),[l,c]=Ve(!0);let u;const[d,h]=Ve(),[f,p]=Ve(),g=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,s]=Ve({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[a,l]=Ve();qe((()=>{let e=a();if(e)throw e.value}));let c=ze((()=>(e(),t(),{})));function u(){let i=e(),a=t();if(i&&a){let e=c();el(i,a,{middleware:null==n?void 0:n.middleware,placement:r(),strategy:o()}).then((t=>{e===c()&&s(t)}),(e=>{l(e)}))}}return qe((()=>{let i=e(),s=t();if(null==n||n.middleware,r(),o(),i&&s)if(null!=n&&n.whileElementsMounted){let e=n.whileElementsMounted(i,s,u);e&&Qe(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,d,{whileElementsMounted:Xa,placement:"bottom-end"});r.connectionRestored.then((()=>c(!1)));const w=n.onStatusChange((e=>{if(!e)return i(!1),void a(null);a(e.account)})),m=e=>{if(!s()||!o())return;const t=f().contains(e.target),n=u.contains(e.target);t||n||i(!1)};var v;return v=()=>{document.body.addEventListener("click",m)},qe((()=>Ye(v))),Qe((()=>{document.body.removeEventListener("click",m),w()})),bt(tn,{component:xn,get children(){return[bt(Rt,{get when(){return l()},get children(){return bt(fa,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return bt(pa,{})}})}}),bt(Rt,{get when(){return!l()},get children(){return[bt(Rt,{get when(){return!s()},get children(){return bt(da,{onClick:()=>r.openModal(),"data-tc-connect-button":"true",scale:"s",get children(){return[bt(Li,{get fill(){return t.colors.connectButton.foreground}}),bt(ai,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return t.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),bt(Rt,{get when(){return s()},get children(){return bt(ga,{get children(){return[bt(ha,{onClick:()=>i((e=>!e)),ref:p,"data-tc-dropdown-button":"true",scale:"s",get children(){return[bt(ai,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return(()=>{const t=s();if(t){const n=_e(t.address,t.chain===e.CHAIN.TESTNET);return n.slice(0,4)+"…"+n.slice(-4)}return""})()}}),bt(wo,{direction:"bottom"})]}}),bt(en,{get children(){const e=Ye((()=>document.importNode(tl,!0)));return Kt(h,e),e.style.setProperty("z-index","999"),e._$owner=Ie,Vt(e,bt(lo,{onBeforeEnter:e=>{Mo(e,[{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(e,t)=>{Mo(e,[{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(t)},get children(){return bt(Rt,{get when(){return o()},get children(){return bt(wa,{get hidden(){return!o()},onClose:()=>i(!1),ref(e){"function"==typeof u?u(e):u=e}})}})}}),null),Vt(e,bt(ma,{}),null),Fe((t=>{var n,r;const o=g.strategy,i=`${null!=(n=g.y)?n:0}px`,s=`${null!=(r=g.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),s!==t._v$3&&e.style.setProperty("left",t._v$3=s),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})]}})}})]}})]}})},rl=bn(No)`
600
600
  padding-left: 24px;
601
601
  padding-right: 24px;
602
602
  padding-top: 18px;
603
603
  padding-bottom: 0;
604
604
 
605
- ${Br("mobile")} {
605
+ ${Qr("mobile")} {
606
606
  padding-left: 0;
607
607
  padding-right: 0;
608
608
 
609
609
  min-height: 364px;
610
610
  }
611
- `,za=bn(ci)`
611
+ `,ol=bn(bi)`
612
612
  margin-top: 12px;
613
613
 
614
- ${Br("mobile")} {
614
+ ${Qr("mobile")} {
615
615
  padding: 0 10px;
616
616
  }
617
- `,Za=bn.div`
617
+ `,il=bn.div`
618
618
  margin: 30px 0;
619
619
  width: 100%;
620
620
  display: flex;
621
621
  justify-content: center;
622
622
 
623
- ${Br("mobile")} {
623
+ ${Qr("mobile")} {
624
624
  height: 160px;
625
625
  align-items: center;
626
626
  }
627
- `;bn(Yo)`
627
+ `;bn(ai)`
628
628
  min-width: 84px;
629
629
  text-align: center;
630
630
  font-weight: 590;
631
- `,bn((e=>{const t="tabBar"+Math.floor(1e4*Math.random());return bt(Ro,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[bt(Ao,{get right(){return 1===e.selectedTabIndex}}),bt(Mo,{get isActive(){return 0===e.selectedTabIndex},get children(){return[bt(To,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),ze((()=>e.tab1))]}}),bt(Mo,{get isActive(){return 1===e.selectedTabIndex},get children(){return[bt(To,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),ze((()=>e.tab2))]}})]}})}))`
631
+ `,bn((e=>{const t="tabBar"+Math.floor(1e4*Math.random());return bt(jo,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[bt(Bo,{get right(){return 1===e.selectedTabIndex}}),bt(Ko,{get isActive(){return 0===e.selectedTabIndex},get children(){return[bt(Ho,{type:"radio",name:t,get checked(){return 0===e.selectedTabIndex},onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,0)}}),ze((()=>e.tab1))]}}),bt(Ko,{get isActive(){return 1===e.selectedTabIndex},get children(){return[bt(Ho,{type:"radio",get checked(){return 1===e.selectedTabIndex},name:t,onInput:()=>{var t;return null==(t=e.onSelectedTabIndexChange)?void 0:t.call(e,1)}}),ze((()=>e.tab2))]}})]}})}))`
632
632
  margin: 0 auto 22px;
633
- `;const[Ga,Ya]=mr({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function Qa(e){return"jsBridgeKey"in e?__spreadProps(__spreadValues({},e),{injected:be.isWalletInjected(e.jsBridgeKey),embedded:be.isInsideWalletBrowser(e.jsBridgeKey)}):e}function Ja(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(Qa),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 Xa(e){return e.platforms.some((e=>["macos","linux","windows"].includes(e)))}function el(e){return e.platforms.some((e=>["ios","android"].includes(e)))}function tl(e){return e.platforms.some((e=>["chrome","firefox","safari"].includes(e)))}function nl(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const rl=bn.div`
633
+ `;const[sl,al]=Lr({buttonRootId:null,language:"en",returnStrategy:"back",twaReturnUrl:void 0,walletsListConfiguration:{},enableAndroidBackHandler:!0});function ll(e){return"jsBridgeKey"in e?__spreadProps(__spreadValues({},e),{injected:be.isWalletInjected(e.jsBridgeKey),embedded:be.isInsideWalletBrowser(e.jsBridgeKey)}):e}function cl(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(ll),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 ul(e){return e.platforms.some((e=>["macos","linux","windows"].includes(e)))}function dl(e){return e.platforms.some((e=>["ios","android"].includes(e)))}function hl(e){return e.platforms.some((e=>["chrome","firefox","safari"].includes(e)))}function fl(e,t){return!!t&&(e.name.toLowerCase()===t.toLowerCase()||e.appName.toLowerCase()===t.toLowerCase())}const pl=bn.div`
634
634
  display: flex;
635
635
  flex-direction: column;
636
636
  align-items: center;
637
- `,ol=bn(ci)`
637
+ `,gl=bn(bi)`
638
638
  margin-bottom: 18px;
639
639
  `;bn.div`
640
640
  height: 1px;
@@ -644,10 +644,10 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
644
644
  background: ${e=>e.isShown?e.theme.colors.icon.secondary:"transparent"};
645
645
  transition: background 0.15s ease-in-out;
646
646
 
647
- ${Br("mobile")} {
647
+ ${Qr("mobile")} {
648
648
  width: 100%;
649
649
  }
650
- `;const il=bn.ul`
650
+ `;const wl=bn.ul`
651
651
  display: grid;
652
652
  grid-template-columns: repeat(auto-fit, 92px);
653
653
  grid-template-rows: auto;
@@ -665,23 +665,23 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
665
665
  height: fit-content;
666
666
  }
667
667
 
668
- ${Br("mobile")} {
668
+ ${Qr("mobile")} {
669
669
  grid-template-columns: repeat(auto-fit, 82px);
670
670
  }
671
- `;bn(zr)`
671
+ `;bn(oo)`
672
672
  display: block;
673
673
  margin: 0 auto 1px;
674
674
  font-size: 15px;
675
- `;const sl=bn(lo)`
675
+ `;const ml=bn(bo)`
676
676
  position: absolute;
677
677
  top: 16px;
678
678
  left: 16px;
679
- `,al=bn(gs)`
679
+ `,vl=bn(Ss)`
680
680
  height: 100%;
681
- `,ll=Wt("<li></li>"),cl=e=>bt(rl,{"data-tc-wallets-modal-list":"true",get children(){return[bt(sl,{icon:"arrow",onClick:()=>e.onBack()}),bt(ol,{translationKey:"walletModal.wallets",children:"Wallets"}),bt(xs,{get maxHeight(){return ys()?void 0:510},get children(){return bt(il,{get children(){return bt(Et,{get each(){return ys()?e.walletsList.filter(el):e.walletsList},children:t=>(()=>{const n=ll.cloneNode(!0);return Vt(n,bt(al,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}})}})]}}),ul={m:"16px",s:"12px",none:"0"},dl={m:"6px",s:"6px",none:"0"},hl=bn.div`
681
+ `,yl=Wt("<li></li>"),bl=e=>bt(pl,{"data-tc-wallets-modal-list":"true",get children(){return[bt(ml,{icon:"arrow",onClick:()=>e.onBack()}),bt(gl,{translationKey:"walletModal.wallets",children:"Wallets"}),bt($s,{get maxHeight(){return As()?void 0:510},get children(){return bt(wl,{get children(){return bt(Et,{get each(){return As()?e.walletsList.filter(dl):e.walletsList},children:t=>(()=>{const n=yl.cloneNode(!0);return Vt(n,bt(vl,{wallet:t,onClick:()=>e.onSelect(t)})),n})()})}})}})]}}),Cl={m:"16px",s:"12px",none:"0"},xl={m:"6px",s:"6px",none:"0"},_l=bn.div`
682
682
  display: flex;
683
683
  flex-direction: column;
684
- `,fl=bn.div`
684
+ `,kl=bn.div`
685
685
  flex: 1;
686
686
  margin-top: ${e=>e.qr?"0":"18px"};
687
687
  display: flex;
@@ -689,76 +689,76 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
689
689
  align-items: center;
690
690
  justify-content: center;
691
691
  min-height: 232px;
692
- `,gl=bn(Fo)`
692
+ `,Sl=bn(ti)`
693
693
  margin-bottom: 24px;
694
- `,pl=bn(ci)`
694
+ `,El=bn(bi)`
695
695
  max-width: 288px;
696
696
  margin: 0 auto 2px;
697
- `,wl=bn(di)`
697
+ `,Rl=bn(xi)`
698
698
  max-width: 288px;
699
699
  text-align: center;
700
700
  margin: 0 auto 20px;
701
- `,ml=bn(lo)`
701
+ `,Ll=bn(bo)`
702
702
  position: absolute;
703
703
  top: 16px;
704
704
  left: 16px;
705
- `,vl=bn.div`
705
+ `,Tl=bn.div`
706
706
  display: flex;
707
707
  justify-content: center;
708
708
  gap: 8px;
709
709
  padding-bottom: 16px;
710
- `,yl=bn(vl)`
710
+ `,Al=bn(Tl)`
711
711
  padding-bottom: 0;
712
- `,bl=bn(zr)`
712
+ `,Ml=bn(oo)`
713
713
  margin-bottom: 24px;
714
- `,Cl=bn(Ai)`
714
+ `,Ol=bn(Bi)`
715
715
  margin-bottom: 18px;
716
716
  margin-top: 2px;
717
- `,xl=bn(Si)`
717
+ `,$l=bn(Ni)`
718
718
  margin-bottom: 16px;
719
- `,_l=bn(di)`
719
+ `,Pl=bn(xi)`
720
720
  color: ${e=>e.theme.colors.text.secondary};
721
721
  text-align: center;
722
722
  margin-bottom: 20px;
723
- `,kl=bn(zr)`
723
+ `,Il=bn(oo)`
724
724
  margin-top: -8px;
725
725
  margin-bottom: 24px;
726
726
  width: 100%;
727
727
  padding: 12px 12px 12px 20px;
728
- border-radius: ${e=>ul[e.theme.borderRadius]};
728
+ border-radius: ${e=>Cl[e.theme.borderRadius]};
729
729
  font-size: 16px;
730
730
  line-height: 20px;
731
- `,Sl=bn(Ur)`
731
+ `,Nl=bn(Zr)`
732
732
  width: 32px;
733
733
  height: 32px;
734
- border-radius: ${e=>dl[e.theme.borderRadius]};
735
- `,El=e=>{const[t]=Zo();return ze((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))},Ll=e=>{const[t,n]=Ve("mobile"),[r,o]=Ve(!1),[i,s]=Ve(),a=et(nr);Qe(a.onStatusChange((()=>{}),(()=>{e.wallet.appName!==ds&&o(!0)})));const l=()=>{s(a.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))};qe((()=>{"extension"!==Ye(t)&&(el(e.wallet)||Xa(e.wallet))&&l()}));const c=()=>{o(!1),"extension"===t()&&l(),n("mobile"),Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},u=()=>{o(!1),"extension"===t()&&l(),n("desktop"),Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),$n(Pn(i(),Ga.returnStrategy))},d=()=>{Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),$n(Pn(i(),{returnStrategy:Ga.returnStrategy,twaReturnUrl:Ga.twaReturnUrl}))},h=()=>{o(!1),n("extension"),he(e.wallet)&&(Yn(e.wallet),a.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return el(e.wallet)?c():tl(e.wallet)?h():u(),bt(hl,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[bt(ml,{icon:"arrow",onClick:()=>e.onBackClick()}),bt(pl,{get children(){return e.wallet.name}}),bt(Lt,{get when(){return"mobile"===t()},get children(){return bt(wl,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",ze((()=>e.wallet.name)),"’s camera"]}})}}),bt(fl,{get qr(){return"mobile"===t()},get children(){return bt(Rt,{get children(){return[bt(At,{get when(){return"mobile"===t()},get children(){return bt(gl,{disableCopy:!1,get sourceUrl(){return Pn(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),bt(At,{get when(){return r()},get children(){return[bt(xl,{size:"s"}),bt(_l,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),bt(vl,{get children(){return bt(zr,{get leftIcon(){return bt(Hi,{})},get onClick(){return"extension"===t()?h:u},get children(){return bt(El,{translationKey:"common.retry",children:"Retry"})}})}})]}}),bt(At,{get when(){return"extension"===t()},get children(){return[bt(Lt,{get when(){return he(e.wallet)},get children(){return[bt(Cl,{size:"s"}),bt(_l,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name))," browser extension…"]}}),bt(vl,{get children(){return bt(zr,{get leftIcon(){return bt(Hi,{})},onClick:h,get children(){return bt(El,{translationKey:"common.retry",children:"Retry"})}})}})]}}),bt(Lt,{get when(){return!he(e.wallet)},get children(){return[bt(_l,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",ze((()=>e.wallet.name))," browser extension"]}}),bt(vl,{get children(){return bt(ks,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(zr,{get rightIcon(){return bt(Vi,{})},onClick:h,get children(){return bt(El,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",ze((()=>e.wallet.name))]}})}})}})}})]}})]}}),bt(At,{get when(){return"desktop"===t()},get children(){return[bt(Ai,{size:"m"}),bt(_l,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name))," on desktop…"]}}),bt(vl,{get children(){return[bt(zr,{get leftIcon(){return bt(Hi,{})},onClick:u,get children(){return bt(El,{translationKey:"common.retry",children:"Retry"})}}),bt(ks,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(zr,{get rightIcon(){return bt(Vi,{})},get children(){return bt(El,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",ze((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),bt(Lt,{get when(){return e.wallet.appName===ds},get children(){return bt(kl,{get rightIcon(){return bt(Sl,{get src(){return fs}})},scale:"s",onClick:d,get children(){return bt(El,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet on Telegram on desktop"})}})}}),bt(Lt,{get when(){return e.wallet.appName!==ds},get children(){return bt(yl,{get children(){return[bt(Lt,{get when(){return ze((()=>"mobile"!==t()))()&&el(e.wallet)},get children(){return bt(bl,{appearance:"secondary",get leftIcon(){return bt(Ui,{})},onClick:c,get children(){return bt(El,{translationKey:"common.mobile",children:"Mobile"})}})}}),bt(Lt,{get when(){return ze((()=>"extension"!==t()))()&&tl(e.wallet)},get children(){return bt(bl,{appearance:"secondary",get leftIcon(){return bt(Ii,{})},onClick:h,get children(){return bt(El,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),bt(Lt,{get when(){return ze((()=>"desktop"!==t()))()&&Xa(e.wallet)},get children(){return bt(bl,{appearance:"secondary",get leftIcon(){return bt(ji,{})},onClick:u,get children(){return bt(El,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},Rl=bn.div``,Al=bn(lo)`
734
+ border-radius: ${e=>xl[e.theme.borderRadius]};
735
+ `,Ul=e=>{const[t]=ii();return ze((()=>{var n;return t(e.translationKey,e.translationValues,null==(n=e.children)?void 0:n.toString())}))},Wl=e=>{const[t,n]=Ve("mobile"),[r,o]=Ve(!1),[i,s]=Ve(),[a,l]=Ve(!0),c=et(fr);Qe(c.onStatusChange((()=>{}),(()=>{e.wallet.appName!==xs&&o(!0)})));const u=()=>{s(c.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))};qe((()=>{"extension"!==Ye(t)&&(dl(e.wallet)||ul(e.wallet))&&u()}));const d=()=>{o(!1),"extension"===t()&&u(),n("mobile"),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},h=()=>{o(!1),"extension"===t()&&u(),n("desktop"),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),Vn(Dn(i(),sl.returnStrategy))},f=()=>{const t=!a();l(!1),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),Qn(i(),{returnStrategy:sl.returnStrategy,twaReturnUrl:sl.twaReturnUrl,forceRedirect:t})},p=()=>{o(!1),n("extension"),he(e.wallet)&&(ar(e.wallet),c.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest))};return dl(e.wallet)?d():hl(e.wallet)?p():h(),bt(_l,{"data-tc-wallets-modal-connection-desktop":"true",get children(){return[bt(Ll,{icon:"arrow",onClick:()=>e.onBackClick()}),bt(El,{get children(){return e.wallet.name}}),bt(Rt,{get when(){return"mobile"===t()},get children(){return bt(Rl,{translationKey:"walletModal.desktopConnectionModal.scanQR",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan the QR code below with your phone’s or ",ze((()=>e.wallet.name)),"’s camera"]}})}}),bt(kl,{get qr(){return"mobile"===t()},get children(){return bt(Lt,{get children(){return[bt(Tt,{get when(){return"mobile"===t()},get children(){return bt(Sl,{disableCopy:!1,get sourceUrl(){return Dn(i(),"none")},get imageUrl(){return e.wallet.imageUrl}})}}),bt(Tt,{get when(){return r()},get children(){return[bt($l,{size:"s"}),bt(Pl,{translationKey:"walletModal.desktopConnectionModal.connectionDeclined",children:"Connection declined"}),bt(Tl,{get children(){return bt(oo,{get leftIcon(){return bt(Ji,{})},get onClick(){return"extension"===t()?p:h},get children(){return bt(Ul,{translationKey:"common.retry",children:"Retry"})}})}})]}}),bt(Tt,{get when(){return"extension"===t()},get children(){return[bt(Rt,{get when(){return he(e.wallet)},get children(){return[bt(Ol,{size:"s"}),bt(Pl,{translationKey:"walletModal.desktopConnectionModal.continueInExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name))," browser extension…"]}}),bt(Tl,{get children(){return bt(oo,{get leftIcon(){return bt(Ji,{})},onClick:p,get children(){return bt(Ul,{translationKey:"common.retry",children:"Retry"})}})}})]}}),bt(Rt,{get when(){return!he(e.wallet)},get children(){return[bt(Pl,{translationKey:"walletModal.desktopConnectionModal.dontHaveExtension",get translationValues(){return{name:e.wallet.name}},get children(){return["Seems you don't have installed ",ze((()=>e.wallet.name))," browser extension"]}}),bt(Tl,{get children(){return bt(Is,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(oo,{get rightIcon(){return bt(es,{})},onClick:p,get children(){return bt(Ul,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",ze((()=>e.wallet.name))]}})}})}})}})]}})]}}),bt(Tt,{get when(){return"desktop"===t()},get children(){return[bt(Bi,{size:"m"}),bt(Pl,{translationKey:"walletModal.desktopConnectionModal.continueOnDesktop",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name))," on desktop…"]}}),bt(Tl,{get children(){return[bt(oo,{get leftIcon(){return bt(Ji,{})},onClick:h,get children(){return bt(Ul,{translationKey:"common.retry",children:"Retry"})}}),bt(Is,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(oo,{get rightIcon(){return bt(es,{})},get children(){return bt(Ul,{translationKey:"walletModal.desktopConnectionModal.getWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Get ",ze((()=>e.wallet.name))]}})}})}})]}})]}})]}})}}),bt(Rt,{get when(){return e.wallet.appName===xs},get children(){return bt(Il,{get rightIcon(){return bt(Nl,{get src(){return ks}})},scale:"s",onClick:f,get children(){return bt(Ul,{translationKey:"walletModal.desktopConnectionModal.openWalletOnTelegram",children:"Open Wallet in Telegram on desktop"})}})}}),bt(Rt,{get when(){return e.wallet.appName!==xs},get children(){return bt(Al,{get children(){return[bt(Rt,{get when(){return ze((()=>"mobile"!==t()))()&&dl(e.wallet)},get children(){return bt(Ml,{appearance:"secondary",get leftIcon(){return bt(Zi,{})},onClick:d,get children(){return bt(Ul,{translationKey:"common.mobile",children:"Mobile"})}})}}),bt(Rt,{get when(){return ze((()=>"extension"!==t()))()&&hl(e.wallet)},get children(){return bt(Ml,{appearance:"secondary",get leftIcon(){return bt(qi,{})},onClick:p,get children(){return bt(Ul,{translationKey:"common.browserExtension",children:"Browser Extension"})}})}}),bt(Rt,{get when(){return ze((()=>"desktop"!==t()))()&&ul(e.wallet)},get children(){return bt(Ml,{appearance:"secondary",get leftIcon(){return bt(Yi,{})},onClick:h,get children(){return bt(Ul,{translationKey:"common.desktop",children:"Desktop"})}})}})]}})}})]}})},jl=bn.div``,Bl=bn(bo)`
736
736
  position: absolute;
737
737
  top: 16px;
738
738
  left: 16px;
739
- `,Tl=bn(ci)`
739
+ `,Hl=bn(bi)`
740
740
  margin-bottom: 18px;
741
- `,Ml=bn.div`
741
+ `,Kl=bn.div`
742
742
  padding: 16px 0;
743
743
  display: flex;
744
744
  flex-direction: column;
745
745
  align-items: center;
746
- `,Ol=gn`
746
+ `,Vl=pn`
747
747
  margin-bottom: 12px;
748
- `,$l=bn(fi)`
748
+ `,Dl=bn(ki)`
749
749
  text-align: center;
750
750
  margin-bottom: 4px;
751
- `,Pl=bn(Yo)`
751
+ `,Fl=bn(ai)`
752
752
  text-align: center;
753
753
  max-width: 352px;
754
754
  color: ${e=>e.theme.colors.text.secondary};
755
- `,Il=bn.div`
755
+ `,ql=bn.div`
756
756
  padding: 16px 24px 24px;
757
757
  display: flex;
758
758
  align-items: center;
759
759
  justify-content: center;
760
760
  gap: 8px;
761
- `,Nl="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",Ul=e=>bt(Rl,{"data-tc-wallets-modal-info":"true",get children(){return[bt(Al,{icon:"arrow",onClick:()=>e.onBackClick()}),bt(Tl,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),bt(xs,{get children(){return[bt(Ml,{get children(){return[bt(zi,{class:Ol}),bt($l,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),bt(Pl,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),bt(Ml,{get children(){return[bt(Gi,{class:Ol}),bt($l,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),bt(Pl,{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."})]}}),bt(Ml,{get children(){return[bt(Qi,{class:Ol}),bt($l,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),bt(Pl,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),bt(Il,{get children(){return bt(ks,{get href(){return Nl},blank:!0,get children(){return bt(zr,{get rightIcon(){return bt(Di,{})},get children(){return bt(El,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),Wl=bn.div``,jl=bn.div`
761
+ `,zl="https://ton.org/wallets?filters[wallet_features][slug][$in]=dapp-auth&pagination[limit]=-1",Zl=e=>bt(jl,{"data-tc-wallets-modal-info":"true",get children(){return[bt(Bl,{icon:"arrow",onClick:()=>e.onBackClick()}),bt(Hl,{translationKey:"walletModal.infoModal.whatIsAWallet",children:"What is a wallet"}),bt($s,{get children(){return[bt(Kl,{get children(){return[bt(os,{class:Vl}),bt(Dl,{translationKey:"walletModal.infoModal.secureDigitalAssets",children:"Secure digital assets storage"}),bt(Fl,{translationKey:"walletModal.infoModal.walletProtects",children:"A wallet protects and manages your digital assets including TON, tokens and collectables."})]}}),bt(Kl,{get children(){return[bt(ss,{class:Vl}),bt(Dl,{translationKey:"walletModal.infoModal.controlIdentity",children:"Control your Web3 identity"}),bt(Fl,{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."})]}}),bt(Kl,{get children(){return[bt(ls,{class:Vl}),bt(Dl,{translationKey:"walletModal.infoModal.effortlessCryptoTransactions",children:"Effortless crypto transactions"}),bt(Fl,{translationKey:"walletModal.infoModal.easilySend",children:"Easily send, receive, monitor your cryptocurrencies. Streamline your operations with decentralized applications."})]}}),bt(ql,{get children(){return bt(Is,{get href(){return zl},blank:!0,get children(){return bt(oo,{get rightIcon(){return bt(ns,{})},get children(){return bt(Ul,{translationKey:"walletModal.infoModal.getAWallet",children:"Get a Wallet"})}})}})}})]}})]}}),Gl=bn.div``,Yl=bn.div`
762
762
  flex: 1;
763
763
  margin-top: 18px;
764
764
  display: flex;
@@ -766,49 +766,49 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
766
766
  align-items: center;
767
767
  justify-content: center;
768
768
  min-height: 232px;
769
- `,Bl=bn(ci)`
769
+ `,Ql=bn(bi)`
770
770
  max-width: 262px;
771
771
  margin: 0 auto 8px;
772
- `,Hl=bn(lo)`
772
+ `,Jl=bn(bo)`
773
773
  position: absolute;
774
774
  top: 16px;
775
775
  left: 16px;
776
- `,Kl=bn.div`
776
+ `,Xl=bn.div`
777
777
  padding: 16px;
778
778
  display: flex;
779
779
  align-items: center;
780
780
  gap: 12px;
781
781
  border-top: 0.5px solid ${e=>En(e.theme.colors.icon.secondary,.2)};
782
- `,Vl=bn(Ur)`
782
+ `,ec=bn(Zr)`
783
783
  width: 36px;
784
784
  height: 36px;
785
785
  border-radius: 10px;
786
- `,Fl=bn(ks)`
786
+ `,tc=bn(Is)`
787
787
  margin-left: auto;
788
- `,Dl=bn(Ai)`
788
+ `,nc=bn(Bi)`
789
789
  margin-bottom: 18px;
790
790
  margin-top: 2px;
791
- `,ql=bn(Si)`
791
+ `,rc=bn(Ni)`
792
792
  margin-bottom: 16px;
793
- `,zl=bn(di)`
793
+ `,oc=bn(xi)`
794
794
  color: ${e=>e.theme.colors.text.secondary};
795
795
  text-align: center;
796
796
  margin-bottom: 20px;
797
- `,Zl=bn.div`
797
+ `,ic=bn.div`
798
798
  display: flex;
799
799
  justify-content: center;
800
800
  gap: 8px;
801
801
  padding-bottom: 16px;
802
- `,Gl=bn(ci)`
802
+ `,sc=bn(bi)`
803
803
  margin-bottom: 2px;
804
804
  padding: 0 64px;
805
- `,Yl=bn(di)`
805
+ `,ac=bn(xi)`
806
806
  margin-bottom: 20px;
807
807
  padding: 0 64px;
808
808
  min-height: 44px;
809
- `,Ql=bn.div`
809
+ `,lc=bn.div`
810
810
  padding: 0 24px 24px;
811
- `,Jl=e=>[bt(Gl,{get children(){return e.walletInfo.name}}),bt(Yl,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",ze((()=>e.walletInfo.name)),"’s camera"]}}),bt(Ql,{get children(){return bt(Fo,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Pn(e.universalLink,"none")},disableCopy:!0})}})],Xl=e=>{const t=vn(),[n,r]=Ve(!1),[o,i]=Ve(!1),s=et(nr),a=s.onStatusChange((()=>{}),(()=>{i(!0)})),l=ze((()=>s.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))),c=()=>{i(!1),Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),$n(Pn(l(),Ga.returnStrategy))},u=()=>{i(!1),r(!0),Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},d=()=>{n()?(r(!1),Yn(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return Qe(a),c(),bt(Wl,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[bt(Hl,{icon:"arrow",onClick:d}),bt(Lt,{get when(){return n()},get children(){return bt(Jl,{get universalLink(){return l()},get walletInfo(){return e.wallet}})}}),bt(Lt,{get when(){return!n()},get children(){return[bt(Bl,{get children(){return e.wallet.name}}),bt(jl,{get children(){return[bt(Lt,{get when(){return o()},get children(){return[bt(ql,{size:"s"}),bt(zl,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),bt(Zl,{get children(){return[bt(zr,{get leftIcon(){return bt(Hi,{})},onClick:c,get children(){return bt(El,{translationKey:"common.retry",children:"Retry"})}}),bt(zr,{get leftIcon(){return bt(is,{get fill(){return t.colors.accent}})},onClick:u,get children(){return bt(El,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),bt(Lt,{get when(){return!o()},get children(){return[bt(Dl,{size:"s"}),bt(zl,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name)),"…"]}}),bt(Zl,{get children(){return[bt(zr,{get leftIcon(){return bt(Hi,{})},onClick:c,get children(){return bt(El,{translationKey:"common.retry",children:"Retry"})}}),bt(zr,{get leftIcon(){return bt(is,{get fill(){return t.colors.accent}})},onClick:u,get children(){return bt(El,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),bt(Kl,{get children(){return[bt(Vl,{get src(){return e.wallet.imageUrl}}),bt(fi,{get children(){return e.wallet.name}}),bt(Fl,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(zr,{get children(){return bt(El,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},ec={m:"16px",s:"12px",none:"0"},tc={m:"6px",s:"6px",none:"0"},nc=bn.ul`
811
+ `,cc=e=>[bt(sc,{get children(){return e.walletInfo.name}}),bt(ac,{translationKey:"walletModal.mobileConnectionModal.scanQR",get translationValues(){return{name:e.walletInfo.name}},get children(){return["Scan the QR code below with your phone’s or ",ze((()=>e.walletInfo.name)),"’s camera"]}}),bt(lc,{get children(){return bt(ti,{get imageUrl(){return e.walletInfo.imageUrl},get sourceUrl(){return Dn(e.universalLink,"none")},disableCopy:!0})}})],uc=e=>{const t=vn(),[n,r]=Ve(!1),[o,i]=Ve(!1),s=et(fr),a=s.onStatusChange((()=>{}),(()=>{i(!0)})),l=ze((()=>s.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest))),c=()=>{i(!1),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"})),Vn(Dn(l(),sl.returnStrategy))},u=()=>{i(!1),r(!0),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"qrcode"}))},d=()=>{n()?(r(!1),ar(__spreadProps(__spreadValues({},e.wallet),{openMethod:"universal-link"}))):e.onBackClick()};return Qe(a),c(),bt(Gl,{"data-tc-wallets-modal-connection-mobile":"true",get children(){return[bt(Jl,{icon:"arrow",onClick:d}),bt(Rt,{get when(){return n()},get children(){return bt(cc,{get universalLink(){return l()},get walletInfo(){return e.wallet}})}}),bt(Rt,{get when(){return!n()},get children(){return[bt(Ql,{get children(){return e.wallet.name}}),bt(Yl,{get children(){return[bt(Rt,{get when(){return o()},get children(){return[bt(rc,{size:"s"}),bt(oc,{translationKey:"walletModal.mobileConnectionModal.connectionDeclined",children:"Connection declined"}),bt(ic,{get children(){return[bt(oo,{get leftIcon(){return bt(Ji,{})},onClick:c,get children(){return bt(Ul,{translationKey:"common.retry",children:"Retry"})}}),bt(oo,{get leftIcon(){return bt(ws,{get fill(){return t.colors.accent}})},onClick:u,get children(){return bt(Ul,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}}),bt(Rt,{get when(){return!o()},get children(){return[bt(nc,{size:"s"}),bt(oc,{translationKey:"walletModal.mobileConnectionModal.continueIn",get translationValues(){return{name:e.wallet.name}},get children(){return["Continue in ",ze((()=>e.wallet.name)),"…"]}}),bt(ic,{get children(){return[bt(oo,{get leftIcon(){return bt(Ji,{})},onClick:c,get children(){return bt(Ul,{translationKey:"common.retry",children:"Retry"})}}),bt(oo,{get leftIcon(){return bt(ws,{get fill(){return t.colors.accent}})},onClick:u,get children(){return bt(Ul,{translationKey:"walletModal.mobileConnectionModal.showQR",children:"Show QR Code"})}})]}})]}})]}}),bt(Xl,{get children(){return[bt(ec,{get src(){return e.wallet.imageUrl}}),bt(ki,{get children(){return e.wallet.name}}),bt(tc,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return bt(oo,{get children(){return bt(Ul,{translationKey:"common.get",children:"GET"})}})}})]}})]}})]}})},dc={m:"16px",s:"12px",none:"0"},hc={m:"6px",s:"6px",none:"0"},fc=bn.ul`
812
812
  display: flex;
813
813
  justify-content: space-between;
814
814
  margin: 0 auto;
@@ -830,7 +830,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
830
830
  > li {
831
831
  height: fit-content;
832
832
  }
833
- `,rc=bn.li`
833
+ `,pc=bn.li`
834
834
  width: 82px;
835
835
  min-width: 82px;
836
836
  height: 124px;
@@ -844,7 +844,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
844
844
 
845
845
  transition: transform 0.1s ease-in-out;
846
846
 
847
- ${Kr} {
847
+ ${Xr} {
848
848
  &:hover {
849
849
  transform: scale(1.04);
850
850
  }
@@ -854,12 +854,12 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
854
854
  transform: scale(0.96);
855
855
  }
856
856
 
857
- ${Hr} {
857
+ ${Jr} {
858
858
  &:active {
859
859
  transform: scale(0.92);
860
860
  }
861
861
  }
862
- `,oc=bn.div`
862
+ `,gc=bn.div`
863
863
  width: 1px;
864
864
  margin: 0 10px;
865
865
  height: 24px;
@@ -868,31 +868,31 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
868
868
 
869
869
  background-color: ${e=>e.theme.colors.icon.secondary};
870
870
  opacity: 0.2;
871
- `,ic=bn.div`
871
+ `,wc=bn.div`
872
872
  width: 60px;
873
873
  height: 60px;
874
- border-radius: ${e=>ec[e.theme.borderRadius]};
874
+ border-radius: ${e=>dc[e.theme.borderRadius]};
875
875
  display: flex;
876
876
  align-items: center;
877
877
  justify-content: center;
878
878
 
879
879
  background-color: ${e=>e.theme.colors.background.tint};
880
880
  margin-bottom: 8px;
881
- `,sc=bn(ci)`
881
+ `,mc=bn(bi)`
882
882
  margin-top: 38px;
883
883
  margin-bottom: 4px;
884
884
  padding: 0 24px;
885
- `,ac=bn(di)`
885
+ `,vc=bn(xi)`
886
886
  margin-bottom: 24px;
887
887
  padding: 0 24px;
888
888
  min-height: 44px;
889
- `;bn(zr)`
889
+ `;bn(oo)`
890
890
  display: block;
891
891
  margin: 0 auto;
892
- `;const lc=bn(zr)`
892
+ `;const yc=bn(oo)`
893
893
  margin: 0 24px 24px;
894
894
  width: calc(100% - 48px);
895
- border-radius: ${e=>ec[e.theme.borderRadius]};
895
+ border-radius: ${e=>dc[e.theme.borderRadius]};
896
896
  padding: 14px 16px 14px 14px;
897
897
  background-color: ${e=>e.theme.colors.telegramButton};
898
898
 
@@ -900,49 +900,49 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
900
900
  font-weight: 590;
901
901
  font-size: 16px;
902
902
  line-height: 20px;
903
- `,cc=bn(Ur)`
904
- border-radius: ${e=>tc[e.theme.borderRadius]};
903
+ `,bc=bn(Zr)`
904
+ border-radius: ${e=>hc[e.theme.borderRadius]};
905
905
  width: 24px;
906
906
  height: 24px;
907
- `,uc=bn(lo)`
907
+ `,Cc=bn(bo)`
908
908
  position: absolute;
909
909
  top: 16px;
910
910
  left: 16px;
911
- `,dc=bn(ci)`
911
+ `,xc=bn(bi)`
912
912
  margin-bottom: 2px;
913
913
  padding: 0 64px;
914
- `,hc=bn(di)`
914
+ `,_c=bn(xi)`
915
915
  margin-bottom: 20px;
916
916
  padding: 0 64px;
917
- `,fc=bn.div`
917
+ `,kc=bn.div`
918
918
  padding: 0 24px 24px;
919
- `,gc=e=>[bt(dc,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(hc,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),bt(fc,{get children(){return bt(Fo,{get imageUrl(){return hs},get sourceUrl(){return Pn(e.universalLink,"none")},disableCopy:!0})}})],pc=Wt("<li></li>"),wc=Wt('<div data-tc-wallets-modal-universal-mobile="true"></div>'),mc=e=>{const[t,n]=Ve(!1),r=Ga.connector,o=()=>e.walletsList.filter((e=>el(e)&&e.appName!==ds)),i=()=>o().length>7,s=()=>r.connect([...new Set(e.walletsList.filter(pe).map((e=>e.bridgeUrl))).values()].map((e=>({bridgeUrl:e}))),e.additionalRequest);Yn({openMethod:"universal-link"});const[a,l]=Ve(void 0),c=()=>__async(this,null,(function*(){void 0!==a()&&clearTimeout(a()),yield Ko(s());const e=setTimeout((()=>l(void 0)),1500);l(e)})),u=()=>{$n(Pn(s(),Ga.returnStrategy))},d=()=>{const t=e.walletsList.find((e=>e.appName===ds));if(!t||!pe(t))throw new On("@wallet bot not found in the wallets list");$n(Pn(r.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),{returnStrategy:Ga.returnStrategy,twaReturnUrl:Ga.twaReturnUrl}))},h=()=>{n(!0),Yn({openMethod:"qrcode"})},f=()=>{n(!1),Yn({openMethod:"universal-link"})};return(()=>{const n=wc.cloneNode(!0);return Vt(n,bt(Lt,{get when(){return t()},get children(){return[bt(uc,{icon:"arrow",onClick:f}),bt(gc,{get universalLink(){return s()}})]}}),null),Vt(n,bt(Lt,{get when(){return!t()},get children(){return[bt(uc,{get icon(){return bt(is,{})},onClick:h}),bt(sc,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(ac,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",children:"Open Wallet on Telegram or select your wallet to connect"}),bt(lc,{get leftIcon(){return bt(Xi,{})},get rightIcon(){return bt(cc,{get src(){return fs}})},onClick:d,scale:"s",get children(){return bt(El,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet on Telegram"})}}),bt(nc,{get children(){return[bt(Et,{get each(){return ze((()=>!!i()))()?o().slice(0,4):o()},children:t=>(()=>{const n=pc.cloneNode(!0);return Vt(n,bt(ai,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),bt(Lt,{get when(){return i()},get children(){const t=pc.cloneNode(!0);return Vt(t,bt(us,{labelLine1:"View all",labelLine2:"wallets",get images(){return o().slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})),t}}),bt(oc,{children:" "}),bt(rc,{onClick:u,get children(){return[bt(ic,{get children(){return bt(pi,{})}}),bt(Yo,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),bt(rc,{onClick:c,get children(){return[bt(ic,{get children(){return ze((()=>void 0!==a()))()?bt(ts,{}):bt(rs,{})}}),bt(Yo,{fontWeight:590,get translationKey(){return void 0!==a()?"common.copied":"common.copyLink"},get children(){return void 0!==a()?"Copied":"Copy Link"}})]}})]}})]}}),null),n})()},vc={m:"16px",s:"8px",none:"0"},yc={m:"8px",s:"4px",none:"0"},bc=bn.div`
919
+ `,Sc=e=>[bt(xc,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(_c,{translationKey:"walletModal.mobileUniversalModal.scan",children:"Scan with your mobile wallet"}),bt(kc,{get children(){return bt(ti,{get imageUrl(){return _s},get sourceUrl(){return Dn(e.universalLink,"none")},disableCopy:!0})}})],Ec=Wt("<li></li>"),Rc=Wt('<div data-tc-wallets-modal-universal-mobile="true"></div>'),Lc=e=>{const[t,n]=Ve(!1),[r,o]=Ve(!0),i=sl.connector,s=()=>e.walletsList.filter((e=>dl(e)&&e.appName!==xs)),a=()=>s().length>7,l=()=>i.connect([...new Set(e.walletsList.filter(ge).map((e=>e.bridgeUrl))).values()].map((e=>({bridgeUrl:e}))),e.additionalRequest);ar({openMethod:"universal-link"});const[c,u]=Ve(void 0),d=()=>__async(this,null,(function*(){void 0!==c()&&clearTimeout(c()),yield Xo(l());const e=setTimeout((()=>u(void 0)),1500);u(e)})),h=()=>{Vn(Dn(l(),sl.returnStrategy))},f=()=>{const t=e.walletsList.find((e=>e.appName===xs));if(!t||!ge(t))throw new On("@wallet bot not found in the wallets list");const n=i.connect({bridgeUrl:t.bridgeUrl,universalLink:t.universalLink},e.additionalRequest),s=!r();o(!1),Qn(n,{returnStrategy:sl.returnStrategy,twaReturnUrl:sl.twaReturnUrl,forceRedirect:s})},p=()=>{n(!0),ar({openMethod:"qrcode"})},g=()=>{n(!1),ar({openMethod:"universal-link"})};return(()=>{const n=Rc.cloneNode(!0);return Vt(n,bt(Rt,{get when(){return t()},get children(){return[bt(Cc,{icon:"arrow",onClick:g}),bt(Sc,{get universalLink(){return l()}})]}}),null),Vt(n,bt(Rt,{get when(){return!t()},get children(){return[bt(Cc,{get icon(){return bt(ws,{})},onClick:p}),bt(mc,{translationKey:"walletModal.mobileUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(vc,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegramOrSelect",children:"Open Wallet in Telegram or select your wallet to connect"}),bt(yc,{get leftIcon(){return bt(us,{})},get rightIcon(){return bt(bc,{get src(){return ks}})},onClick:f,scale:"s",get children(){return bt(Ul,{translationKey:"walletModal.mobileUniversalModal.openWalletOnTelegram",children:"Open Wallet in Telegram"})}}),bt(fc,{get children(){return[bt(Et,{get each(){return ze((()=>!!a()))()?s().slice(0,4):s()},children:t=>(()=>{const n=Ec.cloneNode(!0);return Vt(n,bt(vi,{get icon(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()}),bt(Rt,{get when(){return a()},get children(){const t=Ec.cloneNode(!0);return Vt(t,bt(Cs,{labelLine1:"View all",labelLine2:"wallets",get images(){return s().slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})),t}}),bt(gc,{children:" "}),bt(pc,{onClick:h,get children(){return[bt(wc,{get children(){return bt(Ei,{})}}),bt(ai,{fontWeight:590,translationKey:"walletModal.mobileUniversalModal.openLink",children:"Open Link"})]}}),bt(pc,{onClick:d,get children(){return[bt(wc,{get children(){return ze((()=>void 0!==c()))()?bt(hs,{}):bt(ps,{})}}),bt(ai,{fontWeight:590,get translationKey(){return void 0!==c()?"common.copied":"common.copyLink"},get children(){return void 0!==c()?"Copied":"Copy Link"}})]}})]}})]}}),null),n})()},Tc={m:"16px",s:"8px",none:"0"},Ac={m:"8px",s:"4px",none:"0"},Mc=bn.div`
920
920
  display: flex;
921
921
  flex-direction: column;
922
922
  align-items: center;
923
923
  padding-bottom: 16px;
924
- `,Cc=bn(di)`
924
+ `,Oc=bn(xi)`
925
925
  max-width: 320px;
926
926
  margin-top: 2px;
927
927
  margin-bottom: 20px;
928
- `,xc=bn(di)`
928
+ `,$c=bn(xi)`
929
929
  margin-bottom: 16px;
930
- `,_c=bn(Fo)`
930
+ `,Pc=bn(ti)`
931
931
  margin-bottom: 24px;
932
- `,kc=bn.ul`
932
+ `,Ic=bn.ul`
933
933
  display: flex;
934
934
  `;bn.div`
935
935
  display: flex;
936
936
  gap: 16px;
937
937
  width: 100%;
938
- `,bn(zr)`
938
+ `,bn(oo)`
939
939
  position: relative;
940
940
  font-size: 16px;
941
941
  line-height: 20px;
942
942
  width: 100%;
943
943
  padding: 0 16px;
944
944
  height: 56px;
945
- border-radius: ${e=>vc[e.theme.borderRadius]};
945
+ border-radius: ${e=>Tc[e.theme.borderRadius]};
946
946
 
947
947
  &:hover {
948
948
  ${e=>e.disableEventsAnimation?"transform: unset;":""}
@@ -961,7 +961,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
961
961
  transform: translateY(-16px);
962
962
 
963
963
  background-color: ${e=>e.theme.colors.background.primary};
964
- border-radius: ${e=>vc[e.theme.borderRadius]};
964
+ border-radius: ${e=>Tc[e.theme.borderRadius]};
965
965
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);
966
966
  `,bn.li`
967
967
  padding: 8px;
@@ -971,7 +971,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
971
971
  gap: 8px;
972
972
 
973
973
  cursor: pointer;
974
- border-radius: ${e=>yc[e.theme.borderRadius]};
974
+ border-radius: ${e=>Ac[e.theme.borderRadius]};
975
975
 
976
976
  transition: background-color, transform 0.1s ease-in-out;
977
977
 
@@ -982,7 +982,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
982
982
  &:active {
983
983
  transform: scale(0.96);
984
984
  }
985
- `,bn(Ur)`
985
+ `,bn(Zr)`
986
986
  width: 24px;
987
987
  height: 24px;
988
988
 
@@ -994,17 +994,17 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
994
994
  display: flex;
995
995
  justify-content: center;
996
996
  align-items: center;
997
- `,bn(Yo)`
997
+ `,bn(ai)`
998
998
  color: ${e=>e.theme.colors.text.secondary};
999
999
  font-size: 16px;
1000
- `;const Sc=Wt("<li></li>"),Ec=e=>{const[t,n]=Ve(!1),r=Ga.connector;Yn({openMethod:"qrcode"});const o=ze((()=>r.connect([...new Set(e.walletsList.filter(pe).map((e=>e.bridgeUrl))).values()].map((e=>({bridgeUrl:e}))),e.additionalRequest)));return bt(bc,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[bt(ci,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(Cc,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),bt(_c,{get sourceUrl(){return Pn(o(),"none")},get disableCopy(){return t()},get imageUrl(){return hs}}),bt(xc,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),bt(kc,{get children(){return[bt(Et,{get each(){return e.walletsList.slice(0,3)},children:t=>(()=>{const n=Sc.cloneNode(!0);return Vt(n,bt(gs,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),bt(us,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})]}})]}})},Lc=()=>{const{locale:e}=Zo()[1];qe((()=>e(Ga.language))),qe((()=>{qn()&&Cs()}));const t=et(nr),n=et(Ss),[r]=Ze((()=>n.getWallets())),[o,i]=Ve(null),[s,a]=Ve("universal"),[l,c]=Ve(!1),u=ze((()=>{if("ready"!==r.state)return null;let e=Ja(r(),Ga.walletsListConfiguration);const t=e.filter(he),n=e.filter((e=>!he(e)));e=(t||[]).concat(n);const o=Ga.preferredWalletAppName,i=e.find((e=>nl(e,o))),s=e.filter((e=>nl(e,o))).length>=2;o&&i&&!s&&(e=[__spreadProps(__spreadValues({},i),{isPreferred:!0})].concat(e.filter((e=>!nl(e,o)))));const a=e.find((e=>nl(e,ds)));return a&&(e=[a].concat(e.filter((e=>!nl(e,ds))))),e})),d=()=>{var e;return"loading"===(null==(e=Ga.connectRequestParameters)?void 0:e.state)},h=ze((()=>{var e;if(!d())return null==(e=Ga.connectRequestParameters)?void 0:e.value})),f=e=>{Dn({status:"closed",closeReason:e}),i(null),c(!1)};return Qe(t.onStatusChange((e=>{e&&f("wallet-selected")}))),bt(qa,{get opened(){return qn()},get enableAndroidBackHandler(){return Ga.enableAndroidBackHandler},onClose:()=>f("action-cancelled"),onClickQuestion:()=>c((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[bt(Lt,{get when(){return l()},get children(){return bt(Ul,{onBackClick:()=>c(!1)})}}),bt(Lt,{get when(){return!l()},get children(){return[bt(Lt,{get when(){return d()||!u()},get children(){return[bt(za,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),bt(Za,{get children(){return bt(Ai,{size:"m"})}})]}}),bt(Lt,{get when(){return ze((()=>!d()))()&&u()},get children(){return bt(Rt,{get children(){return[bt(At,{get when(){return o()},get children(){return bt(tn,{get component(){return ys()?Xl:Ll},get wallet(){return o()},get additionalRequest(){return h()},onBackClick:()=>i(null)})}}),bt(At,{get when(){return"universal"===s()},get children(){return bt(tn,{get component(){return ys()?mc:Ec},onSelect:i,get walletsList(){return u()},get additionalRequest(){return h()},onSelectAllWallets:()=>a("all-wallets")})}}),bt(At,{get when(){return"all-wallets"===s()},get children(){return bt(cl,{get walletsList(){return u()},onBack:()=>a("universal"),onSelect:i})}})]}})}})]}})]}})},Rc=bn.div`
1000
+ `;const Nc=Wt("<li></li>"),Uc=e=>{const[t,n]=Ve(!1),r=sl.connector;ar({openMethod:"qrcode"});const o=ze((()=>r.connect([...new Set(e.walletsList.filter(ge).map((e=>e.bridgeUrl))).values()].map((e=>({bridgeUrl:e}))),e.additionalRequest)));return bt(Mc,{onClick:()=>n(!1),"data-tc-wallets-modal-universal-desktop":"true",get children(){return[bt(bi,{translationKey:"walletModal.desktopUniversalModal.connectYourWallet",children:"Connect your wallet"}),bt(Oc,{translationKey:"walletModal.desktopUniversalModal.scan",children:"Scan with your mobile wallet"}),bt(Pc,{get sourceUrl(){return Dn(o(),"none")},get disableCopy(){return t()},get imageUrl(){return _s}}),bt($c,{translationKey:"walletModal.desktopUniversalModal.availableWallets",children:"Available wallets"}),bt(Ic,{get children(){return[bt(Et,{get each(){return e.walletsList.slice(0,3)},children:t=>(()=>{const n=Nc.cloneNode(!0);return Vt(n,bt(Ss,{wallet:t,onClick:()=>e.onSelect(t)})),n})()}),bt(Cs,{labelLine1:"View all",labelLine2:"wallets",get images(){return e.walletsList.slice(3,7).map((e=>e.imageUrl))},onClick:()=>e.onSelectAllWallets()})]}})]}})},Wc=()=>{const{locale:e}=ii()[1];qe((()=>e(sl.language))),qe((()=>{rr()&&Os()}));const t=et(fr),n=et(Ns),[r]=Ze((()=>n.getWallets())),[o,i]=Ve(null),[s,a]=Ve("universal"),[l,c]=Ve(!1),u=ze((()=>{if("ready"!==r.state)return null;let e=cl(r(),sl.walletsListConfiguration);const t=e.filter(he),n=e.filter((e=>!he(e)));e=(t||[]).concat(n);const o=sl.preferredWalletAppName,i=e.find((e=>fl(e,o))),s=e.filter((e=>fl(e,o))).length>=2;o&&i&&!s&&(e=[__spreadProps(__spreadValues({},i),{isPreferred:!0})].concat(e.filter((e=>!fl(e,o)))));const a=e.find((e=>fl(e,xs)));return a&&(e=[a].concat(e.filter((e=>!fl(e,xs))))),e})),d=()=>{var e;return"loading"===(null==(e=sl.connectRequestParameters)?void 0:e.state)},h=ze((()=>{var e;if(!d())return null==(e=sl.connectRequestParameters)?void 0:e.value})),f=e=>{nr({status:"closed",closeReason:e}),i(null),c(!1)};return Qe(t.onStatusChange((e=>{e&&f("wallet-selected")}))),bt(rl,{get opened(){return rr()},get enableAndroidBackHandler(){return sl.enableAndroidBackHandler},onClose:()=>f("action-cancelled"),onClickQuestion:()=>c((e=>!e)),"data-tc-wallets-modal-container":"true",get children(){return[bt(Rt,{get when(){return l()},get children(){return bt(Zl,{onBackClick:()=>c(!1)})}}),bt(Rt,{get when(){return!l()},get children(){return[bt(Rt,{get when(){return d()||!u()},get children(){return[bt(ol,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),bt(il,{get children(){return bt(Bi,{size:"m"})}})]}}),bt(Rt,{get when(){return ze((()=>!d()))()&&u()},get children(){return bt(Lt,{get children(){return[bt(Tt,{get when(){return o()},get children(){return bt(tn,{get component(){return As()?uc:Wl},get wallet(){return o()},get additionalRequest(){return h()},onBackClick:()=>i(null)})}}),bt(Tt,{get when(){return"universal"===s()},get children(){return bt(tn,{get component(){return As()?Lc:Uc},onSelect:i,get walletsList(){return u()},get additionalRequest(){return h()},onSelectAllWallets:()=>a("all-wallets")})}}),bt(Tt,{get when(){return"all-wallets"===s()},get children(){return bt(bl,{get walletsList(){return u()},onBack:()=>a("universal"),onSelect:i})}})]}})}})]}})]}})},jc=bn.div`
1001
1001
  display: flex;
1002
1002
  flex-direction: column;
1003
1003
  align-items: center;
1004
1004
  padding-bottom: 8px;
1005
- `,Ac=bn(ci)`
1005
+ `,Bc=bn(bi)`
1006
1006
  margin-top: 16px;
1007
- `,Tc=bn(Yo)`
1007
+ `,Hc=bn(ai)`
1008
1008
  font-weight: 510;
1009
1009
  font-size: 16px;
1010
1010
  line-height: 20px;
@@ -1012,7 +1012,7 @@ var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnP
1012
1012
  max-width: 250px;
1013
1013
 
1014
1014
  color: ${e=>e.theme.colors.text.secondary};
1015
- `,Mc=bn(zr)`
1015
+ `,Kc=bn(oo)`
1016
1016
  margin-top: 32px;
1017
- `,Oc=e=>{const t=qr(e),n=et(Ss);let r;(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||Y(n.wallet.universalLink)&&Bn())&&(r=n.wallet.universalLink);const o=()=>{const e=Qn(),t="returnStrategy"in e?e.returnStrategy:Ga.returnStrategy;Y(r)?jn(r,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:Ga.twaReturnUrl}):$n(Pn(r,t))};return bt(Rc,kt(t,{get children(){return[ze((()=>e.icon)),bt(Ac,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),bt(Tc,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),bt(Lt,{get when(){return"open-wallet"!==e.showButton},get children(){return bt(Mc,{onClick:()=>e.onClose(),get children(){return bt(El,{translationKey:"common.close",children:"Close"})}})}}),bt(Lt,{get when(){return"open-wallet"===e.showButton&&r},get children(){return bt(Mc,{onClick:o,get children(){return bt(El,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}}))},$c=e=>{const t=et(Ss),[n]=Zo();return bt(Oc,{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 bt(Ai,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Pc=e=>bt(Oc,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return bt(Si,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),Ic=e=>bt(Oc,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return bt(Ci,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Nc=()=>bt(So,{get opened(){var e;return ze((()=>null!==Qn()))()&&!0===(null==(e=Qn())?void 0:e.openModal)},get enableAndroidBackHandler(){return Ga.enableAndroidBackHandler},onClose:()=>Jn(null),"data-tc-actions-modal-container":"true",get children(){return bt(Rt,{get children(){return[bt(At,{get when(){return"transaction-sent"===Qn().name},get children(){return bt(Ic,{onClose:()=>Jn(null)})}}),bt(At,{get when(){return"transaction-canceled"===Qn().name},get children(){return bt(Pc,{onClose:()=>Jn(null)})}}),bt(At,{get when(){return"confirm-transaction"===Qn().name},get children(){return bt($c,{onClose:()=>Jn(null)})}})]}})}}),Uc=e=>{const t=qo(er,Ga.language);return customElements.define(xn,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),bt(zo.Provider,{value:t,get children(){return bt(Ss.Provider,{get value(){return e.tonConnectUI},get children(){return bt(nr.Provider,{get value(){return Ga.connector},get children(){return[bt(Sn,{}),bt(mn,{theme:Mr,get children(){return[bt(Lt,{get when(){return Ga.buttonRootId},get children(){return bt(en,{get mount(){return document.getElementById(Ga.buttonRootId)},get children(){return bt(Da,{})}})}}),bt(tn,{component:xn,get children(){return[bt(Lc,{}),bt(Nc,{})]}})]}})]}})}})}})},Wc=()=>{setTimeout((()=>Dn({status:"opened",closeReason:null})))},jc=e=>{setTimeout((()=>Dn({status:"closed",closeReason:e})))},Bc=e=>{setTimeout((()=>Jn(e)))},Hc=()=>{setTimeout((()=>Jn(null)))},Kc=()=>Zn(),Vc=()=>Yn(null),Fc=(e,t)=>function(e,t,n,r={}){let o;return Ke((r=>{o=r,t===document?e():Vt(t,e(),t.firstChild?null:void 0,n)}),r.owner),()=>{o(),t.textContent=""}}((()=>bt(Uc,{tonConnectUI:t})),document.getElementById(e));class Dc{constructor(e){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"state",Fn()),this.connector=e.connector,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,qe((()=>{const e=Fn();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return __async(this,null,(function*(){const e=(yield this.connector.getWallets()).find(fe);return e?this.connectEmbeddedWallet(e):this.connectExternalWallet()}))}close(){jc("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{Yn(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Ga.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}connectExternalWallet(){return __async(this,null,(function*(){return Wc(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class qc{constructor(e){__publicField(this,"connector"),__publicField(this,"consumers",[]),this.connector=e.connector,qe((()=>{const e=Qn();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}e.BadRequestError=I,e.FetchWalletsError=j,e.LocalstorageNotFoundError=W,e.ParseHexError=H,e.THEME=nn,e.TonConnect=be,e.TonConnectError=R,e.TonConnectUI=class{constructor(e){if(__publicField(this,"walletInfoStorage",new Hn),__publicField(this,"preferredWalletStorage",new Kn),__publicField(this,"walletInfo",null),__publicField(this,"systemThemeChangeUnsubscribe",null),__publicField(this,"actionsConfiguration"),__publicField(this,"walletsList"),__publicField(this,"connectRequestParametersCallback"),__publicField(this,"connector"),__publicField(this,"modal"),__publicField(this,"transactionModal"),__publicField(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 On("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new be({manifestUrl:e.manifestUrl})}this.modal=new Dc({connector:this.connector,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new qc({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return In((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=new Promise((e=>__async(this,null,(function*(){yield this.connector.restoreConnection(),this.connector.connected||this.walletInfoStorage.removeWalletInfo(),e(this.connector.connected)}))))),this.uiOptions=Tr(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();Ya({connector:this.connector,preferredWalletAppName:n}),Fc(t,this)}static getWallets(){return be.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?__spreadValues(__spreadValues({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,s,a;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),Ir(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(Ir(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?nn.LIGHT:nn.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?nn.DARK:nn.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(Ir))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(s=e.uiPreferences.colorsSet,Pr[nn.DARK]=Tr(s[nn.DARK],Pr[nn.DARK]),Pr[nn.LIGHT]=Tr(s[nn.LIGHT],Pr[nn.LIGHT]),Or((e=>({colors:Tr(Pr[e.theme],$r[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(a=e.uiPreferences.borderRadius,Or({borderRadius:a})),Ya((t=>{var n,r;const o=Tr(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},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}),lr(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;Ya({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 __async(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>__async(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(__spreadValues(__spreadValues({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return __async(this,null,(function*(){return this.modal.open()}))}closeModal(){this.modal.close()}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}connectWallet(){return __async(this,null,(function*(){const e=(yield this.getWallets()).find(fe);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return Hc(),Vc(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return __async(this,null,(function*(){if(!this.connected)throw new On("Connect wallet to send a transaction.");const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:s}=this.getModalsAndNotificationsConfiguration(t),a="ios"===Wn().os,l="ios"===s&&a||"always"===s;this.walletInfo&&"universalLink"in this.walletInfo&&"universal-link"===this.walletInfo.openMethod&&!l&&(Y(this.walletInfo.universalLink)?jn(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i}):$n(Pn(this.walletInfo.universalLink,o))),Bc({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before")});const c=new AbortController,u=this.onTransactionModalStateChange((e=>{(null==e?void 0:e.openModal)||(u(),e||c.abort())}));try{const t=yield this.waitForSendTransaction({transaction:e,abortSignal:c.signal});return Bc({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(d){throw Bc({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),d instanceof R?d:(console.error(d),new On("Unhandled error:"+d))}finally{u()}}))}connectEmbeddedWallet(e){return __async(this,null,(function*(){const t=t=>{Yn(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=Ga.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 __async(this,null,(function*(){const e=new AbortController;Wc();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,abortSignal:e.signal})}))}waitForWalletConnection(e){return __async(this,null,(function*(){return new Promise(((t,n)=>{const{ignoreErrors:r=!1,abortSignal:o=null}=e;if(o&&o.aborted)return n(new On("Wallet was not connected"));const i=e=>__async(this,null,(function*(){if(e)s(),t(e);else{if(r)return;s(),n(new On("Wallet was not connected"))}})),s=this.onStatusChange((e=>i(e)),(e=>(e=>{r||(s(),n(e))})(e)));o&&o.addEventListener("abort",(()=>{s(),n(new On("Wallet was not connected"))}))}))}))}waitForSendTransaction(e){return __async(this,null,(function*(){return new Promise(((t,n)=>{const{transaction:r,abortSignal:o}=e;if(o.aborted)return n(new On("Transaction was not sent"));const i=e=>__async(this,null,(function*(){t(e)}));this.connector.sendTransaction(r).then((e=>i(e))).catch((e=>(e=>{n(e)})(e))),o.addEventListener("abort",(()=>{n(new On("Transaction was not sent"))}))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>__async(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),Ya({preferredWalletAppName:e})}getSelectedWalletInfo(e){return __async(this,null,(function*(){let t,n=Kc();if(!n)return null;if("name"in n)t=n;else{const r=Ja(yield this.walletsList,Ga.walletsListConfiguration).find((t=>nl(t,e.device.appName)));if(!r)throw new On(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=__spreadValues(__spreadValues({},r),n)}return t}))}updateWalletInfo(e){return __async(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=>nl(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 On(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,s;const a=["before","success","error"];let l=a;(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?a:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?a:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?a:e.modals);return{notifications:l,modals:c,returnStrategy:(null==e?void 0:e.returnStrategy)||(null==(o=this.actionsConfiguration)?void 0:o.returnStrategy)||"back",twaReturnUrl:(null==e?void 0:e.twaReturnUrl)||(null==(i=this.actionsConfiguration)?void 0:i.twaReturnUrl),skipRedirectToWallet:(null==e?void 0:e.skipRedirectToWallet)||(null==(s=this.actionsConfiguration)?void 0:s.skipRedirectToWallet)||"ios"}}},e.TonConnectUIError=On,e.UnknownAppError=N,e.UnknownError=K,e.UserRejectsError=P,e.WalletAlreadyConnectedError=O,e.WalletNotConnectedError=$,e.WalletNotInjectedError=U,e.WalletsListManager=me,e.WrongAddressError=B,e.encodeTelegramUrlParameters=Q,e.isTelegramUrl=Y,e.isWalletInfoCurrentlyEmbedded=fe,e.isWalletInfoCurrentlyInjected=he,e.isWalletInfoInjectable=ge,e.isWalletInfoInjected=function(e){return"jsBridgeKey"in e},e.isWalletInfoRemote=pe,e.toUserFriendlyAddress=_e,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1017
+ `,Vc=e=>{const t=ro(e),n=et(Ns),[r,o]=Ve(!0);let i;(null==n?void 0:n.wallet)&&"universalLink"in n.wallet&&("universal-link"===n.wallet.openMethod||Y(n.wallet.universalLink)&&Un())&&(i=n.wallet.universalLink);const s=()=>{const e=lr(),t="returnStrategy"in e?e.returnStrategy:sl.returnStrategy;if(Y(i)){const n=!r();o(!1),Qn(i,{returnStrategy:t,twaReturnUrl:"twaReturnUrl"in e?e.twaReturnUrl:sl.twaReturnUrl,forceRedirect:n})}else Vn(Dn(i,t))};return bt(jc,kt(t,{get children(){return[ze((()=>e.icon)),bt(Bc,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),bt(Hc,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),bt(Rt,{get when(){return"open-wallet"!==e.showButton},get children(){return bt(Kc,{onClick:()=>e.onClose(),get children(){return bt(Ul,{translationKey:"common.close",children:"Close"})}})}}),bt(Rt,{get when(){return"open-wallet"===e.showButton&&i},get children(){return bt(Kc,{onClick:s,get children(){return bt(Ul,{translationKey:"common.openWallet",children:"Open wallet"})}})}})]}}))},Dc=e=>{const t=et(Ns),[n]=ii();return bt(Vc,{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 bt(Bi,{size:"m"})},onClose:()=>e.onClose(),showButton:"open-wallet","data-tc-confirm-modal":"true"})},Fc=e=>bt(Vc,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return bt(Ni,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),qc=e=>bt(Vc,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return bt(Oi,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),zc=()=>bt(No,{get opened(){var e;return ze((()=>null!==lr()))()&&!0===(null==(e=lr())?void 0:e.openModal)},get enableAndroidBackHandler(){return sl.enableAndroidBackHandler},onClose:()=>cr(null),"data-tc-actions-modal-container":"true",get children(){return bt(Lt,{get children(){return[bt(Tt,{get when(){return"transaction-sent"===lr().name},get children(){return bt(qc,{onClose:()=>cr(null)})}}),bt(Tt,{get when(){return"transaction-canceled"===lr().name},get children(){return bt(Fc,{onClose:()=>cr(null)})}}),bt(Tt,{get when(){return"confirm-transaction"===lr().name},get children(){return bt(Dc,{onClose:()=>cr(null)})}})]}})}}),Zc=e=>{const t=ri(dr,sl.language);return customElements.define(xn,class extends HTMLElement{}),document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart",""),bt(oi.Provider,{value:t,get children(){return bt(Ns.Provider,{get value(){return e.tonConnectUI},get children(){return bt(fr.Provider,{get value(){return sl.connector},get children(){return[bt(Sn,{}),bt(mn,{theme:Kr,get children(){return[bt(Rt,{get when(){return sl.buttonRootId},get children(){return bt(en,{get mount(){return document.getElementById(sl.buttonRootId)},get children(){return bt(nl,{})}})}}),bt(tn,{component:xn,get children(){return[bt(Wc,{}),bt(zc,{})]}})]}})]}})}})}})},Gc=()=>{setTimeout((()=>nr({status:"opened",closeReason:null})))},Yc=e=>{setTimeout((()=>nr({status:"closed",closeReason:e})))},Qc=e=>{setTimeout((()=>cr(e)))},Jc=()=>{setTimeout((()=>cr(null)))},Xc=()=>ir(),eu=()=>ar(null),tu=(e,t)=>function(e,t,n,r={}){let o;return Ke((r=>{o=r,t===document?e():Vt(t,e(),t.firstChild?null:void 0,n)}),r.owner),()=>{o(),t.textContent=""}}((()=>bt(Zc,{tonConnectUI:t})),document.getElementById(e));class nu{constructor(e){__publicField(this,"connector"),__publicField(this,"setConnectRequestParametersCallback"),__publicField(this,"consumers",[]),__publicField(this,"state",tr()),this.connector=e.connector,this.setConnectRequestParametersCallback=e.setConnectRequestParametersCallback,qe((()=>{const e=tr();this.state=e,this.consumers.forEach((t=>t(e)))}))}open(){return __async(this,null,(function*(){const e=(yield this.connector.getWallets()).find(fe);return e?this.connectEmbeddedWallet(e):this.connectExternalWallet()}))}close(){Yc("action-cancelled")}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}connectEmbeddedWallet(e){const t=t=>{ar(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=sl.connectRequestParameters;"loading"===(null==n?void 0:n.state)?this.setConnectRequestParametersCallback(t):t(null==n?void 0:n.value)}connectExternalWallet(){return __async(this,null,(function*(){return Un()&&Wn(),Gc(),new Promise((e=>{const t=this.onStateChange((n=>{const{status:r}=n;"opened"===r&&(t(),e())}))}))}))}}class ru{constructor(e){__publicField(this,"connector"),__publicField(this,"consumers",[]),this.connector=e.connector,qe((()=>{const e=lr();this.consumers.forEach((t=>t(e)))}))}onStateChange(e){return this.consumers.push(e),()=>{this.consumers=this.consumers.filter((t=>t!==e))}}}e.BadRequestError=I,e.FetchWalletsError=j,e.LocalstorageNotFoundError=W,e.ParseHexError=H,e.THEME=nn,e.TonConnect=be,e.TonConnectError=L,e.TonConnectUI=class{constructor(e){if(__publicField(this,"walletInfoStorage",new Jn),__publicField(this,"preferredWalletStorage",new Xn),__publicField(this,"walletInfo",null),__publicField(this,"systemThemeChangeUnsubscribe",null),__publicField(this,"actionsConfiguration"),__publicField(this,"walletsList"),__publicField(this,"connectRequestParametersCallback"),__publicField(this,"connector"),__publicField(this,"modal"),__publicField(this,"transactionModal"),__publicField(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 On("You have to specify a `manifestUrl` or a `connector` in the options.");this.connector=new be({manifestUrl:e.manifestUrl})}this.modal=new nu({connector:this.connector,setConnectRequestParametersCallback:e=>{this.connectRequestParametersCallback=e}}),this.transactionModal=new ru({connector:this.connector}),this.walletsList=this.getWallets(),this.walletsList.then((e=>{return qn((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=new Promise((e=>__async(this,null,(function*(){yield this.connector.restoreConnection(),this.connector.connected||this.walletInfoStorage.removeWalletInfo(),e(this.connector.connected)}))))),this.uiOptions=Hr(e,{uiPreferences:{theme:"SYSTEM"}});const n=this.preferredWalletStorage.getPreferredWalletAppName();al({connector:this.connector,preferredWalletAppName:n}),tu(t,this)}static getWallets(){return be.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return this.connector.wallet?__spreadValues(__spreadValues({},this.connector.wallet),this.walletInfo):null}set uiOptions(e){var t,n,r,o,i,s,a;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),qr(e.uiPreferences.theme,e.uiPreferences.colorsSet)):(qr(window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?nn.LIGHT:nn.DARK,e.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=function(e){const t=t=>e(t.matches?nn.DARK:nn.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}(qr))):(null==(o=e.uiPreferences)?void 0:o.colorsSet)&&(s=e.uiPreferences.colorsSet,Fr[nn.DARK]=Hr(s[nn.DARK],Fr[nn.DARK]),Fr[nn.LIGHT]=Hr(s[nn.LIGHT],Fr[nn.LIGHT]),Vr((e=>({colors:Hr(Fr[e.theme],Dr[e.theme])})))),(null==(i=e.uiPreferences)?void 0:i.borderRadius)&&(a=e.uiPreferences.borderRadius,Vr({borderRadius:a})),al((t=>{var n,r;const o=Hr(__spreadValues(__spreadValues(__spreadValues(__spreadValues({},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}),yr(t));return void 0!==e.buttonRootId&&(o.buttonRootId=e.buttonRootId),void 0!==e.enableAndroidBackHandler&&(o.enableAndroidBackHandler=e.enableAndroidBackHandler),o}))}setConnectRequestParameters(e){var t;al({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 __async(this,null,(function*(){return this.connector.getWallets()}))}onStatusChange(e,t){return this.connector.onStatusChange((t=>__async(this,null,(function*(){if(t){const n=yield this.getSelectedWalletInfo(t);e(__spreadValues(__spreadValues({},t),n||this.walletInfoStorage.getWalletInfo()))}else e(t)}))),t)}openModal(){return __async(this,null,(function*(){return this.modal.open()}))}closeModal(){this.modal.close()}onModalStateChange(e){return this.modal.onStateChange(e)}get modalState(){return this.modal.state}connectWallet(){return __async(this,null,(function*(){const e=(yield this.getWallets()).find(fe);return e?yield this.connectEmbeddedWallet(e):yield this.connectExternalWallet()}))}disconnect(){return Jc(),eu(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(e,t){return __async(this,null,(function*(){if(!this.connected)throw new On("Connect wallet to send a transaction.");Un()&&Wn();const{notifications:n,modals:r,returnStrategy:o,twaReturnUrl:i,skipRedirectToWallet:s}=this.getModalsAndNotificationsConfiguration(t);Qc({name:"confirm-transaction",showNotification:n.includes("before"),openModal:r.includes("before")});const a=()=>{const e="ios"===Gn().os,t="ios"===s&&e||"always"===s;this.walletInfo&&"universalLink"in this.walletInfo&&"universal-link"===this.walletInfo.openMethod&&!t&&(Y(this.walletInfo.universalLink)?Qn(this.walletInfo.universalLink,{returnStrategy:o,twaReturnUrl:i||sl.twaReturnUrl,forceRedirect:!1}):Vn(Dn(this.walletInfo.universalLink,o)))},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,abortSignal:l.signal},a);return Qc({name:"transaction-sent",showNotification:n.includes("success"),openModal:r.includes("success")}),t}catch(ou){throw Qc({name:"transaction-canceled",showNotification:n.includes("error"),openModal:r.includes("error")}),ou instanceof L?ou:(console.error(ou),new On("Unhandled error:"+ou))}finally{c()}}))}connectEmbeddedWallet(e){return __async(this,null,(function*(){const t=t=>{ar(e),this.connector.connect({jsBridgeKey:e.jsBridgeKey},t)},n=sl.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 __async(this,null,(function*(){const e=new AbortController;Gc();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,abortSignal:e.signal})}))}waitForWalletConnection(e){return __async(this,null,(function*(){return new Promise(((t,n)=>{const{ignoreErrors:r=!1,abortSignal:o=null}=e;if(o&&o.aborted)return n(new On("Wallet was not connected"));const i=e=>__async(this,null,(function*(){if(e)s(),t(e);else{if(r)return;s(),n(new On("Wallet was not connected"))}})),s=this.onStatusChange((e=>i(e)),(e=>(e=>{r||(s(),n(e))})(e)));o&&o.addEventListener("abort",(()=>{s(),n(new On("Wallet was not connected"))}))}))}))}waitForSendTransaction(e,t){return __async(this,null,(function*(){return new Promise(((n,r)=>{const{transaction:o,abortSignal:i}=e;if(i.aborted)return r(new On("Transaction was not sent"));const s=e=>__async(this,null,(function*(){n(e)}));this.connector.sendTransaction(o,t).then((e=>s(e))).catch((e=>(e=>{r(e)})(e))),i.addEventListener("abort",(()=>{r(new On("Transaction was not sent"))}))}))}))}onTransactionModalStateChange(e){return this.transactionModal.onStateChange(e)}subscribeToWalletChange(){this.connector.onStatusChange((e=>__async(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),al({preferredWalletAppName:e})}getSelectedWalletInfo(e){return __async(this,null,(function*(){let t,n=Xc();if(!n)return null;if("name"in n)t=n;else{const r=cl(yield this.walletsList,sl.walletsListConfiguration).find((t=>fl(t,e.device.appName)));if(!r)throw new On(`Cannot find WalletInfo for the '${e.device.appName}' wallet`);t=__spreadValues(__spreadValues({},r),n)}return t}))}updateWalletInfo(e){return __async(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=>fl(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 On(`${e} element not found in the document.`)}getModalsAndNotificationsConfiguration(e){var t,n,r,o,i,s;const a=["before","success","error"];let l=a;(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?a:e.notifications);let c=["before"];(null==(r=this.actionsConfiguration)?void 0:r.modals)&&(c="all"===this.actionsConfiguration.modals?a:this.actionsConfiguration.modals),(null==e?void 0:e.modals)&&(c="all"===e.modals?a: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 h=(null==e?void 0:e.skipRedirectToWallet)||(null==(s=this.actionsConfiguration)?void 0:s.skipRedirectToWallet)||"ios";return Un()&&(h="never"),{notifications:l,modals:c,returnStrategy:u,twaReturnUrl:d,skipRedirectToWallet:h}}},e.TonConnectUIError=On,e.UnknownAppError=N,e.UnknownError=K,e.UserRejectsError=P,e.WalletAlreadyConnectedError=O,e.WalletNotConnectedError=$,e.WalletNotInjectedError=U,e.WalletsListManager=me,e.WrongAddressError=B,e.encodeTelegramUrlParameters=Q,e.isTelegramUrl=Y,e.isWalletInfoCurrentlyEmbedded=fe,e.isWalletInfoCurrentlyInjected=he,e.isWalletInfoInjectable=pe,e.isWalletInfoInjected=function(e){return"jsBridgeKey"in e},e.isWalletInfoRemote=ge,e.toUserFriendlyAddress=_e,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1018
1018
  //# sourceMappingURL=tonconnect-ui.min.js.map