@openlv/modal 0.0.1-beta.10 → 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/components/Header.d.ts +3 -4
- package/dist/components/ModalRoot.d.ts +4 -3
- package/dist/components/UnknownState.d.ts +2 -3
- package/dist/components/footer/Footer.d.ts +1 -1
- package/dist/components/footer/StatusIndicator.d.ts +1 -1
- package/dist/components/settings/a11y/index.d.ts +1 -1
- package/dist/components/settings/a11y/theme.d.ts +1 -2
- package/dist/components/settings/connection/index.d.ts +2 -2
- package/dist/components/settings/connection/signaling.d.ts +1 -1
- package/dist/components/settings/connection/transport.d.ts +2 -1
- package/dist/components/settings/index.d.ts +4 -3
- package/dist/context.d.ts +6 -6
- package/dist/element.d.ts +2 -2
- package/dist/flow/ConnectionFlow.d.ts +1 -1
- package/dist/flow/HandshakeOpen.d.ts +1 -4
- package/dist/flow/InfoScreen.d.ts +1 -1
- package/dist/flow/connecting.d.ts +1 -0
- package/dist/flow/disconnected/ConnectionGraphic.d.ts +1 -1
- package/dist/flow/disconnected/Disconnected.d.ts +2 -3
- package/dist/hooks/useConnectionState.d.ts +1 -1
- package/dist/hooks/useNavigationStack.d.ts +6 -5
- package/dist/hooks/usePunchTransition.d.ts +5 -4
- package/dist/hooks/useSession.d.ts +4 -4
- package/dist/hooks/useSettings.d.ts +13 -43
- package/dist/hooks/useTheme.d.ts +4 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.es.js +3081 -2210
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/theme/types.d.ts +1 -2
- package/dist/ui/Button.d.ts +12 -9
- package/dist/ui/InfoTooltip.d.ts +2 -2
- package/dist/ui/Input.d.ts +3 -3
- package/dist/ui/Select.d.ts +1 -2
- package/dist/ui/Toggle.d.ts +3 -3
- package/dist/ui/TransitionContainer.d.ts +5 -5
- package/dist/ui/menu/MenuGroup.d.ts +5 -5
- package/dist/ui/menu/MenuItem.d.ts +4 -4
- package/dist/ui/menu/MenuLink.d.ts +4 -4
- package/dist/utils/i18n.d.ts +8 -12
- package/package.json +13 -12
- package/dist/hooks/useEventEmitter.d.ts +0 -2
- package/dist/hooks/useProvider.d.ts +0 -5
- package/dist/hooks/useThemeConfig.d.ts +0 -8
- package/dist/types/connection.d.ts +0 -13
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var tr=Object.defineProperty;var rr=(e,t,r)=>t in e?tr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var fe=(e,t,r)=>rr(e,typeof t!="symbol"?t+"":t,r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("preact/jsx-runtime"),d=require("preact/hooks"),v=require("preact"),nr=require("qrcode-generator");function or(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 ar=or(nr),sr=1,ir=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}@${sr}?${t.toString()}`};function lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var De={exports:{}},et;function cr(){return et||(et=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(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function a(c,u,f,p,C){if(typeof f!="function")throw new TypeError("The listener must be a function");var b=new o(f,p||c,C),w=r?r+u:u;return c._events[w]?c._events[w].fn?c._events[w]=[c._events[w],b]:c._events[w].push(b):(c._events[w]=b,c._eventsCount++),c}function i(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,p;if(this._eventsCount===0)return u;for(p in f=this._events)t.call(f,p)&&u.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=r?r+u:u,p=this._events[f];if(!p)return[];if(p.fn)return[p.fn];for(var C=0,b=p.length,w=new Array(b);C<b;C++)w[C]=p[C].fn;return w},l.prototype.listenerCount=function(u){var f=r?r+u:u,p=this._events[f];return p?p.fn?1:p.length:0},l.prototype.emit=function(u,f,p,C,b,w){var T=r?r+u:u;if(!this._events[T])return!1;var h=this._events[T],k=arguments.length,g,m;if(h.fn){switch(h.once&&this.removeListener(u,h.fn,void 0,!0),k){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,f),!0;case 3:return h.fn.call(h.context,f,p),!0;case 4:return h.fn.call(h.context,f,p,C),!0;case 5:return h.fn.call(h.context,f,p,C,b),!0;case 6:return h.fn.call(h.context,f,p,C,b,w),!0}for(m=1,g=new Array(k-1);m<k;m++)g[m-1]=arguments[m];h.fn.apply(h.context,g)}else{var L=h.length,_;for(m=0;m<L;m++)switch(h[m].once&&this.removeListener(u,h[m].fn,void 0,!0),k){case 1:h[m].fn.call(h[m].context);break;case 2:h[m].fn.call(h[m].context,f);break;case 3:h[m].fn.call(h[m].context,f,p);break;case 4:h[m].fn.call(h[m].context,f,p,C);break;default:if(!g)for(_=1,g=new Array(k-1);_<k;_++)g[_-1]=arguments[_];h[m].fn.apply(h[m].context,g)}}return!0},l.prototype.on=function(u,f,p){return a(this,u,f,p,!1)},l.prototype.once=function(u,f,p){return a(this,u,f,p,!0)},l.prototype.removeListener=function(u,f,p,C){var b=r?r+u:u;if(!this._events[b])return this;if(!f)return i(this,b),this;var w=this._events[b];if(w.fn)w.fn===f&&(!C||w.once)&&(!p||w.context===p)&&i(this,b);else{for(var T=0,h=[],k=w.length;T<k;T++)(w[T].fn!==f||C&&!w[T].once||p&&w[T].context!==p)&&h.push(w[T]);h.length?this._events[b]=h.length===1?h[0]:h:i(this,b)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&i(this,f)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(De)),De.exports}cr();const M=Symbol.for("@ts-pattern/matcher"),Nt=Symbol.for("@ts-pattern/isVariadic"),Ne="@ts-pattern/anonymous-select-key",Fe=e=>!!(e&&typeof e=="object"),Ce=e=>e&&!!e[M],P=(e,t,r)=>{if(Ce(e)){const n=e[M](),{matched:o,selections:a}=n.match(t);return o&&a&&Object.keys(a).forEach(i=>r(i,a[i])),o}if(Fe(e)){if(!Fe(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],o=[],a=[];for(const i of e.keys()){const l=e[i];Ce(l)&&l[Nt]?a.push(l):a.length?o.push(l):n.push(l)}if(a.length){if(a.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 i=t.slice(0,n.length),l=o.length===0?[]:t.slice(-o.length),c=t.slice(n.length,o.length===0?1/0:-o.length);return n.every((u,f)=>P(u,i[f],r))&&o.every((u,f)=>P(u,l[f],r))&&(a.length===0||P(a[0],c,r))}return e.length===t.length&&e.every((i,l)=>P(i,t[l],r))}return Reflect.ownKeys(e).every(n=>{const o=e[n];return(n in t||Ce(a=o)&&a[M]().matcherType==="optional")&&P(o,t[n],r);var a})}return Object.is(t,e)},I=e=>{var t,r,n;return Fe(e)?Ce(e)?(t=(r=(n=e[M]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?he(e,I):he(Object.values(e),I):[]},he=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function ur(...e){if(e.length===1){const[t]=e;return r=>P(t,r,()=>{})}if(e.length===2){const[t,r]=e;return P(t,r,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function D(e){return Object.assign(e,{optional:()=>Xe(e),and:t=>j(e,t),or:t=>_t(e,t),select:t=>t===void 0?ve(e):ve(t,e)})}function ze(e){return Object.assign((t=>Object.assign(t,{[Symbol.iterator](){let r=0;const n=[{value:Object.assign(t,{[Nt]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var o;return(o=n[r++])!=null?o:n.at(-1)}}}}))(e),{optional:()=>ze(Xe(e)),select:t=>ze(t===void 0?ve(e):ve(t,e))})}function Xe(e){return D({[M]:()=>({match:t=>{let r={};const n=(o,a)=>{r[o]=a};return t===void 0?(I(e).forEach(o=>n(o,void 0)),{matched:!0,selections:r}):{matched:P(e,t,n),selections:r}},getSelectionKeys:()=>I(e),matcherType:"optional"})})}const dr=(e,t)=>{for(const r of e)if(!t(r))return!1;return!0},fr=(e,t)=>{for(const[r,n]of e.entries())if(!t(n,r))return!1;return!0},gr=(e,t)=>{const r=Reflect.ownKeys(e);for(const n of r)if(!t(n,e[n]))return!1;return!0};function j(...e){return D({[M]:()=>({match:t=>{let r={};const n=(o,a)=>{r[o]=a};return{matched:e.every(o=>P(o,t,n)),selections:r}},getSelectionKeys:()=>he(e,I),matcherType:"and"})})}function _t(...e){return D({[M]:()=>({match:t=>{let r={};const n=(o,a)=>{r[o]=a};return he(e,I).forEach(o=>n(o,void 0)),{matched:e.some(o=>P(o,t,n)),selections:r}},getSelectionKeys:()=>he(e,I),matcherType:"or"})})}function y(e){return{[M]:()=>({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 D({[M]:()=>({match:n=>{let o={[t??Ne]:n};return{matched:r===void 0||P(r,n,(a,i)=>{o[a]=i}),selections:o}},getSelectionKeys:()=>[t??Ne].concat(r===void 0?[]:I(r))})})}function jt(e){return!0}function q(e){return typeof e=="number"}function X(e){return typeof e=="string"}function Y(e){return typeof e=="bigint"}const At=D(y(jt)),pr=D(y(jt)),hr=At,Z=e=>Object.assign(D(e),{startsWith:t=>{return Z(j(e,(r=t,y(n=>X(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Z(j(e,(r=t,y(n=>X(n)&&n.endsWith(r)))));var r},minLength:t=>Z(j(e,(r=>y(n=>X(n)&&n.length>=r))(t))),length:t=>Z(j(e,(r=>y(n=>X(n)&&n.length===r))(t))),maxLength:t=>Z(j(e,(r=>y(n=>X(n)&&n.length<=r))(t))),includes:t=>{return Z(j(e,(r=t,y(n=>X(n)&&n.includes(r)))));var r},regex:t=>{return Z(j(e,(r=t,y(n=>X(n)&&!!n.match(r)))));var r}}),tt=Z(y(X)),J=e=>Object.assign(D(e),{between:(t,r)=>J(j(e,((n,o)=>y(a=>q(a)&&n<=a&&o>=a))(t,r))),lt:t=>J(j(e,(r=>y(n=>q(n)&&n<r))(t))),gt:t=>J(j(e,(r=>y(n=>q(n)&&n>r))(t))),lte:t=>J(j(e,(r=>y(n=>q(n)&&n<=r))(t))),gte:t=>J(j(e,(r=>y(n=>q(n)&&n>=r))(t))),int:()=>J(j(e,y(t=>q(t)&&Number.isInteger(t)))),finite:()=>J(j(e,y(t=>q(t)&&Number.isFinite(t)))),positive:()=>J(j(e,y(t=>q(t)&&t>0))),negative:()=>J(j(e,y(t=>q(t)&&t<0)))}),vr=J(y(q)),$=e=>Object.assign(D(e),{between:(t,r)=>$(j(e,((n,o)=>y(a=>Y(a)&&n<=a&&o>=a))(t,r))),lt:t=>$(j(e,(r=>y(n=>Y(n)&&n<r))(t))),gt:t=>$(j(e,(r=>y(n=>Y(n)&&n>r))(t))),lte:t=>$(j(e,(r=>y(n=>Y(n)&&n<=r))(t))),gte:t=>$(j(e,(r=>y(n=>Y(n)&&n>=r))(t))),positive:()=>$(j(e,y(t=>Y(t)&&t>0))),negative:()=>$(j(e,y(t=>Y(t)&&t<0)))}),mr=$(y(Y)),br=D(y(function(e){return typeof e=="boolean"})),yr=D(y(function(e){return typeof e=="symbol"})),wr=D(y(function(e){return e==null})),xr=D(y(function(e){return e!=null}));var Et={__proto__:null,matcher:M,optional:Xe,array:function(...e){return ze({[M]:()=>({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 I(r).forEach(a=>{n[a]=[]}),{matched:!0,selections:n};const o=(a,i)=>{n[a]=(n[a]||[]).concat([i])};return{matched:t.every(a=>P(r,a,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:I(e[0])})})},set:function(...e){return D({[M]:()=>({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=(a,i)=>{r[a]=(r[a]||[]).concat([i])},o=e[0];return{matched:dr(t,a=>P(o,a,n)),selections:r}},getSelectionKeys:()=>e.length===0?[]:I(e[0])})})},map:function(...e){return D({[M]:()=>({match:t=>{if(!(t instanceof Map))return{matched:!1};let r={};if(t.size===0)return{matched:!0,selections:r};const n=(l,c)=>{r[l]=(r[l]||[]).concat([c])};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[a,i]=e;return{matched:fr(t,(l,c)=>{const u=P(a,c,n),f=P(i,l,n);return u&&f}),selections:r}},getSelectionKeys:()=>e.length===0?[]:[...I(e[0]),...I(e[1])]})})},record:function(...e){return D({[M]:()=>({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=(l,c)=>{n[l]=(n[l]||[]).concat([c])},[a,i]=e.length===1?[tt,e[0]]:e;return{matched:gr(t,(l,c)=>{const u=typeof l!="string"||Number.isNaN(Number(l))?null:Number(l),f=u!==null&&P(a,u,o),p=P(a,l,o),C=P(i,c,o);return(p||f)&&C}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...I(e[0]),...I(e[1])]})})},intersection:j,union:_t,not:function(e){return D({[M]:()=>({match:t=>({matched:!P(e,t,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:y,select:ve,any:At,unknown:pr,_:hr,string:tt,number:vr,bigint:mr,boolean:br,symbol:yr,nullish:wr,nonNullable:xr,instanceOf:function(e){return D(y((function(t){return r=>r instanceof t})(e)))},shape:function(e){return D(y(ur(e)))}};let kr=class 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 Ue={matched:!1,value:void 0};function Q(e){return new Cr(e,Ue)}let Cr=class We{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 a=!1,i={};const l=(u,f)=>{a=!0,i[u]=f},c=!n.some(u=>P(u,this.input,l))||o&&!o(this.input)?Ue:{matched:!0,value:r(a?Ne in i?i[Ne]:i:this.input,this.input)};return new We(this.input,c)}when(t,r){if(this.state.matched)return this;const n=!!t(this.input);return new We(this.input,n?{matched:!0,value:r(this.input,this.input)}:Ue)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(t=Sr){return this.state.matched?this.state.value:t(this.input)}run(){return this.exhaustive()}returnType(){return this}narrow(){return this}};function Sr(e){throw new kr(e)}const se={STANDBY:"standby",CONNECTING:"connecting",READY:"ready",HANDSHAKE:"handshake",HANDSHAKE_PARTIAL:"handshake-partial",ENCRYPTED:"encrypted"},ie={CREATED:"created",SIGNALING:"signaling",READY:"ready",LINKING:"linking",CONNECTED:"connected",DISCONNECTED:"disconnected"},ne={STANDBY:"standby",CREATING:"creating",CONNECTING:"connecting",CONNECTED:"connected",ERROR:"error"};var Be={exports:{}};var rt;function Nr(){return rt||(rt=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(a=o(a,n(l)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var l in a)t.call(a,l)&&a[l]&&(i=o(i,l));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Be)),Be.exports}var _r=Nr();const ee=lr(_r),jr=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};function Ge(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Tt=(e,t=[],r={})=>{for(const[n,o]of Object.entries(e)){const a=[...t,n];Ge(o)?Tt(o,a,r):r[`--lv-${a.join("-")}`]=o}return r},Ar=(e="auto",t="system")=>e==="light"||e==="dark"?e:t==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t,Rt=(e,t)=>{const r={...e};for(const n of Object.keys(t)){const o=e[n],a=t[n];r[n]=Ge(o)&&Ge(a)?Rt(o,a):a}return r},Er=async(e,t="system")=>{const r=await jr(e.theme),n=Ar(e.mode,t),o=r[n];if(!o)return"";const a=r.common?Rt(r.common,o):o,i=Tt(a);return Object.entries(i).map(([l,c])=>`${l}: ${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-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-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@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-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-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}.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)))}.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}.font-sans{font-family:var(--font-sans)}.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,)}.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\\:items-center{align-items:center}}@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)}.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:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{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(1.05)}}@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-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-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}@keyframes spin{to{transform:rotate(360deg)}}`,ot=async(e,t,r="system")=>{let n=e.querySelector("style[data-openlv-modal]");if(n||(n=document.createElement("style"),n.setAttribute("data-openlv-modal","true"),e.appendChild(n)),t){const o=await Er(t,r);n.textContent=`:root, :host {
|
|
3
|
-
${
|
|
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
|
+
${i}
|
|
4
4
|
}
|
|
5
|
-
`+
|
|
6
|
-
Or copy the link and paste it into your wallet.`},
|
|
7
|
-
`).map((b,w,T)=>w<T.length-1?[b,s.jsx("br",{},w)]:[b]),[o]),u=d.useMemo(()=>Fr(r),[r]),f=d.useMemo(()=>({languageTag:r,setLanguageTag:n,isLoadingLanguagePack:i,isRtl:u,t:c}),[i,u,r,c]);return s.jsx(Ot.Provider,{value:f,children:e})},U=()=>{const e=d.useContext(Ot);if(!e)throw new Error("TranslationProvider not found");return e},Pt=v.createContext({provider:void 0,themeConfig:void 0}),Kr=e=>{const t=e?.storage.getSettings().language;return t||zr()},Hr=({provider:e,onClose:t,theme:r})=>{const n=d.useMemo(()=>Kr(e),[e]);return s.jsx(Gr,{initialLanguageTag:n,children:s.jsx(Pt.Provider,{value:{provider:e,themeConfig:r},children:s.jsx($t,{onClose:t})})})},Lt=()=>{const e=d.useContext(Pt);if(!e.provider)throw new Error("Provider not found");return e},ye=()=>{const{provider:e}=Lt(),[t,r]=d.useState(e?.getState().status||ne.ERROR);if(d.useEffect(()=>{const n=a=>{r(a)};e?.on("status_change",n);const o=e?.getState().status;return o&&r(o),()=>{e?.off("status_change",n)}},[e]),!e)throw new Error("Provider not found");return{provider:e,status:t}},Ze=(...e)=>console.log("%c[modal]%c","color: yellow; font-weight: bold","color: inherit; font-weight: normal",...e),Dt=(e,t,r)=>{d.useEffect(()=>(e?.on(t,r),()=>{e?.off(t,r)}),[e,t])},ce=()=>{const{provider:e}=ye(),[t,r]=d.useState(e?.storage.getSettings());Dt(e?.storage.emitter,"settings_change",g=>{r(g)});const n=g=>{r(g),e?.storage.setSettings(g)},o=g=>{t?.signaling&&t.signaling.p!==g&&n({...t,signaling:{...t.signaling,p:g}})},a=g=>{t?.signaling&&t.signaling.s[t.signaling.p]!==g&&n({...t,signaling:{...t.signaling,s:{...t.signaling.s,[t.signaling.p]:g}}})},i=g=>{t&&n({...t,retainHistory:g})},l=g=>{t&&n({...t,autoReconnect:g})},c=g=>{t&&t.theme!==g&&(r({...t,theme:g}),e?.storage.setSettings({...t,theme:g}))},u=g=>{t&&n({...t,language:g})},f=g=>{t&&t.transport?.p!==g&&n({...t,transport:{...t.transport,p:g}})},p=g=>{if(!t)return;const m=t.transport?.s?.webrtc,L=g(m);n({...t,transport:{p:t.transport?.p??"webrtc",s:{...t.transport?.s,webrtc:L}}})},C=g=>{p(m=>({...m,stun:[...m?.stun??[],g]}))},b=g=>{p(m=>{const L=m?.stun?.filter((_,W)=>W!==g);return{...m,stun:L?.length?L:void 0}})},w=(g,m)=>{p(L=>{const _=[...L?.stun??[]];return _[g]=m,{...L,stun:_}})},T=g=>{p(m=>({...m,turn:[...m?.turn??[],g]}))},h=g=>{p(m=>{const L=m?.turn?.filter((_,W)=>W!==g);return{...m,turn:L?.length?L:void 0}})},k=(g,m)=>{p(L=>{const _=[...L?.turn??[]];return _[g]={..._[g],...m},{...L,turn:_}})};if(!t)throw new Error("Settings not found");return{settings:t,updateSignalingProtocol:o,updateSignalingServer:a,updateRetainHistory:i,updateAutoReconnect:l,updateThemePreference:c,updateLanguage:u,updateTransportProtocol:f,addStunServer:C,removeStunServer:b,updateStunServer:w,addTurnServer:T,removeTurnServer:h,updateTurnServer:k}},we=()=>{const{provider:e}=ye(),[t,r]=d.useState(e?.getSession()),n=t?.getHandshakeParameters(),o=n?ir(n):void 0,[a,i]=d.useState(t?.getState());return Dt(t?.emitter,"state_change",l=>{Ze("session state change: ",l),i(l)}),d.useEffect(()=>{const l=()=>{const u=e?.getSession();u&&r(u)};e?.on("status_change",l);const c=e?.getSession();return c&&r(c),()=>{e?.off("status_change",l)}},[e]),d.useEffect(()=>{const l=c=>{r(c),i(c.getState())};return e?.on("session_started",l),()=>{e?.off("session_started",l)}},[e]),d.useEffect(()=>{t&&i(t.getState())},[t]),{uri:o,status:a}},qr=()=>{const{provider:e}=ye(),{settings:t}=ce();return{start:()=>{const 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})}}},Ke=({state:e})=>{const{status:t,uri:r}=we(),{status:n}=ye();return console.error("Unknown state: ",{state:e,sessionStatus:t,providerStatus:n}),s.jsxs("div",{className:"rounded-md bg-(--lv-control-button-secondary-background) p-2 text-(--lv-text-muted)",children:[s.jsxs("div",{children:["Unknown state: ",JSON.stringify(e)]}),s.jsxs("div",{children:["URI: ",r]}),s.jsxs("div",{children:["Session Status: ",JSON.stringify(t)]}),s.jsxs("div",{children:["Provider Status: ",JSON.stringify(n)]})]})},Jr=({onCopy:e})=>{const{t}=U(),{uri:r}=we(),n=d.useCallback(()=>{r&&e(r)},[r,e]),o=d.useCallback(a=>{const i=ar.default,l=i(0,"M");return l.addData(a),l.make(),l.createSvgTag({cellSize:5,margin:0,scalable:!0})},[]);return s.jsxs("div",{className:"flex flex-col items-center gap-4 px-2",children:[s.jsxs("div",{className:"w-full space-y-4 rounded-md border border-(--lv-control-button-secondary-border) bg-(--lv-card-background) p-4",children:[r&&s.jsx("div",{className:"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",children:s.jsx("button",{className:"h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)",onClick:n,title:t("handshake.clickToCopyUrl"),dangerouslySetInnerHTML:{__html:o(r)}})}),s.jsx("div",{className:"w-full",children:s.jsx("button",{type:"button",onClick:n,className:"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)",children:t("handshake.copyConnectionUrl")})})]}),s.jsx("div",{className:"w-full text-sm text-(--lv-text-secondary)",children:s.jsx("span",{children:t("handshake.scanCodeInstruction")})})]})},Qr=()=>typeof document<"u"&&"startViewTransition"in document,Xr=e=>{Qr()?document.startViewTransition(e):e()},Ie=()=>s.jsx("div",{className:"flex items-center justify-center",children:s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent"})}),O={CREATING:"creating",CONNECTING:"connecting",READY:"ready",LINKING:"linking",CONNECTED:"connected",DISCONNECTED:"disconnected",ERROR:"error"},Yr=e=>{const[t,r]=d.useState(e),n=d.useRef(e);return d.useEffect(()=>{e!==n.current&&Xr(()=>{r(e),n.current=e})},[e]),{displayState:t}},Zr=e=>e?Q(e).with({status:ie.CREATED},()=>O.CREATING).with({status:ie.SIGNALING,signaling:Et.select()},t=>Q(t).with({state:se.STANDBY},()=>O.CONNECTING).with({state:se.CONNECTING},()=>O.CONNECTING).with({state:se.READY},()=>O.READY).with({state:se.HANDSHAKE},()=>O.LINKING).with({state:se.HANDSHAKE_PARTIAL},()=>O.LINKING).with({state:se.ENCRYPTED},()=>O.CONNECTED).otherwise(()=>O.CONNECTING)).with({status:ie.READY},()=>O.READY).with({status:ie.LINKING},()=>O.LINKING).with({status:ie.CONNECTED},()=>O.CONNECTED).with({status:ie.DISCONNECTED},()=>O.DISCONNECTED).otherwise(()=>O.ERROR):O.CONNECTING,$r=({onClose:e,onCopy:t})=>{const{t:r}=U(),{status:n}=we(),{displayState:o}=Yr(Zr(n));return s.jsx("div",{style:{viewTransitionName:"connection-flow"},className:"w-full",children:Q(o).with(O.CREATING,()=>s.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[s.jsx(Ie,{}),s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"mb-2 font-semibold text-(--lv-text-primary) text-lg",children:r("connectionFlow.preparingConnection")}),s.jsx("p",{className:"text-(--lv-text-muted) text-sm",children:r("connectionFlow.generatingKeys")})]})]})).with(O.CONNECTING,()=>s.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[s.jsx(Ie,{}),s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"mb-2 font-semibold text-(--lv-text-primary) text-lg",children:r("connectionFlow.connecting")}),s.jsx("p",{className:"text-(--lv-text-muted) text-sm",children:r("connectionFlow.waitingForNetwork")})]})]})).with(O.READY,()=>s.jsx(Jr,{onCopy:t})).with(O.LINKING,()=>s.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[s.jsx(Ie,{}),s.jsxs("div",{className:"text-center",children:[s.jsx("h3",{className:"mb-2 font-semibold text-(--lv-text-primary) text-lg",children:r("connectionFlow.establishingConnection")}),s.jsx("p",{className:"text-(--lv-text-muted) text-sm",children:r("connectionFlow.mayTakeFewSeconds")})]})]})).with(O.CONNECTED,()=>s.jsx("div",{className:"flex flex-col items-center gap-4 p-6",children:s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-4 text-4xl",children:"✅"}),s.jsx("h3",{className:"mb-2 font-semibold text-(--lv-text-primary) text-lg",children:r("connectionFlow.connectedSuccessfully")}),s.jsx("p",{className:"text-(--lv-text-muted) text-sm",children:r("connectionFlow.walletConnectedReady")})]})})).with(O.DISCONNECTED,()=>s.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[s.jsxs("div",{className:"text-center",children:[s.jsx("div",{className:"mb-4 text-4xl",children:"🔌"}),s.jsx("h3",{className:"mb-2 font-semibold text-(--lv-text-primary) text-lg",children:r("connectionFlow.disconnected")}),s.jsx("p",{className:"mb-4 text-(--lv-text-muted) text-sm",children:r("connectionFlow.connectionClosed")})]}),s.jsx("button",{type:"button",onClick:e,className:"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)",children:r("common.close")})]})).otherwise(()=>s.jsx(Ke,{state:n}))})};function Bt(e,t){for(var r in t)e[r]=t[r];return e}function He(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function It(e,t){var r=t(),n=d.useState({t:{__:r,u:t}}),o=n[0].t,a=n[1];return d.useLayoutEffect(function(){o.__=r,o.u=t,Me(o)&&a({t:o})},[e,r,t]),d.useEffect(function(){return Me(o)&&a({t:o}),e(function(){Me(o)&&a({t:o})})},[e]),r}function Me(e){var t,r,n=e.u,o=e.__;try{var a=n();return!((t=o)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function Mt(e){e()}function Vt(e){return e}function Ft(){return[!1,Mt]}var zt=d.useLayoutEffect;function qe(e,t){this.props=e,this.context=t}function en(e,t){function r(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:He(this.props,o)}function n(o){return this.shouldComponentUpdate=r,v.createElement(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=e,n}(qe.prototype=new v.Component).isPureReactComponent=!0,qe.prototype.shouldComponentUpdate=function(e,t){return He(this.props,e)||He(this.state,t)};var ct=v.options.__b;v.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ct&&ct(e)};var tn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function rn(e){function t(r){var n=Bt({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=tn,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ut=function(e,t){return e==null?null:v.toChildArray(v.toChildArray(e).map(t))},nn={map:ut,forEach:ut,count:function(e){return e?v.toChildArray(e).length:0},only:function(e){var t=v.toChildArray(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:v.toChildArray},on=v.options.__e;v.options.__e=function(e,t,r,n){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}on(e,t,r,n)};var dt=v.options.unmount;function Ut(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Bt({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ut(n,t,r)})),e}function Wt(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Wt(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Se(){this.__u=0,this.o=null,this.__b=null}function Gt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function an(e){var t,r,n,o=null;function a(i){if(t||(t=e()).then(function(l){l&&(o=l.default||l),n=!0},function(l){r=l,n=!0}),r)throw r;if(!n)throw t;return o?v.createElement(o,i):null}return a.displayName="Lazy",a.__f=!0,a}function ge(){this.i=null,this.l=null}v.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),dt&&dt(e)},(Se.prototype=new v.Component).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Gt(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(l):l())};r.__R=i;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Wt(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Se.prototype.componentWillUnmount=function(){this.o=[]},Se.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ut(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&v.createElement(v.Fragment,null,e.fallback);return o&&(o.__u&=-33),[v.createElement(v.Fragment,null,t.__a?null:e.children),o]};var ft=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function sn(e){return this.getChildContext=function(){return e.context},e.children}function ln(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){v.render(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,a){this.childNodes.push(o),t.h.insertBefore(o,a)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}v.render(v.createElement(sn,{context:t.context},e.__v),t.v)}function cn(e,t){var r=v.createElement(ln,{__v:e,h:t});return r.containerInfo=t,r}(ge.prototype=new v.Component).__a=function(e){var t=this,r=Gt(t.__v),n=t.l.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),ft(t,e,n)):o()};r?r(a):a()}},ge.prototype.render=function(e){this.i=null,this.l=new Map;var t=v.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){ft(e,r,t)})};var Kt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,un=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fn=/[A-Z0-9]/g,gn=typeof document<"u",pn=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function hn(e,t,r){return t.__k==null&&(t.textContent=""),v.render(e,t),typeof r=="function"&&r(),e?e.__c:null}function vn(e,t,r){return v.hydrate(e,t),typeof r=="function"&&r(),e?e.__c:null}v.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(v.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var gt=v.options.event;function mn(){}function bn(){return this.cancelBubble}function yn(){return this.defaultPrevented}v.options.event=function(e){return gt&&(e=gt(e)),e.persist=mn,e.isPropagationStopped=bn,e.isDefaultPrevented=yn,e.nativeEvent=e};var $e,wn={enumerable:!1,configurable:!0,get:function(){return this.class}},pt=v.options.vnode;v.options.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,o={},a=n.indexOf("-")===-1;for(var i in r){var l=r[i];if(!(i==="value"&&"defaultValue"in r&&l==null||gn&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var c=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?i="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||pn(r.type)?c==="onfocus"?i="onfocusin":c==="onblur"?i="onfocusout":dn.test(i)&&(i=c):c=i="oninput":a&&un.test(i)?i=i.replace(fn,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&o[i=c]&&(i="oninputCapture"),o[i]=l}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=v.toChildArray(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=v.toChildArray(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",wn)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o})(e),e.$$typeof=Kt,pt&&pt(e)};var ht=v.options.__r;v.options.__r=function(e){ht&&ht(e),$e=e.__c};var vt=v.options.diffed;v.options.diffed=function(e){vt&&vt(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),$e=null};var xn={ReactCurrentDispatcher:{current:{readContext:function(e){return $e.__n[e.__c].props.value},useCallback:d.useCallback,useContext:d.useContext,useDebugValue:d.useDebugValue,useDeferredValue:Vt,useEffect:d.useEffect,useId:d.useId,useImperativeHandle:d.useImperativeHandle,useInsertionEffect:zt,useLayoutEffect:d.useLayoutEffect,useMemo:d.useMemo,useReducer:d.useReducer,useRef:d.useRef,useState:d.useState,useSyncExternalStore:It,useTransition:Ft}}};function kn(e){return v.createElement.bind(null,e)}function Te(e){return!!e&&e.$$typeof===Kt}function Cn(e){return Te(e)&&e.type===v.Fragment}function Sn(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Nn(e){return Te(e)?v.cloneElement.apply(null,arguments):e}function _n(e){return!!e.__k&&(v.render(null,e),!0)}function jn(e){return e&&(e.base||e.nodeType===1&&e)||null}var An=function(e,t){return e(t)},En=function(e,t){return e(t)},Tn=v.Fragment,Rn=Te,oe={useState:d.useState,useId:d.useId,useReducer:d.useReducer,useEffect:d.useEffect,useLayoutEffect:d.useLayoutEffect,useInsertionEffect:zt,useTransition:Ft,useDeferredValue:Vt,useSyncExternalStore:It,startTransition:Mt,useRef:d.useRef,useImperativeHandle:d.useImperativeHandle,useMemo:d.useMemo,useCallback:d.useCallback,useContext:d.useContext,useDebugValue:d.useDebugValue,version:"18.3.1",Children:nn,render:hn,hydrate:vn,unmountComponentAtNode:_n,createPortal:cn,createElement:v.createElement,createContext:v.createContext,createFactory:kn,cloneElement:Nn,createRef:v.createRef,Fragment:v.Fragment,isValidElement:Te,isElement:Rn,isFragment:Cn,isMemo:Sn,findDOMNode:jn,Component:v.Component,PureComponent:qe,memo:en,forwardRef:rn,flushSync:En,unstable_batchedUpdates:An,StrictMode:Tn,Suspense:Se,SuspenseList:ge,lazy:an,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:xn},Ht={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},mt=oe.createContext&&oe.createContext(Ht),On=["attr","size","title"];function Pn(e,t){if(e==null)return{};var r=Ln(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ln(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_e.apply(this,arguments)}function bt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bt(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dn(e,t,r){return t=Bn(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bn(e){var t=In(e,"string");return typeof t=="symbol"?t:t+""}function In(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qt(e){return e&&e.map((t,r)=>oe.createElement(t.tag,je({key:r},t.attr),qt(t.child)))}function ae(e){return t=>oe.createElement(Mn,_e({attr:je({},e.attr)},t),qt(e.child))}function Mn(e){var t=r=>{var{attr:n,size:o,title:a}=e,i=Pn(e,On),l=o||r.size||"1em",c;return r.className&&(c=r.className),e.className&&(c=(c?c+" ":"")+e.className),oe.createElement("svg",_e({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,i,{className:c,style:je(je({color:e.color||r.color},r.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&oe.createElement("title",null,a),e.children)};return mt!==void 0?oe.createElement(mt.Consumer,null,r=>t(r)):t(Ht)}function Vn(e){return ae({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416.3 256c0-21 13.1-38.9 31.7-46.1-4.9-20.5-13-39.7-23.7-57.1-6.4 2.8-13.2 4.3-20.1 4.3-12.6 0-25.2-4.8-34.9-14.4-14.9-14.9-18.2-36.8-10.2-55-17.3-10.7-36.6-18.8-57-23.7C295 82.5 277 95.7 256 95.7S217 82.5 209.9 64c-20.5 4.9-39.7 13-57.1 23.7 8.1 18.1 4.7 40.1-10.2 55-9.6 9.6-22.3 14.4-34.9 14.4-6.9 0-13.7-1.4-20.1-4.3C77 170.3 68.9 189.5 64 210c18.5 7.1 31.7 25 31.7 46.1 0 21-13.1 38.9-31.6 46.1 4.9 20.5 13 39.7 23.7 57.1 6.4-2.8 13.2-4.2 20-4.2 12.6 0 25.2 4.8 34.9 14.4 14.8 14.8 18.2 36.8 10.2 54.9 17.4 10.7 36.7 18.8 57.1 23.7 7.1-18.5 25-31.6 46-31.6s38.9 13.1 46 31.6c20.5-4.9 39.7-13 57.1-23.7-8-18.1-4.6-40 10.2-54.9 9.6-9.6 22.2-14.4 34.9-14.4 6.8 0 13.7 1.4 20 4.2 10.7-17.4 18.8-36.7 23.7-57.1-18.4-7.2-31.6-25.1-31.6-46.2zm-159.4 79.9c-44.3 0-80-35.9-80-80s35.7-80 80-80 80 35.9 80 80-35.7 80-80 80z"},child:[]}]})(e)}var Fn=/\s+/g,zn=e=>typeof e!="string"||!e?e:e.replace(Fn," ").trim(),Ae=(...e)=>{const t=[],r=n=>{if(!n&&n!==0&&n!==0n)return;if(Array.isArray(n)){for(let a=0,i=n.length;a<i;a++)r(n[a]);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 a=Object.keys(n);for(let i=0,l=a.length;i<l;i++){const c=a[i];n[c]&&t.push(c)}}};for(let n=0,o=e.length;n<o;n++){const a=e[n];a!=null&&r(a)}return t.length>0?zn(t.join(" ")):void 0},yt=e=>e===!1?"false":e===!0?"true":e===0?"0":e,z=e=>{if(!e||typeof e!="object")return!0;for(const t in e)return!1;return!0},Un=(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 a=r[o];if(!n.includes(a)||e[a]!==t[a])return!1}return!0},Wn=(e,t)=>{for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=t[r];r in e?e[r]=Ae(e[r],n):e[r]=n}return e},Jt=(e,t)=>{for(let r=0;r<e.length;r++){const n=e[r];Array.isArray(n)?Jt(n,t):n&&t.push(n)}},Qt=(...e)=>{const t=[];Jt(e,t);const r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},Je=(e,t)=>{const r={};for(const n in e){const o=e[n];if(n in t){const a=t[n];Array.isArray(o)||Array.isArray(a)?r[n]=Qt(a,o):typeof o=="object"&&typeof a=="object"&&o&&a?r[n]=Je(o,a):r[n]=a+" "+o}else r[n]=o}for(const n in t)n in e||(r[n]=t[n]);return r},Gn={twMerge:!0,twMergeConfig:{}};function Kn(){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 Ve=Kn(),Hn=e=>{const t=(n,o)=>{const{extend:a=null,slots:i={},variants:l={},compoundVariants:c=[],compoundSlots:u=[],defaultVariants:f={}}=n,p={...Gn,...o},C=a?.base?Ae(a.base,n?.base):n?.base,b=a?.variants&&!z(a.variants)?Je(l,a.variants):l,w=a?.defaultVariants&&!z(a.defaultVariants)?{...a.defaultVariants,...f}:f;!z(p.twMergeConfig)&&!Un(p.twMergeConfig,Ve.cachedTwMergeConfig)&&(Ve.didTwMergeConfigChange=!0,Ve.cachedTwMergeConfig=p.twMergeConfig);const T=z(a?.slots),h=z(i)?{}:{base:Ae(n?.base,T&&a?.base),...i},k=T?h:Wn({...a?.slots},z(h)?{base:n?.base}:h),g=z(a?.compoundVariants)?c:Qt(a?.compoundVariants,c),m=_=>{if(z(b)&&z(i)&&T)return e(C,_?.class,_?.className)(p);if(g&&!Array.isArray(g))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(u&&!Array.isArray(u))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof u}`);const W=(S,N=b,x=null,A=null)=>{const E=N[S];if(!E||z(E))return null;const R=A?.[S]??_?.[S];if(R===null)return null;const V=yt(R);if(typeof V=="object")return null;const G=w?.[S],F=V??yt(G);return E[F||"false"]},Pe=()=>{if(!b)return null;const S=Object.keys(b),N=[];for(let x=0;x<S.length;x++){const A=W(S[x],b);A&&N.push(A)}return N},Le=(S,N)=>{if(!b||typeof b!="object")return null;const x=[];for(const A in b){const E=W(A,b,S,N),R=S==="base"&&typeof E=="string"?E:E&&E[S];R&&x.push(R)}return x},ue={};for(const S in _){const N=_[S];N!==void 0&&(ue[S]=N)}const xe=(S,N)=>{const x=typeof _?.[S]=="object"?{[S]:_[S]?.initial}:{};return{...w,...ue,...x,...N}},de=(S=[],N)=>{const x=[],A=S.length;for(let E=0;E<A;E++){const{class:R,className:V,...G}=S[E];let F=!0;const K=xe(null,N);for(const B in G){const H=G[B],ke=K[B];if(Array.isArray(H)){if(!H.includes(ke)){F=!1;break}}else{if((H==null||H===!1)&&(ke==null||ke===!1))continue;if(ke!==H){F=!1;break}}}F&&(R&&x.push(R),V&&x.push(V))}return x},te=S=>{const N=de(g,S);if(!Array.isArray(N))return N;const x={},A=e;for(let E=0;E<N.length;E++){const R=N[E];if(typeof R=="string")x.base=A(x.base,R)(p);else if(typeof R=="object")for(const V in R)x[V]=A(x[V],R[V])(p)}return x},re=S=>{if(u.length<1)return null;const N={},x=xe(null,S);for(let A=0;A<u.length;A++){const{slots:E=[],class:R,className:V,...G}=u[A];if(!z(G)){let F=!0;for(const K in G){const B=x[K],H=G[K];if(B===void 0||(Array.isArray(H)?!H.includes(B):H!==B)){F=!1;break}}if(!F)continue}for(let F=0;F<E.length;F++){const K=E[F];N[K]||(N[K]=[]),N[K].push([R,V])}}return N};if(!z(i)||!T){const S={};if(typeof k=="object"&&!z(k)){const N=e;for(const x in k)S[x]=A=>{const E=te(A),R=re(A);return N(k[x],Le(x,A),E?E[x]:void 0,R?R[x]:void 0,A?.class,A?.className)(p)}}return S}return e(C,Pe(),de(g),_?.class,_?.className)(p)},L=()=>{if(!(!b||typeof b!="object"))return Object.keys(b)};return m.variantKeys=L(),m.extend=a,m.base=C,m.slots=k,m.variants=b,m.defaultVariants=w,m.compoundSlots=u,m.compoundVariants=g,m};return{tv:t,createTV:n=>(o,a)=>t(o,a?Je(n,a):n)}},qn=(...e)=>t=>Ae(e)||void 0,{tv:Re}=Hn(qn);const wt=Re({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"}});function le(e){const{children:t,className:r,$variant:n,$size:o,$aspect:a,...i}=e,{href:l,onClick:c}=e;if(l){const f={href:l,onClick:c,className:ee(wt({$variant:n,$size:o,$aspect:a}),r),...i};return v.createElement("a",f,t)}const u={onClick:c,className:ee(wt({$variant:n,$size:o,$aspect:a}),r),...i};return v.createElement("button",u,t)}const Jn=({isApple:e})=>s.jsxs("div",{className:"flex h-full w-full justify-between",children:[s.jsx("div",{className:"grow py-1 ps-1",children:s.jsx("div",{className:"h-full rounded-sm border border-gray-300 bg-gray-400"})}),s.jsx("div",{className:"flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5",children:Array.from({length:e?1:3}).map((t,r)=>s.jsx("div",{className:"h-1.5 w-1.5 rounded-full border border-gray-500"},"dot-t-"+r))})]}),Qn=({isApple:e})=>s.jsxs("div",{className:"flex h-full w-full flex-col justify-between",children:[s.jsx("div",{className:"grow px-1 pt-1",children:s.jsx("div",{className:"h-full rounded-sm border border-gray-200 bg-gray-300"})}),s.jsx("div",{className:"flex h-3 w-full items-center justify-center gap-0.5 pb-0.5",children:Array.from({length:e?1:3}).map((t,r)=>s.jsx("div",{className:"h-1.5 w-1.5 rounded-full border border-gray-400"},"dot-p-"+r))})]}),Xn=()=>s.jsxs("div",{className:"-space-x-4 flex items-end",children:[s.jsx("div",{className:"h-38 w-48 overflow-hidden rounded-lg bg-gray-300",children:s.jsx(Jn,{isApple:!0})}),s.jsx("div",{className:"h-18 w-12 overflow-hidden rounded-lg bg-gray-200",children:s.jsx(Qn,{isApple:!0})})]}),Yn=({onSettings:e})=>{const{t}=U(),{start:r}=qr();return s.jsxs("div",{className:"flex flex-col items-center gap-4 p-6",children:[s.jsx(Xn,{}),s.jsx("div",{className:"text-center",children:s.jsx("p",{className:"text-sm text-(--lv-text-secondary)",children:t("disconnected.prompt")})}),s.jsxs("div",{className:"flex items-center",children:[s.jsx(le,{type:"button",onClick:r,className:"z-10 px-6 py-3",$variant:"primary",$size:"lg",children:t("disconnected.generateQr")}),s.jsx(le,{type:"button","aria-label":t("disconnected.connectionSettings"),"aria-pressed":!1,onClick:e,className:"px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",$aspect:"square",$size:"lg",$variant:"secondary",children:s.jsx(Vn,{className:"h-5 w-5 text-(--lv-text-muted)"})})]})]})},Zn=()=>{const{t:e}=U();return s.jsxs("div",{className:"flex flex-col space-y-2 px-4",children:[s.jsx("div",{className:"min-h-32 w-full rounded-md border border-(--lv-control-button-secondary-border) p-2",children:e("info.scanQrCode")}),s.jsx("div",{className:"w-full rounded-md border border-border p-2",children:e("info.approveOnDevice")}),s.jsx("div",{className:"w-full rounded-md border border-border p-2",children:e("info.youreConnected")})]})},$n=async e=>{if(!e)return!1;try{if(navigator?.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-999999px",t.style.top="-999999px",document.body.appendChild(t),t.focus(),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}},Qe=(e,{duration:t=200}={})=>{const[r,n]=d.useState(e),[o,a]=d.useState(null),i=d.useRef(),l=d.useRef(e);return d.useEffect(()=>{if(!Object.is(e,l.current))return i.current&&window.clearTimeout(i.current),a(l.current),n(e),l.current=e,i.current=window.setTimeout(()=>{a(null),i.current=void 0},t),()=>{i.current&&window.clearTimeout(i.current)}},[e,t]),{current:r,previous:o,isTransitioning:o!==null}},Xt=()=>{const{themeConfig:e}=Lt(),{settings:t,updateThemePreference:r}=ce(),n=e?.mode??"auto",o=t?.theme??"system",a=n==="auto";return{themeMode:a?o??"system":n,appThemeMode:n,userThemeMode:o,isUserConfigurable:a,updateThemePreference:r}},Yt="data:image/webp;base64,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",eo=()=>{const{t:e}=U(),{status:t}=we(),r=t?.status,n=t?.signaling?.state,o=Q({sessionState:r,signalState:n}).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(()=>{});if(!o)return s.jsx(s.Fragment,{});const{icon:a,text:i}=o;return s.jsxs("div",{className:"group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-(--lv-control-button-secondary-background)",children:[s.jsx("div",{className:"pointer-events-none whitespace-nowrap rounded-md text-xs opacity-0 group-hover:opacity-100",children:i}),s.jsx("div",{children:a})]})},to=()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"h-11 w-full"}),s.jsxs("div",{className:"absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-(--lv-text-muted)",children:[s.jsxs("a",{href:"https://github.com/v3xlabs/open-lavatory",target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 p-1 font-semibold text-sm text-(--lv-text-muted)",children:[s.jsx("img",{src:Yt,alt:"Open Lavatory Logo",width:20,height:20,className:"rounded","data-openlv-brand-logo":!0}),s.jsx("span",{children:"openlv"})]}),s.jsx("div",{className:"text-sm text-(--lv-text-muted)",children:s.jsx(eo,{})})]})]});function ro(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 18-6-6 6-6"},child:[]}]})(e)}function no(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m9 18 6-6-6-6"},child:[]}]})(e)}function Zt(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"path",attr:{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"},child:[]},{tag:"path",attr:{d:"M12 17h.01"},child:[]}]})(e)}function oo(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M5 12h14"},child:[]},{tag:"path",attr:{d:"M12 5v14"},child:[]}]})(e)}function ao(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 6h18"},child:[]},{tag:"path",attr:{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"},child:[]},{tag:"path",attr:{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"},child:[]},{tag:"line",attr:{x1:"10",x2:"10",y1:"11",y2:"17"},child:[]},{tag:"line",attr:{x1:"14",x2:"14",y1:"11",y2:"17"},child:[]}]})(e)}function so(e){return ae({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const io=({title:e,view:t,onClose:r,onBack:n,setView:o})=>{const{t:a}=U();return s.jsxs("div",{className:"flex items-center justify-between px-2 py-2",children:[n?s.jsx(le,{onClick:n,"aria-label":a(t==="settings"?"modal.backToQr":"modal.closeModal"),$variant:"tertiary",$aspect:"square",$size:"md",children:s.jsx(ro,{className:"h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"})}):s.jsx(le,{type:"button",onClick:()=>o("info"),$variant:"tertiary",$aspect:"square",$size:"md",children:s.jsx(Zt,{className:"h-5 w-5"})}),s.jsx("h2",{className:"flex items-center justify-center gap-2 font-semibold text-(--lv-text-primary) text-lg",children:e}),s.jsx(le,{type:"button","aria-label":a("common.close"),"aria-pressed":!1,onClick:r,$variant:"tertiary",$aspect:"square",$size:"md",children:s.jsx(so,{className:"h-6 w-6 text-(--lv-text-muted)"})})]})};function lo(e,{transitionDuration:t=200}={}){const[r,n]=d.useState(e),{current:o,previous:a,isTransitioning:i}=Qe(r,{duration:t}),l=d.useCallback(u=>{n(u)},[]),c=d.useCallback(()=>{n(e)},[e]);return{screen:o,previousScreen:a,isTransitioning:i,navigate:l,goBack:c,isAtRoot:o===e}}const co=({current:e,previous:t,isTransitioning:r,render:n,className:o})=>s.jsxs("div",{className:ee("modal-transition__container",o),children:[t!==null&&s.jsx("div",{className:"modal-transition__layer modal-transition__layer--outgoing",children:n(t)}),s.jsx("div",{className:ee("modal-transition__layer",r&&"modal-transition__layer--incoming"),children:n(e)})]}),me=({title:e,right:t,children:r})=>s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-end justify-between py-1 pl-2",children:[s.jsx("div",{className:"font-medium text-(--lv-text-primary) text-sm",children:e}),s.jsx("div",{children:t})]}),s.jsx("div",{className:"flex flex-col gap-1 rounded-md bg-(--lv-card-background)",children:r})]}),be=({label:e,children:t})=>s.jsxs("div",{className:"flex items-baseline justify-between gap-2 px-2 py-1 first:pt-2 last:pb-2",children:[s.jsx("div",{className:"text-sm text-(--lv-text-secondary) text-start",children:e}),s.jsx("div",{children:t})]}),uo=Re({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"}}),fo=Re({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"}),Oe=({options:e,value:t,onChange:r,dropdownThreshold:n=3})=>{if(e.length>n){const l=fo();return s.jsx("select",{className:l,value:t,onChange:c=>r(c.target.value),children:e.map(([c,u])=>s.jsx("option",{value:c,children:u},c))})}const{root:a,box:i}=uo({});return s.jsx("div",{className:a(),children:e.map(([l,c])=>s.jsx("button",{type:"button",onClick:()=>r(l),"aria-pressed":l===t,className:i({active:l===t?"on":"off"}),children:c},l))})},go=()=>{const{t:e}=U(),{userThemeMode:t,isUserConfigurable:r,updateThemePreference:n}=Xt();if(!r)return null;const o=[["light",e("settings.theme.light")],["dark",e("settings.theme.dark")],["system",e("settings.theme.system")]];return s.jsx(be,{label:e("settings.theme.mode"),children:s.jsx(Oe,{options:o,value:t,onChange:a=>n(a)})})},po=()=>{const{t:e,languageTag:t,setLanguageTag:r}=U(),{settings:n,updateLanguage:o}=ce(),a=d.useMemo(()=>[...Ye].sort((l,c)=>{const u=st(l.tag);return st(c.tag)-u}),[]),i=l=>{const c=l;r(c),o(c)};return s.jsxs(me,{title:e("settings.appearance"),children:[s.jsx(be,{label:e("settings.language"),children:s.jsx(Oe,{options:a.map(l=>[l.tag,l.nativeName]),value:n?.language||t,onChange:i})}),s.jsx(go,{})]})},ho=Re({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"}}),xt=({variant:e="icon",children:t,size:r="lg"})=>{const{root:n,box:o,popover:a,icon:i}=ho({size:r,variant:e});return s.jsxs("div",{className:n(),children:[s.jsx("div",{className:o(),children:Q(e).with("icon",()=>s.jsx(Zt,{className:i()})).with("text",()=>s.jsx("div",{children:"Text"})).exhaustive()}),s.jsx("div",{className:a(),children:t})]})},kt=({label:e,value:t,onClick:r})=>s.jsxs("button",{type:"button",onClick:r,className:"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)",children:[s.jsx("div",{className:"text-sm text-(--lv-text-secondary) flex items-center gap-1",children:e}),s.jsxs("div",{className:"flex items-center gap-1",children:[t&&s.jsx("span",{className:"text-sm text-(--lv-text-muted)",children:t}),s.jsx(no,{className:"h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"})]})]}),vo=({value:e,onChange:t})=>{const{t:r}=U();return s.jsx(Oe,{options:[["true",String(r("common.yes"))],["false",String(r("common.no"))]],value:e?"true":"false",onChange:n=>t(n==="true")})},mo=({onNavigate:e})=>{const{t}=U(),{settings:r,updateRetainHistory:n,updateAutoReconnect:o}=ce();return s.jsxs(me,{title:t("settings.connectionPreferences.title"),children:[s.jsx(kt,{label:s.jsxs(s.Fragment,{children:[t("settings.signaling.title"),s.jsx(xt,{variant:"icon",children:t("settings.signaling.description")})]}),onClick:()=>e("signaling"),value:r?.signaling?.p}),s.jsx(kt,{label:s.jsxs(s.Fragment,{children:[t("settings.transport.title"),s.jsx(xt,{variant:"icon",children:t("settings.transport.description")})]}),onClick:()=>e("transport"),value:"WebRTC"}),[[t("settings.connectionPreferences.retainSessionHistory"),"retainHistory",r?.retainHistory??!1,n],[t("settings.connectionPreferences.autoReconnect"),"autoReconnect",r?.autoReconnect??!1,o]].map(([a,i,l,c])=>s.jsx(be,{label:a,children:s.jsx(vo,{label:a,value:l,onChange:c})},i))]})},bo="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)",pe=({id:e,value:t,placeholder:r,ariaLabel:n,readOnly:o=!0,onChange:a})=>s.jsx("input",{id:e,className:bo,value:t,placeholder:r,"aria-label":n,readOnly:o,onChange:i=>{i.target instanceof HTMLInputElement&&a?.(i.target.value)}}),yo=["mqtt","ntfy","gun"],wo=()=>{const{t:e}=U(),{settings:t,updateSignalingProtocol:r,updateSignalingServer:n}=ce();return s.jsxs("div",{children:[s.jsxs(me,{title:e("settings.signaling.title"),children:[s.jsx(be,{label:e("common.protocol"),children:s.jsx(Oe,{options:yo.map(o=>[o.toLowerCase(),o.toUpperCase()]),value:t?.signaling?.p||"",onChange:r})}),s.jsx(be,{label:e("settings.signaling.server"),children:s.jsx(pe,{id:"server",value:t?.signaling?.s?.[t?.signaling?.p??""]??"",onChange:o=>n(o),placeholder:e("settings.signaling.serverUrl"),ariaLabel:e("settings.signaling.serverUrl"),readOnly:!1})})]}),s.jsx("div",{className:"p-2 text-sm text-(--lv-text-secondary) text-start",children:e("settings.signaling.description")})]})},Ct=({children:e,onRemove:t})=>s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx("div",{className:"flex-1",children:e}),s.jsx(le,{onClick:t,$variant:"tertiary",$aspect:"square",$size:"sm",children:s.jsx(ao,{className:"h-4 w-4 text-(--lv-text-muted)"})})]}),St=({label:e,onClick:t})=>s.jsxs("button",{type:"button",onClick:t,className:"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)",children:[s.jsx(oo,{className:"h-4 w-4"}),e]}),xo=()=>{const{t:e}=U(),{settings:t,addStunServer:r,removeStunServer:n,updateStunServer:o,addTurnServer:a,removeTurnServer:i,updateTurnServer:l}=ce(),c=t?.transport?.s?.webrtc?.stun??[],u=t?.transport?.s?.webrtc?.turn??[],f=(h,k)=>{o(h,k)},p=()=>{r("")},C=h=>{n(h)},b=(h,k,g)=>{l(h,{[k]:g||void 0})},w=()=>{a({urls:""})},T=h=>{i(h)};return s.jsxs(s.Fragment,{children:[s.jsx(me,{title:e("settings.transport.iceServers.stun"),children:s.jsxs("div",{className:"flex flex-col gap-2 p-2",children:[c.map((h,k)=>s.jsx(Ct,{onRemove:()=>C(k),children:s.jsx(pe,{value:h,onChange:g=>f(k,g),placeholder:"stun:stun.l.google.com:19302",readOnly:!1})},k)),s.jsx(St,{label:e("settings.transport.iceServers.addStun"),onClick:p})]})}),s.jsx(me,{title:e("settings.transport.iceServers.turn"),children:s.jsxs("div",{className:"flex flex-col gap-3 p-2",children:[u.map((h,k)=>s.jsxs("div",{className:"flex flex-col gap-2 rounded-md border border-(--lv-control-input-border) p-2",children:[s.jsx(Ct,{onRemove:()=>T(k),children:s.jsx(pe,{value:h.urls,onChange:g=>b(k,"urls",g),placeholder:"turn:relay.example.com:443",readOnly:!1})}),s.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[s.jsx(pe,{value:h.username??"",onChange:g=>b(k,"username",g),placeholder:"Username",readOnly:!1}),s.jsx(pe,{value:h.credential??"",onChange:g=>b(k,"credential",g),placeholder:"Password",readOnly:!1})]})]},k)),s.jsx(St,{label:e("settings.transport.iceServers.addTurn"),onClick:w})]})}),s.jsx("div",{className:"p-2 text-sm text-(--lv-text-secondary) text-start",children:e("settings.transport.description")})]})},ko=e=>{switch(e){case"main":return"settings.title";case"signaling":return"settings.signaling.title";case"transport":return"settings.transport.title"}},Co=({onTitleChange:e,navigationRef:t})=>{const{screen:r,previousScreen:n,isTransitioning:o,navigate:a,goBack:i,isAtRoot:l}=lo("main"),c=d.useRef({goBack:i,isAtRoot:l});c.current={goBack:i,isAtRoot:l},d.useEffect(()=>{t&&(t.current=c.current)},[t,i,l]),d.useEffect(()=>{e?.(ko(r))},[r,e]);const u=f=>{switch(f){case"main":return s.jsxs(s.Fragment,{children:[s.jsx(mo,{onNavigate:a}),s.jsx(po,{})]});case"signaling":return s.jsx(wo,{});case"transport":return s.jsx(xo,{})}};return s.jsx("div",{className:"px-4 pb-2",children:s.jsx(co,{current:r,previous:n,isTransitioning:o,render:u})})},So=()=>{const[e,t]=d.useState("start"),[r,n]=d.useState(!1);return d.useEffect(()=>{if(!r)return;const o=window.setTimeout(()=>n(!1),2e3);return()=>window.clearTimeout(o)},[r]),{view:e,setView:t,copied:r,setCopied:n}},No=e=>{d.useEffect(()=>{const t=r=>{r.key==="Escape"&&e()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])},_o=()=>{const e=d.useRef(null),[t,r]=d.useState(0),n=d.useRef(!1),o=d.useCallback((a,i=!1)=>{const l=a||e.current;if(!l)return;const c=i?l.scrollHeight:l.getBoundingClientRect().height;c>0&&(r(u=>typeof u=="number"&&Math.abs(u-c)<.5?u:c),n.current=!0)},[]);return d.useLayoutEffect(()=>{const a=e.current;if(!a||typeof ResizeObserver>"u")return;const i=new ResizeObserver(()=>{o()});return i.observe(a),()=>i.disconnect()},[o]),d.useEffect(()=>{if(typeof window>"u")return;const a=()=>{o()};return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[o]),{contentRef:e,height:t,measureHeight:o,setHeight:r}},jo=({onClose:e,onCopy:t})=>{const{view:r,setView:n,copied:o,setCopied:a}=So(),{uri:i}=we(),{status:l,provider:c}=ye(),{contentRef:u,height:f,measureHeight:p}=_o(),{current:C,previous:b,isTransitioning:w}=Qe(r),{current:T,previous:h,isTransitioning:k}=Qe(l),g=d.useCallback(()=>n("settings"),[n]),{t:m,isRtl:L}=U(),{themeMode:_}=Xt(),W=d.useRef(null),[Pe,Le]=d.useState("settings.title"),ue=Q(r).with("start",()=>m("start.title")).with("settings",()=>m(Pe)).with("info",()=>m("info.title")).exhaustive();No(e),d.useEffect(()=>{l===ne.CONNECTED&&e()},[l,e]);const xe=d.useCallback(async()=>{i&&await $n(i)&&a(!0)},[i,a]),de=d.useRef(!0),te=d.useRef(),re=d.useRef(void 0),[S,N]=d.useState(!1),x=d.useRef();d.useLayoutEffect(()=>{if(u.current)return de.current?(te.current&&window.clearTimeout(te.current),te.current=window.setTimeout(()=>{u.current&&(p(void 0,!0),de.current=!1)},0)):p(),()=>{te.current&&window.clearTimeout(te.current)}},[p,T,C]),d.useEffect(()=>(re.current!==void 0&&f!==re.current&&f>0&&re.current>0&&Math.abs(f-re.current)>.5&&(N(!0),x.current&&window.clearTimeout(x.current),x.current=window.setTimeout(()=>{N(!1),x.current=void 0},200)),re.current=f,()=>{x.current&&window.clearTimeout(x.current)}),[f]);const A=()=>{c?.closeSession()},E=Q({view:r,status:l}).with({view:"start",status:ne.STANDBY},()=>{}).with({view:"start"},()=>A).with({view:"settings"},()=>W.current&&!W.current.isAtRoot?()=>W.current?.goBack():()=>n("start")).with({view:"info"},()=>()=>n("start")).otherwise(()=>()=>{A(),e()}),R=B=>Q(B).with("start",()=>s.jsx(Yn,{onSettings:g})).with("settings",()=>s.jsx(Co,{onTitleChange:Le,navigationRef:W})).with("info",()=>s.jsx(Zn,{})).otherwise(()=>s.jsx(Ke,{state:B})),V=()=>s.jsxs("div",{className:"modal-transition__container",children:[b&&s.jsx("div",{className:"modal-transition__layer modal-transition__layer--outgoing",children:R(b)}),s.jsx("div",{className:ee("modal-transition__layer",w&&"modal-transition__layer--incoming"),children:R(C)})]}),G=B=>Q(B).with(ne.STANDBY,()=>V()).with(Et.union(ne.CREATING,ne.CONNECTING,ne.CONNECTED),()=>s.jsx($r,{onClose:e,onCopy:t||xe})).otherwise(H=>s.jsx(Ke,{state:H||"unknown status"}));Ze("view",r);const F={background:"var(--lv-overlay-background, rgba(0,0,0,0.3))",backdropFilter:"var(--lv-overlay-backdrop-filter, blur(4px))"},K={background:"var(--lv-body-background)",color:"var(--lv-body-color, var(--lv-text-primary))",borderRadius:"var(--lv-border-radius, 16px)",boxShadow:"var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"};return s.jsx("div",{className:"fixed inset-0 z-10000 flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center font-sans md:items-center lg:p-4",onClick:e,role:"presentation","data-openlv-modal-root":!0,"data-openlv-theme-mode":_,dir:L?"rtl":"ltr",style:F,children:s.jsxs("div",{className:ee("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out",S||h?"overflow-hidden":void 0),role:"dialog","aria-modal":"true","aria-label":ue,onClick:B=>B.stopPropagation(),style:{...typeof f=="number"&&f>0?{height:`${f}px`}:{},...K},children:[s.jsxs("div",{ref:u,children:[s.jsx(io,{title:ue,view:r,onClose:e,onBack:E,setView:n}),s.jsxs("div",{className:"modal-transition__container",children:[h&&s.jsx("div",{className:"modal-transition__layer modal-transition__layer--outgoing absolute",children:s.jsx("div",{className:"flex flex-col text-center",children:G(h)})}),s.jsx("div",{className:ee("modal-transition__layer",k&&"modal-transition__layer--incoming"),children:s.jsx("div",{className:"flex flex-col text-center",children:G(T)})})]}),s.jsx(to,{})]}),s.jsx("div",{className:ee("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",o?"translate-x-0 opacity-100":"opacity-0 ltr:translate-x-full rtl:-translate-x-full"),children:m("modal.urlCopied")})]})})},$t=({onClose:e=()=>{},onCopy:t})=>s.jsx(jo,{onClose:e,onCopy:t}),Ao=(e="idle")=>{const[t,r]=d.useState({state:e}),n=d.useCallback((i,l)=>{r(c=>({...c,state:i,...l}))},[]),o=d.useCallback(i=>{r(i)},[]),a=d.useCallback(()=>{r({state:"idle"})},[]);return{connectionInfo:t,updateState:n,updateConnectionInfo:o,reset:a}},er=(e="openlv-modal")=>{if(typeof window>"u")return e;const t=window.customElements;return t?(t.get(e)||t.define(e,Ee),e):(console.warn("OpenLV modal: custom elements are not supported in this environment."),e)},Eo=e=>{const t=document.querySelector("openlv-modal");if(t&&t.remove(),!t){er();const r=new Ee({onClose(){Ze("modal closed"),r.remove(),e.onClose?.()},provider:e.provider,theme:e.theme});document.body.appendChild(r),r.showModal()}};exports.ModalRoot=$t;exports.OPENLV_ICON_128=Yt;exports.OpenLVModalElement=Ee;exports.default=Ee;exports.registerOpenLVModal=er;exports.triggerOpenModal=Eo;exports.useConnectionState=Ao;
|
|
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
|