@rango-dev/provider-walletconnect-2 0.30.1-next.4 → 0.30.1-next.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-BPSEZJUF.js +2 -0
- package/dist/chunk-BPSEZJUF.js.map +7 -0
- package/dist/chunk-DXVBX5XQ.js +2 -0
- package/dist/chunk-DXVBX5XQ.js.map +7 -0
- package/dist/chunk-RPL2NMJC.js +2 -0
- package/dist/chunk-RPL2NMJC.js.map +7 -0
- package/dist/cosmos-EMGK355Q.js +2 -0
- package/dist/cosmos-EMGK355Q.js.map +7 -0
- package/dist/dist-6GI3ECE5.js +139 -0
- package/dist/dist-6GI3ECE5.js.map +7 -0
- package/dist/evm-MYSQOTV5.js +2 -0
- package/dist/evm-MYSQOTV5.js.map +7 -0
- package/dist/index.js +1 -138
- package/dist/index.js.map +4 -4
- package/dist/provider-walletconnect-2.build.json +1 -1
- package/dist/solana-35I33VLX.js +2 -0
- package/dist/solana-35I33VLX.js.map +7 -0
- package/package.json +4 -4
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import{a as M,b as y,c as Io,d as G,e as ae,f as F,g as Qe,h as Ce,i as ee}from"./chunk-BPSEZJUF.js";import{a,b as I,c as Ti}from"./chunk-DXVBX5XQ.js";var wn=I((Sh,gn)=>{gn.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var ue=I(Se=>{var Nr,is=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Se.getSymbolSize=a(function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},"getSymbolSize");Se.getSymbolTotalCodewords=a(function(e){return is[e]},"getSymbolTotalCodewords");Se.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};Se.setToSJISFunction=a(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Nr=e},"setToSJISFunction");Se.isKanjiModeEnabled=function(){return typeof Nr<"u"};Se.toSJIS=a(function(e){return Nr(e)},"toSJIS")});var Ht=I(K=>{K.L={bit:1};K.M={bit:0};K.Q={bit:3};K.H={bit:2};function ss(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+t)}}a(ss,"fromString");K.isValid=a(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");K.from=a(function(e,r){if(K.isValid(e))return e;try{return ss(e)}catch{return r}},"from")});var yn=I((Rh,bn)=>{function vn(){this.buffer=[],this.length=0}a(vn,"BitBuffer");vn.prototype={get:function(t){let e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let r=0;r<e;r++)this.putBit((t>>>e-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};bn.exports=vn});var Cn=I((Lh,xn)=>{function ft(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}a(ft,"BitMatrix");ft.prototype.set=function(t,e,r,o){let n=t*this.size+e;this.data[n]=r,o&&(this.reservedBit[n]=!0)};ft.prototype.get=function(t,e){return this.data[t*this.size+e]};ft.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r};ft.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};xn.exports=ft});var En=I(Ft=>{var as=ue().getSymbolSize;Ft.getRowColCoords=a(function(e){if(e===1)return[];let r=Math.floor(e/7)+2,o=as(e),n=o===145?26:Math.ceil((o-13)/(2*r-2))*2,i=[o-7];for(let s=1;s<r-1;s++)i[s]=i[s-1]-n;return i.push(6),i.reverse()},"getRowColCoords");Ft.getPositions=a(function(e){let r=[],o=Ft.getRowColCoords(e),n=o.length;for(let i=0;i<n;i++)for(let s=0;s<n;s++)i===0&&s===0||i===0&&s===n-1||i===n-1&&s===0||r.push([o[i],o[s]]);return r},"getPositions")});var _n=I(An=>{var ls=ue().getSymbolSize,$n=7;An.getPositions=a(function(e){let r=ls(e);return[[0,0],[r-$n,0],[0,r-$n]]},"getPositions")});var On=I(k=>{k.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var ke={N1:3,N2:3,N3:40,N4:10};k.isValid=a(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");k.from=a(function(e){return k.isValid(e)?parseInt(e,10):void 0},"from");k.getPenaltyN1=a(function(e){let r=e.size,o=0,n=0,i=0,s=null,l=null;for(let c=0;c<r;c++){n=i=0,s=l=null;for(let d=0;d<r;d++){let u=e.get(c,d);u===s?n++:(n>=5&&(o+=ke.N1+(n-5)),s=u,n=1),u=e.get(d,c),u===l?i++:(i>=5&&(o+=ke.N1+(i-5)),l=u,i=1)}n>=5&&(o+=ke.N1+(n-5)),i>=5&&(o+=ke.N1+(i-5))}return o},"getPenaltyN1");k.getPenaltyN2=a(function(e){let r=e.size,o=0;for(let n=0;n<r-1;n++)for(let i=0;i<r-1;i++){let s=e.get(n,i)+e.get(n,i+1)+e.get(n+1,i)+e.get(n+1,i+1);(s===4||s===0)&&o++}return o*ke.N2},"getPenaltyN2");k.getPenaltyN3=a(function(e){let r=e.size,o=0,n=0,i=0;for(let s=0;s<r;s++){n=i=0;for(let l=0;l<r;l++)n=n<<1&2047|e.get(s,l),l>=10&&(n===1488||n===93)&&o++,i=i<<1&2047|e.get(l,s),l>=10&&(i===1488||i===93)&&o++}return o*ke.N3},"getPenaltyN3");k.getPenaltyN4=a(function(e){let r=0,o=e.data.length;for(let i=0;i<o;i++)r+=e.data[i];return Math.abs(Math.ceil(r*100/o/5)-10)*ke.N4},"getPenaltyN4");function cs(t,e,r){switch(t){case k.Patterns.PATTERN000:return(e+r)%2===0;case k.Patterns.PATTERN001:return e%2===0;case k.Patterns.PATTERN010:return r%3===0;case k.Patterns.PATTERN011:return(e+r)%3===0;case k.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2===0;case k.Patterns.PATTERN101:return e*r%2+e*r%3===0;case k.Patterns.PATTERN110:return(e*r%2+e*r%3)%2===0;case k.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2===0;default:throw new Error("bad maskPattern:"+t)}}a(cs,"getMaskAt");k.applyMask=a(function(e,r){let o=r.size;for(let n=0;n<o;n++)for(let i=0;i<o;i++)r.isReserved(i,n)||r.xor(i,n,cs(e,i,n))},"applyMask");k.getBestMask=a(function(e,r){let o=Object.keys(k.Patterns).length,n=0,i=1/0;for(let s=0;s<o;s++){r(s),k.applyMask(s,e);let l=k.getPenaltyN1(e)+k.getPenaltyN2(e)+k.getPenaltyN3(e)+k.getPenaltyN4(e);k.applyMask(s,e),l<i&&(i=l,n=s)}return n},"getBestMask")});var Br=I(Lr=>{var me=Ht(),zt=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],qt=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Lr.getBlocksCount=a(function(e,r){switch(r){case me.L:return zt[(e-1)*4+0];case me.M:return zt[(e-1)*4+1];case me.Q:return zt[(e-1)*4+2];case me.H:return zt[(e-1)*4+3];default:return}},"getBlocksCount");Lr.getTotalCodewordsCount=a(function(e,r){switch(r){case me.L:return qt[(e-1)*4+0];case me.M:return qt[(e-1)*4+1];case me.Q:return qt[(e-1)*4+2];case me.H:return qt[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var In=I(Zt=>{var gt=new Uint8Array(512),Vt=new Uint8Array(256);a(function(){let e=1;for(let r=0;r<255;r++)gt[r]=e,Vt[e]=r,e<<=1,e&256&&(e^=285);for(let r=255;r<512;r++)gt[r]=gt[r-255]},"initTables")();Zt.log=a(function(e){if(e<1)throw new Error("log("+e+")");return Vt[e]},"log");Zt.exp=a(function(e){return gt[e]},"exp");Zt.mul=a(function(e,r){return e===0||r===0?0:gt[Vt[e]+Vt[r]]},"mul")});var Sn=I(wt=>{var Dr=In();wt.mul=a(function(e,r){let o=new Uint8Array(e.length+r.length-1);for(let n=0;n<e.length;n++)for(let i=0;i<r.length;i++)o[n+i]^=Dr.mul(e[n],r[i]);return o},"mul");wt.mod=a(function(e,r){let o=new Uint8Array(e);for(;o.length-r.length>=0;){let n=o[0];for(let s=0;s<r.length;s++)o[s]^=Dr.mul(r[s],n);let i=0;for(;i<o.length&&o[i]===0;)i++;o=o.slice(i)}return o},"mod");wt.generateECPolynomial=a(function(e){let r=new Uint8Array([1]);for(let o=0;o<e;o++)r=wt.mul(r,new Uint8Array([1,Dr.exp(o)]));return r},"generateECPolynomial")});var Pn=I((Gh,Tn)=>{var kn=Sn();function Ur(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}a(Ur,"ReedSolomonEncoder");Ur.prototype.initialize=a(function(e){this.degree=e,this.genPoly=kn.generateECPolynomial(this.degree)},"initialize");Ur.prototype.encode=a(function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let r=new Uint8Array(e.length+this.degree);r.set(e);let o=kn.mod(r,this.genPoly),n=this.degree-o.length;if(n>0){let i=new Uint8Array(this.degree);return i.set(o,n),i}return o},"encode");Tn.exports=Ur});var jr=I(Mn=>{Mn.isValid=a(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var Wr=I(ie=>{var Rn="[0-9]+",ds="[A-Z $%*+\\-./:]+",vt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";vt=vt.replace(/u/g,"\\u");var hs="(?:(?![A-Z0-9 $%*+\\-./:]|"+vt+`)(?:.|[\r
|
|
2
|
+
]))+`;ie.KANJI=new RegExp(vt,"g");ie.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ie.BYTE=new RegExp(hs,"g");ie.NUMERIC=new RegExp(Rn,"g");ie.ALPHANUMERIC=new RegExp(ds,"g");var us=new RegExp("^"+vt+"$"),ms=new RegExp("^"+Rn+"$"),ps=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ie.testKanji=a(function(e){return us.test(e)},"testKanji");ie.testNumeric=a(function(e){return ms.test(e)},"testNumeric");ie.testAlphanumeric=a(function(e){return ps.test(e)},"testAlphanumeric")});var pe=I(U=>{var fs=jr(),Hr=Wr();U.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};U.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};U.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};U.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};U.MIXED={bit:-1};U.getCharCountIndicator=a(function(e,r){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!fs.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?e.ccBits[0]:r<27?e.ccBits[1]:e.ccBits[2]},"getCharCountIndicator");U.getBestModeForData=a(function(e){return Hr.testNumeric(e)?U.NUMERIC:Hr.testAlphanumeric(e)?U.ALPHANUMERIC:Hr.testKanji(e)?U.KANJI:U.BYTE},"getBestModeForData");U.toString=a(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");U.isValid=a(function(e){return e&&e.bit&&e.ccBits},"isValid");function gs(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return U.NUMERIC;case"alphanumeric":return U.ALPHANUMERIC;case"kanji":return U.KANJI;case"byte":return U.BYTE;default:throw new Error("Unknown mode: "+t)}}a(gs,"fromString");U.from=a(function(e,r){if(U.isValid(e))return e;try{return gs(e)}catch{return r}},"from")});var Un=I(Te=>{var Kt=ue(),ws=Br(),Nn=Ht(),fe=pe(),Fr=jr(),Bn=7973,Ln=Kt.getBCHDigit(Bn);function vs(t,e,r){for(let o=1;o<=40;o++)if(e<=Te.getCapacity(o,r,t))return o}a(vs,"getBestVersionForDataLength");function Dn(t,e){return fe.getCharCountIndicator(t,e)+4}a(Dn,"getReservedBitsCount");function bs(t,e){let r=0;return t.forEach(function(o){let n=Dn(o.mode,e);r+=n+o.getBitsLength()}),r}a(bs,"getTotalBitsFromDataArray");function ys(t,e){for(let r=1;r<=40;r++)if(bs(t,r)<=Te.getCapacity(r,e,fe.MIXED))return r}a(ys,"getBestVersionForMixedData");Te.from=a(function(e,r){return Fr.isValid(e)?parseInt(e,10):r},"from");Te.getCapacity=a(function(e,r,o){if(!Fr.isValid(e))throw new Error("Invalid QR Code version");typeof o>"u"&&(o=fe.BYTE);let n=Kt.getSymbolTotalCodewords(e),i=ws.getTotalCodewordsCount(e,r),s=(n-i)*8;if(o===fe.MIXED)return s;let l=s-Dn(o,e);switch(o){case fe.NUMERIC:return Math.floor(l/10*3);case fe.ALPHANUMERIC:return Math.floor(l/11*2);case fe.KANJI:return Math.floor(l/13);case fe.BYTE:default:return Math.floor(l/8)}},"getCapacity");Te.getBestVersionForData=a(function(e,r){let o,n=Nn.from(r,Nn.M);if(Array.isArray(e)){if(e.length>1)return ys(e,n);if(e.length===0)return 1;o=e[0]}else o=e;return vs(o.mode,o.getLength(),n)},"getBestVersionForData");Te.getEncodedBits=a(function(e){if(!Fr.isValid(e)||e<7)throw new Error("Invalid QR Code version");let r=e<<12;for(;Kt.getBCHDigit(r)-Ln>=0;)r^=Bn<<Kt.getBCHDigit(r)-Ln;return e<<12|r},"getEncodedBits")});var Fn=I(Hn=>{var zr=ue(),Wn=1335,xs=21522,jn=zr.getBCHDigit(Wn);Hn.getEncodedBits=a(function(e,r){let o=e.bit<<3|r,n=o<<10;for(;zr.getBCHDigit(n)-jn>=0;)n^=Wn<<zr.getBCHDigit(n)-jn;return(o<<10|n)^xs},"getEncodedBits")});var qn=I((lu,zn)=>{var Cs=pe();function je(t){this.mode=Cs.NUMERIC,this.data=t.toString()}a(je,"NumericData");je.getBitsLength=a(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");je.prototype.getLength=a(function(){return this.data.length},"getLength");je.prototype.getBitsLength=a(function(){return je.getBitsLength(this.data.length)},"getBitsLength");je.prototype.write=a(function(e){let r,o,n;for(r=0;r+3<=this.data.length;r+=3)o=this.data.substr(r,3),n=parseInt(o,10),e.put(n,10);let i=this.data.length-r;i>0&&(o=this.data.substr(r),n=parseInt(o,10),e.put(n,i*3+1))},"write");zn.exports=je});var Zn=I((du,Vn)=>{var Es=pe(),qr=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function We(t){this.mode=Es.ALPHANUMERIC,this.data=t}a(We,"AlphanumericData");We.getBitsLength=a(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");We.prototype.getLength=a(function(){return this.data.length},"getLength");We.prototype.getBitsLength=a(function(){return We.getBitsLength(this.data.length)},"getBitsLength");We.prototype.write=a(function(e){let r;for(r=0;r+2<=this.data.length;r+=2){let o=qr.indexOf(this.data[r])*45;o+=qr.indexOf(this.data[r+1]),e.put(o,11)}this.data.length%2&&e.put(qr.indexOf(this.data[r]),6)},"write");Vn.exports=We});var Yn=I((uu,Kn)=>{"use strict";Kn.exports=a(function(e){for(var r=[],o=e.length,n=0;n<o;n++){var i=e.charCodeAt(n);if(i>=55296&&i<=56319&&o>n+1){var s=e.charCodeAt(n+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,n+=1)}if(i<128){r.push(i);continue}if(i<2048){r.push(i>>6|192),r.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128);continue}if(i>=65536&&i<=1114111){r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(i&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer},"encodeUtf8")});var Jn=I((pu,Gn)=>{var $s=Yn(),As=pe();function He(t){this.mode=As.BYTE,typeof t=="string"&&(t=$s(t)),this.data=new Uint8Array(t)}a(He,"ByteData");He.getBitsLength=a(function(e){return e*8},"getBitsLength");He.prototype.getLength=a(function(){return this.data.length},"getLength");He.prototype.getBitsLength=a(function(){return He.getBitsLength(this.data.length)},"getBitsLength");He.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};Gn.exports=He});var Xn=I((gu,Qn)=>{var _s=pe(),Os=ue();function Fe(t){this.mode=_s.KANJI,this.data=t}a(Fe,"KanjiData");Fe.getBitsLength=a(function(e){return e*13},"getBitsLength");Fe.prototype.getLength=a(function(){return this.data.length},"getLength");Fe.prototype.getBitsLength=a(function(){return Fe.getBitsLength(this.data.length)},"getBitsLength");Fe.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=Os.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
3
|
+
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),t.put(r,13)}};Qn.exports=Fe});var ei=I((vu,Vr)=>{"use strict";var bt={single_source_shortest_paths:function(t,e,r){var o={},n={};n[e]=0;var i=bt.PriorityQueue.make();i.push(e,0);for(var s,l,c,d,u,p,m,b,x;!i.empty();){s=i.pop(),l=s.value,d=s.cost,u=t[l]||{};for(c in u)u.hasOwnProperty(c)&&(p=u[c],m=d+p,b=n[c],x=typeof n[c]>"u",(x||b>m)&&(n[c]=m,i.push(c,m),o[c]=l))}if(typeof r<"u"&&typeof n[r]>"u"){var f=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],o=e,n;o;)r.push(o),n=t[o],o=t[o];return r.reverse(),r},find_path:function(t,e,r){var o=bt.single_source_shortest_paths(t,e,r);return bt.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var e=bt.PriorityQueue,r={},o;t=t||{};for(o in e)e.hasOwnProperty(o)&&(r[o]=e[o]);return r.queue=[],r.sorter=t.sorter||e.default_sorter,r},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Vr<"u"&&(Vr.exports=bt)});var li=I(ze=>{var _=pe(),oi=qn(),ni=Zn(),ii=Jn(),si=Xn(),yt=Wr(),Yt=ue(),Is=ei();function ti(t){return unescape(encodeURIComponent(t)).length}a(ti,"getStringByteLength");function xt(t,e,r){let o=[],n;for(;(n=t.exec(r))!==null;)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}a(xt,"getSegments");function ai(t){let e=xt(yt.NUMERIC,_.NUMERIC,t),r=xt(yt.ALPHANUMERIC,_.ALPHANUMERIC,t),o,n;return Yt.isKanjiModeEnabled()?(o=xt(yt.BYTE,_.BYTE,t),n=xt(yt.KANJI,_.KANJI,t)):(o=xt(yt.BYTE_KANJI,_.BYTE,t),n=[]),e.concat(r,o,n).sort(function(s,l){return s.index-l.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}a(ai,"getSegmentsFromString");function Zr(t,e){switch(e){case _.NUMERIC:return oi.getBitsLength(t);case _.ALPHANUMERIC:return ni.getBitsLength(t);case _.KANJI:return si.getBitsLength(t);case _.BYTE:return ii.getBitsLength(t)}}a(Zr,"getSegmentBitsLength");function Ss(t){return t.reduce(function(e,r){let o=e.length-1>=0?e[e.length-1]:null;return o&&o.mode===r.mode?(e[e.length-1].data+=r.data,e):(e.push(r),e)},[])}a(Ss,"mergeSegments");function ks(t){let e=[];for(let r=0;r<t.length;r++){let o=t[r];switch(o.mode){case _.NUMERIC:e.push([o,{data:o.data,mode:_.ALPHANUMERIC,length:o.length},{data:o.data,mode:_.BYTE,length:o.length}]);break;case _.ALPHANUMERIC:e.push([o,{data:o.data,mode:_.BYTE,length:o.length}]);break;case _.KANJI:e.push([o,{data:o.data,mode:_.BYTE,length:ti(o.data)}]);break;case _.BYTE:e.push([{data:o.data,mode:_.BYTE,length:ti(o.data)}])}}return e}a(ks,"buildNodes");function Ts(t,e){let r={},o={start:{}},n=["start"];for(let i=0;i<t.length;i++){let s=t[i],l=[];for(let c=0;c<s.length;c++){let d=s[c],u=""+i+c;l.push(u),r[u]={node:d,lastCount:0},o[u]={};for(let p=0;p<n.length;p++){let m=n[p];r[m]&&r[m].node.mode===d.mode?(o[m][u]=Zr(r[m].lastCount+d.length,d.mode)-Zr(r[m].lastCount,d.mode),r[m].lastCount+=d.length):(r[m]&&(r[m].lastCount=d.length),o[m][u]=Zr(d.length,d.mode)+4+_.getCharCountIndicator(d.mode,e))}}n=l}for(let i=0;i<n.length;i++)o[n[i]].end=0;return{map:o,table:r}}a(Ts,"buildGraph");function ri(t,e){let r,o=_.getBestModeForData(t);if(r=_.from(e,o),r!==_.BYTE&&r.bit<o.bit)throw new Error('"'+t+'" cannot be encoded with mode '+_.toString(r)+`.
|
|
4
|
+
Suggested mode is: `+_.toString(o));switch(r===_.KANJI&&!Yt.isKanjiModeEnabled()&&(r=_.BYTE),r){case _.NUMERIC:return new oi(t);case _.ALPHANUMERIC:return new ni(t);case _.KANJI:return new si(t);case _.BYTE:return new ii(t)}}a(ri,"buildSingleSegment");ze.fromArray=a(function(e){return e.reduce(function(r,o){return typeof o=="string"?r.push(ri(o,null)):o.data&&r.push(ri(o.data,o.mode)),r},[])},"fromArray");ze.fromString=a(function(e,r){let o=ai(e,Yt.isKanjiModeEnabled()),n=ks(o),i=Ts(n,r),s=Is.find_path(i.map,"start","end"),l=[];for(let c=1;c<s.length-1;c++)l.push(i.table[s[c]].node);return ze.fromArray(Ss(l))},"fromString");ze.rawSplit=a(function(e){return ze.fromArray(ai(e,Yt.isKanjiModeEnabled()))},"rawSplit")});var di=I(ci=>{var Jt=ue(),Kr=Ht(),Ps=yn(),Ms=Cn(),Rs=En(),Ns=_n(),Jr=On(),Qr=Br(),Ls=Pn(),Gt=Un(),Bs=Fn(),Ds=pe(),Yr=li();function Us(t,e){let r=t.size,o=Ns.getPositions(e);for(let n=0;n<o.length;n++){let i=o[n][0],s=o[n][1];for(let l=-1;l<=7;l++)if(!(i+l<=-1||r<=i+l))for(let c=-1;c<=7;c++)s+c<=-1||r<=s+c||(l>=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?t.set(i+l,s+c,!0,!0):t.set(i+l,s+c,!1,!0))}}a(Us,"setupFinderPattern");function js(t){let e=t.size;for(let r=8;r<e-8;r++){let o=r%2===0;t.set(r,6,o,!0),t.set(6,r,o,!0)}}a(js,"setupTimingPattern");function Ws(t,e){let r=Rs.getPositions(e);for(let o=0;o<r.length;o++){let n=r[o][0],i=r[o][1];for(let s=-2;s<=2;s++)for(let l=-2;l<=2;l++)s===-2||s===2||l===-2||l===2||s===0&&l===0?t.set(n+s,i+l,!0,!0):t.set(n+s,i+l,!1,!0)}}a(Ws,"setupAlignmentPattern");function Hs(t,e){let r=t.size,o=Gt.getEncodedBits(e),n,i,s;for(let l=0;l<18;l++)n=Math.floor(l/3),i=l%3+r-8-3,s=(o>>l&1)===1,t.set(n,i,s,!0),t.set(i,n,s,!0)}a(Hs,"setupVersionInfo");function Gr(t,e,r){let o=t.size,n=Bs.getEncodedBits(e,r),i,s;for(i=0;i<15;i++)s=(n>>i&1)===1,i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(o-15+i,8,s,!0),i<8?t.set(8,o-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(o-8,8,1,!0)}a(Gr,"setupFormatInfo");function Fs(t,e){let r=t.size,o=-1,n=r-1,i=7,s=0;for(let l=r-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!t.isReserved(n,l-c)){let d=!1;s<e.length&&(d=(e[s]>>>i&1)===1),t.set(n,l-c,d),i--,i===-1&&(s++,i=7)}if(n+=o,n<0||r<=n){n-=o,o=-o;break}}}a(Fs,"setupData");function zs(t,e,r){let o=new Ps;r.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),Ds.getCharCountIndicator(c.mode,t)),c.write(o)});let n=Jt.getSymbolTotalCodewords(t),i=Qr.getTotalCodewordsCount(t,e),s=(n-i)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);let l=(s-o.getLengthInBits())/8;for(let c=0;c<l;c++)o.put(c%2?17:236,8);return qs(o,t,e)}a(zs,"createData");function qs(t,e,r){let o=Jt.getSymbolTotalCodewords(e),n=Qr.getTotalCodewordsCount(e,r),i=o-n,s=Qr.getBlocksCount(e,r),l=o%s,c=s-l,d=Math.floor(o/s),u=Math.floor(i/s),p=u+1,m=d-u,b=new Ls(m),x=0,f=new Array(s),S=new Array(s),$=0,R=new Uint8Array(t.buffer);for(let Y=0;Y<s;Y++){let P=Y<c?u:p;f[Y]=R.slice(x,x+P),S[Y]=b.encode(f[Y]),x+=P,$=Math.max($,P)}let N=new Uint8Array(o),L=0,V,j;for(V=0;V<$;V++)for(j=0;j<s;j++)V<f[j].length&&(N[L++]=f[j][V]);for(V=0;V<m;V++)for(j=0;j<s;j++)N[L++]=S[j][V];return N}a(qs,"createCodewords");function Vs(t,e,r,o){let n;if(Array.isArray(t))n=Yr.fromArray(t);else if(typeof t=="string"){let d=e;if(!d){let u=Yr.rawSplit(t);d=Gt.getBestVersionForData(u,r)}n=Yr.fromString(t,d||40)}else throw new Error("Invalid data");let i=Gt.getBestVersionForData(n,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+i+`.
|
|
7
|
+
`);let s=zs(e,r,n),l=Jt.getSymbolSize(e),c=new Ms(l);return Us(c,e),js(c),Ws(c,e),Gr(c,r,0),e>=7&&Hs(c,e),Fs(c,s),isNaN(o)&&(o=Jr.getBestMask(c,Gr.bind(null,c,r))),Jr.applyMask(o,c),Gr(c,r,o),{modules:c,version:e,errorCorrectionLevel:r,maskPattern:o,segments:n}}a(Vs,"createSymbol");ci.create=a(function(e,r){if(typeof e>"u"||e==="")throw new Error("No input text");let o=Kr.M,n,i;return typeof r<"u"&&(o=Kr.from(r.errorCorrectionLevel,Kr.M),n=Gt.from(r.version),i=Jr.from(r.maskPattern),r.toSJISFunc&&Jt.setToSJISFunction(r.toSJISFunc)),Vs(e,n,o,i)},"create")});var Xr=I(Pe=>{function hi(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+t);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(o){return[o,o]}))),e.length===6&&e.push("F","F");let r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+e.slice(0,6).join("")}}a(hi,"hex2rgba");Pe.getOptions=a(function(e){e||(e={}),e.color||(e.color={});let r=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:o,scale:o?4:n,margin:r,color:{dark:hi(e.color.dark||"#000000ff"),light:hi(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");Pe.getScale=a(function(e,r){return r.width&&r.width>=e+r.margin*2?r.width/(e+r.margin*2):r.scale},"getScale");Pe.getImageWidth=a(function(e,r){let o=Pe.getScale(e,r);return Math.floor((e+r.margin*2)*o)},"getImageWidth");Pe.qrToImageData=a(function(e,r,o){let n=r.modules.size,i=r.modules.data,s=Pe.getScale(n,o),l=Math.floor((n+o.margin*2)*s),c=o.margin*s,d=[o.color.light,o.color.dark];for(let u=0;u<l;u++)for(let p=0;p<l;p++){let m=(u*l+p)*4,b=o.color.light;if(u>=c&&p>=c&&u<l-c&&p<l-c){let x=Math.floor((u-c)/s),f=Math.floor((p-c)/s);b=d[i[x*n+f]?1:0]}e[m++]=b.r,e[m++]=b.g,e[m++]=b.b,e[m]=b.a}},"qrToImageData")});var ui=I(Qt=>{var eo=Xr();function Zs(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}a(Zs,"clearCanvas");function Ks(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}a(Ks,"getCanvasElement");Qt.render=a(function(e,r,o){let n=o,i=r;typeof n>"u"&&(!r||!r.getContext)&&(n=r,r=void 0),r||(i=Ks()),n=eo.getOptions(n);let s=eo.getImageWidth(e.modules.size,n),l=i.getContext("2d"),c=l.createImageData(s,s);return eo.qrToImageData(c.data,e,n),Zs(l,i,s),l.putImageData(c,0,0),i},"render");Qt.renderToDataURL=a(function(e,r,o){let n=o;typeof n>"u"&&(!r||!r.getContext)&&(n=r,r=void 0),n||(n={});let i=Qt.render(e,r,n),s=n.type||"image/png",l=n.rendererOpts||{};return i.toDataURL(s,l.quality)},"renderToDataURL")});var fi=I(pi=>{var Ys=Xr();function mi(t,e){let r=t.a/255,o=e+'="'+t.hex+'"';return r<1?o+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':o}a(mi,"getColorAttrib");function to(t,e,r){let o=t+e;return typeof r<"u"&&(o+=" "+r),o}a(to,"svgCmd");function Gs(t,e,r){let o="",n=0,i=!1,s=0;for(let l=0;l<t.length;l++){let c=Math.floor(l%e),d=Math.floor(l/e);!c&&!i&&(i=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(o+=i?to("M",c+r,.5+d+r):to("m",n,0),n=0,i=!1),c+1<e&&t[l+1]||(o+=to("h",s),s=0)):n++}return o}a(Gs,"qrToPath");pi.render=a(function(e,r,o){let n=Ys.getOptions(r),i=e.modules.size,s=e.modules.data,l=i+n.margin*2,c=n.color.light.a?"<path "+mi(n.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",d="<path "+mi(n.color.dark,"stroke")+' d="'+Gs(s,i,n.margin)+'"/>',u='viewBox="0 0 '+l+" "+l+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+u+' shape-rendering="crispEdges">'+c+d+`</svg>
|
|
8
|
+
`;return typeof o=="function"&&o(null,m),m},"render")});var wi=I(Ct=>{var Js=wn(),ro=di(),gi=ui(),Qs=fi();function oo(t,e,r,o,n){let i=[].slice.call(arguments,1),s=i.length,l=typeof i[s-1]=="function";if(!l&&!Js())throw new Error("Callback required as last argument");if(l){if(s<2)throw new Error("Too few arguments provided");s===2?(n=r,r=e,e=o=void 0):s===3&&(e.getContext&&typeof n>"u"?(n=o,o=void 0):(n=o,o=r,r=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(r=e,e=o=void 0):s===2&&!e.getContext&&(o=r,r=e,e=void 0),new Promise(function(c,d){try{let u=ro.create(r,o);c(t(u,e,o))}catch(u){d(u)}})}try{let c=ro.create(r,o);n(null,t(c,e,o))}catch(c){n(c)}}a(oo,"renderCanvas");Ct.create=ro.create;Ct.toCanvas=oo.bind(null,gi.render);Ct.toDataURL=oo.bind(null,gi.renderToDataURL);Ct.toString=oo.bind(null,function(t,e,r){return Qs.render(t,r)})});var kt=window,Tt=kt.ShadowRoot&&(kt.ShadyCSS===void 0||kt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,sr=Symbol(),So=new WeakMap,Xe=class{static{a(this,"o")}constructor(e,r,o){if(this._$cssResult$=!0,o!==sr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Tt&&e===void 0){let o=r!==void 0&&r.length===1;o&&(e=So.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&So.set(r,e))}return e}toString(){return this.cssText}},ko=a(t=>new Xe(typeof t=="string"?t:t+"",void 0,sr),"r"),A=a((t,...e)=>{let r=t.length===1?t[0]:e.reduce((o,n,i)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[i+1],t[0]);return new Xe(r,t,sr)},"i"),ar=a((t,e)=>{Tt?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let o=document.createElement("style"),n=kt.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=r.cssText,t.appendChild(o)})},"S"),Pt=Tt?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let o of e.cssRules)r+=o.cssText;return ko(r)})(t):t;var lr,Mt=window,To=Mt.trustedTypes,Pi=To?To.emptyScript:"",Po=Mt.reactiveElementPolyfillSupport,dr={toAttribute(t,e){switch(e){case Boolean:t=t?Pi:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Mo=a((t,e)=>e!==t&&(e==e||t==t),"a"),cr={attribute:!0,type:String,converter:dr,reflect:!1,hasChanged:Mo},hr="finalized",te=class extends HTMLElement{static{a(this,"u")}constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,o)=>{let n=this._$Ep(o,r);n!==void 0&&(this._$Ev.set(n,o),e.push(n))}),e}static createProperty(e,r=cr){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let o=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,o,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,o){return{get(){return this[r]},set(n){let i=this[e];this[r]=n,this.requestUpdate(e,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||cr}static finalize(){if(this.hasOwnProperty(hr))return!1;this[hr]=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of o)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)r.unshift(Pt(n))}else e!==void 0&&r.push(Pt(e));return r}static _$Ep(e,r){let o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,o;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ar(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r,o=cr){var n;let i=this.constructor._$Ep(e,o);if(i!==void 0&&o.reflect===!0){let s=(((n=o.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?o.converter:dr).toAttribute(r,o.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,r){var o;let n=this.constructor,i=n._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=n.getPropertyOptions(i),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((o=s.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?s.converter:dr;this._$El=i,this[i]=l.fromAttribute(r,s.type),this._$El=null}}requestUpdate(e,r,o){let n=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||Mo)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,i)=>this[i]=n),this._$Ei=void 0);let r=!1,o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(o)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(o)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(o=>{var n;return(n=o.hostUpdated)===null||n===void 0?void 0:n.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$EO(o,this[o],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};te[hr]=!0,te.elementProperties=new Map,te.elementStyles=[],te.shadowRootOptions={mode:"open"},Po?.({ReactiveElement:te}),((lr=Mt.reactiveElementVersions)!==null&&lr!==void 0?lr:Mt.reactiveElementVersions=[]).push("1.6.3");var ur,Rt=window,Le=Rt.trustedTypes,Ro=Le?Le.createPolicy("lit-html",{createHTML:t=>t}):void 0,pr="$lit$",le=`lit$${(Math.random()+"").slice(9)}$`,Wo="?"+le,Mi=`<${Wo}>`,Ae=document,tt=a(()=>Ae.createComment(""),"u"),rt=a(t=>t===null||typeof t!="object"&&typeof t!="function","d"),Ho=Array.isArray,Ri=a(t=>Ho(t)||typeof t?.[Symbol.iterator]=="function","v"),mr=`[
|
|
9
|
+
\f\r]`,et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,No=/-->/g,Lo=/>/g,Ee=RegExp(`>|${mr}(?:([^\\s"'>=/]+)(${mr}*=${mr}*(?:[^
|
|
10
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bo=/'/g,Do=/"/g,Fo=/^(?:script|style|textarea|title)$/i,zo=a(t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),"w"),h=zo(1),T=zo(2),re=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),Uo=new WeakMap,$e=Ae.createTreeWalker(Ae,129,null,!1);function qo(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ro!==void 0?Ro.createHTML(e):e}a(qo,"P");var Ni=a((t,e)=>{let r=t.length-1,o=[],n,i=e===2?"<svg>":"",s=et;for(let l=0;l<r;l++){let c=t[l],d,u,p=-1,m=0;for(;m<c.length&&(s.lastIndex=m,u=s.exec(c),u!==null);)m=s.lastIndex,s===et?u[1]==="!--"?s=No:u[1]!==void 0?s=Lo:u[2]!==void 0?(Fo.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ee):u[3]!==void 0&&(s=Ee):s===Ee?u[0]===">"?(s=n??et,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ee:u[3]==='"'?Do:Bo):s===Do||s===Bo?s=Ee:s===No||s===Lo?s=et:(s=Ee,n=void 0);let b=s===Ee&&t[l+1].startsWith("/>")?" ":"";i+=s===et?c+Mi:p>=0?(o.push(d),c.slice(0,p)+pr+c.slice(p)+le+b):c+le+(p===-2?(o.push(void 0),l):b)}return[qo(t,i+(t[r]||"<?>")+(e===2?"</svg>":"")),o]},"V"),ot=class t{static{a(this,"N")}constructor({strings:e,_$litType$:r},o){let n;this.parts=[];let i=0,s=0,l=e.length-1,c=this.parts,[d,u]=Ni(e,r);if(this.el=t.createElement(d,o),$e.currentNode=this.el.content,r===2){let p=this.el.content,m=p.firstChild;m.remove(),p.append(...m.childNodes)}for(;(n=$e.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let m of n.getAttributeNames())if(m.endsWith(pr)||m.startsWith(le)){let b=u[s++];if(p.push(m),b!==void 0){let x=n.getAttribute(b.toLowerCase()+pr).split(le),f=/([.?@])?(.*)/.exec(b);c.push({type:1,index:i,name:f[2],strings:x,ctor:f[1]==="."?gr:f[1]==="?"?wr:f[1]==="@"?vr:De})}else c.push({type:6,index:i})}for(let m of p)n.removeAttribute(m)}if(Fo.test(n.tagName)){let p=n.textContent.split(le),m=p.length-1;if(m>0){n.textContent=Le?Le.emptyScript:"";for(let b=0;b<m;b++)n.append(p[b],tt()),$e.nextNode(),c.push({type:2,index:++i});n.append(p[m],tt())}}}else if(n.nodeType===8)if(n.data===Wo)c.push({type:2,index:i});else{let p=-1;for(;(p=n.data.indexOf(le,p+1))!==-1;)c.push({type:7,index:i}),p+=le.length-1}i++}}static createElement(e,r){let o=Ae.createElement("template");return o.innerHTML=e,o}};function Be(t,e,r=t,o){var n,i,s,l;if(e===re)return e;let c=o!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[o]:r._$Cl,d=rt(e)?void 0:e._$litDirective$;return c?.constructor!==d&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),d===void 0?c=void 0:(c=new d(t),c._$AT(t,r,o)),o!==void 0?((s=(l=r)._$Co)!==null&&s!==void 0?s:l._$Co=[])[o]=c:r._$Cl=c),c!==void 0&&(e=Be(t,c._$AS(t,e.values),c,o)),e}a(Be,"S");var fr=class{static{a(this,"M")}constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;let{el:{content:o},parts:n}=this._$AD,i=((r=e?.creationScope)!==null&&r!==void 0?r:Ae).importNode(o,!0);$e.currentNode=i;let s=$e.nextNode(),l=0,c=0,d=n[0];for(;d!==void 0;){if(l===d.index){let u;d.type===2?u=new nt(s,s.nextSibling,this,e):d.type===1?u=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(u=new br(s,this,e)),this._$AV.push(u),d=n[++c]}l!==d?.index&&(s=$e.nextNode(),l++)}return $e.currentNode=Ae,i}v(e){let r=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}},nt=class t{static{a(this,"R")}constructor(e,r,o,n){var i;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=n,this._$Cp=(i=n?.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Be(this,e,r),rt(e)?e===D||e==null||e===""?(this._$AH!==D&&this._$AR(),this._$AH=D):e!==this._$AH&&e!==re&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ri(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==D&&rt(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ae.createTextNode(e)),this._$AH=e}g(e){var r;let{values:o,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=ot.createElement(qo(n.h,n.h[0]),this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.v(o);else{let s=new fr(i,this),l=s.u(this.options);s.v(o),this.$(l),this._$AH=s}}_$AC(e){let r=Uo.get(e.strings);return r===void 0&&Uo.set(e.strings,r=new ot(e)),r}T(e){Ho(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,o,n=0;for(let i of e)n===r.length?r.push(o=new t(this.k(tt()),this.k(tt()),this,this.options)):o=r[n],o._$AI(i),n++;n<r.length&&(this._$AR(o&&o._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cp=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},De=class{static{a(this,"k")}constructor(e,r,o,n,i){this.type=1,this._$AH=D,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,o,n){let i=this.strings,s=!1;if(i===void 0)e=Be(this,e,r,0),s=!rt(e)||e!==this._$AH&&e!==re,s&&(this._$AH=e);else{let l=e,c,d;for(e=i[0],c=0;c<i.length-1;c++)d=Be(this,l[o+c],r,c),d===re&&(d=this._$AH[c]),s||(s=!rt(d)||d!==this._$AH[c]),d===D?e=D:e!==D&&(e+=(d??"")+i[c+1]),this._$AH[c]=d}s&&!n&&this.j(e)}j(e){e===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gr=class extends De{static{a(this,"H")}constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===D?void 0:e}},Li=Le?Le.emptyScript:"",wr=class extends De{static{a(this,"L")}constructor(){super(...arguments),this.type=4}j(e){e&&e!==D?this.element.setAttribute(this.name,Li):this.element.removeAttribute(this.name)}},vr=class extends De{static{a(this,"z")}constructor(e,r,o,n,i){super(e,r,o,n,i),this.type=5}_$AI(e,r=this){var o;if((e=(o=Be(this,e,r,0))!==null&&o!==void 0?o:D)===re)return;let n=this._$AH,i=e===D&&n!==D||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==D&&(n===D||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,o;typeof this._$AH=="function"?this._$AH.call((o=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}},br=class{static{a(this,"Z")}constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}};var jo=Rt.litHtmlPolyfillSupport;jo?.(ot,nt),((ur=Rt.litHtmlVersions)!==null&&ur!==void 0?ur:Rt.litHtmlVersions=[]).push("2.8.0");var Vo=a((t,e,r)=>{var o,n;let i=(o=r?.renderBefore)!==null&&o!==void 0?o:e,s=i._$litPart$;if(s===void 0){let l=(n=r?.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=s=new nt(e.insertBefore(tt(),l),l,void 0,r??{})}return s._$AI(t),s},"D");var yr,xr;var v=class extends te{static{a(this,"s")}constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let o=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=o.firstChild),o}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vo(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return re}};v.finalized=!0,v._$litElement$=!0,(yr=globalThis.litElementHydrateSupport)===null||yr===void 0||yr.call(globalThis,{LitElement:v});var Zo=globalThis.litElementPolyfillSupport;Zo?.({LitElement:v});((xr=globalThis.litElementVersions)!==null&&xr!==void 0?xr:globalThis.litElementVersions=[]).push("3.3.3");var C=a(t=>e=>typeof e=="function"?((r,o)=>(customElements.define(r,o),o))(t,e):((r,o)=>{let{kind:n,elements:i}=o;return{kind:n,elements:i,finisher(s){customElements.define(r,s)}}})(t,e),"e");var Bi=a((t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}},"i"),Di=a((t,e,r)=>{e.constructor.createProperty(r,t)},"e");function w(t){return(e,r)=>r!==void 0?Di(t,e,r):Bi(t,e)}a(w,"n");function z(t){return w({...t,state:!0})}a(z,"t");var Cr,Xc=((Cr=window.HTMLSlotElement)===null||Cr===void 0?void 0:Cr.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var Ko={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Yo=a(t=>(...e)=>({_$litDirective$:t,values:e}),"e"),Nt=class{static{a(this,"i")}constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,o){this._$Ct=e,this._$AM=r,this._$Ci=o}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var J=Yo(class extends Nt{constructor(t){var e;if(super(t),t.type!==Ko.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,o;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((r=this.nt)===null||r===void 0)&&r.has(i))&&this.it.add(i);return this.render(e)}let n=t.element.classList;this.it.forEach(i=>{i in e||(n.remove(i),this.it.delete(i))});for(let i in e){let s=!!e[i];s===this.it.has(i)||!((o=this.nt)===null||o===void 0)&&o.has(i)||(s?(n.add(i),this.it.add(i)):(n.remove(i),this.it.delete(i)))}return re}});function Er(t,e){t.indexOf(e)===-1&&t.push(e)}a(Er,"addUniqueItem");var st=a((t,e,r)=>Math.min(Math.max(r,t),e),"clamp");var W={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"};var oe=a(t=>typeof t=="number","isNumber");var Q=a(t=>Array.isArray(t)&&!oe(t[0]),"isEasingList");var Go=a((t,e,r)=>{let o=e-t;return((r-t)%o+o)%o+t},"wrap");function Jo(t,e){return Q(t)?t[Go(0,t.length,e)]:t}a(Jo,"getEasingForSegment");var Lt=a((t,e,r)=>-r*t+r*e+t,"mix");var at=a(()=>{},"noop"),q=a(t=>t,"noopReturn");var _e=a((t,e,r)=>e-t===0?1:(r-t)/(e-t),"progress");function $r(t,e){let r=t[t.length-1];for(let o=1;o<=e;o++){let n=_e(0,e,o);t.push(Lt(r,1,n))}}a($r,"fillOffset");function Qo(t){let e=[0];return $r(e,t-1),e}a(Qo,"defaultOffset");function Ar(t,e=Qo(t.length),r=q){let o=t.length,n=o-e.length;return n>0&&$r(e,n),i=>{let s=0;for(;s<o-2&&!(i<e[s+1]);s++);let l=st(0,1,_e(e[s],e[s+1],i));return l=Jo(r,s)(l),Lt(t[s],t[s+1],l)}}a(Ar,"interpolate");var lt=a(t=>Array.isArray(t)&&oe(t[0]),"isCubicBezier");var Ue=a(t=>typeof t=="object"&&!!t.createAnimation,"isEasingGenerator");var Z=a(t=>typeof t=="function","isFunction");var _r=a(t=>typeof t=="string","isString");var ce={ms:t=>t*1e3,s:t=>t/1e3};var Xo=a((t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,"calcBezier"),Ui=1e-7,ji=12;function Wi(t,e,r,o,n){let i,s,l=0;do s=e+(r-e)/2,i=Xo(s,o,n)-t,i>0?r=s:e=s;while(Math.abs(i)>Ui&&++l<ji);return s}a(Wi,"binarySubdivide");function Oe(t,e,r,o){if(t===e&&r===o)return q;let n=a(i=>Wi(i,0,1,t,r),"getTForX");return i=>i===0||i===1?i:Xo(n(i),e,o)}a(Oe,"cubicBezier");var Or=a((t,e="end")=>r=>{r=e==="end"?Math.min(r,.999):Math.max(r,.001);let o=r*t,n=e==="end"?Math.floor(o):Math.ceil(o);return st(0,1,n/t)},"steps");var en={ease:Oe(.25,.1,.25,1),"ease-in":Oe(.42,0,1,1),"ease-in-out":Oe(.42,0,.58,1),"ease-out":Oe(0,0,.58,1)},Hi=/\((.*?)\)/;function Ir(t){if(Z(t))return t;if(lt(t))return Oe(...t);if(en[t])return en[t];if(t.startsWith("steps")){let e=Hi.exec(t);if(e){let r=e[1].split(",");return Or(parseFloat(r[0]),r[1].trim())}}return q}a(Ir,"getEasingFunction");var Ie=class{static{a(this,"Animation")}constructor(e,r=[0,1],{easing:o,duration:n=W.duration,delay:i=W.delay,endDelay:s=W.endDelay,repeat:l=W.repeat,offset:c,direction:d="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=q,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,m)=>{this.resolve=p,this.reject=m}),o=o||W.easing,Ue(o)){let p=o.createAnimation(r);o=p.easing,r=p.keyframes||r,n=p.duration||n}this.repeat=l,this.easing=Q(o)?q:Ir(o),this.updateDuration(n);let u=Ar(r,c,Q(o)?o.map(Ir):q);this.tick=p=>{var m;i=i;let b=0;this.pauseTime!==void 0?b=this.pauseTime:b=(p-this.startTime)*this.rate,this.t=b,b/=1e3,b=Math.max(b-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(b=this.totalDuration);let x=b/this.duration,f=Math.floor(x),S=x%1;!S&&x>=1&&(S=1),S===1&&f--;let $=f%2;(d==="reverse"||d==="alternate"&&$||d==="alternate-reverse"&&!$)&&(S=1-S);let R=b>=this.totalDuration?1:Math.min(S,1),N=u(this.easing(R));e(N),this.pauseTime===void 0&&(this.playState==="finished"||b>=this.totalDuration+s)?(this.playState="finished",(m=this.resolve)===null||m===void 0||m.call(this,N)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}};var Sr=a(function(){},"invariant");var ct=class{static{a(this,"MotionValue")}setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}};var kr=new WeakMap;function Bt(t){return kr.has(t)||kr.set(t,{transforms:[],values:new Map}),kr.get(t)}a(Bt,"getAnimationData");function tn(t,e){return t.has(e)||t.set(e,new ct),t.get(e)}a(tn,"getMotionValue");var Fi=["","X","Y","Z"],zi=["translate","scale","rotate","skew"],dt={x:"translateX",y:"translateY",z:"translateZ"},rn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},qi={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:rn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:q},skew:rn},de=new Map,Ut=a(t=>`--motion-${t}`,"asTransformCssVar"),Dt=["x","y","z"];zi.forEach(t=>{Fi.forEach(e=>{Dt.push(t+e),de.set(Ut(t+e),qi[t])})});var Vi=a((t,e)=>Dt.indexOf(t)-Dt.indexOf(e),"compareTransformOrder"),Zi=new Set(Dt),jt=a(t=>Zi.has(t),"isTransform"),on=a((t,e)=>{dt[e]&&(e=dt[e]);let{transforms:r}=Bt(t);Er(r,e),t.style.transform=Ki(r)},"addTransformToElement"),Ki=a(t=>t.sort(Vi).reduce(Yi,"").trim(),"buildTransformTemplate"),Yi=a((t,e)=>`${t} ${e}(var(${Ut(e)}))`,"transformListToString");var ht=a(t=>t.startsWith("--"),"isCssVar"),nn=new Set;function sn(t){if(!nn.has(t)){nn.add(t);try{let{syntax:e,initialValue:r}=de.has(t)?de.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch{}}}a(sn,"registerCssVariable");var Tr=a((t,e)=>document.createElement("div").animate(t,e),"testAnimation"),an={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Tr({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Tr({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Tr({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Pr={},he={};for(let t in an)he[t]=()=>(Pr[t]===void 0&&(Pr[t]=an[t]()),Pr[t]);var Gi=.015,Ji=a((t,e)=>{let r="",o=Math.round(e/Gi);for(let n=0;n<o;n++)r+=t(_e(0,o-1,n))+", ";return r.substring(0,r.length-2)},"generateLinearEasingPoints"),Mr=a((t,e)=>Z(t)?he.linearEasing()?`linear(${Ji(t,e)})`:W.easing:lt(t)?Qi(t):t,"convertEasing"),Qi=a(([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`,"cubicBezierAsString");function ln(t,e){for(let r=0;r<t.length;r++)t[r]===null&&(t[r]=r?t[r-1]:e());return t}a(ln,"hydrateKeyframes");var cn=a(t=>Array.isArray(t)?t:[t],"keyframesList");function ut(t){return dt[t]&&(t=dt[t]),jt(t)?Ut(t):t}a(ut,"getStyleName");var mt={get:(t,e)=>{e=ut(e);let r=ht(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&r!==0){let o=de.get(e);o&&(r=o.initialValue)}return r},set:(t,e,r)=>{e=ut(e),ht(e)?t.style.setProperty(e,r):t.style[e]=r}};function Wt(t,e=!0){if(!(!t||t.playState==="finished"))try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch{}}a(Wt,"stopAnimation");function dn(t,e){var r;let o=e?.toDefaultUnit||q,n=t[t.length-1];if(_r(n)){let i=((r=n.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";i&&(o=a(s=>s+i,"toUnit"))}return o}a(dn,"getUnitConverter");function Xi(){return window.__MOTION_DEV_TOOLS_RECORD}a(Xi,"getDevToolsRecord");function hn(t,e,r,o={},n){let i=Xi(),s=o.record!==!1&&i,l,{duration:c=W.duration,delay:d=W.delay,endDelay:u=W.endDelay,repeat:p=W.repeat,easing:m=W.easing,persist:b=!1,direction:x,offset:f,allowWebkitAcceleration:S=!1}=o,$=Bt(t),R=jt(e),N=he.waapi();R&&on(t,e);let L=ut(e),V=tn($.values,L),j=de.get(L);return Wt(V.animation,!(Ue(m)&&V.generator)&&o.record!==!1),()=>{let Y=a(()=>{var B,Je;return(Je=(B=mt.get(t,L))!==null&&B!==void 0?B:j?.initialValue)!==null&&Je!==void 0?Je:0},"readInitialValue"),P=ln(cn(r),Y),Oo=dn(P,j);if(Ue(m)){let B=m.createAnimation(P,e!=="opacity",Y,L,V);m=B.easing,P=B.keyframes||P,c=B.duration||c}if(ht(L)&&(he.cssRegisterProperty()?sn(L):N=!1),R&&!he.linearEasing()&&(Z(m)||Q(m)&&m.some(Z))&&(N=!1),N){j&&(P=P.map(xe=>oe(xe)?j.toDefaultUnit(xe):xe)),P.length===1&&(!he.partialKeyframes()||s)&&P.unshift(Y());let B={delay:ce.ms(d),duration:ce.ms(c),endDelay:ce.ms(u),easing:Q(m)?void 0:Mr(m,c),direction:x,iterations:p+1,fill:"both"};l=t.animate({[L]:P,offset:f,easing:Q(m)?m.map(xe=>Mr(xe,c)):void 0},B),l.finished||(l.finished=new Promise((xe,ki)=>{l.onfinish=xe,l.oncancel=ki}));let Je=P[P.length-1];l.finished.then(()=>{b||(mt.set(t,L,Je),l.cancel())}).catch(at),S||(l.playbackRate=1.000001)}else if(n&&R)P=P.map(B=>typeof B=="string"?parseFloat(B):B),P.length===1&&P.unshift(parseFloat(Y())),l=new n(B=>{mt.set(t,L,Oo?Oo(B):B)},P,Object.assign(Object.assign({},o),{duration:c,easing:m}));else{let B=P[P.length-1];mt.set(t,L,j&&oe(B)?j.toDefaultUnit(B):B)}return s&&i(t,e,P,{duration:c,delay:d,easing:m,repeat:p,offset:f},"motion-one"),V.setAnimation(l),l}}a(hn,"animateStyle");var un=a((t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t),"getOptions");function mn(t,e){var r;return typeof t=="string"?e?((r=e[t])!==null&&r!==void 0||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}a(mn,"resolveElements");var es=a(t=>t(),"createAnimation"),pt=a((t,e,r=W.duration)=>new Proxy({animations:t.map(es).filter(Boolean),duration:r,options:e},rs),"withControls"),ts=a(t=>t.animations[0],"getActiveAnimation"),rs={get:(t,e)=>{let r=ts(t);switch(e){case"duration":return t.duration;case"currentTime":return ce.s(r?.[e]||0);case"playbackRate":case"playState":return r?.[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(os)).catch(at)),t.finished;case"stop":return()=>{t.animations.forEach(o=>Wt(o))};case"forEachNative":return o=>{t.animations.forEach(n=>o(n,t))};default:return typeof r?.[e]>"u"?void 0:()=>t.animations.forEach(o=>o[e]())}},set:(t,e,r)=>{switch(e){case"currentTime":r=ce.ms(r);case"playbackRate":for(let o=0;o<t.animations.length;o++)t.animations[o][e]=r;return!0}return!1}},os=a(t=>t.finished,"selectFinished");function pn(t,e,r){return Z(t)?t(e,r):t}a(pn,"resolveOption");function fn(t){return a(function(r,o,n={}){r=mn(r);let i=r.length;Sr(!!i,"No valid element provided."),Sr(!!o,"No keyframes defined.");let s=[];for(let l=0;l<i;l++){let c=r[l];for(let d in o){let u=un(n,d);u.delay=pn(u.delay,l,i);let p=hn(c,d,o[d],u,t);s.push(p)}}return pt(s,n,n.duration)},"animate")}a(fn,"createAnimate");var Rr=fn(Ie);function ns(t,e={}){return pt([()=>{let r=new Ie(t,[0,1],e);return r.finished.catch(()=>{}),r}],e,e.duration)}a(ns,"animateProgress");function ne(t,e,r){return(Z(t)?ns:Rr)(t,e,r)}a(ne,"animate");var H=a(t=>t??D,"l");var Si=Ti(wi(),1);var Xs=Object.defineProperty,vi=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,bi=a((t,e,r)=>e in t?Xs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,"Ue"),no=a((t,e)=>{for(var r in e||(e={}))ea.call(e,r)&&bi(t,r,e[r]);if(vi)for(var r of vi(e))ta.call(e,r)&&bi(t,r,e[r]);return t},"ve");function ra(){var t;let e=(t=Ce.state.themeMode)!=null?t:"dark",r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}a(ra,"rt");function yi(){return{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}}a(yi,"He");var E={getPreset(t){return yi()[t]},setTheme(){let t=document.querySelector(":root"),{themeVariables:e}=Ce.state;if(t){let r=no(no(no({},ra()),yi()),e);Object.entries(r).forEach(([o,n])=>t.style.setProperty(o,n))}},globalCss:A`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},oa=A`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`,na=Object.defineProperty,ia=Object.getOwnPropertyDescriptor,qe=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ia(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&na(e,r,n),n},"F"),ge=class extends v{static{a(this,"T")}constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){let t={"wcm-icon-left":this.iconLeft!==void 0,"wcm-icon-right":this.iconRight!==void 0,"wcm-ghost":this.variant==="ghost","wcm-outline":this.variant==="outline"},e="inverse";return this.variant==="ghost"&&(e="secondary"),this.variant==="outline"&&(e="accent"),h`<button class="${J(t)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${e}"><slot></slot></wcm-text>${this.iconRight}</button>`}};ge.styles=[E.globalCss,oa],qe([w({type:Boolean})],ge.prototype,"disabled",2),qe([w()],ge.prototype,"iconLeft",2),qe([w()],ge.prototype,"iconRight",2),qe([w()],ge.prototype,"onClick",2),qe([w()],ge.prototype,"variant",2),ge=qe([C("wcm-button")],ge);var sa=A`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`,aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,io=a((t,e,r,o)=>{for(var n=o>1?void 0:o?la(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&aa(e,r,n),n},"ue"),Et=class extends v{static{a(this,"ee")}constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let t={"wcm-secondary":this.variant==="secondary"};return h`<button ?disabled="${this.disabled}" class="${J(t)}"><slot></slot></button>`}};Et.styles=[E.globalCss,sa],io([w({type:Boolean})],Et.prototype,"disabled",2),io([w()],Et.prototype,"variant",2),Et=io([C("wcm-button-big")],Et);var ca=A`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`,da=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,ua=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ha(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&da(e,r,n),n},"wt"),so=class extends v{static{a(this,"be")}render(){return h`<div><slot></slot></div>`}};so.styles=[E.globalCss,ca],so=ua([C("wcm-info-footer")],so);var O={CROSS_ICON:T`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,WALLET_CONNECT_LOGO:T`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:T`<svg width="28" height="20" viewBox="0 0 28 20"><g clip-path="url(#a)"><path d="M7.386 6.482c3.653-3.576 9.575-3.576 13.228 0l.44.43a.451.451 0 0 1 0 .648L19.55 9.033a.237.237 0 0 1-.33 0l-.606-.592c-2.548-2.496-6.68-2.496-9.228 0l-.648.634a.237.237 0 0 1-.33 0L6.902 7.602a.451.451 0 0 1 0-.647l.483-.473Zm16.338 3.046 1.339 1.31a.451.451 0 0 1 0 .648l-6.035 5.909a.475.475 0 0 1-.662 0L14.083 13.2a.119.119 0 0 0-.166 0l-4.283 4.194a.475.475 0 0 1-.662 0l-6.035-5.91a.451.451 0 0 1 0-.647l1.338-1.31a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0l4.283 4.194c.046.044.12.044.166 0l4.283-4.194a.475.475 0 0 1 .662 0Z" fill="#000000"/></g><defs><clipPath id="a"><path fill="#ffffff" d="M0 0h28v20H0z"/></clipPath></defs></svg>`,WALLET_CONNECT_ICON_COLORED:T`<svg width="96" height="96" fill="none"><path fill="#fff" d="M25.322 33.597c12.525-12.263 32.83-12.263 45.355 0l1.507 1.476a1.547 1.547 0 0 1 0 2.22l-5.156 5.048a.814.814 0 0 1-1.134 0l-2.074-2.03c-8.737-8.555-22.903-8.555-31.64 0l-2.222 2.175a.814.814 0 0 1-1.134 0l-5.156-5.049a1.547 1.547 0 0 1 0-2.22l1.654-1.62Zm56.019 10.44 4.589 4.494a1.547 1.547 0 0 1 0 2.22l-20.693 20.26a1.628 1.628 0 0 1-2.267 0L48.283 56.632a.407.407 0 0 0-.567 0L33.03 71.012a1.628 1.628 0 0 1-2.268 0L10.07 50.75a1.547 1.547 0 0 1 0-2.22l4.59-4.494a1.628 1.628 0 0 1 2.267 0l14.687 14.38c.156.153.41.153.567 0l14.685-14.38a1.628 1.628 0 0 1 2.268 0l14.687 14.38c.156.153.41.153.567 0l14.686-14.38a1.628 1.628 0 0 1 2.268 0Z"/><path stroke="#000" d="M25.672 33.954c12.33-12.072 32.325-12.072 44.655 0l1.508 1.476a1.047 1.047 0 0 1 0 1.506l-5.157 5.048a.314.314 0 0 1-.434 0l-2.074-2.03c-8.932-8.746-23.409-8.746-32.34 0l-2.222 2.174a.314.314 0 0 1-.434 0l-5.157-5.048a1.047 1.047 0 0 1 0-1.506l1.655-1.62Zm55.319 10.44 4.59 4.494a1.047 1.047 0 0 1 0 1.506l-20.694 20.26a1.128 1.128 0 0 1-1.568 0l-14.686-14.38a.907.907 0 0 0-1.267 0L32.68 70.655a1.128 1.128 0 0 1-1.568 0L10.42 50.394a1.047 1.047 0 0 1 0-1.506l4.59-4.493a1.128 1.128 0 0 1 1.567 0l14.687 14.379a.907.907 0 0 0 1.266 0l-.35-.357.35.357 14.686-14.38a1.128 1.128 0 0 1 1.568 0l14.687 14.38a.907.907 0 0 0 1.267 0l14.686-14.38a1.128 1.128 0 0 1 1.568 0Z"/></svg>`,BACK_ICON:T`<svg width="10" height="18" viewBox="0 0 10 18"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.735.179a.75.75 0 0 1 .087 1.057L2.92 8.192a1.25 1.25 0 0 0 0 1.617l5.902 6.956a.75.75 0 1 1-1.144.97L1.776 10.78a2.75 2.75 0 0 1 0-3.559L7.678.265A.75.75 0 0 1 8.735.18Z" fill="#fff"/></svg>`,COPY_ICON:T`<svg width="24" height="24" fill="none"><path fill="#fff" fill-rule="evenodd" d="M7.01 7.01c.03-1.545.138-2.5.535-3.28A5 5 0 0 1 9.73 1.545C10.8 1 12.2 1 15 1c2.8 0 4.2 0 5.27.545a5 5 0 0 1 2.185 2.185C23 4.8 23 6.2 23 9c0 2.8 0 4.2-.545 5.27a5 5 0 0 1-2.185 2.185c-.78.397-1.735.505-3.28.534l-.001.01c-.03 1.54-.138 2.493-.534 3.27a5 5 0 0 1-2.185 2.186C13.2 23 11.8 23 9 23c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C1 19.2 1 17.8 1 15c0-2.8 0-4.2.545-5.27A5 5 0 0 1 3.73 7.545C4.508 7.149 5.46 7.04 7 7.01h.01ZM15 15.5c-1.425 0-2.403-.001-3.162-.063-.74-.06-1.139-.172-1.427-.319a3.5 3.5 0 0 1-1.53-1.529c-.146-.288-.257-.686-.318-1.427C8.501 11.403 8.5 10.425 8.5 9c0-1.425.001-2.403.063-3.162.06-.74.172-1.139.318-1.427a3.5 3.5 0 0 1 1.53-1.53c.288-.146.686-.257 1.427-.318.759-.062 1.737-.063 3.162-.063 1.425 0 2.403.001 3.162.063.74.06 1.139.172 1.427.318a3.5 3.5 0 0 1 1.53 1.53c.146.288.257.686.318 1.427.062.759.063 1.737.063 3.162 0 1.425-.001 2.403-.063 3.162-.06.74-.172 1.139-.319 1.427a3.5 3.5 0 0 1-1.529 1.53c-.288.146-.686.257-1.427.318-.759.062-1.737.063-3.162.063ZM7 8.511c-.444.009-.825.025-1.162.052-.74.06-1.139.172-1.427.318a3.5 3.5 0 0 0-1.53 1.53c-.146.288-.257.686-.318 1.427-.062.759-.063 1.737-.063 3.162 0 1.425.001 2.403.063 3.162.06.74.172 1.139.318 1.427a3.5 3.5 0 0 0 1.53 1.53c.288.146.686.257 1.427.318.759.062 1.737.063 3.162.063 1.425 0 2.403-.001 3.162-.063.74-.06 1.139-.172 1.427-.319a3.5 3.5 0 0 0 1.53-1.53c.146-.287.257-.685.318-1.426.027-.337.043-.718.052-1.162H15c-2.8 0-4.2 0-5.27-.545a5 5 0 0 1-2.185-2.185C7 13.2 7 11.8 7 9v-.489Z" clip-rule="evenodd"/></svg>`,RETRY_ICON:T`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:T`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:T`<svg width="16" height="16" viewBox="0 0 16 16"><path d="M6.75 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 4.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C5.204 0 6.136 0 8 0s2.795 0 3.486.394a3 3 0 0 1 1.12 1.12C13 2.204 13 3.13 13 4.98v6.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C10.796 16 9.864 16 8 16s-2.795 0-3.486-.394a3 3 0 0 1-1.12-1.12C3 13.796 3 12.87 3 11.02V4.98Zm8.5 0v6.04c0 .953-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.045-.242.113-.693.154-.47.042-1.091.043-2.05.043-.959 0-1.58-.001-2.05-.043-.45-.04-.613-.109-.693-.154a1.5 1.5 0 0 1-.56-.56c-.046-.08-.114-.243-.154-.69-.042-.466-.043-1.08-.043-2.033V4.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.045.243-.113.693-.154C6.42 1.501 7.041 1.5 8 1.5c.959 0 1.58.001 2.05.043.45.04.613.109.693.154a1.5 1.5 0 0 1 .56.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033Z" fill="#fff"/></svg>`,ARROW_DOWN_ICON:T`<svg width="14" height="14" viewBox="0 0 14 14"><path d="M2.28 7.47a.75.75 0 0 0-1.06 1.06l5.25 5.25a.75.75 0 0 0 1.06 0l5.25-5.25a.75.75 0 0 0-1.06-1.06l-3.544 3.543a.25.25 0 0 1-.426-.177V.75a.75.75 0 0 0-1.5 0v10.086a.25.25 0 0 1-.427.176L2.28 7.47Z" fill="#fff"/></svg>`,ARROW_UP_RIGHT_ICON:T`<svg width="15" height="14" fill="none"><path d="M4.5 1.75A.75.75 0 0 1 5.25 1H12a1.5 1.5 0 0 1 1.5 1.5v6.75a.75.75 0 0 1-1.5 0V4.164a.25.25 0 0 0-.427-.176L4.061 11.5A.75.75 0 0 1 3 10.44l7.513-7.513a.25.25 0 0 0-.177-.427H5.25a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,ARROW_RIGHT_ICON:T`<svg width="6" height="14" viewBox="0 0 6 14"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.181 1.099a.75.75 0 0 1 1.024.279l2.433 4.258a2.75 2.75 0 0 1 0 2.729l-2.433 4.257a.75.75 0 1 1-1.303-.744L4.335 7.62a1.25 1.25 0 0 0 0-1.24L1.902 2.122a.75.75 0 0 1 .28-1.023Z" fill="#fff"/></svg>`,QRCODE_ICON:T`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:T`<svg width="16" height="16" fill="none"><path fill="#fff" d="M10 15.216c0 .422.347.763.768.74 1.202-.064 2.025-.222 2.71-.613a5.001 5.001 0 0 0 1.865-1.866c.39-.684.549-1.507.613-2.709a.735.735 0 0 0-.74-.768.768.768 0 0 0-.76.732c-.009.157-.02.306-.032.447-.073.812-.206 1.244-.384 1.555-.31.545-.761.996-1.306 1.306-.311.178-.743.311-1.555.384-.141.013-.29.023-.447.032a.768.768 0 0 0-.732.76ZM10 .784c0 .407.325.737.732.76.157.009.306.02.447.032.812.073 1.244.206 1.555.384a3.5 3.5 0 0 1 1.306 1.306c.178.311.311.743.384 1.555.013.142.023.29.032.447a.768.768 0 0 0 .76.732.734.734 0 0 0 .74-.768c-.064-1.202-.222-2.025-.613-2.71A5 5 0 0 0 13.477.658c-.684-.39-1.507-.549-2.709-.613a.735.735 0 0 0-.768.74ZM5.232.044A.735.735 0 0 1 6 .784a.768.768 0 0 1-.732.76c-.157.009-.305.02-.447.032-.812.073-1.244.206-1.555.384A3.5 3.5 0 0 0 1.96 3.266c-.178.311-.311.743-.384 1.555-.013.142-.023.29-.032.447A.768.768 0 0 1 .784 6a.735.735 0 0 1-.74-.768c.064-1.202.222-2.025.613-2.71A5 5 0 0 1 2.523.658C3.207.267 4.03.108 5.233.044ZM5.268 14.456a.768.768 0 0 1 .732.76.734.734 0 0 1-.768.74c-1.202-.064-2.025-.222-2.71-.613a5 5 0 0 1-1.865-1.866c-.39-.684-.549-1.507-.613-2.709A.735.735 0 0 1 .784 10c.407 0 .737.325.76.732.009.157.02.306.032.447.073.812.206 1.244.384 1.555a3.5 3.5 0 0 0 1.306 1.306c.311.178.743.311 1.555.384.142.013.29.023.447.032Z"/></svg>`,CHECKMARK_ICON:T`<svg width="13" height="12" viewBox="0 0 13 12"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.155.132a.75.75 0 0 1 .232 1.035L5.821 11.535a1 1 0 0 1-1.626.09L.665 7.21a.75.75 0 1 1 1.17-.937L4.71 9.867a.25.25 0 0 0 .406-.023L11.12.364a.75.75 0 0 1 1.035-.232Z" fill="#fff"/></svg>`,SEARCH_ICON:T`<svg width="20" height="21"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.432 13.992c-.354-.353-.91-.382-1.35-.146a5.5 5.5 0 1 1 2.265-2.265c-.237.441-.208.997.145 1.35l3.296 3.296a.75.75 0 1 1-1.06 1.061l-3.296-3.296Zm.06-5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" fill="#949E9E"/></svg>`,WALLET_PLACEHOLDER:T`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:T`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`},ma=A`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`,pa=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ga=a((t,e,r,o)=>{for(var n=o>1?void 0:o?fa(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&pa(e,r,n),n},"ut"),ao=class extends v{static{a(this,"fe")}render(){return h`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${O.WALLET_CONNECT_LOGO} <button @click="${Qe.close}">${O.CROSS_ICON}</button></div>`}};ao.styles=[E.globalCss,ma],ao=ga([C("wcm-modal-backcard")],ao);var wa=A`main{padding:20px;padding-top:0;width:100%}`,va=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ya=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ba(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&va(e,r,n),n},"yt"),lo=class extends v{static{a(this,"xe")}render(){return h`<main><slot></slot></main>`}};lo.styles=[E.globalCss,wa],lo=ya([C("wcm-modal-content")],lo);var xa=A`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`,Ca=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,$a=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Ea(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ca(e,r,n),n},"Ot"),co=class extends v{static{a(this,"ye")}render(){return h`<footer><slot></slot></footer>`}};co.styles=[E.globalCss,xa],co=$a([C("wcm-modal-footer")],co);var Aa=A`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`,_a=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor,$t=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Oa(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&_a(e,r,n),n},"te"),Me=class extends v{static{a(this,"S")}constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return h`<button class="wcm-back-btn" @click="${M.goBack}">${O.BACK_ICON}</button>`}actionBtnTemplate(){return h`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){let t={"wcm-border":this.border},e=M.state.history.length>1,r=this.title?h`<wcm-text variant="big-bold">${this.title}</wcm-text>`:h`<slot></slot>`;return h`<header class="${J(t)}">${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}</header>`}};Me.styles=[E.globalCss,Aa],$t([w()],Me.prototype,"title",2),$t([w()],Me.prototype,"onAction",2),$t([w()],Me.prototype,"actionIcon",2),$t([w({type:Boolean})],Me.prototype,"border",2),Me=$t([C("wcm-modal-header")],Me);var g={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){let r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){let{walletImages:r}=ae.state;return r!=null&&r[t]?r[t]:e?F.getWalletImageUrl(e):""},getWalletName(t,e=!1){return e&&t.length>8?`${t.substring(0,8)}..`:t},isMobileAnimation(){return window.innerWidth<=g.MOBILE_BREAKPOINT},async preloadImage(t){let e=new Promise((r,o)=>{let n=new Image;n.onload=r,n.onerror=o,n.crossOrigin="anonymous",n.src=t});return Promise.race([e,y.wait(3e3)])},getErrorMessage(t){return t instanceof Error?t.message:"Unknown Error"},debounce(t,e=500){let r;return(...o)=>{function n(){t(...o)}a(n,"t"),r&&clearTimeout(r),r=setTimeout(n,e)}},handleMobileLinking(t){let{walletConnectUri:e}=G.state,{mobile:r,name:o}=t,n=r?.native,i=r?.universal;g.setRecentWallet(t);function s(l){let c="";n?c=y.formatUniversalUrl(n,l,o):i&&(c=y.formatNativeUrl(i,l,o)),y.openHref(c,"_self")}a(s,"i"),e&&s(e)},handleAndroidLinking(){let{walletConnectUri:t}=G.state;t&&(y.setWalletConnectAndroidDeepLink(t),y.openHref(t,"_self"))},async handleUriCopy(){let{walletConnectUri:t}=G.state;if(t)try{await navigator.clipboard.writeText(t),ee.openToast("Link copied","success")}catch{ee.openToast("Failed to copy","error")}},getCustomImageUrls(){let{walletImages:t}=ae.state,e=Object.values(t??{});return Object.values(e)},truncate(t,e=8){return t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`},setRecentWallet(t){try{localStorage.setItem(g.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{let t=localStorage.getItem(g.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes(t,e){return t.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){y.openHref(g.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){let{desktop:t,mobile:e}=y.getWalletRouterData(),r=!!t?.native,o=!!t?.universal,n=!!e?.native||!!e?.universal;return{isDesktop:r,isMobile:n,isWeb:o}},goToConnectingView(t){M.setData({Wallet:t});let e=y.isMobile(),{isDesktop:r,isWeb:o,isMobile:n}=g.getCachedRouterWalletPlatforms();e?n?M.push("MobileConnecting"):o?M.push("WebConnecting"):M.push("InstallWallet"):r?M.push("DesktopConnecting"):o?M.push("WebConnecting"):n?M.push("MobileQrcodeConnecting"):M.push("InstallWallet")}},Ia=A`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`,Sa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,ho=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ka(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Sa(e,r,n),n},"$e"),At=class extends v{static{a(this,"oe")}constructor(){super(),this.view=M.state.view,this.prevView=M.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=M.subscribe(t=>{this.view!==t.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([t])=>{let e=`${t.contentRect.height}px`;this.oldHeight!=="0px"&&ne(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;(t=this.unsubscribe)==null||t.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return g.getShadowRootElement(this,".wcm-router")}get contentEl(){return g.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return h`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return h`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return h`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return h`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return h`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return h`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return h`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return h`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return h`<div>Not Found</div>`}}async onChangeRoute(){await ne(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=M.state.view,ne(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return h`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};At.styles=[E.globalCss,Ia],ho([z()],At.prototype,"view",2),ho([z()],At.prototype,"prevView",2),At=ho([C("wcm-modal-router")],At);var Ta=A`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`,Pa=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,xi=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Ma(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Pa(e,r,n),n},"ze"),Xt=class extends v{static{a(this,"ne")}constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=ee.subscribe(t=>{t.open?(this.open=!0,this.timeout=setTimeout(()=>ee.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var t;(t=this.unsubscribe)==null||t.call(this),clearTimeout(this.timeout),ee.closeToast()}render(){let{message:t,variant:e}=ee.state,r={"wcm-success":e==="success","wcm-error":e==="error"};return this.open?h`<div class="${J(r)}">${e==="success"?O.CHECKMARK_ICON:null} ${e==="error"?O.CROSS_ICON:null}<wcm-text variant="small-regular">${t}</wcm-text></div>`:null}};Xt.styles=[E.globalCss,Ta],xi([z()],Xt.prototype,"open",2),Xt=xi([C("wcm-modal-toast")],Xt);var Ra=.1,Ci=2.5,se=7;function uo(t,e,r){return t===e?!1:(t-e<0?e-t:t-e)<=r+Ra}a(uo,"Ce");function Na(t,e){let r=Array.prototype.slice.call(Si.default.create(t,{errorCorrectionLevel:e}).modules.data,0),o=Math.sqrt(r.length);return r.reduce((n,i,s)=>(s%o===0?n.push([i]):n[n.length-1].push(i))&&n,[])}a(Na,"_t");var La={generate(t,e,r){let o="#141414",n="#ffffff",i=[],s=Na(t,"Q"),l=e/s.length,c=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];c.forEach(({x,y:f})=>{let S=(s.length-se)*l*x,$=(s.length-se)*l*f,R=.45;for(let N=0;N<c.length;N+=1){let L=l*(se-N*2);i.push(T`<rect fill="${N%2===0?o:n}" height="${L}" rx="${L*R}" ry="${L*R}" width="${L}" x="${S+l*N}" y="${$+l*N}">`)}});let d=Math.floor((r+25)/l),u=s.length/2-d/2,p=s.length/2+d/2-1,m=[];s.forEach((x,f)=>{x.forEach((S,$)=>{if(s[f][$]&&!(f<se&&$<se||f>s.length-(se+1)&&$<se||f<se&&$>s.length-(se+1))&&!(f>u&&f<p&&$>u&&$<p)){let R=f*l+l/2,N=$*l+l/2;m.push([R,N])}})});let b={};return m.forEach(([x,f])=>{b[x]?b[x].push(f):b[x]=[f]}),Object.entries(b).map(([x,f])=>{let S=f.filter($=>f.every(R=>!uo($,R,l)));return[Number(x),S]}).forEach(([x,f])=>{f.forEach(S=>{i.push(T`<circle cx="${x}" cy="${S}" fill="${o}" r="${l/Ci}">`)})}),Object.entries(b).filter(([x,f])=>f.length>1).map(([x,f])=>{let S=f.filter($=>f.some(R=>uo($,R,l)));return[Number(x),S]}).map(([x,f])=>{f.sort(($,R)=>$<R?-1:1);let S=[];for(let $ of f){let R=S.find(N=>N.some(L=>uo($,L,l)));R?R.push($):S.push([$])}return[x,S.map($=>[$[0],$[$.length-1]])]}).forEach(([x,f])=>{f.forEach(([S,$])=>{i.push(T`<line x1="${x}" x2="${x}" y1="${S}" y2="${$}" stroke="${o}" stroke-width="${l/(Ci/2)}" stroke-linecap="round">`)})}),i}},Ba=A`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`,Da=Object.defineProperty,Ua=Object.getOwnPropertyDescriptor,Ve=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Ua(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Da(e,r,n),n},"q"),we=class extends v{static{a(this,"j")}constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){let t=Ce.state.themeMode==="light"?this.size:this.size-36;return T`<svg height="${t}" width="${t}">${La.generate(this.uri,t,t/4)}</svg>`}render(){let t={"wcm-dark":Ce.state.themeMode==="dark"};return h`<div style="${`width: ${this.size}px`}" class="${J(t)}">${this.walletId||this.imageUrl?h`<wcm-wallet-image walletId="${H(this.walletId)}" imageId="${H(this.imageId)}" imageUrl="${H(this.imageUrl)}"></wcm-wallet-image>`:O.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};we.styles=[E.globalCss,Ba],Ve([w()],we.prototype,"uri",2),Ve([w({type:Number})],we.prototype,"size",2),Ve([w()],we.prototype,"imageId",2),Ve([w()],we.prototype,"walletId",2),Ve([w()],we.prototype,"imageUrl",2),we=Ve([C("wcm-qrcode")],we);var ja=A`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`,Wa=Object.defineProperty,Ha=Object.getOwnPropertyDescriptor,Ei=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Ha(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Wa(e,r,n),n},"Fe"),er=class extends v{static{a(this,"ce")}constructor(){super(...arguments),this.onChange=()=>null}render(){return h`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${O.SEARCH_ICON}`}};er.styles=[E.globalCss,ja],Ei([w()],er.prototype,"onChange",2),er=Ei([C("wcm-search-input")],er);var Fa=A`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`,za=Object.defineProperty,qa=Object.getOwnPropertyDescriptor,Va=a((t,e,r,o)=>{for(var n=o>1?void 0:o?qa(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&za(e,r,n),n},"qt"),mo=class extends v{static{a(this,"ke")}render(){return h`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`}};mo.styles=[E.globalCss,Fa],mo=Va([C("wcm-spinner")],mo);var Za=A`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`,Ka=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,po=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Ya(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ka(e,r,n),n},"Oe"),_t=class extends v{static{a(this,"re")}constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let t={"wcm-big-bold":this.variant==="big-bold","wcm-medium-regular":this.variant==="medium-regular","wcm-small-regular":this.variant==="small-regular","wcm-small-thin":this.variant==="small-thin","wcm-xsmall-regular":this.variant==="xsmall-regular","wcm-xsmall-bold":this.variant==="xsmall-bold","wcm-color-primary":this.color==="primary","wcm-color-secondary":this.color==="secondary","wcm-color-tertiary":this.color==="tertiary","wcm-color-inverse":this.color==="inverse","wcm-color-accnt":this.color==="accent","wcm-color-error":this.color==="error"};return h`<span><slot class="${J(t)}"></slot></span>`}};_t.styles=[E.globalCss,Za],po([w()],_t.prototype,"variant",2),po([w()],_t.prototype,"color",2),_t=po([C("wcm-text")],_t);var Ga=A`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`,Ja=Object.defineProperty,Qa=Object.getOwnPropertyDescriptor,ve=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Qa(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ja(e,r,n),n},"_"),X=class extends v{static{a(this,"L")}constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?h`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?h`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){Io.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return h`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${H(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${(t=this.label)!=null?t:g.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};X.styles=[E.globalCss,Ga],ve([w()],X.prototype,"onClick",2),ve([w()],X.prototype,"name",2),ve([w()],X.prototype,"walletId",2),ve([w()],X.prototype,"label",2),ve([w()],X.prototype,"imageId",2),ve([w({type:Boolean})],X.prototype,"installed",2),ve([w({type:Boolean})],X.prototype,"recent",2),X=ve([C("wcm-wallet-button")],X);var Xa=A`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,tr=a((t,e,r,o)=>{for(var n=o>1?void 0:o?tl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&el(e,r,n),n},"se"),Ze=class extends v{static{a(this,"Q")}constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;let e=(t=this.imageUrl)!=null&&t.length?this.imageUrl:g.getWalletIcon({id:this.walletId,image_id:this.imageId});return h`${e.length?h`<div><img crossorigin="anonymous" src="${e}" alt="${this.id}"></div>`:O.WALLET_PLACEHOLDER}`}};Ze.styles=[E.globalCss,Xa],tr([w()],Ze.prototype,"walletId",2),tr([w()],Ze.prototype,"imageId",2),tr([w()],Ze.prototype,"imageUrl",2),Ze=tr([C("wcm-wallet-image")],Ze);var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,$i=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ol(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&rl(e,r,n),n},"qe"),fo=class extends v{static{a(this,"We")}constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{t!=null&&t.length&&await Promise.all(t.map(async e=>g.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(ae.state.enableExplorer){await F.getRecomendedWallets(),G.setIsDataLoaded(!0);let{recomendedWallets:t}=F.state,e=t.map(r=>g.getWalletIcon(r));await this.loadImages(e)}else G.setIsDataLoaded(!0)}async preloadCustomImages(){let t=g.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),ee.openToast("Failed preloading","error")}}};$i([z()],fo.prototype,"preload",2),fo=$i([C("wcm-explorer-context")],fo);var nl=Object.defineProperty,il=Object.getOwnPropertyDescriptor,sl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?il(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&nl(e,r,n),n},"no"),Ai=class extends v{static{a(this,"Qe")}constructor(){super(),this.unsubscribeTheme=void 0,E.setTheme(),this.unsubscribeTheme=Ce.subscribe(E.setTheme)}disconnectedCallback(){var t;(t=this.unsubscribeTheme)==null||t.call(this)}};Ai=sl([C("wcm-theme-context")],Ai);var al=A`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,dl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?cl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&ll(e,r,n),n},"ho"),go=class extends v{static{a(this,"Ie")}onGoToQrcode(){M.push("Qrcode")}render(){let{recomendedWallets:t}=F.state,e=[...t,...t],r=y.RECOMMENDED_WALLET_AMOUNT*2;return h`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${O.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${O.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map((o,n)=>{let i=e[n%e.length];return i?h`<wcm-wallet-image walletId="${i.id}" imageId="${i.image_id}"></wcm-wallet-image>`:O.WALLET_PLACEHOLDER})}</div><wcm-button-big @click="${g.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};go.styles=[E.globalCss,al],go=dl([C("wcm-android-wallet-selection")],go);var hl=A`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`,ul=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,Ke=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ml(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&ul(e,r,n),n},"K"),be=class extends v{static{a(this,"D")}constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;let r=(e=(t=Ce.state.themeVariables)==null?void 0:t["--wcm-wallet-icon-large-border-radius"])!=null?e:E.getPreset("--wcm-wallet-icon-large-border-radius"),o=0;r.includes("%")?o=88/100*parseInt(r,10):o=parseInt(r,10),o*=1.17;let n=317-o*1.57,i=425-o*1.8;return h`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${o}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${n}" stroke-dashoffset="${i}"></use></svg>`}render(){let t={"wcm-error":this.isError,"wcm-stale":this.isStale};return h`<div class="${J(t)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${H(this.walletId)}" imageId="${H(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};be.styles=[E.globalCss,hl],Ke([w()],be.prototype,"walletId",2),Ke([w()],be.prototype,"imageId",2),Ke([w({type:Boolean})],be.prototype,"isError",2),Ke([w({type:Boolean})],be.prototype,"isStale",2),Ke([w()],be.prototype,"label",2),be=Ke([C("wcm-connector-waiting")],be);var Ge={manualWallets(){var t,e;let{mobileWallets:r,desktopWallets:o}=ae.state,n=(t=Ge.recentWallet())==null?void 0:t.id,i=y.isMobile()?r:o,s=i?.filter(l=>n!==l.id);return(e=y.isMobile()?s?.map(({id:l,name:c,links:d})=>({id:l,name:c,mobile:d,links:d})):s?.map(({id:l,name:c,links:d})=>({id:l,name:c,desktop:d,links:d})))!=null?e:[]},recentWallet(){return g.getRecentWallet()},recomendedWallets(t=!1){var e;let r=t||(e=Ge.recentWallet())==null?void 0:e.id,{recomendedWallets:o}=F.state;return o.filter(n=>r!==n.id)}},ye={onConnecting(t){g.goToConnectingView(t)},manualWalletsTemplate(){return Ge.manualWallets().map(t=>h`<wcm-wallet-button walletId="${t.id}" name="${t.name}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`)},recomendedWalletsTemplate(t=!1){return Ge.recomendedWallets(t).map(e=>h`<wcm-wallet-button name="${e.name}" walletId="${e.id}" imageId="${e.image_id}" .onClick="${()=>this.onConnecting(e)}"></wcm-wallet-button>`)},recentWalletTemplate(){let t=Ge.recentWallet();if(t)return h`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${H(t.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`}},pl=A`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`,fl=Object.defineProperty,gl=Object.getOwnPropertyDescriptor,wl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?gl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&fl(e,r,n),n},"fo"),wo=class extends v{static{a(this,"Ee")}render(){let{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,o=ye.manualWalletsTemplate(),n=ye.recomendedWalletsTemplate(),i=[ye.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);let s=i.length>4||r,l=[];s?l=i.slice(0,3):l=i;let c=!!l.length;return h`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${g.handleUriCopy}" .actionIcon="${O.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${O.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${O.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${c?h`<wcm-modal-footer><div class="wcm-desktop-title">${O.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${l} ${s?h`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};wo.styles=[E.globalCss,pl],wo=wl([C("wcm-desktop-wallet-selection")],wo);var vl=A`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`,bl=Object.defineProperty,yl=Object.getOwnPropertyDescriptor,xl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?yl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&bl(e,r,n),n},"Co"),vo=class extends v{static{a(this,"Me")}render(){let{termsOfServiceUrl:t,privacyPolicyUrl:e}=ae.state;return t??e?h`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${t?h`<a href="${t}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${t&&e?"and":null} ${e?h`<a href="${e}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};vo.styles=[E.globalCss,vl],vo=xl([C("wcm-legal-notice")],vo);var Cl=A`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,El=Object.defineProperty,$l=Object.getOwnPropertyDescriptor,Al=a((t,e,r,o)=>{for(var n=o>1?void 0:o?$l(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&El(e,r,n),n},"Io"),bo=class extends v{static{a(this,"Le")}onQrcode(){M.push("Qrcode")}render(){let{explorerExcludedWalletIds:t,enableExplorer:e}=ae.state,r=t!=="ALL"&&e,o=ye.manualWalletsTemplate(),n=ye.recomendedWalletsTemplate(),i=[ye.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);let s=i.length>8||r,l=[];s?l=i.slice(0,7):l=i;let c=!!l.length;return h`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${O.QRCODE_ICON}"></wcm-modal-header>${c?h`<wcm-modal-content><div>${l} ${s?h`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};bo.styles=[E.globalCss,Cl],bo=Al([C("wcm-mobile-wallet-selection")],bo);var _l=A`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`,Ol=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,yo=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Il(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ol(e,r,n),n},"Re"),Ot=class extends v{static{a(this,"ae")}constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Qe.subscribe(t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var t;(t=this.unsubscribeModal)==null||t.call(this)}get overlayEl(){return g.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return g.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){document.querySelector("body")&&(t?document.getElementById("wcm-styles")?.remove():document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>'))}onCloseModal(t){t.target===t.currentTarget&&Qe.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout(async()=>{let t=g.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]},e=.1,r=.2;await Promise.all([ne(this.overlayEl,{opacity:[0,1]},{delay:e,duration:r}).finished,ne(this.containerEl,t,{delay:e,duration:r}).finished]),this.active=!0},0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();let t=g.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]},e=.2;await Promise.all([ne(this.overlayEl,{opacity:[1,0]},{duration:e}).finished,ne(this.containerEl,t,{duration:e}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",t=>{var e;t.key==="Escape"?Qe.close():t.key==="Tab"&&((e=t.target)!=null&&e.tagName.includes("wcm-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;(t=this.abortController)==null||t.abort(),this.abortController=void 0}render(){let t={"wcm-overlay":!0,"wcm-active":this.active};return h`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${J(t)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?h`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};Ot.styles=[E.globalCss,_l],yo([z()],Ot.prototype,"open",2),yo([z()],Ot.prototype,"active",2),Ot=yo([C("wcm-modal")],Ot);var Sl=A`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`,kl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,It=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Tl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&kl(e,r,n),n},"le"),Re=class extends v{static{a(this,"B")}constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){y.isMobile()?M.replace("MobileConnecting"):M.replace("MobileQrcodeConnecting")}onDesktop(){M.replace("DesktopConnecting")}onWeb(){M.replace("WebConnecting")}render(){return h`<div>${this.isRetry?h`<slot></slot>`:null} ${this.isMobile?h`<wcm-button .onClick="${this.onMobile}" .iconLeft="${O.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?h`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${O.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?h`<wcm-button .onClick="${this.onWeb}" .iconLeft="${O.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};Re.styles=[E.globalCss,Sl],It([w({type:Boolean})],Re.prototype,"isMobile",2),It([w({type:Boolean})],Re.prototype,"isDesktop",2),It([w({type:Boolean})],Re.prototype,"isWeb",2),It([w({type:Boolean})],Re.prototype,"isRetry",2),Re=It([C("wcm-platform-selection")],Re);var Pl=A`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`,Ml=Object.defineProperty,Rl=Object.getOwnPropertyDescriptor,Nl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Rl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ml(e,r,n),n},"Do"),xo=class extends v{static{a(this,"Ae")}onClick(){M.push("WalletExplorer")}render(){let{recomendedWallets:t}=F.state,e=Ge.manualWallets(),r=[...t,...e].reverse().slice(0,4);return h`<button @click="${this.onClick}"><div class="wcm-icons">${r.map(o=>{let n=g.getWalletIcon(o);if(n)return h`<img crossorigin="anonymous" src="${n}">`;let i=g.getWalletIcon({id:o.id});return i?h`<img crossorigin="anonymous" src="${i}">`:O.WALLET_PLACEHOLDER})} ${[...Array(4-r.length)].map(()=>O.WALLET_PLACEHOLDER)}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};xo.styles=[E.globalCss,Pl],xo=Nl([C("wcm-view-all-wallets-button")],xo);var Ll=A`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,Bl=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,rr=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Dl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Bl(e,r,n),n},"de"),Ye=class extends v{static{a(this,"Y")}constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout(()=>{let{walletConnectUri:t}=G.state;this.uri=t},0)}get overlayEl(){return g.getShadowRootElement(this,".wcm-qr-container")}render(){return h`<div class="wcm-qr-container">${this.uri?h`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${H(this.walletId)}" imageId="${H(this.imageId)}"></wcm-qrcode>`:h`<wcm-spinner></wcm-spinner>`}</div>`}};Ye.styles=[E.globalCss,Ll],rr([w()],Ye.prototype,"walletId",2),rr([w()],Ye.prototype,"imageId",2),rr([z()],Ye.prototype,"uri",2),Ye=rr([C("wcm-walletconnect-qr")],Ye);var Ul=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,Wl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?jl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Ul(e,r,n),n},"Ho"),Co=class extends v{static{a(this,"Pe")}viewTemplate(){return y.isAndroid()?h`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:y.isMobile()?h`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:h`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return h`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};Co.styles=[E.globalCss],Co=Wl([C("wcm-connect-wallet-view")],Co);var Hl=A`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,Fl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,_i=a((t,e,r,o)=>{for(var n=o>1?void 0:o?zl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Fl(e,r,n),n},"Ke"),or=class extends v{static{a(this,"me")}constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){let{desktop:e,name:r}=y.getWalletRouterData(),o=e?.native;if(o){let n=y.formatNativeUrl(o,t,r);y.openHref(n,"_self")}}openDesktopApp(){let{walletConnectUri:t}=G.state,e=y.getWalletRouterData();g.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){let{name:t,id:e,image_id:r}=y.getWalletRouterData(),{isMobile:o,isWeb:n}=g.getCachedRouterWalletPlatforms();return h`<wcm-modal-header title="${t}" .onAction="${g.handleUriCopy}" .actionIcon="${O.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${H(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${t} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isWeb="${n}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${O.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};or.styles=[E.globalCss,Hl],_i([z()],or.prototype,"isError",2),or=_i([C("wcm-desktop-connecting-view")],or);var ql=A`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`,Vl=Object.defineProperty,Zl=Object.getOwnPropertyDescriptor,Kl=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Zl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Vl(e,r,n),n},"Yo"),Eo=class extends v{static{a(this,"Te")}onInstall(t){t&&y.openHref(t,"_blank")}render(){let{name:t,id:e,image_id:r,homepage:o}=y.getWalletRouterData();return h`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${H(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(o)}" .iconLeft="${O.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};Eo.styles=[E.globalCss,ql],Eo=Kl([C("wcm-install-wallet-view")],Eo);var Yl=A`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`,Gl=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,Oi=a((t,e,r,o)=>{for(var n=o>1?void 0:o?Jl(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Gl(e,r,n),n},"Ye"),nr=class extends v{static{a(this,"he")}constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){let{mobile:r,name:o}=y.getWalletRouterData(),n=r?.native,i=r?.universal;if(n&&!e){let s=y.formatNativeUrl(n,t,o);y.openHref(s,"_self")}else if(i){let s=y.formatUniversalUrl(i,t,o);y.openHref(s,"_self")}}openMobileApp(t=!1){let{walletConnectUri:e}=G.state,r=y.getWalletRouterData();g.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&y.openHref(t,"_blank")}render(){let{name:t,id:e,image_id:r,app:o,mobile:n}=y.getWalletRouterData(),{isWeb:i}=g.getCachedRouterWalletPlatforms(),s=o?.ios,l=n?.universal;return h`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${H(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${i}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${O.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${l?h`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${e}" imageId="${H(r)}"></wcm-wallet-image><wcm-text>${`Get ${t}`}</wcm-text></div><wcm-button .iconRight="${O.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(s)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};nr.styles=[E.globalCss,Yl],Oi([z()],nr.prototype,"isError",2),nr=Oi([C("wcm-mobile-connecting-view")],nr);var Ql=A`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,Xl=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,tc=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ec(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&Xl(e,r,n),n},"rr"),$o=class extends v{static{a(this,"je")}render(){let{name:t,id:e,image_id:r}=y.getWalletRouterData(),{isDesktop:o,isWeb:n}=g.getCachedRouterWalletPlatforms();return h`<wcm-modal-header title="${t}" .onAction="${g.handleUriCopy}" .actionIcon="${O.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${e}" imageId="${H(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${t} app`}</wcm-text><wcm-platform-selection .isDesktop="${o}" .isWeb="${n}"></wcm-platform-selection></wcm-info-footer>`}};$o.styles=[E.globalCss,Ql],$o=tc([C("wcm-mobile-qr-connecting-view")],$o);var rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,nc=a((t,e,r,o)=>{for(var n=o>1?void 0:o?oc(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&rc(e,r,n),n},"ir"),Ao=class extends v{static{a(this,"_e")}render(){return h`<wcm-modal-header title="Scan the code" .onAction="${g.handleUriCopy}" .actionIcon="${O.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};Ao.styles=[E.globalCss],Ao=nc([C("wcm-qrcode-view")],Ao);var ic=A`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,sc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,St=a((t,e,r,o)=>{for(var n=o>1?void 0:o?ac(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&sc(e,r,n),n},"ie"),_o=40,Ne=class extends v{static{a(this,"U")}constructor(){super(...arguments),this.loading=!F.state.wallets.listings.length,this.firstFetch=!F.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=g.debounce(t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,F.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),F.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;(t=this.intersectionObserver)==null||t.disconnect()}get placeholderEl(){return g.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([t])=>{t.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:t,search:e}=F.state,{listings:r,total:o}=this.search?e:t;return o<=_o||r.length>=o}async fetchWallets(){var t;let{wallets:e,search:r}=F.state,{listings:o,total:n,page:i}=this.search?r:e;if(!this.endReached&&(this.firstFetch||n>_o&&o.length<n))try{this.loading=!0;let s=(t=G.state.chains)==null?void 0:t.join(","),{listings:l}=await F.getWallets({page:this.firstFetch?1:i+1,entries:_o,search:this.search,version:2,chains:s}),c=l.map(d=>g.getWalletIcon(d));await Promise.all([...c.map(async d=>g.preloadImage(d)),y.wait(300)]),this.endReached=this.isLastPage()}catch(s){console.error(s),ee.openToast(g.getErrorMessage(s),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){y.isAndroid()?g.handleMobileLinking(t):g.goToConnectingView(t)}onSearchChange(t){let{value:e}=t.target;this.searchDebounce(e)}render(){let{wallets:t,search:e}=F.state,{listings:r}=this.search?e:t,o=this.loading&&!r.length,n=this.search.length>=3,i=ye.manualWalletsTemplate(),s=ye.recomendedWalletsTemplate(!0);n&&(i=i.filter(({values:d})=>g.caseSafeIncludes(d[0],this.search)),s=s.filter(({values:d})=>g.caseSafeIncludes(d[0],this.search)));let l=!this.loading&&!r.length&&!s.length,c={"wcm-loading":o,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":l};return h`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${J(c)}"><div class="wcm-grid">${o?null:i} ${o?null:s} ${o?null:r.map(d=>h`${d?h`<wcm-wallet-button imageId="${d.image_id}" name="${d.name}" walletId="${d.id}" .onClick="${()=>this.onConnect(d)}"></wcm-wallet-button>`:null}`)}</div><div class="wcm-placeholder-block">${l?h`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!l&&this.loading?h`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};Ne.styles=[E.globalCss,ic],St([z()],Ne.prototype,"loading",2),St([z()],Ne.prototype,"firstFetch",2),St([z()],Ne.prototype,"search",2),St([z()],Ne.prototype,"endReached",2),Ne=St([C("wcm-wallet-explorer-view")],Ne);var lc=A`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`,cc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,Ii=a((t,e,r,o)=>{for(var n=o>1?void 0:o?dc(e,r):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(o?s(e,r,n):s(n))||n);return o&&n&&cc(e,r,n),n},"Ge"),ir=class extends v{static{a(this,"we")}constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){let{desktop:e,name:r}=y.getWalletRouterData(),o=e?.universal;if(o){let n=y.formatUniversalUrl(o,t,r);y.openHref(n,"_blank")}}openWebWallet(){let{walletConnectUri:t}=G.state,e=y.getWalletRouterData();g.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){let{name:t,id:e,image_id:r}=y.getWalletRouterData(),{isMobile:o,isDesktop:n}=g.getCachedRouterWalletPlatforms(),i=y.isMobile();return h`<wcm-modal-header title="${t}" .onAction="${g.handleUriCopy}" .actionIcon="${O.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${H(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isDesktop="${i?!1:n}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${O.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};ir.styles=[E.globalCss,lc],Ii([z()],ir.prototype,"isError",2),ir=Ii([C("wcm-web-connecting-view")],ir);export{Ot as WcmModal,we as WcmQrCode};
|
|
11
|
+
/*! Bundled license information:
|
|
12
|
+
|
|
13
|
+
@lit/reactive-element/css-tag.js:
|
|
14
|
+
(**
|
|
15
|
+
* @license
|
|
16
|
+
* Copyright 2019 Google LLC
|
|
17
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
+
*)
|
|
19
|
+
|
|
20
|
+
@lit/reactive-element/reactive-element.js:
|
|
21
|
+
(**
|
|
22
|
+
* @license
|
|
23
|
+
* Copyright 2017 Google LLC
|
|
24
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
+
*)
|
|
26
|
+
|
|
27
|
+
lit-html/lit-html.js:
|
|
28
|
+
(**
|
|
29
|
+
* @license
|
|
30
|
+
* Copyright 2017 Google LLC
|
|
31
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
|
+
*)
|
|
33
|
+
|
|
34
|
+
lit-element/lit-element.js:
|
|
35
|
+
(**
|
|
36
|
+
* @license
|
|
37
|
+
* Copyright 2017 Google LLC
|
|
38
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
+
*)
|
|
40
|
+
|
|
41
|
+
lit-html/is-server.js:
|
|
42
|
+
(**
|
|
43
|
+
* @license
|
|
44
|
+
* Copyright 2022 Google LLC
|
|
45
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
46
|
+
*)
|
|
47
|
+
|
|
48
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
49
|
+
(**
|
|
50
|
+
* @license
|
|
51
|
+
* Copyright 2017 Google LLC
|
|
52
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
+
*)
|
|
54
|
+
|
|
55
|
+
@lit/reactive-element/decorators/property.js:
|
|
56
|
+
(**
|
|
57
|
+
* @license
|
|
58
|
+
* Copyright 2017 Google LLC
|
|
59
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
|
+
*)
|
|
61
|
+
|
|
62
|
+
@lit/reactive-element/decorators/state.js:
|
|
63
|
+
(**
|
|
64
|
+
* @license
|
|
65
|
+
* Copyright 2017 Google LLC
|
|
66
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
|
+
*)
|
|
68
|
+
|
|
69
|
+
@lit/reactive-element/decorators/base.js:
|
|
70
|
+
(**
|
|
71
|
+
* @license
|
|
72
|
+
* Copyright 2017 Google LLC
|
|
73
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
74
|
+
*)
|
|
75
|
+
|
|
76
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
77
|
+
(**
|
|
78
|
+
* @license
|
|
79
|
+
* Copyright 2017 Google LLC
|
|
80
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
|
+
*)
|
|
82
|
+
|
|
83
|
+
@lit/reactive-element/decorators/query.js:
|
|
84
|
+
(**
|
|
85
|
+
* @license
|
|
86
|
+
* Copyright 2017 Google LLC
|
|
87
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*)
|
|
89
|
+
|
|
90
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
91
|
+
(**
|
|
92
|
+
* @license
|
|
93
|
+
* Copyright 2017 Google LLC
|
|
94
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
95
|
+
*)
|
|
96
|
+
|
|
97
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
98
|
+
(**
|
|
99
|
+
* @license
|
|
100
|
+
* Copyright 2017 Google LLC
|
|
101
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
102
|
+
*)
|
|
103
|
+
|
|
104
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
105
|
+
(**
|
|
106
|
+
* @license
|
|
107
|
+
* Copyright 2021 Google LLC
|
|
108
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
+
*)
|
|
110
|
+
|
|
111
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
112
|
+
(**
|
|
113
|
+
* @license
|
|
114
|
+
* Copyright 2017 Google LLC
|
|
115
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
+
*)
|
|
117
|
+
|
|
118
|
+
lit-html/directive.js:
|
|
119
|
+
(**
|
|
120
|
+
* @license
|
|
121
|
+
* Copyright 2017 Google LLC
|
|
122
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
+
*)
|
|
124
|
+
|
|
125
|
+
lit-html/directives/class-map.js:
|
|
126
|
+
(**
|
|
127
|
+
* @license
|
|
128
|
+
* Copyright 2018 Google LLC
|
|
129
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
130
|
+
*)
|
|
131
|
+
|
|
132
|
+
lit-html/directives/if-defined.js:
|
|
133
|
+
(**
|
|
134
|
+
* @license
|
|
135
|
+
* Copyright 2018 Google LLC
|
|
136
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
137
|
+
*)
|
|
138
|
+
*/
|
|
139
|
+
//# sourceMappingURL=dist-6GI3ECE5.js.map
|