PageSourceSearch

https://idqsoulwallet.vercel.app/static/js/6882.15f98a82.chunk.js

js idqsoulwallet.vercel.app collected 2026-10-03 07:07:43 UTC 110,915 bytes, 3 lines download raw bytes

1/*! For license information please see 6882.15f98a82.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkthirdapp=self.webpackChunkthirdapp||[]).push([[6882],{16882:(e,t,o)=>{o.r(t),o.d(t,{WcmModal:()=>ga,WcmQrCode:()=>mi});var r=o(30168),i=o(42362),a=o(72107),l=o(52475);const n=1;class c{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const s=(d=class extends c{constructor(e){var t;if(super(e),e.type!==n||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,t){let[o]=t;var r,i;if(void 0===this.it){this.it=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in o)o[e]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(e))&&this.it.add(e);return this.render(o)}const a=e.element.classList;this.it.forEach((e=>{e in o||(a.remove(e),this.it.delete(e))}));for(const l in o){const e=!!o[l];e===this.it.has(l)||(null===(i=this.nt)||void 0===i?void 0:i.has(l))||(e?(a.add(l),this.it.add(l)):(a.remove(l),this.it.delete(l)))}return l.Jb}},function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return{_$litDirective$:d,values:t}});var d,m=o(7171);new Map;const h=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];return new u(e,o,"svg")};class p{constructor(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Z;this.strings=e,this.values=t,this.type=o,this.partCallback=r}getHTML(){const e=this.strings.length-1;let t="",o=!0;for(let r=0;r<e;r++){const e=this.strings[r];t+=e;const i=v(e);o=i>-1?i<e.length:o,t+=o?g:w}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}class u extends p{getHTML(){return"<svg>".concat(super.getHTML(),"</svg>")}getTemplateElement(){const e=super.getTemplateElement(),t=e.content,o=t.firstChild;return t.removeChild(o),M(t,o.firstChild),e}}const w="{{lit-".concat(String(Math.random()).slice(2),"}}"),g="\x3c!--".concat(w,"--\x3e");new RegExp("".concat(w,"|").concat(g));function v(e){const t=e.lastIndexOf(">");return e.indexOf("<",t+1)>-1?e.length:t}const b=e=>-1!==e.index;const f=(e,t)=>y(t)?(t=t(e),x):null===t?void 0:t,y=e=>"function"===typeof e&&!0===e.__litDirective,x={},C=e=>null===e||!("object"===typeof e||"function"===typeof e);class k{constructor(e,t,o,r){this.instance=e,this.element=t,this.name=o,this.strings=r,this.size=r.length-1,this._previousValues=[]}_interpolate(e,t){const o=this.strings,r=o.length-1;let i="";for(let a=0;a<r;a++){i+=o[a];const r=f(this,e[t+a]);if(r&&r!==x&&(Array.isArray(r)||"string"!==typeof r&&r[Symbol.iterator]))for(const e of r)i+=e;else i+=r}return i+o[r]}_equalToPreviousValues(e,t){for(let o=t;o<t+this.size;o++)if(this._previousValues[o]!==e[o]||!C(e[o]))return!1;return!0}setValue(e,t){if(this._equalToPreviousValues(e,t))return;const o=this.strings;let r;2===o.length&&""===o[0]&&""===o[1]?(r=f(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==x&&this.element.setAttribute(this.name,r),this._previousValues=e}}class O{constructor(e,t,o){this.instance=e,this.startNode=t,this.endNode=o,this._previousValue=void 0}setValue(e){if((e=f(this,e))!==x)if(C(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof p?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}_insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}_setNode(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}_setText(e){const t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}_setTemplateResult(e){const t=this.instance._getTemplate(e);let o;this._previousValue&&this._previousValue.template===t?o=this._previousValue:(o=new E(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(o._clone()),this._previousValue=o),o.update(e.values)}_setIterable(e){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);const t=this._previousValue;let o=0;for(const r of e){let e=t[o];if(void 0===e){let r=this.startNode;if(o>0){r=t[o-1].endNode=document.createTextNode(""),this._insert(r)}
2e=new O(this.instance,r,this.endNode),t.push(e)}e.setValue(r),o++}if(0===o)this.clear(),this._previousValue=void 0;else if(o<t.length){const e=t[o-1];t.length=o,this.clear(e.endNode.previousSibling),e.endNode=this.endNode}}_setPromise(e){this._previousValue=e,e.then((t=>{this._previousValue===e&&this.setValue(t)}))}clear(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;A(this.startNode.parentNode,e.nextSibling,this.endNode)}}const Z=(e,t,o)=>{if("attribute"===t.type)return new k(e,o,t.name,t.strings);if("node"===t.type)return new O(e,o,o.nextSibling);throw new Error("Unknown part type ".concat(t.type))};class E{constructor(e,t,o){this._parts=[],this.template=e,this._partCallback=t,this._getTemplate=o}update(e){let t=0;for(const o of this._parts)o?void 0===o.size?(o.setValue(e[t]),t++):(o.setValue(e,t),t+=o.size):t++}_clone(){const e=this.template.element.content.cloneNode(!0),t=this.template.parts;if(t.length>0){const o=document.createTreeWalker(e,133,null,!1);let r=-1;for(let e=0;e<t.length;e++){const i=t[e],a=b(i);if(a)for(;r<i.index;)r++,o.nextNode();this._parts.push(a?this._partCallback(this,i,o.currentNode):void 0)}}return e}}const M=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t;for(;i!==o;){const t=i.nextSibling;e.insertBefore(i,r),i=t}},A=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;for(;r!==o;){const t=r.nextSibling;e.removeChild(r),r=t}},I={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},T={ms:e=>1e3*e,s:e=>e/1e3},_=()=>{},W=e=>e;function R(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&"finished"!==e.playState)try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch(o){}}const P=e=>e(),L=function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I.duration;return new Proxy({animations:e.map(P).filter(Boolean),duration:o,options:t},j)},j={get:(e,t)=>{const o=e.animations[0];switch(t){case"duration":return e.duration;case"currentTime":return T.s((null===o||void 0===o?void 0:o[t])||0);case"playbackRate":case"playState":return null===o||void 0===o?void 0:o[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(D)).catch(_)),e.finished;case"stop":return()=>{e.animations.forEach((e=>R(e)))};case"forEachNative":return t=>{e.animations.forEach((o=>t(o,e)))};default:return"undefined"===typeof(null===o||void 0===o?void 0:o[t])?void 0:()=>e.animations.forEach((e=>e[t]()))}},set:(e,t,o)=>{switch(t){case"currentTime":o=T.ms(o);case"playbackRate":for(let r=0;r<e.animations.length;r++)e.animations[r][t]=o;return!0}return!1}},D=e=>e.finished,N=e=>"object"===typeof e&&Boolean(e.createAnimation),S=e=>"number"===typeof e,z=e=>Array.isArray(e)&&!S(e[0]),B=(e,t,o)=>-o*e+o*t+e,V=(e,t,o)=>t-e===0?1:(o-e)/(t-e);function U(e,t){const o=e[e.length-1];for(let r=1;r<=t;r++){const i=V(0,t,r);e.push(B(o,1,i))}}const H=(e,t,o)=>{const r=t-e;return((o-e)%r+r)%r+e};const F=(e,t,o)=>Math.min(Math.max(o,e),t);function q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){const t=[0];return U(t,e-1),t}(e.length),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W;const r=e.length,i=r-t.length;return i>0&&U(t,i),i=>{let a=0;for(;a<r-2&&!(i<t[a+1]);a++);let l=F(0,1,V(t[a],t[a+1],i));const n=function(e,t){return z(e)?e[H(0,e.length,t)]:e}(o,a);return l=n(l),B(e[a],e[a+1],l)}}const Y=(e,t,o)=>(((1-3*o+3*t)*e+(3*o-6*t))*e+3*t)*e,K=1e-7,Q=12;function G(e,t,o,r){if(e===t&&o===r)return W;const i=t=>function(e,t,o,r,i){let a,l,n=0;do{l=t+(o-t)/2,a=Y(l,r,i)-e,a>0?o=l:t=l}while(Math.abs(a)>K&&++n<Q);return l}(t,0,1,e,o);return e=>0===e||1===e?e:Y(i(e),t,r)}const X=e=>"function"===typeof e,$=e=>Array.isArray(e)&&S(e[0]),J={ease:G(.25,.1,.25,1),"ease-in":G(.42,0,1,1),"ease-in-out":G(.42,0,.58,1),"ease-out":G(0,0,.58,1)},ee=/\((.*?)\)/;function te(e){if(X(e))return e;if($(e))return G(...e);if(J[e])return J[e];if(e.startsWith("steps")){const t=ee.exec(e);if(t){const e=t[1].split(",");return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return o=>{const r=(o="end"===t?Math.min(o,.999):Math.max(o,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return F(0,1,i/e)}}(parseFloat(e[0]),e[1].trim())}}return W}class oe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,1],{easing:o,duration:r=I.duration,delay:i=I.delay,endDelay:a=I.endDelay,repeat:l=I.repeat,offset:n,direction:c="normal"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=W,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),o=o||I.easing,N(o)){const e=o.createAnimation(t);o=e.easing,t=e.keyframes||t,r=e.duration||r}this.repeat=l,this.easing=z(o)?W:te(o),this.updateDuration(r);const s=q(t,n,z(o)?o.map(te):W);this.tick=t=>{var o;let r=0;r=void 0!==this.pauseTime?this.pauseTime:(t-this.startTime)*this.rate,this.t=r,r/=1e3,r=Math.max(r-i,0),"finished"===this.playState&&void 0===this.pauseTime&&(r=this.totalDuration);const l=r/this.duration;let n=Math.floor(l),d=l%1;!d&&l>=1&&(d=1),1===d&&n--;const m=n%2;("reverse"===c||"alternate"===c&&m||"alternate-reverse"===c&&!m)&&(d=1-d);const h=r>=this.totalDuration?1:Math.min(d,1),p=s(this.easing(h));e(p);void 0===this.pauseTime&&("finished"===this.playState||r>=this.totalDuration+a)?(this.playState="finished",null===(o=this.resolve)||void 0===o||o.call(this,p)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const e=performance.now();this.playState="running",void 0!==this.pauseTime?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",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(e=this.reject)||void 0===e||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){void 0!==this.pauseTime||0===this.rate?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}class re{setAnimation(e){this.animation=e,null===e||void 0===e||e.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const ie=new WeakMap;function ae(e){return ie.has(e)||ie.set(e,{transforms:[],values:new Map}),ie.get(e)}const le=["","X","Y","Z"],ne={x:"translateX",y:"translateY",z:"translateZ"},ce={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},se={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:ce,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:W},skew:ce},de=new Map,me=e=>"--motion-".concat(e),he=["x","y","z"];["translate","scale","rotate","skew"].forEach((e=>{le.forEach((t=>{he.push(e+t),de.set(me(e+t),se[e])}))}));const pe=(e,t)=>he.indexOf(e)-he.indexOf(t),ue=new Set(he),we=e=>ue.has(e),ge=(e,t)=>
2{ne[t]&&(t=ne[t]);const{transforms:o}=ae(e);var r,i;i=t,-1===(r=o).indexOf(i)&&r.push(i),e.style.transform=ve(o)},ve=e=>e.sort(pe).reduce(be,"").trim(),be=(e,t)=>"".concat(e," ").concat(t,"(var(").concat(me(t),"))"),fe=e=>e.startsWith("--"),ye=new Set;const xe=(e,t)=>document.createElement("div").animate(e,t),Ce={cssRegisterProperty:()=>"undefined"!==typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{xe({opacity:[1]})}catch(e){return!1}return!0},finished:()=>Boolean(xe({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{xe({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}},ke={},Oe={};for(const ml in Ce)Oe[ml]=()=>(void 0===ke[ml]&&(ke[ml]=Ce[ml]()),ke[ml]);const Ze=(e,t)=>X(e)?Oe.linearEasing()?"linear(".concat(((e,t)=>{let o="";const r=Math.round(t/.015);for(let i=0;i<r;i++)o+=e(V(0,r-1,i))+", ";return o.substring(0,o.length-2)})(e,t),")"):I.easing:$(e)?Ee(e):e,Ee=e=>{let[t,o,r,i]=e;return"cubic-bezier(".concat(t,", ").concat(o,", ").concat(r,", ").concat(i,")")};const Me=e=>Array.isArray(e)?e:[e];function Ae(e){return ne[e]&&(e=ne[e]),we(e)?me(e):e}const Ie={get:(e,t)=>{t=Ae(t);let o=fe(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!o&&0!==o){const e=de.get(t);e&&(o=e.initialValue)}return o},set:(e,t,o)=>{t=Ae(t),fe(t)?e.style.setProperty(t,o):e.style[t]=o}},Te=e=>"string"===typeof e;function _e(e,t,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0;const a=window.__MOTION_DEV_TOOLS_RECORD,l=!1!==r.record&&a;let n,{duration:c=I.duration,delay:s=I.delay,endDelay:d=I.endDelay,repeat:m=I.repeat,easing:h=I.easing,persist:p=!1,direction:u,offset:w,allowWebkitAcceleration:g=!1}=r;const v=ae(e),b=we(t);let f=Oe.waapi();b&&ge(e,t);const y=Ae(t),x=function(e,t){return e.has(t)||e.set(t,new re),e.get(t)}(v.values,y),C=de.get(y);return R(x.animation,!(N(h)&&x.generator)&&!1!==r.record),()=>{const v=()=>{var t,o;return null!==(o=null!==(t=Ie.get(e,y))&&void 0!==t?t:null===C||void 0===C?void 0:C.initialValue)&&void 0!==o?o:0};let k=function(e,t){for(let o=0;o<e.length;o++)null===e[o]&&(e[o]=o?e[o-1]:t());return e}(Me(o),v);const O=function(e,t){var o;let r=(null===t||void 0===t?void 0:t.toDefaultUnit)||W;const i=e[e.length-1];if(Te(i)){const e=(null===(o=i.match(/(-?[\d.]+)([a-z%]*)/))||void 0===o?void 0:o[2])||"";e&&(r=t=>t+e)}return r}(k,C);if(N(h)){const e=h.createAnimation(k,"opacity"!==t,v,y,x);h=e.easing,k=e.keyframes||k,c=e.duration||c}if(fe(y)&&(Oe.cssRegisterProperty()?function(e){if(!ye.has(e)){ye.add(e);try{const{syntax:t,initialValue:o}=de.has(e)?de.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:o})}catch(t){}}}(y):f=!1),b&&!Oe.linearEasing()&&(X(h)||z(h)&&h.some(X))&&(f=!1),f){C&&(k=k.map((e=>S(e)?C.toDefaultUnit(e):e))),1!==k.length||Oe.partialKeyframes()&&!l||k.unshift(v());const t={delay:T.ms(s),duration:T.ms(c),endDelay:T.ms(d),easing:z(h)?void 0:Ze(h,c),direction:u,iterations:m+1,fill:"both"};n=e.animate({[y]:k,offset:w,easing:z(h)?h.map((e=>Ze(e,c))):void 0},t),n.finished||(n.finished=new Promise(((e,t)=>{n.onfinish=e,n.oncancel=t})));const o=k[k.length-1];n.finished.then((()=>{p||(Ie.set(e,y,o),n.cancel())})).catch(_),g||(n.playbackRate=1.000001)}else if(i&&b)k=k.map((e=>"string"===typeof e?parseFloat(e):e)),1===k.length&&k.unshift(parseFloat(v())),n=new i((t=>{Ie.set(e,y,O?O(t):t)}),k,Object.assign(Object.assign({},r),{duration:c,easing:h}));else{const t=k[k.length-1];Ie.set(e,y,C&&S(t)?C.toDefaultUnit(t):t)}return l&&a(e,t,k,{duration:c,delay:s,easing:h,repeat:m,offset:w},"motion-one"),x.setAnimation(n),n}}const We=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function Re(e,t,o){return X(e)?e(t,o):e}const Pe=(Le=oe,function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(e=function(e,t){var o;return"string"===typeof e?t?(null!==(o=t[e])&&void 0!==o||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}(e)).length;Boolean(r),Boolean(t);const i=[];for(let a=0;a<r;a++){const l=e[a];for(const e in t){const n=We(o,e);n.delay=Re(n.delay,a,r);const c=_e(l,e,t[e],n,Le);i.push(c)}}return L(i,o,o.duration)});var Le;function je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L([()=>{const o=new oe(e,[0,1],t);return o.finished.catch((()=>{})),o}],t,t.duration)}function De(e,t,o){return(X(e)?je:Pe)(e,t,o)}const Ne=e=>null!=e?e:l.Ld;var Se,ze,Be,Ve,Ue,He,Fe,qe,Ye,Ke,Qe,Ge,Xe,$e,Je,et,tt,ot,rt,it,at,lt,nt,ct,st,dt,mt,ht,pt,ut,wt,gt,vt,bt,ft,yt,xt,Ct,kt,Ot,Zt,Et,Mt,At,It,Tt,_t,Wt,Rt,Pt,Lt,jt,Dt,Nt,St,zt,Bt,Vt,Ut,Ht,Ft,qt,Yt,Kt,Qt,Gt,Xt,$t,Jt,eo,to,oo,ro,io,ao,lo,no,co,so,mo,ho,po,uo,wo,go,vo,bo,fo,yo,xo,Co,ko,Oo,Zo,Eo,Mo,Ao,Io,To,_o,Wo,Ro,Po,Lo,jo,Do,No,So,zo,Bo,V
2o,Uo,Ho,Fo,qo,Yo,Ko,Qo,Go,Xo,$o,Jo,er,tr,or,rr,ir,ar,lr,nr,cr=o(20741),sr=Object.defineProperty,dr=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,pr=(e,t,o)=>t in e?sr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,ur=(e,t)=>{for(var o in t||(t={}))mr.call(t,o)&&pr(e,o,t[o]);if(dr)for(var o of dr(t))hr.call(t,o)&&pr(e,o,t[o]);return e};const wr={getPreset:e=>({"--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"}[e]),setTheme(){const e=document.querySelector(":root"),{themeVariables:t}=m.ThemeCtrl.state;if(e){const o=ur(ur(ur({},function(){var e;const t={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)"}}[null!=(e=m.ThemeCtrl.state.themeMode)?e:"dark"];return{"--wcm-color-fg-1":t.foreground[1],"--wcm-color-fg-2":t.foreground[2],"--wcm-color-fg-3":t.foreground[3],"--wcm-color-bg-1":t.background[1],"--wcm-color-bg-2":t.background[2],"--wcm-color-bg-3":t.background[3],"--wcm-color-overlay":t.overlay}}()),{"--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"}),t);
2Object.entries(o).forEach((t=>{let[o,r]=t;return e.style.setProperty(o,r)}))}},globalCss:(0,i.iv)(Se||(Se=(0,r.Z)(["*,::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)}"])))},gr=(0,i.iv)(ze||(ze=(0,r.Z)(["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}"])));var vr=Object.defineProperty,br=Object.getOwnPropertyDescriptor,fr=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?br(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&vr(t,o,a),a};let yr=class extends i.oi{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const e={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let t="inverse";return"ghost"===this.variant&&(t="secondary"),"outline"===this.variant&&(t="accent"),(0,i.dy)(Be||(Be=(0,r.Z)(['<button class="','" ?disabled="','" @click="','">','<wcm-text variant="small-regular" color="','"><slot></slot></wcm-text>',"</button>"])),s(e),this.disabled,this.onClick,this.iconLeft,t,this.iconRight)}};yr.styles=[wr.globalCss,gr],fr([(0,a.Cb)({type:Boolean})],yr.prototype,"disabled",2),fr([(0,a.Cb)()],yr.prototype,"iconLeft",2),fr([(0,a.Cb)()],yr.prototype,"iconRight",2),fr([(0,a.Cb)()],yr.prototype,"onClick",2),fr([(0,a.Cb)()],yr.prototype,"variant",2),yr=fr([(0,a.Mo)("wcm-button")],yr);const xr=(0,i.iv)(Ve||(Ve=(0,r.Z)([":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)}}"])));var Cr=Object.defineProperty,kr=Object.getOwnPropertyDescriptor,Or=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?kr(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Cr(t,o,a),a};let Zr=class extends i.oi{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const e={"wcm-secondary":"secondary"===this.variant};return(0,i.dy)(Ue||(Ue=(0,r.Z)(['<button ?disabled="','" class="','"><slot></slot></button>'])),this.disabled,s(e))}};Zr.styles=[wr.globalCss,xr],Or([(0,a.Cb)({type:Boolean})],Zr.prototype,"disabled",2),Or([(0,a.Cb)()],Zr.prototype,"variant",2),Zr=Or([(0,a.Mo)("wcm-button-big")],Zr);const Er=(0,i.iv)(He||(He=(0,r.Z)([":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}"])));var Mr=Object.defineProperty,Ar=Object.getOwnPropertyDescriptor;let Ir=class extends i.oi{render(){return(0,i.dy)(Fe||(Fe=(0,r.Z)(["<div><slot></slot></div>"])))}};Ir.styles=[wr.globalCss,Er],Ir=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ar(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Mr(t,o,a),a})([(0,a.Mo)("wcm-info-footer")],Ir);const Tr={CROSS_ICON:h(qe||(qe=(0,r.Z)(['<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:h(Ye||(Ye=(0,r.Z)(['<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.
207.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:h(Ke||(Ke=(0,r.Z)(['<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:h(Qe||(Qe=(0,r.Z)(['<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:h(Ge||(Ge=(0,r.Z)(['<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:h(Xe||(Xe=(0,r.Z)(['<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:h($e||($e=(0,r.Z)(['<svg width="15" height="16" viewB
2ox="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:h(Je||(Je=(0,r.Z)(['<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 
21.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:h(et||(et=(0,r.Z)(['<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:h(tt||(tt=(0,r.Z)(['<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:h(ot||(ot=(0,r.Z)(['<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:h(rt||(rt=(0,r.Z)(['<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:h(it||(it=(0,r.Z)(['<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-.
2038.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:h(at||(at=(0,r.Z)(['<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:h(lt||(lt=(0,r.Z)(['<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:h(nt||(nt=(0,r.Z)(['<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:h(ct||(ct=(0,r.Z)(['<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.
2196.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:h(st||(st=(0,r.Z)(['<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>'])))},_r=(0,i.iv)(dt||(dt=(0,r.Z)([".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}
2button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}"])));var Wr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor;let Pr=class extends i.oi{render(){return(0,i.dy)(mt||(mt=(0,r.Z)(['<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">',' <button @click="','">',"</button></div>"])),Tr.WALLET_CONNECT_LOGO,m.jb.close,Tr.CROSS_ICON)}};Pr.styles=[wr.globalCss,_r],Pr=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Rr(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Wr(t,o,a),a})([(0,a.Mo)("wcm-modal-backcard")],Pr);const Lr=(0,i.iv)(ht||(ht=(0,r.Z)(["main{padding:20px;padding-top:0;width:100%}"])));var jr=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor;let Nr=class extends i.oi{render(){return(0,i.dy)(pt||(pt=(0,r.Z)(["<main><slot></slot></main>"])))}};Nr.styles=[wr.globalCss,Lr],Nr=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Dr(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&jr(t,o,a),a})([(0,a.Mo)("wcm-modal-content")],Nr);const Sr=(0,i.iv)(ut||(ut=(0,r.Z)(["footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}"])));var zr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor;let Vr=class extends i.oi{render(){return(0,i.dy)(wt||(wt=(0,r.Z)(["<footer><slot></slot></footer>"])))}};Vr.styles=[wr.globalCss,Sr],Vr=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Br(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&zr(t,o,a),a})([(0,a.Mo)("wcm-modal-footer")],Vr);const Ur=(0,i.iv)(gt||(gt=(0,r.Z)(["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)}"])));var Hr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,qr=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Fr(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Hr(t,o,a),a};let Yr=class extends i.oi{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return(0,i.dy)(vt||(vt=(0,r.Z)(['<button class="wcm-back-btn" @click="','">',"</button>"])),m.AV.goBack,Tr.BACK_ICON)}actionBtnTemplate(){return(0,i.dy)(bt||(bt=(0,r.Z)(['<button class="wcm-action-btn" @click="','">',"</button>"])),this.onAction,this.actionIcon)}render(){const e={"wcm-border":this.border},t=m.AV.state.history.length>1,o=this.title?(0,i.dy)(ft||(ft=(0,r.Z)(['<wcm-text variant="big-bold">',"</wcm-text>"])),this.title):(0,i.dy)(yt||(yt=(0,r.Z)(["<slot></slot>"])));return(0,i.dy)(xt||(xt=(0,r.Z)(['<header class="','">'," "," ","</header>"])),s(e),t?this.backBtnTemplate():null,o,this.onAction?this.actionBtnTemplate():null)}};Yr.styles=[wr.globalCss,Ur],qr([(0,a.Cb)()],Yr.prototype,"title",2),qr([(0,a.Cb)()],Yr.prototype,"onAction",2),qr([(0,a.Cb)()],Yr.prototype,"actionIcon",2),qr([(0,a.Cb)({type:Boolean})],Yr.prototype,"border",2),Yr=qr([(0,a.Mo)("wcm-modal-header")],Yr);const Kr={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(e,t){const o=e.renderRoot.querySelector(t);if(!o)throw new Error("".concat(t," not found"));return o},getWalletIcon(e){let{id:t,image_id:o}=e;const{walletImages:r}=m.ConfigCtrl.state;return null!=r&&r[t]?r[t]:o?m.ExplorerCtrl.getWalletImageUrl(o):""},getWalletName(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&e.length>8?"".concat(e.substring(0,8),".."):e},isMobileAnimation:()=>window.innerWidth<=Kr.MOBILE_BREAKPOINT,async preloadImage(e){const t=new Promise(((t,o)=>{const r=new Image;r.onload=t,r.onerror=o,r.crossOrigin="anonymous",r.src=e}));return Promise.race([t,m.zv.wait(3e3)])},getErrorMessage:e=>e instanceof Error?e.message:"Unknown Error",debounce(e){let t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];t&&clearTimeout(t),t=setTimeout((function(){e(...i)}),o)}},handleMobileLinking(e){const{walletConnectUri:t}=m.OptionsCtrl.state,{mobile:o,name:r}=e,i=null===o||void 0===o?void 0:o.native,a=null===o||void 0===o?void 0:o.universal;Kr.setRecentWallet(e),t&&function(e){let t="";i?t=m.zv.formatUniversalUrl(i,e,r):a&&(t=m.zv.formatNativeUrl(a,e,r)),m.zv.openHref(t,"_self")}(t)},handleAndroidLinking(){const{walletConnectUri:e}=m.OptionsCtrl.state;e&&(m.zv.setWalletConnectAndroidDeepLink(e),m.zv.openHref(e,"_self"))},async handleUriCopy(){const{walletConnectUri:e}=m.OptionsCtrl.state;if(e)try{await navigator.clipboard.writeText(e),m.ToastCtrl.openToast("Link copied","success")}catch{m.ToastCtrl.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:e}=m.ConfigCtrl.state,t=Object.values(null!==e&&void 0!==e?e:{});return Object.values(t)},truncate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return e.length<=t?e:"".concat(e.substring(0,4),"...").concat(e.substring(e.length-4))},setRecentWallet(e){try{localStorage.setItem(Kr.WCM_RECENT_WALLET_DATA,JSON.stringify(e))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const e=localStorage.getItem(Kr.WCM_RECENT_WALLET_DATA);return e?JSON.parse(e):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(e,t)=>e.toUpperCase().includes(t.toUpperCase()),openWalletExplorerUrl(){m.zv.openHref(Kr.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:e,mobile:t}=m.zv.getWalletRouterData(),o=Boolean(null===e||void 0===e?void 0:e.native),r=Boolean(null===e||void 0===e?void 0:e.universal);return{isDesktop:o,isMobile:Boolean(null===t||void 0===t?void 0:t.native)||Boolean(null===t||void 0===t?void 0:t.universal),isWeb:r}},goToConnectingView(e){m.AV.setData({Wallet:e});const t=m.zv.isMobile(),{isDesktop:o,isWeb:r,isMobile:i}=Kr.getCachedRouterWalletPlatforms();t?i?m.AV.push("MobileConnecting"):r?m.AV.push("WebConnecting"):m.AV.push("InstallWallet"):o?m.AV.push("DesktopConnecting"):r?m.AV.push("WebConnecting"):i?m.AV.push("MobileQrcodeConnecting"):m.AV.push("InstallWallet")}},Qr=(0,i.iv)(Ct||(Ct=(0,r.Z)([".wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}"])));var Gr=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,$r=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Xr(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Gr(t,o,a),a};let Jr=class extends i.oi{constructor(){super(),this.view=m.AV.state.view,this.prevView=m.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=m.AV.subscribe((e=>{this.view!==e.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((e=>{let[t]=e;const o="".concat(t.contentRect.height,"px");"0px"!==this.oldHeight&&De(this.routerEl,{height:[this.oldHeight,o]},{duration:.2}),this.oldHeight=o})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var e,t;null==(e=this.unsubscribe)||e.call(this),null==(t=this.resizeObserver)||t.disconnect()}get routerEl(){return Kr.getShadowRootElement(this,".wcm-router")}get contentEl(){return Kr.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return(0,i.dy)(kt||(kt=(0,r.Z)(["<wcm-connect-wallet-view></wcm-connect-wallet-view>"])));case"DesktopConnecting":return(0,i.dy)(Ot||(Ot=(0,r.Z)(["<wcm-desktop-connecting-view></wcm-desktop-connecting-view>"])));case"MobileConnecting":return(0,i.dy)(Zt||(Zt=(0,r.Z)(["<wcm-mobile-connecting-view></wcm-mobile-connecting-view>"])));case"WebConnecting":return(0,i.dy)(Et||(Et=(0,r.Z)(["<wcm-web-connecting-view></wcm-web-connecting-view>"])));case"MobileQrcodeConnecting":return(0,i.dy)(Mt||(Mt=(0,r.Z)(["<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>"])));case"WalletExplorer":return(0,i.dy)(At||(At=(0,r.Z)(["<wcm-wallet-explorer-view></wcm-wallet-explorer-view>"])));
2case"Qrcode":return(0,i.dy)(It||(It=(0,r.Z)(["<wcm-qrcode-view></wcm-qrcode-view>"])));case"InstallWallet":return(0,i.dy)(Tt||(Tt=(0,r.Z)(["<wcm-install-wallet-view></wcm-install-wallet-view>"])));default:return(0,i.dy)(_t||(_t=(0,r.Z)(["<div>Not Found</div>"])))}}async onChangeRoute(){await De(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=m.AV.state.view,De(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return(0,i.dy)(Wt||(Wt=(0,r.Z)(['<div class="wcm-router"><div class="wcm-content">',"</div></div>"])),this.viewTemplate())}};Jr.styles=[wr.globalCss,Qr],$r([(0,a.SB)()],Jr.prototype,"view",2),$r([(0,a.SB)()],Jr.prototype,"prevView",2),Jr=$r([(0,a.Mo)("wcm-modal-router")],Jr);const ei=(0,i.iv)(Rt||(Rt=(0,r.Z)(["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)}"])));var ti=Object.defineProperty,oi=Object.getOwnPropertyDescriptor,ri=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?oi(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ti(t,o,a),a};let ii=class extends i.oi{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=m.ToastCtrl.subscribe((e=>{e.open?(this.open=!0,this.timeout=setTimeout((()=>m.ToastCtrl.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var e;null==(e=this.unsubscribe)||e.call(this),clearTimeout(this.timeout),m.ToastCtrl.closeToast()}render(){const{message:e,variant:t}=m.ToastCtrl.state,o={"wcm-success":"success"===t,"wcm-error":"error"===t};return this.open?(0,i.dy)(Pt||(Pt=(0,r.Z)(['<div class="','">'," ",'<wcm-text variant="small-regular">',"</wcm-text></div>"])),s(o),"success"===t?Tr.CHECKMARK_ICON:null,"error"===t?Tr.CROSS_ICON:null,e):null}};ii.styles=[wr.globalCss,ei],ri([(0,a.SB)()],ii.prototype,"open",2),ii=ri([(0,a.Mo)("wcm-modal-toast")],ii);function ai(e,t,o){return e!==t&&(e-t<0?t-e:e-t)<=o+.1}const li={generate(e,t,o){const a="#141414",l=[],n=function(e,t){const o=Array.prototype.slice.call(cr.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(o.length);return o.reduce(((e,t,o)=>(o%r===0?e.push([t]):e[e.length-1].push(t))&&e),[])}(e,"Q"),c=t/n.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach((e=>{let{x:t,y:o}=e;const d=(n.length-7)*c*t,m=(n.length-7)*c*o;for(let n=0;n<s.length;n+=1){const e=c*(7-2*n);l.push((0,i.YP)(Lt||(Lt=(0,r.Z)(['<rect fill="','" height="','" rx="','" ry="','" width="','" x="','" y="','">'])),n%2===0?a:"#ffffff",e,.45*e,.45*e,e,d+c*n,m+c*n))}}));const d=Math.floor((o+25)/c),m=n.length/2-d/2,h=n.length/2+d/2-1,p=[];n.forEach(((e,t)=>{e.forEach(((e,o)=>{if(n[t][o]&&!(t<7&&o<7||t>n.length-8&&o<7||t<7&&o>n.length-8)&&!(t>m&&t<h&&o>m&&o<h)){const e=t*c+c/2,r=o*c+c/2;p.push([e,r])}}))}));const u={};return p.forEach((e=>{let[t,o]=e;u[t]?u[t].push(o):u[t]=[o]})),Object.entries(u).map((e=>{let[t,o]=e;const r=o.filter((e=>o.every((t=>!ai(e,t,c)))));return[Number(t),r]})).forEach((e=>{let[t,o]=e;o.forEach((e=>{l.push((0,i.YP)(jt||(jt=(0,r.Z)(['<circle cx="','" cy="','" fill="','" r="','">'])),t,e,a,c/2.5))}))})),Object.entries(u).filter((e=>{let[t,o]=e;return o.length>1})).map((e=>{let[t,o]=e;const r=o.filter((e=>o.some((t=>ai(e,t,c)))));return[Number(t),r]})).map((e=>{let[t,o]=e;o.sort(((e,t)=>e<t?-1:1));const r=[];for(const i of o){const e=r.find((e=>e.some((e=>ai(i,e,c)))));e?e.push(i):r.push([i])}return[t,r.map((e=>[e[0],e[e.length-1]]))]})).forEach((e=>{let[t,o]=e;o.forEach((e=>{let[o,n]=e;l.push((0,i.YP)(Dt||(Dt=(0,r.Z)(['<line x1="','" x2="','" y1="','" y2="','" stroke="','" stroke-width="','" stroke-linecap="round">'])),t,t,o,n,a,c/1.25))}))})),l}},ni=(0,i.iv)(Nt||(Nt=(0,r.Z)(["@keyframes fadeIn{0%{opacity:0}
2100%{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)}"])));var ci=Object.defineProperty,si=Object.getOwnPropertyDescriptor,di=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?si(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ci(t,o,a),a};let mi=class extends i.oi{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e="light"===m.ThemeCtrl.state.themeMode?this.size:this.size-36;return(0,i.YP)(St||(St=(0,r.Z)(['<svg height="','" width="','">',"</svg>"])),e,e,li.generate(this.uri,e,e/4))}render(){const e={"wcm-dark":"dark"===m.ThemeCtrl.state.themeMode};return(0,i.dy)(zt||(zt=(0,r.Z)(['<div style="','" class="','">'," ","</div>"])),"width: ".concat(this.size,"px"),s(e),this.walletId||this.imageUrl?(0,i.dy)(Bt||(Bt=(0,r.Z)(['<wcm-wallet-image walletId="','" imageId="','" imageUrl="','"></wcm-wallet-image>'])),Ne(this.walletId),Ne(this.imageId),Ne(this.imageUrl)):Tr.WALLET_CONNECT_ICON_COLORED,this.svgTemplate())}};mi.styles=[wr.globalCss,ni],di([(0,a.Cb)()],mi.prototype,"uri",2),di([(0,a.Cb)({type:Number})],mi.prototype,"size",2),di([(0,a.Cb)()],mi.prototype,"imageId",2),di([(0,a.Cb)()],mi.prototype,"walletId",2),di([(0,a.Cb)()],mi.prototype,"imageUrl",2),mi=di([(0,a.Mo)("wcm-qrcode")],mi);const hi=(0,i.iv)(Vt||(Vt=(0,r.Z)([":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)}"])));var pi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,wi=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?ui(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&pi(t,o,a),a};let gi=class extends i.oi{constructor(){super(...arguments),this.onChange=()=>null}render(){return(0,i.dy)(Ut||(Ut=(0,r.Z)(['<input type="text" @input="','" placeholder="Search wallets"> ',""])),this.onChange,Tr.SEARCH_ICON)}};gi.styles=[wr.globalCss,hi],wi([(0,a.Cb)()],gi.prototype,"onChange",2),gi=wi([(0,a.Mo)("wcm-search-input")],gi);const vi=(0,i.iv)(Ht||(Ht=(0,r.Z)(["@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)}"])));var bi=Object.defineProperty,fi=Object.getOwnPropertyDescriptor;let yi=class extends i.oi{render(){return(0,i.dy)(Ft||(Ft=(0,r.Z)(['<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>'])))}};yi.styles=[wr.globalCss,vi],yi=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?fi(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&bi(t,o,a),a})([(0,a.Mo)("wcm-spinner")],yi);const xi=(0,i.iv)(qt||(qt=(0,r.Z)(["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)}"])));var Ci=Object.defineProperty,ki=Object.getOwnPropertyDescriptor,Oi=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?ki(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ci(t,o,a),a};let Zi=class extends i.oi{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const e={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return(0,i.dy)(Yt||(Yt=(0,r.Z)(['<span><slot class="','"></slot></span>'])),s(e))}};Zi.styles=[wr.globalCss,xi],Oi([(0,a.Cb)()],Zi.prototype,"variant",2),Oi([(0,a.Cb)()],Zi.prototype,"color",2),Zi=Oi([(0,a.Mo)("wcm-text")],Zi);const Ei=(0,i.iv)(Kt||(Kt=(0,r.Z)(["button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);
2display: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}"])));var Mi=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Ii=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ai(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Mi(t,o,a),a};let Ti=class extends i.oi{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?(0,i.dy)(Qt||(Qt=(0,r.Z)(['<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>']))):this.installed?(0,i.dy)(Gt||(Gt=(0,r.Z)(['<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>']))):null}handleClick(){m.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var e;return(0,i.dy)(Xt||(Xt=(0,r.Z)(['<button @click="','"><div><wcm-wallet-image walletId="','" imageId="','"></wcm-wallet-image><wcm-text variant="xsmall-regular">',"</wcm-text>","</div></button>"])),this.handleClick.bind(this),this.walletId,Ne(this.imageId),null!=(e=this.label)?e:Kr.getWalletName(this.name,!0),this.sublabelTemplate())}};Ti.styles=[wr.globalCss,Ei],Ii([(0,a.Cb)()],Ti.prototype,"onClick",2),Ii([(0,a.Cb)()],Ti.prototype,"name",2),Ii([(0,a.Cb)()],Ti.prototype,"walletId",2),Ii([(0,a.Cb)()],Ti.prototype,"label",2),Ii([(0,a.Cb)()],Ti.prototype,"imageId",2),Ii([(0,a.Cb)({type:Boolean})],Ti.prototype,"installed",2),Ii([(0,a.Cb)({type:Boolean})],Ti.prototype,"recent",2),Ti=Ii([(0,a.Mo)("wcm-wallet-button")],Ti);const _i=(0,i.iv)($t||($t=(0,r.Z)([":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)}"])));var Wi=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor,Pi=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ri(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Wi(t,o,a),a};let Li=class extends i.oi{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var e;const t=null!=(e=this.imageUrl)&&e.length?this.imageUrl:Kr.getWalletIcon({id:this.walletId,image_id:this.imageId});return(0,i.dy)(Jt||(Jt=(0,r.Z)(["",""])),t.length?(0,i.dy)(eo||(eo=(0,r.Z)(['<div><img crossorigin="anonymous" src="','" alt="','"></div>'])),t,this.id):Tr.WALLET_PLACEHOLDER)}};Li.styles=[wr.globalCss,_i],Pi([(0,a.Cb)()],Li.prototype,"walletId",2),Pi([(0,a.Cb)()],Li.prototype,"imageId",2),Pi([(0,a.Cb)()],Li.prototype,"imageUrl",2),Li=Pi([(0,a.Mo)("wcm-wallet-image")],Li);var ji=Object.defineProperty,Di=Object.getOwnPropertyDescriptor,Ni=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Di(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ji(t,o,a),a};let Si=class extends i.oi{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(e){try{null!=e&&e.length&&await Promise.all(e.map((async e=>Kr.preloadImage(e))))}catch{console.info("Unsuccessful attempt at preloading some images",e)}}async preloadListings(){if(m.ConfigCtrl.state.enableExplorer){await m.ExplorerCtrl.getRecomendedWallets(),m.OptionsCtrl.setIsDataLoaded(!0);const{recomendedWallets:e}=m.ExplorerCtrl.state,t=e.map((e=>Kr.getWalletIcon(e)));await this.loadImages(t)}else m.OptionsCtrl.setIsDataLoaded(!0)}async preloadCustomImages(){const e=Kr.getCustomImageUrls();await this.loadImages(e)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(e){console.error(e),m.ToastCtrl.openToast("Failed preloading","error")}}};Ni([(0,a.SB)()],Si.prototype,"preload",2),Si=Ni([(0,a.Mo)("wcm-explorer-context")],Si);var zi=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor;let Vi=class extends i.oi{constructor(){super(),this.unsubscribeTheme=void 0,wr.setTheme(),this.unsubscribeTheme=m.ThemeCtrl.
2subscribe(wr.setTheme)}disconnectedCallback(){var e;null==(e=this.unsubscribeTheme)||e.call(this)}};Vi=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Bi(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&zi(t,o,a),a})([(0,a.Mo)("wcm-theme-context")],Vi);const Ui=(0,i.iv)(to||(to=(0,r.Z)(["@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)}"])));var Hi=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor;let qi=class extends i.oi{onGoToQrcode(){m.AV.push("Qrcode")}render(){const{recomendedWallets:e}=m.ExplorerCtrl.state,t=[...e,...e],o=2*m.zv.RECOMMENDED_WALLET_AMOUNT;return(0,i.dy)(oo||(oo=(0,r.Z)(['<wcm-modal-header title="Connect your wallet" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><div class="wcm-title">','<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">','</div><wcm-button-big @click="','"><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>'])),this.onGoToQrcode,Tr.QRCODE_ICON,Tr.MOBILE_ICON,[...Array(o)].map(((e,o)=>{const a=t[o%t.length];return a?(0,i.dy)(ro||(ro=(0,r.Z)(['<wcm-wallet-image walletId="','" imageId="','"></wcm-wallet-image>'])),a.id,a.image_id):Tr.WALLET_PLACEHOLDER})),Kr.handleAndroidLinking)}};qi.styles=[wr.globalCss,Ui],qi=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Fi(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Hi(t,o,a),a})([(0,a.Mo)("wcm-android-wallet-selection")],qi);const Yi=(0,i.iv)(io||(io=(0,r.Z)(["@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}"])));var Ki=Object.defineProperty,Qi=Object.getOwnPropertyDescriptor,Gi=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Qi(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ki(t,o,a),a};let Xi=class extends i.oi{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,t;
2const o=null!=(t=null==(e=m.ThemeCtrl.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?t:wr.getPreset("--wcm-wallet-icon-large-border-radius");let a=0;a=o.includes("%")?.88*parseInt(o,10):parseInt(o,10),a*=1.17;const l=317-1.57*a,n=425-1.8*a;return(0,i.dy)(ao||(ao=(0,r.Z)(['<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="','"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ','" stroke-dashoffset="','"></use></svg>'])),a,l,n)}render(){const e={"wcm-error":this.isError,"wcm-stale":this.isStale};return(0,i.dy)(lo||(lo=(0,r.Z)(['<div class="','">','<wcm-wallet-image walletId="','" imageId="','"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="','">',"</wcm-text>"])),s(e),this.svgLoaderTemplate(),Ne(this.walletId),Ne(this.imageId),this.isError?"error":"primary",this.isError?"Connection declined":this.label)}};Xi.styles=[wr.globalCss,Yi],Gi([(0,a.Cb)()],Xi.prototype,"walletId",2),Gi([(0,a.Cb)()],Xi.prototype,"imageId",2),Gi([(0,a.Cb)({type:Boolean})],Xi.prototype,"isError",2),Gi([(0,a.Cb)({type:Boolean})],Xi.prototype,"isStale",2),Gi([(0,a.Cb)()],Xi.prototype,"label",2),Xi=Gi([(0,a.Mo)("wcm-connector-waiting")],Xi);const $i={manualWallets(){var e,t;const{mobileWallets:o,desktopWallets:r}=m.ConfigCtrl.state,i=null==(e=$i.recentWallet())?void 0:e.id,a=m.zv.isMobile()?o:r,l=null===a||void 0===a?void 0:a.filter((e=>i!==e.id));return null!=(t=m.zv.isMobile()?null===l||void 0===l?void 0:l.map((e=>{let{id:t,name:o,links:r}=e;return{id:t,name:o,mobile:r,links:r}})):null===l||void 0===l?void 0:l.map((e=>{let{id:t,name:o,links:r}=e;return{id:t,name:o,desktop:r,links:r}})))?t:[]},recentWallet:()=>Kr.getRecentWallet(),recomendedWallets(){var e;const t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]||null==(e=$i.recentWallet())?void 0:e.id,{recomendedWallets:o}=m.ExplorerCtrl.state;return o.filter((e=>t!==e.id))}},Ji={onConnecting(e){Kr.goToConnectingView(e)},manualWalletsTemplate(){return $i.manualWallets().map((e=>(0,i.dy)(no||(no=(0,r.Z)(['<wcm-wallet-button walletId="','" name="','" .onClick="','"></wcm-wallet-button>'])),e.id,e.name,(()=>this.onConnecting(e)))))},recomendedWalletsTemplate(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return $i.recomendedWallets(e).map((e=>(0,i.dy)(co||(co=(0,r.Z)(['<wcm-wallet-button name="','" walletId="','" imageId="','" .onClick="','"></wcm-wallet-button>'])),e.name,e.id,e.image_id,(()=>this.onConnecting(e)))))},recentWalletTemplate(){const e=$i.recentWallet();if(e)return(0,i.dy)(so||(so=(0,r.Z)(['<wcm-wallet-button name="','" walletId="','" imageId="','" .recent="','" .onClick="','"></wcm-wallet-button>'])),e.name,e.id,Ne(e.image_id),!0,(()=>this.onConnecting(e)))}},ea=(0,i.iv)(mo||(mo=(0,r.Z)([".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)}"])));var ta=Object.defineProperty,oa=Object.getOwnPropertyDescriptor;let ra=class extends i.oi{render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=m.ConfigCtrl.state,o="ALL"!==e&&t,a=Ji.manualWalletsTemplate(),l=Ji.recomendedWalletsTemplate();let n=[Ji.recentWalletTemplate(),...a,...l];n=n.filter(Boolean);const c=n.length>4||o;let s=[];s=c?n.slice(0,3):n;const d=Boolean(s.length);return(0,i.dy)(ho||(ho=(0,r.Z)(['<wcm-modal-header .border="','" title="Connect your wallet" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">','<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">','<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>',""])),!0,Kr.handleUriCopy,Tr.COPY_ICON,Tr.MOBILE_ICON,Tr.SCAN_ICON,d?(0,i.dy)(po||(po=(0,r.Z)(['<wcm-modal-footer><div class="wcm-desktop-title">','<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">'," ","</div></wcm-modal-footer>"])),Tr.DESKTOP_ICON,s,c?(0,i.dy)(uo||(uo=(0,r.Z)(["<wcm-view-all-wallets-button>
2</wcm-view-all-wallets-button>"]))):null):null)}};ra.styles=[wr.globalCss,ea],ra=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?oa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ta(t,o,a),a})([(0,a.Mo)("wcm-desktop-wallet-selection")],ra);const ia=(0,i.iv)(wo||(wo=(0,r.Z)(["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}}"])));var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor;let na=class extends i.oi{render(){const{termsOfServiceUrl:e,privacyPolicyUrl:t}=m.ConfigCtrl.state;return(null!==e&&void 0!==e?e:t)?(0,i.dy)(go||(go=(0,r.Z)(['<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app\'s '," "," ","</wcm-text></div>"])),e?(0,i.dy)(vo||(vo=(0,r.Z)(['<a href="','" target="_blank" rel="noopener noreferrer">Terms of Service</a>'])),e):null,e&&t?"and":null,t?(0,i.dy)(bo||(bo=(0,r.Z)(['<a href="','" target="_blank" rel="noopener noreferrer">Privacy Policy</a>'])),t):null):null}};na.styles=[wr.globalCss,ia],na=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?la(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&aa(t,o,a),a})([(0,a.Mo)("wcm-legal-notice")],na);const ca=(0,i.iv)(fo||(fo=(0,r.Z)(["div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}"])));var sa=Object.defineProperty,da=Object.getOwnPropertyDescriptor;let ma=class extends i.oi{onQrcode(){m.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:e,enableExplorer:t}=m.ConfigCtrl.state,o="ALL"!==e&&t,a=Ji.manualWalletsTemplate(),l=Ji.recomendedWalletsTemplate();let n=[Ji.recentWalletTemplate(),...a,...l];n=n.filter(Boolean);const c=n.length>8||o;let s=[];s=c?n.slice(0,7):n;const d=Boolean(s.length);return(0,i.dy)(yo||(yo=(0,r.Z)(['<wcm-modal-header title="Connect your wallet" .onAction="','" .actionIcon="','"></wcm-modal-header>',""])),this.onQrcode,Tr.QRCODE_ICON,d?(0,i.dy)(xo||(xo=(0,r.Z)(["<wcm-modal-content><div>"," ","</div></wcm-modal-content>"])),s,c?(0,i.dy)(Co||(Co=(0,r.Z)(["<wcm-view-all-wallets-button></wcm-view-all-wallets-button>"]))):null):null)}};ma.styles=[wr.globalCss,ca],ma=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?da(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&sa(t,o,a),a})([(0,a.Mo)("wcm-mobile-wallet-selection")],ma);const ha=(0,i.iv)(ko||(ko=(0,r.Z)([":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}}"])));var pa=Object.defineProperty,ua=Object.getOwnPropertyDescriptor,wa=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?ua(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&pa(t,o,a),a};let ga=class extends i.oi{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=m.jb.subscribe((e=>{e.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var e;null==(e=this.unsubscribeModal)||e.call(this)}get overlayEl(){return Kr.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Kr.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(e){if(document.querySelector("body"))if(e){const e=document.getElementById("wcm-styles");null===e||void 0===e||e.remove()}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}onCloseModal(e){e.target===e.currentTarget&&m.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const e=Kr.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([De(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,De(this.containerEl,e,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const e=Kr.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([De(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,De(this.containerEl,e,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(e=>{var t;
2"Escape"===e.key?m.jb.close():"Tab"===e.key&&(null!=(t=e.target)&&t.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var e;null==(e=this.abortController)||e.abort(),this.abortController=void 0}render(){const e={"wcm-overlay":!0,"wcm-active":this.active};return(0,i.dy)(Oo||(Oo=(0,r.Z)(['<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="','" @click="','" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">',"</div></div>"])),s(e),this.onCloseModal,this.open?(0,i.dy)(Zo||(Zo=(0,r.Z)(['<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>']))):null)}};ga.styles=[wr.globalCss,ha],wa([(0,a.SB)()],ga.prototype,"open",2),wa([(0,a.SB)()],ga.prototype,"active",2),ga=wa([(0,a.Mo)("wcm-modal")],ga);const va=(0,i.iv)(Eo||(Eo=(0,r.Z)(["div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}"])));var ba=Object.defineProperty,fa=Object.getOwnPropertyDescriptor,ya=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?fa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ba(t,o,a),a};let xa=class extends i.oi{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){m.zv.isMobile()?m.AV.replace("MobileConnecting"):m.AV.replace("MobileQrcodeConnecting")}onDesktop(){m.AV.replace("DesktopConnecting")}onWeb(){m.AV.replace("WebConnecting")}render(){return(0,i.dy)(Mo||(Mo=(0,r.Z)(["<div>"," "," "," ","</div>"])),this.isRetry?(0,i.dy)(Ao||(Ao=(0,r.Z)(["<slot></slot>"]))):null,this.isMobile?(0,i.dy)(Io||(Io=(0,r.Z)(['<wcm-button .onClick="','" .iconLeft="','" variant="outline">Mobile</wcm-button>'])),this.onMobile,Tr.MOBILE_ICON):null,this.isDesktop?(0,i.dy)(To||(To=(0,r.Z)(['<wcm-button .onClick="','" .iconLeft="','" variant="outline">Desktop</wcm-button>'])),this.onDesktop,Tr.DESKTOP_ICON):null,this.isWeb?(0,i.dy)(_o||(_o=(0,r.Z)(['<wcm-button .onClick="','" .iconLeft="','" variant="outline">Web</wcm-button>'])),this.onWeb,Tr.GLOBE_ICON):null)}};xa.styles=[wr.globalCss,va],ya([(0,a.Cb)({type:Boolean})],xa.prototype,"isMobile",2),ya([(0,a.Cb)({type:Boolean})],xa.prototype,"isDesktop",2),ya([(0,a.Cb)({type:Boolean})],xa.prototype,"isWeb",2),ya([(0,a.Cb)({type:Boolean})],xa.prototype,"isRetry",2),xa=ya([(0,a.Mo)("wcm-platform-selection")],xa);const Ca=(0,i.iv)(Wo||(Wo=(0,r.Z)(["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)}"])));var ka=Object.defineProperty,Oa=Object.getOwnPropertyDescriptor;let Za=class extends i.oi{onClick(){m.AV.push("WalletExplorer")}render(){const{recomendedWallets:e}=m.ExplorerCtrl.state,t=[...e,...$i.manualWallets()].reverse().slice(0,4);return(0,i.dy)(Ro||(Ro=(0,r.Z)(['<button @click="','"><div class="wcm-icons">'," ",'</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>'])),this.onClick,t.map((e=>{const t=Kr.getWalletIcon(e);if(t)return(0,i.dy)(Po||(Po=(0,r.Z)(['<img crossorigin="anonymous" src="','">'])),t);const o=Kr.getWalletIcon({id:e.id});return o?(0,i.dy)(Lo||(Lo=(0,r.Z)(['<img crossorigin="anonymous" src="','">'])),o):Tr.WALLET_PLACEHOLDER})),[...Array(4-t.length)].map((()=>Tr.WALLET_PLACEHOLDER)))}};Za.styles=[wr.globalCss,Ca],Za=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Oa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ka(t,o,a),a})([(0,a.Mo)("wcm-view-all-wallets-button")],Za);const Ea=(0,i.iv)(jo||(jo=(0,r.Z)([".wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}"])));var Ma=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Ia=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Aa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ma(t,o,a),a};let Ta=class extends i.oi{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:e}=m.OptionsCtrl.state;this.uri=e}),0)}get overlayEl(){return Kr.getShadowRootElement(this,".wcm-qr-container")}
2render(){return(0,i.dy)(Do||(Do=(0,r.Z)(['<div class="wcm-qr-container">',"</div>"])),this.uri?(0,i.dy)(No||(No=(0,r.Z)(['<wcm-qrcode size="','" uri="','" walletId="','" imageId="','"></wcm-qrcode>'])),this.overlayEl.offsetWidth,this.uri,Ne(this.walletId),Ne(this.imageId)):(0,i.dy)(So||(So=(0,r.Z)(["<wcm-spinner></wcm-spinner>"]))))}};Ta.styles=[wr.globalCss,Ea],Ia([(0,a.Cb)()],Ta.prototype,"walletId",2),Ia([(0,a.Cb)()],Ta.prototype,"imageId",2),Ia([(0,a.SB)()],Ta.prototype,"uri",2),Ta=Ia([(0,a.Mo)("wcm-walletconnect-qr")],Ta);var _a=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor;let Ra=class extends i.oi{viewTemplate(){return m.zv.isAndroid()?(0,i.dy)(zo||(zo=(0,r.Z)(["<wcm-android-wallet-selection></wcm-android-wallet-selection>"]))):m.zv.isMobile()?(0,i.dy)(Bo||(Bo=(0,r.Z)(["<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>"]))):(0,i.dy)(Vo||(Vo=(0,r.Z)(["<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>"])))}render(){return(0,i.dy)(Uo||(Uo=(0,r.Z)(["","<wcm-legal-notice></wcm-legal-notice>"])),this.viewTemplate())}};Ra.styles=[wr.globalCss],Ra=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Wa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&_a(t,o,a),a})([(0,a.Mo)("wcm-connect-wallet-view")],Ra);const Pa=(0,i.iv)(Ho||(Ho=(0,r.Z)(["wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}"])));var La=Object.defineProperty,ja=Object.getOwnPropertyDescriptor,Da=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?ja(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&La(t,o,a),a};let Na=class extends i.oi{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(e){const{desktop:t,name:o}=m.zv.getWalletRouterData(),r=null===t||void 0===t?void 0:t.native;if(r){const t=m.zv.formatNativeUrl(r,e,o);m.zv.openHref(t,"_self")}}openDesktopApp(){const{walletConnectUri:e}=m.OptionsCtrl.state,t=m.zv.getWalletRouterData();Kr.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=m.zv.getWalletRouterData(),{isMobile:a,isWeb:l}=Kr.getCachedRouterWalletPlatforms();return(0,i.dy)(Fo||(Fo=(0,r.Z)(['<wcm-modal-header title="','" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="','" imageId="','" label="','" .isError="','"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">','</wcm-text><wcm-platform-selection .isMobile="','" .isWeb="','" .isRetry="','"><wcm-button .onClick="','" .iconRight="','">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>'])),e,Kr.handleUriCopy,Tr.COPY_ICON,t,Ne(o),"Continue in ".concat(e,"..."),this.isError,"Connection can continue loading if ".concat(e," is not installed on your device"),a,l,!0,this.openDesktopApp.bind(this),Tr.RETRY_ICON)}};Na.styles=[wr.globalCss,Pa],Da([(0,a.SB)()],Na.prototype,"isError",2),Na=Da([(0,a.Mo)("wcm-desktop-connecting-view")],Na);const Sa=(0,i.iv)(qo||(qo=(0,r.Z)(["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}"])));var za=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor;let Va=class extends i.oi{onInstall(e){e&&m.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,homepage:a}=m.zv.getWalletRouterData();return(0,i.dy)(Yo||(Yo=(0,r.Z)(['<wcm-modal-header title="','"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="','" imageId="','" label="Not Detected" .isStale="','"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">','</wcm-text><wcm-button .onClick="','" .iconLeft="','">Download</wcm-button></wcm-info-footer>'])),e,t,Ne(o),!0,"Download ".concat(e," to continue. If multiple browser extensions are installed, disable non ").concat(e," ones and try again"),(()=>this.onInstall(a)),Tr.ARROW_DOWN_ICON)}};Va.styles=[wr.globalCss,Sa],Va=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ba(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&za(t,o,a),a})([(0,a.Mo)("wcm-install-wallet-view")],Va);const Ua=(0,i.iv)(Ko||(Ko=(0,r.Z)(["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%}
2.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)}"])));var Ha=Object.defineProperty,Fa=Object.getOwnPropertyDescriptor,qa=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?Fa(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Ha(t,o,a),a};let Ya=class extends i.oi{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{mobile:o,name:r}=m.zv.getWalletRouterData(),i=null===o||void 0===o?void 0:o.native,a=null===o||void 0===o?void 0:o.universal;if(i&&!t){const t=m.zv.formatNativeUrl(i,e,r);m.zv.openHref(t,"_self")}else if(a){const t=m.zv.formatUniversalUrl(a,e,r);m.zv.openHref(t,"_self")}}openMobileApp(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const{walletConnectUri:t}=m.OptionsCtrl.state,o=m.zv.getWalletRouterData();Kr.setRecentWallet(o),t&&this.onFormatAndRedirect(t,e)}onGoToAppStore(e){e&&m.zv.openHref(e,"_blank")}render(){const{name:e,id:t,image_id:o,app:a,mobile:l}=m.zv.getWalletRouterData(),{isWeb:n}=Kr.getCachedRouterWalletPlatforms(),c=null===a||void 0===a?void 0:a.ios,s=null===l||void 0===l?void 0:l.universal;return(0,i.dy)(Qo||(Qo=(0,r.Z)(['<wcm-modal-header title="','"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="','" imageId="','" label="Tap \'Open\' to continue\u2026" .isError="','"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="','" .isRetry="','"><wcm-button .onClick="','" .iconRight="','">Retry</wcm-button></wcm-platform-selection>','</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="','" imageId="','"></wcm-wallet-image><wcm-text>','</wcm-text></div><wcm-button .iconRight="','" .onClick="','" variant="ghost">App Store</wcm-button></wcm-info-footer>'])),e,t,Ne(o),this.isError,n,!0,(()=>this.openMobileApp(!1)),Tr.RETRY_ICON,s?(0,i.dy)(Go||(Go=(0,r.Z)(['<wcm-text color="secondary" variant="small-thin">Still doesn\'t work? <span tabindex="0" @click="','">Try this alternate link</span></wcm-text>'])),(()=>this.openMobileApp(!0))):null,t,Ne(o),"Get ".concat(e),Tr.ARROW_RIGHT_ICON,(()=>this.onGoToAppStore(c)))}};Ya.styles=[wr.globalCss,Ua],qa([(0,a.SB)()],Ya.prototype,"isError",2),Ya=qa([(0,a.Mo)("wcm-mobile-connecting-view")],Ya);const Ka=(0,i.iv)(Xo||(Xo=(0,r.Z)(["wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}"])));var Qa=Object.defineProperty,Ga=Object.getOwnPropertyDescriptor;let Xa=class extends i.oi{render(){const{name:e,id:t,image_id:o}=m.zv.getWalletRouterData(),{isDesktop:a,isWeb:l}=Kr.getCachedRouterWalletPlatforms();return(0,i.dy)($o||($o=(0,r.Z)(['<wcm-modal-header title="','" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="','" imageId="','"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">','</wcm-text><wcm-platform-selection .isDesktop="','" .isWeb="','"></wcm-platform-selection></wcm-info-footer>'])),e,Kr.handleUriCopy,Tr.COPY_ICON,t,Ne(o),"Scan this QR Code with your phone's camera or inside ".concat(e," app"),a,l)}};Xa.styles=[wr.globalCss,Ka],Xa=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ga(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&Qa(t,o,a),a})([(0,a.Mo)("wcm-mobile-qr-connecting-view")],Xa);var $a=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor;let el=class extends i.oi{render(){return(0,i.dy)(Jo||(Jo=(0,r.Z)(['<wcm-modal-header title="Scan the code" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>'])),Kr.handleUriCopy,Tr.COPY_ICON)}};el.styles=[wr.globalCss],el=((e,t,o,r)=>{for(var i,a=r>1?void 0:r?Ja(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&$a(t,o,a),a})([(0,a.Mo)("wcm-qrcode-view")],el);const tl=(0,i.iv)(er||(er=(0,r.Z)(["wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;
2grid-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}"])));var ol=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,il=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?rl(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&ol(t,o,a),a};let al=class extends i.oi{constructor(){super(...arguments),this.loading=!m.ExplorerCtrl.state.wallets.listings.length,this.firstFetch=!m.ExplorerCtrl.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Kr.debounce((e=>{e.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=e,m.ExplorerCtrl.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),m.ExplorerCtrl.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var e;null==(e=this.intersectionObserver)||e.disconnect()}get placeholderEl(){return Kr.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((e=>{let[t]=e;t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:e,search:t}=m.ExplorerCtrl.state,{listings:o,total:r}=this.search?t:e;return r<=40||o.length>=r}async fetchWallets(){var e;const{wallets:t,search:o}=m.ExplorerCtrl.state,{listings:r,total:i,page:a}=this.search?o:t;if(!this.endReached&&(this.firstFetch||i>40&&r.length<i))try{this.loading=!0;const t=null==(e=m.OptionsCtrl.state.chains)?void 0:e.join(","),{listings:o}=await m.ExplorerCtrl.getWallets({page:this.firstFetch?1:a+1,entries:40,search:this.search,version:2,chains:t}),r=o.map((e=>Kr.getWalletIcon(e)));await Promise.all([...r.map((async e=>Kr.preloadImage(e))),m.zv.wait(300)]),this.endReached=this.isLastPage()}catch(c){console.error(c),m.ToastCtrl.openToast(Kr.getErrorMessage(c),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(e){m.zv.isAndroid()?Kr.handleMobileLinking(e):Kr.goToConnectingView(e)}onSearchChange(e){const{value:t}=e.target;this.searchDebounce(t)}render(){const{wallets:e,search:t}=m.ExplorerCtrl.state,{listings:o}=this.search?t:e,a=this.loading&&!o.length,l=this.search.length>=3;let n=Ji.manualWalletsTemplate(),c=Ji.recomendedWalletsTemplate(!0);l&&(n=n.filter((e=>{let{values:t}=e;return Kr.caseSafeIncludes(t[0],this.search)})),c=c.filter((e=>{let{values:t}=e;return Kr.caseSafeIncludes(t[0],this.search)})));const d=!this.loading&&!o.length&&!c.length,h={"wcm-loading":a,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":d};return(0,i.dy)(tr||(tr=(0,r.Z)(['<wcm-modal-header><wcm-search-input .onChange="','"></wcm-search-input></wcm-modal-header><wcm-modal-content class="','"><div class="wcm-grid">'," "," ",'</div><div class="wcm-placeholder-block">'," ","</div></wcm-modal-content>"])),this.onSearchChange.bind(this),s(h),a?null:n,a?null:c,a?null:o.map((e=>(0,i.dy)(or||(or=(0,r.Z)(["",""])),e?(0,i.dy)(rr||(rr=(0,r.Z)(['<wcm-wallet-button imageId="','" name="','" walletId="','" .onClick="','"></wcm-wallet-button>'])),e.image_id,e.name,e.id,(()=>this.onConnect(e))):null))),d?(0,i.dy)(ir||(ir=(0,r.Z)(['<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>']))):null,!d&&this.loading?(0,i.dy)(ar||(ar=(0,r.Z)(["<wcm-spinner></wcm-spinner>"]))):null)}};al.styles=[wr.globalCss,tl],il([(0,a.SB)()],al.prototype,"loading",2),il([(0,a.SB)()],al.prototype,"firstFetch",2),il([(0,a.SB)()],al.prototype,"search",2),il([(0,a.SB)()],al.prototype,"endReached",2),al=il([(0,a.Mo)("wcm-wallet-explorer-view")],al);const ll=(0,i.iv)(lr||(lr=(0,r.Z)(["wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}"])));var nl=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,sl=(e,t,o,r)=>{for(var i,a=r>1?void 0:r?cl(t,o):t,l=e.length-1;l>=0;l--)(i=e[l])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&nl(t,o,a),a};let dl=class extends i.oi{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(e){const{desktop:t,name:o}=m.zv.getWalletRouterData(),r=null===t||void 0===t?void 0:t.universal;if(r){const t=m.zv.formatUniversalUrl(r,e,o);m.zv.openHref(t,"_blank")}}openWebWallet(){const{walletConnectUri:e}=m.OptionsCtrl.state,t=m.zv.getWalletRouterData();Kr.setRecentWallet(t),e&&this.onFormatAndRedirect(e)}render(){const{name:e,id:t,image_id:o}=m.zv.getWalletRouterData(),{isMobile:a,isDesktop:l}=Kr.getCachedRouterWalletPlatforms(),n=m.zv.isMobile();return(0,i.dy)(nr||(nr=(0,r.Z)(['<wcm-modal-header title="','" .onAction="','" .actionIcon="','"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="','" imageId="','" label="','" .isError="','"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">','</wcm-text><wcm-platform-selection .isMobile="','" .isDesktop="','" .isRetry="','"><wcm-button .onClick="','" .iconRight="','">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>'])),e,Kr.handleUriCopy,Tr.COPY_ICON,t,Ne(o),"Continue in ".concat(e,"..."),this.isError,"".concat(e," web app has opened in a new tab. Go there, accept the connection, and come back"),a,!n&&l,!0,this.openWebWallet.bind(this),Tr.RETRY_ICON)}};dl.styles=[wr.globalCss,ll],sl([(0,a.SB)()],dl.prototype,"isError",2),dl=sl([(0,a.Mo)("wcm-web-connecting-view")],dl)}}]);
3//# sourceMappingURL=6882.15f98a82.chunk.js.map

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