@dodoex/wallet-web3 0.0.29-3 → 0.0.29-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocto-ec220500.js +1 -0
- package/dist/cjs/blocto-06e9f41b.cjs +1 -0
- package/dist/cjs/index-10e8c244.cjs +1 -0
- package/dist/cjs/index-65ef3d76.cjs +1 -0
- package/dist/cjs/index-6f1e3af6.cjs +1 -0
- package/dist/cjs/index-8983bb88.cjs +1 -0
- package/dist/cjs/index-ae695e20.cjs +1 -0
- package/dist/cjs/index-ba62c069.cjs +1 -0
- package/dist/cjs/index-c149be38.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/portis-2054bb58.cjs +1 -0
- package/dist/cjs/provider-037fd0ed.cjs +1 -0
- package/dist/cjs/providers/connector/types.d.ts +3 -1
- package/dist/cjs/rainbow-2ad12dd2.cjs +1 -0
- package/dist/cjs/uAuth-7e65d2cc.cjs +1 -0
- package/dist/cjs/walletConnect-ade9514f.cjs +1 -0
- package/dist/cjs/walletLink-b6336fc1.cjs +1 -0
- package/dist/index-17319257.js +1 -0
- package/dist/index-27e5c5a9.js +1 -0
- package/dist/index-2806301c.js +1 -0
- package/dist/index-3ea85737.js +1 -0
- package/dist/index-890a1073.js +1 -0
- package/dist/index-9149aa90.js +1 -0
- package/dist/index-ea777add.js +1 -0
- package/dist/index.js +1 -1
- package/dist/portis-8eca7dbf.js +1 -0
- package/dist/provider-a0690f64.js +1 -0
- package/dist/providers/connector/types.d.ts +3 -1
- package/dist/rainbow-9004d140.js +1 -0
- package/dist/uAuth-c2aa6d14.js +1 -0
- package/dist/walletConnect-3f4192dd.js +1 -0
- package/dist/walletLink-b8912567.js +1 -0
- package/package.json +2 -3
- package/dist/__node-resolve_empty-abf9d05c.js +0 -1
- package/dist/__tslib-2cf47e60.js +0 -1
- package/dist/_commonjs-dynamic-modules-7cfc9805.js +0 -1
- package/dist/blocto-81feb681.js +0 -7
- package/dist/bn-6112a089.js +0 -1
- package/dist/browser-ponyfill-561fcb2e.js +0 -1
- package/dist/cjs/__node-resolve_empty-7e18e37f.cjs +0 -1
- package/dist/cjs/__tslib-ea7958de.cjs +0 -1
- package/dist/cjs/_commonjs-dynamic-modules-f09a98c7.cjs +0 -1
- package/dist/cjs/blocto-dc48a1ad.cjs +0 -7
- package/dist/cjs/bn-f53db394.cjs +0 -1
- package/dist/cjs/browser-ponyfill-0731a4ed.cjs +0 -1
- package/dist/cjs/ethers-4e66d72a.cjs +0 -1
- package/dist/cjs/hash-282034e6.cjs +0 -1
- package/dist/cjs/id-8a644c33.cjs +0 -1
- package/dist/cjs/index-1466df1b.cjs +0 -6
- package/dist/cjs/index-2bdefe92.cjs +0 -1
- package/dist/cjs/index-4a570b13.cjs +0 -15
- package/dist/cjs/index-4b4d2602.cjs +0 -1
- package/dist/cjs/index-55ec09dc.cjs +0 -1
- package/dist/cjs/index-70269942.cjs +0 -1
- package/dist/cjs/index-815203b8.cjs +0 -1
- package/dist/cjs/index-a06b11a5.cjs +0 -1
- package/dist/cjs/index-a7b876c9.cjs +0 -1
- package/dist/cjs/index-cc9917b7.cjs +0 -1
- package/dist/cjs/index-cf3bf3b5.cjs +0 -3
- package/dist/cjs/index-d6d65bef.cjs +0 -9
- package/dist/cjs/index-df8e5839.cjs +0 -1
- package/dist/cjs/index-ea466b80.cjs +0 -72
- package/dist/cjs/index-eb09e54d.cjs +0 -60
- package/dist/cjs/index.es-21cc8770.cjs +0 -9
- package/dist/cjs/inherits_browser-f88a000a.cjs +0 -1
- package/dist/cjs/interface-225981df.cjs +0 -1
- package/dist/cjs/portis-3fafbe79.cjs +0 -24
- package/dist/cjs/provider-a262028d.cjs +0 -1
- package/dist/cjs/rainbow-b604cbf7.cjs +0 -1
- package/dist/cjs/typed-data-c4ecf952.cjs +0 -1
- package/dist/cjs/uAuth-f1305031.cjs +0 -1
- package/dist/cjs/walletConnect-a53f336c.cjs +0 -1
- package/dist/cjs/walletLink-df159d74.cjs +0 -1
- package/dist/ethers-acfbf5c9.js +0 -1
- package/dist/hash-a9ebd52a.js +0 -1
- package/dist/id-bc5c09f7.js +0 -1
- package/dist/index-030da250.js +0 -15
- package/dist/index-0ee5ef8d.js +0 -60
- package/dist/index-3e230de4.js +0 -1
- package/dist/index-48b745cb.js +0 -1
- package/dist/index-5a901c0e.js +0 -2
- package/dist/index-6be6f872.js +0 -1
- package/dist/index-7c8bbc42.js +0 -1
- package/dist/index-9006cf1c.js +0 -9
- package/dist/index-9d00f201.js +0 -72
- package/dist/index-a22d40f4.js +0 -6
- package/dist/index-cc5a134a.js +0 -1
- package/dist/index-e0d3617a.js +0 -1
- package/dist/index-f14e5faf.js +0 -1
- package/dist/index-f419935b.js +0 -1
- package/dist/index-fe8f3b3c.js +0 -1
- package/dist/index.es-0f31065d.js +0 -9
- package/dist/inherits_browser-06ba108b.js +0 -1
- package/dist/interface-0a756904.js +0 -1
- package/dist/portis-115bb575.js +0 -24
- package/dist/provider-a182bcd5.js +0 -1
- package/dist/rainbow-f5118874.js +0 -1
- package/dist/typed-data-a195e004.js +0 -1
- package/dist/uAuth-cf583f8b.js +0 -1
- package/dist/walletConnect-49aee65f.js +0 -1
- package/dist/walletLink-fbbe6e77.js +0 -1
package/dist/index-0ee5ef8d.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import{G as t,F as e,N as r,q as o,i as n,Q as i,T as a,d as l,f as s}from"./index-e0d3617a.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2019 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),m=new WeakMap;class u{constructor(t,e,r){if(this._$cssResult$=!0,r!==h)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(d&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&m.set(e,t))}return t}toString(){return this.cssText}}const p=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new u(r,t,h)},g=d?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,h))(e)})(t):t
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2017 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/;var w;const f=window,v=f.trustedTypes,b=v?v.emptyScript:"",y=f.reactiveElementPolyfillSupport,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},$=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:$};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const o=this._$Ep(r,e);void 0!==o&&(this._$Ev.set(o,r),t.push(o))})),t}static createProperty(t,e=C){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(g(t))}else void 0!==t&&e.push(g(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{d?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),o=c.litNonce;void 0!==o&&r.setAttribute("nonce",o),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=C){var o;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:x).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(t,e){var r;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:x;this._$El=n,this[n]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||$)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
12
|
-
/**
|
|
13
|
-
* @license
|
|
14
|
-
* Copyright 2017 Google LLC
|
|
15
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
16
|
-
*/
|
|
17
|
-
var A;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:E}),(null!==(w=f.reactiveElementVersions)&&void 0!==w?w:f.reactiveElementVersions=[]).push("1.6.1");const _=window,k=_.trustedTypes,O=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,P="?"+M,T=`<${P}>`,R=document,S=()=>R.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,B="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,W=/>/g,j=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),H=/'/g,z=/"/g,Z=/^(?:script|style|textarea|title)$/i,F=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),V=F(1),q=F(2),K=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Q=new WeakMap,J=R.createTreeWalker(R,129,null,!1),G=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"<svg>":"",a=D;for(let e=0;e<r;e++){const r=t[e];let l,s,c=-1,d=0;for(;d<r.length&&(a.lastIndex=d,s=a.exec(r),null!==s);)d=a.lastIndex,a===D?"!--"===s[1]?a=U:void 0!==s[1]?a=W:void 0!==s[2]?(Z.test(s[2])&&(n=RegExp("</"+s[2],"g")),a=j):void 0!==s[3]&&(a=j):a===j?">"===s[0]?(a=null!=n?n:D,c=-1):void 0===s[1]?c=-2:(c=a.lastIndex-s[2].length,l=s[1],a=void 0===s[3]?j:'"'===s[3]?z:H):a===z||a===H?a=j:a===U||a===W?a=D:(a=j,n=void 0);const h=a===j&&t[e+1].startsWith("/>")?" ":"";i+=a===D?r+T:c>=0?(o.push(l),r.slice(0,c)+I+r.slice(c)+M+h):r+M+(-2===c?(o.push(void 0),e):h)}const l=i+(t[r]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(l):l,o]};class X{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const a=t.length-1,l=this.parts,[s,c]=G(t,e);if(this.el=X.createElement(s,r),J.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=J.nextNode())&&l.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(I)||e.startsWith(M)){const r=c[i++];if(t.push(e),void 0!==r){const t=o.getAttribute(r.toLowerCase()+I).split(M),e=/([.?@])?(.*)/.exec(r);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?nt:"?"===e[1]?at:"@"===e[1]?lt:ot})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(Z.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=k?k.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],S()),J.nextNode(),l.push({type:2,index:++n});o.append(t[e],S())}}}else if(8===o.nodeType)if(o.data===P)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(M,t+1));)l.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const r=R.createElement("template");return r.innerHTML=t,r}}function tt(t,e,r=t,o){var n,i,a,l;if(e===K)return e;let s=void 0!==o?null===(n=r._$Co)||void 0===n?void 0:n[o]:r._$Cl;const c=L(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==c&&(null===(i=null==s?void 0:s._$AO)||void 0===i||i.call(s,!1),void 0===c?s=void 0:(s=new c(t),s._$AT(t,r,o)),void 0!==o?(null!==(a=(l=r)._$Co)&&void 0!==a?a:l._$Co=[])[o]=s:r._$Cl=s),void 0!==s&&(e=tt(t,s._$AS(t,e.values),s,o)),e}class et{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(r,!0);J.currentNode=n;let i=J.nextNode(),a=0,l=0,s=o[0];for(;void 0!==s;){if(a===s.index){let e;2===s.type?e=new rt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new st(i,this,t)),this._$AV.push(e),s=o[++l]}a!==(null==s?void 0:s.index)&&(i=J.nextNode(),a++)}return n}v(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class rt{constructor(t,e,r,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),L(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==K&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=X.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(r);else{const t=new et(n,this),e=t.u(this.options);t.v(r),this.$(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new X(t)),e}T(t){N(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const n of t)o===e.length?e.push(r=new rt(this.k(S()),this.k(S()),this,this.options)):r=e[o],r._$AI(n),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var r;for(null===(r=this._$AP)||void 0===r||r.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class ot{constructor(t,e,r,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=tt(this,t,e,0),i=!L(t)||t!==this._$AH&&t!==K,i&&(this._$AH=t);else{const o=t;let a,l;for(t=n[0],a=0;a<n.length-1;a++)l=tt(this,o[r+a],e,a),l===K&&(l=this._$AH[a]),i||(i=!L(l)||l!==this._$AH[a]),l===Y?t=Y:t!==Y&&(t+=(null!=l?l:"")+n[a+1]),this._$AH[a]=l}i&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class nt extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const it=k?k.emptyScript:"";class at extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,e,r,o,n){super(t,e,r,o,n),this.type=5}_$AI(t,e=this){var r;if((t=null!==(r=tt(this,t,e,0))&&void 0!==r?r:Y)===K)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;"function"==typeof this._$AH?this._$AH.call(null!==(r=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==r?r:this.element,t):this._$AH.handleEvent(t)}}class st{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ct=_.litHtmlPolyfillSupport;null==ct||ct(X,rt),(null!==(A=_.litHtmlVersions)&&void 0!==A?A:_.litHtmlVersions=[]).push("2.7.3");
|
|
18
|
-
/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2017 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/
|
|
23
|
-
var dt,ht;class mt extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,r)=>{var o,n;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:e;let a=i._$litPart$;if(void 0===a){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=a=new rt(e.insertBefore(S(),t),t,void 0,null!=r?r:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return K}}mt.finalized=!0,mt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:mt});const ut=globalThis.litElementPolyfillSupport;null==ut||ut({LitElement:mt}),(null!==(ht=globalThis.litElementVersions)&&void 0!==ht?ht:globalThis.litElementVersions=[]).push("3.3.2");
|
|
24
|
-
/**
|
|
25
|
-
* @license
|
|
26
|
-
* Copyright 2017 Google LLC
|
|
27
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
-
*/
|
|
29
|
-
const pt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:o}=e;return{kind:r,elements:o,finisher(e){customElements.define(t,e)}}})(t,e)
|
|
30
|
-
/**
|
|
31
|
-
* @license
|
|
32
|
-
* Copyright 2017 Google LLC
|
|
33
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
|
-
*/,gt=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function wt(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):gt(t,e)}
|
|
35
|
-
/**
|
|
36
|
-
* @license
|
|
37
|
-
* Copyright 2017 Google LLC
|
|
38
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
39
|
-
*/function ft(t){return wt({...t,state:!0})}
|
|
40
|
-
/**
|
|
41
|
-
* @license
|
|
42
|
-
* Copyright 2021 Google LLC
|
|
43
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/var vt;null===(vt=window.HTMLSlotElement)||void 0===vt||vt.prototype.assignedElements;
|
|
45
|
-
/**
|
|
46
|
-
* @license
|
|
47
|
-
* Copyright 2017 Google LLC
|
|
48
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
|
-
*/
|
|
50
|
-
const bt=1;class yt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
51
|
-
/**
|
|
52
|
-
* @license
|
|
53
|
-
* Copyright 2018 Google LLC
|
|
54
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/const xt=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends yt{constructor(t){var e;if(super(t),t.type!==bt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const r=!!e[t];r===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(r?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return K}});const $t=(t,e,r)=>Math.min(Math.max(r,t),e),Ct={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Et=t=>"number"==typeof t,At=t=>Array.isArray(t)&&!Et(t[0]),_t=(t,e,r)=>{const o=e-t;return((r-t)%o+o)%o+t};const kt=(t,e,r)=>-r*t+r*e+t,Ot=()=>{},It=t=>t,Mt=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Pt(t,e){const r=t[t.length-1];for(let o=1;o<=e;o++){const n=Mt(0,e,o);t.push(kt(r,1,n))}}function Tt(t,e=function(t){const e=[0];return Pt(e,t-1),e}(t.length),r=It){const o=t.length,n=o-e.length;return n>0&&Pt(e,n),n=>{let i=0;for(;i<o-2&&!(n<e[i+1]);i++);let a=$t(0,1,Mt(e[i],e[i+1],n));const l=function(t,e){return At(t)?t[_t(0,t.length,e)]:t}(r,i);return a=l(a),kt(t[i],t[i+1],a)}}const Rt=t=>Array.isArray(t)&&Et(t[0]),St=t=>"object"==typeof t&&Boolean(t.createAnimation),Lt=t=>"function"==typeof t,Nt=t=>"string"==typeof t,Bt={ms:t=>1e3*t,s:t=>t/1e3},Dt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,Ut=1e-7,Wt=12;function jt(t,e,r,o){if(t===e&&r===o)return It;const n=e=>function(t,e,r,o,n){let i,a,l=0;do{a=e+(r-e)/2,i=Dt(a,o,n)-t,i>0?r=a:e=a}while(Math.abs(i)>Ut&&++l<Wt);return a}(e,0,1,t,r);return t=>0===t||1===t?t:Dt(n(t),e,o)}const Ht={ease:jt(.25,.1,.25,1),"ease-in":jt(.42,0,1,1),"ease-in-out":jt(.42,0,.58,1),"ease-out":jt(0,0,.58,1)},zt=/\((.*?)\)/;function Zt(t){if(Lt(t))return t;if(Rt(t))return jt(...t);if(Ht[t])return Ht[t];if(t.startsWith("steps")){const e=zt.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const o=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,n="end"===e?Math.floor(o):Math.ceil(o);return $t(0,1,n/t)})(parseFloat(t[0]),t[1].trim())}}return It}class Ft{constructor(t,e=[0,1],{easing:r,duration:o=Ct.duration,delay:n=Ct.delay,endDelay:i=Ct.endDelay,repeat:a=Ct.repeat,offset:l,direction:s="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=It,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||Ct.easing,St(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,o=t.duration||o}this.repeat=a,this.easing=At(r)?It:Zt(r),this.updateDuration(o);const c=Tt(e,l,At(r)?r.map(Zt):It);this.tick=e=>{var r;let o=0;o=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=o,o/=1e3,o=Math.max(o-n,0),"finished"===this.playState&&void 0===this.pauseTime&&(o=this.totalDuration);const a=o/this.duration;let l=Math.floor(a),d=a%1;!d&&a>=1&&(d=1),1===d&&l--;const h=l%2;("reverse"===s||"alternate"===s&&h||"alternate-reverse"===s&&!h)&&(d=1-d);const m=o>=this.totalDuration?1:Math.min(d,1),u=c(this.easing(m));t(u);void 0===this.pauseTime&&("finished"===this.playState||o>=this.totalDuration+i)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,u)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),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 t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}var Vt=function(){};"production"!==process.env.NODE_ENV&&(Vt=function(t,e){if(!t)throw new Error(e)});class qt{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const Kt=new WeakMap;function Yt(t){return Kt.has(t)||Kt.set(t,{transforms:[],values:new Map}),Kt.get(t)}const Qt=["","X","Y","Z"],Jt={x:"translateX",y:"translateY",z:"translateZ"},Gt={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},Xt={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Gt,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:It},skew:Gt},te=new Map,ee=t=>`--motion-${t}`,re=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Qt.forEach((e=>{re.push(t+e),te.set(ee(t+e),Xt[t])}))}));const oe=(t,e)=>re.indexOf(t)-re.indexOf(e),ne=new Set(re),ie=t=>ne.has(t),ae=(t,e)=>{Jt[e]&&(e=Jt[e]);const{transforms:r}=Yt(t);var o,n;n=e,-1===(o=r).indexOf(n)&&o.push(n),t.style.transform=le(r)},le=t=>t.sort(oe).reduce(se,"").trim(),se=(t,e)=>`${t} ${e}(var(${ee(e)}))`,ce=t=>t.startsWith("--"),de=new Set;const he=(t,e)=>document.createElement("div").animate(t,e),me={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{he({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(he({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{he({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},ue={},pe={};for(const t in me)pe[t]=()=>(void 0===ue[t]&&(ue[t]=me[t]()),ue[t]);const ge=(t,e)=>Lt(t)?pe.linearEasing()?`linear(${((t,e)=>{let r="";const o=Math.round(e/.015);for(let e=0;e<o;e++)r+=t(Mt(0,o-1,e))+", ";return r.substring(0,r.length-2)})(t,e)})`:Ct.easing:Rt(t)?we(t):t,we=([t,e,r,o])=>`cubic-bezier(${t}, ${e}, ${r}, ${o})`;const fe=t=>Array.isArray(t)?t:[t];function ve(t){return Jt[t]&&(t=Jt[t]),ie(t)?ee(t):t}const be={get:(t,e)=>{e=ve(e);let r=ce(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=te.get(e);t&&(r=t.initialValue)}return r},set:(t,e,r)=>{e=ve(e),ce(e)?t.style.setProperty(e,r):t.style[e]=r}};function ye(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}function xe(t,e,r,o={},n){const i=window.__MOTION_DEV_TOOLS_RECORD,a=!1!==o.record&&i;let l,{duration:s=Ct.duration,delay:c=Ct.delay,endDelay:d=Ct.endDelay,repeat:h=Ct.repeat,easing:m=Ct.easing,persist:u=!1,direction:p,offset:g,allowWebkitAcceleration:w=!1}=o;const f=Yt(t),v=ie(e);let b=pe.waapi();v&&ae(t,e);const y=ve(e),x=function(t,e){return t.has(e)||t.set(e,new qt),t.get(e)}(f.values,y),$=te.get(y);return ye(x.animation,!(St(m)&&x.generator)&&!1!==o.record),()=>{const f=()=>{var e,r;return null!==(r=null!==(e=be.get(t,y))&&void 0!==e?e:null==$?void 0:$.initialValue)&&void 0!==r?r:0};let C=function(t,e){for(let r=0;r<t.length;r++)null===t[r]&&(t[r]=r?t[r-1]:e());return t}(fe(r),f);const E=function(t,e){var r;let o=(null==e?void 0:e.toDefaultUnit)||It;const n=t[t.length-1];if(Nt(n)){const t=(null===(r=n.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(o=e=>e+t)}return o}(C,$);if(St(m)){const t=m.createAnimation(C,"opacity"!==e,f,y,x);m=t.easing,C=t.keyframes||C,s=t.duration||s}if(ce(y)&&(pe.cssRegisterProperty()?function(t){if(!de.has(t)){de.add(t);try{const{syntax:e,initialValue:r}=te.has(t)?te.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(t){}}}(y):b=!1),v&&!pe.linearEasing()&&(Lt(m)||At(m)&&m.some(Lt))&&(b=!1),b){$&&(C=C.map((t=>Et(t)?$.toDefaultUnit(t):t))),1!==C.length||pe.partialKeyframes()&&!a||C.unshift(f());const e={delay:Bt.ms(c),duration:Bt.ms(s),endDelay:Bt.ms(d),easing:At(m)?void 0:ge(m,s),direction:p,iterations:h+1,fill:"both"};l=t.animate({[y]:C,offset:g,easing:At(m)?m.map((t=>ge(t,s))):void 0},e),l.finished||(l.finished=new Promise(((t,e)=>{l.onfinish=t,l.oncancel=e})));const r=C[C.length-1];l.finished.then((()=>{u||(be.set(t,y,r),l.cancel())})).catch(Ot),w||(l.playbackRate=1.000001)}else if(n&&v)C=C.map((t=>"string"==typeof t?parseFloat(t):t)),1===C.length&&C.unshift(parseFloat(f())),l=new n((e=>{be.set(t,y,E?E(e):e)}),C,Object.assign(Object.assign({},o),{duration:s,easing:m}));else{const e=C[C.length-1];be.set(t,y,$&&Et(e)?$.toDefaultUnit(e):e)}return a&&i(t,e,C,{duration:s,delay:c,easing:m,repeat:h,offset:g},"motion-one"),x.setAnimation(l),l}}const $e=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);const Ce=t=>t(),Ee=(t,e,r=Ct.duration)=>new Proxy({animations:t.map(Ce).filter(Boolean),duration:r,options:e},Ae),Ae={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return Bt.s((null==r?void 0:r[e])||0);case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(_e)).catch(Ot)),t.finished;case"stop":return()=>{t.animations.forEach((t=>ye(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=Bt.ms(r);case"currentTime":case"playbackRate":for(let o=0;o<t.animations.length;o++)t.animations[o][e]=r;return!0}return!1}},_e=t=>t.finished;function ke(t,e,r){return Lt(t)?t(e,r):t}const Oe=(Ie=Ft,function(t,e,r={}){const o=(t=function(t,e){var r;return"string"==typeof t?e?(null!==(r=e[t])&&void 0!==r||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}(t)).length;Vt(Boolean(o),"No valid element provided."),Vt(Boolean(e),"No keyframes defined.");const n=[];for(let i=0;i<o;i++){const a=t[i];for(const t in e){const l=$e(r,t);l.delay=ke(l.delay,i,o);const s=xe(a,t,e[t],l,Ie);n.push(s)}}return Ee(n,r,r.duration)});var Ie;function Me(t,e={}){return Ee([()=>{const r=new Ft(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function Pe(t,e,r){return(Lt(t)?Me:Oe)(t,e,r)}
|
|
56
|
-
/**
|
|
57
|
-
* @license
|
|
58
|
-
* Copyright 2018 Google LLC
|
|
59
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
60
|
-
*/const Te=t=>null!=t?t:Y;var Re={},Se={},Le={};let Ne;const Be=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Le.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},Le.getSymbolTotalCodewords=function(t){return Be[t]},Le.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},Le.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');Ne=t},Le.isKanjiModeEnabled=function(){return void 0!==Ne},Le.toSJIS=function(t){return Ne(t)};var De,Ue={};function We(){this.buffer=[],this.length=0}(De=Ue).L={bit:1},De.M={bit:0},De.Q={bit:3},De.H={bit:2},De.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},De.from=function(t,e){if(De.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return De.L;case"m":case"medium":return De.M;case"q":case"quartile":return De.Q;case"h":case"high":return De.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}},We.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var je=We;function He(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}He.prototype.set=function(t,e,r,o){const n=t*this.size+e;this.data[n]=r,o&&(this.reservedBit[n]=!0)},He.prototype.get=function(t,e){return this.data[t*this.size+e]},He.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},He.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var ze=He,Ze={};!function(t){const e=Le.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const r=Math.floor(t/7)+2,o=e(t),n=145===o?26:2*Math.ceil((o-13)/(2*r-2)),i=[o-7];for(let t=1;t<r-1;t++)i[t]=i[t-1]-n;return i.push(6),i.reverse()},t.getPositions=function(e){const r=[],o=t.getRowColCoords(e),n=o.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||r.push([o[t],o[e]]);return r}}(Ze);var Fe={};const Ve=Le.getSymbolSize;Fe.getPositions=function(t){const e=Ve(t);return[[0,0],[e-7,0],[0,e-7]]};var qe={};!function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,r=3,o=40,n=10;function i(e,r,o){switch(e){case t.Patterns.PATTERN000:return(r+o)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(r+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return r*o%2+r*o%3==0;case t.Patterns.PATTERN110:return(r*o%2+r*o%3)%2==0;case t.Patterns.PATTERN111:return(r*o%3+(r+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const r=t.size;let o=0,n=0,i=0,a=null,l=null;for(let s=0;s<r;s++){n=i=0,a=l=null;for(let c=0;c<r;c++){let r=t.get(s,c);r===a?n++:(n>=5&&(o+=e+(n-5)),a=r,n=1),r=t.get(c,s),r===l?i++:(i>=5&&(o+=e+(i-5)),l=r,i=1)}n>=5&&(o+=e+(n-5)),i>=5&&(o+=e+(i-5))}return o},t.getPenaltyN2=function(t){const e=t.size;let o=0;for(let r=0;r<e-1;r++)for(let n=0;n<e-1;n++){const e=t.get(r,n)+t.get(r,n+1)+t.get(r+1,n)+t.get(r+1,n+1);4!==e&&0!==e||o++}return o*r},t.getPenaltyN3=function(t){const e=t.size;let r=0,n=0,i=0;for(let o=0;o<e;o++){n=i=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(o,a),a>=10&&(1488===n||93===n)&&r++,i=i<<1&2047|t.get(a,o),a>=10&&(1488===i||93===i)&&r++}return r*o},t.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let o=0;o<r;o++)e+=t.data[o];return Math.abs(Math.ceil(100*e/r/5)-10)*n},t.applyMask=function(t,e){const r=e.size;for(let o=0;o<r;o++)for(let n=0;n<r;n++)e.isReserved(n,o)||e.xor(n,o,i(t,n,o))},t.getBestMask=function(e,r){const o=Object.keys(t.Patterns).length;let n=0,i=1/0;for(let a=0;a<o;a++){r(a),t.applyMask(a,e);const o=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),o<i&&(i=o,n=a)}return n}}(qe);var Ke={};const Ye=Ue,Qe=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Je=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ke.getBlocksCount=function(t,e){switch(e){case Ye.L:return Qe[4*(t-1)+0];case Ye.M:return Qe[4*(t-1)+1];case Ye.Q:return Qe[4*(t-1)+2];case Ye.H:return Qe[4*(t-1)+3];default:return}},Ke.getTotalCodewordsCount=function(t,e){switch(e){case Ye.L:return Je[4*(t-1)+0];case Ye.M:return Je[4*(t-1)+1];case Ye.Q:return Je[4*(t-1)+2];case Ye.H:return Je[4*(t-1)+3];default:return}};var Ge={},Xe={};const tr=new Uint8Array(512),er=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)tr[e]=t,er[t]=e,t<<=1,256&t&&(t^=285);for(let t=255;t<512;t++)tr[t]=tr[t-255]}(),Xe.log=function(t){if(t<1)throw new Error("log("+t+")");return er[t]},Xe.exp=function(t){return tr[t]},Xe.mul=function(t,e){return 0===t||0===e?0:tr[er[t]+er[e]]},function(t){const e=Xe;t.mul=function(t,r){const o=new Uint8Array(t.length+r.length-1);for(let n=0;n<t.length;n++)for(let i=0;i<r.length;i++)o[n+i]^=e.mul(t[n],r[i]);return o},t.mod=function(t,r){let o=new Uint8Array(t);for(;o.length-r.length>=0;){const t=o[0];for(let n=0;n<r.length;n++)o[n]^=e.mul(r[n],t);let n=0;for(;n<o.length&&0===o[n];)n++;o=o.slice(n)}return o},t.generateECPolynomial=function(r){let o=new Uint8Array([1]);for(let n=0;n<r;n++)o=t.mul(o,new Uint8Array([1,e.exp(n)]));return o}}(Ge);const rr=Ge;function or(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}or.prototype.initialize=function(t){this.degree=t,this.genPoly=rr.generateECPolynomial(this.degree)},or.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=rr.mod(e,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r};var nr=or,ir={},ar={},lr={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},sr={};const cr="[0-9]+";let dr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";dr=dr.replace(/u/g,"\\u");const hr="(?:(?![A-Z0-9 $%*+\\-./:]|"+dr+")(?:.|[\r\n]))+";sr.KANJI=new RegExp(dr,"g"),sr.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),sr.BYTE=new RegExp(hr,"g"),sr.NUMERIC=new RegExp(cr,"g"),sr.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const mr=new RegExp("^"+dr+"$"),ur=new RegExp("^"+cr+"$"),pr=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");sr.testKanji=function(t){return mr.test(t)},sr.testNumeric=function(t){return ur.test(t)},sr.testAlphanumeric=function(t){return pr.test(t)},function(t){const e=lr,r=sr;t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(t){return r}}}(ar),function(t){const e=Le,r=Ke,o=Ue,n=ar,i=lr,a=e.getBCHDigit(7973);function l(t,e){return n.getCharCountIndicator(t,e)+4}function s(t,e){let r=0;return t.forEach((function(t){const o=l(t.mode,e);r+=o+t.getBitsLength()})),r}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,o,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const s=8*(e.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,o));if(a===n.MIXED)return s;const c=s-l(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,r){let i;const a=o.from(r,o.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let o=1;o<=40;o++)if(s(e,o)<=t.getCapacity(o,r,n.MIXED))return o}(e,a);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,r,o){for(let n=1;n<=40;n++)if(r<=t.getCapacity(n,o,e))return n}(i.mode,i.getLength(),a)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let r=t<<12;for(;e.getBCHDigit(r)-a>=0;)r^=7973<<e.getBCHDigit(r)-a;return t<<12|r}}(ir);var gr={};const wr=Le,fr=wr.getBCHDigit(1335);gr.getEncodedBits=function(t,e){const r=t.bit<<3|e;let o=r<<10;for(;wr.getBCHDigit(o)-fr>=0;)o^=1335<<wr.getBCHDigit(o)-fr;return 21522^(r<<10|o)};var vr={};const br=ar;function yr(t){this.mode=br.NUMERIC,this.data=t.toString()}yr.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},yr.prototype.getLength=function(){return this.data.length},yr.prototype.getBitsLength=function(){return yr.getBitsLength(this.data.length)},yr.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);const n=this.data.length-e;n>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,3*n+1))};var xr=yr;const $r=ar,Cr=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Er(t){this.mode=$r.ALPHANUMERIC,this.data=t}Er.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Er.prototype.getLength=function(){return this.data.length},Er.prototype.getBitsLength=function(){return Er.getBitsLength(this.data.length)},Er.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*Cr.indexOf(this.data[e]);r+=Cr.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(Cr.indexOf(this.data[e]),6)};var Ar=Er;const _r=function(t){for(var e=[],r=t.length,o=0;o<r;o++){var n=t.charCodeAt(o);if(n>=55296&&n<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(n=1024*(n-55296)+i-56320+65536,o+=1)}n<128?e.push(n):n<2048?(e.push(n>>6|192),e.push(63&n|128)):n<55296||n>=57344&&n<65536?(e.push(n>>12|224),e.push(n>>6&63|128),e.push(63&n|128)):n>=65536&&n<=1114111?(e.push(n>>18|240),e.push(n>>12&63|128),e.push(n>>6&63|128),e.push(63&n|128)):e.push(239,191,189)}return new Uint8Array(e).buffer},kr=ar;function Or(t){this.mode=kr.BYTE,"string"==typeof t&&(t=_r(t)),this.data=new Uint8Array(t)}Or.getBitsLength=function(t){return 8*t},Or.prototype.getLength=function(){return this.data.length},Or.prototype.getBitsLength=function(){return Or.getBitsLength(this.data.length)},Or.prototype.write=function(t){for(let e=0,r=this.data.length;e<r;e++)t.put(this.data[e],8)};var Ir=Or;const Mr=ar,Pr=Le;function Tr(t){this.mode=Mr.KANJI,this.data=t}Tr.getBitsLength=function(t){return 13*t},Tr.prototype.getLength=function(){return this.data.length},Tr.prototype.getBitsLength=function(){return Tr.getBitsLength(this.data.length)},Tr.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let r=Pr.toSJIS(this.data[e]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}};var Rr=Tr,Sr={exports:{}};!function(t){var e={single_source_shortest_paths:function(t,r,o){var n={},i={};i[r]=0;var a,l,s,c,d,h,m,u=e.PriorityQueue.make();for(u.push(r,0);!u.empty();)for(s in l=(a=u.pop()).value,c=a.cost,d=t[l]||{})d.hasOwnProperty(s)&&(h=c+d[s],m=i[s],(void 0===i[s]||m>h)&&(i[s]=h,u.push(s,h),n[s]=l));if(void 0!==o&&void 0===i[o]){var p=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(p)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],o=e;o;)r.push(o),t[o],o=t[o];return r.reverse(),r},find_path:function(t,r,o){var n=e.single_source_shortest_paths(t,r,o);return e.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(t){var r,o=e.PriorityQueue,n={};for(r in t=t||{},o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=t.sorter||o.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(Sr),function(t){const e=ar,r=xr,o=Ar,n=Ir,i=Rr,a=sr,l=Le,s=Sr.exports;function c(t){return unescape(encodeURIComponent(t)).length}function d(t,e,r){const o=[];let n;for(;null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function h(t){const r=d(a.NUMERIC,e.NUMERIC,t),o=d(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,i;l.isKanjiModeEnabled()?(n=d(a.BYTE,e.BYTE,t),i=d(a.KANJI,e.KANJI,t)):(n=d(a.BYTE_KANJI,e.BYTE,t),i=[]);return r.concat(o,n,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function m(t,a){switch(a){case e.NUMERIC:return r.getBitsLength(t);case e.ALPHANUMERIC:return o.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function u(t,a){let s;const c=e.getBestModeForData(t);if(s=e.from(a,c),s!==e.BYTE&&s.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(s)+".\n Suggested mode is: "+e.toString(c));switch(s!==e.KANJI||l.isKanjiModeEnabled()||(s=e.BYTE),s){case e.NUMERIC:return new r(t);case e.ALPHANUMERIC:return new o(t);case e.KANJI:return new i(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(u(e,null)):e.data&&t.push(u(e.data,e.mode)),t}),[])},t.fromString=function(r,o){const n=function(t){const r=[];for(let o=0;o<t.length;o++){const n=t[o];switch(n.mode){case e.NUMERIC:r.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:r.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:r.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:r.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return r}(h(r,l.isKanjiModeEnabled())),i=function(t,r){const o={},n={start:{}};let i=["start"];for(let a=0;a<t.length;a++){const l=t[a],s=[];for(let t=0;t<l.length;t++){const c=l[t],d=""+a+t;s.push(d),o[d]={node:c,lastCount:0},n[d]={};for(let t=0;t<i.length;t++){const a=i[t];o[a]&&o[a].node.mode===c.mode?(n[a][d]=m(o[a].lastCount+c.length,c.mode)-m(o[a].lastCount,c.mode),o[a].lastCount+=c.length):(o[a]&&(o[a].lastCount=c.length),n[a][d]=m(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,r))}}i=s}for(let t=0;t<i.length;t++)n[i[t]].end=0;return{map:n,table:o}}(n,o),a=s.find_path(i.map,"start","end"),d=[];for(let t=1;t<a.length-1;t++)d.push(i.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const r=t.length-1>=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(d))},t.rawSplit=function(e){return t.fromArray(h(e,l.isKanjiModeEnabled()))}}(vr);const Lr=Le,Nr=Ue,Br=je,Dr=ze,Ur=Ze,Wr=Fe,jr=qe,Hr=Ke,zr=nr,Zr=ir,Fr=gr,Vr=ar,qr=vr;function Kr(t,e,r){const o=t.size,n=Fr.getEncodedBits(e,r);let i,a;for(i=0;i<15;i++)a=1==(n>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(o-15+i,8,a,!0),i<8?t.set(8,o-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(o-8,8,1,!0)}function Yr(t,e,r){const o=new Br;r.forEach((function(e){o.put(e.mode.bit,4),o.put(e.getLength(),Vr.getCharCountIndicator(e.mode,t)),e.write(o)}));const n=8*(Lr.getSymbolTotalCodewords(t)-Hr.getTotalCodewordsCount(t,e));for(o.getLengthInBits()+4<=n&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const i=(n-o.getLengthInBits())/8;for(let t=0;t<i;t++)o.put(t%2?17:236,8);return function(t,e,r){const o=Lr.getSymbolTotalCodewords(e),n=Hr.getTotalCodewordsCount(e,r),i=o-n,a=Hr.getBlocksCount(e,r),l=o%a,s=a-l,c=Math.floor(o/a),d=Math.floor(i/a),h=d+1,m=c-d,u=new zr(m);let p=0;const g=new Array(a),w=new Array(a);let f=0;const v=new Uint8Array(t.buffer);for(let t=0;t<a;t++){const e=t<s?d:h;g[t]=v.slice(p,p+e),w[t]=u.encode(g[t]),p+=e,f=Math.max(f,e)}const b=new Uint8Array(o);let y,x,$=0;for(y=0;y<f;y++)for(x=0;x<a;x++)y<g[x].length&&(b[$++]=g[x][y]);for(y=0;y<m;y++)for(x=0;x<a;x++)b[$++]=w[x][y];return b}(o,t,e)}function Qr(t,e,r,o){let n;if(Array.isArray(t))n=qr.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");{let o=e;if(!o){const e=qr.rawSplit(t);o=Zr.getBestVersionForData(e,r)}n=qr.fromString(t,o||40)}}const i=Zr.getBestVersionForData(n,r);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(e){if(e<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else e=i;const a=Yr(e,r,n),l=Lr.getSymbolSize(e),s=new Dr(l);return function(t,e){const r=t.size,o=Wr.getPositions(e);for(let e=0;e<o.length;e++){const n=o[e][0],i=o[e][1];for(let e=-1;e<=7;e++)if(!(n+e<=-1||r<=n+e))for(let o=-1;o<=7;o++)i+o<=-1||r<=i+o||(e>=0&&e<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===e||6===e)||e>=2&&e<=4&&o>=2&&o<=4?t.set(n+e,i+o,!0,!0):t.set(n+e,i+o,!1,!0))}}(s,e),function(t){const e=t.size;for(let r=8;r<e-8;r++){const e=r%2==0;t.set(r,6,e,!0),t.set(6,r,e,!0)}}(s),function(t,e){const r=Ur.getPositions(e);for(let e=0;e<r.length;e++){const o=r[e][0],n=r[e][1];for(let e=-2;e<=2;e++)for(let r=-2;r<=2;r++)-2===e||2===e||-2===r||2===r||0===e&&0===r?t.set(o+e,n+r,!0,!0):t.set(o+e,n+r,!1,!0)}}(s,e),Kr(s,r,0),e>=7&&function(t,e){const r=t.size,o=Zr.getEncodedBits(e);let n,i,a;for(let e=0;e<18;e++)n=Math.floor(e/3),i=e%3+r-8-3,a=1==(o>>e&1),t.set(n,i,a,!0),t.set(i,n,a,!0)}(s,e),function(t,e){const r=t.size;let o=-1,n=r-1,i=7,a=0;for(let l=r-1;l>0;l-=2)for(6===l&&l--;;){for(let r=0;r<2;r++)if(!t.isReserved(n,l-r)){let o=!1;a<e.length&&(o=1==(e[a]>>>i&1)),t.set(n,l-r,o),i--,-1===i&&(a++,i=7)}if(n+=o,n<0||r<=n){n-=o,o=-o;break}}}(s,a),isNaN(o)&&(o=jr.getBestMask(s,Kr.bind(null,s,r))),jr.applyMask(o,s),Kr(s,r,o),{modules:s,version:e,errorCorrectionLevel:r,maskPattern:o,segments:n}}Se.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,o,n=Nr.M;return void 0!==e&&(n=Nr.from(e.errorCorrectionLevel,Nr.M),r=Zr.from(e.version),o=jr.from(e.maskPattern),e.toSJISFunc&&Lr.setToSJISFunction(e.toSJISFunc)),Qr(t,r,n,o)};var Jr={},Gr={};!function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:o,scale:o?4:n,margin:r,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,r){const o=t.getScale(e,r);return Math.floor((e+2*r.margin)*o)},t.qrToImageData=function(e,r,o){const n=r.modules.size,i=r.modules.data,a=t.getScale(n,o),l=Math.floor((n+2*o.margin)*a),s=o.margin*a,c=[o.color.light,o.color.dark];for(let t=0;t<l;t++)for(let r=0;r<l;r++){let d=4*(t*l+r),h=o.color.light;if(t>=s&&r>=s&&t<l-s&&r<l-s){h=c[i[Math.floor((t-s)/a)*n+Math.floor((r-s)/a)]?1:0]}e[d++]=h.r,e[d++]=h.g,e[d++]=h.b,e[d]=h.a}}}(Gr),function(t){const e=Gr;t.render=function(t,r,o){let n=o,i=r;void 0!==n||r&&r.getContext||(n=r,r=void 0),r||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),l=i.getContext("2d"),s=l.createImageData(a,a);return e.qrToImageData(s.data,t,n),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(l,i,a),l.putImageData(s,0,0),i},t.renderToDataURL=function(e,r,o){let n=o;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});const i=t.render(e,r,n),a=n.type||"image/png",l=n.rendererOpts||{};return i.toDataURL(a,l.quality)}}(Jr);var Xr={};const to=Gr;function eo(t,e){const r=t.a/255,o=e+'="'+t.hex+'"';return r<1?o+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function ro(t,e,r){let o=t+e;return void 0!==r&&(o+=" "+r),o}Xr.render=function(t,e,r){const o=to.getOptions(e),n=t.modules.size,i=t.modules.data,a=n+2*o.margin,l=o.color.light.a?"<path "+eo(o.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",s="<path "+eo(o.color.dark,"stroke")+' d="'+function(t,e,r){let o="",n=0,i=!1,a=0;for(let l=0;l<t.length;l++){const s=Math.floor(l%e),c=Math.floor(l/e);s||i||(i=!0),t[l]?(a++,l>0&&s>0&&t[l-1]||(o+=i?ro("M",s+r,.5+c+r):ro("m",n,0),n=0,i=!1),s+1<e&&t[l+1]||(o+=ro("h",a),a=0)):n++}return o}(i,n,o.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',d='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+s+"</svg>\n";return"function"==typeof r&&r(null,d),d};const oo=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},no=Se,io=Jr,ao=Xr;function lo(t,e,r,o,n){const i=[].slice.call(arguments,1),a=i.length,l="function"==typeof i[a-1];if(!l&&!oo())throw new Error("Callback required as last argument");if(!l){if(a<1)throw new Error("Too few arguments provided");return 1===a?(r=e,e=o=void 0):2!==a||e.getContext||(o=r,r=e,e=void 0),new Promise((function(n,i){try{const i=no.create(r,o);n(t(i,e,o))}catch(t){i(t)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(n=r,r=e,e=o=void 0):3===a&&(e.getContext&&void 0===n?(n=o,o=void 0):(n=o,o=r,r=e,e=void 0));try{const i=no.create(r,o);n(null,t(i,e,o))}catch(t){n(t)}}Re.create=no.create,Re.toCanvas=lo.bind(null,io.render),Re.toDataURL=lo.bind(null,io.renderToDataURL),Re.toString=lo.bind(null,(function(t,e,r){return ao.render(t,r)}));var so=Object.defineProperty,co=Object.getOwnPropertySymbols,ho=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,uo=(t,e,r)=>e in t?so(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,po=(t,e)=>{for(var r in e||(e={}))ho.call(e,r)&&uo(t,r,e[r]);if(co)for(var r of co(e))mo.call(e,r)&&uo(t,r,e[r]);return t};const go={getPreset:t=>({"--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]),setTheme(){const e=document.querySelector(":root"),{themeVariables:r}=t.state;if(e){const o=po(po(po({},function(){var e;const r={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(e=t.state.themeMode)?e:"dark"];return{"--wcm-color-fg-1":r.foreground[1],"--wcm-color-fg-2":r.foreground[2],"--wcm-color-fg-3":r.foreground[3],"--wcm-color-bg-1":r.background[1],"--wcm-color-bg-2":r.background[2],"--wcm-color-bg-3":r.background[3],"--wcm-color-overlay":r.overlay}}()),{"--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"}),r);Object.entries(o).forEach((([t,r])=>e.style.setProperty(t,r)))}},globalCss:p`*,::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)}`},wo=p`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 fo=Object.defineProperty,vo=Object.getOwnPropertyDescriptor,bo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?vo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fo(e,r,i),i};let yo=class extends mt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"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 e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),V`<button class="${xt(t)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${e}"><slot></slot></wcm-text>${this.iconRight}</button>`}};yo.styles=[go.globalCss,wo],bo([wt({type:Boolean})],yo.prototype,"disabled",2),bo([wt()],yo.prototype,"iconLeft",2),bo([wt()],yo.prototype,"iconRight",2),bo([wt()],yo.prototype,"onClick",2),bo([wt()],yo.prototype,"variant",2),yo=bo([pt("wcm-button")],yo);const xo=p`: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 $o=Object.defineProperty,Co=Object.getOwnPropertyDescriptor,Eo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Co(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$o(e,r,i),i};let Ao=class extends mt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return V`<button ?disabled="${this.disabled}" class="${xt(t)}"><slot></slot></button>`}};Ao.styles=[go.globalCss,xo],Eo([wt({type:Boolean})],Ao.prototype,"disabled",2),Eo([wt()],Ao.prototype,"variant",2),Ao=Eo([pt("wcm-button-big")],Ao);const _o=p`: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 ko=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor;let Io=class extends mt{render(){return V`<div><slot></slot></div>`}};Io.styles=[go.globalCss,_o],Io=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Oo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ko(e,r,i),i})([pt("wcm-info-footer")],Io);const Mo={CROSS_ICON:q`<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:q`<svg width="178" height="29" viewBox="0 0 178 29" id="wcm-wc-logo"><path d="M10.683 7.926c5.284-5.17 13.85-5.17 19.134 0l.636.623a.652.652 0 0 1 0 .936l-2.176 2.129a.343.343 0 0 1-.478 0l-.875-.857c-3.686-3.607-9.662-3.607-13.348 0l-.937.918a.343.343 0 0 1-.479 0l-2.175-2.13a.652.652 0 0 1 0-.936l.698-.683Zm23.633 4.403 1.935 1.895a.652.652 0 0 1 0 .936l-8.73 8.543a.687.687 0 0 1-.956 0L20.37 17.64a.172.172 0 0 0-.239 0l-6.195 6.063a.687.687 0 0 1-.957 0l-8.73-8.543a.652.652 0 0 1 0-.936l1.936-1.895a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .239 0l6.195-6.064a.687.687 0 0 1 .957 0l6.196 6.064a.172.172 0 0 0 .24 0l6.195-6.064a.687.687 0 0 1 .956 0ZM48.093 20.948l2.338-9.355c.139-.515.258-1.07.416-1.942.12.872.258 1.427.357 1.942l2.022 9.355h4.181l3.528-13.874h-3.21l-1.943 8.523a24.825 24.825 0 0 0-.456 2.457c-.158-.931-.317-1.625-.495-2.438l-1.883-8.542h-4.201l-2.042 8.542a41.204 41.204 0 0 0-.475 2.438 41.208 41.208 0 0 0-.476-2.438l-1.903-8.542h-3.349l3.508 13.874h4.083ZM63.33 21.304c1.585 0 2.596-.654 3.11-1.605-.059.297-.078.595-.078.892v.357h2.655V15.22c0-2.735-1.248-4.32-4.3-4.32-2.636 0-4.36 1.466-4.52 3.487h2.914c.1-.891.734-1.426 1.705-1.426.911 0 1.407.515 1.407 1.11 0 .435-.258.693-1.03.792l-1.388.159c-2.061.257-3.825 1.01-3.825 3.19 0 1.982 1.645 3.092 3.35 3.092Zm.891-2.041c-.773 0-1.348-.436-1.348-1.19 0-.733.655-1.09 1.645-1.268l.674-.119c.575-.118.892-.218 1.09-.396v.912c0 1.228-.892 2.06-2.06 2.06ZM70.398 7.074v13.874h2.874V7.074h-2.874ZM74.934 7.074v13.874h2.874V7.074h-2.874ZM84.08 21.304c2.735 0 4.5-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922H81.92ZM94.92 21.146c.633 0 1.248-.1 1.525-.179v-2.18c-.218.04-.475.06-.693.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.338v-2.24h-2.338V7.788H91.47v3.448H89.37v2.24h2.1v4.201c0 2.3 1.15 3.469 3.45 3.469ZM104.62 21.304c3.924 0 6.302-2.299 6.599-5.608h-3.111c-.238 1.803-1.506 3.032-3.369 3.032-2.2 0-3.746-1.784-3.746-4.796 0-2.953 1.605-4.638 3.805-4.638 1.883 0 2.953 1.15 3.171 2.834h3.191c-.317-3.448-2.854-5.41-6.342-5.41-3.984 0-7.036 2.695-7.036 7.214 0 4.677 2.676 7.372 6.838 7.372ZM117.449 21.304c2.993 0 5.114-1.882 5.114-5.172 0-3.23-2.121-5.233-5.114-5.233-2.972 0-5.093 2.002-5.093 5.233 0 3.29 2.101 5.172 5.093 5.172Zm0-2.22c-1.327 0-2.18-1.09-2.18-2.952 0-1.903.892-2.973 2.18-2.973 1.308 0 2.2 1.07 2.2 2.973 0 1.862-.872 2.953-2.2 2.953ZM126.569 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.229-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM137.464 20.948v-5.689c0-1.208.753-2.1 1.823-2.1 1.011 0 1.606.773 1.606 2.06v5.729h2.873v-6.144c0-2.339-1.228-3.905-3.428-3.905-1.526 0-2.458.734-2.953 1.606a5.31 5.31 0 0 0 .079-.892v-.377h-2.874v9.712h2.874ZM149.949 21.304c2.735 0 4.499-1.546 4.697-3.567h-2.893c-.139.892-.892 1.387-1.804 1.387-1.228 0-2.12-.99-2.14-2.358h6.897v-.555c0-3.21-1.764-5.312-4.816-5.312-2.933 0-4.994 2.062-4.994 5.173 0 3.37 2.12 5.232 5.053 5.232Zm-2.16-6.421c.119-1.11.932-1.922 2.081-1.922 1.11 0 1.883.772 1.903 1.922h-3.984ZM160.876 21.304c3.013 0 4.658-1.645 4.975-4.201h-2.874c-.099 1.07-.713 1.982-2.001 1.982-1.309 0-2.2-1.21-2.2-2.993 0-1.942 1.03-2.933 2.259-2.933 1.209 0 1.803.872 1.883 1.882h2.873c-.218-2.358-1.823-4.142-4.776-4.142-2.874 0-5.153 1.903-5.153 5.193 0 3.25 1.923 5.212 5.014 5.212ZM172.067 21.146c.634 0 1.248-.1 1.526-.179v-2.18c-.218.04-.476.06-.694.06-1.05 0-1.427-.595-1.427-1.566v-3.805h2.339v-2.24h-2.339V7.788h-2.854v3.448h-2.1v2.24h2.1v4.201c0 2.3 1.15 3.469 3.449 3.469Z" fill="#fff"/></svg>`,WALLET_CONNECT_ICON:q`<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:q`<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:q`<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:q`<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:q`<svg width="15" height="16" viewBox="0 0 15 16"><path d="M6.464 2.03A.75.75 0 0 0 5.403.97L2.08 4.293a1 1 0 0 0 0 1.414L5.403 9.03a.75.75 0 0 0 1.06-1.06L4.672 6.177a.25.25 0 0 1 .177-.427h2.085a4 4 0 1 1-3.93 4.746c-.077-.407-.405-.746-.82-.746-.414 0-.755.338-.7.748a5.501 5.501 0 1 0 5.45-6.248H4.848a.25.25 0 0 1-.177-.427L6.464 2.03Z" fill="#fff"/></svg>`,DESKTOP_ICON:q`<svg width="16" height="16" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.98c0-1.85 0-2.775.394-3.466a3 3 0 0 1 1.12-1.12C2.204 1 3.13 1 4.98 1h6.04c1.85 0 2.775 0 3.466.394a3 3 0 0 1 1.12 1.12C16 3.204 16 4.13 16 5.98v1.04c0 1.85 0 2.775-.394 3.466a3 3 0 0 1-1.12 1.12C13.796 12 12.87 12 11.02 12H4.98c-1.85 0-2.775 0-3.466-.394a3 3 0 0 1-1.12-1.12C0 9.796 0 8.87 0 7.02V5.98ZM4.98 2.5h6.04c.953 0 1.568.001 2.034.043.446.04.608.108.69.154a1.5 1.5 0 0 1 .559.56c.046.08.114.243.154.69.042.465.043 1.08.043 2.033v1.04c0 .952-.001 1.568-.043 2.034-.04.446-.108.608-.154.69a1.499 1.499 0 0 1-.56.559c-.08.046-.243.114-.69.154-.466.042-1.08.043-2.033.043H4.98c-.952 0-1.568-.001-2.034-.043-.446-.04-.608-.108-.69-.154a1.5 1.5 0 0 1-.559-.56c-.046-.08-.114-.243-.154-.69-.042-.465-.043-1.08-.043-2.033V5.98c0-.952.001-1.568.043-2.034.04-.446.108-.608.154-.69a1.5 1.5 0 0 1 .56-.559c.08-.046.243-.114.69-.154.465-.042 1.08-.043 2.033-.043Z" fill="#fff"/><path d="M4 14.25a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5a.75.75 0 0 1-.75-.75Z" fill="#fff"/></svg>`,MOBILE_ICON:q`<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:q`<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:q`<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:q`<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:q`<svg width="25" height="24" viewBox="0 0 25 24"><path d="M23.748 9a.748.748 0 0 0 .748-.752c-.018-2.596-.128-4.07-.784-5.22a6 6 0 0 0-2.24-2.24c-1.15-.656-2.624-.766-5.22-.784a.748.748 0 0 0-.752.748c0 .414.335.749.748.752 1.015.007 1.82.028 2.494.088.995.09 1.561.256 1.988.5.7.398 1.28.978 1.679 1.678.243.427.41.993.498 1.988.061.675.082 1.479.09 2.493a.753.753 0 0 0 .75.749ZM3.527.788C4.677.132 6.152.022 8.747.004A.748.748 0 0 1 9.5.752a.753.753 0 0 1-.749.752c-1.014.007-1.818.028-2.493.088-.995.09-1.561.256-1.988.5-.7.398-1.28.978-1.679 1.678-.243.427-.41.993-.499 1.988-.06.675-.081 1.479-.088 2.493A.753.753 0 0 1 1.252 9a.748.748 0 0 1-.748-.752c.018-2.596.128-4.07.784-5.22a6 6 0 0 1 2.24-2.24ZM1.252 15a.748.748 0 0 0-.748.752c.018 2.596.128 4.07.784 5.22a6 6 0 0 0 2.24 2.24c1.15.656 2.624.766 5.22.784a.748.748 0 0 0 .752-.748.753.753 0 0 0-.749-.752c-1.014-.007-1.818-.028-2.493-.089-.995-.089-1.561-.255-1.988-.498a4.5 4.5 0 0 1-1.679-1.68c-.243-.426-.41-.992-.499-1.987-.06-.675-.081-1.479-.088-2.493A.753.753 0 0 0 1.252 15ZM22.996 15.749a.753.753 0 0 1 .752-.749c.415 0 .751.338.748.752-.018 2.596-.128 4.07-.784 5.22a6 6 0 0 1-2.24 2.24c-1.15.656-2.624.766-5.22.784a.748.748 0 0 1-.752-.748c0-.414.335-.749.748-.752 1.015-.007 1.82-.028 2.494-.089.995-.089 1.561-.255 1.988-.498a4.5 4.5 0 0 0 1.679-1.68c.243-.426.41-.992.498-1.987.061-.675.082-1.479.09-2.493Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 4a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 11h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 4H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1ZM13.5 6.5A2.5 2.5 0 0 1 16 4h2a2.5 2.5 0 0 1 2.5 2.5v2A2.5 2.5 0 0 1 18 11h-2a2.5 2.5 0 0 1-2.5-2.5v-2Zm2.5-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1ZM7 13a2.5 2.5 0 0 0-2.5 2.5v2A2.5 2.5 0 0 0 7 20h2a2.5 2.5 0 0 0 2.5-2.5v-2A2.5 2.5 0 0 0 9 13H7Zm2 1.5H7a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1Z" fill="#fff"/><path d="M13.5 15.5c0-.465 0-.697.038-.89a2 2 0 0 1 1.572-1.572C15.303 13 15.535 13 16 13v2.5h-2.5ZM18 13c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89H18V13ZM18 17.5h2.5c0 .465 0 .697-.038.89a2 2 0 0 1-1.572 1.572C18.697 20 18.465 20 18 20v-2.5ZM13.5 17.5H16V20c-.465 0-.697 0-.89-.038a2 2 0 0 1-1.572-1.572c-.038-.193-.038-.425-.038-.89Z" fill="#fff"/></svg>`,SCAN_ICON:q`<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:q`<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:q`<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:q`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,GLOBE_ICON:q`<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>`},Po=p`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var To=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor;let So=class extends mt{render(){return V`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${Mo.WALLET_CONNECT_LOGO} <button @click="${e.close}">${Mo.CROSS_ICON}</button></div>`}};So.styles=[go.globalCss,Po],So=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ro(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&To(e,r,i),i})([pt("wcm-modal-backcard")],So);const Lo=p`main{padding:20px;padding-top:0;width:100%}`;var No=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor;let Do=class extends mt{render(){return V`<main><slot></slot></main>`}};Do.styles=[go.globalCss,Lo],Do=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Bo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&No(e,r,i),i})([pt("wcm-modal-content")],Do);const Uo=p`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var Wo=Object.defineProperty,jo=Object.getOwnPropertyDescriptor;let Ho=class extends mt{render(){return V`<footer><slot></slot></footer>`}};Ho.styles=[go.globalCss,Uo],Ho=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?jo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wo(e,r,i),i})([pt("wcm-modal-footer")],Ho);const zo=p`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 Zo=Object.defineProperty,Fo=Object.getOwnPropertyDescriptor,Vo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Fo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Zo(e,r,i),i};let qo=class extends mt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return V`<button class="wcm-back-btn" @click="${r.goBack}">${Mo.BACK_ICON}</button>`}actionBtnTemplate(){return V`<button class="wcm-action-btn" @click="${this.onAction}">${this.actionIcon}</button>`}render(){const t={"wcm-border":this.border},e=r.state.history.length>1,o=this.title?V`<wcm-text variant="big-bold">${this.title}</wcm-text>`:V`<slot></slot>`;return V`<header class="${xt(t)}">${e?this.backBtnTemplate():null} ${o} ${this.onAction?this.actionBtnTemplate():null}</header>`}};qo.styles=[go.globalCss,zo],Vo([wt()],qo.prototype,"title",2),Vo([wt()],qo.prototype,"onAction",2),Vo([wt()],qo.prototype,"actionIcon",2),Vo([wt({type:Boolean})],qo.prototype,"border",2),qo=Vo([pt("wcm-modal-header")],qo);const Ko={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=s.state;return null!=r&&r[t]?r[t]:e?o.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Ko.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const o=new Image;o.onload=e,o.onerror=r,o.src=t}));return Promise.race([e,n.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...o)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...o)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=l.state,{mobile:r,name:o}=t,i=r?.native,a=r?.universal;Ko.setRecentWallet(t),e&&function(t){let e="";i?e=n.formatUniversalUrl(i,t,o):a&&(e=n.formatNativeUrl(a,t,o)),n.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=l.state;t&&(n.setWalletConnectAndroidDeepLink(t),n.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=l.state;if(t)try{await navigator.clipboard.writeText(t),i.openToast("Link copied","success")}catch{i.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=s.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Ko.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{console.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Ko.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{console.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){n.openHref(Ko.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=n.getWalletRouterData(),r=Boolean(t?.native),o=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:o}},goToConnectingView(t){r.setData({Wallet:t});const e=n.isMobile(),{isDesktop:o,isWeb:i,isMobile:a}=Ko.getCachedRouterWalletPlatforms();e?a?r.push("MobileConnecting"):i?r.push("WebConnecting"):r.push("InstallWallet"):o?r.push("DesktopConnecting"):i?r.push("WebConnecting"):a?r.push("MobileQrcodeConnecting"):r.push("InstallWallet")}},Yo=p`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,Go=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Jo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Qo(e,r,i),i};let Xo=class extends mt{constructor(){super(),this.view=r.state.view,this.prevView=r.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=r.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&Pe(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Ko.getShadowRootElement(this,".wcm-router")}get contentEl(){return Ko.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return V`<wcm-connect-wallet-view></wcm-connect-wallet-view>`;case"DesktopConnecting":return V`<wcm-desktop-connecting-view></wcm-desktop-connecting-view>`;case"MobileConnecting":return V`<wcm-mobile-connecting-view></wcm-mobile-connecting-view>`;case"WebConnecting":return V`<wcm-web-connecting-view></wcm-web-connecting-view>`;case"MobileQrcodeConnecting":return V`<wcm-mobile-qr-connecting-view></wcm-mobile-qr-connecting-view>`;case"WalletExplorer":return V`<wcm-wallet-explorer-view></wcm-wallet-explorer-view>`;case"Qrcode":return V`<wcm-qrcode-view></wcm-qrcode-view>`;case"InstallWallet":return V`<wcm-install-wallet-view></wcm-install-wallet-view>`;default:return V`<div>Not Found</div>`}}async onChangeRoute(){await Pe(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=r.state.view,Pe(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return V`<div class="wcm-router"><div class="wcm-content">${this.viewTemplate()}</div></div>`}};Xo.styles=[go.globalCss,Yo],Go([ft()],Xo.prototype,"view",2),Go([ft()],Xo.prototype,"prevView",2),Xo=Go([pt("wcm-modal-router")],Xo);const tn=p`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 en=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,on=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?rn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&en(e,r,i),i};let nn=class extends mt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=i.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>i.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),i.closeToast()}render(){const{message:t,variant:e}=i.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?V`<div class="${xt(r)}">${"success"===e?Mo.CHECKMARK_ICON:null} ${"error"===e?Mo.CROSS_ICON:null}<wcm-text variant="small-regular">${t}</wcm-text></div>`:null}};nn.styles=[go.globalCss,tn],on([ft()],nn.prototype,"open",2),nn=on([pt("wcm-modal-toast")],nn);function an(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}const ln={generate(t,e,r){const o="#141414",n=[],i=function(t,e){const r=Array.prototype.slice.call(Re.create(t,{errorCorrectionLevel:e}).modules.data,0),o=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%o==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t,"Q"),a=e/i.length,l=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];l.forEach((({x:t,y:e})=>{const r=(i.length-7)*a*t,s=(i.length-7)*a*e;for(let t=0;t<l.length;t+=1){const e=a*(7-2*t);n.push(q`<rect fill="${t%2==0?o:"#ffffff"}" height="${e}" rx="${.45*e}" ry="${.45*e}" width="${e}" x="${r+a*t}" y="${s+a*t}">`)}}));const s=Math.floor((r+25)/a),c=i.length/2-s/2,d=i.length/2+s/2-1,h=[];i.forEach(((t,e)=>{t.forEach(((t,r)=>{if(i[e][r]&&!(e<7&&r<7||e>i.length-8&&r<7||e<7&&r>i.length-8)&&!(e>c&&e<d&&r>c&&r<d)){const t=e*a+a/2,o=r*a+a/2;h.push([t,o])}}))}));const m={};return h.forEach((([t,e])=>{m[t]?m[t].push(e):m[t]=[e]})),Object.entries(m).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!an(t,e,a)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{n.push(q`<circle cx="${t}" cy="${e}" fill="${o}" r="${a/2.5}">`)}))})),Object.entries(m).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>an(t,e,a)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>t<e?-1:1));const r=[];for(const t of e){const e=r.find((e=>e.some((e=>an(t,e,a)))));e?e.push(t):r.push([t])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{n.push(q`<line x1="${t}" x2="${t}" y1="${e}" y2="${r}" stroke="${o}" stroke-width="${a/1.25}" stroke-linecap="round">`)}))})),n}},sn=p`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var cn=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,hn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?dn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cn(e,r,i),i};let mn=class extends mt{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const e="light"===t.state.themeMode?this.size:this.size-36;return q`<svg height="${e}" width="${e}">${ln.generate(this.uri,e,e/4)}</svg>`}render(){const e={"wcm-dark":"dark"===t.state.themeMode};return V`<div style="${`width: ${this.size}px`}" class="${xt(e)}">${this.walletId||this.imageUrl?V`<wcm-wallet-image walletId="${Te(this.walletId)}" imageId="${Te(this.imageId)}" imageUrl="${Te(this.imageUrl)}"></wcm-wallet-image>`:Mo.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`}};mn.styles=[go.globalCss,sn],hn([wt()],mn.prototype,"uri",2),hn([wt({type:Number})],mn.prototype,"size",2),hn([wt()],mn.prototype,"imageId",2),hn([wt()],mn.prototype,"walletId",2),hn([wt()],mn.prototype,"imageUrl",2),mn=hn([pt("wcm-qrcode")],mn);const un=p`: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 pn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,wn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?gn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pn(e,r,i),i};let fn=class extends mt{constructor(){super(...arguments),this.onChange=()=>null}render(){return V`<input type="text" @input="${this.onChange}" placeholder="Search wallets"> ${Mo.SEARCH_ICON}`}};fn.styles=[go.globalCss,un],wn([wt()],fn.prototype,"onChange",2),fn=wn([pt("wcm-search-input")],fn);const vn=p`@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 bn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor;let xn=class extends mt{render(){return V`<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>`}};xn.styles=[go.globalCss,vn],xn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?yn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bn(e,r,i),i})([pt("wcm-spinner")],xn);const $n=p`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 Cn=Object.defineProperty,En=Object.getOwnPropertyDescriptor,An=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?En(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cn(e,r,i),i};let _n=class extends mt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"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 V`<span><slot class="${xt(t)}"></slot></span>`}};_n.styles=[go.globalCss,$n],An([wt()],_n.prototype,"variant",2),An([wt()],_n.prototype,"color",2),_n=An([pt("wcm-text")],_n);const kn=p`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var On=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Mn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?In(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&On(e,r,i),i};let Pn=class extends mt{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?V`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">RECENT</wcm-text>`:this.installed?V`<wcm-text class="wcm-sublabel" variant="xsmall-bold" color="tertiary">INSTALLED</wcm-text>`:null}handleClick(){a.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return V`<button @click="${this.handleClick.bind(this)}"><div><wcm-wallet-image walletId="${this.walletId}" imageId="${Te(this.imageId)}"></wcm-wallet-image><wcm-text variant="xsmall-regular">${null!=(t=this.label)?t:Ko.getWalletName(this.name,!0)}</wcm-text>${this.sublabelTemplate()}</div></button>`}};Pn.styles=[go.globalCss,kn],Mn([wt()],Pn.prototype,"onClick",2),Mn([wt()],Pn.prototype,"name",2),Mn([wt()],Pn.prototype,"walletId",2),Mn([wt()],Pn.prototype,"label",2),Mn([wt()],Pn.prototype,"imageId",2),Mn([wt({type:Boolean})],Pn.prototype,"installed",2),Mn([wt({type:Boolean})],Pn.prototype,"recent",2),Pn=Mn([pt("wcm-wallet-button")],Pn);const Tn=p`: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 Rn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor,Ln=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Sn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rn(e,r,i),i};let Nn=class extends mt{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Ko.getWalletIcon({id:this.walletId,image_id:this.imageId});return V`${e.length?V`<div><img src="${e}" alt="${this.id}"></div>`:Mo.WALLET_PLACEHOLDER}`}};Nn.styles=[go.globalCss,Tn],Ln([wt()],Nn.prototype,"walletId",2),Ln([wt()],Nn.prototype,"imageId",2),Ln([wt()],Nn.prototype,"imageUrl",2),Nn=Ln([pt("wcm-wallet-image")],Nn);var Bn=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Un=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Dn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bn(e,r,i),i};let Wn=class extends mt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Ko.preloadImage(t))))}catch{console.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(s.state.enableExplorer){await o.getRecomendedWallets(),l.setIsDataLoaded(!0);const{recomendedWallets:t}=o.state,e=t.map((t=>Ko.getWalletIcon(t)));await this.loadImages(e)}else l.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Ko.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){console.error(t),i.openToast("Failed preloading","error")}}};Un([ft()],Wn.prototype,"preload",2),Wn=Un([pt("wcm-explorer-context")],Wn);var jn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor;let zn=class extends mt{constructor(){super(),this.unsubscribeTheme=void 0,go.setTheme(),this.unsubscribeTheme=t.subscribe(go.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};zn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Hn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&jn(e,r,i),i})([pt("wcm-theme-context")],zn);const Zn=p`@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 Fn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor;let qn=class extends mt{onGoToQrcode(){r.push("Qrcode")}render(){const{recomendedWallets:t}=o.state,e=[...t,...t],r=2*n.RECOMMENDED_WALLET_AMOUNT;return V`<wcm-modal-header title="Connect your wallet" .onAction="${this.onGoToQrcode}" .actionIcon="${Mo.QRCODE_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-title">${Mo.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">WalletConnect</wcm-text></div><div class="wcm-slider"><div class="wcm-track">${[...Array(r)].map(((t,r)=>{const o=e[r%e.length];return o?V`<wcm-wallet-image walletId="${o.id}" imageId="${o.image_id}"></wcm-wallet-image>`:Mo.WALLET_PLACEHOLDER}))}</div><wcm-button-big @click="${Ko.handleAndroidLinking}"><wcm-text variant="medium-regular" color="inverse">Select Wallet</wcm-text></wcm-button-big></div></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">Choose WalletConnect to see supported apps on your device</wcm-text></wcm-info-footer>`}};qn.styles=[go.globalCss,Zn],qn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Vn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fn(e,r,i),i})([pt("wcm-android-wallet-selection")],qn);const Kn=p`@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 Yn=Object.defineProperty,Qn=Object.getOwnPropertyDescriptor,Jn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Qn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Yn(e,r,i),i};let Gn=class extends mt{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var e,r;const o=null!=(r=null==(e=t.state.themeVariables)?void 0:e["--wcm-wallet-icon-large-border-radius"])?r:go.getPreset("--wcm-wallet-icon-large-border-radius");let n=0;n=o.includes("%")?.88*parseInt(o,10):parseInt(o,10),n*=1.17;return V`<svg viewBox="0 0 110 110" width="110" height="110"><rect id="wcm-loader" x="2" y="2" width="106" height="106" rx="${n}"/><use xlink:href="#wcm-loader" stroke-dasharray="106 ${317-1.57*n}" stroke-dashoffset="${425-1.8*n}"></use></svg>`}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return V`<div class="${xt(t)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${Te(this.walletId)}" imageId="${Te(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError?"error":"primary"}">${this.isError?"Connection declined":this.label}</wcm-text>`}};Gn.styles=[go.globalCss,Kn],Jn([wt()],Gn.prototype,"walletId",2),Jn([wt()],Gn.prototype,"imageId",2),Jn([wt({type:Boolean})],Gn.prototype,"isError",2),Jn([wt({type:Boolean})],Gn.prototype,"isStale",2),Jn([wt()],Gn.prototype,"label",2),Gn=Jn([pt("wcm-connector-waiting")],Gn);const Xn={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:o}=s.state,i=null==(t=Xn.recentWallet())?void 0:t.id,a=n.isMobile()?r:o,l=a?.filter((t=>i!==t.id));return null!=(e=n.isMobile()?l?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):l?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Ko.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Xn.recentWallet())?void 0:e.id,{recomendedWallets:n}=o.state;return n.filter((t=>r!==t.id))}},ti={onConnecting(t){Ko.goToConnectingView(t)},manualWalletsTemplate(){return Xn.manualWallets().map((t=>V`<wcm-wallet-button walletId="${t.id}" name="${t.name}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`))},recomendedWalletsTemplate(t=!1){return Xn.recomendedWallets(t).map((t=>V`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${t.image_id}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`))},recentWalletTemplate(){const t=Xn.recentWallet();if(t)return V`<wcm-wallet-button name="${t.name}" walletId="${t.id}" imageId="${Te(t.image_id)}" .recent="${!0}" .onClick="${()=>this.onConnecting(t)}"></wcm-wallet-button>`}},ei=p`.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 ri=Object.defineProperty,oi=Object.getOwnPropertyDescriptor;let ni=class extends mt{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=s.state,r="ALL"!==t&&e,o=ti.manualWalletsTemplate(),n=ti.recomendedWalletsTemplate();let i=[ti.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>4||r;let l=[];l=a?i.slice(0,3):i;const c=Boolean(l.length);return V`<wcm-modal-header .border="${!0}" title="Connect your wallet" .onAction="${Ko.handleUriCopy}" .actionIcon="${Mo.COPY_ICON}"></wcm-modal-header><wcm-modal-content><div class="wcm-mobile-title"><div class="wcm-subtitle">${Mo.MOBILE_ICON}<wcm-text variant="small-regular" color="accent">Mobile</wcm-text></div><div class="wcm-subtitle">${Mo.SCAN_ICON}<wcm-text variant="small-regular" color="secondary">Scan with your wallet</wcm-text></div></div><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>${c?V`<wcm-modal-footer><div class="wcm-desktop-title">${Mo.DESKTOP_ICON}<wcm-text variant="small-regular" color="accent">Desktop</wcm-text></div><div class="wcm-grid">${l} ${a?V`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-footer>`:null}`}};ni.styles=[go.globalCss,ei],ni=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?oi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ri(e,r,i),i})([pt("wcm-desktop-wallet-selection")],ni);const ii=p`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 ai=Object.defineProperty,li=Object.getOwnPropertyDescriptor;let si=class extends mt{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=s.state;return t??e?V`<div><wcm-text variant="small-regular" color="secondary">By connecting your wallet to this app, you agree to the app's ${t?V`<a href="${t}" target="_blank" rel="noopener noreferrer">Terms of Service</a>`:null} ${t&&e?"and":null} ${e?V`<a href="${e}" target="_blank" rel="noopener noreferrer">Privacy Policy</a>`:null}</wcm-text></div>`:null}};si.styles=[go.globalCss,ii],si=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?li(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ai(e,r,i),i})([pt("wcm-legal-notice")],si);const ci=p`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var di=Object.defineProperty,hi=Object.getOwnPropertyDescriptor;let mi=class extends mt{onQrcode(){r.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=s.state,r="ALL"!==t&&e,o=ti.manualWalletsTemplate(),n=ti.recomendedWalletsTemplate();let i=[ti.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>8||r;let l=[];l=a?i.slice(0,7):i;const c=Boolean(l.length);return V`<wcm-modal-header title="Connect your wallet" .onAction="${this.onQrcode}" .actionIcon="${Mo.QRCODE_ICON}"></wcm-modal-header>${c?V`<wcm-modal-content><div>${l} ${a?V`<wcm-view-all-wallets-button></wcm-view-all-wallets-button>`:null}</div></wcm-modal-content>`:null}`}};mi.styles=[go.globalCss,ci],mi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?hi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&di(e,r,i),i})([pt("wcm-mobile-wallet-selection")],mi);const ui=p`: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 pi=Object.defineProperty,gi=Object.getOwnPropertyDescriptor,wi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?gi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pi(e,r,i),i};let fi=class extends mt{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=e.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Ko.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Ko.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){const t=document.getElementById("wcm-styles");t?.remove()}else document.head.insertAdjacentHTML("beforeend",'<style id="wcm-styles">html,body{touch-action:none;overflow:hidden;overscroll-behavior:contain;}</style>')}onCloseModal(t){t.target===t.currentTarget&&e.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Ko.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([Pe(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,Pe(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Ko.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([Pe(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,Pe(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var r;"Escape"===t.key?e.close():"Tab"===t.key&&(null!=(r=t.target)&&r.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return V`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${xt(t)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open?V`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>`:null}</div></div>`}};fi.styles=[go.globalCss,ui],wi([ft()],fi.prototype,"open",2),wi([ft()],fi.prototype,"active",2),fi=wi([pt("wcm-modal")],fi);const vi=p`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var bi=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,xi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?yi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bi(e,r,i),i};let $i=class extends mt{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){n.isMobile()?r.replace("MobileConnecting"):r.replace("MobileQrcodeConnecting")}onDesktop(){r.replace("DesktopConnecting")}onWeb(){r.replace("WebConnecting")}render(){return V`<div>${this.isRetry?V`<slot></slot>`:null} ${this.isMobile?V`<wcm-button .onClick="${this.onMobile}" .iconLeft="${Mo.MOBILE_ICON}" variant="outline">Mobile</wcm-button>`:null} ${this.isDesktop?V`<wcm-button .onClick="${this.onDesktop}" .iconLeft="${Mo.DESKTOP_ICON}" variant="outline">Desktop</wcm-button>`:null} ${this.isWeb?V`<wcm-button .onClick="${this.onWeb}" .iconLeft="${Mo.GLOBE_ICON}" variant="outline">Web</wcm-button>`:null}</div>`}};$i.styles=[go.globalCss,vi],xi([wt({type:Boolean})],$i.prototype,"isMobile",2),xi([wt({type:Boolean})],$i.prototype,"isDesktop",2),xi([wt({type:Boolean})],$i.prototype,"isWeb",2),xi([wt({type:Boolean})],$i.prototype,"isRetry",2),$i=xi([pt("wcm-platform-selection")],$i);const Ci=p`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 Ei=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor;let _i=class extends mt{onClick(){r.push("WalletExplorer")}render(){const{recomendedWallets:t}=o.state,e=[...t,...Xn.manualWallets()].reverse().slice(0,4);return V`<button @click="${this.onClick}"><div class="wcm-icons">${e.map((t=>{const e=Ko.getWalletIcon(t);if(e)return V`<img src="${e}">`;const r=Ko.getWalletIcon({id:t.id});return r?V`<img src="${r}">`:Mo.WALLET_PLACEHOLDER}))} ${[...Array(4-e.length)].map((()=>Mo.WALLET_PLACEHOLDER))}</div><wcm-text variant="xsmall-regular">View All</wcm-text></button>`}};_i.styles=[go.globalCss,Ci],_i=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ai(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ei(e,r,i),i})([pt("wcm-view-all-wallets-button")],_i);const ki=p`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var Oi=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Mi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ii(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Oi(e,r,i),i};let Pi=class extends mt{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=l.state;this.uri=t}),0)}get overlayEl(){return Ko.getShadowRootElement(this,".wcm-qr-container")}render(){return V`<div class="wcm-qr-container">${this.uri?V`<wcm-qrcode size="${this.overlayEl.offsetWidth}" uri="${this.uri}" walletId="${Te(this.walletId)}" imageId="${Te(this.imageId)}"></wcm-qrcode>`:V`<wcm-spinner></wcm-spinner>`}</div>`}};Pi.styles=[go.globalCss,ki],Mi([wt()],Pi.prototype,"walletId",2),Mi([wt()],Pi.prototype,"imageId",2),Mi([ft()],Pi.prototype,"uri",2),Pi=Mi([pt("wcm-walletconnect-qr")],Pi);var Ti=Object.defineProperty,Ri=Object.getOwnPropertyDescriptor;let Si=class extends mt{viewTemplate(){return n.isAndroid()?V`<wcm-android-wallet-selection></wcm-android-wallet-selection>`:n.isMobile()?V`<wcm-mobile-wallet-selection></wcm-mobile-wallet-selection>`:V`<wcm-desktop-wallet-selection></wcm-desktop-wallet-selection>`}render(){return V`${this.viewTemplate()}<wcm-legal-notice></wcm-legal-notice>`}};Si.styles=[go.globalCss],Si=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ri(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ti(e,r,i),i})([pt("wcm-connect-wallet-view")],Si);const Li=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Ni=Object.defineProperty,Bi=Object.getOwnPropertyDescriptor,Di=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Bi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ni(e,r,i),i};let Ui=class extends mt{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=n.getWalletRouterData(),o=e?.native;if(o){const e=n.formatNativeUrl(o,t,r);n.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=l.state,e=n.getWalletRouterData();Ko.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isMobile:o,isWeb:i}=Ko.getCachedRouterWalletPlatforms();return V`<wcm-modal-header title="${t}" .onAction="${Ko.handleUriCopy}" .actionIcon="${Mo.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${Te(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Connection can continue loading if ${t} is not installed on your device`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isWeb="${i}" .isRetry="${!0}"><wcm-button .onClick="${this.openDesktopApp.bind(this)}" .iconRight="${Mo.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};Ui.styles=[go.globalCss,Li],Di([ft()],Ui.prototype,"isError",2),Ui=Di([pt("wcm-desktop-connecting-view")],Ui);const Wi=p`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 ji=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor;let zi=class extends mt{onInstall(t){t&&n.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:o}=n.getWalletRouterData();return V`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${Te(r)}" label="Not Detected" .isStale="${!0}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}</wcm-text><wcm-button .onClick="${()=>this.onInstall(o)}" .iconLeft="${Mo.ARROW_DOWN_ICON}">Download</wcm-button></wcm-info-footer>`}};zi.styles=[go.globalCss,Wi],zi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Hi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ji(e,r,i),i})([pt("wcm-install-wallet-view")],zi);const Zi=p`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var Fi=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,qi=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Vi(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fi(e,r,i),i};let Ki=class extends mt{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:o}=n.getWalletRouterData(),i=r?.native,a=r?.universal;if(i&&!e){const e=n.formatNativeUrl(i,t,o);n.openHref(e,"_self")}else if(a){const e=n.formatUniversalUrl(a,t,o);n.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=l.state,r=n.getWalletRouterData();Ko.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&n.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:o,mobile:i}=n.getWalletRouterData(),{isWeb:a}=Ko.getCachedRouterWalletPlatforms(),l=o?.ios,s=i?.universal;return V`<wcm-modal-header title="${t}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${Te(r)}" label="Tap 'Open' to continue…" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer class="wcm-note"><wcm-platform-selection .isWeb="${a}" .isRetry="${!0}"><wcm-button .onClick="${()=>this.openMobileApp(!1)}" .iconRight="${Mo.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection>${s?V`<wcm-text color="secondary" variant="small-thin">Still doesn't work? <span tabindex="0" @click="${()=>this.openMobileApp(!0)}">Try this alternate link</span></wcm-text>`:null}</wcm-info-footer><wcm-info-footer class="wcm-app-store"><div><wcm-wallet-image walletId="${e}" imageId="${Te(r)}"></wcm-wallet-image><wcm-text>${`Get ${t}`}</wcm-text></div><wcm-button .iconRight="${Mo.ARROW_RIGHT_ICON}" .onClick="${()=>this.onGoToAppStore(l)}" variant="ghost">App Store</wcm-button></wcm-info-footer>`}};Ki.styles=[go.globalCss,Zi],qi([ft()],Ki.prototype,"isError",2),Ki=qi([pt("wcm-mobile-connecting-view")],Ki);const Yi=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Qi=Object.defineProperty,Ji=Object.getOwnPropertyDescriptor;let Gi=class extends mt{render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isDesktop:o,isWeb:i}=Ko.getCachedRouterWalletPlatforms();return V`<wcm-modal-header title="${t}" .onAction="${Ko.handleUriCopy}" .actionIcon="${Mo.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr walletId="${e}" imageId="${Te(r)}"></wcm-walletconnect-qr></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`Scan this QR Code with your phone's camera or inside ${t} app`}</wcm-text><wcm-platform-selection .isDesktop="${o}" .isWeb="${i}"></wcm-platform-selection></wcm-info-footer>`}};Gi.styles=[go.globalCss,Yi],Gi=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ji(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Qi(e,r,i),i})([pt("wcm-mobile-qr-connecting-view")],Gi);var Xi=Object.defineProperty,ta=Object.getOwnPropertyDescriptor;let ea=class extends mt{render(){return V`<wcm-modal-header title="Scan the code" .onAction="${Ko.handleUriCopy}" .actionIcon="${Mo.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`}};ea.styles=[go.globalCss],ea=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?ta(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xi(e,r,i),i})([pt("wcm-qrcode-view")],ea);const ra=p`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var oa=Object.defineProperty,na=Object.getOwnPropertyDescriptor,ia=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?na(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&oa(e,r,i),i};let aa=class extends mt{constructor(){super(...arguments),this.loading=!o.state.wallets.listings.length,this.firstFetch=!o.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Ko.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,o.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),o.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Ko.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=o.state,{listings:r,total:n}=this.search?e:t;return n<=40||r.length>=n}async fetchWallets(){var t;const{wallets:e,search:r}=o.state,{listings:a,total:s,page:c}=this.search?r:e;if(!this.endReached&&(this.firstFetch||s>40&&a.length<s))try{this.loading=!0;const e=null==(t=l.state.chains)?void 0:t.join(","),{listings:r}=await o.getWallets({page:this.firstFetch?1:c+1,entries:40,search:this.search,version:2,chains:e}),i=r.map((t=>Ko.getWalletIcon(t)));await Promise.all([...i.map((async t=>Ko.preloadImage(t))),n.wait(300)]),this.endReached=this.isLastPage()}catch(t){console.error(t),i.openToast(Ko.getErrorMessage(t),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){n.isAndroid()?Ko.handleMobileLinking(t):Ko.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=o.state,{listings:r}=this.search?e:t,n=this.loading&&!r.length,i=this.search.length>=3;let a=ti.manualWalletsTemplate(),l=ti.recomendedWalletsTemplate(!0);i&&(a=a.filter((({values:t})=>Ko.caseSafeIncludes(t[0],this.search))),l=l.filter((({values:t})=>Ko.caseSafeIncludes(t[0],this.search))));const s=!this.loading&&!r.length&&!l.length,c={"wcm-loading":n,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return V`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${xt(c)}"><div class="wcm-grid">${n?null:a} ${n?null:l} ${n?null:r.map((t=>V`${t?V`<wcm-wallet-button imageId="${t.image_id}" name="${t.name}" walletId="${t.id}" .onClick="${()=>this.onConnect(t)}"></wcm-wallet-button>`:null}`))}</div><div class="wcm-placeholder-block">${s?V`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>`:null} ${!s&&this.loading?V`<wcm-spinner></wcm-spinner>`:null}</div></wcm-modal-content>`}};aa.styles=[go.globalCss,ra],ia([ft()],aa.prototype,"loading",2),ia([ft()],aa.prototype,"firstFetch",2),ia([ft()],aa.prototype,"search",2),ia([ft()],aa.prototype,"endReached",2),aa=ia([pt("wcm-wallet-explorer-view")],aa);const la=p`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var sa=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,da=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ca(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sa(e,r,i),i};let ha=class extends mt{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=n.getWalletRouterData(),o=e?.universal;if(o){const e=n.formatUniversalUrl(o,t,r);n.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=l.state,e=n.getWalletRouterData();Ko.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=n.getWalletRouterData(),{isMobile:o,isDesktop:i}=Ko.getCachedRouterWalletPlatforms(),a=n.isMobile();return V`<wcm-modal-header title="${t}" .onAction="${Ko.handleUriCopy}" .actionIcon="${Mo.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-connector-waiting walletId="${e}" imageId="${Te(r)}" label="${`Continue in ${t}...`}" .isError="${this.isError}"></wcm-connector-waiting></wcm-modal-content><wcm-info-footer><wcm-text color="secondary" variant="small-thin">${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}</wcm-text><wcm-platform-selection .isMobile="${o}" .isDesktop="${!a&&i}" .isRetry="${!0}"><wcm-button .onClick="${this.openWebWallet.bind(this)}" .iconRight="${Mo.RETRY_ICON}">Retry</wcm-button></wcm-platform-selection></wcm-info-footer>`}};ha.styles=[go.globalCss,la],da([ft()],ha.prototype,"isError",2),ha=da([pt("wcm-web-connecting-view")],ha);export{fi as WcmModal,mn as WcmQrCode};
|
package/dist/index-3e230de4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e,K as t}from"./hash-a9ebd52a.js";var r={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,s){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||e,s),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,s=new Array(i);o<i;o++)s[o]=n[o].fn;return s},a.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},a.prototype.emit=function(e,t,n,o,i,s){var a=r?r+e:e;if(!this._events[a])return!1;var c,u,l=this._events[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,n),!0;case 4:return l.fn.call(l.context,t,n,o),!0;case 5:return l.fn.call(l.context,t,n,o,i),!0;case 6:return l.fn.call(l.context,t,n,o,i,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,n);break;case 4:l[u].fn.call(l[u].context,t,n,o);break;default:if(!c)for(h=1,c=new Array(f-1);h<f;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||s(this,i);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||o&&!a[c].once||n&&a[c].context!==n)&&u.push(a[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a}(r);var n=r.exports;const o="function"==typeof atob,i="function"==typeof btoa,s="function"==typeof Buffer,a="function"==typeof TextDecoder?new TextDecoder:void 0,c="function"==typeof TextEncoder?new TextEncoder:void 0,u=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),l=(e=>{let t={};return u.forEach(((e,r)=>t[e]=r)),t})(),f=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),d=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),y=i?e=>btoa(e):s?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,o,i="";const s=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=u[t>>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}return s?i.slice(0,s-3)+"===".substring(s):i},g=s?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(h.apply(null,e.subarray(r,r+4096)));return y(t.join(""))},w=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?h(192|t>>>6)+h(128|63&t):h(224|t>>>12&15)+h(128|t>>>6&63)+h(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return h(240|t>>>18&7)+h(128|t>>>12&63)+h(128|t>>>6&63)+h(128|63&t)},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=s?e=>Buffer.from(e,"utf8").toString("base64"):c?e=>g(c.encode(e)):e=>y((e=>e.replace(m,w))(e)),_=e=>((e,t=!1)=>t?(e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")))(v(e)):v(e))(e,!0),b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,A=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return h(55296+(t>>>10))+h(56320+(1023&t));case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=o?e=>atob(d(e)):s?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!f.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let i=0;i<e.length;)t=l[e.charAt(i++)]<<18|l[e.charAt(i++)]<<12|(r=l[e.charAt(i++)])<<6|(n=l[e.charAt(i++)]),o+=64===r?h(t>>16&255):64===n?h(t>>16&255,t>>8&255):h(t>>16&255,t>>8&255,255&t);return o},E=s?e=>p(Buffer.from(e,"base64")):e=>p(x(e).split("").map((e=>e.charCodeAt(0)))),C=s?e=>Buffer.from(e,"base64").toString("utf8"):a?e=>a.decode(E(e)):e=>x(e).replace(b,A),O=e=>C(d(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))));var R="INTERNAL_ERROR",S="SERVER_ERROR",N=[-32700,-32600,-32601,-32602,-32603],D={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[R]:{code:-32603,message:"Internal error"},[S]:{code:-32e3,message:"Server error"}},T=S;function L(e){return Object.keys(D).includes(e)?D[e]:D[T]}function U(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}function k(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}function I(){return((e,t)=>{for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t})()}function B(e,t,r){return{id:r||k(),jsonrpc:"2.0",method:e,params:t||[]}}function P(e,t,r){return{id:e,jsonrpc:"2.0",error:K(t,r)}}function K(e,t){return typeof e>"u"?L(R):("string"==typeof e&&(e={...L(S),message:e}),typeof t<"u"&&(e.data=t),function(e){return N.includes(e)}(e.code)&&(e=function(e){return Object.values(D).find((t=>t.code===e))||D[T]}(e.code)),e)}function F(e){return"result"in e}function M(e,t){let r=function(e){let t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return!(typeof r>"u")&&new RegExp(t).test(r)}function $(e){return M(e,"^https?:")}var j={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},z=["eth_requestAccounts","eth_accounts","eth_chainId","eth_signTransaction","eth_sendTransaction","eth_sign","personal_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_watchAsset"];function J(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch{return e}}function Z(e){return"string"==typeof e?e:JSON.stringify(e)}function V(e,t){let r,n=function(e,t){let r,n=j[e];return"string"==typeof n&&(r=`https://${n}.infura.io/v3/${t}`),r}(e,t.infuraId);return t.custom&&t.custom[e]?r=t.custom[e]:n&&(r=n),r}function q(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}var W="hex",G="utf8";function X(e){return e.replace(/^0x/,"")}function Q(e){return Y(Buffer.from(X(e),W))}function H(e,t=!1){return ee(te(e),t)}function Y(e){return new Uint8Array(e)}function ee(e,t=!1){let r=e.toString(W);return t?function(e){return e.startsWith("0x")?e:`0x${e}`}(r):r}function te(e){return function(e){return ArrayBuffer.isView(e)?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)}(e)}function re(...e){let t=[];return e.forEach((e=>t=t.concat(Array.from(e)))),new Uint8Array([...t])}function ne(e){return function(e){return e.toString(G)}(te(e))}function oe(e,t=!1){return ee(function(e){return Buffer.from(e,G)}(e),t)}function ie(e){return Q(e).buffer}function se(e,t){return H(new Uint8Array(e),!t)}function ae(e){return te(new Uint8Array(e))}function ce(e){let t="0x0";return"number"==typeof e&&(t=`0x${e.toString(16)}`),"string"==typeof e&&(t=e.startsWith("0x")?e:"0x0"),t}var ue={16:10,24:12,32:14},le=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],fe=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],he=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],pe=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],de=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],ye=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],ge=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],we=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],me=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],ve=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_e=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],be=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],Ae=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],xe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],Ee=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Ce(e){return parseInt(`${e}`)===e}function Oe(e){if(!Ce(e.length))return!1;for(let t=0;t<e.length;t++)if(!Ce(e[t])||e[t]<0||e[t]>255)return!1;return!0}function Re(e){return new Uint8Array(e)}function Se(e){let t=[];for(let r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}function Ne(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!Oe(e))throw new Error("Array contains invalid value");return new Uint8Array(e)}if(Ce(e.length)&&Oe(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function De(e,t,r,n,o){(null!=n||null!=o)&&(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var Te=class{_aes;_lastCipherblock;constructor(e,t){if(t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=new Uint8Array(16);this._lastCipherblock=Ne(t,!0),this._aes=new class{key;_Ke;_Kd;constructor(e){this.key=Ne(e,!0),this._prepare()}_prepare(){let e=ue[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(let t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);let t,r=4*(e+1),n=this.key.length/4,o=Se(this.key);for(let r=0;r<n;r++)t=r>>2,this._Ke[t][r%4]=o[r],this._Kd[e-t][r%4]=o[r];let i,s=0,a=n;for(;a<r;){if(i=o[n-1],o[0]^=fe[i>>16&255]<<24^fe[i>>8&255]<<16^fe[255&i]<<8^fe[i>>24&255]^le[s]<<24,s+=1,8!=n)for(let e=1;e<n;e++)o[e]^=o[e-1];else{for(let e=1;e<n/2;e++)o[e]^=o[e-1];i=o[n/2-1],o[n/2]^=fe[255&i]^fe[i>>8&255]<<8^fe[i>>16&255]<<16^fe[i>>24&255]<<24;for(let e=n/2+1;e<n;e++)o[e]^=o[e-1]}let t,c,u=0;for(;u<n&&a<r;)t=a>>2,c=a%4,this._Ke[t][c]=o[u],this._Kd[e-t][c]=o[u++],a++}for(let t=1;t<e;t++)for(let e=0;e<4;e++)i=this._Kd[t][e],this._Kd[t][e]=be[i>>24&255]^Ae[i>>16&255]^xe[i>>8&255]^Ee[255&i]}encrypt(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");let t=this._Ke.length-1,r=[0,0,0,0],n=Se(e);for(let e=0;e<4;e++)n[e]^=this._Ke[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=pe[n[t]>>24&255]^de[n[(t+1)%4]>>16&255]^ye[n[(t+2)%4]>>8&255]^ge[255&n[(t+3)%4]]^this._Ke[e][t];n=r.slice()}let o,i=Re(16);for(let e=0;e<4;e++)o=this._Ke[t][e],i[4*e]=255&(fe[n[e]>>24&255]^o>>24),i[4*e+1]=255&(fe[n[(e+1)%4]>>16&255]^o>>16),i[4*e+2]=255&(fe[n[(e+2)%4]>>8&255]^o>>8),i[4*e+3]=255&(fe[255&n[(e+3)%4]]^o);return i}decrypt(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");let t=this._Kd.length-1,r=[0,0,0,0],n=Se(e);for(let e=0;e<4;e++)n[e]^=this._Kd[0][e];for(let e=1;e<t;e++){for(let t=0;t<4;t++)r[t]=we[n[t]>>24&255]^me[n[(t+3)%4]>>16&255]^ve[n[(t+2)%4]>>8&255]^_e[255&n[(t+1)%4]]^this._Kd[e][t];n=r.slice()}let o,i=Re(16);for(let e=0;e<4;e++)o=this._Kd[t][e],i[4*e]=255&(he[n[e]>>24&255]^o>>24),i[4*e+1]=255&(he[n[(e+3)%4]>>16&255]^o>>16),i[4*e+2]=255&(he[n[(e+2)%4]>>8&255]^o>>8),i[4*e+3]=255&(he[255&n[(e+1)%4]]^o);return i}}(e)}encrypt(e){if((e=Ne(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");let t=Re(e.length),r=Re(16);for(let n=0;n<e.length;n+=16){De(e,r,0,n,n+16);for(let e=0;e<16;e++)r[e]^=this._lastCipherblock[e];this._lastCipherblock=this._aes.encrypt(r),De(this._lastCipherblock,t,n)}return t}decrypt(e){if((e=Ne(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");let t=Re(e.length),r=Re(16);for(let n=0;n<e.length;n+=16){De(e,r,0,n,n+16),r=this._aes.decrypt(r);for(let e=0;e<16;e++)t[n+e]=r[e]^this._lastCipherblock[e];De(e,this._lastCipherblock,0,n,n+16)}return t}},Le=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],Ue={pad(e){let t=Le[e.byteLength%16||0],r=new Uint8Array(e.byteLength+t.length);return r.set(e),r.set(t,e.byteLength),r},unpad:e=>e.subarray(0,e.byteLength-e[e.byteLength-1])},ke="sha256";function Ie(r,n){return Q(e.hmac(t[ke],r).update(n).digest("hex"))}function Be(e){let t=function(e){for(var t=new Uint8Array(e),r=0;r<e;++r)t[r]=Math.floor(256*Math.random());return te(t)}(e);return Y(t)}function Pe(e){return function(e){return Y(e).buffer}(te(Be((e||256)/8)))}function Ke(e,t,r){let n=Y(ae(t)),o=Y(ae(r||Pe(128))),i=H(o,!1),s=function(e){return Y(Buffer.from(e,G))}(JSON.stringify(e)),a=function(e,t,r){let n=new Te(t,e),o=Ue.pad(r),i=n.encrypt(o);return new Uint8Array(i)}(o,n,s);return{data:H(a,!1),hmac:H(Ie(n,re(a,o)),!1),iv:i}}function Fe(e,t){let r=Y(ae(t));if(!r)throw new Error("Missing key: required for decryption");if(!function(e,t){let r=Q(e.data),n=Q(e.iv),o=H(Q(e.hmac),!1),i=H(Ie(t,re(r,n)),!1);return X(o)===X(i)}(e,r))return null;let n,o=Q(e.data),i=function(e,t,r){let n=new Te(t,e).decrypt(r),o=new Uint8Array(n);return Ue.unpad(o)}(Q(e.iv),r,o),s=ne(i);try{n=JSON.parse(s)}catch{return null}return n}function Me(e){let t=null;try{let r=window.localStorage.getItem(e);r&&(t=JSON.parse(r))}catch{t=null}return t}function $e(e){try{window.localStorage.removeItem(e)}catch{}}function je(e,t){try{window.localStorage.setItem(e,JSON.stringify(t))}catch{}}var ze=class{events=new n;on=(e,t)=>this.events.on(e,t);once=(e,t)=>this.events.once(e,t);off=(e,t)=>this.events.off(e,t);removeListener=(e,t)=>this.events.removeListener(e,t);removeAllListeners=()=>this.events.removeAllListeners()},Je={error:function(...e){console.error("[ERROR]",...e)},warn:function(...e){console.warn("[WARN]",...e)},info:function(...e){console.info("[INFO]",...e)},debug:function(...e){console.log("[DEBUG]",...e)}},Ze=typeof window<"u";function Ve(...e){let t=document.getElementsByTagName("meta");for(let r=0;r<t.length;r++){let n=t[r],o=["itemprop","property","name"].map((e=>n.getAttribute(e))).filter((t=>!!t&&e.includes(t)));if(o.length&&o){let e=n.getAttribute("content");if(e)return e}}return""}function qe(){if(!Ze)return;let e=function(){let e=Ve("name","og:site_name","og:title","twitter:title");return e||(e=document.title),e}(),t=Ve("description","og:description","twitter:description","keywords"),r=location.origin,n=function(){let e=document.getElementsByTagName("link"),t=[];for(let r=0;r<e.length;r++){let n=e[r],o=n.getAttribute("rel");if(o&&o.toLowerCase().indexOf("icon")>-1){let e=n.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let r=location.protocol+"//"+location.host;if(0===e.indexOf("/"))r+=e;else{let t=location.pathname.split("/");t.pop(),r+=t.join("/")+"/"+e}t.push(r)}else if(0===e.indexOf("//")){let r=location.protocol+e;t.push(r)}else t.push(e)}}return t}();return{description:t,url:r,icons:n,name:e}}var We=class extends Error{code;constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,new.target.prototype)}toString(){return`${this.message} (${this.code})`}},Ge={CLOSE_MODAL:{code:100001,message:"[binance-w3w] User closed modal"},REJECT_SESSION:{code:100002,message:"[binance-w3w] User rejected connection"},PROVIDER_NOT_READY:{code:100003,message:"[binance-w3w] Provider is not ready"},CONNECTING:{code:100004,message:"[binance-w3w] Already processing session request. Please wait"},CONNECTED:{code:100005,message:"[binance-w3w] Already connected"}},Xe={REJECT_ERR:{code:200001,message:"[binance-w3w] User rejected the operation"},METHOD_NOT_SUPPORT:{code:200002,message:"[binance-w3w] Does not support calling method"},MISSING_RESPONSE:{code:200003,message:"[binance-w3w] Missing JSON RPC response"},INVALID_PARAM:{code:200004,message:"[binance-w3w] Invalid request param"}},Qe={INTERNAL_ERR:{code:300001,message:"[binance-w3w] Internal error"}},He=()=>!!(typeof window.navigator>"u"?"":navigator.userAgent).match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i),Ye=()=>!!navigator.userAgent.match(/Android/i),et=(e,t)=>{let r="appId=xoqXxUSMRccLCrZNRebmzj&startPagePath=L3BhZ2VzL2Rhc2hib2FyZC1uZXcvaW5kZXg=";if(t){r=`${r}&startPageQuery=${_(`wc=${encodeURIComponent(t)}&isDeepLink=true&id=${+new Date}`)}`}let n="//app.binance.com";return e?`bnc:${n}/mp/app?${r}`:`https:${n}/?_dp=${_(`/mp/app?${r}`)}`},tt=e=>{let t=He(),r=Ye(),n=et(r,e);if(!t)return;let o=document.createElement("a");o.href=n,document.body.appendChild(o),o.click(),document.body.removeChild(o)},rt=()=>{try{return!0===window?.ethereum?.isBinance}catch{return!1}};export{Pe as $,tt as A,oe as C,ie as D,Ke as G,se as J,V as O,ce as P,Me as Q,q as S,J as U,Fe as W,Ye as X,$e as Y,et as Z,z as _,n as a,Je as b,U as c,O as d,ze as e,We as f,Ge as g,I as h,F as i,Xe as l,P as n,Qe as p,B as r,k as s,qe as t,$ as u,Z as v,rt as w,je as x,He as z};
|