@openlv/modal 0.0.1-beta.11 → 0.0.1-beta.12
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/hooks/useSettings.d.ts +1 -28
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2399 -1376
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/package.json +5 -5
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var Lt=Object.defineProperty;var jt=(e,t,n)=>t in e?Lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>jt(e,typeof t!="symbol"?t+"":t,n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("solid-js/web"),g=require("solid-js"),Vt=require("qrcode-generator");function Ft(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const zt=Ft(Vt),Dt=1,It=e=>{const t=new URLSearchParams;return t.set("h",e.h),t.set("k",e.k),e.p&&t.set("p",e.p),e.s&&t.set("s",e.s),`openlv://${e.sessionId}@${Dt}?${t.toString()}`};function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Be={exports:{}},et;function qt(){return et||(et=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(c,d,u){this.fn=c,this.context=d,this.once=u||!1}function i(c,d,u,v,f){if(typeof u!="function")throw new TypeError("The listener must be a function");var p=new a(u,v||c,f),m=n?n+d:d;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],p]:c._events[m].push(p):(c._events[m]=p,c._eventsCount++),c}function l(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var d=[],u,v;if(this._eventsCount===0)return d;for(v in u=this._events)t.call(u,v)&&d.push(n?v.slice(1):v);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},s.prototype.listeners=function(d){var u=n?n+d:d,v=this._events[u];if(!v)return[];if(v.fn)return[v.fn];for(var f=0,p=v.length,m=new Array(p);f<p;f++)m[f]=v[f].fn;return m},s.prototype.listenerCount=function(d){var u=n?n+d:d,v=this._events[u];return v?v.fn?1:v.length:0},s.prototype.emit=function(d,u,v,f,p,m){var k=n?n+d:d;if(!this._events[k])return!1;var h=this._events[k],R=arguments.length,B,b;if(h.fn){switch(h.once&&this.removeListener(d,h.fn,void 0,!0),R){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,u),!0;case 3:return h.fn.call(h.context,u,v),!0;case 4:return h.fn.call(h.context,u,v,f),!0;case 5:return h.fn.call(h.context,u,v,f,p),!0;case 6:return h.fn.call(h.context,u,v,f,p,m),!0}for(b=1,B=new Array(R-1);b<R;b++)B[b-1]=arguments[b];h.fn.apply(h.context,B)}else{var de=h.length,E;for(b=0;b<de;b++)switch(h[b].once&&this.removeListener(d,h[b].fn,void 0,!0),R){case 1:h[b].fn.call(h[b].context);break;case 2:h[b].fn.call(h[b].context,u);break;case 3:h[b].fn.call(h[b].context,u,v);break;case 4:h[b].fn.call(h[b].context,u,v,f);break;default:if(!B)for(E=1,B=new Array(R-1);E<R;E++)B[E-1]=arguments[E];h[b].fn.apply(h[b].context,B)}}return!0},s.prototype.on=function(d,u,v){return i(this,d,u,v,!1)},s.prototype.once=function(d,u,v){return i(this,d,u,v,!0)},s.prototype.removeListener=function(d,u,v,f){var p=n?n+d:d;if(!this._events[p])return this;if(!u)return l(this,p),this;var m=this._events[p];if(m.fn)m.fn===u&&(!f||m.once)&&(!v||m.context===v)&&l(this,p);else{for(var k=0,h=[],R=m.length;k<R;k++)(m[k].fn!==u||f&&!m[k].once||v&&m[k].context!==v)&&h.push(m[k]);h.length?this._events[p]=h.length===1?h[0]:h:l(this,p)}return this},s.prototype.removeAllListeners=function(d){var u;return d?(u=n?n+d:d,this._events[u]&&l(this,u)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Be)),Be.exports}qt();const j=Symbol.for("@ts-pattern/matcher"),mt=Symbol.for("@ts-pattern/isVariadic"),_e="@ts-pattern/anonymous-select-key",Le=e=>!!(e&&typeof e=="object"),Ae=e=>e&&!!e[j],M=(e,t,n)=>{if(Ae(e)){const r=e[j](),{matched:a,selections:i}=r.match(t);return a&&i&&Object.keys(i).forEach(l=>n(l,i[l])),a}if(Le(e)){if(!Le(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let r=[],a=[],i=[];for(const l of e.keys()){const s=e[l];Ae(s)&&s[mt]?i.push(s):i.length?a.push(s):r.push(s)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<r.length+a.length)return!1;const l=t.slice(0,r.length),s=a.length===0?[]:t.slice(-a.length),c=t.slice(r.length,a.length===0?1/0:-a.length);return r.every((d,u)=>M(d,l[u],n))&&a.every((d,u)=>M(d,s[u],n))&&(i.length===0||M(i[0],c,n))}return e.length===t.length&&e.every((l,s)=>M(l,t[s],n))}return Reflect.ownKeys(e).every(r=>{const a=e[r];return(r in t||Ae(i=a)&&i[j]().matcherType==="optional")&&M(a,t[r],n);var i})}return Object.is(t,e)},L=e=>{var t,n,r;return Le(e)?Ae(e)?(t=(n=(r=e[j]()).getSelectionKeys)==null?void 0:n.call(r))!=null?t:[]:Array.isArray(e)?pe(e,L):pe(Object.values(e),L):[]},pe=(e,t)=>e.reduce((n,r)=>n.concat(t(r)),[]);function Kt(...e){if(e.length===1){const[t]=e;return n=>M(t,n,()=>{})}if(e.length===2){const[t,n]=e;return M(t,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function P(e){return Object.assign(e,{optional:()=>Ue(e),and:t=>_(e,t),or:t=>bt(e,t),select:t=>t===void 0?he(e):he(t,e)})}function je(e){return Object.assign((t=>Object.assign(t,{[Symbol.iterator](){let n=0;const r=[{value:Object.assign(t,{[mt]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var a;return(a=r[n++])!=null?a:r.at(-1)}}}}))(e),{optional:()=>je(Ue(e)),select:t=>je(t===void 0?he(e):he(t,e))})}function Ue(e){return P({[j]:()=>({match:t=>{let n={};const r=(a,i)=>{n[a]=i};return t===void 0?(L(e).forEach(a=>r(a,void 0)),{matched:!0,selections:n}):{matched:M(e,t,r),selections:n}},getSelectionKeys:()=>L(e),matcherType:"optional"})})}const Wt=(e,t)=>{for(const n of e)if(!t(n))return!1;return!0},Ht=(e,t)=>{for(const[n,r]of e.entries())if(!t(r,n))return!1;return!0},Gt=(e,t)=>{const n=Reflect.ownKeys(e);for(const r of n)if(!t(r,e[r]))return!1;return!0};function _(...e){return P({[j]:()=>({match:t=>{let n={};const r=(a,i)=>{n[a]=i};return{matched:e.every(a=>M(a,t,r)),selections:n}},getSelectionKeys:()=>pe(e,L),matcherType:"and"})})}function bt(...e){return P({[j]:()=>({match:t=>{let n={};const r=(a,i)=>{n[a]=i};return pe(e,L).forEach(a=>r(a,void 0)),{matched:e.some(a=>M(a,t,r)),selections:n}},getSelectionKeys:()=>pe(e,L),matcherType:"or"})})}function y(e){return{[j]:()=>({match:t=>({matched:!!e(t)})})}}function he(...e){const t=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return P({[j]:()=>({match:r=>{let a={[t??_e]:r};return{matched:n===void 0||M(n,r,(i,l)=>{a[i]=l}),selections:a}},getSelectionKeys:()=>[t??_e].concat(n===void 0?[]:L(n))})})}function yt(e){return!0}function W(e){return typeof e=="number"}function Q(e){return typeof e=="string"}function J(e){return typeof e=="bigint"}const wt=P(y(yt)),Qt=P(y(yt)),Jt=wt,X=e=>Object.assign(P(e),{startsWith:t=>{return X(_(e,(n=t,y(r=>Q(r)&&r.startsWith(n)))));var n},endsWith:t=>{return X(_(e,(n=t,y(r=>Q(r)&&r.endsWith(n)))));var n},minLength:t=>X(_(e,(n=>y(r=>Q(r)&&r.length>=n))(t))),length:t=>X(_(e,(n=>y(r=>Q(r)&&r.length===n))(t))),maxLength:t=>X(_(e,(n=>y(r=>Q(r)&&r.length<=n))(t))),includes:t=>{return X(_(e,(n=t,y(r=>Q(r)&&r.includes(n)))));var n},regex:t=>{return X(_(e,(n=t,y(r=>Q(r)&&!!r.match(n)))));var n}}),tt=X(y(Q)),H=e=>Object.assign(P(e),{between:(t,n)=>H(_(e,((r,a)=>y(i=>W(i)&&r<=i&&a>=i))(t,n))),lt:t=>H(_(e,(n=>y(r=>W(r)&&r<n))(t))),gt:t=>H(_(e,(n=>y(r=>W(r)&&r>n))(t))),lte:t=>H(_(e,(n=>y(r=>W(r)&&r<=n))(t))),gte:t=>H(_(e,(n=>y(r=>W(r)&&r>=n))(t))),int:()=>H(_(e,y(t=>W(t)&&Number.isInteger(t)))),finite:()=>H(_(e,y(t=>W(t)&&Number.isFinite(t)))),positive:()=>H(_(e,y(t=>W(t)&&t>0))),negative:()=>H(_(e,y(t=>W(t)&&t<0)))}),Xt=H(y(W)),Z=e=>Object.assign(P(e),{between:(t,n)=>Z(_(e,((r,a)=>y(i=>J(i)&&r<=i&&a>=i))(t,n))),lt:t=>Z(_(e,(n=>y(r=>J(r)&&r<n))(t))),gt:t=>Z(_(e,(n=>y(r=>J(r)&&r>n))(t))),lte:t=>Z(_(e,(n=>y(r=>J(r)&&r<=n))(t))),gte:t=>Z(_(e,(n=>y(r=>J(r)&&r>=n))(t))),positive:()=>Z(_(e,y(t=>J(t)&&t>0))),negative:()=>Z(_(e,y(t=>J(t)&&t<0)))}),Zt=Z(y(J)),Yt=P(y(function(e){return typeof e=="boolean"})),er=P(y(function(e){return typeof e=="symbol"})),tr=P(y(function(e){return e==null})),rr=P(y(function(e){return e!=null}));var nr={__proto__:null,matcher:j,optional:Ue,array:function(...e){return je({[j]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const n=e[0];let r={};if(t.length===0)return L(n).forEach(i=>{r[i]=[]}),{matched:!0,selections:r};const a=(i,l)=>{r[i]=(r[i]||[]).concat([l])};return{matched:t.every(i=>M(n,i,a)),selections:r}},getSelectionKeys:()=>e.length===0?[]:L(e[0])})})},set:function(...e){return P({[j]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};const r=(i,l)=>{n[i]=(n[i]||[]).concat([l])},a=e[0];return{matched:Wt(t,i=>M(a,i,r)),selections:n}},getSelectionKeys:()=>e.length===0?[]:L(e[0])})})},map:function(...e){return P({[j]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let n={};if(t.size===0)return{matched:!0,selections:n};const r=(s,c)=>{n[s]=(n[s]||[]).concat([c])};if(e.length===0)return{matched:!0};var a;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(a=e[0])==null?void 0:a.toString()}`);const[i,l]=e;return{matched:Ht(t,(s,c)=>{const d=M(i,c,r),u=M(l,s,r);return d&&u}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...L(e[0]),...L(e[1])]})})},record:function(...e){return P({[j]:()=>({match:t=>{if(t===null||typeof t!="object"||Array.isArray(t))return{matched:!1};var n;if(e.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(n=e[0])==null?void 0:n.toString()}`);let r={};const a=(s,c)=>{r[s]=(r[s]||[]).concat([c])},[i,l]=e.length===1?[tt,e[0]]:e;return{matched:Gt(t,(s,c)=>{const d=typeof s!="string"||Number.isNaN(Number(s))?null:Number(s),u=d!==null&&M(i,d,a),v=M(i,s,a),f=M(l,c,a);return(v||u)&&f}),selections:r}},getSelectionKeys:()=>e.length===0?[]:[...L(e[0]),...L(e[1])]})})},intersection:_,union:bt,not:function(e){return P({[j]:()=>({match:t=>({matched:!M(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:y,select:he,any:wt,unknown:Qt,_:Jt,string:tt,number:Xt,bigint:Zt,boolean:Yt,symbol:er,nullish:tr,nonNullable:rr,instanceOf:function(e){return P(y((function(t){return n=>n instanceof t})(e)))},shape:function(e){return P(y(Kt(e)))}};class or extends Error{constructor(t){let n;try{n=JSON.stringify(t)}catch{n=t}super(`Pattern matching error: no pattern matches value ${n}`),this.input=void 0,this.input=t}}const Ve={matched:!1,value:void 0};function ne(e){return new $e(e,Ve)}class $e{constructor(t,n){this.input=void 0,this.state=void 0,this.input=t,this.state=n}with(...t){if(this.state.matched)return this;const n=t[t.length-1],r=[t[0]];let a;t.length===3&&typeof t[1]=="function"?a=t[1]:t.length>2&&r.push(...t.slice(1,t.length-1));let i=!1,l={};const s=(d,u)=>{i=!0,l[d]=u},c=!r.some(d=>M(d,this.input,s))||a&&!a(this.input)?Ve:{matched:!0,value:n(i?_e in l?l[_e]:l:this.input,this.input)};return new $e(this.input,c)}when(t,n){if(this.state.matched)return this;const r=!!t(this.input);return new $e(this.input,r?{matched:!0,value:n(this.input,this.input)}:Ve)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(t=ar){return this.state.matched?this.state.value:t(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function ar(e){throw new or(e)}const Se={CREATED:"created",SIGNALING:"signaling",READY:"ready",LINKING:"linking"},q={STANDBY:"standby",CREATING:"creating",CONNECTING:"connecting",CONNECTED:"connected",ERROR:"error"};var Ee={exports:{}};var rt;function ir(){return rt||(rt=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(i=a(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var s in i)t.call(i,s)&&i[s]&&(l=a(l,s));return l}function a(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ee)),Ee.exports}var sr=ir();const Y=Ut(sr),lr=async e=>{if(typeof e=="string"){if(e==="simple")return await Promise.resolve().then(()=>require("./simple-DDht1UVo.cjs")).then(t=>t.simpleTheme);if(e==="openlv")return await Promise.resolve().then(()=>require("./openlv-SMG3Trx9.cjs")).then(t=>t.openlvTheme);throw new Error(`Unknown theme: ${e}`)}return e},Fe=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),xt=(e,t=[],n={})=>{for(const[r,a]of Object.entries(e)){const i=[...t,r];Fe(a)?xt(a,i,n):n[`--lv-${i.join("-")}`]=a}return n},cr=(e="auto",t="system")=>e==="light"||e==="dark"?e:t==="system"?globalThis.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t,kt=(e,t)=>{const n={...e};for(const r of Object.keys(t)){const a=e[r],i=t[r];n[r]=Fe(a)&&Fe(i)?kt(a,i):i}return n},dr=async(e,t="system")=>{const n=await lr(e.theme),r=cr(e.mode,t),a=n[r];if(!a)return"";const i=n.common?kt(n.common,a):a,l=xt(i);return Object.entries(l).map(([s,c])=>`${s}: ${c};`).join(`
|
|
2
|
-
`)},nt=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.min-h-32{min-height:calc(var(--spacing)*32)}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-48{width:calc(var(--spacing)*48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.flex-1{flex:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*-4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*-4)*calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\\(--lv-control-button-secondary-border\\)>:not(:last-child)){border-color:var(--lv-control-button-secondary-border)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\(--lv-control-button-primary-border\\){border-color:var(--lv-control-button-primary-border)}.border-\\(--lv-control-button-secondary-border\\){border-color:var(--lv-control-button-secondary-border)}.border-\\(--lv-control-button-secondary-border\\,var\\(--lv-control-button-secondary-background\\)\\){border-color:var(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background))}.border-\\(--lv-control-input-border\\){border-color:var(--lv-control-input-border)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-body-background\\){background-color:var(--lv-body-background)}.bg-\\(--lv-card-background\\){background-color:var(--lv-card-background)}.bg-\\(--lv-control-button-primary-background\\){background-color:var(--lv-control-button-primary-background)}.bg-\\(--lv-control-button-secondary-background\\){background-color:var(--lv-control-button-secondary-background)}.bg-\\(--lv-qr-background\\){background-color:var(--lv-qr-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\;charset\\=US-ASCII\\,\\%3Csvg\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%20width\\%3D\\%2214\\%22\\%20height\\%3D\\%2214\\%22\\%20viewBox\\%3D\\%220\\%200\\%2024\\%2024\\%22\\%20fill\\%3D\\%22none\\%22\\%20stroke\\%3D\\%22\\%23888\\%22\\%20stroke-width\\%3D\\%222\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M6\\%209l6\\%206\\%206-6\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E)}.bg-\\[length\\:14px\\]{background-size:14px}.bg-\\[right_8px_center\\]{background-position:right 8px center}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.ps-1{padding-inline-start:calc(var(--spacing)*1)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-2{padding-left:calc(var(--spacing)*2)}.text-center{text-align:center}.text-start{text-align:start}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\(--lv-control-button-primary-color\\){color:var(--lv-control-button-primary-color)}.text-\\(--lv-control-button-secondary-color\\){color:var(--lv-control-button-secondary-color)}.text-\\(--lv-qr-color\\){color:var(--lv-qr-color)}.text-\\(--lv-text-muted\\){color:var(--lv-text-muted)}.text-\\(--lv-text-primary\\){color:var(--lv-text-primary)}.text-\\(--lv-text-secondary\\){color:var(--lv-text-secondary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing)*1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing)*2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing)*2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.hover\\:bg-\\(--lv-control-button-primary-background-hover\\):hover{background-color:var(--lv-control-button-primary-background-hover)}.hover\\:bg-\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\):hover{background-color:var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))}.hover\\:bg-\\(--lv-control-button-secondary-background\\):hover{background-color:var(--lv-control-button-secondary-background)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--lv-control-button-primary-background\\):focus{--tw-ring-color:var(--lv-control-button-primary-background)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.active\\:bg-\\(--lv-control-button-primary-activeBackground\\,var\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\)\\):active{background-color:var(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)))}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\):active{background-color:var(--lv-control-button-secondary-activeBackground)}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\,var\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\)\\):active{background-color:var(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)))}.active\\:bg-\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\):active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\(--lv-control-button-primary-disabledBackground\\,var\\(--lv-control-button-primary-background\\)\\):disabled{background-color:var(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background))}.disabled\\:bg-\\(--lv-control-button-secondary-disabledBackground\\,var\\(--lv-control-button-secondary-background\\)\\):disabled{background-color:var(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background))}.disabled\\:text-\\(--lv-control-button-primary-disabledColor\\,var\\(--lv-control-button-primary-color\\)\\):disabled{color:var(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))}.disabled\\:text-\\(--lv-control-button-secondary-disabledColor\\,var\\(--lv-control-button-secondary-color\\)\\):disabled{color:var(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))}.disabled\\:text-\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\):disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:flex{display:flex}.md\\:w-3\\/5{width:60%}.md\\:items-center{align-items:center}:where(.md\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px*var(--tw-divide-x-reverse));border-inline-end-width:calc(1px*calc(1 - var(--tw-divide-x-reverse)))}:where(.md\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px*var(--tw-divide-y-reverse));border-bottom-width:calc(0px*calc(1 - var(--tw-divide-y-reverse)))}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}.ltr\\:right-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--spacing)*5)}.ltr\\:-ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--spacing)*-1)}.ltr\\:translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.ltr\\:rounded-l-none:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:0;border-bottom-left-radius:0}.rtl\\:left-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--spacing)*5)}.rtl\\:-mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--spacing)*-1)}.rtl\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rtl\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\\:rounded-r-none:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:0;border-bottom-right-radius:0}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius);font-family:var(--lv-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji")}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:1;animation:.15s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{z-index:2;animation:.2s ease-out forwards modal-transition-in}[data-openlv-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`,ot=async(e,t,n="system")=>{let r=e.querySelector("style[data-openlv-modal]");r||(r=document.createElement("style"),r.dataset.openlvModal="true",e.append(r));const a={...t,theme:t?.theme??"simple"};if(a){const i=await dr(a,n);r.textContent=`:root, :host {
|
|
1
|
+
"use strict";var qr=Object.defineProperty;var Gr=(e,t,r)=>t in e?qr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _e=(e,t,r)=>Gr(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Wr=require("qrcode-generator");function Hr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Qr=Hr(Wr),Xr=!1,Jr=(e,t)=>e===t,Ye=Symbol("solid-proxy"),gr=typeof Proxy=="function",Zr=Symbol("solid-track"),et={equals:Jr};let fr=wr;const pe=1,tt=2,hr={owned:null,cleanups:null,context:null,owner:null};var P=null;let vt=null,Yr=null,L=null,I=null,le=null,lt=0;function Je(e,t){const r=L,n=P,o=e.length===0,i=t===void 0?n:t,s=o?hr:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>H(()=>Le(s)));P=s,L=null;try{return Ue(a,!0)}finally{L=r,P=n}}function D(e,t){t=t?Object.assign({},et,t):et;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),yr(r,o));return[mr.bind(r),n]}function F(e,t,r){const n=Pt(e,t,!1,pe);ze(n)}function ee(e,t,r){fr=rn;const n=Pt(e,t,!1,pe);n.user=!0,le?le.push(n):ze(n)}function $(e,t,r){r=r?Object.assign({},et,r):et;const n=Pt(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,ze(n),mr.bind(n)}function H(e){if(L===null)return e();const t=L;L=null;try{return e()}finally{L=t}}function Ot(e){ee(()=>H(e))}function te(e){return P===null||(P.cleanups===null?P.cleanups=[e]:P.cleanups.push(e)),e}function vr(e,t){const r=Symbol("context");return{id:r,Provider:on(r),defaultValue:e}}function pr(e){let t;return P&&P.context&&(t=P.context[e.id])!==void 0?t:e.defaultValue}function br(e){const t=$(e),r=$(()=>wt(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}function mr(){if(this.sources&&this.state)if(this.state===pe)ze(this);else{const e=I;I=null,Ue(()=>nt(this),!1),I=e}if(L){const e=this.observers?this.observers.length:0;L.sources?(L.sources.push(this),L.sourceSlots.push(e)):(L.sources=[this],L.sourceSlots=[e]),this.observers?(this.observers.push(L),this.observerSlots.push(L.sources.length-1)):(this.observers=[L],this.observerSlots=[L.sources.length-1])}return this.value}function yr(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Ue(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=vt&&vt.running;s&&vt.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?I.push(i):le.push(i),i.observers&&xr(i)),s||(i.state=pe)}if(I.length>1e6)throw I=[],new Error},!1)),t}function ze(e){if(!e.fn)return;Le(e);const t=lt;en(e,e.value,t)}function en(e,t,r){let n;const o=P,i=L;L=P=e;try{n=e.fn(t)}catch(s){return e.pure&&(e.state=pe,e.owned&&e.owned.forEach(Le),e.owned=null),e.updatedAt=r+1,kr(s)}finally{L=i,P=o}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?yr(e,n):e.value=n,e.updatedAt=r)}function Pt(e,t,r,n=pe,o){const i={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:P,context:P?P.context:null,pure:r};return P===null||P!==hr&&(P.owned?P.owned.push(i):P.owned=[i]),i}function rt(e){if(e.state===0)return;if(e.state===tt)return nt(e);if(e.suspense&&H(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<lt);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===pe)ze(e);else if(e.state===tt){const n=I;I=null,Ue(()=>nt(e,t[0]),!1),I=n}}function Ue(e,t){if(I)return e();let r=!1;t||(I=[]),le?r=!0:le=[],lt++;try{const n=e();return tn(r),n}catch(n){r||(le=null),I=null,kr(n)}}function tn(e){if(I&&(wr(I),I=null),e)return;const t=le;le=null,t.length&&Ue(()=>fr(t),!1)}function wr(e){for(let t=0;t<e.length;t++)rt(e[t])}function rn(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:rt(n)}for(t=0;t<r;t++)rt(e[t])}function nt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const o=n.state;o===pe?n!==t&&(!n.updatedAt||n.updatedAt<lt)&&rt(n):o===tt&&nt(n,t)}}}function xr(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=tt,r.pure?I.push(r):le.push(r),r.observers&&xr(r))}}function Le(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){const i=o.pop(),s=r.observerSlots.pop();n<o.length&&(i.sourceSlots[s]=n,o[n]=i,r.observerSlots[n]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)Le(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)Le(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function nn(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function kr(e,t=P){throw nn(e)}function wt(e){if(typeof e=="function"&&!e.length)return wt(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=wt(e[r]);Array.isArray(n)?t.push.apply(t,n):t.push(n)}return t}return e}function on(e,t){return function(n){let o;return F(()=>o=H(()=>(P.context={...P.context,[e]:n.value},br(()=>n.children))),void 0),o}}const an=Symbol("fallback");function Kt(e){for(let t=0;t<e.length;t++)e[t]()}function sn(e,t,r={}){let n=[],o=[],i=[],s=0,a=t.length>1?[]:null;return te(()=>Kt(i)),()=>{let l=e()||[],d=l.length,u,c;return l[Zr],H(()=>{let v,b,w,p,R,S,y,z,E;if(d===0)s!==0&&(Kt(i),i=[],n=[],o=[],s=0,a&&(a=[])),r.fallback&&(n=[an],o[0]=Je(Ae=>(i[0]=Ae,r.fallback())),s=1);else if(s===0){for(o=new Array(d),c=0;c<d;c++)n[c]=l[c],o[c]=Je(h);s=d}else{for(w=new Array(d),p=new Array(d),a&&(R=new Array(d)),S=0,y=Math.min(s,d);S<y&&n[S]===l[S];S++);for(y=s-1,z=d-1;y>=S&&z>=S&&n[y]===l[z];y--,z--)w[z]=o[y],p[z]=i[y],a&&(R[z]=a[y]);for(v=new Map,b=new Array(z+1),c=z;c>=S;c--)E=l[c],u=v.get(E),b[c]=u===void 0?-1:u,v.set(E,c);for(u=S;u<=y;u++)E=n[u],c=v.get(E),c!==void 0&&c!==-1?(w[c]=o[u],p[c]=i[u],a&&(R[c]=a[u]),c=b[c],v.set(E,c)):i[u]();for(c=S;c<d;c++)c in w?(o[c]=w[c],i[c]=p[c],a&&(a[c]=R[c],a[c](c))):o[c]=Je(h);o=o.slice(0,s=d),n=l.slice(0)}return o});function h(v){if(i[c]=v,a){const[b,w]=D(c);return a[c]=w,t(l[c],b)}return t(l[c])}}}function g(e,t){return H(()=>e(t||{}))}function Qe(){return!0}const xt={get(e,t,r){return t===Ye?r:e.get(t)},has(e,t){return t===Ye?!0:e.has(t)},set:Qe,deleteProperty:Qe,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Qe,deleteProperty:Qe}},ownKeys(e){return e.keys()}};function pt(e){return(e=typeof e=="function"?e():e)?e:{}}function ln(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function G(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&Ye in a,e[s]=typeof a=="function"?(t=!0,$(a)):a}if(gr&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const l=pt(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in pt(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(pt(e[a])));return[...new Set(s)]}},xt);const r={},n=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let d=l.length-1;d>=0;d--){const u=l[d];if(u==="__proto__"||u==="constructor")continue;const c=Object.getOwnPropertyDescriptor(a,u);if(!n[u])n[u]=c.get?{enumerable:!0,configurable:!0,get:ln.bind(r[u]=[c.get.bind(a)])}:c.value!==void 0?c:void 0;else{const h=r[u];h&&(c.get?h.push(c.get.bind(a)):c.value!==void 0&&h.push(()=>c.value))}}}const o={},i=Object.keys(n);for(let s=i.length-1;s>=0;s--){const a=i[s],l=n[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function ct(e,...t){const r=t.length;if(gr&&Ye in e){const o=r>1?t.flat():t[0],i=t.map(s=>new Proxy({get(a){return s.includes(a)?e[a]:void 0},has(a){return s.includes(a)&&a in e},keys(){return s.filter(a=>a in e)}},xt));return i.push(new Proxy({get(s){return o.includes(s)?void 0:e[s]},has(s){return o.includes(s)?!1:s in e},keys(){return Object.keys(e).filter(s=>!o.includes(s))}},xt)),i}const n=[];for(let o=0;o<=r;o++)n[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=r;for(let l=0;l<t.length;l++)if(t[l].includes(o)){i=l;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?n[i][o]=s.value:Object.defineProperty(n[i],o,s)}return n}const Cr=e=>`Stale read from <${e}>.`;function ve(e){const t="fallback"in e&&{fallback:()=>e.fallback};return $(sn(()=>e.each,e.children,t||void 0))}function Se(e){const t=e.keyed,r=$(()=>e.when,void 0,void 0),n=t?r:$(r,void 0,{equals:(o,i)=>!o==!i});return $(()=>{const o=n();if(o){const i=e.children;return typeof i=="function"&&i.length>0?H(()=>i(t?o:()=>{if(!H(n))throw Cr("Show");return r()})):i}return e.fallback},void 0,void 0)}function Sr(e){const t=br(()=>e.children),r=$(()=>{const n=t(),o=Array.isArray(n)?n:[n];let i=()=>{};for(let s=0;s<o.length;s++){const a=s,l=o[s],d=i,u=$(()=>d()?void 0:l.when,void 0,void 0),c=l.keyed?u:$(u,void 0,{equals:(h,v)=>!h==!v});i=()=>d()||(c()?[a,u,l]:void 0)}return i});return $(()=>{const n=r()();if(!n)return e.fallback;const[o,i,s]=n,a=s.children;return typeof a=="function"&&a.length>0?H(()=>a(s.keyed?i():()=>{if(H(r)()?.[0]!==o)throw Cr("Match");return i()})):a},void 0,void 0)}function xe(e){return e}const cn=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],dn=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...cn]),un=new Set(["innerHTML","textContent","innerText","children"]),gn=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),fn=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function hn(e,t){const r=fn[e];return typeof r=="object"?r[t]?r.$:void 0:r}const vn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),pn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),bn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Ce=e=>$(()=>e());function mn(e,t,r){let n=r.length,o=t.length,i=n,s=0,a=0,l=t[o-1].nextSibling,d=null;for(;s<o||a<i;){if(t[s]===r[a]){s++,a++;continue}for(;t[o-1]===r[i-1];)o--,i--;if(o===s){const u=i<n?a?r[a-1].nextSibling:r[i-a]:l;for(;a<i;)e.insertBefore(r[a++],u)}else if(i===a)for(;s<o;)(!d||!d.has(t[s]))&&t[s].remove(),s++;else if(t[s]===r[i-1]&&r[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(r[a++],t[s++].nextSibling),e.insertBefore(r[--i],u),t[o]=r[i]}else{if(!d){d=new Map;let c=a;for(;c<i;)d.set(r[c],c++)}const u=d.get(t[s]);if(u!=null)if(a<u&&u<i){let c=s,h=1,v;for(;++c<o&&c<i&&!((v=d.get(t[c]))==null||v!==u+h);)h++;if(h>u-a){const b=t[s];for(;a<u;)e.insertBefore(r[a++],b)}else e.replaceChild(r[a++],t[s++])}else s++;else t[s++].remove()}}}const qt="_$DX_DELEGATE";function yn(e,t,r,n={}){let o;return Je(i=>{o=i,t===document?e():f(t,e(),t.firstChild?null:void 0,r)},n.owner),()=>{o(),t.textContent=""}}function m(e,t,r,n){let o;const i=()=>{const a=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:n?a.firstChild:a.content.firstChild},s=t?()=>H(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function be(e,t=window.document){const r=t[qt]||(t[qt]=new Set);for(let n=0,o=e.length;n<o;n++){const i=e[n];r.has(i)||(r.add(i),t.addEventListener(i,An))}}function Z(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}function wn(e,t,r,n){n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n)}function xn(e,t,r){r?e.setAttribute(t,""):e.removeAttribute(t)}function Y(e,t){t==null?e.removeAttribute("class"):e.className=t}function dt(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const o=r[0];e.addEventListener(t,r[0]=i=>o.call(e,r[1],i))}else e.addEventListener(t,r,typeof r!="function"&&r)}function kn(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(Gt(e,a,!1),delete r[a])}for(i=0,s=n.length;i<s;i++){const a=n[i],l=!!t[a];!a||a==="undefined"||r[a]===l||!l||(Gt(e,a,!0),r[a]=l)}return r}function kt(e,t,r){if(!t)return r?Z(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let o,i;for(i in r)t[i]==null&&n.removeProperty(i),delete r[i];for(i in t)o=t[i],o!==r[i]&&(n.setProperty(i,o),r[i]=o);return r}function ot(e,t={},r,n){const o={};return n||F(()=>o.children=je(e,t.children,o.children)),F(()=>typeof t.ref=="function"&&Ar(t.ref,e)),F(()=>Cn(e,t,r,!0,o,!0)),o}function Ar(e,t,r){return H(()=>e(t,r))}function f(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return je(e,t,n,r);F(o=>je(e,t(),o,r),n)}function Cn(e,t,r,n,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=Wt(e,s,null,o[s],r,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=Wt(e,s,a,o[s],r,i,t)}}function Sn(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function Gt(e,t,r){const n=t.trim().split(/\s+/);for(let o=0,i=n.length;o<i;o++)e.classList.toggle(n[o],r)}function Wt(e,t,r,n,o,i,s){let a,l,d,u,c;if(t==="style")return kt(e,r,n);if(t==="classList")return kn(e,r,n);if(r===n)return n;if(t==="ref")i||r(e);else if(t.slice(0,3)==="on:"){const h=t.slice(3);n&&e.removeEventListener(h,n,typeof n!="function"&&n),r&&e.addEventListener(h,r,typeof r!="function"&&r)}else if(t.slice(0,10)==="oncapture:"){const h=t.slice(10);n&&e.removeEventListener(h,n,!0),r&&e.addEventListener(h,r,!0)}else if(t.slice(0,2)==="on"){const h=t.slice(2).toLowerCase(),v=vn.has(h);if(!v&&n){const b=Array.isArray(n)?n[0]:n;e.removeEventListener(h,b)}(v||r)&&(dt(e,h,r,v),v&&be([h]))}else if(t.slice(0,5)==="attr:")Z(e,t.slice(5),r);else if(t.slice(0,5)==="bool:")xn(e,t.slice(5),r);else if((c=t.slice(0,5)==="prop:")||(d=un.has(t))||!o&&((u=hn(t,e.tagName))||(l=dn.has(t)))||(a=e.nodeName.includes("-")||"is"in s))c&&(t=t.slice(5),l=!0),t==="class"||t==="className"?Y(e,r):a&&!l&&!d?e[Sn(t)]=r:e[u||t]=r;else{const h=o&&t.indexOf(":")>-1&&bn[t.split(":")[0]];h?wn(e,h,t,r):Z(e,gn[t]||t,r)}return r}function An(e){let t=e.target;const r=`$$${e.type}`,n=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{const l=t[r];if(l&&!t.disabled){const d=t[`${r}Data`];if(d!==void 0?l.call(t,d,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();i(l[0]);for(let d=0;d<l.length-2&&(t=l[d],!!s());d++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(n)}function je(e,t,r,n,o){for(;typeof r=="function";)r=r();if(t===r)return r;const i=typeof t,s=n!==void 0;if(e=s&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===r))return r;if(s){let a=r[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),r=Ne(e,r,n,a)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean")r=Ne(e,r,n);else{if(i==="function")return F(()=>{let a=t();for(;typeof a=="function";)a=a();r=je(e,a,r,n)}),()=>r;if(Array.isArray(t)){const a=[],l=r&&Array.isArray(r);if(Ct(a,t,r,o))return F(()=>r=je(e,a,r,n,!0)),()=>r;if(a.length===0){if(r=Ne(e,r,n),s)return r}else l?r.length===0?Ht(e,a,n):mn(e,r,a):(r&&Ne(e),Ht(e,a));r=a}else if(t.nodeType){if(Array.isArray(r)){if(s)return r=Ne(e,r,n,t);Ne(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function Ct(e,t,r,n){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=r&&r[e.length],d;if(!(a==null||a===!0||a===!1))if((d=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=Ct(e,a,l)||o;else if(d==="function")if(n){for(;typeof a=="function";)a=a();o=Ct(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function Ht(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Ne(e,t,r,n){if(r===void 0)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,r):l&&a.remove()}else i=!0}}else e.insertBefore(o,r);return[o]}const $n="http://www.w3.org/2000/svg";function Tn(e,t=!1,r=void 0){return t?document.createElementNS($n,e):document.createElement(e,{is:r})}function _n(e,t){const r=$(e);return $(()=>{const n=r();switch(typeof n){case"function":return H(()=>n(t));case"string":const o=pn.has(n),i=Tn(n,o,H(()=>t.is));return ot(i,t,o),i}})}function Nn(e){const[,t]=ct(e,["component"]);return _n(()=>e.component,t)}const En=1,On=e=>{const t=new URLSearchParams;return t.set("h",e.h),t.set("k",e.k),e.p&&t.set("p",e.p),e.s&&t.set("s",e.s),`openlv://${e.sessionId}@${En}?${t.toString()}`};function Pn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bt={exports:{}},Qt;function Rn(){return Qt||(Qt=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function o(l,d,u){this.fn=l,this.context=d,this.once=u||!1}function i(l,d,u,c,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var v=new o(u,c||l,h),b=r?r+d:d;return l._events[b]?l._events[b].fn?l._events[b]=[l._events[b],v]:l._events[b].push(v):(l._events[b]=v,l._eventsCount++),l}function s(l,d){--l._eventsCount===0?l._events=new n:delete l._events[d]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var d=[],u,c;if(this._eventsCount===0)return d;for(c in u=this._events)t.call(u,c)&&d.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(u)):d},a.prototype.listeners=function(d){var u=r?r+d:d,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var h=0,v=c.length,b=new Array(v);h<v;h++)b[h]=c[h].fn;return b},a.prototype.listenerCount=function(d){var u=r?r+d:d,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(d,u,c,h,v,b){var w=r?r+d:d;if(!this._events[w])return!1;var p=this._events[w],R=arguments.length,S,y;if(p.fn){switch(p.once&&this.removeListener(d,p.fn,void 0,!0),R){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,u),!0;case 3:return p.fn.call(p.context,u,c),!0;case 4:return p.fn.call(p.context,u,c,h),!0;case 5:return p.fn.call(p.context,u,c,h,v),!0;case 6:return p.fn.call(p.context,u,c,h,v,b),!0}for(y=1,S=new Array(R-1);y<R;y++)S[y-1]=arguments[y];p.fn.apply(p.context,S)}else{var z=p.length,E;for(y=0;y<z;y++)switch(p[y].once&&this.removeListener(d,p[y].fn,void 0,!0),R){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,u);break;case 3:p[y].fn.call(p[y].context,u,c);break;case 4:p[y].fn.call(p[y].context,u,c,h);break;default:if(!S)for(E=1,S=new Array(R-1);E<R;E++)S[E-1]=arguments[E];p[y].fn.apply(p[y].context,S)}}return!0},a.prototype.on=function(d,u,c){return i(this,d,u,c,!1)},a.prototype.once=function(d,u,c){return i(this,d,u,c,!0)},a.prototype.removeListener=function(d,u,c,h){var v=r?r+d:d;if(!this._events[v])return this;if(!u)return s(this,v),this;var b=this._events[v];if(b.fn)b.fn===u&&(!h||b.once)&&(!c||b.context===c)&&s(this,v);else{for(var w=0,p=[],R=b.length;w<R;w++)(b[w].fn!==u||h&&!b[w].once||c&&b[w].context!==c)&&p.push(b[w]);p.length?this._events[v]=p.length===1?p[0]:p:s(this,v)}return this},a.prototype.removeAllListeners=function(d){var u;return d?(u=r?r+d:d,this._events[u]&&s(this,u)):(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})(bt)),bt.exports}Rn();const q=Symbol.for("@ts-pattern/matcher"),$r=Symbol.for("@ts-pattern/isVariadic"),it="@ts-pattern/anonymous-select-key",St=e=>!!(e&&typeof e=="object"),Ze=e=>e&&!!e[q],j=(e,t,r)=>{if(Ze(e)){const n=e[q](),{matched:o,selections:i}=n.match(t);return o&&i&&Object.keys(i).forEach(s=>r(s,i[s])),o}if(St(e)){if(!St(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],o=[],i=[];for(const s of e.keys()){const a=e[s];Ze(a)&&a[$r]?i.push(a):i.length?o.push(a):n.push(a)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+o.length)return!1;const s=t.slice(0,n.length),a=o.length===0?[]:t.slice(-o.length),l=t.slice(n.length,o.length===0?1/0:-o.length);return n.every((d,u)=>j(d,s[u],r))&&o.every((d,u)=>j(d,a[u],r))&&(i.length===0||j(i[0],l,r))}return e.length===t.length&&e.every((s,a)=>j(s,t[a],r))}return Reflect.ownKeys(e).every(n=>{const o=e[n];return(n in t||Ze(i=o)&&i[q]().matcherType==="optional")&&j(o,t[n],r);var i})}return Object.is(t,e)},K=e=>{var t,r,n;return St(e)?Ze(e)?(t=(r=(n=e[q]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?De(e,K):De(Object.values(e),K):[]},De=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function Bn(...e){if(e.length===1){const[t]=e;return r=>j(t,r,()=>{})}if(e.length===2){const[t,r]=e;return j(t,r,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function V(e){return Object.assign(e,{optional:()=>Rt(e),and:t=>N(e,t),or:t=>Tr(e,t),select:t=>t===void 0?Ve(e):Ve(t,e)})}function At(e){return Object.assign((t=>Object.assign(t,{[Symbol.iterator](){let r=0;const n=[{value:Object.assign(t,{[$r]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var o;return(o=n[r++])!=null?o:n.at(-1)}}}}))(e),{optional:()=>At(Rt(e)),select:t=>At(t===void 0?Ve(e):Ve(t,e))})}function Rt(e){return V({[q]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return t===void 0?(K(e).forEach(o=>n(o,void 0)),{matched:!0,selections:r}):{matched:j(e,t,n),selections:r}},getSelectionKeys:()=>K(e),matcherType:"optional"})})}const Mn=(e,t)=>{for(const r of e)if(!t(r))return!1;return!0},Ln=(e,t)=>{for(const[r,n]of e.entries())if(!t(n,r))return!1;return!0},jn=(e,t)=>{const r=Reflect.ownKeys(e);for(const n of r)if(!t(n,e[n]))return!1;return!0};function N(...e){return V({[q]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return{matched:e.every(o=>j(o,t,n)),selections:r}},getSelectionKeys:()=>De(e,K),matcherType:"and"})})}function Tr(...e){return V({[q]:()=>({match:t=>{let r={};const n=(o,i)=>{r[o]=i};return De(e,K).forEach(o=>n(o,void 0)),{matched:e.some(o=>j(o,t,n)),selections:r}},getSelectionKeys:()=>De(e,K),matcherType:"or"})})}function x(e){return{[q]:()=>({match:t=>({matched:!!e(t)})})}}function Ve(...e){const t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return V({[q]:()=>({match:n=>{let o={[t??it]:n};return{matched:r===void 0||j(r,n,(i,s)=>{o[i]=s}),selections:o}},getSelectionKeys:()=>[t??it].concat(r===void 0?[]:K(r))})})}function _r(e){return!0}function ae(e){return typeof e=="number"}function de(e){return typeof e=="string"}function ue(e){return typeof e=="bigint"}const Nr=V(x(_r)),Dn=V(x(_r)),Vn=Nr,ge=e=>Object.assign(V(e),{startsWith:t=>{return ge(N(e,(r=t,x(n=>de(n)&&n.startsWith(r)))));var r},endsWith:t=>{return ge(N(e,(r=t,x(n=>de(n)&&n.endsWith(r)))));var r},minLength:t=>ge(N(e,(r=>x(n=>de(n)&&n.length>=r))(t))),length:t=>ge(N(e,(r=>x(n=>de(n)&&n.length===r))(t))),maxLength:t=>ge(N(e,(r=>x(n=>de(n)&&n.length<=r))(t))),includes:t=>{return ge(N(e,(r=t,x(n=>de(n)&&n.includes(r)))));var r},regex:t=>{return ge(N(e,(r=t,x(n=>de(n)&&!!n.match(r)))));var r}}),Xt=ge(x(de)),se=e=>Object.assign(V(e),{between:(t,r)=>se(N(e,((n,o)=>x(i=>ae(i)&&n<=i&&o>=i))(t,r))),lt:t=>se(N(e,(r=>x(n=>ae(n)&&n<r))(t))),gt:t=>se(N(e,(r=>x(n=>ae(n)&&n>r))(t))),lte:t=>se(N(e,(r=>x(n=>ae(n)&&n<=r))(t))),gte:t=>se(N(e,(r=>x(n=>ae(n)&&n>=r))(t))),int:()=>se(N(e,x(t=>ae(t)&&Number.isInteger(t)))),finite:()=>se(N(e,x(t=>ae(t)&&Number.isFinite(t)))),positive:()=>se(N(e,x(t=>ae(t)&&t>0))),negative:()=>se(N(e,x(t=>ae(t)&&t<0)))}),Fn=se(x(ae)),fe=e=>Object.assign(V(e),{between:(t,r)=>fe(N(e,((n,o)=>x(i=>ue(i)&&n<=i&&o>=i))(t,r))),lt:t=>fe(N(e,(r=>x(n=>ue(n)&&n<r))(t))),gt:t=>fe(N(e,(r=>x(n=>ue(n)&&n>r))(t))),lte:t=>fe(N(e,(r=>x(n=>ue(n)&&n<=r))(t))),gte:t=>fe(N(e,(r=>x(n=>ue(n)&&n>=r))(t))),positive:()=>fe(N(e,x(t=>ue(t)&&t>0))),negative:()=>fe(N(e,x(t=>ue(t)&&t<0)))}),In=fe(x(ue)),zn=V(x(function(e){return typeof e=="boolean"})),Un=V(x(function(e){return typeof e=="symbol"})),Kn=V(x(function(e){return e==null})),qn=V(x(function(e){return e!=null}));var Gn={__proto__:null,matcher:q,optional:Rt,array:function(...e){return At({[q]:()=>({match:t=>{if(!Array.isArray(t))return{matched:!1};if(e.length===0)return{matched:!0};const r=e[0];let n={};if(t.length===0)return K(r).forEach(i=>{n[i]=[]}),{matched:!0,selections:n};const o=(i,s)=>{n[i]=(n[i]||[]).concat([s])};return{matched:t.every(i=>j(r,i,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:K(e[0])})})},set:function(...e){return V({[q]:()=>({match:t=>{if(!(t instanceof Set))return{matched:!1};let r={};if(t.size===0)return{matched:!0,selections:r};if(e.length===0)return{matched:!0};const n=(i,s)=>{r[i]=(r[i]||[]).concat([s])},o=e[0];return{matched:Mn(t,i=>j(o,i,n)),selections:r}},getSelectionKeys:()=>e.length===0?[]:K(e[0])})})},map:function(...e){return V({[q]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let r={};if(t.size===0)return{matched:!0,selections:r};const n=(a,l)=>{r[a]=(r[a]||[]).concat([l])};if(e.length===0)return{matched:!0};var o;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o=e[0])==null?void 0:o.toString()}`);const[i,s]=e;return{matched:Ln(t,(a,l)=>{const d=j(i,l,n),u=j(s,a,n);return d&&u}),selections:r}},getSelectionKeys:()=>e.length===0?[]:[...K(e[0]),...K(e[1])]})})},record:function(...e){return V({[q]:()=>({match:t=>{if(t===null||typeof t!="object"||Array.isArray(t))return{matched:!1};var r;if(e.length===0)throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(r=e[0])==null?void 0:r.toString()}`);let n={};const o=(a,l)=>{n[a]=(n[a]||[]).concat([l])},[i,s]=e.length===1?[Xt,e[0]]:e;return{matched:jn(t,(a,l)=>{const d=typeof a!="string"||Number.isNaN(Number(a))?null:Number(a),u=d!==null&&j(i,d,o),c=j(i,a,o),h=j(s,l,o);return(c||u)&&h}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...K(e[0]),...K(e[1])]})})},intersection:N,union:Tr,not:function(e){return V({[q]:()=>({match:t=>({matched:!j(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:x,select:Ve,any:Nr,unknown:Dn,_:Vn,string:Xt,number:Fn,bigint:In,boolean:zn,symbol:Un,nullish:Kn,nonNullable:qn,instanceOf:function(e){return V(x((function(t){return r=>r instanceof t})(e)))},shape:function(e){return V(x(Bn(e)))}};class Wn extends Error{constructor(t){let r;try{r=JSON.stringify(t)}catch{r=t}super(`Pattern matching error: no pattern matches value ${r}`),this.input=void 0,this.input=t}}const $t={matched:!1,value:void 0};function ke(e){return new at(e,$t)}class at{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;const r=t[t.length-1],n=[t[0]];let o;t.length===3&&typeof t[1]=="function"?o=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let i=!1,s={};const a=(d,u)=>{i=!0,s[d]=u},l=!n.some(d=>j(d,this.input,a))||o&&!o(this.input)?$t:{matched:!0,value:r(i?it in s?s[it]:s:this.input,this.input)};return new at(this.input,l)}when(t,r){if(this.state.matched)return this;const n=!!t(this.input);return new at(this.input,n?{matched:!0,value:r(this.input,this.input)}:$t)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(t=Hn){return this.state.matched?this.state.value:t(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}}function Hn(e){throw new Wn(e)}const Xe={CREATED:"created",SIGNALING:"signaling",READY:"ready",LINKING:"linking"},oe={STANDBY:"standby",CREATING:"creating",CONNECTING:"connecting",CONNECTED:"connected",ERROR:"error"};var mt={exports:{}};var Jt;function Qn(){return Jt||(Jt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(i=o(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var a in i)t.call(i,a)&&i[a]&&(s=o(s,a));return s}function o(i,s){return s?i?i+" "+s:i+s:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(mt)),mt.exports}var Xn=Qn();const he=Pn(Xn),Jn=async e=>{if(typeof e=="string"){if(e==="simple")return await Promise.resolve().then(()=>require("./simple-DDht1UVo.cjs")).then(t=>t.simpleTheme);if(e==="openlv")return await Promise.resolve().then(()=>require("./openlv-SMG3Trx9.cjs")).then(t=>t.openlvTheme);throw new Error(`Unknown theme: ${e}`)}return e},Tt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Er=(e,t=[],r={})=>{for(const[n,o]of Object.entries(e)){const i=[...t,n];Tt(o)?Er(o,i,r):r[`--lv-${i.join("-")}`]=o}return r},Zn=(e="auto",t="system")=>e==="light"||e==="dark"?e:t==="system"?globalThis.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t,Or=(e,t)=>{const r={...e};for(const n of Object.keys(t)){const o=e[n],i=t[n];r[n]=Tt(o)&&Tt(i)?Or(o,i):i}return r},Yn=async(e,t="system")=>{const r=await Jn(e.theme),n=Zn(e.mode,t),o=r[n];if(!o)return"";const i=r.common?Or(r.common,o):o,s=Er(i);return Object.entries(s).map(([a,l])=>`${a}: ${l};`).join(`
|
|
2
|
+
`)},Zt=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-divide-x-reverse:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-none{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.top-5{top:calc(var(--spacing) * 5)}.top-full{top:100%}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-10000{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing) * 1.5)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-11{height:calc(var(--spacing) * 11)}.h-18{height:calc(var(--spacing) * 18)}.h-38{height:calc(var(--spacing) * 38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.min-h-32{min-height:calc(var(--spacing) * 32)}.w-1\\.5{width:calc(var(--spacing) * 1.5)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-8{width:calc(var(--spacing) * 8)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-48{width:calc(var(--spacing) * 48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.flex-1{flex:1}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-\\[bg-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out bg-in}.animate-\\[fade-in_0\\.15s_ease-in-out\\]{animation:.15s ease-in-out fade-in}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.resize{resize:both}.appearance-none{appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.-space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing) * -4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing) * -4) * calc(1 - var(--tw-space-x-reverse)))}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-\\(--lv-control-button-secondary-border\\)>:not(:last-child)){border-color:var(--lv-control-button-secondary-border)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\\(--lv-control-button-primary-border\\){border-color:var(--lv-control-button-primary-border)}.border-\\(--lv-control-button-secondary-border\\){border-color:var(--lv-control-button-secondary-border)}.border-\\(--lv-control-button-secondary-border\\,var\\(--lv-control-button-secondary-background\\)\\){border-color:var(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background))}.border-\\(--lv-control-input-border\\){border-color:var(--lv-control-input-border)}.border-blue-500{border-color:var(--color-blue-500)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-500{border-color:var(--color-gray-500)}.border-t-transparent{border-top-color:#0000}.bg-\\(--lv-body-background\\){background-color:var(--lv-body-background)}.bg-\\(--lv-card-background\\){background-color:var(--lv-card-background)}.bg-\\(--lv-control-button-primary-background\\){background-color:var(--lv-control-button-primary-background)}.bg-\\(--lv-control-button-secondary-background\\){background-color:var(--lv-control-button-secondary-background)}.bg-\\(--lv-qr-background\\){background-color:var(--lv-qr-background)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-400{background-color:var(--color-gray-400)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-\\[url\\(\\'data\\:image\\/svg\\+xml\\;charset\\=US-ASCII\\,\\%3Csvg\\%20xmlns\\%3D\\%22http\\%3A\\%2F\\%2Fwww\\.w3\\.org\\%2F2000\\%2Fsvg\\%22\\%20width\\%3D\\%2214\\%22\\%20height\\%3D\\%2214\\%22\\%20viewBox\\%3D\\%220\\%200\\%2024\\%2024\\%22\\%20fill\\%3D\\%22none\\%22\\%20stroke\\%3D\\%22\\%23888\\%22\\%20stroke-width\\%3D\\%222\\%22\\%3E\\%3Cpath\\%20d\\%3D\\%22M6\\%209l6\\%206\\%206-6\\%22\\%2F\\%3E\\%3C\\%2Fsvg\\%3E\\'\\)\\]{background-image:url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E)}.bg-\\[length\\:14px\\]{background-size:14px}.bg-\\[right_8px_center\\]{background-position:right 8px center}.bg-no-repeat{background-repeat:no-repeat}.p-1{padding:calc(var(--spacing) * 1)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.ps-1{padding-inline-start:calc(var(--spacing) * 1)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pr-0\\.5{padding-right:calc(var(--spacing) * .5)}.pr-8{padding-right:calc(var(--spacing) * 8)}.pb-0\\.5{padding-bottom:calc(var(--spacing) * .5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.text-\\(--lv-control-button-primary-color\\){color:var(--lv-control-button-primary-color)}.text-\\(--lv-control-button-secondary-color\\){color:var(--lv-control-button-secondary-color)}.text-\\(--lv-qr-color\\){color:var(--lv-qr-color)}.text-\\(--lv-text-muted\\){color:var(--lv-text-muted)}.text-\\(--lv-text-primary\\){color:var(--lv-text-primary)}.text-\\(--lv-text-secondary\\){color:var(--lv-text-secondary)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[height\\]{transition-property:height;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media(hover:hover){.group-hover\\:block:is(:where(.group):hover *){display:block}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.first\\:rounded-t-sm:first-child{border-top-left-radius:var(--radius-sm);border-top-right-radius:var(--radius-sm)}.first\\:border-l-0:first-child{border-left-style:var(--tw-border-style);border-left-width:0}.first\\:pt-1\\.5:first-child{padding-top:calc(var(--spacing) * 1.5)}.first\\:pt-2:first-child{padding-top:calc(var(--spacing) * 2)}.last\\:rounded-b-sm:last-child{border-bottom-right-radius:var(--radius-sm);border-bottom-left-radius:var(--radius-sm)}.last\\:pb-2:last-child{padding-bottom:calc(var(--spacing) * 2)}@media(hover:hover){.hover\\:\\[background-color\\:var\\(--lv-control-button-tertiary-hoverBackground\\)\\]:hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-card-background\\):hover{background-color:var(--lv-card-background)}.hover\\:bg-\\(--lv-control-button-primary-background-hover\\):hover{background-color:var(--lv-control-button-primary-background-hover)}.hover\\:bg-\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\):hover{background-color:var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))}.hover\\:bg-\\(--lv-control-button-secondary-background\\):hover{background-color:var(--lv-control-button-secondary-background)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\):hover{background-color:var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground)}.hover\\:bg-\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\):hover{background-color:var(--lv-control-button-tertiary-hoverBackground,transparent)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-\\(--lv-control-button-primary-background\\):focus{--tw-ring-color:var(--lv-control-button-primary-background)}.focus\\:ring-blue-200:focus{--tw-ring-color:var(--color-blue-200)}.focus\\:outline-none:focus{--tw-outline-style:none;outline-style:none}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}.active\\:bg-\\(--lv-control-button-primary-activeBackground\\,var\\(--lv-control-button-primary-hoverBackground\\,var\\(--lv-control-button-primary-background\\)\\)\\):active{background-color:var(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)))}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\):active{background-color:var(--lv-control-button-secondary-activeBackground)}.active\\:bg-\\(--lv-control-button-secondary-activeBackground\\,var\\(--lv-control-button-secondary-hoverBackground\\,var\\(--lv-control-button-secondary-background\\)\\)\\):active{background-color:var(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)))}.active\\:bg-\\(--lv-control-button-tertiary-activeBackground\\,var\\(--lv-control-button-tertiary-hoverBackground\\,transparent\\)\\):active{background-color:var(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent))}.disabled\\:bg-\\(--lv-control-button-primary-disabledBackground\\,var\\(--lv-control-button-primary-background\\)\\):disabled{background-color:var(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background))}.disabled\\:bg-\\(--lv-control-button-secondary-disabledBackground\\,var\\(--lv-control-button-secondary-background\\)\\):disabled{background-color:var(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background))}.disabled\\:text-\\(--lv-control-button-primary-disabledColor\\,var\\(--lv-control-button-primary-color\\)\\):disabled{color:var(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))}.disabled\\:text-\\(--lv-control-button-secondary-disabledColor\\,var\\(--lv-control-button-secondary-color\\)\\):disabled{color:var(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))}.disabled\\:text-\\(--lv-control-button-tertiary-disabledColor\\,var\\(--lv-text-muted\\)\\):disabled{color:var(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))}@media(min-width:48rem){.md\\:flex{display:flex}.md\\:w-3\\/5{width:60%}.md\\:items-center{align-items:center}:where(.md\\:divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.md\\:divide-y-0>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(0px * var(--tw-divide-y-reverse));border-bottom-width:calc(0px * calc(1 - var(--tw-divide-y-reverse)))}}@media(min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing) * 4)}}.ltr\\:right-5:where(:dir(ltr),[dir=ltr],[dir=ltr] *){right:calc(var(--spacing) * 5)}.ltr\\:-ml-1:where(:dir(ltr),[dir=ltr],[dir=ltr] *){margin-left:calc(var(--spacing) * -1)}.ltr\\:translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.ltr\\:rounded-l-none:where(:dir(ltr),[dir=ltr],[dir=ltr] *){border-top-left-radius:0;border-bottom-left-radius:0}.rtl\\:left-5:where(:dir(rtl),[dir=rtl],[dir=rtl] *){left:calc(var(--spacing) * 5)}.rtl\\:-mr-1:where(:dir(rtl),[dir=rtl],[dir=rtl] *){margin-right:calc(var(--spacing) * -1)}.rtl\\:-translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *){rotate:180deg}.rtl\\:rounded-r-none:where(:dir(rtl),[dir=rtl],[dir=rtl] *){border-top-right-radius:0;border-bottom-right-radius:0}}:root,:host{--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius);font-family:var(--lv-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji")}.border{border-style:solid}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:1;animation:.15s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{z-index:2;animation:.2s ease-out forwards modal-transition-in}[data-openlv-theme-mode=dark] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}@media(prefers-color-scheme:dark){[data-openlv-theme-mode=system] img[data-openlv-brand-logo]{filter:invert()brightness(1.1)}}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.95)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@keyframes spin{to{transform:rotate(360deg)}}`,Yt=async(e,t,r="system")=>{let n=e.querySelector("style[data-openlv-modal]");n||(n=document.createElement("style"),n.dataset.openlvModal="true",e.append(n));const o={...t,theme:t?.theme??"simple"};if(o){const i=await Yn(o,r);n.textContent=`:root, :host {
|
|
3
3
|
${i}
|
|
4
4
|
}
|
|
5
|
-
`+
|
|
6
|
-
Or copy the link and paste it into your wallet.`},
|
|
7
|
-
`);return h.length<=1?k:o.memo(()=>h.map((R,B)=>[R,o.memo(()=>o.memo(()=>B<h.length-1)()?xr():null)]))},u=g.createMemo(()=>kr(r())),f={languageTag:r,setLanguageTag:p=>{a(p)},isLoadingLanguagePack:s,isRtl:u,t:d};return o.createComponent(Ct.Provider,{value:f,get children(){return e.children}})},F=()=>{const e=g.useContext(Ct);if(!e)throw new Error("TranslationProvider not found");return e},St=g.createContext(void 0),_r=e=>{const{provider:t,theme:n}=e;return o.createComponent(St.Provider,{value:{provider:t,themeConfig:n},get children(){return o.createComponent(Ar,{get children(){return o.createComponent(Rt,{get onClose(){return e.onClose}})}})}})},ce=()=>{const e=g.useContext(St);if(!e)throw new Error("Modal context not found");return e},be=()=>{const{provider:e}=ce(),t=g.createMemo(()=>e.getSession(),void 0,{name:"session"}),[n,r]=g.createSignal(t()?.getState());console.log("session status",n());const a=s=>{console.log("session state change",s),r(s)};g.onMount(()=>{t()?.emitter.on("state_change",a)}),g.onCleanup(()=>{t()?.emitter.off("state_change",a)});const i=g.createMemo(()=>t()?.getHandshakeParameters());return{uri:g.createMemo(()=>{const s=i();return s?It(s):void 0}),status:n}},$r=()=>{const{provider:e}=ce();return{start:()=>{const t=e.storage.getSettings(),n=t?.signaling?.p,r=n?t?.signaling?.s?.[n]:void 0;if(!n||!r)throw new Error("Invalid protocol or server");return e.createSession({p:n,s:r})}}};var Tr=o.template('<div class="rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)"><div>Unknown state:</div><div>URI:</div><div>Session Status:');const ze=e=>{const{uri:t,status:n}=be();return console.error("Unknown state:",{state:e.state}),(()=>{var r=Tr(),a=r.firstChild;a.firstChild;var i=a.nextSibling;i.firstChild;var l=i.nextSibling;return l.firstChild,o.insert(a,()=>JSON.stringify(e.state),null),o.insert(i,t,null),o.insert(l,()=>JSON.stringify(n()),null),r})()},At=async e=>{if(!e)return!1;try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch(t){console.error("Failed to copy to clipboard",t)}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.append(t),t.focus(),t.select();const n=document.execCommand("copy");return t.remove(),n}catch{return!1}};var Nr=o.template('<div class="flex flex-col items-center gap-4 px-2"><div class="w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4"><div class=w-full><button type=button class="w-full cursor-pointer rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-4 py-2 text-sm text-(--lv-text-primary) transition hover:bg-(--lv-control-button-secondary-hoverBackground) active:bg-(--lv-control-button-secondary-activeBackground)"></button></div></div><div class="w-full text-sm text-(--lv-text-secondary)"><span>'),Mr=o.template('<div class="relative mx-auto flex w-fit items-center justify-center rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-qr-background) p-4"><button type=button class="h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)">');const Pr=e=>{const t=zt.default,n=t(0,"M");return n.addData(e),n.make(),n.createSvgTag({cellSize:5,margin:0,scalable:!0})},Rr=()=>{const{t:e}=F(),{uri:t}=be(),n=()=>{const r=t();r&&At(r)};return(()=>{var r=Nr(),a=r.firstChild,i=a.firstChild,l=i.firstChild,s=a.nextSibling,c=s.firstChild;return o.insert(a,o.createComponent(g.Show,{get when(){return t()},children:d=>(()=>{var u=Mr(),v=u.firstChild;return v.$$click=n,o.effect(f=>{var p=String(e("handshake.clickToCopyUrl")),m=Pr(d());return p!==f.e&&o.setAttribute(v,"title",f.e=p),m!==f.t&&(v.innerHTML=f.t=m),f},{e:void 0,t:void 0}),u})()}),i),l.$$click=n,o.insert(l,()=>e("handshake.copyConnectionUrl")),o.insert(c,()=>e("handshake.scanCodeInstruction")),r})()};o.delegateEvents(["click"]);var Br=o.template('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),lt=o.template('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),Er=o.template("<div>");const ct=()=>Br(),Or=()=>{const{status:e}=be(),{t}=F();return(()=>{var n=Er();return o.insert(n,o.createComponent(g.Switch,{get children(){return[o.createComponent(g.Match,{get when(){return[Se.CREATED,Se.SIGNALING].includes(e()?.status??"")},get children(){var r=lt(),a=r.firstChild,i=a.firstChild,l=i.nextSibling;return o.insert(r,o.createComponent(ct,{}),a),o.insert(i,()=>t("connectionFlow.connecting")),o.insert(l,()=>t("connectionFlow.waitingForNetwork")),r}}),o.createComponent(g.Match,{get when(){return e()?.status===Se.READY},get children(){return o.createComponent(Rr,{})}}),o.createComponent(g.Match,{get when(){return e()?.status===Se.LINKING},get children(){var r=lt(),a=r.firstChild,i=a.firstChild,l=i.nextSibling;return o.insert(r,o.createComponent(ct,{}),a),o.insert(i,()=>t("connectionFlow.establishingConnection")),o.insert(l,()=>t("connectionFlow.mayTakeFewSeconds")),r}})]}})),n})()};var Lr=o.template('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),jr=o.template('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),Vr=o.template('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">✅</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),Fr=o.template('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">🔌</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="mb-4 text-(--lv-text-muted) text-sm"></p></div><button type=button class="w-full rounded-lg bg-(--lv-control-button-secondary-background) px-4 py-2 font-semibold text-(--lv-text-primary) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)">'),zr=o.template("<div class=w-full style=view-transition-name:connection-flow>");const Dr=()=>Lr(),Ir=e=>{const{t}=F(),{provider:n}=ce(),[r,a]=g.createSignal(n.getState().status);return g.onMount(()=>{n.on("status_change",a)}),g.onCleanup(()=>{n.off("status_change",a)}),(()=>{var i=zr();return o.insert(i,o.createComponent(g.Switch,{get fallback(){return o.createComponent(ze,{get state(){return r()}})},get children(){return[o.createComponent(g.Match,{get when(){return r()===q.CREATING},get children(){var l=jr(),s=l.firstChild,c=s.firstChild,d=c.nextSibling;return o.insert(l,o.createComponent(Dr,{}),s),o.insert(c,()=>t("connectionFlow.preparingConnection")),o.insert(d,()=>t("connectionFlow.generatingKeys")),l}}),o.createComponent(g.Match,{get when(){return r()===q.CONNECTING},get children(){return o.createComponent(Or,{})}}),o.createComponent(g.Match,{get when(){return r()===q.CONNECTED},get children(){var l=Vr(),s=l.firstChild,c=s.firstChild,d=c.nextSibling,u=d.nextSibling;return o.insert(d,()=>t("connectionFlow.connectedSuccessfully")),o.insert(u,()=>t("connectionFlow.walletConnectedReady")),l}}),o.createComponent(g.Match,{get when(){return r()===q.ERROR},get children(){var l=Fr(),s=l.firstChild,c=s.firstChild,d=c.nextSibling,u=d.nextSibling,v=s.nextSibling;return o.insert(d,()=>t("connectionFlow.disconnected")),o.insert(u,()=>t("connectionFlow.connectionClosed")),o.addEventListener(v,"click",e.onClose,!0),o.insert(v,()=>t("common.close")),l}})]}})),i})()};o.delegateEvents(["click"]);var Ur={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},se=Ur,qr=o.template("<svg>"),Kr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Wr=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),dt=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Gr=e=>{const t=Hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},Qr=e=>{const[t,n]=g.splitProps(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]);return(()=>{var r=qr();return o.spread(r,o.mergeProps(se,{get width(){return t.size??se.width},get height(){return t.size??se.height},get stroke(){return t.color??se.stroke},get"stroke-width"(){return o.memo(()=>!!t.absoluteStrokeWidth)()?Number(t.strokeWidth??se["stroke-width"])*24/Number(t.size):Number(t.strokeWidth??se["stroke-width"])},get class(){return Wr("lucide","lucide-icon",...t.name!=null?[`lucide-${dt(Gr(t.name))}`,`lucide-${dt(t.name)}`]:[],t.class!=null?t.class:"")},get"aria-hidden"(){return!t.children&&!Kr(n)?"true":void 0}},n),!0,!0),o.insert(r,o.createComponent(g.For,{get each(){return t.iconNode},children:([a,i])=>o.createComponent(o.Dynamic,o.mergeProps({component:a},i))})),r})()},ee=Qr,Jr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xr=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:Jr,name:"chevron-left"})),Zr=Xr,Yr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],en=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:Yr,name:"chevron-right"})),tn=en,rn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],nn=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:rn,name:"circle-question-mark"})),_t=nn,on=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],an=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:on,name:"plus"})),sn=an,ln=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],cn=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:ln,name:"qr-code"})),dn=cn,un=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gn=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:un,name:"settings"})),vn=gn,pn=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hn=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:pn,name:"trash-2"})),fn=hn,mn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bn=e=>o.createComponent(ee,o.mergeProps(e,{iconNode:mn,name:"x"})),yn=bn,wn=/\s+/g,xn=e=>typeof e!="string"||!e?e:e.replace(wn," ").trim(),Te=(...e)=>{const t=[],n=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let i=0,l=r.length;i<l;i++)n(r[i]);return}const a=typeof r;if(a==="string"||a==="number"||a==="bigint"){if(a==="number"&&r!==r)return;t.push(String(r))}else if(a==="object"){const i=Object.keys(r);for(let l=0,s=i.length;l<s;l++){const c=i[l];r[c]&&t.push(c)}}};for(let r=0,a=e.length;r<a;r++){const i=e[r];i!=null&&n(i)}return t.length>0?xn(t.join(" ")):void 0},ut=e=>e===!1?"false":e===!0?"true":e===0?"0":e,D=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},kn=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++){const i=n[a];if(!r.includes(i)||e[i]!==t[i])return!1}return!0},Cn=(e,t)=>{for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)){const r=t[n];n in e?e[n]=Te(e[n],r):e[n]=r}return e},$t=(e,t)=>{for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)?$t(r,t):r&&t.push(r)}},Tt=(...e)=>{const t=[];$t(e,t);const n=[];for(let r=0;r<t.length;r++)t[r]&&n.push(t[r]);return n},De=(e,t)=>{const n={};for(const r in e){const a=e[r];if(r in t){const i=t[r];Array.isArray(a)||Array.isArray(i)?n[r]=Tt(i,a):typeof a=="object"&&typeof i=="object"&&a&&i?n[r]=De(a,i):n[r]=i+" "+a}else n[r]=a}for(const r in t)r in e||(n[r]=t[r]);return n},Sn={twMerge:!0,twMergeConfig:{}};function An(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(r){e=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){e=null,t={},n=!1}}}var Oe=An(),_n=e=>{const t=(r,a)=>{const{extend:i=null,slots:l={},variants:s={},compoundVariants:c=[],compoundSlots:d=[],defaultVariants:u={}}=r,v={...Sn,...a},f=i?.base?Te(i.base,r?.base):r?.base,p=i?.variants&&!D(i.variants)?De(s,i.variants):s,m=i?.defaultVariants&&!D(i.defaultVariants)?{...i.defaultVariants,...u}:u;!D(v.twMergeConfig)&&!kn(v.twMergeConfig,Oe.cachedTwMergeConfig)&&(Oe.didTwMergeConfigChange=!0,Oe.cachedTwMergeConfig=v.twMergeConfig);const k=D(i?.slots),h=D(l)?{}:{base:Te(r?.base,k&&i?.base),...l},R=k?h:Cn({...i?.slots},D(h)?{base:r?.base}:h),B=D(i?.compoundVariants)?c:Tt(i?.compoundVariants,c),b=E=>{if(D(p)&&D(l)&&k)return e(f,E?.class,E?.className)(v);if(B&&!Array.isArray(B))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof B}`);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof d}`);const we=(w,x=p,C=null,$=null)=>{const S=x[w];if(!S||D(S))return null;const T=$?.[w]??E?.[w];if(T===null)return null;const V=ut(T);if(typeof V=="object")return null;const K=m?.[w],O=V??ut(K);return S[O||"false"]},oe=()=>{if(!p)return null;const w=Object.keys(p),x=[];for(let C=0;C<w.length;C++){const $=we(w[C],p);$&&x.push($)}return x},Re=(w,x)=>{if(!p||typeof p!="object")return null;const C=[];for(const $ in p){const S=we($,p,w,x),T=w==="base"&&typeof S=="string"?S:S&&S[w];T&&C.push(T)}return C},xe={};for(const w in E){const x=E[w];x!==void 0&&(xe[w]=x)}const ue=(w,x)=>{const C=typeof E?.[w]=="object"?{[w]:E[w]?.initial}:{};return{...m,...xe,...C,...x}},ke=(w=[],x)=>{const C=[],$=w.length;for(let S=0;S<$;S++){const{class:T,className:V,...K}=w[S];let O=!0;const I=ue(null,x);for(const G in K){const U=K[G],ae=I[G];if(Array.isArray(U)){if(!U.includes(ae)){O=!1;break}}else{if((U==null||U===!1)&&(ae==null||ae===!1))continue;if(ae!==U){O=!1;break}}}O&&(T&&C.push(T),V&&C.push(V))}return C},Ce=w=>{const x=ke(B,w);if(!Array.isArray(x))return x;const C={},$=e;for(let S=0;S<x.length;S++){const T=x[S];if(typeof T=="string")C.base=$(C.base,T)(v);else if(typeof T=="object")for(const V in T)C[V]=$(C[V],T[V])(v)}return C},te=w=>{if(d.length<1)return null;const x={},C=ue(null,w);for(let $=0;$<d.length;$++){const{slots:S=[],class:T,className:V,...K}=d[$];if(!D(K)){let O=!0;for(const I in K){const G=C[I],U=K[I];if(G===void 0||(Array.isArray(U)?!U.includes(G):U!==G)){O=!1;break}}if(!O)continue}for(let O=0;O<S.length;O++){const I=S[O];x[I]||(x[I]=[]),x[I].push([T,V])}}return x};if(!D(l)||!k){const w={};if(typeof R=="object"&&!D(R)){const x=e;for(const C in R)w[C]=$=>{const S=Ce($),T=te($);return x(R[C],Re(C,$),S?S[C]:void 0,T?T[C]:void 0,$?.class,$?.className)(v)}}return w}return e(f,oe(),ke(B),E?.class,E?.className)(v)},de=()=>{if(!(!p||typeof p!="object"))return Object.keys(p)};return b.variantKeys=de(),b.extend=i,b.base=f,b.slots=R,b.variants=p,b.defaultVariants=m,b.compoundSlots=d,b.compoundVariants=B,b};return{tv:t,createTV:r=>(a,i)=>t(a,i?De(r,i):r)}},$n=(...e)=>t=>Te(e)||void 0,{tv:Me}=_n($n),Tn=o.template("<a>"),Nn=o.template("<button type=button>");const gt=Me({base:"flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",variants:{$variant:{primary:"font-semibold text-sm bg-(--lv-control-button-primary-background) text-(--lv-control-button-primary-color) border-(--lv-control-button-primary-border) hover:bg-(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)) active:bg-(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))) disabled:bg-(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background)) disabled:text-(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))",secondary:"border bg-(--lv-control-button-secondary-background) text-(--lv-control-button-secondary-color) border-(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background)) hover:bg-(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)) active:bg-(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))) disabled:bg-(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background)) disabled:text-(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))",tertiary:"bg-transparent text-(--lv-text-muted) hover:bg-(--lv-control-button-tertiary-hoverBackground,transparent) active:bg-(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent)) disabled:text-(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))"},$size:{sm:"h-6",md:"h-8",lg:"h-11"},$aspect:{square:"aspect-square",auto:""}},defaultVariants:{$size:"md",$variant:"primary",$aspect:"auto"}}),le=e=>{const[t,n]=g.splitProps(e,["children","class","$variant","$size","$aspect","href","onClick"]);return t.href?(()=>{var r=Tn();return o.spread(r,o.mergeProps({get href(){return t.href},get onClick(){return t.onClick},get class(){return Y(gt({$variant:t.$variant,$size:t.$size,$aspect:t.$aspect}),t.class)}},n),!1,!0),o.insert(r,()=>t.children),r})():(()=>{var r=Nn();return o.spread(r,o.mergeProps({get onClick(){return t.onClick},get class(){return Y(gt({$variant:t.$variant,$size:t.$size,$aspect:t.$aspect}),t.class)}},n),!1,!0),o.insert(r,()=>t.children),r})()};var Mn=o.template('<div class="flex h-full w-full justify-between"><div class="grow py-1 ps-1"><div class="h-full rounded-sm border border-gray-300 bg-gray-400"></div></div><div class="flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5">'),Pn=o.template('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'),Rn=o.template('<div class="flex h-full w-full flex-col justify-between"><div class="grow px-1 pt-1"><div class="h-full rounded-sm border border-gray-200 bg-gray-300"></div></div><div class="flex h-3 w-full items-center justify-center gap-0.5 pb-0.5">'),Bn=o.template('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'),En=o.template('<div class="-space-x-4 flex items-end"><div class="h-38 w-48 overflow-hidden rounded-lg bg-gray-300"></div><div class="h-18 w-12 overflow-hidden rounded-lg bg-gray-200">');const Nt=e=>e?1:3,On=e=>(()=>{var t=Mn(),n=t.firstChild,r=n.nextSibling;return o.insert(r,o.createComponent(g.For,{get each(){return Array.from({length:Nt(e.isApple)})},children:()=>Pn()})),t})(),Ln=e=>(()=>{var t=Rn(),n=t.firstChild,r=n.nextSibling;return o.insert(r,o.createComponent(g.For,{get each(){return Array.from({length:Nt(e.isApple)})},children:()=>Bn()})),t})(),jn=()=>(()=>{var t=En(),n=t.firstChild,r=n.nextSibling;return o.insert(n,o.createComponent(On,{isApple:!0})),o.insert(r,o.createComponent(Ln,{isApple:!0})),t})();var Vn=o.template('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><p class="text-sm text-(--lv-text-secondary)"></p></div><div class="flex items-center">');const Fn=e=>{const{t}=F(),{start:n}=$r();return(()=>{var r=Vn(),a=r.firstChild,i=a.firstChild,l=a.nextSibling;return o.insert(r,o.createComponent(jn,{}),a),o.insert(i,()=>t("disconnected.prompt")),o.insert(l,o.createComponent(le,{type:"button",onClick:n,class:"z-10 px-6 py-3",$variant:"primary",$size:"lg",get children(){return t("disconnected.generateQr")}}),null),o.insert(l,o.createComponent(le,{type:"button",get"aria-label"(){return String(t("disconnected.connectionSettings"))},"aria-pressed":!1,get onClick(){return e.onSettings},class:"px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",$aspect:"square",$size:"lg",$variant:"secondary",get children(){return o.createComponent(vn,{class:"h-5 w-5 text-(--lv-text-muted)"})}}),null),r})()};var zn=o.template('<div class="flex flex-col space-y-2 px-4 text-start"><div class="min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class="flex justify-center items-center grow"></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class>');const Dn=()=>{const{t:e}=F();return(()=>{var t=zn(),n=t.firstChild,r=n.firstChild,a=r.nextSibling,i=n.nextSibling,l=i.firstChild,s=i.nextSibling,c=s.firstChild;return o.insert(r,()=>e("info.scanQrCode")),o.insert(a,o.createComponent(dn,{class:"w-10 h-10"})),o.insert(l,()=>e("info.approveOnDevice")),o.insert(c,()=>e("info.youreConnected")),t})()},Ie=(e,{duration:t=200}={})=>{const n=typeof e=="function"?e:()=>e,r=n(),[a,i]=g.createSignal(r),[l,s]=g.createSignal(void 0);let c,d=r;return g.createEffect(()=>{const u=n();Object.is(u,d)||(c&&globalThis.clearTimeout(c),s(()=>d),i(()=>u),d=u,c=globalThis.setTimeout(()=>{s(()=>{}),c=void 0},t),g.onCleanup(()=>{c&&globalThis.clearTimeout(c)}))}),{current:a,previous:l,isTransitioning:()=>l()!==void 0}},ye=()=>{const{provider:e}=ce(),[t,n]=g.createSignal(e.storage.getSettings()),r=u=>{n(u),e.storage.setSettings(u)};return{settings:t,setSettings:r,setLanguage:u=>{r({...t(),language:u})},setThemeMode:u=>{r({...t(),theme:u})},setSignalingProtocol:u=>{r({...t(),signaling:{p:u,s:t()?.signaling?.s??{}}})},setSignalingOptions:u=>{const v=t()?.signaling?.p;if(!v)return;const f=t()?.signaling?.s??{};r({...t(),signaling:{p:v,s:{...f,[v]:u.url}}})},setRetainSessionHistory:u=>{r({...t(),retainHistory:u})},setAutoReconnect:u=>{r({...t(),autoReconnect:u})}}},Mt=()=>{const{settings:e}=ye(),t=g.createMemo(()=>e().theme),n=g.createMemo(()=>"light");return{theme:t,mode:n}},Pt="data:image/webp;base64,UklGRjYRAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSOwHAAABsIb///k21zdJk7anNmfbRrf01uztcO5s2yqOPdu27e2ybaPtlLRJ83nw+ye/3++PZ/eDiJgA+hV0c620Pml9MhYu8HlhejUhJbv1SfO5T+964XrgN/I9hD5uLKDZXXDnXPhfq0ImrdX+BMHb/blCjkJo3v2laeVsmvojRJ8L5ir7Vgz7auuIclbtpHwTtdjCFXlBHIBXGzpFaiXwr06lAt/dR8oQf9cPMgDXyW4R2qCAdvPS09MzBnfo6HPrWBJobjAj3fd5q5+4fAFcJ1qY5dnCbHxathRv/+9rX3wAcrPiZbXafX5TRR1hoxvPPPjJG7ApRE7d5wDOFNYXIgqsO/6M04uzuZSSl8D20B0iCu+465sCusuw/AOKvfSIKKDdYeZVTRmp2QqXk/WJKDr93fdHnUhiwE6w2W1Jty2VGpYkmY2zFeaY9Et6FtirhcioYy4pjCLDbviFeVzcuHqB3WI1rvkKQ8mwbfuY702MK+4mk1PTuAo9Ze4lGNgT5k6scRV7xpwIkRFevWkTVTatFWWSZxLR5DuzwSyuWvr5jw6V5lxZmGKRU+/vi1oH8lV9Lydo/DOoOjsrUUbqC8A5ycSV/JjZaROUvKwAaj9WRpxpGQDcT+Yq/YrZFyAmeD00eDxJmHUP86UeV6qT2WAWYp5VwORfWLTng8LnBXPmSsw65mAw31/YbuZbA64f8yQ0zwGAh70jyL/BbsaTRVJD2l1k8vrqRvgxALhVl9jIFQCQa5dCVP4sANwppRcDXACym5FyoTMAsDVIDlV5AABZOhF1CQAyzF6oxRcAX3+QRAMLADyvIGgX86aCev6QD+BGUfLutwgA1lolhe0HgLliws8zd2JVY90EABPJ17ofALyrJona5wG4HC0k+bGgVCezUUDVNwCelvbJugkARsiKugAgr62aijxk5hD/CABYYPaJfucGsN1fEk0FgD/LiOOiod+AcyX5rJsAuNqR74UfAHhVVlb9XACXooU8Ym7H8lnbTBlWkviLPQHwpDiHeSkAdydZoScBZNcQUfUDsy+AT/SPDgCrLRzUBwCyZNGfAXi6i/jByWw0q2UoAEwm3jqfABwKlNXNA+DvIlIVNqlmIQB3J66o6wCuRMmqkwtgf4DWrDsBfKjCZdsB4G05WQl3AZwN0VrMDQBXorloOQBnM1m2XQCeFxfQIp9ZZVJJ3F0AhwP4JgHwdJZlWg/gQ2UBI8BOJpWWfgngqJK5XMeGIUpDAGC0LFoIwNVawBiFcWpp+A3AWgsTmvHa/WVvFYXW+QDWN7Hb7VUCFExFm9jt9tSKZgW/Cna7PWUBAHc7Ae1cAFztVZVF7AAPAOwMZhp9B+B2OBzOD0vDmX6PHE6Hw/lmmj8RWSe9dTocDpeoyJ0Adkepz28H2I+VmMaMsrsjESXdgXJ2VSKqmwPvQii+z/JhSaQ+2z6FnGpcGEREZd97+V6fiNq6JalbIZMxLVK4ncg08uVBVSIKWuPlUAIRxZ3WkUbMfIbKnQXwsSuxKcyZWbNnz5lWm9j4YXNnz549Z0wRYitOnjN79sxDulAnF8ChAIbKZG5dkmpS6OkBkE6yR+pC0gMAh5WILCZSHgkAmdJG6UL8PQBnQr34OF+nIjoNqWvlCT0N4HlxLvN6fYpeU4CcyX4c5o0AvqZwhV3UpxEA8L4KB80GgH5chR7q098Z/JGnnQvAv7ja5uvT3xS68VR6D+B0KM9cGEjEWQA5tTmCjhgJzQKAsRy1PhlK63wAJ0N8mwpDibsC4OsvPiXdMhbKAoDN/r4M9hhMzbcAvrb3IfEitFak2U/RqjL/FwAuFfZi/Re01uCKK+9gSXHuznxU4y0ArI9RMA12aC14PwBkirBuYXJqCDBNZ7AuiYhsg78AQK5bQ7F3mWvRAgKPM9nVBFD0QQaXBjVtv/E7ALyc+UVLt5mnhQXE3WAeFxVBNR4y8DhdYPN6N/yupTvMk0ICyrxhLocLIfsjxmveFHMjLYWdZT7VEPCjgzkdIoZSzvjwsq+NGjMZGjFvYPKbCegDdjGJTph9x828W1GDSCmLLHJpjCDKYDBKwCKFQcKICnWaNmv2yOpW8nZ/y1a5m28AKBDxJw+zxswVeYn5niLB9+qfoFZHqoBG35hLUVyFnzJPS6gkaI9qLkQLSLrHZNfgir/DrPVTCTV6qZLsLiTQtpf51oDLNNwJvG9Gqm2663W+S3b+u0MtTSKsuwWRteuGRXazeiiwXLMWsptXCiKh4ojMJjJEpfeVRRhl1CXmTpxxJT9RiDWuQo+Zu3HGVTeXORZsXKlOZpPZuLq4mWUm45oJdgIZdtARxtXBuEo8Y16XMa7+HuZUqGFFnwQ7nWT6WXVttIfJri/B/Psdu6cX06/462B3BUholg3gVu8IvSr3nvnWnsRbVoN1nehfzKxLSXeZ5VYJflsUADxc279CuP5Q7xzgXHmS2dftBcDbi/N/Zy8e7IPJX9GiKcuPM/okk9TASR99AFDgeH5i/rx0xXlLDrKHNnQNFFFufEY6f0aPCD41muz783wR7BojoMF9CPWsj9QAUUinXTmScCeRy7YRogdogiggJfOMQ8rL4lwRV4XN0wgRRfw4Yc8Lp7CVNi7LYlGe3tohooBSv0xcfebxF4+Xb5+VP20qRfwVLojJXxquKdYUUqRe1z5paWlpfXql1FKsXfU3JLJ49z5p/H3ahdCvnwNWUDggJAkAAFAzAJ0BKoAAgAA+TR6NRCKhoZUKb+QoBMS0gXAB+AH6AA+Ufoz/Jfxg77f7Z+S/YJ+nfbP1gq1XNV9yP0v9m88u9n4J6gXsHdvbKegF67/Sv+T4Lf9d6F/VT2AP5b/Kf+VyINAD+K/1H/h/43+8fC5/Lf9f7u/bv+Wf4H/xf5X4Bv43/Qv+F/avaA9c37VewZ+qi6YnObtVG6xTptSDxWdZOyXNa59dCAiUQx0s9QeFuTtEkCCZ1VDt2yVu6wuLleg8UGC+xygF+ikCc6OFScW3keDjkgMNXtWhnlVuP8adiwFQqtWB898/cNZ/ZPZSbT/SGkUu9L/80Jh9MhRi3Uj+yGTg6IHihIpDzvYgtbVOefgBSvK2WP/ViDlFYMqcmV3S37jDRft7Kj/mgg3mnWnsm+HacJJd/5io8v7EadJwLNxOge91hk1mPHA+PYMINGKvA97JcZEFvzSmFAqBtHUzKqf50fXJLd0XhZmBQWhr/vwnXFii3VNfEfiIXySQr4RbWO8yPn7m0Z/G9Qg9KvDGNk/4ljKJZS1VxLuWUk+To4QAAP7+R5Re1p/qxbSLcVAEvC2Ae4+JAjoahTi+1Tx+R05wIIyRWKCPZqNwQFn8n4hkHC+YaT3NWwkaKKHw8WZH8NqlsIlsWxinFRzXJs8GKMdG2p7hG3px0/aKtlukGtCOvGxG+BPnLqe18kpHi6ID1Cv9VF+k0GfsVXRTfFJ5kFnxBXWEWfHSCRjr5ChoztIFhGiUjdeGW4oPH0mJRKxppXb/SuuY9AJME864F/0/K+rCPHrn4fAaKjIrvZAAGFSMZfovGmlhlAOl0kQHWDDypV8h5DEaTfOmXo5EIScC+SMO14Ob/u1b/QV6+wekJBWTZhjk7IgO7VyRpgGNBj23IgoGI3ZehsZNjz/FwpX2moSeDzk53u1qkXHaKG5d2qCOZSmjD/Mw60AzF22eAe+RoeFKSwUIci9CQD/6et+xH8moMwLOUzzuwuyvWC4o2rAhgXyPm9/OgwkYNR/47Hy+a8QNAxmh8RiQHQGZWu2c8agkAJ64pR2Tx0moSJcAN6mcLGZJM6OR4UvYNwbS3zHo/m2mznwl6FpIv416AQ2FRptmE3mPGs+fumcGy9QktCC15M3KIwNfUa+v+vCs+8cLY3ceuO7FOrdF4O62gur2g1PMJvcYV8xIJTjMC2ZxBtam98jF7JFQus/mSBWdPgN/EJ8azS69gF/kVpet+eEfx0gPfWCS/lXuCCxSTaW6UFiLosH3nrqmK5mWavssaOjz3T6dTb2/wflvaP/c2Q2mXRtiIL0wWJNO1WesBYkScU+pmuiwAuOw62WA6KAf9AOh7glFdfHQf81TCfj3NLS64NeCeXZ+S5Ea0iXT6aKx7ozBGub6ThREbIi3Xg7TnjOFoNnqzOnl2FumRXpwwuB6SujUtv/oX3hzheHNMPGb5C+LuOWwS4BAdAwTnE2vklObQHXtcp59P/ePfam2i7JOlXAWMQBQNP8a1w1rbnyxKFwYqsipF4ckJx3bppb4fgDS/FF2/y46LUyi1BnmZawEb37wuvOD3INuDKaakzzJyAzc2ta/DPhrpHaRn3O5CWc3s860AfNLwHDvxZs7JbQmcAv9paq37frkj2TJJ8P1GdMqpV35v5jukCYvxXga7V7ByDA/GZYBpJnBURfvGjAlOFtypjNWTjzA9zf475TTmOmroREsje7XMgekroBn4vwoWtc0UaaztuLsC9M2tModgoRBzav0PdM3molaBeu6PSwD3AYmgUHitoDOfvM2d85I7Q2I1FbNTmueFesWyTDRlN1T8+fTgaoZpKhrlx/kS+FNkrUKBy6yu68r8BgwNrGNfCLBh0RlefCkZMvUsB206vOJyP+JYtyXtPGzwuvvQ1NnzNCo/yfQtMBUFr0LMyfftfGbGw/uAuQC8VbqHI7vGtA35Pa/DoSi0zpfklckK/28i5yRB7UBdmsXAI4Xv+y5gLBNKYBZE4r3Ys+TE2oYTNlGGM22J0nkGvvERFqksAH7KakYgGUiGfDLagwIMw8o290UXsXUzA5nyTBBbMVjIriG4zcPG5/0lt3Hq3ykjGQZBYE2RFw15tOWJpEBpHoaSxwDmkDPEretisSxreTo/Iul/Pkj1RPlpUpBzqZ5YIzh/ch9TvBAU7YkxhYoEGS8rfw/dgP9aRwT1caEoREnr087aLahcF/h+/JIJfVqi8kl5IbvseIuGA+m+e1JqF49+tndB4QCulVeeuQsql47VKHF/9q8PRMeGYIfPChm+Osj0cHvED3n39qHidL63b2WYqKMKjTTFeORKbtbEHY7b/Xs29zBbWjwaRQ77mEGpkgDUP8Ebi9KQ2JeoW28yYYSO7pF/mqd2E++jgS/MxBo/x1sK/Nz1ZsMB164YppO3fLO519Erh4lDdAgT58nCsImfBkKhteF9rcpwDZe9j0FQ9IT5nuJH1Bt0Zdd1fIIAkYBzje1xr+t4KDj2F7055fEf9VdfsyJPFcK1JZ26v73bpjXJkmUuzMs3+VbxZQ5/4WBwqFJdbOvpFQ4ot/+Hn+qL0oUn4PA4/cgMjQwiYL81rsWfgtbjRThL/oDLbwfK+9cKcerxpB/GJkt5+x8JVN1A3/YhzzMPDnbewqzn+EodKIALRzTXzDHTMQkNZZY6QKRycJ2VCb8vNvQBmdev/CpTn1fgsVtGDJ0+c1iOBN0/f1DQMifz17Os7Oz1pKw7eOP9dtuyGwI7pYe0cEAHId4jKsr5WYfoSOIgXwE7bTm6l9ytV0zbma1KfNP/Ueaf86PTBrUXb3mh1wOj2xW9r5slTCunQPsdDHdZhtq/ldOBDSm/8BZs0vOj+BaStwJTUL6ShMniBq45fMXgBYhE0HCVgrmd8huP1g79tfH/sI40kXryAN0Id9OxWe8OtUDqd+hFn5Lea/0IyqEMOo1l6zdXzTvnn7ZMZQ13YXZ42HNbFrHSpaISyLIEnjorwZViflpTYJU5+TBcgDljbeiGSw9XFp1juoAWD7Du38M26w9QFezhy38ycpTOQI5qBb7hvaPBeGCI6FZxDSfGL8DLCIuXSPDU1wKHXgrR9dz8+Jzlm9rQs+FlQrh/TVOKrVVxQAAAA==";var In=o.template('<div class="group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)"><div class="pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100"></div><div>');const Un=()=>{const{t:e}=F(),{status:t}=be(),n=g.createMemo(()=>{const r=t()?.status,a=t()?.signaling?.state;return ne({sessionState:r,signalState:a}).with({sessionState:"connected"},()=>({icon:"✅",text:e("status.connectedSuccessfully")})).with({sessionState:"signaling",signalState:"standby"},()=>({icon:"🫥",text:e("status.connecting")})).with({sessionState:"signaling",signalState:"connecting"},()=>({icon:"↗️",text:e("status.connecting")})).with({sessionState:"signaling",signalState:"ready"},()=>({icon:"👋",text:e("status.ready")})).with({sessionState:"signaling",signalState:"handshake"},()=>({icon:"🤝",text:e("status.handshakeClosed")})).with({sessionState:"signaling",signalState:"handshake-partial"},()=>({icon:"🤝",text:e("status.handshakePartial")})).with({sessionState:"signaling",signalState:"encrypted"},()=>({icon:"🔒",text:e("status.encrypted")})).with({sessionState:"signaling",signalState:"error"},()=>({icon:"❌",text:e("status.signalError")})).otherwise(()=>{})});return o.createComponent(g.Show,{get when(){return n()},children:r=>(()=>{var a=In(),i=a.firstChild,l=i.nextSibling;return o.insert(i,()=>r().text),o.insert(l,()=>r().icon),a})()})};var qn=o.template('<div class="h-11 w-full">'),Kn=o.template('<div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)"><a href=https://github.com/v3xlabs/open-lavatory target=_blank rel=noreferrer class="flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)"><img alt="Open Lavatory Logo"width=20 height=20 class=rounded data-openlv-brand-logo><span>openlv</span></a><div class="text-sm text-(--lv-text-muted)">');const Wn=()=>[qn(),(()=>{var e=Kn(),t=e.firstChild,n=t.firstChild,r=t.nextSibling;return o.setAttribute(n,"src",Pt),o.insert(r,o.createComponent(Un,{})),e})()];var Hn=o.template('<div class="flex items-center justify-between px-2 py-2"><h2 class="flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg">');const Gn=e=>{const{t}=F();return(()=>{var n=Hn(),r=n.firstChild;return o.insert(n,(()=>{var a=o.memo(()=>!!e.onBack);return()=>a()?o.createComponent(le,{get onClick(){return e.onBack},get"aria-label"(){return String(e.view==="settings"?t("modal.backToQr"):t("modal.closeModal"))},$variant:"tertiary",$aspect:"square",$size:"md",get children(){return o.createComponent(Zr,{class:"h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"})}}):o.createComponent(le,{type:"button",onClick:()=>e.setView("info"),$variant:"tertiary",$aspect:"square",$size:"md",get children(){return o.createComponent(_t,{class:"h-5 w-5"})}})})(),r),o.insert(r,()=>e.title),o.insert(n,o.createComponent(le,{type:"button",get"aria-label"(){return String(t("common.close"))},"aria-pressed":!1,get onClick(){return e.onClose},$variant:"tertiary",$aspect:"square",$size:"md",get children(){return o.createComponent(yn,{class:"h-6 w-6 text-(--lv-text-muted)"})}}),null),n})()},Qn=(e,{transitionDuration:t=200}={})=>{const[n,r]=g.createSignal([e]),[a,i]=g.createSignal(0),l=g.createMemo(()=>n()[a()]??e),{current:s,previous:c,isTransitioning:d}=Ie(l,{duration:t});return{screen:s,previousScreen:c,isTransitioning:d,navigate:f=>{const p=a(),m=n(),k=m[p];if(Object.is(k,f))return;const h=m.slice(0,p+1);h.push(f),r(h),i(h.length-1)},goBack:()=>{i(f=>Math.max(0,f-1))},isAtRoot:()=>a()===0}};var Jn=o.template('<div class="modal-transition__layer modal-transition__layer--outgoing">'),Xn=o.template("<div><div>");const Zn=e=>(()=>{var t=Xn(),n=t.firstChild;return o.insert(t,o.createComponent(g.Show,{get when(){return e.previous!==void 0},get children(){var r=Jn();return o.insert(r,()=>e.render(e.previous)),r}}),n),o.insert(n,()=>e.render(e.current)),o.effect(r=>{var a=Y("modal-transition__container",e.class),i=Y("modal-transition__layer",e.isTransitioning&&"modal-transition__layer--incoming");return a!==r.e&&o.className(t,r.e=a),i!==r.t&&o.className(n,r.t=i),r},{e:void 0,t:void 0}),t})();var Yn=o.template('<div><div class="flex items-end justify-between py-1 pl-2"><div class="font-medium text-(--lv-text-primary) text-sm"></div><div></div></div><div class="flex flex-col gap-1 rounded-md bg-(--lv-card-background)">');const fe=e=>(()=>{var t=Yn(),n=t.firstChild,r=n.firstChild,a=r.nextSibling,i=n.nextSibling;return o.insert(r,()=>e.title),o.insert(a,()=>e.right),o.insert(i,()=>e.children),t})();var eo=o.template('<div class="flex items-baseline justify-between gap-2 px-2 py-1 first:pt-2 last:pb-2"><div class="text-sm text-(--lv-text-secondary) text-start"></div><div>');const me=e=>(()=>{var t=eo(),n=t.firstChild,r=n.nextSibling;return o.insert(n,()=>e.label),o.insert(r,()=>e.children),t})();var to=o.template("<select>"),ro=o.template("<div>"),no=o.template("<button type=button>"),oo=o.template("<option>");const ao=Me({slots:{root:"flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",box:"px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"},variants:{active:{on:{box:"bg-(--lv-control-button-secondary-background) text-(--lv-text-primary)"},off:{box:"bg-transparent text-(--lv-text-secondary) cursor-pointer"}}},defaultVariants:{active:"off"}}),io=Me({base:"w-full rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-3 py-2 font-semibold text-xs text-(--lv-text-primary) cursor-pointer focus:outline-none focus:ring-2 focus:ring-(--lv-control-button-primary-background) appearance-none bg-[url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:14px] bg-[right_8px_center] bg-no-repeat pr-8"}),Pe=e=>{const t=io(),{root:n,box:r}=ao({});return o.createComponent(g.Show,{get when(){return e.options.length>(e.dropdownThreshold??3)},get fallback(){return(()=>{var a=ro();return o.insert(a,o.createComponent(g.For,{get each(){return e.options},children:([i,l])=>(()=>{var s=no();return s.$$click=()=>e.onChange(i),o.insert(s,l),o.effect(c=>{var d=i===e.value,u=r({active:i===e.value?"on":"off"});return d!==c.e&&o.setAttribute(s,"aria-pressed",c.e=d),u!==c.t&&o.className(s,c.t=u),c},{e:void 0,t:void 0}),s})()})),o.effect(()=>o.className(a,n())),a})()},get children(){var a=to();return a.addEventListener("change",i=>e.onChange(i.currentTarget.value)),o.className(a,t),o.insert(a,o.createComponent(g.For,{get each(){return e.options},children:([i,l])=>(()=>{var s=oo();return s.value=i,o.insert(s,l),s})()})),o.effect(()=>a.value=e.value),a}})};o.delegateEvents(["click"]);const so=()=>{const{t:e}=F(),t=Mt(),n=()=>t.mode()==="auto",r=()=>t.mode()==="auto"?"system":t.mode(),a=i=>{};return o.createComponent(g.Show,{get when(){return n()},get children(){return o.createComponent(me,{get label(){return e("settings.theme.mode")},get children(){return o.createComponent(Pe,{get options(){return[["light",e("settings.theme.light")],["dark",e("settings.theme.dark")],["system",e("settings.theme.system")]]},get value(){return r()},onChange:i=>a()})}})}})},lo=()=>{const{t:e,languageTag:t,setLanguageTag:n}=F(),{settings:r,setLanguage:a}=ye(),i=g.createMemo(()=>[...qe].sort((s,c)=>{const d=at(s.tag);return at(c.tag)-d})),l=s=>{const c=s;n(c),a(c)};return o.createComponent(fe,{get title(){return e("settings.appearance")},get children(){return[o.createComponent(me,{get label(){return e("settings.language")},get children(){return o.createComponent(Pe,{get options(){return i().map(s=>[s.tag,s.nativeName])},get value(){return r()?.language||t()},onChange:l})}}),o.createComponent(so,{})]}})};var co=o.template("<div><div></div><div>"),uo=o.template("<div>Text");const go=Me({slots:{root:"group relative",box:"cursor-pointer rounded-md transition-colors flex items-center justify-center hover:[background-color:var(--lv-control-button-tertiary-hoverBackground)] text-(--lv-text-muted)",popover:"-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md shadow-sm group-hover:block border border-(--lv-control-button-secondary-border) bg-(--lv-body-background) px-2 py-1.5 text-(--lv-text-primary) text-sm",icon:""},variants:{size:{sm:{box:"h-5 w-5 p-1",icon:"h-3 w-3"},md:{box:"h-6 w-6 p-1",icon:"h-4 w-4"},lg:{box:"h-8 w-8 p-1.5",icon:"h-4 w-4"}},variant:{icon:"",text:""}},defaultVariants:{size:"lg"}}),vt=e=>{const t=g.mergeProps({variant:"icon",size:"lg"},e),{root:n,box:r,popover:a,icon:i}=go({size:t.size,variant:t.variant});return(()=>{var l=co(),s=l.firstChild,c=s.nextSibling;return o.insert(s,()=>ne(t.variant).with("icon",()=>o.createComponent(_t,{get class(){return i()}})).with("text",()=>uo()).exhaustive()),o.insert(c,()=>t.children),o.effect(d=>{var u=n(),v=r(),f=a();return u!==d.e&&o.className(l,d.e=u),v!==d.t&&o.className(s,d.t=v),f!==d.a&&o.className(c,d.a=f),d},{e:void 0,t:void 0,a:void 0}),l})()};var vo=o.template('<span class="text-sm text-(--lv-text-muted)">'),po=o.template('<button type=button class="flex w-full cursor-pointer items-center justify-between gap-2 first:rounded-t-sm last:rounded-b-sm px-2 py-1 first:pt-1.5 last:pb-2 hover:bg-(--lv-control-button-tertiary-hoverBackground)"><div class="text-sm text-(--lv-text-secondary) flex items-center gap-1"></div><div class="flex items-center gap-1">');const pt=e=>(()=>{var t=po(),n=t.firstChild,r=n.nextSibling;return o.addEventListener(t,"click",e.onClick,!0),o.insert(n,()=>e.label),o.insert(r,o.createComponent(g.Show,{get when(){return e.value},get children(){var a=vo();return o.insert(a,()=>e.value),a}}),null),o.insert(r,o.createComponent(tn,{class:"h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"}),null),t})();o.delegateEvents(["click"]);const ho=e=>{const{t}=F();return o.createComponent(Pe,{get options(){return[["true",String(t("common.yes"))],["false",String(t("common.no"))]]},get value(){return e.value?"true":"false"},onChange:n=>e.onChange(n==="true")})},fo=e=>{const{t}=F(),{settings:n,setRetainSessionHistory:r,setAutoReconnect:a}=ye();return o.createComponent(fe,{get title(){return t("settings.connectionPreferences.title")},get children(){return[o.createComponent(pt,{get label(){return[o.memo(()=>t("settings.signaling.title")),o.createComponent(vt,{variant:"icon",get children(){return t("settings.signaling.description")}})]},onClick:()=>e.onNavigate("signaling"),get value(){return n()?.signaling?.p}}),o.createComponent(pt,{get label(){return[o.memo(()=>t("settings.transport.title")),o.createComponent(vt,{variant:"icon",get children(){return t("settings.transport.description")}})]},onClick:()=>e.onNavigate("transport"),value:"WebRTC"}),o.createComponent(g.For,{get each(){return[[t("settings.connectionPreferences.retainSessionHistory"),n()?.retainHistory??!1,r],[t("settings.connectionPreferences.autoReconnect"),n()?.autoReconnect??!1,a]]},children:([i,l,s])=>o.createComponent(me,{label:i,get children(){return o.createComponent(ho,{label:i,value:l,onChange:s})}})})]}})};var mo=o.template('<input class="h-9 w-full rounded-lg border bg-white px-3 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 text-(--lv-text-primary) bg-(--lv-body-background) border-(--lv-control-input-border)">');const ve=e=>{const t=g.mergeProps({readOnly:!0},e),[n]=g.splitProps(t,["id","value","placeholder","ariaLabel","readOnly","onChange"]);return(()=>{var r=mo();return r.$$input=a=>{n.onChange?.(a.currentTarget.value)},o.effect(a=>{var i=n.id,l=n.placeholder,s=n.ariaLabel,c=n.readOnly;return i!==a.e&&o.setAttribute(r,"id",a.e=i),l!==a.t&&o.setAttribute(r,"placeholder",a.t=l),s!==a.a&&o.setAttribute(r,"aria-label",a.a=s),c!==a.o&&(r.readOnly=a.o=c),a},{e:void 0,t:void 0,a:void 0,o:void 0}),o.effect(()=>r.value=n.value),r})()};o.delegateEvents(["input"]);var bo=o.template('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');const yo=["mqtt","ntfy","gun"],wo=()=>{const{t:e}=F(),{settings:t,setSignalingProtocol:n,setSignalingOptions:r}=ye(),a=g.createMemo(()=>t()?.signaling?.p),i=g.createMemo(()=>{const l=a();return l?t()?.signaling?.s?.[l]??"":""});return(()=>{var l=bo(),s=l.firstChild;return o.insert(l,o.createComponent(fe,{get title(){return e("settings.signaling.title")},get children(){return[o.createComponent(me,{get label(){return e("common.protocol")},get children(){return o.createComponent(Pe,{get options(){return yo.map(c=>[c.toLowerCase(),c.toUpperCase()])},get value(){return a()??""},onChange:c=>n(c)})}}),o.createComponent(me,{get label(){return e("settings.signaling.server")},get children(){return o.createComponent(ve,{id:"server",get value(){return i()},onChange:c=>r({url:c}),get placeholder(){return String(e("settings.signaling.serverUrl"))},get ariaLabel(){return String(e("settings.signaling.serverUrl"))},readOnly:!1})}})]}}),s),o.insert(s,()=>e("settings.signaling.description")),l})()};var xo=o.template('<div class="flex items-center gap-2"><div class=flex-1>'),ko=o.template('<button type=button class="flex w-full cursor-pointer items-center justify-center gap-1 rounded-md border border-dashed border-(--lv-control-input-border) py-2 text-sm text-(--lv-text-muted) hover:bg-(--lv-card-background)">'),Co=o.template('<div class="flex flex-col gap-2 p-2">'),So=o.template('<div class="flex flex-col gap-3 p-2">'),Ao=o.template('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'),_o=o.template('<div class="flex flex-col gap-2 rounded-md border border-(--lv-control-input-border) p-2"><div class="grid grid-cols-2 gap-2">');const ht=e=>(()=>{var t=xo(),n=t.firstChild;return o.insert(n,()=>e.children),o.insert(t,o.createComponent(le,{get onClick(){return e.onRemove},$variant:"tertiary",$aspect:"square",$size:"sm",get children(){return o.createComponent(fn,{class:"h-4 w-4 text-(--lv-text-muted)"})}}),null),t})(),ft=e=>(()=>{var t=ko();return o.addEventListener(t,"click",e.onClick,!0),o.insert(t,o.createComponent(sn,{class:"h-4 w-4"}),null),o.insert(t,()=>e.label,null),t})(),$o=()=>{const{t:e}=F();ye();const[t,n]=g.createSignal([]),[r,a]=g.createSignal([]),i=()=>{a([...r(),""])},l=v=>{a(r().filter((f,p)=>p!==v))},s=(v,f)=>{a(r().map((p,m)=>m===v?f:p))},c=()=>{n([...t(),{urls:""}])},d=v=>{n(t().filter((f,p)=>p!==v))},u=(v,f,p)=>{n(t().map((m,k)=>k===v?{...m,[f]:p}:m))};return[o.createComponent(fe,{get title(){return e("settings.transport.iceServers.stun")},get children(){var v=Co();return o.insert(v,o.createComponent(g.For,{get each(){return r()},children:(f,p)=>o.createComponent(ht,{onRemove:()=>l(p()),get children(){return o.createComponent(ve,{value:f,onChange:m=>s(p(),m),placeholder:"stun:stun.l.google.com:19302",readOnly:!1})}})}),null),o.insert(v,o.createComponent(ft,{get label(){return e("settings.transport.iceServers.addStun")},onClick:i}),null),v}}),o.createComponent(fe,{get title(){return e("settings.transport.iceServers.turn")},get children(){var v=So();return o.insert(v,o.createComponent(g.For,{get each(){return t()},children:(f,p)=>(()=>{var m=_o(),k=m.firstChild;return o.insert(m,o.createComponent(ht,{onRemove:()=>d(p()),get children(){return o.createComponent(ve,{get value(){return f.urls},onChange:h=>u(p(),"urls",h),placeholder:"turn:relay.example.com:443",readOnly:!1})}}),k),o.insert(k,o.createComponent(ve,{get value(){return f.username??""},onChange:h=>u(p(),"username",h),placeholder:"Username",readOnly:!1}),null),o.insert(k,o.createComponent(ve,{get value(){return f.credential??""},onChange:h=>u(p(),"credential",h),placeholder:"Password",readOnly:!1}),null),m})()}),null),o.insert(v,o.createComponent(ft,{get label(){return e("settings.transport.iceServers.addTurn")},onClick:c}),null),v}}),(()=>{var v=Ao();return o.insert(v,()=>e("settings.transport.description")),v})()]};o.delegateEvents(["click"]);var To=o.template('<div class="px-4 pb-2">');const No=e=>{switch(e){case"main":return"settings.title";case"signaling":return"settings.signaling.title";case"transport":return"settings.transport.title"}},Mo=e=>{const{screen:t,previousScreen:n,isTransitioning:r,navigate:a,goBack:i,isAtRoot:l}=Qn("main"),s={goBack:i,get isAtRoot(){return l()}};g.createEffect(()=>{e.navigationRef&&(e.navigationRef.current=s)}),g.createEffect(()=>{e.onTitleChange?.(No(t()))});const c=d=>{switch(d){case"main":return[o.createComponent(fo,{onNavigate:a}),o.createComponent(lo,{})];case"signaling":return o.createComponent(wo,{});case"transport":return o.createComponent($o,{})}};return(()=>{var d=To();return o.insert(d,o.createComponent(Zn,{get current(){return t()},get previous(){return n()},get isTransitioning(){return r()},render:c})),d})()};var Po=o.template("<div class=modal-transition__container><div>"),Ro=o.template('<div class="modal-transition__layer modal-transition__layer--outgoing">'),Bo=o.template('<div class="fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center md:items-center lg:p-4"role=presentation data-openlv-modal-root><div role=dialog aria-modal=true><div><div class=modal-transition__container><div><div class="flex flex-col text-center"></div></div></div></div><div>');const Eo=()=>{const[e,t]=g.createSignal("start"),[n,r]=g.createSignal(!1);return g.createEffect(()=>{if(!n())return;const a=globalThis.setTimeout(()=>r(!1),2e3);g.onCleanup(()=>globalThis.clearTimeout(a))}),{view:e,setView:t,copied:n,setCopied:r}},Oo=e=>{g.createEffect(()=>{const t=n=>{n.key==="Escape"&&e()};document.addEventListener("keydown",t),g.onCleanup(()=>document.removeEventListener("keydown",t))})},Lo=()=>{const[e,t]=g.createSignal(),[n,r]=g.createSignal(0),a=(i,l=!1)=>{const s=i||e();if(!s)return;const c=l?s.scrollHeight:s.getBoundingClientRect().height;c>0&&r(d=>typeof d=="number"&&Math.abs(d-c)<.5?d:c)};return g.createEffect(()=>{const i=e();if(!i||typeof ResizeObserver>"u")return;const l=new ResizeObserver(()=>{a()});l.observe(i),g.onCleanup(()=>l.disconnect())}),g.createEffect(()=>{globalThis.window!==void 0&&(window.addEventListener("resize",a),g.onCleanup(()=>window.removeEventListener("resize",a)))}),{setContentRef:t,contentNode:e,height:n,measureHeight:a}},Rt=e=>{const{view:t,setView:n,copied:r,setCopied:a}=Eo(),{uri:i,status:l}=be(),{provider:s}=ce(),{setContentRef:c,contentNode:d,height:u,measureHeight:v}=Lo(),{current:f,previous:p,isTransitioning:m}=Ie(t),{current:k,previous:h,isTransitioning:R}=Ie(l),B=()=>n("settings"),{t:b,isRtl:de,languageTag:E}=F(),we=Mt(),oe={current:null},[Re,xe]=g.createSignal("settings.title"),ue=g.createMemo(()=>ne(t()).with("start",()=>b("start.title")).with("settings",()=>b(Re())).with("info",()=>b("info.title")).exhaustive());Oo(e.onClose),g.createEffect(()=>{l()?.status===q.CONNECTED&&e.onClose()});const ke=async()=>{const A=i();A&&await At(A)&&a(!0)};let Ce=!0,te,w,x;const[C,$]=g.createSignal(!1);g.createEffect(()=>{k(),f(),d()&&(Ce?(te&&globalThis.clearTimeout(te),te=globalThis.setTimeout(()=>{d()&&(v(void 0,!0),Ce=!1)},0)):v(),g.onCleanup(()=>{te&&globalThis.clearTimeout(te)}))}),g.createEffect(()=>{const A=u();w!==void 0&&A!==w&&A>0&&w>0&&Math.abs(A-w)>.5&&($(!0),x&&globalThis.clearTimeout(x),x=globalThis.setTimeout(()=>{$(!1),x=void 0},200)),w=A,g.onCleanup(()=>{x&&globalThis.clearTimeout(x)})});const[S,T]=g.createSignal(s.getState().status);g.onMount(()=>{s.on("status_change",T)}),g.onCleanup(()=>{s.off("status_change",T)});const V=g.createMemo(()=>!(t()==="start"&&S()===q.STANDBY)),K=()=>{ne({view:t(),status:S()}).with({view:"start",status:q.STANDBY},()=>{}).with({view:"start"},()=>{s.closeSession()}).with({view:"settings"},()=>{oe.current&&!oe.current.isAtRoot?oe.current.goBack():n("start")}).with({view:"info"},()=>{n("start")}).otherwise(()=>{s.closeSession(),e.onClose()})},O=A=>ne(A).with("start",()=>o.createComponent(Fn,{onSettings:B})).with("settings",()=>o.createComponent(Mo,{onTitleChange:xe,navigationRef:oe})).with("info",()=>o.createComponent(Dn,{})).otherwise(()=>o.createComponent(ze,{state:A})),I=()=>(()=>{var A=Po(),z=A.firstChild;return o.insert(A,o.createComponent(g.Show,{get when(){return p()},children:re=>(()=>{var ge=Ro();return o.insert(ge,()=>O(re())),ge})()}),z),o.insert(z,()=>O(f())),o.effect(()=>o.className(z,Y("modal-transition__layer",m()&&"modal-transition__layer--incoming"))),A})(),G=A=>ne(A).with(q.STANDBY,()=>I()).with(nr.union(q.CREATING,q.CONNECTING,q.CONNECTED),()=>o.createComponent(Ir,{get onClose(){return e.onClose},onCopy:ke})).otherwise(z=>o.createComponent(ze,{state:z||"unknown status"})),U={background:"var(--lv-overlay-background, rgba(0,0,0,0.3))","backdrop-filter":"var(--lv-overlay-backdrop-filter, blur(4px))"},ae={background:"var(--lv-body-background)",color:"var(--lv-body-color, var(--lv-text-primary))","border-radius":"var(--lv-border-radius, 16px)","box-shadow":"var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"};return(()=>{var A=Bo(),z=A.firstChild,re=z.firstChild,ge=re.firstChild,Ke=ge.firstChild,Et=Ke.firstChild,We=re.nextSibling;return A.$$mouseup=N=>{N.target===N.currentTarget&&e.onClose()},o.style(A,U),z.$$click=N=>N.stopPropagation(),o.use(c,re),o.insert(re,o.createComponent(Gn,{get title(){return String(ue())},get view(){return t()},get onClose(){return e.onClose},get onBack(){return V()?K:void 0},setView:n}),ge),o.insert(Et,()=>G(S())),o.insert(re,o.createComponent(Wn,{}),null),o.insert(We,()=>b("modal.urlCopied")),o.effect(N=>{var He=we.mode(),Ge=E(),Qe=de()?"rtl":"ltr",Je=Y("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",C()||h()?"overflow-hidden":void 0),Xe=String(ue()),Ot={...typeof u()=="number"&&u()>0?{height:`${u()}px`}:{},...ae},Ze=Y("modal-transition__layer",R()&&"modal-transition__layer--incoming"),Ye=Y("absolute top-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all ltr:right-5 rtl:left-5",r()?"translate-x-0 opacity-100":"opacity-0 ltr:translate-x-full rtl:-translate-x-full");return He!==N.e&&o.setAttribute(A,"data-openlv-theme-mode",N.e=He),Ge!==N.t&&o.setAttribute(A,"lang",N.t=Ge),Qe!==N.a&&o.setAttribute(A,"dir",N.a=Qe),Je!==N.o&&o.className(z,N.o=Je),Xe!==N.i&&o.setAttribute(z,"aria-label",N.i=Xe),N.n=o.style(z,Ot,N.n),Ze!==N.s&&o.className(Ke,N.s=Ze),Ye!==N.h&&o.className(We,N.h=Ye),N},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),A})()};o.delegateEvents(["mouseup","click"]);const jo=(...e)=>console.log("%c[modal]%c","color: yellow; font-weight: bold","color: inherit; font-weight: normal",...e),Bt=(e="openlv-modal")=>{if(globalThis.window===void 0)return e;const t=globalThis.customElements;return t?(t.get(e)||t.define(e,Ne),e):(console.warn("OpenLV modal: custom elements are not supported in this environment."),e)},Vo=e=>{const t=document.querySelector("openlv-modal");if(t&&t.remove(),!t){Bt();const n=new Ne({onClose(){jo("modal closed"),n.remove(),e.onClose?.()},provider:e.provider,theme:e.theme});document.body.append(n)}};exports.ModalRoot=Rt;exports.OPENLV_ICON_128=Pt;exports.OpenLVModalElement=Ne;exports.default=Ne;exports.registerOpenLVModal=Bt;exports.triggerOpenModal=Vo;
|
|
5
|
+
`+Zt}else n.textContent=Zt};class ut extends HTMLElement{constructor(r){super();_e(this,"shadow");_e(this,"renderRequested",!1);_e(this,"parameters");_e(this,"themeCleanup");_e(this,"disposeRender");this.parameters=r,this.shadow=this.attachShadow({mode:"open"});const n=r.provider.storage.getSettings()?.theme??"system";Yt(this.shadow,r.theme,n)}connectedCallback(){this.requestRender(),this.themeCleanup?.(),this.setupThemeListener()}disconnectedCallback(){this.disposeRender?.(),this.disposeRender=void 0,this.themeCleanup?.()}setupThemeListener(){const r=()=>{const o=this.parameters.provider.storage.getSettings()?.theme??"system";Yt(this.shadow,this.parameters.theme,o)};this.parameters.provider.storage.emitter.on("settings_change",r);const n=globalThis.matchMedia("(prefers-color-scheme: dark)");n.addEventListener("change",r),this.themeCleanup=()=>{this.parameters.provider.storage.emitter.off("settings_change",r),n.removeEventListener("change",r)}}showModal(){this.style.display="block"}hideModal(){this.style.display="none"}requestRender(){this.renderRequested||(this.renderRequested=!0,queueMicrotask(()=>{this.renderRequested=!1,this.performRender()}))}performRender(){this.disposeRender?.(),this.disposeRender=yn(()=>{const r=this;return g(po,G(()=>r.parameters))},this.shadow)}}const eo={close:"Close",yes:"Yes",no:"No",protocol:"Protocol"},to={connectedSuccessfully:"Connected Successfully!",connecting:"Connecting",ready:"Ready",handshakeClosed:"Handshake Closed",handshakePartial:"Handshake Partial",encrypted:"Encrypted",signalError:"Signal Error",disconnected:"Disconnected"},ro={title:"Settings",language:"Language",connection:{title:"Connection",description:"Configure how you connect to your wallet."},theme:{title:"Appearance",mode:"Theme",light:"Light",dark:"Dark",system:"System"},connectionPreferences:{title:"Connection preferences",retainSessionHistory:"Retain session history",autoReconnect:"Auto reconnect"},signaling:{title:"Signaling",description:"Signaling is the handshake protocol used to establish a connection.",server:"Server",serverUrl:"Server URL"},transport:{title:"Transport",description:"This is how the connection is maintained.",webrtc:"WebRTC",iceServers:{title:"ICE Servers",stun:"STUN Servers",turn:"TURN Servers",addStun:"Add STUN Server",addTurn:"Add TURN Server",username:"Username",credential:"Password"}},appearance:"Appearance"},no={title:"Connect Wallet"},oo={title:"What is openlv?",scanQrCode:"Scan QR Code",approveOnDevice:"Approve on device",youreConnected:"You're connected!"},io={prompt:"Click the button below to start a connection",generateQr:"Generate QR",connectionSettings:"Connection settings"},ao={preparingConnection:"Preparing connection",generatingKeys:"Generating keys...",connecting:"Connecting",waitingForNetwork:"Waiting for network connection...",establishingConnection:"Establishing connection...",mayTakeFewSeconds:"This may take a few seconds...",connectedSuccessfully:"Connected Successfully!",walletConnectedReady:"Your wallet is now connected and ready to use.",disconnected:"Disconnected",connectionClosed:"The connection has been closed."},so={clickToCopyUrl:"Click to copy connection URL",copyConnectionUrl:"Copy Connection URL",scanCodeInstruction:`Scan the code above using your mobile wallet.
|
|
6
|
+
Or copy the link and paste it into your wallet.`},lo={urlCopied:"Connection URL copied to clipboard!",backToQr:"Back to QR",closeModal:"Close modal"},co={common:eo,status:to,settings:ro,start:no,info:oo,disconnected:io,connectionFlow:ao,handshake:so,modal:lo};var uo=m("<br>");const Bt=[{tag:"en",name:"English",nativeName:"English"},{tag:"nl",name:"Dutch",nativeName:"Nederlands"},{tag:"es",name:"Spanish",nativeName:"Español"},{tag:"sv",name:"Swedish",nativeName:"Svenska"},{tag:"zh-cn",name:"Chinese (Simplified)",nativeName:"简体中文"},{tag:"fr",name:"French",nativeName:"Français"},{tag:"ar",name:"Arabic",nativeName:"العربية",rtl:!0},{tag:"he",name:"Hebrew",nativeName:"עברית",rtl:!0},{tag:"fa",name:"Persian",nativeName:"فارسی",rtl:!0}],go=e=>Bt.find(r=>r.tag===e)?.rtl??!1;new Set(Bt.map(e=>e.tag));const er=e=>{if(typeof navigator>"u")return 0;const t=navigator.languages||[navigator.language];for(let r=0;r<t.length;r++){const n=t[r].toLowerCase();if(n===e)return t.length-r+1;if(n.startsWith(`${e}-`)||e.startsWith(`${n}-`))return t.length-r;const[o]=n.split("-");if(o===e||e.startsWith(`${o}-`))return t.length-r-.5}return 0},tr=(e,t)=>{if(!e)return;const r=t.split(".").filter(Boolean);if(r.length===0)return;let n=e;for(const o of r){if(typeof n!="object"||n===null)return;n=n[o]}return n},rr=(e,t)=>t?e.replaceAll(/\{(\w+)\}/g,(r,n)=>{const o=t[n];return o===void 0?r:String(o)}):e,fo=e=>{const t=tr(e.primary,e.key);if(typeof t=="string")return rr(t,e.params);const r=tr(e.fallback,e.key);return typeof r=="string"?rr(r,e.params):e.key},Pr=vr(void 0),ho=async e=>ke(e).with("en",()=>Promise.resolve(void 0)).with("nl",async()=>Promise.resolve().then(()=>require("./nl-bCeoO8RU.cjs")).then(t=>t.default)).with("es",async()=>Promise.resolve().then(()=>require("./es-B9xaw9fo.cjs")).then(t=>t.default)).with("sv",async()=>Promise.resolve().then(()=>require("./sv-BHh_RkLw.cjs")).then(t=>t.default)).with("fr",async()=>Promise.resolve().then(()=>require("./fr-D54ESMxz.cjs")).then(t=>t.default)).with("zh-cn",async()=>Promise.resolve().then(()=>require("./zh-cn-Bqo3eRaE.cjs")).then(t=>t.default)).with("ar",async()=>Promise.resolve().then(()=>require("./ar-xpXGBcxc.cjs")).then(t=>t.default)).with("he",async()=>Promise.resolve().then(()=>require("./he-BWZyf3Uy.cjs")).then(t=>t.default)).with("fa",async()=>Promise.resolve().then(()=>require("./fa-DCpZYzOX.cjs")).then(t=>t.default)).exhaustive(),vo=e=>{const{provider:t}=Pe(),r=t.storage.getSettings().language,[n,o]=D(r??"en"),[i,s]=D(void 0),[a,l]=D(!1);ee(()=>{let v=!1;(async()=>{l(!0);try{const w=await ho(n());if(v)return;s(w)}finally{v||l(!1)}})(),te(()=>{v=!0})});const d=(v,b)=>{const w=fo({primary:i(),fallback:co,key:v,params:b}),p=w.split(`
|
|
7
|
+
`);return p.length<=1?w:Ce(()=>p.map((R,S)=>[R,Ce(()=>Ce(()=>S<p.length-1)()?uo():null)]))},u=$(()=>go(n())),h={languageTag:n,setLanguageTag:v=>{o(v)},isLoadingLanguagePack:a,isRtl:u,t:d};return g(Pr.Provider,{value:h,get children(){return e.children}})},Q=()=>{const e=pr(Pr);if(!e)throw new Error("TranslationProvider not found");return e},Rr=vr(void 0),po=e=>{const{provider:t,theme:r}=e;return g(Rr.Provider,{value:{provider:t,themeConfig:r},get children(){return g(vo,{get children(){return g(Ir,{get onClose(){return e.onClose}})}})}})},Pe=()=>{const e=pr(Rr);if(!e)throw new Error("Modal context not found");return e},Ke=()=>{const{provider:e}=Pe(),t=$(()=>e.getSession(),void 0,{name:"session"}),[r,n]=D(t()?.getState());console.log("session status",r());const o=a=>{console.log("session state change",a),n(a)};Ot(()=>{t()?.emitter.on("state_change",o)}),te(()=>{t()?.emitter.off("state_change",o)});const i=$(()=>t()?.getHandshakeParameters());return{uri:$(()=>{const a=i();return a?On(a):void 0}),status:r}},bo=()=>{const{provider:e}=Pe();return{start:()=>{const t=e.storage.getSettings(),r=t?.signaling?.p,n=r?t?.signaling?.s?.[r]:void 0;if(!r||!n)throw new Error("Invalid protocol or server");return e.createSession({p:r,s:n})}}};var mo=m('<div class="rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)"><div>Unknown state:</div><div>URI:</div><div>Session Status:');const _t=e=>{const{uri:t,status:r}=Ke();return console.error("Unknown state:",{state:e.state}),(()=>{var n=mo(),o=n.firstChild;o.firstChild;var i=o.nextSibling;i.firstChild;var s=i.nextSibling;return s.firstChild,f(o,()=>JSON.stringify(e.state),null),f(i,t,null),f(s,()=>JSON.stringify(r()),null),n})()},Br=async e=>{if(!e)return!1;try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch(t){console.error("Failed to copy to clipboard",t)}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.append(t),t.focus(),t.select();const r=document.execCommand("copy");return t.remove(),r}catch{return!1}};var yo=m('<div class="flex flex-col items-center gap-4 px-2"><div class="w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4"><div class=w-full><button type=button class="w-full cursor-pointer rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-4 py-2 text-sm text-(--lv-text-primary) transition hover:bg-(--lv-control-button-secondary-hoverBackground) active:bg-(--lv-control-button-secondary-activeBackground)"></button></div></div><div class="w-full text-sm text-(--lv-text-secondary)"><span>'),wo=m('<div class="relative mx-auto flex w-fit items-center justify-center rounded-lg border border-(--lv-control-button-secondary-border) bg-(--lv-qr-background) p-4"><button type=button class="h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)">');const xo=e=>{const t=Qr.default,r=t(0,"M");return r.addData(e),r.make(),r.createSvgTag({cellSize:5,margin:0,scalable:!0})},ko=()=>{const{t:e}=Q(),{uri:t}=Ke(),r=()=>{const n=t();n&&Br(n)};return(()=>{var n=yo(),o=n.firstChild,i=o.firstChild,s=i.firstChild,a=o.nextSibling,l=a.firstChild;return f(o,g(Se,{get when(){return t()},children:d=>(()=>{var u=wo(),c=u.firstChild;return c.$$click=r,F(h=>{var v=String(e("handshake.clickToCopyUrl")),b=xo(d());return v!==h.e&&Z(c,"title",h.e=v),b!==h.t&&(c.innerHTML=h.t=b),h},{e:void 0,t:void 0}),u})()}),i),s.$$click=r,f(s,()=>e("handshake.copyConnectionUrl")),f(l,()=>e("handshake.scanCodeInstruction")),n})()};be(["click"]);var Co=m('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),nr=m('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),So=m("<div>");const or=()=>Co(),Ao=()=>{const{status:e}=Ke(),{t}=Q();return(()=>{var r=So();return f(r,g(Sr,{get children(){return[g(xe,{get when(){return[Xe.CREATED,Xe.SIGNALING].includes(e()?.status??"")},get children(){var n=nr(),o=n.firstChild,i=o.firstChild,s=i.nextSibling;return f(n,g(or,{}),o),f(i,()=>t("connectionFlow.connecting")),f(s,()=>t("connectionFlow.waitingForNetwork")),n}}),g(xe,{get when(){return e()?.status===Xe.READY},get children(){return g(ko,{})}}),g(xe,{get when(){return e()?.status===Xe.LINKING},get children(){var n=nr(),o=n.firstChild,i=o.firstChild,s=i.nextSibling;return f(n,g(or,{}),o),f(i,()=>t("connectionFlow.establishingConnection")),f(s,()=>t("connectionFlow.mayTakeFewSeconds")),n}})]}})),r})()};var $o=m('<div class="flex items-center justify-center"><div class="h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent">'),To=m('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),_o=m('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">✅</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="text-(--lv-text-muted) text-sm">'),No=m('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><div class="mb-4 text-4xl">🔌</div><h3 class="mb-2 font-semibold text-(--lv-text-primary) text-lg"></h3><p class="mb-4 text-(--lv-text-muted) text-sm"></p></div><button type=button class="w-full rounded-lg bg-(--lv-control-button-secondary-background) px-4 py-2 font-semibold text-(--lv-text-primary) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)">'),Eo=m("<div class=w-full style=view-transition-name:connection-flow>");const Oo=()=>$o(),Po=e=>{const{t}=Q(),{provider:r}=Pe(),[n,o]=D(r.getState().status);return Ot(()=>{r.on("status_change",o)}),te(()=>{r.off("status_change",o)}),(()=>{var i=Eo();return f(i,g(Sr,{get fallback(){return g(_t,{get state(){return n()}})},get children(){return[g(xe,{get when(){return n()===oe.CREATING},get children(){var s=To(),a=s.firstChild,l=a.firstChild,d=l.nextSibling;return f(s,g(Oo,{}),a),f(l,()=>t("connectionFlow.preparingConnection")),f(d,()=>t("connectionFlow.generatingKeys")),s}}),g(xe,{get when(){return n()===oe.CONNECTING},get children(){return g(Ao,{})}}),g(xe,{get when(){return n()===oe.CONNECTED},get children(){var s=_o(),a=s.firstChild,l=a.firstChild,d=l.nextSibling,u=d.nextSibling;return f(d,()=>t("connectionFlow.connectedSuccessfully")),f(u,()=>t("connectionFlow.walletConnectedReady")),s}}),g(xe,{get when(){return n()===oe.ERROR},get children(){var s=No(),a=s.firstChild,l=a.firstChild,d=l.nextSibling,u=d.nextSibling,c=a.nextSibling;return f(d,()=>t("connectionFlow.disconnected")),f(u,()=>t("connectionFlow.connectionClosed")),dt(c,"click",e.onClose,!0),f(c,()=>t("common.close")),s}})]}})),i})()};be(["click"]);var Ro={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Ee=Ro,Bo=m("<svg>"),Mo=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Lo=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),jo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),ir=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Do=e=>{const t=jo(e);return t.charAt(0).toUpperCase()+t.slice(1)},Vo=e=>{const[t,r]=ct(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]);return(()=>{var n=Bo();return ot(n,G(Ee,{get width(){return t.size??Ee.width},get height(){return t.size??Ee.height},get stroke(){return t.color??Ee.stroke},get"stroke-width"(){return Ce(()=>!!t.absoluteStrokeWidth)()?Number(t.strokeWidth??Ee["stroke-width"])*24/Number(t.size):Number(t.strokeWidth??Ee["stroke-width"])},get class(){return Lo("lucide","lucide-icon",...t.name!=null?[`lucide-${ir(Do(t.name))}`,`lucide-${ir(t.name)}`]:[],t.class!=null?t.class:"")},get"aria-hidden"(){return!t.children&&!Mo(r)?"true":void 0}},r),!0,!0),f(n,g(ve,{get each(){return t.iconNode},children:([o,i])=>g(Nn,G({component:o},i))})),n})()},me=Vo,Fo=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Io=e=>g(me,G(e,{iconNode:Fo,name:"chevron-left"})),zo=Io,Uo=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ko=e=>g(me,G(e,{iconNode:Uo,name:"chevron-right"})),qo=Ko,Go=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Wo=e=>g(me,G(e,{iconNode:Go,name:"circle-question-mark"})),Mr=Wo,Ho=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qo=e=>g(me,G(e,{iconNode:Ho,name:"plus"})),Xo=Qo,Jo=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],Zo=e=>g(me,G(e,{iconNode:Jo,name:"qr-code"})),Yo=Zo,ei=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ti=e=>g(me,G(e,{iconNode:ei,name:"settings"})),ri=ti,ni=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],oi=e=>g(me,G(e,{iconNode:ni,name:"trash-2"})),ii=oi,ai=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],si=e=>g(me,G(e,{iconNode:ai,name:"x"})),li=si,ci=/\s+/g,di=e=>typeof e!="string"||!e?e:e.replace(ci," ").trim(),st=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let i=0,s=n.length;i<s;i++)r(n[i]);return}const o=typeof n;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&n!==n)return;t.push(String(n))}else if(o==="object"){const i=Object.keys(n);for(let s=0,a=i.length;s<a;s++){const l=i[s];n[l]&&t.push(l)}}};for(let n=0,o=e.length;n<o;n++){const i=e[n];i!=null&&r(i)}return t.length>0?di(t.join(" ")):void 0},ar=e=>e===!1?"false":e===!0?"true":e===0?"0":e,J=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},ui=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){const i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0},gi=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=st(e[r],n):e[r]=n}return e},Lr=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?Lr(n,t):n&&t.push(n)}},jr=(...e)=>{const t=[];Lr(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},Nt=(e,t)=>{const r={};for(const n in e){const o=e[n];if(n in t){const i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=jr(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=Nt(o,i):r[n]=i+" "+o}else r[n]=o}for(const n in t)n in e||(r[n]=t[n]);return r},fi={twMerge:!0,twMergeConfig:{}};function hi(){let e=null,t={},r=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(n){e=n},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(n){t=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){e=null,t={},r=!1}}}var yt=hi(),vi=e=>{const t=(n,o)=>{const{extend:i=null,slots:s={},variants:a={},compoundVariants:l=[],compoundSlots:d=[],defaultVariants:u={}}=n,c={...fi,...o},h=i?.base?st(i.base,n?.base):n?.base,v=i?.variants&&!J(i.variants)?Nt(a,i.variants):a,b=i?.defaultVariants&&!J(i.defaultVariants)?{...i.defaultVariants,...u}:u;!J(c.twMergeConfig)&&!ui(c.twMergeConfig,yt.cachedTwMergeConfig)&&(yt.didTwMergeConfigChange=!0,yt.cachedTwMergeConfig=c.twMergeConfig);const w=J(i?.slots),p=J(s)?{}:{base:st(n?.base,w&&i?.base),...s},R=w?p:gi({...i?.slots},J(p)?{base:n?.base}:p),S=J(i?.compoundVariants)?l:jr(i?.compoundVariants,l),y=E=>{if(J(v)&&J(s)&&w)return e(h,E?.class,E?.className)(c);if(S&&!Array.isArray(S))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof S}`);if(d&&!Array.isArray(d))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof d}`);const Ae=(k,C=v,A=null,O=null)=>{const T=C[k];if(!T||J(T))return null;const B=O?.[k]??E?.[k];if(B===null)return null;const W=ar(B);if(typeof W=="object")return null;const ie=b?.[k],U=W??ar(ie);return T[U||"false"]},$e=()=>{if(!v)return null;const k=Object.keys(v),C=[];for(let A=0;A<k.length;A++){const O=Ae(k[A],v);O&&C.push(O)}return C},ht=(k,C)=>{if(!v||typeof v!="object")return null;const A=[];for(const O in v){const T=Ae(O,v,k,C),B=k==="base"&&typeof T=="string"?T:T&&T[k];B&&A.push(B)}return A},Ge={};for(const k in E){const C=E[k];C!==void 0&&(Ge[k]=C)}const Re=(k,C)=>{const A=typeof E?.[k]=="object"?{[k]:E[k]?.initial}:{};return{...b,...Ge,...A,...C}},We=(k=[],C)=>{const A=[],O=k.length;for(let T=0;T<O;T++){const{class:B,className:W,...ie}=k[T];let U=!0;const re=Re(null,C);for(const ce in ie){const ne=ie[ce],Te=re[ce];if(Array.isArray(ne)){if(!ne.includes(Te)){U=!1;break}}else{if((ne==null||ne===!1)&&(Te==null||Te===!1))continue;if(Te!==ne){U=!1;break}}}U&&(B&&A.push(B),W&&A.push(W))}return A},He=k=>{const C=We(S,k);if(!Array.isArray(C))return C;const A={},O=e;for(let T=0;T<C.length;T++){const B=C[T];if(typeof B=="string")A.base=O(A.base,B)(c);else if(typeof B=="object")for(const W in B)A[W]=O(A[W],B[W])(c)}return A},ye=k=>{if(d.length<1)return null;const C={},A=Re(null,k);for(let O=0;O<d.length;O++){const{slots:T=[],class:B,className:W,...ie}=d[O];if(!J(ie)){let U=!0;for(const re in ie){const ce=A[re],ne=ie[re];if(ce===void 0||(Array.isArray(ne)?!ne.includes(ce):ne!==ce)){U=!1;break}}if(!U)continue}for(let U=0;U<T.length;U++){const re=T[U];C[re]||(C[re]=[]),C[re].push([B,W])}}return C};if(!J(s)||!w){const k={};if(typeof R=="object"&&!J(R)){const C=e;for(const A in R)k[A]=O=>{const T=He(O),B=ye(O);return C(R[A],ht(A,O),T?T[A]:void 0,B?B[A]:void 0,O?.class,O?.className)(c)}}return k}return e(h,$e(),We(S),E?.class,E?.className)(c)},z=()=>{if(!(!v||typeof v!="object"))return Object.keys(v)};return y.variantKeys=z(),y.extend=i,y.base=h,y.slots=R,y.variants=v,y.defaultVariants=b,y.compoundSlots=d,y.compoundVariants=S,y};return{tv:t,createTV:n=>(o,i)=>t(o,i?Nt(n,i):n)}},pi=(...e)=>t=>st(e)||void 0,{tv:gt}=vi(pi),bi=m("<a>"),mi=m("<button type=button>");const sr=gt({base:"flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",variants:{$variant:{primary:"font-semibold text-sm bg-(--lv-control-button-primary-background) text-(--lv-control-button-primary-color) border-(--lv-control-button-primary-border) hover:bg-(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background)) active:bg-(--lv-control-button-primary-activeBackground,var(--lv-control-button-primary-hoverBackground,var(--lv-control-button-primary-background))) disabled:bg-(--lv-control-button-primary-disabledBackground,var(--lv-control-button-primary-background)) disabled:text-(--lv-control-button-primary-disabledColor,var(--lv-control-button-primary-color))",secondary:"border bg-(--lv-control-button-secondary-background) text-(--lv-control-button-secondary-color) border-(--lv-control-button-secondary-border,var(--lv-control-button-secondary-background)) hover:bg-(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background)) active:bg-(--lv-control-button-secondary-activeBackground,var(--lv-control-button-secondary-hoverBackground,var(--lv-control-button-secondary-background))) disabled:bg-(--lv-control-button-secondary-disabledBackground,var(--lv-control-button-secondary-background)) disabled:text-(--lv-control-button-secondary-disabledColor,var(--lv-control-button-secondary-color))",tertiary:"bg-transparent text-(--lv-text-muted) hover:bg-(--lv-control-button-tertiary-hoverBackground,transparent) active:bg-(--lv-control-button-tertiary-activeBackground,var(--lv-control-button-tertiary-hoverBackground,transparent)) disabled:text-(--lv-control-button-tertiary-disabledColor,var(--lv-text-muted))"},$size:{sm:"h-6",md:"h-8",lg:"h-11"},$aspect:{square:"aspect-square",auto:""}},defaultVariants:{$size:"md",$variant:"primary",$aspect:"auto"}}),Oe=e=>{const[t,r]=ct(e,["children","class","$variant","$size","$aspect","href","onClick"]);return t.href?(()=>{var n=bi();return ot(n,G({get href(){return t.href},get onClick(){return t.onClick},get class(){return he(sr({$variant:t.$variant,$size:t.$size,$aspect:t.$aspect}),t.class)}},r),!1,!0),f(n,()=>t.children),n})():(()=>{var n=mi();return ot(n,G({get onClick(){return t.onClick},get class(){return he(sr({$variant:t.$variant,$size:t.$size,$aspect:t.$aspect}),t.class)}},r),!1,!0),f(n,()=>t.children),n})()};var yi=m('<div class="flex h-full w-full justify-between"><div class="grow py-1 ps-1"><div class="h-full rounded-sm border border-gray-300 bg-gray-400"></div></div><div class="flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5">'),wi=m('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'),xi=m('<div class="flex h-full w-full flex-col justify-between"><div class="grow px-1 pt-1"><div class="h-full rounded-sm border border-gray-200 bg-gray-300"></div></div><div class="flex h-3 w-full items-center justify-center gap-0.5 pb-0.5">'),ki=m('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'),Ci=m('<div class="-space-x-4 flex items-end"><div class="h-38 w-48 overflow-hidden rounded-lg bg-gray-300"></div><div class="h-18 w-12 overflow-hidden rounded-lg bg-gray-200">');const Dr=e=>e?1:3,Si=e=>(()=>{var t=yi(),r=t.firstChild,n=r.nextSibling;return f(n,g(ve,{get each(){return Array.from({length:Dr(e.isApple)})},children:()=>wi()})),t})(),Ai=e=>(()=>{var t=xi(),r=t.firstChild,n=r.nextSibling;return f(n,g(ve,{get each(){return Array.from({length:Dr(e.isApple)})},children:()=>ki()})),t})(),$i=()=>(()=>{var t=Ci(),r=t.firstChild,n=r.nextSibling;return f(r,g(Si,{isApple:!0})),f(n,g(Ai,{isApple:!0})),t})();var Ti=m('<div class="flex flex-col items-center gap-4 p-6"><div class=text-center><p class="text-sm text-(--lv-text-secondary)"></p></div><div class="flex items-center">');const _i=e=>{const{t}=Q(),{start:r}=bo();return(()=>{var n=Ti(),o=n.firstChild,i=o.firstChild,s=o.nextSibling;return f(n,g($i,{}),o),f(i,()=>t("disconnected.prompt")),f(s,g(Oe,{type:"button",onClick:r,class:"z-10 px-6 py-3",$variant:"primary",$size:"lg",get children(){return t("disconnected.generateQr")}}),null),f(s,g(Oe,{type:"button",get"aria-label"(){return String(t("disconnected.connectionSettings"))},"aria-pressed":!1,get onClick(){return e.onSettings},class:"px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",$aspect:"square",$size:"lg",$variant:"secondary",get children(){return g(ri,{class:"h-5 w-5 text-(--lv-text-muted)"})}}),null),n})()};var Ni=m('<div class="flex flex-col space-y-2 px-4 text-start"><div class="min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class="flex justify-center items-center grow"></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class></div></div><div class="w-full rounded-md border border-(--lv-control-button-secondary-border) md:flex justify-start divide-y md:divide-y-0 md:divide-x divide-(--lv-control-button-secondary-border)"><div class="p-2 w-full md:w-3/5"></div><div class>');const Ei=()=>{const{t:e}=Q();return(()=>{var t=Ni(),r=t.firstChild,n=r.firstChild,o=n.nextSibling,i=r.nextSibling,s=i.firstChild,a=i.nextSibling,l=a.firstChild;return f(n,()=>e("info.scanQrCode")),f(o,g(Yo,{class:"w-10 h-10"})),f(s,()=>e("info.approveOnDevice")),f(l,()=>e("info.youreConnected")),t})()},Et=(e,{duration:t=200}={})=>{const r=typeof e=="function"?e:()=>e,n=r(),[o,i]=D(n),[s,a]=D(void 0);let l,d=n;return ee(()=>{const u=r();Object.is(u,d)||(l&&globalThis.clearTimeout(l),a(()=>d),i(()=>u),d=u,l=globalThis.setTimeout(()=>{a(()=>{}),l=void 0},t),te(()=>{l&&globalThis.clearTimeout(l)}))}),{current:o,previous:s,isTransitioning:()=>s()!==void 0}},qe=()=>{const{provider:e}=Pe(),[t,r]=D(e.storage.getSettings()),n=u=>{r(u),e.storage.setSettings(u)};return{settings:t,setSettings:n,setLanguage:u=>{n({...t(),language:u})},setThemeMode:u=>{n({...t(),theme:u})},setSignalingProtocol:u=>{n({...t(),signaling:{p:u,s:t()?.signaling?.s??{}}})},setSignalingOptions:u=>{const c=t()?.signaling?.p;if(!c)return;const h=t()?.signaling?.s??{};n({...t(),signaling:{p:c,s:{...h,[c]:u.url}}})},setRetainSessionHistory:u=>{n({...t(),retainHistory:u})},setAutoReconnect:u=>{n({...t(),autoReconnect:u})}}},Vr=()=>{const{settings:e}=qe(),t=$(()=>e().theme),r=$(()=>"light");return{theme:t,mode:r}},Fr="data:image/webp;base64,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";var Oi=m('<div class="group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)"><div class="pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100"></div><div>');const Pi=()=>{const{t:e}=Q(),{status:t}=Ke(),r=$(()=>{const n=t()?.status,o=t()?.signaling?.state;return ke({sessionState:n,signalState:o}).with({sessionState:"connected"},()=>({icon:"✅",text:e("status.connectedSuccessfully")})).with({sessionState:"signaling",signalState:"standby"},()=>({icon:"🫥",text:e("status.connecting")})).with({sessionState:"signaling",signalState:"connecting"},()=>({icon:"↗️",text:e("status.connecting")})).with({sessionState:"signaling",signalState:"ready"},()=>({icon:"👋",text:e("status.ready")})).with({sessionState:"signaling",signalState:"handshake"},()=>({icon:"🤝",text:e("status.handshakeClosed")})).with({sessionState:"signaling",signalState:"handshake-partial"},()=>({icon:"🤝",text:e("status.handshakePartial")})).with({sessionState:"signaling",signalState:"encrypted"},()=>({icon:"🔒",text:e("status.encrypted")})).with({sessionState:"signaling",signalState:"error"},()=>({icon:"❌",text:e("status.signalError")})).otherwise(()=>{})});return g(Se,{get when(){return r()},children:n=>(()=>{var o=Oi(),i=o.firstChild,s=i.nextSibling;return f(i,()=>n().text),f(s,()=>n().icon),o})()})};var Ri=m('<div class="h-11 w-full">'),Bi=m('<div class="absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)"><a href=https://github.com/v3xlabs/open-lavatory target=_blank rel=noreferrer class="flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)"><img alt="Open Lavatory Logo"width=20 height=20 class=rounded data-openlv-brand-logo><span>openlv</span></a><div class="text-sm text-(--lv-text-muted)">');const Mi=()=>[Ri(),(()=>{var e=Bi(),t=e.firstChild,r=t.firstChild,n=t.nextSibling;return Z(r,"src",Fr),f(n,g(Pi,{})),e})()];var Li=m('<div class="flex items-center justify-between px-2 py-2"><h2 class="flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg">');const ji=e=>{const{t}=Q();return(()=>{var r=Li(),n=r.firstChild;return f(r,(()=>{var o=Ce(()=>!!e.onBack);return()=>o()?g(Oe,{get onClick(){return e.onBack},get"aria-label"(){return String(e.view==="settings"?t("modal.backToQr"):t("modal.closeModal"))},$variant:"tertiary",$aspect:"square",$size:"md",get children(){return g(zo,{class:"h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"})}}):g(Oe,{type:"button",onClick:()=>e.setView("info"),$variant:"tertiary",$aspect:"square",$size:"md",get children(){return g(Mr,{class:"h-5 w-5"})}})})(),n),f(n,()=>e.title),f(r,g(Oe,{type:"button",get"aria-label"(){return String(t("common.close"))},"aria-pressed":!1,get onClick(){return e.onClose},$variant:"tertiary",$aspect:"square",$size:"md",get children(){return g(li,{class:"h-6 w-6 text-(--lv-text-muted)"})}}),null),r})()},Di=(e,{transitionDuration:t=200}={})=>{const[r,n]=D([e]),[o,i]=D(0),s=$(()=>r()[o()]??e),{current:a,previous:l,isTransitioning:d}=Et(s,{duration:t});return{screen:a,previousScreen:l,isTransitioning:d,navigate:h=>{const v=o(),b=r(),w=b[v];if(Object.is(w,h))return;const p=b.slice(0,v+1);p.push(h),n(p),i(p.length-1)},goBack:()=>{i(h=>Math.max(0,h-1))},isAtRoot:()=>o()===0}};var Vi=m('<div class="modal-transition__layer modal-transition__layer--outgoing">'),Fi=m("<div><div>");const Ii=e=>(()=>{var t=Fi(),r=t.firstChild;return f(t,g(Se,{get when(){return e.previous!==void 0},get children(){var n=Vi();return f(n,()=>e.render(e.previous)),n}}),r),f(r,()=>e.render(e.current)),F(n=>{var o=he("modal-transition__container",e.class),i=he("modal-transition__layer",e.isTransitioning&&"modal-transition__layer--incoming");return o!==n.e&&Y(t,n.e=o),i!==n.t&&Y(r,n.t=i),n},{e:void 0,t:void 0}),t})();var zi=m('<div><div class="flex items-end justify-between py-1 pl-2"><div class="font-medium text-(--lv-text-primary) text-sm"></div><div></div></div><div class="flex flex-col gap-1 rounded-md bg-(--lv-card-background)">');const Fe=e=>(()=>{var t=zi(),r=t.firstChild,n=r.firstChild,o=n.nextSibling,i=r.nextSibling;return f(n,()=>e.title),f(o,()=>e.right),f(i,()=>e.children),t})();var Ui=m('<div class="flex items-baseline justify-between gap-2 px-2 py-1 first:pt-2 last:pb-2"><div class="text-sm text-(--lv-text-secondary) text-start"></div><div>');const Ie=e=>(()=>{var t=Ui(),r=t.firstChild,n=r.nextSibling;return f(r,()=>e.label),f(n,()=>e.children),t})();var Ki=m("<select>"),qi=m("<div>"),Gi=m("<button type=button>"),Wi=m("<option>");const Hi=gt({slots:{root:"flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",box:"px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"},variants:{active:{on:{box:"bg-(--lv-control-button-secondary-background) text-(--lv-text-primary)"},off:{box:"bg-transparent text-(--lv-text-secondary) cursor-pointer"}}},defaultVariants:{active:"off"}}),Qi=gt({base:"w-full rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-control-button-secondary-background) px-3 py-2 font-semibold text-xs text-(--lv-text-primary) cursor-pointer focus:outline-none focus:ring-2 focus:ring-(--lv-control-button-primary-background) appearance-none bg-[url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2214%22%20height%3D%2214%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23888%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C%2Fsvg%3E')] bg-[length:14px] bg-[right_8px_center] bg-no-repeat pr-8"}),ft=e=>{const t=Qi(),{root:r,box:n}=Hi({});return g(Se,{get when(){return e.options.length>(e.dropdownThreshold??3)},get fallback(){return(()=>{var o=qi();return f(o,g(ve,{get each(){return e.options},children:([i,s])=>(()=>{var a=Gi();return a.$$click=()=>e.onChange(i),f(a,s),F(l=>{var d=i===e.value,u=n({active:i===e.value?"on":"off"});return d!==l.e&&Z(a,"aria-pressed",l.e=d),u!==l.t&&Y(a,l.t=u),l},{e:void 0,t:void 0}),a})()})),F(()=>Y(o,r())),o})()},get children(){var o=Ki();return o.addEventListener("change",i=>e.onChange(i.currentTarget.value)),Y(o,t),f(o,g(ve,{get each(){return e.options},children:([i,s])=>(()=>{var a=Wi();return a.value=i,f(a,s),a})()})),F(()=>o.value=e.value),o}})};be(["click"]);const Xi=()=>{const{t:e}=Q(),t=Vr(),r=()=>t.mode()==="auto",n=()=>t.mode()==="auto"?"system":t.mode(),o=i=>{};return g(Se,{get when(){return r()},get children(){return g(Ie,{get label(){return e("settings.theme.mode")},get children(){return g(ft,{get options(){return[["light",e("settings.theme.light")],["dark",e("settings.theme.dark")],["system",e("settings.theme.system")]]},get value(){return n()},onChange:i=>o()})}})}})},Ji=()=>{const{t:e,languageTag:t,setLanguageTag:r}=Q(),{settings:n,setLanguage:o}=qe(),i=$(()=>[...Bt].sort((a,l)=>{const d=er(a.tag);return er(l.tag)-d})),s=a=>{const l=a;r(l),o(l)};return g(Fe,{get title(){return e("settings.appearance")},get children(){return[g(Ie,{get label(){return e("settings.language")},get children(){return g(ft,{get options(){return i().map(a=>[a.tag,a.nativeName])},get value(){return n()?.language||t()},onChange:s})}}),g(Xi,{})]}})};var Zi=m("<div><div></div><div>"),Yi=m("<div>Text");const ea=gt({slots:{root:"group relative",box:"cursor-pointer rounded-md transition-colors flex items-center justify-center hover:[background-color:var(--lv-control-button-tertiary-hoverBackground)] text-(--lv-text-muted)",popover:"-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md shadow-sm group-hover:block border border-(--lv-control-button-secondary-border) bg-(--lv-body-background) px-2 py-1.5 text-(--lv-text-primary) text-sm",icon:""},variants:{size:{sm:{box:"h-5 w-5 p-1",icon:"h-3 w-3"},md:{box:"h-6 w-6 p-1",icon:"h-4 w-4"},lg:{box:"h-8 w-8 p-1.5",icon:"h-4 w-4"}},variant:{icon:"",text:""}},defaultVariants:{size:"lg"}}),lr=e=>{const t=G({variant:"icon",size:"lg"},e),{root:r,box:n,popover:o,icon:i}=ea({size:t.size,variant:t.variant});return(()=>{var s=Zi(),a=s.firstChild,l=a.nextSibling;return f(a,()=>ke(t.variant).with("icon",()=>g(Mr,{get class(){return i()}})).with("text",()=>Yi()).exhaustive()),f(l,()=>t.children),F(d=>{var u=r(),c=n(),h=o();return u!==d.e&&Y(s,d.e=u),c!==d.t&&Y(a,d.t=c),h!==d.a&&Y(l,d.a=h),d},{e:void 0,t:void 0,a:void 0}),s})()};var ta=m('<span class="text-sm text-(--lv-text-muted)">'),ra=m('<button type=button class="flex w-full cursor-pointer items-center justify-between gap-2 first:rounded-t-sm last:rounded-b-sm px-2 py-1 first:pt-1.5 last:pb-2 hover:bg-(--lv-control-button-tertiary-hoverBackground)"><div class="text-sm text-(--lv-text-secondary) flex items-center gap-1"></div><div class="flex items-center gap-1">');const cr=e=>(()=>{var t=ra(),r=t.firstChild,n=r.nextSibling;return dt(t,"click",e.onClick,!0),f(r,()=>e.label),f(n,g(Se,{get when(){return e.value},get children(){var o=ta();return f(o,()=>e.value),o}}),null),f(n,g(qo,{class:"h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"}),null),t})();be(["click"]);const na=e=>{const{t}=Q();return g(ft,{get options(){return[["true",String(t("common.yes"))],["false",String(t("common.no"))]]},get value(){return e.value?"true":"false"},onChange:r=>e.onChange(r==="true")})},oa=e=>{const{t}=Q(),{settings:r,setRetainSessionHistory:n,setAutoReconnect:o}=qe();return g(Fe,{get title(){return t("settings.connectionPreferences.title")},get children(){return[g(cr,{get label(){return[Ce(()=>t("settings.signaling.title")),g(lr,{variant:"icon",get children(){return t("settings.signaling.description")}})]},onClick:()=>e.onNavigate("signaling"),get value(){return r()?.signaling?.p}}),g(cr,{get label(){return[Ce(()=>t("settings.transport.title")),g(lr,{variant:"icon",get children(){return t("settings.transport.description")}})]},onClick:()=>e.onNavigate("transport"),value:"WebRTC"}),g(ve,{get each(){return[[t("settings.connectionPreferences.retainSessionHistory"),r()?.retainHistory??!1,n],[t("settings.connectionPreferences.autoReconnect"),r()?.autoReconnect??!1,o]]},children:([i,s,a])=>g(Ie,{label:i,get children(){return g(na,{label:i,value:s,onChange:a})}})})]}})};var ia=m('<input class="h-9 w-full rounded-lg border bg-white px-3 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 text-(--lv-text-primary) bg-(--lv-body-background) border-(--lv-control-input-border)">');const Me=e=>{const t=G({readOnly:!0},e),[r]=ct(t,["id","value","placeholder","ariaLabel","readOnly","onChange"]);return(()=>{var n=ia();return n.$$input=o=>{r.onChange?.(o.currentTarget.value)},F(o=>{var i=r.id,s=r.placeholder,a=r.ariaLabel,l=r.readOnly;return i!==o.e&&Z(n,"id",o.e=i),s!==o.t&&Z(n,"placeholder",o.t=s),a!==o.a&&Z(n,"aria-label",o.a=a),l!==o.o&&(n.readOnly=o.o=l),o},{e:void 0,t:void 0,a:void 0,o:void 0}),F(()=>n.value=r.value),n})()};be(["input"]);var aa=m('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');const sa=["mqtt","ntfy","gun"],la=()=>{const{t:e}=Q(),{settings:t,setSignalingProtocol:r,setSignalingOptions:n}=qe(),o=$(()=>t()?.signaling?.p),i=$(()=>{const s=o();return s?t()?.signaling?.s?.[s]??"":""});return(()=>{var s=aa(),a=s.firstChild;return f(s,g(Fe,{get title(){return e("settings.signaling.title")},get children(){return[g(Ie,{get label(){return e("common.protocol")},get children(){return g(ft,{get options(){return sa.map(l=>[l.toLowerCase(),l.toUpperCase()])},get value(){return o()??""},onChange:l=>r(l)})}}),g(Ie,{get label(){return e("settings.signaling.server")},get children(){return g(Me,{id:"server",get value(){return i()},onChange:l=>n({url:l}),get placeholder(){return String(e("settings.signaling.serverUrl"))},get ariaLabel(){return String(e("settings.signaling.serverUrl"))},readOnly:!1})}})]}}),a),f(a,()=>e("settings.signaling.description")),s})()};var ca=m('<div class="flex items-center gap-2"><div class=flex-1>'),da=m('<button type=button class="flex w-full cursor-pointer items-center justify-center gap-1 rounded-md border border-dashed border-(--lv-control-input-border) py-2 text-sm text-(--lv-text-muted) hover:bg-(--lv-card-background)">'),ua=m('<div class="flex flex-col gap-2 p-2">'),ga=m('<div class="flex flex-col gap-3 p-2">'),fa=m('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'),ha=m('<div class="flex flex-col gap-2 rounded-md border border-(--lv-control-input-border) p-2"><div class="grid grid-cols-2 gap-2">');const dr=e=>(()=>{var t=ca(),r=t.firstChild;return f(r,()=>e.children),f(t,g(Oe,{get onClick(){return e.onRemove},$variant:"tertiary",$aspect:"square",$size:"sm",get children(){return g(ii,{class:"h-4 w-4 text-(--lv-text-muted)"})}}),null),t})(),ur=e=>(()=>{var t=da();return dt(t,"click",e.onClick,!0),f(t,g(Xo,{class:"h-4 w-4"}),null),f(t,()=>e.label,null),t})(),va=()=>{const{t:e}=Q();qe();const[t,r]=D([]),[n,o]=D([]),i=()=>{o([...n(),""])},s=c=>{o(n().filter((h,v)=>v!==c))},a=(c,h)=>{o(n().map((v,b)=>b===c?h:v))},l=()=>{r([...t(),{urls:""}])},d=c=>{r(t().filter((h,v)=>v!==c))},u=(c,h,v)=>{r(t().map((b,w)=>w===c?{...b,[h]:v}:b))};return[g(Fe,{get title(){return e("settings.transport.iceServers.stun")},get children(){var c=ua();return f(c,g(ve,{get each(){return n()},children:(h,v)=>g(dr,{onRemove:()=>s(v()),get children(){return g(Me,{value:h,onChange:b=>a(v(),b),placeholder:"stun:stun.l.google.com:19302",readOnly:!1})}})}),null),f(c,g(ur,{get label(){return e("settings.transport.iceServers.addStun")},onClick:i}),null),c}}),g(Fe,{get title(){return e("settings.transport.iceServers.turn")},get children(){var c=ga();return f(c,g(ve,{get each(){return t()},children:(h,v)=>(()=>{var b=ha(),w=b.firstChild;return f(b,g(dr,{onRemove:()=>d(v()),get children(){return g(Me,{get value(){return h.urls},onChange:p=>u(v(),"urls",p),placeholder:"turn:relay.example.com:443",readOnly:!1})}}),w),f(w,g(Me,{get value(){return h.username??""},onChange:p=>u(v(),"username",p),placeholder:"Username",readOnly:!1}),null),f(w,g(Me,{get value(){return h.credential??""},onChange:p=>u(v(),"credential",p),placeholder:"Password",readOnly:!1}),null),b})()}),null),f(c,g(ur,{get label(){return e("settings.transport.iceServers.addTurn")},onClick:l}),null),c}}),(()=>{var c=fa();return f(c,()=>e("settings.transport.description")),c})()]};be(["click"]);var pa=m('<div class="px-4 pb-2">');const ba=e=>{switch(e){case"main":return"settings.title";case"signaling":return"settings.signaling.title";case"transport":return"settings.transport.title"}},ma=e=>{const{screen:t,previousScreen:r,isTransitioning:n,navigate:o,goBack:i,isAtRoot:s}=Di("main"),a={goBack:i,get isAtRoot(){return s()}};ee(()=>{e.navigationRef&&(e.navigationRef.current=a)}),ee(()=>{e.onTitleChange?.(ba(t()))});const l=d=>{switch(d){case"main":return[g(oa,{onNavigate:o}),g(Ji,{})];case"signaling":return g(la,{});case"transport":return g(va,{})}};return(()=>{var d=pa();return f(d,g(Ii,{get current(){return t()},get previous(){return r()},get isTransitioning(){return n()},render:l})),d})()};var ya=m("<div class=modal-transition__container><div>"),wa=m('<div class="modal-transition__layer modal-transition__layer--outgoing">'),xa=m('<div class="fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center md:items-center lg:p-4"role=presentation data-openlv-modal-root><div role=dialog aria-modal=true><div><div class=modal-transition__container><div><div class="flex flex-col text-center"></div></div></div></div><div>');const ka=()=>{const[e,t]=D("start"),[r,n]=D(!1);return ee(()=>{if(!r())return;const o=globalThis.setTimeout(()=>n(!1),2e3);te(()=>globalThis.clearTimeout(o))}),{view:e,setView:t,copied:r,setCopied:n}},Ca=e=>{ee(()=>{const t=r=>{r.key==="Escape"&&e()};document.addEventListener("keydown",t),te(()=>document.removeEventListener("keydown",t))})},Sa=()=>{const[e,t]=D(),[r,n]=D(0),o=(s,a=!1)=>{const l=s||e();if(!l||!l.getBoundingClientRect)return;const d=a?l.scrollHeight:l.getBoundingClientRect().height;d>0&&n(u=>typeof u=="number"&&Math.abs(u-d)<.5?u:d)};ee(()=>{const s=e();if(!s||typeof ResizeObserver>"u")return;const a=new ResizeObserver(()=>{o()});a.observe(s),te(()=>a.disconnect())});const i=()=>o();return ee(()=>{globalThis.window!==void 0&&(window.addEventListener("resize",i),te(()=>window.removeEventListener("resize",i)))}),{setContentRef:t,contentNode:e,height:r,measureHeight:o}},Ir=e=>{const{view:t,setView:r,copied:n,setCopied:o}=ka(),{uri:i,status:s}=Ke(),{provider:a}=Pe(),{setContentRef:l,contentNode:d,height:u,measureHeight:c}=Sa(),{current:h,previous:v,isTransitioning:b}=Et(t),{current:w,previous:p,isTransitioning:R}=Et(s),S=()=>r("settings"),{t:y,isRtl:z,languageTag:E}=Q(),Ae=Vr(),$e={current:null},[ht,Ge]=D("settings.title"),Re=$(()=>ke(t()).with("start",()=>y("start.title")).with("settings",()=>y(ht())).with("info",()=>y("info.title")).exhaustive());Ca(e.onClose),ee(()=>{s()?.status===oe.CONNECTED&&e.onClose()});const We=async()=>{const _=i();_&&await Br(_)&&o(!0)};let He=!0,ye,k,C;const[A,O]=D(!1);ee(()=>{w(),h(),d()&&(He?(ye&&globalThis.clearTimeout(ye),ye=globalThis.setTimeout(()=>{d()&&(c(void 0,!0),He=!1)},0)):c(),te(()=>{ye&&globalThis.clearTimeout(ye)}))}),ee(()=>{const _=u();k!==void 0&&_!==k&&_>0&&k>0&&Math.abs(_-k)>.5&&(O(!0),C&&globalThis.clearTimeout(C),C=globalThis.setTimeout(()=>{O(!1),C=void 0},200)),k=_,te(()=>{C&&globalThis.clearTimeout(C)})});const[T,B]=D(a.getState().status);Ot(()=>{a.on("status_change",B)}),te(()=>{a.off("status_change",B)});const W=$(()=>!(t()==="start"&&T()===oe.STANDBY)),ie=()=>{ke({view:t(),status:T()}).with({view:"start",status:oe.STANDBY},()=>{}).with({view:"start"},()=>{a.closeSession()}).with({view:"settings"},()=>{$e.current&&!$e.current.isAtRoot?$e.current.goBack():r("start")}).with({view:"info"},()=>{r("start")}).otherwise(()=>{a.closeSession(),e.onClose()})},U=_=>ke(_).with("start",()=>g(_i,{onSettings:S})).with("settings",()=>g(ma,{onTitleChange:Ge,navigationRef:$e})).with("info",()=>g(Ei,{})).otherwise(()=>g(_t,{state:_})),re=()=>(()=>{var _=ya(),X=_.firstChild;return f(_,g(Se,{get when(){return v()},children:we=>(()=>{var Be=wa();return f(Be,()=>U(we())),Be})()}),X),f(X,()=>U(h())),F(()=>Y(X,he("modal-transition__layer",b()&&"modal-transition__layer--incoming"))),_})(),ce=_=>ke(_).with(oe.STANDBY,()=>re()).with(Gn.union(oe.CREATING,oe.CONNECTING,oe.CONNECTED),()=>g(Po,{get onClose(){return e.onClose},onCopy:We})).otherwise(X=>g(_t,{state:X||"unknown status"})),ne={background:"var(--lv-overlay-background, rgba(0,0,0,0.3))","backdrop-filter":"var(--lv-overlay-backdrop-filter, blur(4px))"},Te={background:"var(--lv-body-background)",color:"var(--lv-body-color, var(--lv-text-primary))","border-radius":"var(--lv-border-radius, 16px)","box-shadow":"var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"};return(()=>{var _=xa(),X=_.firstChild,we=X.firstChild,Be=we.firstChild,Mt=Be.firstChild,Ur=Mt.firstChild,Lt=we.nextSibling;return _.$$mouseup=M=>{M.target===M.currentTarget&&e.onClose()},kt(_,ne),X.$$click=M=>M.stopPropagation(),Ar(l,we),f(we,g(ji,{get title(){return String(Re())},get view(){return t()},get onClose(){return e.onClose},get onBack(){return W()?ie:void 0},setView:r}),Be),f(Ur,()=>ce(T())),f(we,g(Mi,{}),null),f(Lt,()=>y("modal.urlCopied")),F(M=>{var jt=Ae.mode(),Dt=E(),Vt=z()?"rtl":"ltr",Ft=he("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",A()||p()?"overflow-hidden":void 0),It=String(Re()),Kr={...typeof u()=="number"&&u()>0?{height:`${u()}px`}:{},...Te},zt=he("modal-transition__layer",R()&&"modal-transition__layer--incoming"),Ut=he("absolute top-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all ltr:right-5 rtl:left-5",n()?"translate-x-0 opacity-100":"opacity-0 ltr:translate-x-full rtl:-translate-x-full");return jt!==M.e&&Z(_,"data-openlv-theme-mode",M.e=jt),Dt!==M.t&&Z(_,"lang",M.t=Dt),Vt!==M.a&&Z(_,"dir",M.a=Vt),Ft!==M.o&&Y(X,M.o=Ft),It!==M.i&&Z(X,"aria-label",M.i=It),M.n=kt(X,Kr,M.n),zt!==M.s&&Y(Mt,M.s=zt),Ut!==M.h&&Y(Lt,M.h=Ut),M},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0}),_})()};be(["mouseup","click"]);const Aa=(...e)=>console.log("%c[modal]%c","color: yellow; font-weight: bold","color: inherit; font-weight: normal",...e),zr=(e="openlv-modal")=>{if(globalThis.window===void 0)return e;const t=globalThis.customElements;return t?(t.get(e)||t.define(e,ut),e):(console.warn("OpenLV modal: custom elements are not supported in this environment."),e)},$a=e=>{const t=document.querySelector("openlv-modal");if(t&&t.remove(),!t){zr();const r=new ut({onClose(){Aa("modal closed"),r.remove(),e.onClose?.()},provider:e.provider,theme:e.theme});document.body.append(r)}};exports.ModalRoot=Ir;exports.OPENLV_ICON_128=Fr;exports.OpenLVModalElement=ut;exports.default=ut;exports.registerOpenLVModal=zr;exports.triggerOpenModal=$a;
|
|
8
8
|
//# sourceMappingURL=index.cjs.js.map
|