@openlv/modal 0.0.1-beta.11 → 0.0.1-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useSettings.d.ts +1 -28
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2399 -1376
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,80 +1,1101 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const lr = 1, cr = (t) => {
|
|
8
|
-
const e = new URLSearchParams();
|
|
9
|
-
return e.set("h", t.h), e.set("k", t.k), t.p && e.set("p", t.p), t.s && e.set("s", t.s), `openlv://${t.sessionId}@${lr}?${e.toString()}`;
|
|
1
|
+
var zr = Object.defineProperty;
|
|
2
|
+
var Ur = (e, t, r) => t in e ? zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var _e = (e, t, r) => Ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import * as Kr from "qrcode-generator";
|
|
5
|
+
const Gr = !1, Wr = (e, t) => e === t, Ye = /* @__PURE__ */ Symbol("solid-proxy"), ur = typeof Proxy == "function", Hr = /* @__PURE__ */ Symbol("solid-track"), et = {
|
|
6
|
+
equals: Wr
|
|
10
7
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
let gr = yr;
|
|
9
|
+
const pe = 1, tt = 2, fr = {
|
|
10
|
+
owned: null,
|
|
11
|
+
cleanups: null,
|
|
12
|
+
context: null,
|
|
13
|
+
owner: null
|
|
14
|
+
};
|
|
15
|
+
var R = null;
|
|
16
|
+
let ht = null, qr = null, M = null, I = null, le = null, lt = 0;
|
|
17
|
+
function Je(e, t) {
|
|
18
|
+
const r = M, n = R, o = e.length === 0, i = t === void 0 ? n : t, s = o ? fr : {
|
|
19
|
+
owned: null,
|
|
20
|
+
cleanups: null,
|
|
21
|
+
context: i ? i.context : null,
|
|
22
|
+
owner: i
|
|
23
|
+
}, a = o ? e : () => e(() => q(() => Me(s)));
|
|
24
|
+
R = s, M = null;
|
|
25
|
+
try {
|
|
26
|
+
return Ue(a, !0);
|
|
27
|
+
} finally {
|
|
28
|
+
M = r, R = n;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function D(e, t) {
|
|
32
|
+
t = t ? Object.assign({}, et, t) : et;
|
|
33
|
+
const r = {
|
|
34
|
+
value: e,
|
|
35
|
+
observers: null,
|
|
36
|
+
observerSlots: null,
|
|
37
|
+
comparator: t.equals || void 0
|
|
38
|
+
}, n = (o) => (typeof o == "function" && (o = o(r.value)), mr(r, o));
|
|
39
|
+
return [br.bind(r), n];
|
|
40
|
+
}
|
|
41
|
+
function F(e, t, r) {
|
|
42
|
+
const n = Ot(e, t, !1, pe);
|
|
43
|
+
ze(n);
|
|
44
|
+
}
|
|
45
|
+
function ee(e, t, r) {
|
|
46
|
+
gr = Jr;
|
|
47
|
+
const n = Ot(e, t, !1, pe);
|
|
48
|
+
n.user = !0, le ? le.push(n) : ze(n);
|
|
49
|
+
}
|
|
50
|
+
function $(e, t, r) {
|
|
51
|
+
r = r ? Object.assign({}, et, r) : et;
|
|
52
|
+
const n = Ot(e, t, !0, 0);
|
|
53
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, ze(n), br.bind(n);
|
|
54
|
+
}
|
|
55
|
+
function q(e) {
|
|
56
|
+
if (M === null) return e();
|
|
57
|
+
const t = M;
|
|
58
|
+
M = null;
|
|
59
|
+
try {
|
|
60
|
+
return e();
|
|
61
|
+
} finally {
|
|
62
|
+
M = t;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function Et(e) {
|
|
66
|
+
ee(() => q(e));
|
|
67
|
+
}
|
|
68
|
+
function te(e) {
|
|
69
|
+
return R === null || (R.cleanups === null ? R.cleanups = [e] : R.cleanups.push(e)), e;
|
|
70
|
+
}
|
|
71
|
+
function hr(e, t) {
|
|
72
|
+
const r = /* @__PURE__ */ Symbol("context");
|
|
73
|
+
return {
|
|
74
|
+
id: r,
|
|
75
|
+
Provider: Yr(r),
|
|
76
|
+
defaultValue: e
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function vr(e) {
|
|
80
|
+
let t;
|
|
81
|
+
return R && R.context && (t = R.context[e.id]) !== void 0 ? t : e.defaultValue;
|
|
82
|
+
}
|
|
83
|
+
function pr(e) {
|
|
84
|
+
const t = $(e), r = $(() => yt(t()));
|
|
85
|
+
return r.toArray = () => {
|
|
86
|
+
const n = r();
|
|
87
|
+
return Array.isArray(n) ? n : n != null ? [n] : [];
|
|
88
|
+
}, r;
|
|
89
|
+
}
|
|
90
|
+
function br() {
|
|
91
|
+
if (this.sources && this.state)
|
|
92
|
+
if (this.state === pe) ze(this);
|
|
93
|
+
else {
|
|
94
|
+
const e = I;
|
|
95
|
+
I = null, Ue(() => nt(this), !1), I = e;
|
|
96
|
+
}
|
|
97
|
+
if (M) {
|
|
98
|
+
const e = this.observers ? this.observers.length : 0;
|
|
99
|
+
M.sources ? (M.sources.push(this), M.sourceSlots.push(e)) : (M.sources = [this], M.sourceSlots = [e]), this.observers ? (this.observers.push(M), this.observerSlots.push(M.sources.length - 1)) : (this.observers = [M], this.observerSlots = [M.sources.length - 1]);
|
|
100
|
+
}
|
|
101
|
+
return this.value;
|
|
102
|
+
}
|
|
103
|
+
function mr(e, t, r) {
|
|
104
|
+
let n = e.value;
|
|
105
|
+
return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && Ue(() => {
|
|
106
|
+
for (let o = 0; o < e.observers.length; o += 1) {
|
|
107
|
+
const i = e.observers[o], s = ht && ht.running;
|
|
108
|
+
s && ht.disposed.has(i), (s ? !i.tState : !i.state) && (i.pure ? I.push(i) : le.push(i), i.observers && wr(i)), s || (i.state = pe);
|
|
19
109
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
110
|
+
if (I.length > 1e6)
|
|
111
|
+
throw I = [], new Error();
|
|
112
|
+
}, !1)), t;
|
|
113
|
+
}
|
|
114
|
+
function ze(e) {
|
|
115
|
+
if (!e.fn) return;
|
|
116
|
+
Me(e);
|
|
117
|
+
const t = lt;
|
|
118
|
+
Xr(e, e.value, t);
|
|
119
|
+
}
|
|
120
|
+
function Xr(e, t, r) {
|
|
121
|
+
let n;
|
|
122
|
+
const o = R, i = M;
|
|
123
|
+
M = R = e;
|
|
124
|
+
try {
|
|
125
|
+
n = e.fn(t);
|
|
126
|
+
} catch (s) {
|
|
127
|
+
return e.pure && (e.state = pe, e.owned && e.owned.forEach(Me), e.owned = null), e.updatedAt = r + 1, xr(s);
|
|
128
|
+
} finally {
|
|
129
|
+
M = i, R = o;
|
|
130
|
+
}
|
|
131
|
+
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? mr(e, n) : e.value = n, e.updatedAt = r);
|
|
132
|
+
}
|
|
133
|
+
function Ot(e, t, r, n = pe, o) {
|
|
134
|
+
const i = {
|
|
135
|
+
fn: e,
|
|
136
|
+
state: n,
|
|
137
|
+
updatedAt: null,
|
|
138
|
+
owned: null,
|
|
139
|
+
sources: null,
|
|
140
|
+
sourceSlots: null,
|
|
141
|
+
cleanups: null,
|
|
142
|
+
value: t,
|
|
143
|
+
owner: R,
|
|
144
|
+
context: R ? R.context : null,
|
|
145
|
+
pure: r
|
|
146
|
+
};
|
|
147
|
+
return R === null || R !== fr && (R.owned ? R.owned.push(i) : R.owned = [i]), i;
|
|
148
|
+
}
|
|
149
|
+
function rt(e) {
|
|
150
|
+
if (e.state === 0) return;
|
|
151
|
+
if (e.state === tt) return nt(e);
|
|
152
|
+
if (e.suspense && q(e.suspense.inFallback)) return e.suspense.effects.push(e);
|
|
153
|
+
const t = [e];
|
|
154
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < lt); )
|
|
155
|
+
e.state && t.push(e);
|
|
156
|
+
for (let r = t.length - 1; r >= 0; r--)
|
|
157
|
+
if (e = t[r], e.state === pe)
|
|
158
|
+
ze(e);
|
|
159
|
+
else if (e.state === tt) {
|
|
160
|
+
const n = I;
|
|
161
|
+
I = null, Ue(() => nt(e, t[0]), !1), I = n;
|
|
23
162
|
}
|
|
24
|
-
|
|
163
|
+
}
|
|
164
|
+
function Ue(e, t) {
|
|
165
|
+
if (I) return e();
|
|
166
|
+
let r = !1;
|
|
167
|
+
t || (I = []), le ? r = !0 : le = [], lt++;
|
|
168
|
+
try {
|
|
169
|
+
const n = e();
|
|
170
|
+
return Qr(r), n;
|
|
171
|
+
} catch (n) {
|
|
172
|
+
r || (le = null), I = null, xr(n);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function Qr(e) {
|
|
176
|
+
if (I && (yr(I), I = null), e) return;
|
|
177
|
+
const t = le;
|
|
178
|
+
le = null, t.length && Ue(() => gr(t), !1);
|
|
179
|
+
}
|
|
180
|
+
function yr(e) {
|
|
181
|
+
for (let t = 0; t < e.length; t++) rt(e[t]);
|
|
182
|
+
}
|
|
183
|
+
function Jr(e) {
|
|
184
|
+
let t, r = 0;
|
|
185
|
+
for (t = 0; t < e.length; t++) {
|
|
186
|
+
const n = e[t];
|
|
187
|
+
n.user ? e[r++] = n : rt(n);
|
|
188
|
+
}
|
|
189
|
+
for (t = 0; t < r; t++) rt(e[t]);
|
|
190
|
+
}
|
|
191
|
+
function nt(e, t) {
|
|
192
|
+
e.state = 0;
|
|
193
|
+
for (let r = 0; r < e.sources.length; r += 1) {
|
|
194
|
+
const n = e.sources[r];
|
|
195
|
+
if (n.sources) {
|
|
196
|
+
const o = n.state;
|
|
197
|
+
o === pe ? n !== t && (!n.updatedAt || n.updatedAt < lt) && rt(n) : o === tt && nt(n, t);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
function wr(e) {
|
|
202
|
+
for (let t = 0; t < e.observers.length; t += 1) {
|
|
203
|
+
const r = e.observers[t];
|
|
204
|
+
r.state || (r.state = tt, r.pure ? I.push(r) : le.push(r), r.observers && wr(r));
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function Me(e) {
|
|
208
|
+
let t;
|
|
209
|
+
if (e.sources)
|
|
210
|
+
for (; e.sources.length; ) {
|
|
211
|
+
const r = e.sources.pop(), n = e.sourceSlots.pop(), o = r.observers;
|
|
212
|
+
if (o && o.length) {
|
|
213
|
+
const i = o.pop(), s = r.observerSlots.pop();
|
|
214
|
+
n < o.length && (i.sourceSlots[s] = n, o[n] = i, r.observerSlots[n] = s);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (e.tOwned) {
|
|
218
|
+
for (t = e.tOwned.length - 1; t >= 0; t--) Me(e.tOwned[t]);
|
|
219
|
+
delete e.tOwned;
|
|
220
|
+
}
|
|
221
|
+
if (e.owned) {
|
|
222
|
+
for (t = e.owned.length - 1; t >= 0; t--) Me(e.owned[t]);
|
|
223
|
+
e.owned = null;
|
|
224
|
+
}
|
|
225
|
+
if (e.cleanups) {
|
|
226
|
+
for (t = e.cleanups.length - 1; t >= 0; t--) e.cleanups[t]();
|
|
227
|
+
e.cleanups = null;
|
|
228
|
+
}
|
|
229
|
+
e.state = 0;
|
|
230
|
+
}
|
|
231
|
+
function Zr(e) {
|
|
232
|
+
return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
|
|
233
|
+
cause: e
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
function xr(e, t = R) {
|
|
237
|
+
throw Zr(e);
|
|
238
|
+
}
|
|
239
|
+
function yt(e) {
|
|
240
|
+
if (typeof e == "function" && !e.length) return yt(e());
|
|
241
|
+
if (Array.isArray(e)) {
|
|
242
|
+
const t = [];
|
|
243
|
+
for (let r = 0; r < e.length; r++) {
|
|
244
|
+
const n = yt(e[r]);
|
|
245
|
+
Array.isArray(n) ? t.push.apply(t, n) : t.push(n);
|
|
246
|
+
}
|
|
247
|
+
return t;
|
|
248
|
+
}
|
|
249
|
+
return e;
|
|
250
|
+
}
|
|
251
|
+
function Yr(e, t) {
|
|
252
|
+
return function(n) {
|
|
253
|
+
let o;
|
|
254
|
+
return F(() => o = q(() => (R.context = {
|
|
255
|
+
...R.context,
|
|
256
|
+
[e]: n.value
|
|
257
|
+
}, pr(() => n.children))), void 0), o;
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
const en = /* @__PURE__ */ Symbol("fallback");
|
|
261
|
+
function Ut(e) {
|
|
262
|
+
for (let t = 0; t < e.length; t++) e[t]();
|
|
263
|
+
}
|
|
264
|
+
function tn(e, t, r = {}) {
|
|
265
|
+
let n = [], o = [], i = [], s = 0, a = t.length > 1 ? [] : null;
|
|
266
|
+
return te(() => Ut(i)), () => {
|
|
267
|
+
let l = e() || [], d = l.length, u, c;
|
|
268
|
+
return l[Hr], q(() => {
|
|
269
|
+
let v, b, w, p, P, S, y, z, E;
|
|
270
|
+
if (d === 0)
|
|
271
|
+
s !== 0 && (Ut(i), i = [], n = [], o = [], s = 0, a && (a = [])), r.fallback && (n = [en], o[0] = Je((Ae) => (i[0] = Ae, r.fallback())), s = 1);
|
|
272
|
+
else if (s === 0) {
|
|
273
|
+
for (o = new Array(d), c = 0; c < d; c++)
|
|
274
|
+
n[c] = l[c], o[c] = Je(h);
|
|
275
|
+
s = d;
|
|
276
|
+
} else {
|
|
277
|
+
for (w = new Array(d), p = new Array(d), a && (P = new Array(d)), S = 0, y = Math.min(s, d); S < y && n[S] === l[S]; S++) ;
|
|
278
|
+
for (y = s - 1, z = d - 1; y >= S && z >= S && n[y] === l[z]; y--, z--)
|
|
279
|
+
w[z] = o[y], p[z] = i[y], a && (P[z] = a[y]);
|
|
280
|
+
for (v = /* @__PURE__ */ new Map(), b = new Array(z + 1), c = z; c >= S; c--)
|
|
281
|
+
E = l[c], u = v.get(E), b[c] = u === void 0 ? -1 : u, v.set(E, c);
|
|
282
|
+
for (u = S; u <= y; u++)
|
|
283
|
+
E = n[u], c = v.get(E), c !== void 0 && c !== -1 ? (w[c] = o[u], p[c] = i[u], a && (P[c] = a[u]), c = b[c], v.set(E, c)) : i[u]();
|
|
284
|
+
for (c = S; c < d; c++)
|
|
285
|
+
c in w ? (o[c] = w[c], i[c] = p[c], a && (a[c] = P[c], a[c](c))) : o[c] = Je(h);
|
|
286
|
+
o = o.slice(0, s = d), n = l.slice(0);
|
|
287
|
+
}
|
|
288
|
+
return o;
|
|
289
|
+
});
|
|
290
|
+
function h(v) {
|
|
291
|
+
if (i[c] = v, a) {
|
|
292
|
+
const [b, w] = D(c);
|
|
293
|
+
return a[c] = w, t(l[c], b);
|
|
294
|
+
}
|
|
295
|
+
return t(l[c]);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function g(e, t) {
|
|
300
|
+
return q(() => e(t || {}));
|
|
301
|
+
}
|
|
302
|
+
function Xe() {
|
|
303
|
+
return !0;
|
|
304
|
+
}
|
|
305
|
+
const wt = {
|
|
306
|
+
get(e, t, r) {
|
|
307
|
+
return t === Ye ? r : e.get(t);
|
|
308
|
+
},
|
|
309
|
+
has(e, t) {
|
|
310
|
+
return t === Ye ? !0 : e.has(t);
|
|
311
|
+
},
|
|
312
|
+
set: Xe,
|
|
313
|
+
deleteProperty: Xe,
|
|
314
|
+
getOwnPropertyDescriptor(e, t) {
|
|
315
|
+
return {
|
|
316
|
+
configurable: !0,
|
|
317
|
+
enumerable: !0,
|
|
318
|
+
get() {
|
|
319
|
+
return e.get(t);
|
|
320
|
+
},
|
|
321
|
+
set: Xe,
|
|
322
|
+
deleteProperty: Xe
|
|
323
|
+
};
|
|
324
|
+
},
|
|
325
|
+
ownKeys(e) {
|
|
326
|
+
return e.keys();
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
function vt(e) {
|
|
330
|
+
return (e = typeof e == "function" ? e() : e) ? e : {};
|
|
331
|
+
}
|
|
332
|
+
function rn() {
|
|
333
|
+
for (let e = 0, t = this.length; e < t; ++e) {
|
|
334
|
+
const r = this[e]();
|
|
335
|
+
if (r !== void 0) return r;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function W(...e) {
|
|
339
|
+
let t = !1;
|
|
340
|
+
for (let s = 0; s < e.length; s++) {
|
|
341
|
+
const a = e[s];
|
|
342
|
+
t = t || !!a && Ye in a, e[s] = typeof a == "function" ? (t = !0, $(a)) : a;
|
|
343
|
+
}
|
|
344
|
+
if (ur && t)
|
|
345
|
+
return new Proxy({
|
|
346
|
+
get(s) {
|
|
347
|
+
for (let a = e.length - 1; a >= 0; a--) {
|
|
348
|
+
const l = vt(e[a])[s];
|
|
349
|
+
if (l !== void 0) return l;
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
has(s) {
|
|
353
|
+
for (let a = e.length - 1; a >= 0; a--)
|
|
354
|
+
if (s in vt(e[a])) return !0;
|
|
355
|
+
return !1;
|
|
356
|
+
},
|
|
357
|
+
keys() {
|
|
358
|
+
const s = [];
|
|
359
|
+
for (let a = 0; a < e.length; a++) s.push(...Object.keys(vt(e[a])));
|
|
360
|
+
return [...new Set(s)];
|
|
361
|
+
}
|
|
362
|
+
}, wt);
|
|
363
|
+
const r = {}, n = /* @__PURE__ */ Object.create(null);
|
|
364
|
+
for (let s = e.length - 1; s >= 0; s--) {
|
|
365
|
+
const a = e[s];
|
|
366
|
+
if (!a) continue;
|
|
367
|
+
const l = Object.getOwnPropertyNames(a);
|
|
368
|
+
for (let d = l.length - 1; d >= 0; d--) {
|
|
369
|
+
const u = l[d];
|
|
370
|
+
if (u === "__proto__" || u === "constructor") continue;
|
|
371
|
+
const c = Object.getOwnPropertyDescriptor(a, u);
|
|
372
|
+
if (!n[u])
|
|
373
|
+
n[u] = c.get ? {
|
|
374
|
+
enumerable: !0,
|
|
375
|
+
configurable: !0,
|
|
376
|
+
get: rn.bind(r[u] = [c.get.bind(a)])
|
|
377
|
+
} : c.value !== void 0 ? c : void 0;
|
|
378
|
+
else {
|
|
379
|
+
const h = r[u];
|
|
380
|
+
h && (c.get ? h.push(c.get.bind(a)) : c.value !== void 0 && h.push(() => c.value));
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
const o = {}, i = Object.keys(n);
|
|
385
|
+
for (let s = i.length - 1; s >= 0; s--) {
|
|
386
|
+
const a = i[s], l = n[a];
|
|
387
|
+
l && l.get ? Object.defineProperty(o, a, l) : o[a] = l ? l.value : void 0;
|
|
388
|
+
}
|
|
389
|
+
return o;
|
|
390
|
+
}
|
|
391
|
+
function ct(e, ...t) {
|
|
392
|
+
const r = t.length;
|
|
393
|
+
if (ur && Ye in e) {
|
|
394
|
+
const o = r > 1 ? t.flat() : t[0], i = t.map((s) => new Proxy({
|
|
395
|
+
get(a) {
|
|
396
|
+
return s.includes(a) ? e[a] : void 0;
|
|
397
|
+
},
|
|
398
|
+
has(a) {
|
|
399
|
+
return s.includes(a) && a in e;
|
|
400
|
+
},
|
|
401
|
+
keys() {
|
|
402
|
+
return s.filter((a) => a in e);
|
|
403
|
+
}
|
|
404
|
+
}, wt));
|
|
405
|
+
return i.push(new Proxy({
|
|
406
|
+
get(s) {
|
|
407
|
+
return o.includes(s) ? void 0 : e[s];
|
|
408
|
+
},
|
|
409
|
+
has(s) {
|
|
410
|
+
return o.includes(s) ? !1 : s in e;
|
|
411
|
+
},
|
|
412
|
+
keys() {
|
|
413
|
+
return Object.keys(e).filter((s) => !o.includes(s));
|
|
414
|
+
}
|
|
415
|
+
}, wt)), i;
|
|
416
|
+
}
|
|
417
|
+
const n = [];
|
|
418
|
+
for (let o = 0; o <= r; o++)
|
|
419
|
+
n[o] = {};
|
|
420
|
+
for (const o of Object.getOwnPropertyNames(e)) {
|
|
421
|
+
let i = r;
|
|
422
|
+
for (let l = 0; l < t.length; l++)
|
|
423
|
+
if (t[l].includes(o)) {
|
|
424
|
+
i = l;
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
const s = Object.getOwnPropertyDescriptor(e, o);
|
|
428
|
+
!s.get && !s.set && s.enumerable && s.writable && s.configurable ? n[i][o] = s.value : Object.defineProperty(n[i], o, s);
|
|
429
|
+
}
|
|
430
|
+
return n;
|
|
431
|
+
}
|
|
432
|
+
const kr = (e) => `Stale read from <${e}>.`;
|
|
433
|
+
function ve(e) {
|
|
434
|
+
const t = "fallback" in e && {
|
|
435
|
+
fallback: () => e.fallback
|
|
436
|
+
};
|
|
437
|
+
return $(tn(() => e.each, e.children, t || void 0));
|
|
438
|
+
}
|
|
439
|
+
function Se(e) {
|
|
440
|
+
const t = e.keyed, r = $(() => e.when, void 0, void 0), n = t ? r : $(r, void 0, {
|
|
441
|
+
equals: (o, i) => !o == !i
|
|
442
|
+
});
|
|
443
|
+
return $(() => {
|
|
444
|
+
const o = n();
|
|
445
|
+
if (o) {
|
|
446
|
+
const i = e.children;
|
|
447
|
+
return typeof i == "function" && i.length > 0 ? q(() => i(t ? o : () => {
|
|
448
|
+
if (!q(n)) throw kr("Show");
|
|
449
|
+
return r();
|
|
450
|
+
})) : i;
|
|
451
|
+
}
|
|
452
|
+
return e.fallback;
|
|
453
|
+
}, void 0, void 0);
|
|
454
|
+
}
|
|
455
|
+
function Cr(e) {
|
|
456
|
+
const t = pr(() => e.children), r = $(() => {
|
|
457
|
+
const n = t(), o = Array.isArray(n) ? n : [n];
|
|
458
|
+
let i = () => {
|
|
459
|
+
};
|
|
460
|
+
for (let s = 0; s < o.length; s++) {
|
|
461
|
+
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, {
|
|
462
|
+
equals: (h, v) => !h == !v
|
|
463
|
+
});
|
|
464
|
+
i = () => d() || (c() ? [a, u, l] : void 0);
|
|
465
|
+
}
|
|
466
|
+
return i;
|
|
467
|
+
});
|
|
468
|
+
return $(() => {
|
|
469
|
+
const n = r()();
|
|
470
|
+
if (!n) return e.fallback;
|
|
471
|
+
const [o, i, s] = n, a = s.children;
|
|
472
|
+
return typeof a == "function" && a.length > 0 ? q(() => a(s.keyed ? i() : () => {
|
|
473
|
+
if (q(r)()?.[0] !== o) throw kr("Match");
|
|
474
|
+
return i();
|
|
475
|
+
})) : a;
|
|
476
|
+
}, void 0, void 0);
|
|
477
|
+
}
|
|
478
|
+
function xe(e) {
|
|
479
|
+
return e;
|
|
480
|
+
}
|
|
481
|
+
const nn = [
|
|
482
|
+
"allowfullscreen",
|
|
483
|
+
"async",
|
|
484
|
+
"alpha",
|
|
485
|
+
"autofocus",
|
|
486
|
+
"autoplay",
|
|
487
|
+
"checked",
|
|
488
|
+
"controls",
|
|
489
|
+
"default",
|
|
490
|
+
"disabled",
|
|
491
|
+
"formnovalidate",
|
|
492
|
+
"hidden",
|
|
493
|
+
"indeterminate",
|
|
494
|
+
"inert",
|
|
495
|
+
"ismap",
|
|
496
|
+
"loop",
|
|
497
|
+
"multiple",
|
|
498
|
+
"muted",
|
|
499
|
+
"nomodule",
|
|
500
|
+
"novalidate",
|
|
501
|
+
"open",
|
|
502
|
+
"playsinline",
|
|
503
|
+
"readonly",
|
|
504
|
+
"required",
|
|
505
|
+
"reversed",
|
|
506
|
+
"seamless",
|
|
507
|
+
"selected",
|
|
508
|
+
"adauctionheaders",
|
|
509
|
+
"browsingtopics",
|
|
510
|
+
"credentialless",
|
|
511
|
+
"defaultchecked",
|
|
512
|
+
"defaultmuted",
|
|
513
|
+
"defaultselected",
|
|
514
|
+
"defer",
|
|
515
|
+
"disablepictureinpicture",
|
|
516
|
+
"disableremoteplayback",
|
|
517
|
+
"preservespitch",
|
|
518
|
+
"shadowrootclonable",
|
|
519
|
+
"shadowrootcustomelementregistry",
|
|
520
|
+
"shadowrootdelegatesfocus",
|
|
521
|
+
"shadowrootserializable",
|
|
522
|
+
"sharedstoragewritable"
|
|
523
|
+
], on = /* @__PURE__ */ new Set([
|
|
524
|
+
"className",
|
|
525
|
+
"value",
|
|
526
|
+
"readOnly",
|
|
527
|
+
"noValidate",
|
|
528
|
+
"formNoValidate",
|
|
529
|
+
"isMap",
|
|
530
|
+
"noModule",
|
|
531
|
+
"playsInline",
|
|
532
|
+
"adAuctionHeaders",
|
|
533
|
+
"allowFullscreen",
|
|
534
|
+
"browsingTopics",
|
|
535
|
+
"defaultChecked",
|
|
536
|
+
"defaultMuted",
|
|
537
|
+
"defaultSelected",
|
|
538
|
+
"disablePictureInPicture",
|
|
539
|
+
"disableRemotePlayback",
|
|
540
|
+
"preservesPitch",
|
|
541
|
+
"shadowRootClonable",
|
|
542
|
+
"shadowRootCustomElementRegistry",
|
|
543
|
+
"shadowRootDelegatesFocus",
|
|
544
|
+
"shadowRootSerializable",
|
|
545
|
+
"sharedStorageWritable",
|
|
546
|
+
...nn
|
|
547
|
+
]), an = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), sn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
548
|
+
className: "class",
|
|
549
|
+
htmlFor: "for"
|
|
550
|
+
}), ln = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
551
|
+
class: "className",
|
|
552
|
+
novalidate: {
|
|
553
|
+
$: "noValidate",
|
|
554
|
+
FORM: 1
|
|
555
|
+
},
|
|
556
|
+
formnovalidate: {
|
|
557
|
+
$: "formNoValidate",
|
|
558
|
+
BUTTON: 1,
|
|
559
|
+
INPUT: 1
|
|
560
|
+
},
|
|
561
|
+
ismap: {
|
|
562
|
+
$: "isMap",
|
|
563
|
+
IMG: 1
|
|
564
|
+
},
|
|
565
|
+
nomodule: {
|
|
566
|
+
$: "noModule",
|
|
567
|
+
SCRIPT: 1
|
|
568
|
+
},
|
|
569
|
+
playsinline: {
|
|
570
|
+
$: "playsInline",
|
|
571
|
+
VIDEO: 1
|
|
572
|
+
},
|
|
573
|
+
readonly: {
|
|
574
|
+
$: "readOnly",
|
|
575
|
+
INPUT: 1,
|
|
576
|
+
TEXTAREA: 1
|
|
577
|
+
},
|
|
578
|
+
adauctionheaders: {
|
|
579
|
+
$: "adAuctionHeaders",
|
|
580
|
+
IFRAME: 1
|
|
581
|
+
},
|
|
582
|
+
allowfullscreen: {
|
|
583
|
+
$: "allowFullscreen",
|
|
584
|
+
IFRAME: 1
|
|
585
|
+
},
|
|
586
|
+
browsingtopics: {
|
|
587
|
+
$: "browsingTopics",
|
|
588
|
+
IMG: 1
|
|
589
|
+
},
|
|
590
|
+
defaultchecked: {
|
|
591
|
+
$: "defaultChecked",
|
|
592
|
+
INPUT: 1
|
|
593
|
+
},
|
|
594
|
+
defaultmuted: {
|
|
595
|
+
$: "defaultMuted",
|
|
596
|
+
AUDIO: 1,
|
|
597
|
+
VIDEO: 1
|
|
598
|
+
},
|
|
599
|
+
defaultselected: {
|
|
600
|
+
$: "defaultSelected",
|
|
601
|
+
OPTION: 1
|
|
602
|
+
},
|
|
603
|
+
disablepictureinpicture: {
|
|
604
|
+
$: "disablePictureInPicture",
|
|
605
|
+
VIDEO: 1
|
|
606
|
+
},
|
|
607
|
+
disableremoteplayback: {
|
|
608
|
+
$: "disableRemotePlayback",
|
|
609
|
+
AUDIO: 1,
|
|
610
|
+
VIDEO: 1
|
|
611
|
+
},
|
|
612
|
+
preservespitch: {
|
|
613
|
+
$: "preservesPitch",
|
|
614
|
+
AUDIO: 1,
|
|
615
|
+
VIDEO: 1
|
|
616
|
+
},
|
|
617
|
+
shadowrootclonable: {
|
|
618
|
+
$: "shadowRootClonable",
|
|
619
|
+
TEMPLATE: 1
|
|
620
|
+
},
|
|
621
|
+
shadowrootdelegatesfocus: {
|
|
622
|
+
$: "shadowRootDelegatesFocus",
|
|
623
|
+
TEMPLATE: 1
|
|
624
|
+
},
|
|
625
|
+
shadowrootserializable: {
|
|
626
|
+
$: "shadowRootSerializable",
|
|
627
|
+
TEMPLATE: 1
|
|
628
|
+
},
|
|
629
|
+
sharedstoragewritable: {
|
|
630
|
+
$: "sharedStorageWritable",
|
|
631
|
+
IFRAME: 1,
|
|
632
|
+
IMG: 1
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
function cn(e, t) {
|
|
636
|
+
const r = ln[e];
|
|
637
|
+
return typeof r == "object" ? r[t] ? r.$ : void 0 : r;
|
|
638
|
+
}
|
|
639
|
+
const dn = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]), un = /* @__PURE__ */ new Set([
|
|
640
|
+
"altGlyph",
|
|
641
|
+
"altGlyphDef",
|
|
642
|
+
"altGlyphItem",
|
|
643
|
+
"animate",
|
|
644
|
+
"animateColor",
|
|
645
|
+
"animateMotion",
|
|
646
|
+
"animateTransform",
|
|
647
|
+
"circle",
|
|
648
|
+
"clipPath",
|
|
649
|
+
"color-profile",
|
|
650
|
+
"cursor",
|
|
651
|
+
"defs",
|
|
652
|
+
"desc",
|
|
653
|
+
"ellipse",
|
|
654
|
+
"feBlend",
|
|
655
|
+
"feColorMatrix",
|
|
656
|
+
"feComponentTransfer",
|
|
657
|
+
"feComposite",
|
|
658
|
+
"feConvolveMatrix",
|
|
659
|
+
"feDiffuseLighting",
|
|
660
|
+
"feDisplacementMap",
|
|
661
|
+
"feDistantLight",
|
|
662
|
+
"feDropShadow",
|
|
663
|
+
"feFlood",
|
|
664
|
+
"feFuncA",
|
|
665
|
+
"feFuncB",
|
|
666
|
+
"feFuncG",
|
|
667
|
+
"feFuncR",
|
|
668
|
+
"feGaussianBlur",
|
|
669
|
+
"feImage",
|
|
670
|
+
"feMerge",
|
|
671
|
+
"feMergeNode",
|
|
672
|
+
"feMorphology",
|
|
673
|
+
"feOffset",
|
|
674
|
+
"fePointLight",
|
|
675
|
+
"feSpecularLighting",
|
|
676
|
+
"feSpotLight",
|
|
677
|
+
"feTile",
|
|
678
|
+
"feTurbulence",
|
|
679
|
+
"filter",
|
|
680
|
+
"font",
|
|
681
|
+
"font-face",
|
|
682
|
+
"font-face-format",
|
|
683
|
+
"font-face-name",
|
|
684
|
+
"font-face-src",
|
|
685
|
+
"font-face-uri",
|
|
686
|
+
"foreignObject",
|
|
687
|
+
"g",
|
|
688
|
+
"glyph",
|
|
689
|
+
"glyphRef",
|
|
690
|
+
"hkern",
|
|
691
|
+
"image",
|
|
692
|
+
"line",
|
|
693
|
+
"linearGradient",
|
|
694
|
+
"marker",
|
|
695
|
+
"mask",
|
|
696
|
+
"metadata",
|
|
697
|
+
"missing-glyph",
|
|
698
|
+
"mpath",
|
|
699
|
+
"path",
|
|
700
|
+
"pattern",
|
|
701
|
+
"polygon",
|
|
702
|
+
"polyline",
|
|
703
|
+
"radialGradient",
|
|
704
|
+
"rect",
|
|
705
|
+
"set",
|
|
706
|
+
"stop",
|
|
707
|
+
"svg",
|
|
708
|
+
"switch",
|
|
709
|
+
"symbol",
|
|
710
|
+
"text",
|
|
711
|
+
"textPath",
|
|
712
|
+
"tref",
|
|
713
|
+
"tspan",
|
|
714
|
+
"use",
|
|
715
|
+
"view",
|
|
716
|
+
"vkern"
|
|
717
|
+
]), gn = {
|
|
718
|
+
xlink: "http://www.w3.org/1999/xlink",
|
|
719
|
+
xml: "http://www.w3.org/XML/1998/namespace"
|
|
720
|
+
}, Ce = (e) => $(() => e());
|
|
721
|
+
function fn(e, t, r) {
|
|
722
|
+
let n = r.length, o = t.length, i = n, s = 0, a = 0, l = t[o - 1].nextSibling, d = null;
|
|
723
|
+
for (; s < o || a < i; ) {
|
|
724
|
+
if (t[s] === r[a]) {
|
|
725
|
+
s++, a++;
|
|
726
|
+
continue;
|
|
727
|
+
}
|
|
728
|
+
for (; t[o - 1] === r[i - 1]; )
|
|
729
|
+
o--, i--;
|
|
730
|
+
if (o === s) {
|
|
731
|
+
const u = i < n ? a ? r[a - 1].nextSibling : r[i - a] : l;
|
|
732
|
+
for (; a < i; ) e.insertBefore(r[a++], u);
|
|
733
|
+
} else if (i === a)
|
|
734
|
+
for (; s < o; )
|
|
735
|
+
(!d || !d.has(t[s])) && t[s].remove(), s++;
|
|
736
|
+
else if (t[s] === r[i - 1] && r[a] === t[o - 1]) {
|
|
737
|
+
const u = t[--o].nextSibling;
|
|
738
|
+
e.insertBefore(r[a++], t[s++].nextSibling), e.insertBefore(r[--i], u), t[o] = r[i];
|
|
739
|
+
} else {
|
|
740
|
+
if (!d) {
|
|
741
|
+
d = /* @__PURE__ */ new Map();
|
|
742
|
+
let c = a;
|
|
743
|
+
for (; c < i; ) d.set(r[c], c++);
|
|
744
|
+
}
|
|
745
|
+
const u = d.get(t[s]);
|
|
746
|
+
if (u != null)
|
|
747
|
+
if (a < u && u < i) {
|
|
748
|
+
let c = s, h = 1, v;
|
|
749
|
+
for (; ++c < o && c < i && !((v = d.get(t[c])) == null || v !== u + h); )
|
|
750
|
+
h++;
|
|
751
|
+
if (h > u - a) {
|
|
752
|
+
const b = t[s];
|
|
753
|
+
for (; a < u; ) e.insertBefore(r[a++], b);
|
|
754
|
+
} else e.replaceChild(r[a++], t[s++]);
|
|
755
|
+
} else s++;
|
|
756
|
+
else t[s++].remove();
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
const Kt = "_$DX_DELEGATE";
|
|
761
|
+
function hn(e, t, r, n = {}) {
|
|
762
|
+
let o;
|
|
763
|
+
return Je((i) => {
|
|
764
|
+
o = i, t === document ? e() : f(t, e(), t.firstChild ? null : void 0, r);
|
|
765
|
+
}, n.owner), () => {
|
|
766
|
+
o(), t.textContent = "";
|
|
767
|
+
};
|
|
768
|
+
}
|
|
769
|
+
function m(e, t, r, n) {
|
|
770
|
+
let o;
|
|
771
|
+
const i = () => {
|
|
772
|
+
const a = n ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
|
|
773
|
+
return a.innerHTML = e, r ? a.content.firstChild.firstChild : n ? a.firstChild : a.content.firstChild;
|
|
774
|
+
}, s = t ? () => q(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
|
|
775
|
+
return s.cloneNode = s, s;
|
|
776
|
+
}
|
|
777
|
+
function be(e, t = window.document) {
|
|
778
|
+
const r = t[Kt] || (t[Kt] = /* @__PURE__ */ new Set());
|
|
779
|
+
for (let n = 0, o = e.length; n < o; n++) {
|
|
780
|
+
const i = e[n];
|
|
781
|
+
r.has(i) || (r.add(i), t.addEventListener(i, wn));
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
function Z(e, t, r) {
|
|
785
|
+
r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
|
|
786
|
+
}
|
|
787
|
+
function vn(e, t, r, n) {
|
|
788
|
+
n == null ? e.removeAttributeNS(t, r) : e.setAttributeNS(t, r, n);
|
|
789
|
+
}
|
|
790
|
+
function pn(e, t, r) {
|
|
791
|
+
r ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
792
|
+
}
|
|
793
|
+
function Y(e, t) {
|
|
794
|
+
t == null ? e.removeAttribute("class") : e.className = t;
|
|
795
|
+
}
|
|
796
|
+
function dt(e, t, r, n) {
|
|
797
|
+
if (n)
|
|
798
|
+
Array.isArray(r) ? (e[`$$${t}`] = r[0], e[`$$${t}Data`] = r[1]) : e[`$$${t}`] = r;
|
|
799
|
+
else if (Array.isArray(r)) {
|
|
800
|
+
const o = r[0];
|
|
801
|
+
e.addEventListener(t, r[0] = (i) => o.call(e, r[1], i));
|
|
802
|
+
} else e.addEventListener(t, r, typeof r != "function" && r);
|
|
803
|
+
}
|
|
804
|
+
function bn(e, t, r = {}) {
|
|
805
|
+
const n = Object.keys(t || {}), o = Object.keys(r);
|
|
806
|
+
let i, s;
|
|
807
|
+
for (i = 0, s = o.length; i < s; i++) {
|
|
808
|
+
const a = o[i];
|
|
809
|
+
!a || a === "undefined" || t[a] || (Gt(e, a, !1), delete r[a]);
|
|
810
|
+
}
|
|
811
|
+
for (i = 0, s = n.length; i < s; i++) {
|
|
812
|
+
const a = n[i], l = !!t[a];
|
|
813
|
+
!a || a === "undefined" || r[a] === l || !l || (Gt(e, a, !0), r[a] = l);
|
|
814
|
+
}
|
|
815
|
+
return r;
|
|
816
|
+
}
|
|
817
|
+
function xt(e, t, r) {
|
|
818
|
+
if (!t) return r ? Z(e, "style") : t;
|
|
819
|
+
const n = e.style;
|
|
820
|
+
if (typeof t == "string") return n.cssText = t;
|
|
821
|
+
typeof r == "string" && (n.cssText = r = void 0), r || (r = {}), t || (t = {});
|
|
822
|
+
let o, i;
|
|
823
|
+
for (i in r)
|
|
824
|
+
t[i] == null && n.removeProperty(i), delete r[i];
|
|
825
|
+
for (i in t)
|
|
826
|
+
o = t[i], o !== r[i] && (n.setProperty(i, o), r[i] = o);
|
|
827
|
+
return r;
|
|
828
|
+
}
|
|
829
|
+
function ot(e, t = {}, r, n) {
|
|
830
|
+
const o = {};
|
|
831
|
+
return n || F(() => o.children = je(e, t.children, o.children)), F(() => typeof t.ref == "function" && Sr(t.ref, e)), F(() => mn(e, t, r, !0, o, !0)), o;
|
|
832
|
+
}
|
|
833
|
+
function Sr(e, t, r) {
|
|
834
|
+
return q(() => e(t, r));
|
|
835
|
+
}
|
|
836
|
+
function f(e, t, r, n) {
|
|
837
|
+
if (r !== void 0 && !n && (n = []), typeof t != "function") return je(e, t, n, r);
|
|
838
|
+
F((o) => je(e, t(), o, r), n);
|
|
839
|
+
}
|
|
840
|
+
function mn(e, t, r, n, o = {}, i = !1) {
|
|
841
|
+
t || (t = {});
|
|
842
|
+
for (const s in o)
|
|
843
|
+
if (!(s in t)) {
|
|
844
|
+
if (s === "children") continue;
|
|
845
|
+
o[s] = Wt(e, s, null, o[s], r, i, t);
|
|
846
|
+
}
|
|
847
|
+
for (const s in t) {
|
|
848
|
+
if (s === "children")
|
|
849
|
+
continue;
|
|
850
|
+
const a = t[s];
|
|
851
|
+
o[s] = Wt(e, s, a, o[s], r, i, t);
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
function yn(e) {
|
|
855
|
+
return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
|
|
856
|
+
}
|
|
857
|
+
function Gt(e, t, r) {
|
|
858
|
+
const n = t.trim().split(/\s+/);
|
|
859
|
+
for (let o = 0, i = n.length; o < i; o++) e.classList.toggle(n[o], r);
|
|
860
|
+
}
|
|
861
|
+
function Wt(e, t, r, n, o, i, s) {
|
|
862
|
+
let a, l, d, u, c;
|
|
863
|
+
if (t === "style") return xt(e, r, n);
|
|
864
|
+
if (t === "classList") return bn(e, r, n);
|
|
865
|
+
if (r === n) return n;
|
|
866
|
+
if (t === "ref")
|
|
867
|
+
i || r(e);
|
|
868
|
+
else if (t.slice(0, 3) === "on:") {
|
|
869
|
+
const h = t.slice(3);
|
|
870
|
+
n && e.removeEventListener(h, n, typeof n != "function" && n), r && e.addEventListener(h, r, typeof r != "function" && r);
|
|
871
|
+
} else if (t.slice(0, 10) === "oncapture:") {
|
|
872
|
+
const h = t.slice(10);
|
|
873
|
+
n && e.removeEventListener(h, n, !0), r && e.addEventListener(h, r, !0);
|
|
874
|
+
} else if (t.slice(0, 2) === "on") {
|
|
875
|
+
const h = t.slice(2).toLowerCase(), v = dn.has(h);
|
|
876
|
+
if (!v && n) {
|
|
877
|
+
const b = Array.isArray(n) ? n[0] : n;
|
|
878
|
+
e.removeEventListener(h, b);
|
|
879
|
+
}
|
|
880
|
+
(v || r) && (dt(e, h, r, v), v && be([h]));
|
|
881
|
+
} else if (t.slice(0, 5) === "attr:")
|
|
882
|
+
Z(e, t.slice(5), r);
|
|
883
|
+
else if (t.slice(0, 5) === "bool:")
|
|
884
|
+
pn(e, t.slice(5), r);
|
|
885
|
+
else if ((c = t.slice(0, 5) === "prop:") || (d = an.has(t)) || !o && ((u = cn(t, e.tagName)) || (l = on.has(t))) || (a = e.nodeName.includes("-") || "is" in s))
|
|
886
|
+
c && (t = t.slice(5), l = !0), t === "class" || t === "className" ? Y(e, r) : a && !l && !d ? e[yn(t)] = r : e[u || t] = r;
|
|
887
|
+
else {
|
|
888
|
+
const h = o && t.indexOf(":") > -1 && gn[t.split(":")[0]];
|
|
889
|
+
h ? vn(e, h, t, r) : Z(e, sn[t] || t, r);
|
|
890
|
+
}
|
|
891
|
+
return r;
|
|
892
|
+
}
|
|
893
|
+
function wn(e) {
|
|
894
|
+
let t = e.target;
|
|
895
|
+
const r = `$$${e.type}`, n = e.target, o = e.currentTarget, i = (l) => Object.defineProperty(e, "target", {
|
|
896
|
+
configurable: !0,
|
|
897
|
+
value: l
|
|
898
|
+
}), s = () => {
|
|
899
|
+
const l = t[r];
|
|
900
|
+
if (l && !t.disabled) {
|
|
901
|
+
const d = t[`${r}Data`];
|
|
902
|
+
if (d !== void 0 ? l.call(t, d, e) : l.call(t, e), e.cancelBubble) return;
|
|
903
|
+
}
|
|
904
|
+
return t.host && typeof t.host != "string" && !t.host._$host && t.contains(e.target) && i(t.host), !0;
|
|
905
|
+
}, a = () => {
|
|
906
|
+
for (; s() && (t = t._$host || t.parentNode || t.host); ) ;
|
|
907
|
+
};
|
|
908
|
+
if (Object.defineProperty(e, "currentTarget", {
|
|
909
|
+
configurable: !0,
|
|
910
|
+
get() {
|
|
911
|
+
return t || document;
|
|
912
|
+
}
|
|
913
|
+
}), e.composedPath) {
|
|
914
|
+
const l = e.composedPath();
|
|
915
|
+
i(l[0]);
|
|
916
|
+
for (let d = 0; d < l.length - 2 && (t = l[d], !!s()); d++) {
|
|
917
|
+
if (t._$host) {
|
|
918
|
+
t = t._$host, a();
|
|
919
|
+
break;
|
|
920
|
+
}
|
|
921
|
+
if (t.parentNode === o)
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
} else a();
|
|
925
|
+
i(n);
|
|
926
|
+
}
|
|
927
|
+
function je(e, t, r, n, o) {
|
|
928
|
+
for (; typeof r == "function"; ) r = r();
|
|
929
|
+
if (t === r) return r;
|
|
930
|
+
const i = typeof t, s = n !== void 0;
|
|
931
|
+
if (e = s && r[0] && r[0].parentNode || e, i === "string" || i === "number") {
|
|
932
|
+
if (i === "number" && (t = t.toString(), t === r))
|
|
933
|
+
return r;
|
|
934
|
+
if (s) {
|
|
935
|
+
let a = r[0];
|
|
936
|
+
a && a.nodeType === 3 ? a.data !== t && (a.data = t) : a = document.createTextNode(t), r = Ne(e, r, n, a);
|
|
937
|
+
} else
|
|
938
|
+
r !== "" && typeof r == "string" ? r = e.firstChild.data = t : r = e.textContent = t;
|
|
939
|
+
} else if (t == null || i === "boolean")
|
|
940
|
+
r = Ne(e, r, n);
|
|
941
|
+
else {
|
|
942
|
+
if (i === "function")
|
|
943
|
+
return F(() => {
|
|
944
|
+
let a = t();
|
|
945
|
+
for (; typeof a == "function"; ) a = a();
|
|
946
|
+
r = je(e, a, r, n);
|
|
947
|
+
}), () => r;
|
|
948
|
+
if (Array.isArray(t)) {
|
|
949
|
+
const a = [], l = r && Array.isArray(r);
|
|
950
|
+
if (kt(a, t, r, o))
|
|
951
|
+
return F(() => r = je(e, a, r, n, !0)), () => r;
|
|
952
|
+
if (a.length === 0) {
|
|
953
|
+
if (r = Ne(e, r, n), s) return r;
|
|
954
|
+
} else l ? r.length === 0 ? Ht(e, a, n) : fn(e, r, a) : (r && Ne(e), Ht(e, a));
|
|
955
|
+
r = a;
|
|
956
|
+
} else if (t.nodeType) {
|
|
957
|
+
if (Array.isArray(r)) {
|
|
958
|
+
if (s) return r = Ne(e, r, n, t);
|
|
959
|
+
Ne(e, r, null, t);
|
|
960
|
+
} else r == null || r === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
|
|
961
|
+
r = t;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
return r;
|
|
965
|
+
}
|
|
966
|
+
function kt(e, t, r, n) {
|
|
967
|
+
let o = !1;
|
|
968
|
+
for (let i = 0, s = t.length; i < s; i++) {
|
|
969
|
+
let a = t[i], l = r && r[e.length], d;
|
|
970
|
+
if (!(a == null || a === !0 || a === !1)) if ((d = typeof a) == "object" && a.nodeType)
|
|
971
|
+
e.push(a);
|
|
972
|
+
else if (Array.isArray(a))
|
|
973
|
+
o = kt(e, a, l) || o;
|
|
974
|
+
else if (d === "function")
|
|
975
|
+
if (n) {
|
|
976
|
+
for (; typeof a == "function"; ) a = a();
|
|
977
|
+
o = kt(e, Array.isArray(a) ? a : [a], Array.isArray(l) ? l : [l]) || o;
|
|
978
|
+
} else
|
|
979
|
+
e.push(a), o = !0;
|
|
980
|
+
else {
|
|
981
|
+
const u = String(a);
|
|
982
|
+
l && l.nodeType === 3 && l.data === u ? e.push(l) : e.push(document.createTextNode(u));
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
return o;
|
|
986
|
+
}
|
|
987
|
+
function Ht(e, t, r = null) {
|
|
988
|
+
for (let n = 0, o = t.length; n < o; n++) e.insertBefore(t[n], r);
|
|
989
|
+
}
|
|
990
|
+
function Ne(e, t, r, n) {
|
|
991
|
+
if (r === void 0) return e.textContent = "";
|
|
992
|
+
const o = n || document.createTextNode("");
|
|
993
|
+
if (t.length) {
|
|
994
|
+
let i = !1;
|
|
995
|
+
for (let s = t.length - 1; s >= 0; s--) {
|
|
996
|
+
const a = t[s];
|
|
997
|
+
if (o !== a) {
|
|
998
|
+
const l = a.parentNode === e;
|
|
999
|
+
!i && !s ? l ? e.replaceChild(o, a) : e.insertBefore(o, r) : l && a.remove();
|
|
1000
|
+
} else i = !0;
|
|
1001
|
+
}
|
|
1002
|
+
} else e.insertBefore(o, r);
|
|
1003
|
+
return [o];
|
|
1004
|
+
}
|
|
1005
|
+
const xn = "http://www.w3.org/2000/svg";
|
|
1006
|
+
function kn(e, t = !1, r = void 0) {
|
|
1007
|
+
return t ? document.createElementNS(xn, e) : document.createElement(e, {
|
|
1008
|
+
is: r
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
function Cn(e, t) {
|
|
1012
|
+
const r = $(e);
|
|
1013
|
+
return $(() => {
|
|
1014
|
+
const n = r();
|
|
1015
|
+
switch (typeof n) {
|
|
1016
|
+
case "function":
|
|
1017
|
+
return q(() => n(t));
|
|
1018
|
+
case "string":
|
|
1019
|
+
const o = un.has(n), i = kn(n, o, q(() => t.is));
|
|
1020
|
+
return ot(i, t, o), i;
|
|
1021
|
+
}
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
function Sn(e) {
|
|
1025
|
+
const [, t] = ct(e, ["component"]);
|
|
1026
|
+
return Cn(() => e.component, t);
|
|
1027
|
+
}
|
|
1028
|
+
const An = 1, $n = (e) => {
|
|
1029
|
+
const t = new URLSearchParams();
|
|
1030
|
+
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}@${An}?${t.toString()}`;
|
|
1031
|
+
};
|
|
1032
|
+
function Tn(e) {
|
|
1033
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1034
|
+
}
|
|
1035
|
+
var pt = { exports: {} }, qt;
|
|
1036
|
+
function _n() {
|
|
1037
|
+
return qt || (qt = 1, (function(e) {
|
|
1038
|
+
var t = Object.prototype.hasOwnProperty, r = "~";
|
|
1039
|
+
function n() {
|
|
1040
|
+
}
|
|
1041
|
+
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
|
|
1042
|
+
function o(l, d, u) {
|
|
1043
|
+
this.fn = l, this.context = d, this.once = u || !1;
|
|
1044
|
+
}
|
|
1045
|
+
function i(l, d, u, c, h) {
|
|
25
1046
|
if (typeof u != "function")
|
|
26
1047
|
throw new TypeError("The listener must be a function");
|
|
27
|
-
var
|
|
28
|
-
return
|
|
1048
|
+
var v = new o(u, c || l, h), b = r ? r + d : d;
|
|
1049
|
+
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;
|
|
29
1050
|
}
|
|
30
|
-
function s(
|
|
31
|
-
--
|
|
1051
|
+
function s(l, d) {
|
|
1052
|
+
--l._eventsCount === 0 ? l._events = new n() : delete l._events[d];
|
|
32
1053
|
}
|
|
33
|
-
function
|
|
34
|
-
this._events = new
|
|
1054
|
+
function a() {
|
|
1055
|
+
this._events = new n(), this._eventsCount = 0;
|
|
35
1056
|
}
|
|
36
|
-
|
|
37
|
-
var d = [], u,
|
|
1057
|
+
a.prototype.eventNames = function() {
|
|
1058
|
+
var d = [], u, c;
|
|
38
1059
|
if (this._eventsCount === 0) return d;
|
|
39
|
-
for (
|
|
40
|
-
|
|
1060
|
+
for (c in u = this._events)
|
|
1061
|
+
t.call(u, c) && d.push(r ? c.slice(1) : c);
|
|
41
1062
|
return Object.getOwnPropertySymbols ? d.concat(Object.getOwnPropertySymbols(u)) : d;
|
|
42
|
-
},
|
|
43
|
-
var u =
|
|
44
|
-
if (!
|
|
45
|
-
if (
|
|
46
|
-
for (var
|
|
47
|
-
|
|
48
|
-
return
|
|
49
|
-
},
|
|
50
|
-
var u =
|
|
51
|
-
return
|
|
52
|
-
},
|
|
53
|
-
var
|
|
54
|
-
if (!this._events[
|
|
55
|
-
var p = this._events[
|
|
1063
|
+
}, a.prototype.listeners = function(d) {
|
|
1064
|
+
var u = r ? r + d : d, c = this._events[u];
|
|
1065
|
+
if (!c) return [];
|
|
1066
|
+
if (c.fn) return [c.fn];
|
|
1067
|
+
for (var h = 0, v = c.length, b = new Array(v); h < v; h++)
|
|
1068
|
+
b[h] = c[h].fn;
|
|
1069
|
+
return b;
|
|
1070
|
+
}, a.prototype.listenerCount = function(d) {
|
|
1071
|
+
var u = r ? r + d : d, c = this._events[u];
|
|
1072
|
+
return c ? c.fn ? 1 : c.length : 0;
|
|
1073
|
+
}, a.prototype.emit = function(d, u, c, h, v, b) {
|
|
1074
|
+
var w = r ? r + d : d;
|
|
1075
|
+
if (!this._events[w]) return !1;
|
|
1076
|
+
var p = this._events[w], P = arguments.length, S, y;
|
|
56
1077
|
if (p.fn) {
|
|
57
|
-
switch (p.once && this.removeListener(d, p.fn, void 0, !0),
|
|
1078
|
+
switch (p.once && this.removeListener(d, p.fn, void 0, !0), P) {
|
|
58
1079
|
case 1:
|
|
59
1080
|
return p.fn.call(p.context), !0;
|
|
60
1081
|
case 2:
|
|
61
1082
|
return p.fn.call(p.context, u), !0;
|
|
62
1083
|
case 3:
|
|
63
|
-
return p.fn.call(p.context, u,
|
|
1084
|
+
return p.fn.call(p.context, u, c), !0;
|
|
64
1085
|
case 4:
|
|
65
|
-
return p.fn.call(p.context, u,
|
|
1086
|
+
return p.fn.call(p.context, u, c, h), !0;
|
|
66
1087
|
case 5:
|
|
67
|
-
return p.fn.call(p.context, u,
|
|
1088
|
+
return p.fn.call(p.context, u, c, h, v), !0;
|
|
68
1089
|
case 6:
|
|
69
|
-
return p.fn.call(p.context, u,
|
|
1090
|
+
return p.fn.call(p.context, u, c, h, v, b), !0;
|
|
70
1091
|
}
|
|
71
|
-
for (y = 1,
|
|
72
|
-
|
|
73
|
-
p.fn.apply(p.context,
|
|
1092
|
+
for (y = 1, S = new Array(P - 1); y < P; y++)
|
|
1093
|
+
S[y - 1] = arguments[y];
|
|
1094
|
+
p.fn.apply(p.context, S);
|
|
74
1095
|
} else {
|
|
75
|
-
var
|
|
76
|
-
for (y = 0; y <
|
|
77
|
-
switch (p[y].once && this.removeListener(d, p[y].fn, void 0, !0),
|
|
1096
|
+
var z = p.length, E;
|
|
1097
|
+
for (y = 0; y < z; y++)
|
|
1098
|
+
switch (p[y].once && this.removeListener(d, p[y].fn, void 0, !0), P) {
|
|
78
1099
|
case 1:
|
|
79
1100
|
p[y].fn.call(p[y].context);
|
|
80
1101
|
break;
|
|
@@ -82,291 +1103,291 @@ function ur() {
|
|
|
82
1103
|
p[y].fn.call(p[y].context, u);
|
|
83
1104
|
break;
|
|
84
1105
|
case 3:
|
|
85
|
-
p[y].fn.call(p[y].context, u,
|
|
1106
|
+
p[y].fn.call(p[y].context, u, c);
|
|
86
1107
|
break;
|
|
87
1108
|
case 4:
|
|
88
|
-
p[y].fn.call(p[y].context, u,
|
|
1109
|
+
p[y].fn.call(p[y].context, u, c, h);
|
|
89
1110
|
break;
|
|
90
1111
|
default:
|
|
91
|
-
if (!
|
|
92
|
-
|
|
93
|
-
p[y].fn.apply(p[y].context,
|
|
1112
|
+
if (!S) for (E = 1, S = new Array(P - 1); E < P; E++)
|
|
1113
|
+
S[E - 1] = arguments[E];
|
|
1114
|
+
p[y].fn.apply(p[y].context, S);
|
|
94
1115
|
}
|
|
95
1116
|
}
|
|
96
1117
|
return !0;
|
|
97
|
-
},
|
|
98
|
-
return
|
|
99
|
-
},
|
|
100
|
-
return
|
|
101
|
-
},
|
|
102
|
-
var
|
|
103
|
-
if (!this._events[
|
|
1118
|
+
}, a.prototype.on = function(d, u, c) {
|
|
1119
|
+
return i(this, d, u, c, !1);
|
|
1120
|
+
}, a.prototype.once = function(d, u, c) {
|
|
1121
|
+
return i(this, d, u, c, !0);
|
|
1122
|
+
}, a.prototype.removeListener = function(d, u, c, h) {
|
|
1123
|
+
var v = r ? r + d : d;
|
|
1124
|
+
if (!this._events[v]) return this;
|
|
104
1125
|
if (!u)
|
|
105
|
-
return s(this,
|
|
106
|
-
var
|
|
107
|
-
if (
|
|
108
|
-
|
|
1126
|
+
return s(this, v), this;
|
|
1127
|
+
var b = this._events[v];
|
|
1128
|
+
if (b.fn)
|
|
1129
|
+
b.fn === u && (!h || b.once) && (!c || b.context === c) && s(this, v);
|
|
109
1130
|
else {
|
|
110
|
-
for (var
|
|
111
|
-
(
|
|
112
|
-
p.length ? this._events[
|
|
1131
|
+
for (var w = 0, p = [], P = b.length; w < P; w++)
|
|
1132
|
+
(b[w].fn !== u || h && !b[w].once || c && b[w].context !== c) && p.push(b[w]);
|
|
1133
|
+
p.length ? this._events[v] = p.length === 1 ? p[0] : p : s(this, v);
|
|
113
1134
|
}
|
|
114
1135
|
return this;
|
|
115
|
-
},
|
|
1136
|
+
}, a.prototype.removeAllListeners = function(d) {
|
|
116
1137
|
var u;
|
|
117
|
-
return d ? (u =
|
|
118
|
-
},
|
|
119
|
-
})(
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
const
|
|
125
|
-
return o &&
|
|
126
|
-
}
|
|
127
|
-
if (
|
|
128
|
-
if (!
|
|
129
|
-
if (Array.isArray(
|
|
130
|
-
if (!Array.isArray(
|
|
131
|
-
let
|
|
132
|
-
for (const s of
|
|
133
|
-
const
|
|
134
|
-
|
|
1138
|
+
return d ? (u = r ? r + d : d, this._events[u] && s(this, u)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
1139
|
+
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = r, a.EventEmitter = a, e.exports = a;
|
|
1140
|
+
})(pt)), pt.exports;
|
|
1141
|
+
}
|
|
1142
|
+
_n();
|
|
1143
|
+
const G = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Ar = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), it = "@ts-pattern/anonymous-select-key", Ct = (e) => !!(e && typeof e == "object"), Ze = (e) => e && !!e[G], j = (e, t, r) => {
|
|
1144
|
+
if (Ze(e)) {
|
|
1145
|
+
const n = e[G](), { matched: o, selections: i } = n.match(t);
|
|
1146
|
+
return o && i && Object.keys(i).forEach((s) => r(s, i[s])), o;
|
|
1147
|
+
}
|
|
1148
|
+
if (Ct(e)) {
|
|
1149
|
+
if (!Ct(t)) return !1;
|
|
1150
|
+
if (Array.isArray(e)) {
|
|
1151
|
+
if (!Array.isArray(t)) return !1;
|
|
1152
|
+
let n = [], o = [], i = [];
|
|
1153
|
+
for (const s of e.keys()) {
|
|
1154
|
+
const a = e[s];
|
|
1155
|
+
Ze(a) && a[Ar] ? i.push(a) : i.length ? o.push(a) : n.push(a);
|
|
135
1156
|
}
|
|
136
|
-
if (
|
|
137
|
-
if (
|
|
138
|
-
if (
|
|
139
|
-
const s =
|
|
140
|
-
return
|
|
1157
|
+
if (i.length) {
|
|
1158
|
+
if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
1159
|
+
if (t.length < n.length + o.length) return !1;
|
|
1160
|
+
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);
|
|
1161
|
+
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));
|
|
141
1162
|
}
|
|
142
|
-
return
|
|
1163
|
+
return e.length === t.length && e.every((s, a) => j(s, t[a], r));
|
|
143
1164
|
}
|
|
144
|
-
return Reflect.ownKeys(
|
|
145
|
-
const o =
|
|
146
|
-
return (
|
|
147
|
-
var
|
|
1165
|
+
return Reflect.ownKeys(e).every((n) => {
|
|
1166
|
+
const o = e[n];
|
|
1167
|
+
return (n in t || Ze(i = o) && i[G]().matcherType === "optional") && j(o, t[n], r);
|
|
1168
|
+
var i;
|
|
148
1169
|
});
|
|
149
1170
|
}
|
|
150
|
-
return Object.is(
|
|
151
|
-
},
|
|
152
|
-
var
|
|
153
|
-
return
|
|
154
|
-
},
|
|
155
|
-
function
|
|
156
|
-
if (
|
|
157
|
-
const [
|
|
158
|
-
return (
|
|
1171
|
+
return Object.is(t, e);
|
|
1172
|
+
}, K = (e) => {
|
|
1173
|
+
var t, r, n;
|
|
1174
|
+
return Ct(e) ? Ze(e) ? (t = (r = (n = e[G]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? De(e, K) : De(Object.values(e), K) : [];
|
|
1175
|
+
}, De = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
|
|
1176
|
+
function Nn(...e) {
|
|
1177
|
+
if (e.length === 1) {
|
|
1178
|
+
const [t] = e;
|
|
1179
|
+
return (r) => j(t, r, () => {
|
|
159
1180
|
});
|
|
160
1181
|
}
|
|
161
|
-
if (
|
|
162
|
-
const [
|
|
163
|
-
return
|
|
1182
|
+
if (e.length === 2) {
|
|
1183
|
+
const [t, r] = e;
|
|
1184
|
+
return j(t, r, () => {
|
|
164
1185
|
});
|
|
165
1186
|
}
|
|
166
|
-
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${
|
|
1187
|
+
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`);
|
|
167
1188
|
}
|
|
168
|
-
function
|
|
169
|
-
return Object.assign(
|
|
1189
|
+
function V(e) {
|
|
1190
|
+
return Object.assign(e, { optional: () => Rt(e), and: (t) => N(e, t), or: (t) => $r(e, t), select: (t) => t === void 0 ? Ve(e) : Ve(t, e) });
|
|
170
1191
|
}
|
|
171
|
-
function
|
|
172
|
-
return Object.assign(((
|
|
173
|
-
let
|
|
174
|
-
const
|
|
1192
|
+
function St(e) {
|
|
1193
|
+
return Object.assign(((t) => Object.assign(t, { [Symbol.iterator]() {
|
|
1194
|
+
let r = 0;
|
|
1195
|
+
const n = [{ value: Object.assign(t, { [Ar]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
175
1196
|
return { next: () => {
|
|
176
1197
|
var o;
|
|
177
|
-
return (o = r
|
|
1198
|
+
return (o = n[r++]) != null ? o : n.at(-1);
|
|
178
1199
|
} };
|
|
179
|
-
} }))(
|
|
1200
|
+
} }))(e), { optional: () => St(Rt(e)), select: (t) => St(t === void 0 ? Ve(e) : Ve(t, e)) });
|
|
180
1201
|
}
|
|
181
|
-
function
|
|
182
|
-
return
|
|
183
|
-
let
|
|
184
|
-
const
|
|
185
|
-
|
|
1202
|
+
function Rt(e) {
|
|
1203
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1204
|
+
let r = {};
|
|
1205
|
+
const n = (o, i) => {
|
|
1206
|
+
r[o] = i;
|
|
186
1207
|
};
|
|
187
|
-
return
|
|
188
|
-
}, getSelectionKeys: () =>
|
|
1208
|
+
return t === void 0 ? (K(e).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: j(e, t, n), selections: r };
|
|
1209
|
+
}, getSelectionKeys: () => K(e), matcherType: "optional" }) });
|
|
189
1210
|
}
|
|
190
|
-
const
|
|
191
|
-
for (const
|
|
1211
|
+
const En = (e, t) => {
|
|
1212
|
+
for (const r of e) if (!t(r)) return !1;
|
|
192
1213
|
return !0;
|
|
193
|
-
},
|
|
194
|
-
for (const [
|
|
1214
|
+
}, On = (e, t) => {
|
|
1215
|
+
for (const [r, n] of e.entries()) if (!t(n, r)) return !1;
|
|
195
1216
|
return !0;
|
|
196
|
-
},
|
|
197
|
-
const
|
|
198
|
-
for (const
|
|
1217
|
+
}, Rn = (e, t) => {
|
|
1218
|
+
const r = Reflect.ownKeys(e);
|
|
1219
|
+
for (const n of r) if (!t(n, e[n])) return !1;
|
|
199
1220
|
return !0;
|
|
200
1221
|
};
|
|
201
|
-
function
|
|
202
|
-
return
|
|
203
|
-
let
|
|
204
|
-
const
|
|
205
|
-
|
|
1222
|
+
function N(...e) {
|
|
1223
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1224
|
+
let r = {};
|
|
1225
|
+
const n = (o, i) => {
|
|
1226
|
+
r[o] = i;
|
|
206
1227
|
};
|
|
207
|
-
return { matched:
|
|
208
|
-
}, getSelectionKeys: () =>
|
|
1228
|
+
return { matched: e.every((o) => j(o, t, n)), selections: r };
|
|
1229
|
+
}, getSelectionKeys: () => De(e, K), matcherType: "and" }) });
|
|
209
1230
|
}
|
|
210
|
-
function
|
|
211
|
-
return
|
|
212
|
-
let
|
|
213
|
-
const
|
|
214
|
-
|
|
1231
|
+
function $r(...e) {
|
|
1232
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1233
|
+
let r = {};
|
|
1234
|
+
const n = (o, i) => {
|
|
1235
|
+
r[o] = i;
|
|
215
1236
|
};
|
|
216
|
-
return
|
|
217
|
-
}, getSelectionKeys: () =>
|
|
218
|
-
}
|
|
219
|
-
function
|
|
220
|
-
return { [
|
|
221
|
-
}
|
|
222
|
-
function
|
|
223
|
-
const
|
|
224
|
-
return
|
|
225
|
-
let o = { [
|
|
226
|
-
return { matched:
|
|
227
|
-
o[
|
|
1237
|
+
return De(e, K).forEach((o) => n(o, void 0)), { matched: e.some((o) => j(o, t, n)), selections: r };
|
|
1238
|
+
}, getSelectionKeys: () => De(e, K), matcherType: "or" }) });
|
|
1239
|
+
}
|
|
1240
|
+
function x(e) {
|
|
1241
|
+
return { [G]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
|
|
1242
|
+
}
|
|
1243
|
+
function Ve(...e) {
|
|
1244
|
+
const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
|
|
1245
|
+
return V({ [G]: () => ({ match: (n) => {
|
|
1246
|
+
let o = { [t ?? it]: n };
|
|
1247
|
+
return { matched: r === void 0 || j(r, n, (i, s) => {
|
|
1248
|
+
o[i] = s;
|
|
228
1249
|
}), selections: o };
|
|
229
|
-
}, getSelectionKeys: () => [
|
|
1250
|
+
}, getSelectionKeys: () => [t ?? it].concat(r === void 0 ? [] : K(r)) }) });
|
|
230
1251
|
}
|
|
231
|
-
function
|
|
1252
|
+
function Tr(e) {
|
|
232
1253
|
return !0;
|
|
233
1254
|
}
|
|
234
|
-
function
|
|
235
|
-
return typeof
|
|
236
|
-
}
|
|
237
|
-
function
|
|
238
|
-
return typeof
|
|
239
|
-
}
|
|
240
|
-
function
|
|
241
|
-
return typeof
|
|
242
|
-
}
|
|
243
|
-
const
|
|
244
|
-
return
|
|
245
|
-
var
|
|
246
|
-
}, endsWith: (
|
|
247
|
-
return
|
|
248
|
-
var
|
|
249
|
-
}, minLength: (
|
|
250
|
-
return
|
|
251
|
-
var
|
|
252
|
-
}, regex: (
|
|
253
|
-
return
|
|
254
|
-
var
|
|
255
|
-
} }),
|
|
256
|
-
return typeof
|
|
257
|
-
})),
|
|
258
|
-
return typeof
|
|
259
|
-
})),
|
|
260
|
-
return
|
|
261
|
-
})),
|
|
262
|
-
return
|
|
1255
|
+
function ae(e) {
|
|
1256
|
+
return typeof e == "number";
|
|
1257
|
+
}
|
|
1258
|
+
function de(e) {
|
|
1259
|
+
return typeof e == "string";
|
|
1260
|
+
}
|
|
1261
|
+
function ue(e) {
|
|
1262
|
+
return typeof e == "bigint";
|
|
1263
|
+
}
|
|
1264
|
+
const _r = V(x(Tr)), Pn = V(x(Tr)), Bn = _r, ge = (e) => Object.assign(V(e), { startsWith: (t) => {
|
|
1265
|
+
return ge(N(e, (r = t, x((n) => de(n) && n.startsWith(r)))));
|
|
1266
|
+
var r;
|
|
1267
|
+
}, endsWith: (t) => {
|
|
1268
|
+
return ge(N(e, (r = t, x((n) => de(n) && n.endsWith(r)))));
|
|
1269
|
+
var r;
|
|
1270
|
+
}, 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) => {
|
|
1271
|
+
return ge(N(e, (r = t, x((n) => de(n) && n.includes(r)))));
|
|
1272
|
+
var r;
|
|
1273
|
+
}, regex: (t) => {
|
|
1274
|
+
return ge(N(e, (r = t, x((n) => de(n) && !!n.match(r)))));
|
|
1275
|
+
var r;
|
|
1276
|
+
} }), 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))) }), Ln = 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))) }), Mn = fe(x(ue)), jn = V(x(function(e) {
|
|
1277
|
+
return typeof e == "boolean";
|
|
1278
|
+
})), Dn = V(x(function(e) {
|
|
1279
|
+
return typeof e == "symbol";
|
|
1280
|
+
})), Vn = V(x(function(e) {
|
|
1281
|
+
return e == null;
|
|
1282
|
+
})), Fn = V(x(function(e) {
|
|
1283
|
+
return e != null;
|
|
263
1284
|
}));
|
|
264
|
-
var
|
|
265
|
-
return
|
|
266
|
-
if (!Array.isArray(
|
|
267
|
-
if (
|
|
268
|
-
const
|
|
269
|
-
let r = {};
|
|
270
|
-
if (e.length === 0) return j(n).forEach((a) => {
|
|
271
|
-
r[a] = [];
|
|
272
|
-
}), { matched: !0, selections: r };
|
|
273
|
-
const o = (a, s) => {
|
|
274
|
-
r[a] = (r[a] || []).concat([s]);
|
|
275
|
-
};
|
|
276
|
-
return { matched: e.every((a) => R(n, a, o)), selections: r };
|
|
277
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : j(t[0]) }) });
|
|
278
|
-
}, set: function(...t) {
|
|
279
|
-
return E({ [z]: () => ({ match: (e) => {
|
|
280
|
-
if (!(e instanceof Set)) return { matched: !1 };
|
|
1285
|
+
var In = { __proto__: null, matcher: G, optional: Rt, array: function(...e) {
|
|
1286
|
+
return St({ [G]: () => ({ match: (t) => {
|
|
1287
|
+
if (!Array.isArray(t)) return { matched: !1 };
|
|
1288
|
+
if (e.length === 0) return { matched: !0 };
|
|
1289
|
+
const r = e[0];
|
|
281
1290
|
let n = {};
|
|
282
|
-
if (
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
1291
|
+
if (t.length === 0) return K(r).forEach((i) => {
|
|
1292
|
+
n[i] = [];
|
|
1293
|
+
}), { matched: !0, selections: n };
|
|
1294
|
+
const o = (i, s) => {
|
|
1295
|
+
n[i] = (n[i] || []).concat([s]);
|
|
1296
|
+
};
|
|
1297
|
+
return { matched: t.every((i) => j(r, i, o)), selections: n };
|
|
1298
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : K(e[0]) }) });
|
|
1299
|
+
}, set: function(...e) {
|
|
1300
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1301
|
+
if (!(t instanceof Set)) return { matched: !1 };
|
|
1302
|
+
let r = {};
|
|
1303
|
+
if (t.size === 0) return { matched: !0, selections: r };
|
|
1304
|
+
if (e.length === 0) return { matched: !0 };
|
|
1305
|
+
const n = (i, s) => {
|
|
1306
|
+
r[i] = (r[i] || []).concat([s]);
|
|
1307
|
+
}, o = e[0];
|
|
1308
|
+
return { matched: En(t, (i) => j(o, i, n)), selections: r };
|
|
1309
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : K(e[0]) }) });
|
|
1310
|
+
}, map: function(...e) {
|
|
1311
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1312
|
+
if (!(t instanceof Map)) return { matched: !1 };
|
|
1313
|
+
let r = {};
|
|
1314
|
+
if (t.size === 0) return { matched: !0, selections: r };
|
|
1315
|
+
const n = (a, l) => {
|
|
1316
|
+
r[a] = (r[a] || []).concat([l]);
|
|
296
1317
|
};
|
|
297
|
-
if (
|
|
1318
|
+
if (e.length === 0) return { matched: !0 };
|
|
298
1319
|
var o;
|
|
299
|
-
if (
|
|
300
|
-
const [
|
|
301
|
-
return { matched:
|
|
302
|
-
const d =
|
|
1320
|
+
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()}`);
|
|
1321
|
+
const [i, s] = e;
|
|
1322
|
+
return { matched: On(t, (a, l) => {
|
|
1323
|
+
const d = j(i, l, n), u = j(s, a, n);
|
|
303
1324
|
return d && u;
|
|
304
|
-
}), selections: n };
|
|
305
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : [...j(t[0]), ...j(t[1])] }) });
|
|
306
|
-
}, record: function(...t) {
|
|
307
|
-
return E({ [z]: () => ({ match: (e) => {
|
|
308
|
-
if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
|
|
309
|
-
var n;
|
|
310
|
-
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(n = t[0]) == null ? void 0 : n.toString()}`);
|
|
311
|
-
let r = {};
|
|
312
|
-
const o = (i, c) => {
|
|
313
|
-
r[i] = (r[i] || []).concat([c]);
|
|
314
|
-
}, [a, s] = t.length === 1 ? [ye, t[0]] : t;
|
|
315
|
-
return { matched: pr(e, (i, c) => {
|
|
316
|
-
const d = typeof i != "string" || Number.isNaN(Number(i)) ? null : Number(i), u = d !== null && R(a, d, o), v = R(a, i, o), f = R(s, c, o);
|
|
317
|
-
return (v || u) && f;
|
|
318
1325
|
}), selections: r };
|
|
319
|
-
}, getSelectionKeys: () =>
|
|
320
|
-
},
|
|
321
|
-
return
|
|
1326
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : [...K(e[0]), ...K(e[1])] }) });
|
|
1327
|
+
}, record: function(...e) {
|
|
1328
|
+
return V({ [G]: () => ({ match: (t) => {
|
|
1329
|
+
if (t === null || typeof t != "object" || Array.isArray(t)) return { matched: !1 };
|
|
1330
|
+
var r;
|
|
1331
|
+
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()}`);
|
|
1332
|
+
let n = {};
|
|
1333
|
+
const o = (a, l) => {
|
|
1334
|
+
n[a] = (n[a] || []).concat([l]);
|
|
1335
|
+
}, [i, s] = e.length === 1 ? [Xt, e[0]] : e;
|
|
1336
|
+
return { matched: Rn(t, (a, l) => {
|
|
1337
|
+
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);
|
|
1338
|
+
return (c || u) && h;
|
|
1339
|
+
}), selections: n };
|
|
1340
|
+
}, getSelectionKeys: () => e.length === 0 ? [] : [...K(e[0]), ...K(e[1])] }) });
|
|
1341
|
+
}, intersection: N, union: $r, not: function(e) {
|
|
1342
|
+
return V({ [G]: () => ({ match: (t) => ({ matched: !j(e, t, () => {
|
|
322
1343
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
323
|
-
}, when:
|
|
324
|
-
return
|
|
325
|
-
return (
|
|
326
|
-
})(
|
|
327
|
-
}, shape: function(
|
|
328
|
-
return
|
|
1344
|
+
}, when: x, select: Ve, any: _r, unknown: Pn, _: Bn, string: Xt, number: Ln, bigint: Mn, boolean: jn, symbol: Dn, nullish: Vn, nonNullable: Fn, instanceOf: function(e) {
|
|
1345
|
+
return V(x(/* @__PURE__ */ (function(t) {
|
|
1346
|
+
return (r) => r instanceof t;
|
|
1347
|
+
})(e)));
|
|
1348
|
+
}, shape: function(e) {
|
|
1349
|
+
return V(x(Nn(e)));
|
|
329
1350
|
} };
|
|
330
|
-
class
|
|
331
|
-
constructor(
|
|
332
|
-
let
|
|
1351
|
+
class zn extends Error {
|
|
1352
|
+
constructor(t) {
|
|
1353
|
+
let r;
|
|
333
1354
|
try {
|
|
334
|
-
|
|
1355
|
+
r = JSON.stringify(t);
|
|
335
1356
|
} catch {
|
|
336
|
-
|
|
1357
|
+
r = t;
|
|
337
1358
|
}
|
|
338
|
-
super(`Pattern matching error: no pattern matches value ${
|
|
1359
|
+
super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = t;
|
|
339
1360
|
}
|
|
340
1361
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
343
|
-
return new
|
|
1362
|
+
const At = { matched: !1, value: void 0 };
|
|
1363
|
+
function ke(e) {
|
|
1364
|
+
return new at(e, At);
|
|
344
1365
|
}
|
|
345
|
-
class
|
|
346
|
-
constructor(
|
|
347
|
-
this.input = void 0, this.state = void 0, this.input =
|
|
1366
|
+
class at {
|
|
1367
|
+
constructor(t, r) {
|
|
1368
|
+
this.input = void 0, this.state = void 0, this.input = t, this.state = r;
|
|
348
1369
|
}
|
|
349
|
-
with(...
|
|
1370
|
+
with(...t) {
|
|
350
1371
|
if (this.state.matched) return this;
|
|
351
|
-
const
|
|
1372
|
+
const r = t[t.length - 1], n = [t[0]];
|
|
352
1373
|
let o;
|
|
353
|
-
|
|
354
|
-
let
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
},
|
|
358
|
-
return new
|
|
359
|
-
}
|
|
360
|
-
when(
|
|
1374
|
+
t.length === 3 && typeof t[1] == "function" ? o = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
|
|
1375
|
+
let i = !1, s = {};
|
|
1376
|
+
const a = (d, u) => {
|
|
1377
|
+
i = !0, s[d] = u;
|
|
1378
|
+
}, l = !n.some((d) => j(d, this.input, a)) || o && !o(this.input) ? At : { matched: !0, value: r(i ? it in s ? s[it] : s : this.input, this.input) };
|
|
1379
|
+
return new at(this.input, l);
|
|
1380
|
+
}
|
|
1381
|
+
when(t, r) {
|
|
361
1382
|
if (this.state.matched) return this;
|
|
362
|
-
const
|
|
363
|
-
return new
|
|
1383
|
+
const n = !!t(this.input);
|
|
1384
|
+
return new at(this.input, n ? { matched: !0, value: r(this.input, this.input) } : At);
|
|
364
1385
|
}
|
|
365
|
-
otherwise(
|
|
366
|
-
return this.state.matched ? this.state.value :
|
|
1386
|
+
otherwise(t) {
|
|
1387
|
+
return this.state.matched ? this.state.value : t(this.input);
|
|
367
1388
|
}
|
|
368
|
-
exhaustive(
|
|
369
|
-
return this.state.matched ? this.state.value :
|
|
1389
|
+
exhaustive(t = Un) {
|
|
1390
|
+
return this.state.matched ? this.state.value : t(this.input);
|
|
370
1391
|
}
|
|
371
1392
|
run() {
|
|
372
1393
|
return this.exhaustive();
|
|
@@ -378,117 +1399,117 @@ class Dt {
|
|
|
378
1399
|
return this;
|
|
379
1400
|
}
|
|
380
1401
|
}
|
|
381
|
-
function
|
|
382
|
-
throw new
|
|
1402
|
+
function Un(e) {
|
|
1403
|
+
throw new zn(e);
|
|
383
1404
|
}
|
|
384
|
-
const
|
|
1405
|
+
const Qe = {
|
|
385
1406
|
CREATED: "created",
|
|
386
1407
|
SIGNALING: "signaling",
|
|
387
1408
|
READY: "ready",
|
|
388
1409
|
LINKING: "linking"
|
|
389
|
-
},
|
|
1410
|
+
}, oe = {
|
|
390
1411
|
STANDBY: "standby",
|
|
391
1412
|
CREATING: "creating",
|
|
392
1413
|
CONNECTING: "connecting",
|
|
393
1414
|
CONNECTED: "connected",
|
|
394
1415
|
ERROR: "error"
|
|
395
1416
|
};
|
|
396
|
-
var
|
|
397
|
-
var
|
|
398
|
-
function
|
|
399
|
-
return
|
|
1417
|
+
var bt = { exports: {} };
|
|
1418
|
+
var Qt;
|
|
1419
|
+
function Kn() {
|
|
1420
|
+
return Qt || (Qt = 1, (function(e) {
|
|
400
1421
|
(function() {
|
|
401
|
-
var
|
|
402
|
-
function
|
|
403
|
-
for (var
|
|
404
|
-
var
|
|
405
|
-
|
|
1422
|
+
var t = {}.hasOwnProperty;
|
|
1423
|
+
function r() {
|
|
1424
|
+
for (var i = "", s = 0; s < arguments.length; s++) {
|
|
1425
|
+
var a = arguments[s];
|
|
1426
|
+
a && (i = o(i, n(a)));
|
|
406
1427
|
}
|
|
407
|
-
return
|
|
1428
|
+
return i;
|
|
408
1429
|
}
|
|
409
|
-
function
|
|
410
|
-
if (typeof
|
|
411
|
-
return
|
|
412
|
-
if (typeof
|
|
1430
|
+
function n(i) {
|
|
1431
|
+
if (typeof i == "string" || typeof i == "number")
|
|
1432
|
+
return i;
|
|
1433
|
+
if (typeof i != "object")
|
|
413
1434
|
return "";
|
|
414
|
-
if (Array.isArray(
|
|
415
|
-
return
|
|
416
|
-
if (
|
|
417
|
-
return
|
|
1435
|
+
if (Array.isArray(i))
|
|
1436
|
+
return r.apply(null, i);
|
|
1437
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
|
|
1438
|
+
return i.toString();
|
|
418
1439
|
var s = "";
|
|
419
|
-
for (var
|
|
420
|
-
|
|
1440
|
+
for (var a in i)
|
|
1441
|
+
t.call(i, a) && i[a] && (s = o(s, a));
|
|
421
1442
|
return s;
|
|
422
1443
|
}
|
|
423
|
-
function o(
|
|
424
|
-
return s ?
|
|
1444
|
+
function o(i, s) {
|
|
1445
|
+
return s ? i ? i + " " + s : i + s : i;
|
|
425
1446
|
}
|
|
426
|
-
|
|
1447
|
+
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
427
1448
|
})();
|
|
428
|
-
})(
|
|
429
|
-
}
|
|
430
|
-
var
|
|
431
|
-
const
|
|
432
|
-
if (typeof
|
|
433
|
-
if (
|
|
434
|
-
return await import("./simple-CAAgvkQC.js").then((
|
|
435
|
-
if (
|
|
436
|
-
return await import("./openlv-CH8lb3Oi.js").then((
|
|
437
|
-
throw new Error(`Unknown theme: ${
|
|
438
|
-
}
|
|
439
|
-
return t;
|
|
440
|
-
}, Yt = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Ue = (t, e = [], n = {}) => {
|
|
441
|
-
for (const [r, o] of Object.entries(t)) {
|
|
442
|
-
const a = [...e, r];
|
|
443
|
-
Yt(o) ? Ue(o, a, n) : n[`--lv-${a.join("-")}`] = o;
|
|
1449
|
+
})(bt)), bt.exports;
|
|
1450
|
+
}
|
|
1451
|
+
var Gn = Kn();
|
|
1452
|
+
const he = /* @__PURE__ */ Tn(Gn), Wn = async (e) => {
|
|
1453
|
+
if (typeof e == "string") {
|
|
1454
|
+
if (e === "simple")
|
|
1455
|
+
return await import("./simple-CAAgvkQC.js").then((t) => t.simpleTheme);
|
|
1456
|
+
if (e === "openlv")
|
|
1457
|
+
return await import("./openlv-CH8lb3Oi.js").then((t) => t.openlvTheme);
|
|
1458
|
+
throw new Error(`Unknown theme: ${e}`);
|
|
444
1459
|
}
|
|
445
|
-
return
|
|
446
|
-
},
|
|
447
|
-
const n
|
|
448
|
-
...t
|
|
1460
|
+
return e;
|
|
1461
|
+
}, $t = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Nr = (e, t = [], r = {}) => {
|
|
1462
|
+
for (const [n, o] of Object.entries(e)) {
|
|
1463
|
+
const i = [...t, n];
|
|
1464
|
+
$t(o) ? Nr(o, i, r) : r[`--lv-${i.join("-")}`] = o;
|
|
1465
|
+
}
|
|
1466
|
+
return r;
|
|
1467
|
+
}, Hn = (e = "auto", t = "system") => e === "light" || e === "dark" ? e : t === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : t, Er = (e, t) => {
|
|
1468
|
+
const r = {
|
|
1469
|
+
...e
|
|
449
1470
|
};
|
|
450
|
-
for (const
|
|
451
|
-
const o =
|
|
452
|
-
n
|
|
1471
|
+
for (const n of Object.keys(t)) {
|
|
1472
|
+
const o = e[n], i = t[n];
|
|
1473
|
+
r[n] = $t(o) && $t(i) ? Er(o, i) : i;
|
|
453
1474
|
}
|
|
454
|
-
return
|
|
455
|
-
},
|
|
456
|
-
const
|
|
1475
|
+
return r;
|
|
1476
|
+
}, qn = async (e, t = "system") => {
|
|
1477
|
+
const r = await Wn(e.theme), n = Hn(e.mode, t), o = r[n];
|
|
457
1478
|
if (!o) return "";
|
|
458
|
-
const
|
|
459
|
-
return Object.entries(s).map(([
|
|
1479
|
+
const i = r.common ? Er(r.common, o) : o, s = Nr(i);
|
|
1480
|
+
return Object.entries(s).map(([a, l]) => `${a}: ${l};`).join(`
|
|
460
1481
|
`);
|
|
461
|
-
}, xe = `@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)}}`, ke = async (t, e, n = "system") => {
|
|
462
|
-
let
|
|
1482
|
+
}, Jt = `@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)}}`, Zt = async (e, t, r = "system") => {
|
|
1483
|
+
let n = e.querySelector(
|
|
463
1484
|
"style[data-openlv-modal]"
|
|
464
1485
|
);
|
|
465
|
-
|
|
1486
|
+
n || (n = document.createElement("style"), n.dataset.openlvModal = "true", e.append(n));
|
|
466
1487
|
const o = {
|
|
467
|
-
...
|
|
468
|
-
theme:
|
|
1488
|
+
...t,
|
|
1489
|
+
theme: t?.theme ?? "simple"
|
|
469
1490
|
};
|
|
470
1491
|
if (o) {
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
${
|
|
1492
|
+
const i = await qn(o, r);
|
|
1493
|
+
n.textContent = `:root, :host {
|
|
1494
|
+
${i}
|
|
474
1495
|
}
|
|
475
|
-
` +
|
|
1496
|
+
` + Jt;
|
|
476
1497
|
} else
|
|
477
|
-
|
|
1498
|
+
n.textContent = Jt;
|
|
478
1499
|
};
|
|
479
|
-
class
|
|
480
|
-
constructor(
|
|
1500
|
+
class Or extends HTMLElement {
|
|
1501
|
+
constructor(r) {
|
|
481
1502
|
super();
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
this.parameters =
|
|
1503
|
+
_e(this, "shadow");
|
|
1504
|
+
_e(this, "renderRequested", !1);
|
|
1505
|
+
_e(this, "parameters");
|
|
1506
|
+
_e(this, "themeCleanup");
|
|
1507
|
+
_e(this, "disposeRender");
|
|
1508
|
+
this.parameters = r, this.shadow = this.attachShadow({
|
|
488
1509
|
mode: "open"
|
|
489
1510
|
});
|
|
490
|
-
const
|
|
491
|
-
|
|
1511
|
+
const n = r.provider.storage.getSettings()?.theme ?? "system";
|
|
1512
|
+
Zt(this.shadow, r.theme, n);
|
|
492
1513
|
}
|
|
493
1514
|
connectedCallback() {
|
|
494
1515
|
this.requestRender(), this.themeCleanup?.(), this.setupThemeListener();
|
|
@@ -497,14 +1518,14 @@ class We extends HTMLElement {
|
|
|
497
1518
|
this.disposeRender?.(), this.disposeRender = void 0, this.themeCleanup?.();
|
|
498
1519
|
}
|
|
499
1520
|
setupThemeListener() {
|
|
500
|
-
const
|
|
1521
|
+
const r = () => {
|
|
501
1522
|
const o = this.parameters.provider.storage.getSettings()?.theme ?? "system";
|
|
502
|
-
|
|
1523
|
+
Zt(this.shadow, this.parameters.theme, o);
|
|
503
1524
|
};
|
|
504
|
-
this.parameters.provider.storage.emitter.on("settings_change",
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
this.parameters.provider.storage.emitter.off("settings_change",
|
|
1525
|
+
this.parameters.provider.storage.emitter.on("settings_change", r);
|
|
1526
|
+
const n = globalThis.matchMedia("(prefers-color-scheme: dark)");
|
|
1527
|
+
n.addEventListener("change", r), this.themeCleanup = () => {
|
|
1528
|
+
this.parameters.provider.storage.emitter.off("settings_change", r), n.removeEventListener("change", r);
|
|
508
1529
|
};
|
|
509
1530
|
}
|
|
510
1531
|
showModal() {
|
|
@@ -519,26 +1540,26 @@ class We extends HTMLElement {
|
|
|
519
1540
|
}));
|
|
520
1541
|
}
|
|
521
1542
|
performRender() {
|
|
522
|
-
this.disposeRender?.(), this.disposeRender =
|
|
523
|
-
const
|
|
524
|
-
return
|
|
1543
|
+
this.disposeRender?.(), this.disposeRender = hn(() => {
|
|
1544
|
+
const r = this;
|
|
1545
|
+
return g(uo, W(() => r.parameters));
|
|
525
1546
|
}, this.shadow);
|
|
526
1547
|
}
|
|
527
1548
|
}
|
|
528
|
-
const
|
|
529
|
-
Or copy the link and paste it into your wallet.` },
|
|
530
|
-
common:
|
|
531
|
-
status:
|
|
532
|
-
settings:
|
|
533
|
-
start:
|
|
534
|
-
info:
|
|
535
|
-
disconnected:
|
|
536
|
-
connectionFlow:
|
|
537
|
-
handshake:
|
|
538
|
-
modal:
|
|
1549
|
+
const Xn = { close: "Close", yes: "Yes", no: "No", protocol: "Protocol" }, Qn = { connectedSuccessfully: "Connected Successfully!", connecting: "Connecting", ready: "Ready", handshakeClosed: "Handshake Closed", handshakePartial: "Handshake Partial", encrypted: "Encrypted", signalError: "Signal Error", disconnected: "Disconnected" }, Jn = { 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" }, Zn = { title: "Connect Wallet" }, Yn = { title: "What is openlv?", scanQrCode: "Scan QR Code", approveOnDevice: "Approve on device", youreConnected: "You're connected!" }, eo = { prompt: "Click the button below to start a connection", generateQr: "Generate QR", connectionSettings: "Connection settings" }, to = { 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." }, ro = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
|
|
1550
|
+
Or copy the link and paste it into your wallet.` }, no = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, oo = {
|
|
1551
|
+
common: Xn,
|
|
1552
|
+
status: Qn,
|
|
1553
|
+
settings: Jn,
|
|
1554
|
+
start: Zn,
|
|
1555
|
+
info: Yn,
|
|
1556
|
+
disconnected: eo,
|
|
1557
|
+
connectionFlow: to,
|
|
1558
|
+
handshake: ro,
|
|
1559
|
+
modal: no
|
|
539
1560
|
};
|
|
540
|
-
var
|
|
541
|
-
const
|
|
1561
|
+
var io = /* @__PURE__ */ m("<br>");
|
|
1562
|
+
const Pt = [{
|
|
542
1563
|
tag: "en",
|
|
543
1564
|
name: "English",
|
|
544
1565
|
nativeName: "English"
|
|
@@ -577,314 +1598,314 @@ const se = [{
|
|
|
577
1598
|
name: "Persian",
|
|
578
1599
|
nativeName: "فارسی",
|
|
579
1600
|
rtl: !0
|
|
580
|
-
}],
|
|
581
|
-
new Set(
|
|
582
|
-
const
|
|
1601
|
+
}], ao = (e) => Pt.find((r) => r.tag === e)?.rtl ?? !1;
|
|
1602
|
+
new Set(Pt.map((e) => e.tag));
|
|
1603
|
+
const Yt = (e) => {
|
|
583
1604
|
if (typeof navigator > "u") return 0;
|
|
584
|
-
const
|
|
585
|
-
for (let
|
|
586
|
-
const
|
|
587
|
-
if (
|
|
588
|
-
if (
|
|
589
|
-
const [o] =
|
|
590
|
-
if (o ===
|
|
1605
|
+
const t = navigator.languages || [navigator.language];
|
|
1606
|
+
for (let r = 0; r < t.length; r++) {
|
|
1607
|
+
const n = t[r].toLowerCase();
|
|
1608
|
+
if (n === e) return t.length - r + 1;
|
|
1609
|
+
if (n.startsWith(`${e}-`) || e.startsWith(`${n}-`)) return t.length - r;
|
|
1610
|
+
const [o] = n.split("-");
|
|
1611
|
+
if (o === e || e.startsWith(`${o}-`)) return t.length - r - 0.5;
|
|
591
1612
|
}
|
|
592
1613
|
return 0;
|
|
593
|
-
},
|
|
594
|
-
if (!
|
|
595
|
-
const
|
|
596
|
-
if (
|
|
597
|
-
let
|
|
598
|
-
for (const o of
|
|
599
|
-
if (typeof
|
|
600
|
-
|
|
1614
|
+
}, er = (e, t) => {
|
|
1615
|
+
if (!e) return;
|
|
1616
|
+
const r = t.split(".").filter(Boolean);
|
|
1617
|
+
if (r.length === 0) return;
|
|
1618
|
+
let n = e;
|
|
1619
|
+
for (const o of r) {
|
|
1620
|
+
if (typeof n != "object" || n === null) return;
|
|
1621
|
+
n = n[o];
|
|
601
1622
|
}
|
|
602
|
-
return
|
|
603
|
-
},
|
|
604
|
-
const o =
|
|
605
|
-
return o === void 0 ?
|
|
606
|
-
}) :
|
|
607
|
-
const
|
|
608
|
-
if (typeof
|
|
609
|
-
return
|
|
610
|
-
const
|
|
611
|
-
return typeof
|
|
612
|
-
},
|
|
1623
|
+
return n;
|
|
1624
|
+
}, tr = (e, t) => t ? e.replaceAll(/\{(\w+)\}/g, (r, n) => {
|
|
1625
|
+
const o = t[n];
|
|
1626
|
+
return o === void 0 ? r : String(o);
|
|
1627
|
+
}) : e, so = (e) => {
|
|
1628
|
+
const t = er(e.primary, e.key);
|
|
1629
|
+
if (typeof t == "string")
|
|
1630
|
+
return tr(t, e.params);
|
|
1631
|
+
const r = er(e.fallback, e.key);
|
|
1632
|
+
return typeof r == "string" ? tr(r, e.params) : e.key;
|
|
1633
|
+
}, Rr = hr(void 0), lo = async (e) => ke(e).with("en", () => Promise.resolve(void 0)).with("nl", async () => import("./nl-BRV9i3nM.js").then((t) => t.default)).with("es", async () => import("./es-C2sG0TfH.js").then((t) => t.default)).with("sv", async () => import("./sv-CEyo-XBk.js").then((t) => t.default)).with("fr", async () => import("./fr-BRQDr1rj.js").then((t) => t.default)).with("zh-cn", async () => import("./zh-cn-DJpfZdjA.js").then((t) => t.default)).with("ar", async () => import("./ar-CyZSQ56p.js").then((t) => t.default)).with("he", async () => import("./he-NFIsHMZP.js").then((t) => t.default)).with("fa", async () => import("./fa-_bXJQdwj.js").then((t) => t.default)).exhaustive(), co = (e) => {
|
|
613
1634
|
const {
|
|
614
|
-
provider:
|
|
615
|
-
} =
|
|
616
|
-
|
|
617
|
-
let
|
|
1635
|
+
provider: t
|
|
1636
|
+
} = Re(), r = t.storage.getSettings().language, [n, o] = D(r ?? "en"), [i, s] = D(void 0), [a, l] = D(!1);
|
|
1637
|
+
ee(() => {
|
|
1638
|
+
let v = !1;
|
|
618
1639
|
(async () => {
|
|
619
|
-
|
|
1640
|
+
l(!0);
|
|
620
1641
|
try {
|
|
621
|
-
const
|
|
622
|
-
if (
|
|
623
|
-
s(
|
|
1642
|
+
const w = await lo(n());
|
|
1643
|
+
if (v) return;
|
|
1644
|
+
s(w);
|
|
624
1645
|
} finally {
|
|
625
|
-
|
|
1646
|
+
v || l(!1);
|
|
626
1647
|
}
|
|
627
|
-
})(),
|
|
628
|
-
|
|
1648
|
+
})(), te(() => {
|
|
1649
|
+
v = !0;
|
|
629
1650
|
});
|
|
630
1651
|
});
|
|
631
|
-
const d = (
|
|
632
|
-
const
|
|
633
|
-
primary:
|
|
634
|
-
fallback:
|
|
635
|
-
key:
|
|
636
|
-
params:
|
|
637
|
-
}), p =
|
|
1652
|
+
const d = (v, b) => {
|
|
1653
|
+
const w = so({
|
|
1654
|
+
primary: i(),
|
|
1655
|
+
fallback: oo,
|
|
1656
|
+
key: v,
|
|
1657
|
+
params: b
|
|
1658
|
+
}), p = w.split(`
|
|
638
1659
|
`);
|
|
639
|
-
return p.length <= 1 ?
|
|
640
|
-
}, u =
|
|
641
|
-
languageTag:
|
|
642
|
-
setLanguageTag: (
|
|
643
|
-
o(
|
|
1660
|
+
return p.length <= 1 ? w : Ce(() => p.map((P, S) => [P, Ce(() => Ce(() => S < p.length - 1)() ? io() : null)]));
|
|
1661
|
+
}, u = $(() => ao(n())), h = {
|
|
1662
|
+
languageTag: n,
|
|
1663
|
+
setLanguageTag: (v) => {
|
|
1664
|
+
o(v);
|
|
644
1665
|
},
|
|
645
|
-
isLoadingLanguagePack:
|
|
1666
|
+
isLoadingLanguagePack: a,
|
|
646
1667
|
isRtl: u,
|
|
647
1668
|
t: d
|
|
648
1669
|
};
|
|
649
|
-
return
|
|
650
|
-
value:
|
|
1670
|
+
return g(Rr.Provider, {
|
|
1671
|
+
value: h,
|
|
651
1672
|
get children() {
|
|
652
|
-
return
|
|
1673
|
+
return e.children;
|
|
653
1674
|
}
|
|
654
1675
|
});
|
|
655
|
-
},
|
|
656
|
-
const
|
|
657
|
-
if (!
|
|
1676
|
+
}, X = () => {
|
|
1677
|
+
const e = vr(Rr);
|
|
1678
|
+
if (!e)
|
|
658
1679
|
throw new Error("TranslationProvider not found");
|
|
659
|
-
return
|
|
660
|
-
},
|
|
1680
|
+
return e;
|
|
1681
|
+
}, Pr = hr(void 0), uo = (e) => {
|
|
661
1682
|
const {
|
|
662
|
-
provider:
|
|
663
|
-
theme:
|
|
664
|
-
} =
|
|
665
|
-
return
|
|
1683
|
+
provider: t,
|
|
1684
|
+
theme: r
|
|
1685
|
+
} = e;
|
|
1686
|
+
return g(Pr.Provider, {
|
|
666
1687
|
value: {
|
|
667
|
-
provider:
|
|
668
|
-
themeConfig:
|
|
1688
|
+
provider: t,
|
|
1689
|
+
themeConfig: r
|
|
669
1690
|
},
|
|
670
1691
|
get children() {
|
|
671
|
-
return
|
|
1692
|
+
return g(co, {
|
|
672
1693
|
get children() {
|
|
673
|
-
return
|
|
1694
|
+
return g(xa, {
|
|
674
1695
|
get onClose() {
|
|
675
|
-
return
|
|
1696
|
+
return e.onClose;
|
|
676
1697
|
}
|
|
677
1698
|
});
|
|
678
1699
|
}
|
|
679
1700
|
});
|
|
680
1701
|
}
|
|
681
1702
|
});
|
|
682
|
-
},
|
|
683
|
-
const
|
|
684
|
-
if (!
|
|
685
|
-
return
|
|
686
|
-
},
|
|
687
|
-
const { provider:
|
|
688
|
-
console.log("session status",
|
|
689
|
-
const o = (
|
|
690
|
-
console.log("session state change",
|
|
1703
|
+
}, Re = () => {
|
|
1704
|
+
const e = vr(Pr);
|
|
1705
|
+
if (!e) throw new Error("Modal context not found");
|
|
1706
|
+
return e;
|
|
1707
|
+
}, Ke = () => {
|
|
1708
|
+
const { provider: e } = Re(), t = $(() => e.getSession(), void 0, { name: "session" }), [r, n] = D(t()?.getState());
|
|
1709
|
+
console.log("session status", r());
|
|
1710
|
+
const o = (a) => {
|
|
1711
|
+
console.log("session state change", a), n(a);
|
|
691
1712
|
};
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}),
|
|
695
|
-
|
|
1713
|
+
Et(() => {
|
|
1714
|
+
t()?.emitter.on("state_change", o);
|
|
1715
|
+
}), te(() => {
|
|
1716
|
+
t()?.emitter.off("state_change", o);
|
|
696
1717
|
});
|
|
697
|
-
const
|
|
1718
|
+
const i = $(() => t()?.getHandshakeParameters());
|
|
698
1719
|
return {
|
|
699
|
-
uri:
|
|
700
|
-
const
|
|
701
|
-
return
|
|
1720
|
+
uri: $(() => {
|
|
1721
|
+
const a = i();
|
|
1722
|
+
return a ? $n(a) : void 0;
|
|
702
1723
|
}),
|
|
703
|
-
status:
|
|
1724
|
+
status: r
|
|
704
1725
|
};
|
|
705
|
-
},
|
|
706
|
-
const { provider:
|
|
1726
|
+
}, go = () => {
|
|
1727
|
+
const { provider: e } = Re();
|
|
707
1728
|
return {
|
|
708
1729
|
start: () => {
|
|
709
|
-
const
|
|
710
|
-
if (!
|
|
1730
|
+
const t = e.storage.getSettings(), r = t?.signaling?.p, n = r ? t?.signaling?.s?.[r] : void 0;
|
|
1731
|
+
if (!r || !n)
|
|
711
1732
|
throw new Error("Invalid protocol or server");
|
|
712
|
-
return
|
|
713
|
-
p:
|
|
714
|
-
s:
|
|
1733
|
+
return e.createSession({
|
|
1734
|
+
p: r,
|
|
1735
|
+
s: n
|
|
715
1736
|
});
|
|
716
1737
|
}
|
|
717
1738
|
};
|
|
718
1739
|
};
|
|
719
|
-
var
|
|
720
|
-
const
|
|
1740
|
+
var fo = /* @__PURE__ */ 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:');
|
|
1741
|
+
const Tt = (e) => {
|
|
721
1742
|
const {
|
|
722
|
-
uri:
|
|
723
|
-
status:
|
|
724
|
-
} =
|
|
1743
|
+
uri: t,
|
|
1744
|
+
status: r
|
|
1745
|
+
} = Ke();
|
|
725
1746
|
return console.error("Unknown state:", {
|
|
726
|
-
state:
|
|
1747
|
+
state: e.state
|
|
727
1748
|
}), (() => {
|
|
728
|
-
var
|
|
1749
|
+
var n = fo(), o = n.firstChild;
|
|
729
1750
|
o.firstChild;
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
var s =
|
|
733
|
-
return s.firstChild,
|
|
1751
|
+
var i = o.nextSibling;
|
|
1752
|
+
i.firstChild;
|
|
1753
|
+
var s = i.nextSibling;
|
|
1754
|
+
return s.firstChild, f(o, () => JSON.stringify(e.state), null), f(i, t, null), f(s, () => JSON.stringify(r()), null), n;
|
|
734
1755
|
})();
|
|
735
|
-
},
|
|
736
|
-
if (!
|
|
1756
|
+
}, Br = async (e) => {
|
|
1757
|
+
if (!e) return !1;
|
|
737
1758
|
try {
|
|
738
1759
|
if (navigator?.clipboard?.writeText)
|
|
739
|
-
return await navigator.clipboard.writeText(
|
|
740
|
-
} catch (
|
|
741
|
-
console.error("Failed to copy to clipboard",
|
|
1760
|
+
return await navigator.clipboard.writeText(e), !0;
|
|
1761
|
+
} catch (t) {
|
|
1762
|
+
console.error("Failed to copy to clipboard", t);
|
|
742
1763
|
}
|
|
743
1764
|
try {
|
|
744
|
-
const
|
|
745
|
-
|
|
746
|
-
const
|
|
747
|
-
return
|
|
1765
|
+
const t = document.createElement("textarea");
|
|
1766
|
+
t.value = e, t.style.position = "fixed", t.style.left = "-999999px", t.style.top = "-999999px", document.body.append(t), t.focus(), t.select();
|
|
1767
|
+
const r = document.execCommand("copy");
|
|
1768
|
+
return t.remove(), r;
|
|
748
1769
|
} catch {
|
|
749
1770
|
return !1;
|
|
750
1771
|
}
|
|
751
1772
|
};
|
|
752
|
-
var
|
|
753
|
-
const
|
|
754
|
-
const
|
|
755
|
-
return
|
|
1773
|
+
var ho = /* @__PURE__ */ 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>'), vo = /* @__PURE__ */ 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)">');
|
|
1774
|
+
const po = (e) => {
|
|
1775
|
+
const t = Kr.default, r = t(0, "M");
|
|
1776
|
+
return r.addData(e), r.make(), r.createSvgTag({
|
|
756
1777
|
cellSize: 5,
|
|
757
1778
|
margin: 0,
|
|
758
1779
|
scalable: !0
|
|
759
1780
|
});
|
|
760
|
-
},
|
|
1781
|
+
}, bo = () => {
|
|
761
1782
|
const {
|
|
762
|
-
t
|
|
763
|
-
} =
|
|
764
|
-
uri:
|
|
765
|
-
} =
|
|
766
|
-
const
|
|
767
|
-
|
|
1783
|
+
t: e
|
|
1784
|
+
} = X(), {
|
|
1785
|
+
uri: t
|
|
1786
|
+
} = Ke(), r = () => {
|
|
1787
|
+
const n = t();
|
|
1788
|
+
n && Br(n);
|
|
768
1789
|
};
|
|
769
1790
|
return (() => {
|
|
770
|
-
var
|
|
771
|
-
return
|
|
1791
|
+
var n = ho(), o = n.firstChild, i = o.firstChild, s = i.firstChild, a = o.nextSibling, l = a.firstChild;
|
|
1792
|
+
return f(o, g(Se, {
|
|
772
1793
|
get when() {
|
|
773
|
-
return
|
|
1794
|
+
return t();
|
|
774
1795
|
},
|
|
775
1796
|
children: (d) => (() => {
|
|
776
|
-
var u =
|
|
777
|
-
return
|
|
778
|
-
var
|
|
779
|
-
return
|
|
1797
|
+
var u = vo(), c = u.firstChild;
|
|
1798
|
+
return c.$$click = r, F((h) => {
|
|
1799
|
+
var v = String(e("handshake.clickToCopyUrl")), b = po(d());
|
|
1800
|
+
return v !== h.e && Z(c, "title", h.e = v), b !== h.t && (c.innerHTML = h.t = b), h;
|
|
780
1801
|
}, {
|
|
781
1802
|
e: void 0,
|
|
782
1803
|
t: void 0
|
|
783
1804
|
}), u;
|
|
784
1805
|
})()
|
|
785
|
-
}),
|
|
1806
|
+
}), i), s.$$click = r, f(s, () => e("handshake.copyConnectionUrl")), f(l, () => e("handshake.scanCodeInstruction")), n;
|
|
786
1807
|
})();
|
|
787
1808
|
};
|
|
788
|
-
|
|
789
|
-
var
|
|
790
|
-
const
|
|
1809
|
+
be(["click"]);
|
|
1810
|
+
var mo = /* @__PURE__ */ 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">'), rr = /* @__PURE__ */ 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">'), yo = /* @__PURE__ */ m("<div>");
|
|
1811
|
+
const nr = () => mo(), wo = () => {
|
|
791
1812
|
const {
|
|
792
|
-
status:
|
|
793
|
-
} =
|
|
794
|
-
t
|
|
795
|
-
} =
|
|
1813
|
+
status: e
|
|
1814
|
+
} = Ke(), {
|
|
1815
|
+
t
|
|
1816
|
+
} = X();
|
|
796
1817
|
return (() => {
|
|
797
|
-
var
|
|
798
|
-
return
|
|
1818
|
+
var r = yo();
|
|
1819
|
+
return f(r, g(Cr, {
|
|
799
1820
|
get children() {
|
|
800
|
-
return [
|
|
1821
|
+
return [g(xe, {
|
|
801
1822
|
get when() {
|
|
802
|
-
return [
|
|
1823
|
+
return [Qe.CREATED, Qe.SIGNALING].includes(e()?.status ?? "");
|
|
803
1824
|
},
|
|
804
1825
|
get children() {
|
|
805
|
-
var
|
|
806
|
-
return
|
|
1826
|
+
var n = rr(), o = n.firstChild, i = o.firstChild, s = i.nextSibling;
|
|
1827
|
+
return f(n, g(nr, {}), o), f(i, () => t("connectionFlow.connecting")), f(s, () => t("connectionFlow.waitingForNetwork")), n;
|
|
807
1828
|
}
|
|
808
|
-
}),
|
|
1829
|
+
}), g(xe, {
|
|
809
1830
|
get when() {
|
|
810
|
-
return
|
|
1831
|
+
return e()?.status === Qe.READY;
|
|
811
1832
|
},
|
|
812
1833
|
get children() {
|
|
813
|
-
return
|
|
1834
|
+
return g(bo, {});
|
|
814
1835
|
}
|
|
815
|
-
}),
|
|
1836
|
+
}), g(xe, {
|
|
816
1837
|
get when() {
|
|
817
|
-
return
|
|
1838
|
+
return e()?.status === Qe.LINKING;
|
|
818
1839
|
},
|
|
819
1840
|
get children() {
|
|
820
|
-
var
|
|
821
|
-
return
|
|
1841
|
+
var n = rr(), o = n.firstChild, i = o.firstChild, s = i.nextSibling;
|
|
1842
|
+
return f(n, g(nr, {}), o), f(i, () => t("connectionFlow.establishingConnection")), f(s, () => t("connectionFlow.mayTakeFewSeconds")), n;
|
|
822
1843
|
}
|
|
823
1844
|
})];
|
|
824
1845
|
}
|
|
825
|
-
})),
|
|
1846
|
+
})), r;
|
|
826
1847
|
})();
|
|
827
1848
|
};
|
|
828
|
-
var
|
|
829
|
-
const
|
|
1849
|
+
var xo = /* @__PURE__ */ 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">'), ko = /* @__PURE__ */ 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">'), Co = /* @__PURE__ */ 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">'), So = /* @__PURE__ */ 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)">'), Ao = /* @__PURE__ */ m("<div class=w-full style=view-transition-name:connection-flow>");
|
|
1850
|
+
const $o = () => xo(), To = (e) => {
|
|
830
1851
|
const {
|
|
831
|
-
t
|
|
832
|
-
} =
|
|
833
|
-
provider:
|
|
834
|
-
} =
|
|
835
|
-
return
|
|
836
|
-
|
|
837
|
-
}),
|
|
838
|
-
|
|
1852
|
+
t
|
|
1853
|
+
} = X(), {
|
|
1854
|
+
provider: r
|
|
1855
|
+
} = Re(), [n, o] = D(r.getState().status);
|
|
1856
|
+
return Et(() => {
|
|
1857
|
+
r.on("status_change", o);
|
|
1858
|
+
}), te(() => {
|
|
1859
|
+
r.off("status_change", o);
|
|
839
1860
|
}), (() => {
|
|
840
|
-
var
|
|
841
|
-
return
|
|
1861
|
+
var i = Ao();
|
|
1862
|
+
return f(i, g(Cr, {
|
|
842
1863
|
get fallback() {
|
|
843
|
-
return
|
|
1864
|
+
return g(Tt, {
|
|
844
1865
|
get state() {
|
|
845
|
-
return
|
|
1866
|
+
return n();
|
|
846
1867
|
}
|
|
847
1868
|
});
|
|
848
1869
|
},
|
|
849
1870
|
get children() {
|
|
850
|
-
return [
|
|
1871
|
+
return [g(xe, {
|
|
851
1872
|
get when() {
|
|
852
|
-
return
|
|
1873
|
+
return n() === oe.CREATING;
|
|
853
1874
|
},
|
|
854
1875
|
get children() {
|
|
855
|
-
var s =
|
|
856
|
-
return
|
|
1876
|
+
var s = ko(), a = s.firstChild, l = a.firstChild, d = l.nextSibling;
|
|
1877
|
+
return f(s, g($o, {}), a), f(l, () => t("connectionFlow.preparingConnection")), f(d, () => t("connectionFlow.generatingKeys")), s;
|
|
857
1878
|
}
|
|
858
|
-
}),
|
|
1879
|
+
}), g(xe, {
|
|
859
1880
|
get when() {
|
|
860
|
-
return
|
|
1881
|
+
return n() === oe.CONNECTING;
|
|
861
1882
|
},
|
|
862
1883
|
get children() {
|
|
863
|
-
return
|
|
1884
|
+
return g(wo, {});
|
|
864
1885
|
}
|
|
865
|
-
}),
|
|
1886
|
+
}), g(xe, {
|
|
866
1887
|
get when() {
|
|
867
|
-
return
|
|
1888
|
+
return n() === oe.CONNECTED;
|
|
868
1889
|
},
|
|
869
1890
|
get children() {
|
|
870
|
-
var s =
|
|
871
|
-
return
|
|
1891
|
+
var s = Co(), a = s.firstChild, l = a.firstChild, d = l.nextSibling, u = d.nextSibling;
|
|
1892
|
+
return f(d, () => t("connectionFlow.connectedSuccessfully")), f(u, () => t("connectionFlow.walletConnectedReady")), s;
|
|
872
1893
|
}
|
|
873
|
-
}),
|
|
1894
|
+
}), g(xe, {
|
|
874
1895
|
get when() {
|
|
875
|
-
return
|
|
1896
|
+
return n() === oe.ERROR;
|
|
876
1897
|
},
|
|
877
1898
|
get children() {
|
|
878
|
-
var s =
|
|
879
|
-
return
|
|
1899
|
+
var s = So(), a = s.firstChild, l = a.firstChild, d = l.nextSibling, u = d.nextSibling, c = a.nextSibling;
|
|
1900
|
+
return f(d, () => t("connectionFlow.disconnected")), f(u, () => t("connectionFlow.connectionClosed")), dt(c, "click", e.onClose, !0), f(c, () => t("common.close")), s;
|
|
880
1901
|
}
|
|
881
1902
|
})];
|
|
882
1903
|
}
|
|
883
|
-
})),
|
|
1904
|
+
})), i;
|
|
884
1905
|
})();
|
|
885
1906
|
};
|
|
886
|
-
|
|
887
|
-
var
|
|
1907
|
+
be(["click"]);
|
|
1908
|
+
var _o = {
|
|
888
1909
|
xmlns: "http://www.w3.org/2000/svg",
|
|
889
1910
|
width: 24,
|
|
890
1911
|
height: 24,
|
|
@@ -894,59 +1915,59 @@ var un = {
|
|
|
894
1915
|
"stroke-width": 2,
|
|
895
1916
|
"stroke-linecap": "round",
|
|
896
1917
|
"stroke-linejoin": "round"
|
|
897
|
-
},
|
|
898
|
-
for (const
|
|
899
|
-
if (
|
|
1918
|
+
}, Ee = _o, No = /* @__PURE__ */ m("<svg>"), Eo = (e) => {
|
|
1919
|
+
for (const t in e)
|
|
1920
|
+
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
900
1921
|
return !0;
|
|
901
1922
|
return !1;
|
|
902
|
-
},
|
|
903
|
-
const
|
|
904
|
-
return
|
|
905
|
-
},
|
|
906
|
-
const [
|
|
1923
|
+
}, Oo = (...e) => e.filter((t, r, n) => !!t && t.trim() !== "" && n.indexOf(t) === r).join(" ").trim(), Ro = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (t, r, n) => n ? n.toUpperCase() : r.toLowerCase()), or = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Po = (e) => {
|
|
1924
|
+
const t = Ro(e);
|
|
1925
|
+
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
1926
|
+
}, Bo = (e) => {
|
|
1927
|
+
const [t, r] = ct(e, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
|
|
907
1928
|
return (() => {
|
|
908
|
-
var
|
|
909
|
-
return
|
|
1929
|
+
var n = No();
|
|
1930
|
+
return ot(n, W(Ee, {
|
|
910
1931
|
get width() {
|
|
911
|
-
return
|
|
1932
|
+
return t.size ?? Ee.width;
|
|
912
1933
|
},
|
|
913
1934
|
get height() {
|
|
914
|
-
return
|
|
1935
|
+
return t.size ?? Ee.height;
|
|
915
1936
|
},
|
|
916
1937
|
get stroke() {
|
|
917
|
-
return
|
|
1938
|
+
return t.color ?? Ee.stroke;
|
|
918
1939
|
},
|
|
919
1940
|
get "stroke-width"() {
|
|
920
|
-
return
|
|
1941
|
+
return Ce(() => !!t.absoluteStrokeWidth)() ? Number(t.strokeWidth ?? Ee["stroke-width"]) * 24 / Number(t.size) : Number(t.strokeWidth ?? Ee["stroke-width"]);
|
|
921
1942
|
},
|
|
922
1943
|
get class() {
|
|
923
|
-
return
|
|
1944
|
+
return Oo("lucide", "lucide-icon", ...t.name != null ? [`lucide-${or(Po(t.name))}`, `lucide-${or(t.name)}`] : [], t.class != null ? t.class : "");
|
|
924
1945
|
},
|
|
925
1946
|
get "aria-hidden"() {
|
|
926
|
-
return !
|
|
1947
|
+
return !t.children && !Eo(r) ? "true" : void 0;
|
|
927
1948
|
}
|
|
928
|
-
},
|
|
1949
|
+
}, r), !0, !0), f(n, g(ve, {
|
|
929
1950
|
get each() {
|
|
930
|
-
return
|
|
1951
|
+
return t.iconNode;
|
|
931
1952
|
},
|
|
932
|
-
children: ([o,
|
|
1953
|
+
children: ([o, i]) => g(Sn, W({
|
|
933
1954
|
component: o
|
|
934
|
-
},
|
|
935
|
-
})),
|
|
1955
|
+
}, i))
|
|
1956
|
+
})), n;
|
|
936
1957
|
})();
|
|
937
|
-
},
|
|
1958
|
+
}, me = Bo, Lo = [["path", {
|
|
938
1959
|
d: "m15 18-6-6 6-6",
|
|
939
1960
|
key: "1wnfg3"
|
|
940
|
-
}]],
|
|
941
|
-
iconNode:
|
|
1961
|
+
}]], Mo = (e) => g(me, W(e, {
|
|
1962
|
+
iconNode: Lo,
|
|
942
1963
|
name: "chevron-left"
|
|
943
|
-
})),
|
|
1964
|
+
})), jo = Mo, Do = [["path", {
|
|
944
1965
|
d: "m9 18 6-6-6-6",
|
|
945
1966
|
key: "mthhwq"
|
|
946
|
-
}]],
|
|
947
|
-
iconNode:
|
|
1967
|
+
}]], Vo = (e) => g(me, W(e, {
|
|
1968
|
+
iconNode: Do,
|
|
948
1969
|
name: "chevron-right"
|
|
949
|
-
})),
|
|
1970
|
+
})), Fo = Vo, Io = [["circle", {
|
|
950
1971
|
cx: "12",
|
|
951
1972
|
cy: "12",
|
|
952
1973
|
r: "10",
|
|
@@ -957,19 +1978,19 @@ var un = {
|
|
|
957
1978
|
}], ["path", {
|
|
958
1979
|
d: "M12 17h.01",
|
|
959
1980
|
key: "p32p05"
|
|
960
|
-
}]],
|
|
961
|
-
iconNode:
|
|
1981
|
+
}]], zo = (e) => g(me, W(e, {
|
|
1982
|
+
iconNode: Io,
|
|
962
1983
|
name: "circle-question-mark"
|
|
963
|
-
})),
|
|
1984
|
+
})), Lr = zo, Uo = [["path", {
|
|
964
1985
|
d: "M5 12h14",
|
|
965
1986
|
key: "1ays0h"
|
|
966
1987
|
}], ["path", {
|
|
967
1988
|
d: "M12 5v14",
|
|
968
1989
|
key: "s699le"
|
|
969
|
-
}]],
|
|
970
|
-
iconNode:
|
|
1990
|
+
}]], Ko = (e) => g(me, W(e, {
|
|
1991
|
+
iconNode: Uo,
|
|
971
1992
|
name: "plus"
|
|
972
|
-
})),
|
|
1993
|
+
})), Go = Ko, Wo = [["rect", {
|
|
973
1994
|
width: "5",
|
|
974
1995
|
height: "5",
|
|
975
1996
|
x: "3",
|
|
@@ -1017,10 +2038,10 @@ var un = {
|
|
|
1017
2038
|
}], ["path", {
|
|
1018
2039
|
d: "M12 21v-1",
|
|
1019
2040
|
key: "1880an"
|
|
1020
|
-
}]],
|
|
1021
|
-
iconNode:
|
|
2041
|
+
}]], Ho = (e) => g(me, W(e, {
|
|
2042
|
+
iconNode: Wo,
|
|
1022
2043
|
name: "qr-code"
|
|
1023
|
-
})),
|
|
2044
|
+
})), qo = Ho, Xo = [["path", {
|
|
1024
2045
|
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",
|
|
1025
2046
|
key: "1i5ecw"
|
|
1026
2047
|
}], ["circle", {
|
|
@@ -1028,10 +2049,10 @@ var un = {
|
|
|
1028
2049
|
cy: "12",
|
|
1029
2050
|
r: "3",
|
|
1030
2051
|
key: "1v7zrd"
|
|
1031
|
-
}]],
|
|
1032
|
-
iconNode:
|
|
2052
|
+
}]], Qo = (e) => g(me, W(e, {
|
|
2053
|
+
iconNode: Xo,
|
|
1033
2054
|
name: "settings"
|
|
1034
|
-
})),
|
|
2055
|
+
})), Jo = Qo, Zo = [["path", {
|
|
1035
2056
|
d: "M10 11v6",
|
|
1036
2057
|
key: "nco0om"
|
|
1037
2058
|
}], ["path", {
|
|
@@ -1046,293 +2067,293 @@ var un = {
|
|
|
1046
2067
|
}], ["path", {
|
|
1047
2068
|
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
1048
2069
|
key: "e791ji"
|
|
1049
|
-
}]],
|
|
1050
|
-
iconNode:
|
|
2070
|
+
}]], Yo = (e) => g(me, W(e, {
|
|
2071
|
+
iconNode: Zo,
|
|
1051
2072
|
name: "trash-2"
|
|
1052
|
-
})),
|
|
2073
|
+
})), ei = Yo, ti = [["path", {
|
|
1053
2074
|
d: "M18 6 6 18",
|
|
1054
2075
|
key: "1bl5f8"
|
|
1055
2076
|
}], ["path", {
|
|
1056
2077
|
d: "m6 6 12 12",
|
|
1057
2078
|
key: "d8bk6v"
|
|
1058
|
-
}]],
|
|
1059
|
-
iconNode:
|
|
2079
|
+
}]], ri = (e) => g(me, W(e, {
|
|
2080
|
+
iconNode: ti,
|
|
1060
2081
|
name: "x"
|
|
1061
|
-
})),
|
|
1062
|
-
const
|
|
1063
|
-
if (!
|
|
1064
|
-
if (Array.isArray(
|
|
1065
|
-
for (let
|
|
2082
|
+
})), ni = ri, oi = /\s+/g, ii = (e) => typeof e != "string" || !e ? e : e.replace(oi, " ").trim(), st = (...e) => {
|
|
2083
|
+
const t = [], r = (n) => {
|
|
2084
|
+
if (!n && n !== 0 && n !== 0n) return;
|
|
2085
|
+
if (Array.isArray(n)) {
|
|
2086
|
+
for (let i = 0, s = n.length; i < s; i++) r(n[i]);
|
|
1066
2087
|
return;
|
|
1067
2088
|
}
|
|
1068
|
-
const o = typeof
|
|
2089
|
+
const o = typeof n;
|
|
1069
2090
|
if (o === "string" || o === "number" || o === "bigint") {
|
|
1070
|
-
if (o === "number" &&
|
|
1071
|
-
|
|
2091
|
+
if (o === "number" && n !== n) return;
|
|
2092
|
+
t.push(String(n));
|
|
1072
2093
|
} else if (o === "object") {
|
|
1073
|
-
const
|
|
1074
|
-
for (let s = 0,
|
|
1075
|
-
const
|
|
1076
|
-
|
|
2094
|
+
const i = Object.keys(n);
|
|
2095
|
+
for (let s = 0, a = i.length; s < a; s++) {
|
|
2096
|
+
const l = i[s];
|
|
2097
|
+
n[l] && t.push(l);
|
|
1077
2098
|
}
|
|
1078
2099
|
}
|
|
1079
2100
|
};
|
|
1080
|
-
for (let
|
|
1081
|
-
const
|
|
1082
|
-
|
|
1083
|
-
}
|
|
1084
|
-
return
|
|
1085
|
-
},
|
|
1086
|
-
if (!
|
|
1087
|
-
for (const
|
|
2101
|
+
for (let n = 0, o = e.length; n < o; n++) {
|
|
2102
|
+
const i = e[n];
|
|
2103
|
+
i != null && r(i);
|
|
2104
|
+
}
|
|
2105
|
+
return t.length > 0 ? ii(t.join(" ")) : void 0;
|
|
2106
|
+
}, ir = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, J = (e) => {
|
|
2107
|
+
if (!e || typeof e != "object") return !0;
|
|
2108
|
+
for (const t in e) return !1;
|
|
1088
2109
|
return !0;
|
|
1089
|
-
},
|
|
1090
|
-
if (
|
|
1091
|
-
if (!
|
|
1092
|
-
const
|
|
1093
|
-
if (
|
|
1094
|
-
for (let o = 0; o <
|
|
1095
|
-
const
|
|
1096
|
-
if (!
|
|
2110
|
+
}, ai = (e, t) => {
|
|
2111
|
+
if (e === t) return !0;
|
|
2112
|
+
if (!e || !t) return !1;
|
|
2113
|
+
const r = Object.keys(e), n = Object.keys(t);
|
|
2114
|
+
if (r.length !== n.length) return !1;
|
|
2115
|
+
for (let o = 0; o < r.length; o++) {
|
|
2116
|
+
const i = r[o];
|
|
2117
|
+
if (!n.includes(i) || e[i] !== t[i]) return !1;
|
|
1097
2118
|
}
|
|
1098
2119
|
return !0;
|
|
1099
|
-
},
|
|
1100
|
-
for (const
|
|
1101
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1102
|
-
const
|
|
1103
|
-
|
|
2120
|
+
}, si = (e, t) => {
|
|
2121
|
+
for (const r in t)
|
|
2122
|
+
if (Object.prototype.hasOwnProperty.call(t, r)) {
|
|
2123
|
+
const n = t[r];
|
|
2124
|
+
r in e ? e[r] = st(e[r], n) : e[r] = n;
|
|
1104
2125
|
}
|
|
1105
|
-
return
|
|
1106
|
-
},
|
|
1107
|
-
for (let
|
|
1108
|
-
const
|
|
1109
|
-
Array.isArray(
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
const
|
|
1115
|
-
for (let
|
|
1116
|
-
|
|
1117
|
-
return
|
|
1118
|
-
},
|
|
1119
|
-
const
|
|
1120
|
-
for (const
|
|
1121
|
-
const o =
|
|
1122
|
-
if (
|
|
1123
|
-
const
|
|
1124
|
-
Array.isArray(o) || Array.isArray(
|
|
2126
|
+
return e;
|
|
2127
|
+
}, Mr = (e, t) => {
|
|
2128
|
+
for (let r = 0; r < e.length; r++) {
|
|
2129
|
+
const n = e[r];
|
|
2130
|
+
Array.isArray(n) ? Mr(n, t) : n && t.push(n);
|
|
2131
|
+
}
|
|
2132
|
+
}, jr = (...e) => {
|
|
2133
|
+
const t = [];
|
|
2134
|
+
Mr(e, t);
|
|
2135
|
+
const r = [];
|
|
2136
|
+
for (let n = 0; n < t.length; n++)
|
|
2137
|
+
t[n] && r.push(t[n]);
|
|
2138
|
+
return r;
|
|
2139
|
+
}, _t = (e, t) => {
|
|
2140
|
+
const r = {};
|
|
2141
|
+
for (const n in e) {
|
|
2142
|
+
const o = e[n];
|
|
2143
|
+
if (n in t) {
|
|
2144
|
+
const i = t[n];
|
|
2145
|
+
Array.isArray(o) || Array.isArray(i) ? r[n] = jr(i, o) : typeof o == "object" && typeof i == "object" && o && i ? r[n] = _t(o, i) : r[n] = i + " " + o;
|
|
1125
2146
|
} else
|
|
1126
|
-
n
|
|
2147
|
+
r[n] = o;
|
|
1127
2148
|
}
|
|
1128
|
-
for (const
|
|
1129
|
-
|
|
1130
|
-
return
|
|
1131
|
-
},
|
|
2149
|
+
for (const n in t)
|
|
2150
|
+
n in e || (r[n] = t[n]);
|
|
2151
|
+
return r;
|
|
2152
|
+
}, li = {
|
|
1132
2153
|
twMerge: !0,
|
|
1133
2154
|
twMergeConfig: {}
|
|
1134
2155
|
};
|
|
1135
|
-
function
|
|
1136
|
-
let
|
|
2156
|
+
function ci() {
|
|
2157
|
+
let e = null, t = {}, r = !1;
|
|
1137
2158
|
return {
|
|
1138
2159
|
get cachedTwMerge() {
|
|
1139
|
-
return
|
|
2160
|
+
return e;
|
|
1140
2161
|
},
|
|
1141
|
-
set cachedTwMerge(
|
|
1142
|
-
|
|
2162
|
+
set cachedTwMerge(n) {
|
|
2163
|
+
e = n;
|
|
1143
2164
|
},
|
|
1144
2165
|
get cachedTwMergeConfig() {
|
|
1145
|
-
return
|
|
2166
|
+
return t;
|
|
1146
2167
|
},
|
|
1147
|
-
set cachedTwMergeConfig(
|
|
1148
|
-
|
|
2168
|
+
set cachedTwMergeConfig(n) {
|
|
2169
|
+
t = n;
|
|
1149
2170
|
},
|
|
1150
2171
|
get didTwMergeConfigChange() {
|
|
1151
|
-
return
|
|
2172
|
+
return r;
|
|
1152
2173
|
},
|
|
1153
|
-
set didTwMergeConfigChange(
|
|
1154
|
-
|
|
2174
|
+
set didTwMergeConfigChange(n) {
|
|
2175
|
+
r = n;
|
|
1155
2176
|
},
|
|
1156
2177
|
reset() {
|
|
1157
|
-
|
|
2178
|
+
e = null, t = {}, r = !1;
|
|
1158
2179
|
}
|
|
1159
2180
|
};
|
|
1160
2181
|
}
|
|
1161
|
-
var
|
|
1162
|
-
const
|
|
2182
|
+
var mt = ci(), di = (e) => {
|
|
2183
|
+
const t = (n, o) => {
|
|
1163
2184
|
const {
|
|
1164
|
-
extend:
|
|
2185
|
+
extend: i = null,
|
|
1165
2186
|
slots: s = {},
|
|
1166
|
-
variants:
|
|
1167
|
-
compoundVariants:
|
|
2187
|
+
variants: a = {},
|
|
2188
|
+
compoundVariants: l = [],
|
|
1168
2189
|
compoundSlots: d = [],
|
|
1169
2190
|
defaultVariants: u = {}
|
|
1170
|
-
} =
|
|
1171
|
-
!
|
|
1172
|
-
const
|
|
2191
|
+
} = n, c = { ...li, ...o }, h = i?.base ? st(i.base, n?.base) : n?.base, v = i?.variants && !J(i.variants) ? _t(a, i.variants) : a, b = i?.defaultVariants && !J(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
|
|
2192
|
+
!J(c.twMergeConfig) && !ai(c.twMergeConfig, mt.cachedTwMergeConfig) && (mt.didTwMergeConfigChange = !0, mt.cachedTwMergeConfig = c.twMergeConfig);
|
|
2193
|
+
const w = J(i?.slots), p = J(s) ? {} : {
|
|
1173
2194
|
// add "base" to the slots object
|
|
1174
|
-
base:
|
|
2195
|
+
base: st(n?.base, w && i?.base),
|
|
1175
2196
|
...s
|
|
1176
|
-
},
|
|
1177
|
-
{ ...
|
|
1178
|
-
|
|
1179
|
-
),
|
|
1180
|
-
if (
|
|
1181
|
-
return
|
|
1182
|
-
if (
|
|
2197
|
+
}, P = w ? p : si(
|
|
2198
|
+
{ ...i?.slots },
|
|
2199
|
+
J(p) ? { base: n?.base } : p
|
|
2200
|
+
), S = J(i?.compoundVariants) ? l : jr(i?.compoundVariants, l), y = (E) => {
|
|
2201
|
+
if (J(v) && J(s) && w)
|
|
2202
|
+
return e(h, E?.class, E?.className)(c);
|
|
2203
|
+
if (S && !Array.isArray(S))
|
|
1183
2204
|
throw new TypeError(
|
|
1184
|
-
`The "compoundVariants" prop must be an array. Received: ${typeof
|
|
2205
|
+
`The "compoundVariants" prop must be an array. Received: ${typeof S}`
|
|
1185
2206
|
);
|
|
1186
2207
|
if (d && !Array.isArray(d))
|
|
1187
2208
|
throw new TypeError(
|
|
1188
2209
|
`The "compoundSlots" prop must be an array. Received: ${typeof d}`
|
|
1189
2210
|
);
|
|
1190
|
-
const
|
|
1191
|
-
const
|
|
1192
|
-
if (!
|
|
2211
|
+
const Ae = (k, C = v, A = null, O = null) => {
|
|
2212
|
+
const T = C[k];
|
|
2213
|
+
if (!T || J(T))
|
|
1193
2214
|
return null;
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
const
|
|
1197
|
-
if (typeof
|
|
2215
|
+
const B = O?.[k] ?? E?.[k];
|
|
2216
|
+
if (B === null) return null;
|
|
2217
|
+
const H = ir(B);
|
|
2218
|
+
if (typeof H == "object")
|
|
1198
2219
|
return null;
|
|
1199
|
-
const
|
|
1200
|
-
return
|
|
1201
|
-
},
|
|
1202
|
-
if (!
|
|
1203
|
-
const
|
|
1204
|
-
for (let
|
|
1205
|
-
const
|
|
1206
|
-
|
|
2220
|
+
const ie = b?.[k], U = H ?? ir(ie);
|
|
2221
|
+
return T[U || "false"];
|
|
2222
|
+
}, $e = () => {
|
|
2223
|
+
if (!v) return null;
|
|
2224
|
+
const k = Object.keys(v), C = [];
|
|
2225
|
+
for (let A = 0; A < k.length; A++) {
|
|
2226
|
+
const O = Ae(k[A], v);
|
|
2227
|
+
O && C.push(O);
|
|
1207
2228
|
}
|
|
1208
|
-
return
|
|
1209
|
-
},
|
|
1210
|
-
if (!
|
|
1211
|
-
const
|
|
1212
|
-
for (const
|
|
1213
|
-
const
|
|
1214
|
-
|
|
2229
|
+
return C;
|
|
2230
|
+
}, ft = (k, C) => {
|
|
2231
|
+
if (!v || typeof v != "object") return null;
|
|
2232
|
+
const A = [];
|
|
2233
|
+
for (const O in v) {
|
|
2234
|
+
const T = Ae(O, v, k, C), B = k === "base" && typeof T == "string" ? T : T && T[k];
|
|
2235
|
+
B && A.push(B);
|
|
1215
2236
|
}
|
|
1216
|
-
return
|
|
1217
|
-
},
|
|
1218
|
-
for (const
|
|
1219
|
-
const
|
|
1220
|
-
|
|
2237
|
+
return A;
|
|
2238
|
+
}, We = {};
|
|
2239
|
+
for (const k in E) {
|
|
2240
|
+
const C = E[k];
|
|
2241
|
+
C !== void 0 && (We[k] = C);
|
|
1221
2242
|
}
|
|
1222
|
-
const
|
|
1223
|
-
const
|
|
1224
|
-
[
|
|
2243
|
+
const Pe = (k, C) => {
|
|
2244
|
+
const A = typeof E?.[k] == "object" ? {
|
|
2245
|
+
[k]: E[k]?.initial
|
|
1225
2246
|
} : {};
|
|
1226
2247
|
return {
|
|
1227
|
-
...
|
|
1228
|
-
...
|
|
1229
|
-
...
|
|
1230
|
-
...
|
|
2248
|
+
...b,
|
|
2249
|
+
...We,
|
|
2250
|
+
...A,
|
|
2251
|
+
...C
|
|
1231
2252
|
};
|
|
1232
|
-
},
|
|
1233
|
-
const
|
|
1234
|
-
for (let
|
|
1235
|
-
const { class:
|
|
1236
|
-
let
|
|
1237
|
-
const
|
|
1238
|
-
for (const
|
|
1239
|
-
const
|
|
1240
|
-
if (Array.isArray(
|
|
1241
|
-
if (!
|
|
1242
|
-
|
|
2253
|
+
}, He = (k = [], C) => {
|
|
2254
|
+
const A = [], O = k.length;
|
|
2255
|
+
for (let T = 0; T < O; T++) {
|
|
2256
|
+
const { class: B, className: H, ...ie } = k[T];
|
|
2257
|
+
let U = !0;
|
|
2258
|
+
const re = Pe(null, C);
|
|
2259
|
+
for (const ce in ie) {
|
|
2260
|
+
const ne = ie[ce], Te = re[ce];
|
|
2261
|
+
if (Array.isArray(ne)) {
|
|
2262
|
+
if (!ne.includes(Te)) {
|
|
2263
|
+
U = !1;
|
|
1243
2264
|
break;
|
|
1244
2265
|
}
|
|
1245
2266
|
} else {
|
|
1246
|
-
if ((
|
|
2267
|
+
if ((ne == null || ne === !1) && (Te == null || Te === !1))
|
|
1247
2268
|
continue;
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
2269
|
+
if (Te !== ne) {
|
|
2270
|
+
U = !1;
|
|
1250
2271
|
break;
|
|
1251
2272
|
}
|
|
1252
2273
|
}
|
|
1253
2274
|
}
|
|
1254
|
-
|
|
2275
|
+
U && (B && A.push(B), H && A.push(H));
|
|
1255
2276
|
}
|
|
1256
|
-
return
|
|
1257
|
-
},
|
|
1258
|
-
const
|
|
1259
|
-
if (!Array.isArray(
|
|
1260
|
-
const
|
|
1261
|
-
for (let
|
|
1262
|
-
const
|
|
1263
|
-
if (typeof
|
|
1264
|
-
|
|
1265
|
-
else if (typeof
|
|
1266
|
-
for (const
|
|
1267
|
-
|
|
2277
|
+
return A;
|
|
2278
|
+
}, qe = (k) => {
|
|
2279
|
+
const C = He(S, k);
|
|
2280
|
+
if (!Array.isArray(C)) return C;
|
|
2281
|
+
const A = {}, O = e;
|
|
2282
|
+
for (let T = 0; T < C.length; T++) {
|
|
2283
|
+
const B = C[T];
|
|
2284
|
+
if (typeof B == "string")
|
|
2285
|
+
A.base = O(A.base, B)(c);
|
|
2286
|
+
else if (typeof B == "object")
|
|
2287
|
+
for (const H in B)
|
|
2288
|
+
A[H] = O(A[H], B[H])(c);
|
|
1268
2289
|
}
|
|
1269
|
-
return
|
|
1270
|
-
},
|
|
2290
|
+
return A;
|
|
2291
|
+
}, ye = (k) => {
|
|
1271
2292
|
if (d.length < 1) return null;
|
|
1272
|
-
const
|
|
1273
|
-
for (let
|
|
2293
|
+
const C = {}, A = Pe(null, k);
|
|
2294
|
+
for (let O = 0; O < d.length; O++) {
|
|
1274
2295
|
const {
|
|
1275
|
-
slots:
|
|
1276
|
-
class:
|
|
1277
|
-
className:
|
|
1278
|
-
...
|
|
1279
|
-
} = d[
|
|
1280
|
-
if (!
|
|
1281
|
-
let
|
|
1282
|
-
for (const
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1285
|
-
|
|
2296
|
+
slots: T = [],
|
|
2297
|
+
class: B,
|
|
2298
|
+
className: H,
|
|
2299
|
+
...ie
|
|
2300
|
+
} = d[O];
|
|
2301
|
+
if (!J(ie)) {
|
|
2302
|
+
let U = !0;
|
|
2303
|
+
for (const re in ie) {
|
|
2304
|
+
const ce = A[re], ne = ie[re];
|
|
2305
|
+
if (ce === void 0 || (Array.isArray(ne) ? !ne.includes(ce) : ne !== ce)) {
|
|
2306
|
+
U = !1;
|
|
1286
2307
|
break;
|
|
1287
2308
|
}
|
|
1288
2309
|
}
|
|
1289
|
-
if (!
|
|
2310
|
+
if (!U) continue;
|
|
1290
2311
|
}
|
|
1291
|
-
for (let
|
|
1292
|
-
const
|
|
1293
|
-
|
|
2312
|
+
for (let U = 0; U < T.length; U++) {
|
|
2313
|
+
const re = T[U];
|
|
2314
|
+
C[re] || (C[re] = []), C[re].push([B, H]);
|
|
1294
2315
|
}
|
|
1295
2316
|
}
|
|
1296
|
-
return
|
|
2317
|
+
return C;
|
|
1297
2318
|
};
|
|
1298
|
-
if (!
|
|
1299
|
-
const
|
|
1300
|
-
if (typeof
|
|
1301
|
-
const
|
|
1302
|
-
for (const
|
|
1303
|
-
|
|
1304
|
-
const
|
|
1305
|
-
return
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
)(
|
|
2319
|
+
if (!J(s) || !w) {
|
|
2320
|
+
const k = {};
|
|
2321
|
+
if (typeof P == "object" && !J(P)) {
|
|
2322
|
+
const C = e;
|
|
2323
|
+
for (const A in P)
|
|
2324
|
+
k[A] = (O) => {
|
|
2325
|
+
const T = qe(O), B = ye(O);
|
|
2326
|
+
return C(
|
|
2327
|
+
P[A],
|
|
2328
|
+
ft(A, O),
|
|
2329
|
+
T ? T[A] : void 0,
|
|
2330
|
+
B ? B[A] : void 0,
|
|
2331
|
+
O?.class,
|
|
2332
|
+
O?.className
|
|
2333
|
+
)(c);
|
|
1313
2334
|
};
|
|
1314
2335
|
}
|
|
1315
|
-
return
|
|
2336
|
+
return k;
|
|
1316
2337
|
}
|
|
1317
|
-
return
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
)(
|
|
1324
|
-
},
|
|
1325
|
-
if (!(!
|
|
1326
|
-
return Object.keys(
|
|
2338
|
+
return e(
|
|
2339
|
+
h,
|
|
2340
|
+
$e(),
|
|
2341
|
+
He(S),
|
|
2342
|
+
E?.class,
|
|
2343
|
+
E?.className
|
|
2344
|
+
)(c);
|
|
2345
|
+
}, z = () => {
|
|
2346
|
+
if (!(!v || typeof v != "object"))
|
|
2347
|
+
return Object.keys(v);
|
|
1327
2348
|
};
|
|
1328
|
-
return y.variantKeys =
|
|
2349
|
+
return y.variantKeys = z(), y.extend = i, y.base = h, y.slots = P, y.variants = v, y.defaultVariants = b, y.compoundSlots = d, y.compoundVariants = S, y;
|
|
1329
2350
|
};
|
|
1330
2351
|
return {
|
|
1331
|
-
tv:
|
|
1332
|
-
createTV: (
|
|
2352
|
+
tv: t,
|
|
2353
|
+
createTV: (n) => (o, i) => t(o, i ? _t(n, i) : n)
|
|
1333
2354
|
};
|
|
1334
|
-
},
|
|
1335
|
-
const
|
|
2355
|
+
}, ui = (...e) => (t) => st(e) || void 0, { tv: ut } = di(ui), gi = /* @__PURE__ */ m("<a>"), fi = /* @__PURE__ */ m("<button type=button>");
|
|
2356
|
+
const ar = ut({
|
|
1336
2357
|
base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
|
|
1337
2358
|
variants: {
|
|
1338
2359
|
$variant: {
|
|
@@ -1355,354 +2376,354 @@ const Be = Ut({
|
|
|
1355
2376
|
$variant: "primary",
|
|
1356
2377
|
$aspect: "auto"
|
|
1357
2378
|
}
|
|
1358
|
-
}),
|
|
1359
|
-
const [
|
|
1360
|
-
return
|
|
1361
|
-
var
|
|
1362
|
-
return
|
|
2379
|
+
}), Oe = (e) => {
|
|
2380
|
+
const [t, r] = ct(e, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
|
|
2381
|
+
return t.href ? (() => {
|
|
2382
|
+
var n = gi();
|
|
2383
|
+
return ot(n, W({
|
|
1363
2384
|
get href() {
|
|
1364
|
-
return
|
|
2385
|
+
return t.href;
|
|
1365
2386
|
},
|
|
1366
2387
|
get onClick() {
|
|
1367
|
-
return
|
|
2388
|
+
return t.onClick;
|
|
1368
2389
|
},
|
|
1369
2390
|
get class() {
|
|
1370
|
-
return
|
|
1371
|
-
$variant:
|
|
1372
|
-
$size:
|
|
1373
|
-
$aspect:
|
|
1374
|
-
}),
|
|
2391
|
+
return he(ar({
|
|
2392
|
+
$variant: t.$variant,
|
|
2393
|
+
$size: t.$size,
|
|
2394
|
+
$aspect: t.$aspect
|
|
2395
|
+
}), t.class);
|
|
1375
2396
|
}
|
|
1376
|
-
},
|
|
2397
|
+
}, r), !1, !0), f(n, () => t.children), n;
|
|
1377
2398
|
})() : (() => {
|
|
1378
|
-
var
|
|
1379
|
-
return
|
|
2399
|
+
var n = fi();
|
|
2400
|
+
return ot(n, W({
|
|
1380
2401
|
get onClick() {
|
|
1381
|
-
return
|
|
2402
|
+
return t.onClick;
|
|
1382
2403
|
},
|
|
1383
2404
|
get class() {
|
|
1384
|
-
return
|
|
1385
|
-
$variant:
|
|
1386
|
-
$size:
|
|
1387
|
-
$aspect:
|
|
1388
|
-
}),
|
|
2405
|
+
return he(ar({
|
|
2406
|
+
$variant: t.$variant,
|
|
2407
|
+
$size: t.$size,
|
|
2408
|
+
$aspect: t.$aspect
|
|
2409
|
+
}), t.class);
|
|
1389
2410
|
}
|
|
1390
|
-
},
|
|
2411
|
+
}, r), !1, !0), f(n, () => t.children), n;
|
|
1391
2412
|
})();
|
|
1392
2413
|
};
|
|
1393
|
-
var
|
|
1394
|
-
const
|
|
1395
|
-
var
|
|
1396
|
-
return
|
|
2414
|
+
var hi = /* @__PURE__ */ 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">'), vi = /* @__PURE__ */ m('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), pi = /* @__PURE__ */ 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">'), bi = /* @__PURE__ */ m('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), mi = /* @__PURE__ */ 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">');
|
|
2415
|
+
const Dr = (e) => e ? 1 : 3, yi = (e) => (() => {
|
|
2416
|
+
var t = hi(), r = t.firstChild, n = r.nextSibling;
|
|
2417
|
+
return f(n, g(ve, {
|
|
1397
2418
|
get each() {
|
|
1398
2419
|
return Array.from({
|
|
1399
|
-
length:
|
|
2420
|
+
length: Dr(e.isApple)
|
|
1400
2421
|
});
|
|
1401
2422
|
},
|
|
1402
|
-
children: () =>
|
|
1403
|
-
})),
|
|
1404
|
-
})(),
|
|
1405
|
-
var
|
|
1406
|
-
return
|
|
2423
|
+
children: () => vi()
|
|
2424
|
+
})), t;
|
|
2425
|
+
})(), wi = (e) => (() => {
|
|
2426
|
+
var t = pi(), r = t.firstChild, n = r.nextSibling;
|
|
2427
|
+
return f(n, g(ve, {
|
|
1407
2428
|
get each() {
|
|
1408
2429
|
return Array.from({
|
|
1409
|
-
length:
|
|
2430
|
+
length: Dr(e.isApple)
|
|
1410
2431
|
});
|
|
1411
2432
|
},
|
|
1412
|
-
children: () =>
|
|
1413
|
-
})),
|
|
1414
|
-
})(),
|
|
1415
|
-
var
|
|
1416
|
-
return
|
|
2433
|
+
children: () => bi()
|
|
2434
|
+
})), t;
|
|
2435
|
+
})(), xi = () => (() => {
|
|
2436
|
+
var t = mi(), r = t.firstChild, n = r.nextSibling;
|
|
2437
|
+
return f(r, g(yi, {
|
|
1417
2438
|
isApple: !0
|
|
1418
|
-
})),
|
|
2439
|
+
})), f(n, g(wi, {
|
|
1419
2440
|
isApple: !0
|
|
1420
|
-
})),
|
|
2441
|
+
})), t;
|
|
1421
2442
|
})();
|
|
1422
|
-
var
|
|
1423
|
-
const
|
|
2443
|
+
var ki = /* @__PURE__ */ 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">');
|
|
2444
|
+
const Ci = (e) => {
|
|
1424
2445
|
const {
|
|
1425
|
-
t
|
|
1426
|
-
} =
|
|
1427
|
-
start:
|
|
1428
|
-
} =
|
|
2446
|
+
t
|
|
2447
|
+
} = X(), {
|
|
2448
|
+
start: r
|
|
2449
|
+
} = go();
|
|
1429
2450
|
return (() => {
|
|
1430
|
-
var
|
|
1431
|
-
return
|
|
2451
|
+
var n = ki(), o = n.firstChild, i = o.firstChild, s = o.nextSibling;
|
|
2452
|
+
return f(n, g(xi, {}), o), f(i, () => t("disconnected.prompt")), f(s, g(Oe, {
|
|
1432
2453
|
type: "button",
|
|
1433
|
-
onClick:
|
|
2454
|
+
onClick: r,
|
|
1434
2455
|
class: "z-10 px-6 py-3",
|
|
1435
2456
|
$variant: "primary",
|
|
1436
2457
|
$size: "lg",
|
|
1437
2458
|
get children() {
|
|
1438
|
-
return
|
|
2459
|
+
return t("disconnected.generateQr");
|
|
1439
2460
|
}
|
|
1440
|
-
}), null),
|
|
2461
|
+
}), null), f(s, g(Oe, {
|
|
1441
2462
|
type: "button",
|
|
1442
2463
|
get "aria-label"() {
|
|
1443
|
-
return String(
|
|
2464
|
+
return String(t("disconnected.connectionSettings"));
|
|
1444
2465
|
},
|
|
1445
2466
|
"aria-pressed": !1,
|
|
1446
2467
|
get onClick() {
|
|
1447
|
-
return
|
|
2468
|
+
return e.onSettings;
|
|
1448
2469
|
},
|
|
1449
2470
|
class: "px-3 ltr:-ml-1 ltr:rounded-l-none rtl:-mr-1 rtl:rounded-r-none",
|
|
1450
2471
|
$aspect: "square",
|
|
1451
2472
|
$size: "lg",
|
|
1452
2473
|
$variant: "secondary",
|
|
1453
2474
|
get children() {
|
|
1454
|
-
return
|
|
2475
|
+
return g(Jo, {
|
|
1455
2476
|
class: "h-5 w-5 text-(--lv-text-muted)"
|
|
1456
2477
|
});
|
|
1457
2478
|
}
|
|
1458
|
-
}), null),
|
|
2479
|
+
}), null), n;
|
|
1459
2480
|
})();
|
|
1460
2481
|
};
|
|
1461
|
-
var
|
|
1462
|
-
const
|
|
2482
|
+
var Si = /* @__PURE__ */ 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>');
|
|
2483
|
+
const Ai = () => {
|
|
1463
2484
|
const {
|
|
1464
|
-
t
|
|
1465
|
-
} =
|
|
2485
|
+
t: e
|
|
2486
|
+
} = X();
|
|
1466
2487
|
return (() => {
|
|
1467
|
-
var
|
|
1468
|
-
return
|
|
2488
|
+
var t = Si(), r = t.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling, s = i.firstChild, a = i.nextSibling, l = a.firstChild;
|
|
2489
|
+
return f(n, () => e("info.scanQrCode")), f(o, g(qo, {
|
|
1469
2490
|
class: "w-10 h-10"
|
|
1470
|
-
})),
|
|
2491
|
+
})), f(s, () => e("info.approveOnDevice")), f(l, () => e("info.youreConnected")), t;
|
|
1471
2492
|
})();
|
|
1472
|
-
},
|
|
1473
|
-
const
|
|
1474
|
-
let
|
|
1475
|
-
return
|
|
1476
|
-
const u =
|
|
1477
|
-
Object.is(u, d) || (
|
|
1478
|
-
|
|
1479
|
-
}),
|
|
1480
|
-
},
|
|
1481
|
-
|
|
2493
|
+
}, Nt = (e, { duration: t = 200 } = {}) => {
|
|
2494
|
+
const r = typeof e == "function" ? e : () => e, n = r(), [o, i] = D(n), [s, a] = D(void 0);
|
|
2495
|
+
let l, d = n;
|
|
2496
|
+
return ee(() => {
|
|
2497
|
+
const u = r();
|
|
2498
|
+
Object.is(u, d) || (l && globalThis.clearTimeout(l), a(() => d), i(() => u), d = u, l = globalThis.setTimeout(() => {
|
|
2499
|
+
a(() => {
|
|
2500
|
+
}), l = void 0;
|
|
2501
|
+
}, t), te(() => {
|
|
2502
|
+
l && globalThis.clearTimeout(l);
|
|
1482
2503
|
}));
|
|
1483
2504
|
}), {
|
|
1484
2505
|
current: o,
|
|
1485
2506
|
previous: s,
|
|
1486
2507
|
isTransitioning: () => s() !== void 0
|
|
1487
2508
|
};
|
|
1488
|
-
},
|
|
1489
|
-
const { provider:
|
|
1490
|
-
|
|
2509
|
+
}, Ge = () => {
|
|
2510
|
+
const { provider: e } = Re(), [t, r] = D(e.storage.getSettings()), n = (u) => {
|
|
2511
|
+
r(u), e.storage.setSettings(u);
|
|
1491
2512
|
};
|
|
1492
2513
|
return {
|
|
1493
|
-
settings:
|
|
1494
|
-
setSettings:
|
|
2514
|
+
settings: t,
|
|
2515
|
+
setSettings: n,
|
|
1495
2516
|
setLanguage: (u) => {
|
|
1496
|
-
|
|
2517
|
+
n({ ...t(), language: u });
|
|
1497
2518
|
},
|
|
1498
2519
|
setThemeMode: (u) => {
|
|
1499
|
-
|
|
2520
|
+
n({ ...t(), theme: u });
|
|
1500
2521
|
},
|
|
1501
2522
|
setSignalingProtocol: (u) => {
|
|
1502
|
-
|
|
2523
|
+
n({ ...t(), signaling: { p: u, s: t()?.signaling?.s ?? {} } });
|
|
1503
2524
|
},
|
|
1504
2525
|
setSignalingOptions: (u) => {
|
|
1505
|
-
const
|
|
1506
|
-
if (!
|
|
1507
|
-
const
|
|
1508
|
-
|
|
2526
|
+
const c = t()?.signaling?.p;
|
|
2527
|
+
if (!c) return;
|
|
2528
|
+
const h = t()?.signaling?.s ?? {};
|
|
2529
|
+
n({ ...t(), signaling: { p: c, s: { ...h, [c]: u.url } } });
|
|
1509
2530
|
},
|
|
1510
2531
|
setRetainSessionHistory: (u) => {
|
|
1511
|
-
|
|
2532
|
+
n({ ...t(), retainHistory: u });
|
|
1512
2533
|
},
|
|
1513
2534
|
setAutoReconnect: (u) => {
|
|
1514
|
-
|
|
2535
|
+
n({ ...t(), autoReconnect: u });
|
|
1515
2536
|
}
|
|
1516
2537
|
};
|
|
1517
|
-
},
|
|
1518
|
-
const { settings:
|
|
2538
|
+
}, Vr = () => {
|
|
2539
|
+
const { settings: e } = Ge(), t = $(() => e().theme), r = $(() => "light");
|
|
1519
2540
|
return {
|
|
1520
|
-
theme:
|
|
1521
|
-
mode:
|
|
2541
|
+
theme: t,
|
|
2542
|
+
mode: r
|
|
1522
2543
|
};
|
|
1523
|
-
},
|
|
1524
|
-
var
|
|
1525
|
-
const
|
|
2544
|
+
}, $i = "data:image/webp;base64,UklGRjYRAABXRUJQVlA4WAoAAAAQAAAAfwAAfwAAQUxQSOwHAAABsIb///k21zdJk7anNmfbRrf01uztcO5s2yqOPdu27e2ybaPtlLRJ83nw+ye/3++PZ/eDiJgA+hV0c620Pml9MhYu8HlhejUhJbv1SfO5T+964XrgN/I9hD5uLKDZXXDnXPhfq0ImrdX+BMHb/blCjkJo3v2laeVsmvojRJ8L5ir7Vgz7auuIclbtpHwTtdjCFXlBHIBXGzpFaiXwr06lAt/dR8oQf9cPMgDXyW4R2qCAdvPS09MzBnfo6HPrWBJobjAj3fd5q5+4fAFcJ1qY5dnCbHxathRv/+9rX3wAcrPiZbXafX5TRR1hoxvPPPjJG7ApRE7d5wDOFNYXIgqsO/6M04uzuZSSl8D20B0iCu+465sCusuw/AOKvfSIKKDdYeZVTRmp2QqXk/WJKDr93fdHnUhiwE6w2W1Jty2VGpYkmY2zFeaY9Et6FtirhcioYy4pjCLDbviFeVzcuHqB3WI1rvkKQ8mwbfuY702MK+4mk1PTuAo9Ze4lGNgT5k6scRV7xpwIkRFevWkTVTatFWWSZxLR5DuzwSyuWvr5jw6V5lxZmGKRU+/vi1oH8lV9Lydo/DOoOjsrUUbqC8A5ycSV/JjZaROUvKwAaj9WRpxpGQDcT+Yq/YrZFyAmeD00eDxJmHUP86UeV6qT2WAWYp5VwORfWLTng8LnBXPmSsw65mAw31/YbuZbA64f8yQ0zwGAh70jyL/BbsaTRVJD2l1k8vrqRvgxALhVl9jIFQCQa5dCVP4sANwppRcDXACym5FyoTMAsDVIDlV5AABZOhF1CQAyzF6oxRcAX3+QRAMLADyvIGgX86aCev6QD+BGUfLutwgA1lolhe0HgLliws8zd2JVY90EABPJ17ofALyrJona5wG4HC0k+bGgVCezUUDVNwCelvbJugkARsiKugAgr62aijxk5hD/CABYYPaJfucGsN1fEk0FgD/LiOOiod+AcyX5rJsAuNqR74UfAHhVVlb9XACXooU8Ym7H8lnbTBlWkviLPQHwpDiHeSkAdydZoScBZNcQUfUDsy+AT/SPDgCrLRzUBwCyZNGfAXi6i/jByWw0q2UoAEwm3jqfABwKlNXNA+DvIlIVNqlmIQB3J66o6wCuRMmqkwtgf4DWrDsBfKjCZdsB4G05WQl3AZwN0VrMDQBXorloOQBnM1m2XQCeFxfQIp9ZZVJJ3F0AhwP4JgHwdJZlWg/gQ2UBI8BOJpWWfgngqJK5XMeGIUpDAGC0LFoIwNVawBiFcWpp+A3AWgsTmvHa/WVvFYXW+QDWN7Hb7VUCFExFm9jt9tSKZgW/Cna7PWUBAHc7Ae1cAFztVZVF7AAPAOwMZhp9B+B2OBzOD0vDmX6PHE6Hw/lmmj8RWSe9dTocDpeoyJ0Adkepz28H2I+VmMaMsrsjESXdgXJ2VSKqmwPvQii+z/JhSaQ+2z6FnGpcGEREZd97+V6fiNq6JalbIZMxLVK4ncg08uVBVSIKWuPlUAIRxZ3WkUbMfIbKnQXwsSuxKcyZWbNnz5lWm9j4YXNnz549Z0wRYitOnjN79sxDulAnF8ChAIbKZG5dkmpS6OkBkE6yR+pC0gMAh5WILCZSHgkAmdJG6UL8PQBnQr34OF+nIjoNqWvlCT0N4HlxLvN6fYpeU4CcyX4c5o0AvqZwhV3UpxEA8L4KB80GgH5chR7q098Z/JGnnQvAv7ja5uvT3xS68VR6D+B0KM9cGEjEWQA5tTmCjhgJzQKAsRy1PhlK63wAJ0N8mwpDibsC4OsvPiXdMhbKAoDN/r4M9hhMzbcAvrb3IfEitFak2U/RqjL/FwAuFfZi/Re01uCKK+9gSXHuznxU4y0ArI9RMA12aC14PwBkirBuYXJqCDBNZ7AuiYhsg78AQK5bQ7F3mWvRAgKPM9nVBFD0QQaXBjVtv/E7ALyc+UVLt5mnhQXE3WAeFxVBNR4y8DhdYPN6N/yupTvMk0ICyrxhLocLIfsjxmveFHMjLYWdZT7VEPCjgzkdIoZSzvjwsq+NGjMZGjFvYPKbCegDdjGJTph9x828W1GDSCmLLHJpjCDKYDBKwCKFQcKICnWaNmv2yOpW8nZ/y1a5m28AKBDxJw+zxswVeYn5niLB9+qfoFZHqoBG35hLUVyFnzJPS6gkaI9qLkQLSLrHZNfgir/DrPVTCTV6qZLsLiTQtpf51oDLNNwJvG9Gqm2663W+S3b+u0MtTSKsuwWRteuGRXazeiiwXLMWsptXCiKh4ojMJjJEpfeVRRhl1CXmTpxxJT9RiDWuQo+Zu3HGVTeXORZsXKlOZpPZuLq4mWUm45oJdgIZdtARxtXBuEo8Y16XMa7+HuZUqGFFnwQ7nWT6WXVttIfJri/B/Psdu6cX06/462B3BUholg3gVu8IvSr3nvnWnsRbVoN1nehfzKxLSXeZ5VYJflsUADxc279CuP5Q7xzgXHmS2dftBcDbi/N/Zy8e7IPJX9GiKcuPM/okk9TASR99AFDgeH5i/rx0xXlLDrKHNnQNFFFufEY6f0aPCD41muz783wR7BojoMF9CPWsj9QAUUinXTmScCeRy7YRogdogiggJfOMQ8rL4lwRV4XN0wgRRfw4Yc8Lp7CVNi7LYlGe3tohooBSv0xcfebxF4+Xb5+VP20qRfwVLojJXxquKdYUUqRe1z5paWlpfXql1FKsXfU3JLJ49z5p/H3ahdCvnwNWUDggJAkAAFAzAJ0BKoAAgAA+TR6NRCKhoZUKb+QoBMS0gXAB+AH6AA+Ufoz/Jfxg77f7Z+S/YJ+nfbP1gq1XNV9yP0v9m88u9n4J6gXsHdvbKegF67/Sv+T4Lf9d6F/VT2AP5b/Kf+VyINAD+K/1H/h/43+8fC5/Lf9f7u/bv+Wf4H/xf5X4Bv43/Qv+F/avaA9c37VewZ+qi6YnObtVG6xTptSDxWdZOyXNa59dCAiUQx0s9QeFuTtEkCCZ1VDt2yVu6wuLleg8UGC+xygF+ikCc6OFScW3keDjkgMNXtWhnlVuP8adiwFQqtWB898/cNZ/ZPZSbT/SGkUu9L/80Jh9MhRi3Uj+yGTg6IHihIpDzvYgtbVOefgBSvK2WP/ViDlFYMqcmV3S37jDRft7Kj/mgg3mnWnsm+HacJJd/5io8v7EadJwLNxOge91hk1mPHA+PYMINGKvA97JcZEFvzSmFAqBtHUzKqf50fXJLd0XhZmBQWhr/vwnXFii3VNfEfiIXySQr4RbWO8yPn7m0Z/G9Qg9KvDGNk/4ljKJZS1VxLuWUk+To4QAAP7+R5Re1p/qxbSLcVAEvC2Ae4+JAjoahTi+1Tx+R05wIIyRWKCPZqNwQFn8n4hkHC+YaT3NWwkaKKHw8WZH8NqlsIlsWxinFRzXJs8GKMdG2p7hG3px0/aKtlukGtCOvGxG+BPnLqe18kpHi6ID1Cv9VF+k0GfsVXRTfFJ5kFnxBXWEWfHSCRjr5ChoztIFhGiUjdeGW4oPH0mJRKxppXb/SuuY9AJME864F/0/K+rCPHrn4fAaKjIrvZAAGFSMZfovGmlhlAOl0kQHWDDypV8h5DEaTfOmXo5EIScC+SMO14Ob/u1b/QV6+wekJBWTZhjk7IgO7VyRpgGNBj23IgoGI3ZehsZNjz/FwpX2moSeDzk53u1qkXHaKG5d2qCOZSmjD/Mw60AzF22eAe+RoeFKSwUIci9CQD/6et+xH8moMwLOUzzuwuyvWC4o2rAhgXyPm9/OgwkYNR/47Hy+a8QNAxmh8RiQHQGZWu2c8agkAJ64pR2Tx0moSJcAN6mcLGZJM6OR4UvYNwbS3zHo/m2mznwl6FpIv416AQ2FRptmE3mPGs+fumcGy9QktCC15M3KIwNfUa+v+vCs+8cLY3ceuO7FOrdF4O62gur2g1PMJvcYV8xIJTjMC2ZxBtam98jF7JFQus/mSBWdPgN/EJ8azS69gF/kVpet+eEfx0gPfWCS/lXuCCxSTaW6UFiLosH3nrqmK5mWavssaOjz3T6dTb2/wflvaP/c2Q2mXRtiIL0wWJNO1WesBYkScU+pmuiwAuOw62WA6KAf9AOh7glFdfHQf81TCfj3NLS64NeCeXZ+S5Ea0iXT6aKx7ozBGub6ThREbIi3Xg7TnjOFoNnqzOnl2FumRXpwwuB6SujUtv/oX3hzheHNMPGb5C+LuOWwS4BAdAwTnE2vklObQHXtcp59P/ePfam2i7JOlXAWMQBQNP8a1w1rbnyxKFwYqsipF4ckJx3bppb4fgDS/FF2/y46LUyi1BnmZawEb37wuvOD3INuDKaakzzJyAzc2ta/DPhrpHaRn3O5CWc3s860AfNLwHDvxZs7JbQmcAv9paq37frkj2TJJ8P1GdMqpV35v5jukCYvxXga7V7ByDA/GZYBpJnBURfvGjAlOFtypjNWTjzA9zf475TTmOmroREsje7XMgekroBn4vwoWtc0UaaztuLsC9M2tModgoRBzav0PdM3molaBeu6PSwD3AYmgUHitoDOfvM2d85I7Q2I1FbNTmueFesWyTDRlN1T8+fTgaoZpKhrlx/kS+FNkrUKBy6yu68r8BgwNrGNfCLBh0RlefCkZMvUsB206vOJyP+JYtyXtPGzwuvvQ1NnzNCo/yfQtMBUFr0LMyfftfGbGw/uAuQC8VbqHI7vGtA35Pa/DoSi0zpfklckK/28i5yRB7UBdmsXAI4Xv+y5gLBNKYBZE4r3Ys+TE2oYTNlGGM22J0nkGvvERFqksAH7KakYgGUiGfDLagwIMw8o290UXsXUzA5nyTBBbMVjIriG4zcPG5/0lt3Hq3ykjGQZBYE2RFw15tOWJpEBpHoaSxwDmkDPEretisSxreTo/Iul/Pkj1RPlpUpBzqZ5YIzh/ch9TvBAU7YkxhYoEGS8rfw/dgP9aRwT1caEoREnr087aLahcF/h+/JIJfVqi8kl5IbvseIuGA+m+e1JqF49+tndB4QCulVeeuQsql47VKHF/9q8PRMeGYIfPChm+Osj0cHvED3n39qHidL63b2WYqKMKjTTFeORKbtbEHY7b/Xs29zBbWjwaRQ77mEGpkgDUP8Ebi9KQ2JeoW28yYYSO7pF/mqd2E++jgS/MxBo/x1sK/Nz1ZsMB164YppO3fLO519Erh4lDdAgT58nCsImfBkKhteF9rcpwDZe9j0FQ9IT5nuJH1Bt0Zdd1fIIAkYBzje1xr+t4KDj2F7055fEf9VdfsyJPFcK1JZ26v73bpjXJkmUuzMs3+VbxZQ5/4WBwqFJdbOvpFQ4ot/+Hn+qL0oUn4PA4/cgMjQwiYL81rsWfgtbjRThL/oDLbwfK+9cKcerxpB/GJkt5+x8JVN1A3/YhzzMPDnbewqzn+EodKIALRzTXzDHTMQkNZZY6QKRycJ2VCb8vNvQBmdev/CpTn1fgsVtGDJ0+c1iOBN0/f1DQMifz17Os7Oz1pKw7eOP9dtuyGwI7pYe0cEAHId4jKsr5WYfoSOIgXwE7bTm6l9ytV0zbma1KfNP/Ueaf86PTBrUXb3mh1wOj2xW9r5slTCunQPsdDHdZhtq/ldOBDSm/8BZs0vOj+BaStwJTUL6ShMniBq45fMXgBYhE0HCVgrmd8huP1g79tfH/sI40kXryAN0Id9OxWe8OtUDqd+hFn5Lea/0IyqEMOo1l6zdXzTvnn7ZMZQ13YXZ42HNbFrHSpaISyLIEnjorwZViflpTYJU5+TBcgDljbeiGSw9XFp1juoAWD7Du38M26w9QFezhy38ycpTOQI5qBb7hvaPBeGCI6FZxDSfGL8DLCIuXSPDU1wKHXgrR9dz8+Jzlm9rQs+FlQrh/TVOKrVVxQAAAA==";
|
|
2545
|
+
var Ti = /* @__PURE__ */ 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>');
|
|
2546
|
+
const _i = () => {
|
|
1526
2547
|
const {
|
|
1527
|
-
t
|
|
1528
|
-
} =
|
|
1529
|
-
status:
|
|
1530
|
-
} =
|
|
1531
|
-
const
|
|
1532
|
-
return
|
|
1533
|
-
sessionState:
|
|
2548
|
+
t: e
|
|
2549
|
+
} = X(), {
|
|
2550
|
+
status: t
|
|
2551
|
+
} = Ke(), r = $(() => {
|
|
2552
|
+
const n = t()?.status, o = t()?.signaling?.state;
|
|
2553
|
+
return ke({
|
|
2554
|
+
sessionState: n,
|
|
1534
2555
|
signalState: o
|
|
1535
2556
|
}).with({
|
|
1536
2557
|
sessionState: "connected"
|
|
1537
2558
|
}, () => ({
|
|
1538
2559
|
icon: "✅",
|
|
1539
|
-
text:
|
|
2560
|
+
text: e("status.connectedSuccessfully")
|
|
1540
2561
|
})).with({
|
|
1541
2562
|
sessionState: "signaling",
|
|
1542
2563
|
signalState: "standby"
|
|
1543
2564
|
}, () => ({
|
|
1544
2565
|
icon: "🫥",
|
|
1545
|
-
text:
|
|
2566
|
+
text: e("status.connecting")
|
|
1546
2567
|
})).with({
|
|
1547
2568
|
sessionState: "signaling",
|
|
1548
2569
|
signalState: "connecting"
|
|
1549
2570
|
}, () => ({
|
|
1550
2571
|
icon: "↗️",
|
|
1551
|
-
text:
|
|
2572
|
+
text: e("status.connecting")
|
|
1552
2573
|
})).with({
|
|
1553
2574
|
sessionState: "signaling",
|
|
1554
2575
|
signalState: "ready"
|
|
1555
2576
|
}, () => ({
|
|
1556
2577
|
icon: "👋",
|
|
1557
|
-
text:
|
|
2578
|
+
text: e("status.ready")
|
|
1558
2579
|
})).with({
|
|
1559
2580
|
sessionState: "signaling",
|
|
1560
2581
|
signalState: "handshake"
|
|
1561
2582
|
}, () => ({
|
|
1562
2583
|
icon: "🤝",
|
|
1563
|
-
text:
|
|
2584
|
+
text: e("status.handshakeClosed")
|
|
1564
2585
|
})).with({
|
|
1565
2586
|
sessionState: "signaling",
|
|
1566
2587
|
signalState: "handshake-partial"
|
|
1567
2588
|
}, () => ({
|
|
1568
2589
|
icon: "🤝",
|
|
1569
|
-
text:
|
|
2590
|
+
text: e("status.handshakePartial")
|
|
1570
2591
|
})).with({
|
|
1571
2592
|
sessionState: "signaling",
|
|
1572
2593
|
signalState: "encrypted"
|
|
1573
2594
|
}, () => ({
|
|
1574
2595
|
icon: "🔒",
|
|
1575
|
-
text:
|
|
2596
|
+
text: e("status.encrypted")
|
|
1576
2597
|
})).with({
|
|
1577
2598
|
sessionState: "signaling",
|
|
1578
2599
|
signalState: "error"
|
|
1579
2600
|
}, () => ({
|
|
1580
2601
|
icon: "❌",
|
|
1581
|
-
text:
|
|
2602
|
+
text: e("status.signalError")
|
|
1582
2603
|
})).otherwise(() => {
|
|
1583
2604
|
});
|
|
1584
2605
|
});
|
|
1585
|
-
return
|
|
2606
|
+
return g(Se, {
|
|
1586
2607
|
get when() {
|
|
1587
|
-
return
|
|
2608
|
+
return r();
|
|
1588
2609
|
},
|
|
1589
|
-
children: (
|
|
1590
|
-
var o =
|
|
1591
|
-
return
|
|
2610
|
+
children: (n) => (() => {
|
|
2611
|
+
var o = Ti(), i = o.firstChild, s = i.nextSibling;
|
|
2612
|
+
return f(i, () => n().text), f(s, () => n().icon), o;
|
|
1592
2613
|
})()
|
|
1593
2614
|
});
|
|
1594
2615
|
};
|
|
1595
|
-
var
|
|
1596
|
-
const
|
|
1597
|
-
var
|
|
1598
|
-
return
|
|
2616
|
+
var Ni = /* @__PURE__ */ m('<div class="h-11 w-full">'), Ei = /* @__PURE__ */ 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)">');
|
|
2617
|
+
const Oi = () => [Ni(), (() => {
|
|
2618
|
+
var e = Ei(), t = e.firstChild, r = t.firstChild, n = t.nextSibling;
|
|
2619
|
+
return Z(r, "src", $i), f(n, g(_i, {})), e;
|
|
1599
2620
|
})()];
|
|
1600
|
-
var
|
|
1601
|
-
const
|
|
2621
|
+
var Ri = /* @__PURE__ */ 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">');
|
|
2622
|
+
const Pi = (e) => {
|
|
1602
2623
|
const {
|
|
1603
|
-
t
|
|
1604
|
-
} =
|
|
2624
|
+
t
|
|
2625
|
+
} = X();
|
|
1605
2626
|
return (() => {
|
|
1606
|
-
var
|
|
1607
|
-
return
|
|
1608
|
-
var o =
|
|
1609
|
-
return () => o() ?
|
|
2627
|
+
var r = Ri(), n = r.firstChild;
|
|
2628
|
+
return f(r, (() => {
|
|
2629
|
+
var o = Ce(() => !!e.onBack);
|
|
2630
|
+
return () => o() ? g(Oe, {
|
|
1610
2631
|
get onClick() {
|
|
1611
|
-
return
|
|
2632
|
+
return e.onBack;
|
|
1612
2633
|
},
|
|
1613
2634
|
get "aria-label"() {
|
|
1614
|
-
return String(
|
|
2635
|
+
return String(e.view === "settings" ? t("modal.backToQr") : t("modal.closeModal"));
|
|
1615
2636
|
},
|
|
1616
2637
|
$variant: "tertiary",
|
|
1617
2638
|
$aspect: "square",
|
|
1618
2639
|
$size: "md",
|
|
1619
2640
|
get children() {
|
|
1620
|
-
return
|
|
2641
|
+
return g(jo, {
|
|
1621
2642
|
class: "h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"
|
|
1622
2643
|
});
|
|
1623
2644
|
}
|
|
1624
|
-
}) :
|
|
2645
|
+
}) : g(Oe, {
|
|
1625
2646
|
type: "button",
|
|
1626
|
-
onClick: () =>
|
|
2647
|
+
onClick: () => e.setView("info"),
|
|
1627
2648
|
$variant: "tertiary",
|
|
1628
2649
|
$aspect: "square",
|
|
1629
2650
|
$size: "md",
|
|
1630
2651
|
get children() {
|
|
1631
|
-
return
|
|
2652
|
+
return g(Lr, {
|
|
1632
2653
|
class: "h-5 w-5"
|
|
1633
2654
|
});
|
|
1634
2655
|
}
|
|
1635
2656
|
});
|
|
1636
|
-
})(),
|
|
2657
|
+
})(), n), f(n, () => e.title), f(r, g(Oe, {
|
|
1637
2658
|
type: "button",
|
|
1638
2659
|
get "aria-label"() {
|
|
1639
|
-
return String(
|
|
2660
|
+
return String(t("common.close"));
|
|
1640
2661
|
},
|
|
1641
2662
|
"aria-pressed": !1,
|
|
1642
2663
|
get onClick() {
|
|
1643
|
-
return
|
|
2664
|
+
return e.onClose;
|
|
1644
2665
|
},
|
|
1645
2666
|
$variant: "tertiary",
|
|
1646
2667
|
$aspect: "square",
|
|
1647
2668
|
$size: "md",
|
|
1648
2669
|
get children() {
|
|
1649
|
-
return
|
|
2670
|
+
return g(ni, {
|
|
1650
2671
|
class: "h-6 w-6 text-(--lv-text-muted)"
|
|
1651
2672
|
});
|
|
1652
2673
|
}
|
|
1653
|
-
}), null),
|
|
2674
|
+
}), null), r;
|
|
1654
2675
|
})();
|
|
1655
|
-
},
|
|
1656
|
-
const [
|
|
1657
|
-
duration:
|
|
2676
|
+
}, Bi = (e, { transitionDuration: t = 200 } = {}) => {
|
|
2677
|
+
const [r, n] = D([e]), [o, i] = D(0), s = $(() => r()[o()] ?? e), { current: a, previous: l, isTransitioning: d } = Nt(s, {
|
|
2678
|
+
duration: t
|
|
1658
2679
|
});
|
|
1659
2680
|
return {
|
|
1660
|
-
screen:
|
|
1661
|
-
previousScreen:
|
|
2681
|
+
screen: a,
|
|
2682
|
+
previousScreen: l,
|
|
1662
2683
|
isTransitioning: d,
|
|
1663
|
-
navigate: (
|
|
1664
|
-
const
|
|
1665
|
-
if (Object.is(
|
|
1666
|
-
const p =
|
|
1667
|
-
p.push(
|
|
2684
|
+
navigate: (h) => {
|
|
2685
|
+
const v = o(), b = r(), w = b[v];
|
|
2686
|
+
if (Object.is(w, h)) return;
|
|
2687
|
+
const p = b.slice(0, v + 1);
|
|
2688
|
+
p.push(h), n(p), i(p.length - 1);
|
|
1668
2689
|
},
|
|
1669
2690
|
goBack: () => {
|
|
1670
|
-
|
|
2691
|
+
i((h) => Math.max(0, h - 1));
|
|
1671
2692
|
},
|
|
1672
2693
|
isAtRoot: () => o() === 0
|
|
1673
2694
|
};
|
|
1674
2695
|
};
|
|
1675
|
-
var
|
|
1676
|
-
const
|
|
1677
|
-
var
|
|
1678
|
-
return
|
|
2696
|
+
var Li = /* @__PURE__ */ m('<div class="modal-transition__layer modal-transition__layer--outgoing">'), Mi = /* @__PURE__ */ m("<div><div>");
|
|
2697
|
+
const ji = (e) => (() => {
|
|
2698
|
+
var t = Mi(), r = t.firstChild;
|
|
2699
|
+
return f(t, g(Se, {
|
|
1679
2700
|
get when() {
|
|
1680
|
-
return
|
|
2701
|
+
return e.previous !== void 0;
|
|
1681
2702
|
},
|
|
1682
2703
|
get children() {
|
|
1683
|
-
var
|
|
1684
|
-
return
|
|
2704
|
+
var n = Li();
|
|
2705
|
+
return f(n, () => e.render(e.previous)), n;
|
|
1685
2706
|
}
|
|
1686
|
-
}),
|
|
1687
|
-
var o =
|
|
1688
|
-
return o !==
|
|
2707
|
+
}), r), f(r, () => e.render(e.current)), F((n) => {
|
|
2708
|
+
var o = he("modal-transition__container", e.class), i = he("modal-transition__layer", e.isTransitioning && "modal-transition__layer--incoming");
|
|
2709
|
+
return o !== n.e && Y(t, n.e = o), i !== n.t && Y(r, n.t = i), n;
|
|
1689
2710
|
}, {
|
|
1690
2711
|
e: void 0,
|
|
1691
2712
|
t: void 0
|
|
1692
|
-
}),
|
|
2713
|
+
}), t;
|
|
1693
2714
|
})();
|
|
1694
|
-
var
|
|
1695
|
-
const
|
|
1696
|
-
var
|
|
1697
|
-
return
|
|
2715
|
+
var Di = /* @__PURE__ */ 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)">');
|
|
2716
|
+
const Fe = (e) => (() => {
|
|
2717
|
+
var t = Di(), r = t.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling;
|
|
2718
|
+
return f(n, () => e.title), f(o, () => e.right), f(i, () => e.children), t;
|
|
1698
2719
|
})();
|
|
1699
|
-
var
|
|
1700
|
-
const
|
|
1701
|
-
var
|
|
1702
|
-
return
|
|
2720
|
+
var Vi = /* @__PURE__ */ 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>');
|
|
2721
|
+
const Ie = (e) => (() => {
|
|
2722
|
+
var t = Vi(), r = t.firstChild, n = r.nextSibling;
|
|
2723
|
+
return f(r, () => e.label), f(n, () => e.children), t;
|
|
1703
2724
|
})();
|
|
1704
|
-
var
|
|
1705
|
-
const
|
|
2725
|
+
var Fi = /* @__PURE__ */ m("<select>"), Ii = /* @__PURE__ */ m("<div>"), zi = /* @__PURE__ */ m("<button type=button>"), Ui = /* @__PURE__ */ m("<option>");
|
|
2726
|
+
const Ki = ut({
|
|
1706
2727
|
slots: {
|
|
1707
2728
|
root: "flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",
|
|
1708
2729
|
box: "px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"
|
|
@@ -1720,123 +2741,123 @@ const To = Ut({
|
|
|
1720
2741
|
defaultVariants: {
|
|
1721
2742
|
active: "off"
|
|
1722
2743
|
}
|
|
1723
|
-
}),
|
|
2744
|
+
}), Gi = ut({
|
|
1724
2745
|
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"
|
|
1725
|
-
}),
|
|
1726
|
-
const
|
|
1727
|
-
root:
|
|
1728
|
-
box:
|
|
1729
|
-
} =
|
|
1730
|
-
return
|
|
2746
|
+
}), gt = (e) => {
|
|
2747
|
+
const t = Gi(), {
|
|
2748
|
+
root: r,
|
|
2749
|
+
box: n
|
|
2750
|
+
} = Ki({});
|
|
2751
|
+
return g(Se, {
|
|
1731
2752
|
get when() {
|
|
1732
|
-
return
|
|
2753
|
+
return e.options.length > (e.dropdownThreshold ?? 3);
|
|
1733
2754
|
},
|
|
1734
2755
|
get fallback() {
|
|
1735
2756
|
return (() => {
|
|
1736
|
-
var o =
|
|
1737
|
-
return
|
|
2757
|
+
var o = Ii();
|
|
2758
|
+
return f(o, g(ve, {
|
|
1738
2759
|
get each() {
|
|
1739
|
-
return
|
|
2760
|
+
return e.options;
|
|
1740
2761
|
},
|
|
1741
|
-
children: ([
|
|
1742
|
-
var
|
|
1743
|
-
return
|
|
1744
|
-
var d =
|
|
1745
|
-
active:
|
|
2762
|
+
children: ([i, s]) => (() => {
|
|
2763
|
+
var a = zi();
|
|
2764
|
+
return a.$$click = () => e.onChange(i), f(a, s), F((l) => {
|
|
2765
|
+
var d = i === e.value, u = n({
|
|
2766
|
+
active: i === e.value ? "on" : "off"
|
|
1746
2767
|
});
|
|
1747
|
-
return d !==
|
|
2768
|
+
return d !== l.e && Z(a, "aria-pressed", l.e = d), u !== l.t && Y(a, l.t = u), l;
|
|
1748
2769
|
}, {
|
|
1749
2770
|
e: void 0,
|
|
1750
2771
|
t: void 0
|
|
1751
|
-
}),
|
|
2772
|
+
}), a;
|
|
1752
2773
|
})()
|
|
1753
|
-
})),
|
|
2774
|
+
})), F(() => Y(o, r())), o;
|
|
1754
2775
|
})();
|
|
1755
2776
|
},
|
|
1756
2777
|
get children() {
|
|
1757
|
-
var o =
|
|
1758
|
-
return o.addEventListener("change", (
|
|
2778
|
+
var o = Fi();
|
|
2779
|
+
return o.addEventListener("change", (i) => e.onChange(i.currentTarget.value)), Y(o, t), f(o, g(ve, {
|
|
1759
2780
|
get each() {
|
|
1760
|
-
return
|
|
2781
|
+
return e.options;
|
|
1761
2782
|
},
|
|
1762
|
-
children: ([
|
|
1763
|
-
var
|
|
1764
|
-
return
|
|
2783
|
+
children: ([i, s]) => (() => {
|
|
2784
|
+
var a = Ui();
|
|
2785
|
+
return a.value = i, f(a, s), a;
|
|
1765
2786
|
})()
|
|
1766
|
-
})),
|
|
2787
|
+
})), F(() => o.value = e.value), o;
|
|
1767
2788
|
}
|
|
1768
2789
|
});
|
|
1769
2790
|
};
|
|
1770
|
-
|
|
1771
|
-
const
|
|
2791
|
+
be(["click"]);
|
|
2792
|
+
const Wi = () => {
|
|
1772
2793
|
const {
|
|
1773
|
-
t
|
|
1774
|
-
} =
|
|
2794
|
+
t: e
|
|
2795
|
+
} = X(), t = Vr(), r = () => t.mode() === "auto", n = () => t.mode() === "auto" ? "system" : t.mode(), o = (i) => {
|
|
1775
2796
|
};
|
|
1776
|
-
return
|
|
2797
|
+
return g(Se, {
|
|
1777
2798
|
get when() {
|
|
1778
|
-
return
|
|
2799
|
+
return r();
|
|
1779
2800
|
},
|
|
1780
2801
|
get children() {
|
|
1781
|
-
return
|
|
2802
|
+
return g(Ie, {
|
|
1782
2803
|
get label() {
|
|
1783
|
-
return
|
|
2804
|
+
return e("settings.theme.mode");
|
|
1784
2805
|
},
|
|
1785
2806
|
get children() {
|
|
1786
|
-
return
|
|
2807
|
+
return g(gt, {
|
|
1787
2808
|
get options() {
|
|
1788
|
-
return [["light",
|
|
2809
|
+
return [["light", e("settings.theme.light")], ["dark", e("settings.theme.dark")], ["system", e("settings.theme.system")]];
|
|
1789
2810
|
},
|
|
1790
2811
|
get value() {
|
|
1791
|
-
return
|
|
2812
|
+
return n();
|
|
1792
2813
|
},
|
|
1793
|
-
onChange: (
|
|
2814
|
+
onChange: (i) => o()
|
|
1794
2815
|
});
|
|
1795
2816
|
}
|
|
1796
2817
|
});
|
|
1797
2818
|
}
|
|
1798
2819
|
});
|
|
1799
|
-
},
|
|
2820
|
+
}, Hi = () => {
|
|
1800
2821
|
const {
|
|
1801
|
-
t,
|
|
1802
|
-
languageTag:
|
|
1803
|
-
setLanguageTag:
|
|
1804
|
-
} =
|
|
1805
|
-
settings:
|
|
2822
|
+
t: e,
|
|
2823
|
+
languageTag: t,
|
|
2824
|
+
setLanguageTag: r
|
|
2825
|
+
} = X(), {
|
|
2826
|
+
settings: n,
|
|
1806
2827
|
setLanguage: o
|
|
1807
|
-
} =
|
|
1808
|
-
const d =
|
|
1809
|
-
return
|
|
1810
|
-
})), s = (
|
|
1811
|
-
const
|
|
1812
|
-
|
|
2828
|
+
} = Ge(), i = $(() => [...Pt].sort((a, l) => {
|
|
2829
|
+
const d = Yt(a.tag);
|
|
2830
|
+
return Yt(l.tag) - d;
|
|
2831
|
+
})), s = (a) => {
|
|
2832
|
+
const l = a;
|
|
2833
|
+
r(l), o(l);
|
|
1813
2834
|
};
|
|
1814
|
-
return
|
|
2835
|
+
return g(Fe, {
|
|
1815
2836
|
get title() {
|
|
1816
|
-
return
|
|
2837
|
+
return e("settings.appearance");
|
|
1817
2838
|
},
|
|
1818
2839
|
get children() {
|
|
1819
|
-
return [
|
|
2840
|
+
return [g(Ie, {
|
|
1820
2841
|
get label() {
|
|
1821
|
-
return
|
|
2842
|
+
return e("settings.language");
|
|
1822
2843
|
},
|
|
1823
2844
|
get children() {
|
|
1824
|
-
return
|
|
2845
|
+
return g(gt, {
|
|
1825
2846
|
get options() {
|
|
1826
|
-
return
|
|
2847
|
+
return i().map((a) => [a.tag, a.nativeName]);
|
|
1827
2848
|
},
|
|
1828
2849
|
get value() {
|
|
1829
|
-
return
|
|
2850
|
+
return n()?.language || t();
|
|
1830
2851
|
},
|
|
1831
2852
|
onChange: s
|
|
1832
2853
|
});
|
|
1833
2854
|
}
|
|
1834
|
-
}),
|
|
2855
|
+
}), g(Wi, {})];
|
|
1835
2856
|
}
|
|
1836
2857
|
});
|
|
1837
2858
|
};
|
|
1838
|
-
var
|
|
1839
|
-
const
|
|
2859
|
+
var qi = /* @__PURE__ */ m("<div><div></div><div>"), Xi = /* @__PURE__ */ m("<div>Text");
|
|
2860
|
+
const Qi = ut({
|
|
1840
2861
|
slots: {
|
|
1841
2862
|
root: "group relative",
|
|
1842
2863
|
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)",
|
|
@@ -1866,28 +2887,28 @@ const Lo = Ut({
|
|
|
1866
2887
|
defaultVariants: {
|
|
1867
2888
|
size: "lg"
|
|
1868
2889
|
}
|
|
1869
|
-
}),
|
|
1870
|
-
const
|
|
2890
|
+
}), sr = (e) => {
|
|
2891
|
+
const t = W({
|
|
1871
2892
|
variant: "icon",
|
|
1872
2893
|
size: "lg"
|
|
1873
|
-
},
|
|
1874
|
-
root:
|
|
1875
|
-
box:
|
|
2894
|
+
}, e), {
|
|
2895
|
+
root: r,
|
|
2896
|
+
box: n,
|
|
1876
2897
|
popover: o,
|
|
1877
|
-
icon:
|
|
1878
|
-
} =
|
|
1879
|
-
size:
|
|
1880
|
-
variant:
|
|
2898
|
+
icon: i
|
|
2899
|
+
} = Qi({
|
|
2900
|
+
size: t.size,
|
|
2901
|
+
variant: t.variant
|
|
1881
2902
|
});
|
|
1882
2903
|
return (() => {
|
|
1883
|
-
var s =
|
|
1884
|
-
return
|
|
2904
|
+
var s = qi(), a = s.firstChild, l = a.nextSibling;
|
|
2905
|
+
return f(a, () => ke(t.variant).with("icon", () => g(Lr, {
|
|
1885
2906
|
get class() {
|
|
1886
|
-
return
|
|
2907
|
+
return i();
|
|
1887
2908
|
}
|
|
1888
|
-
})).with("text", () =>
|
|
1889
|
-
var u =
|
|
1890
|
-
return u !== d.e &&
|
|
2909
|
+
})).with("text", () => Xi()).exhaustive()), f(l, () => t.children), F((d) => {
|
|
2910
|
+
var u = r(), c = n(), h = o();
|
|
2911
|
+
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;
|
|
1891
2912
|
}, {
|
|
1892
2913
|
e: void 0,
|
|
1893
2914
|
t: void 0,
|
|
@@ -1895,83 +2916,83 @@ const Lo = Ut({
|
|
|
1895
2916
|
}), s;
|
|
1896
2917
|
})();
|
|
1897
2918
|
};
|
|
1898
|
-
var
|
|
1899
|
-
const
|
|
1900
|
-
var
|
|
1901
|
-
return
|
|
2919
|
+
var Ji = /* @__PURE__ */ m('<span class="text-sm text-(--lv-text-muted)">'), Zi = /* @__PURE__ */ 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">');
|
|
2920
|
+
const lr = (e) => (() => {
|
|
2921
|
+
var t = Zi(), r = t.firstChild, n = r.nextSibling;
|
|
2922
|
+
return dt(t, "click", e.onClick, !0), f(r, () => e.label), f(n, g(Se, {
|
|
1902
2923
|
get when() {
|
|
1903
|
-
return
|
|
2924
|
+
return e.value;
|
|
1904
2925
|
},
|
|
1905
2926
|
get children() {
|
|
1906
|
-
var o =
|
|
1907
|
-
return
|
|
2927
|
+
var o = Ji();
|
|
2928
|
+
return f(o, () => e.value), o;
|
|
1908
2929
|
}
|
|
1909
|
-
}), null),
|
|
2930
|
+
}), null), f(n, g(Fo, {
|
|
1910
2931
|
class: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"
|
|
1911
|
-
}), null),
|
|
2932
|
+
}), null), t;
|
|
1912
2933
|
})();
|
|
1913
|
-
|
|
1914
|
-
const
|
|
2934
|
+
be(["click"]);
|
|
2935
|
+
const Yi = (e) => {
|
|
1915
2936
|
const {
|
|
1916
|
-
t
|
|
1917
|
-
} =
|
|
1918
|
-
return
|
|
2937
|
+
t
|
|
2938
|
+
} = X();
|
|
2939
|
+
return g(gt, {
|
|
1919
2940
|
get options() {
|
|
1920
|
-
return [["true", String(
|
|
2941
|
+
return [["true", String(t("common.yes"))], ["false", String(t("common.no"))]];
|
|
1921
2942
|
},
|
|
1922
2943
|
get value() {
|
|
1923
|
-
return
|
|
2944
|
+
return e.value ? "true" : "false";
|
|
1924
2945
|
},
|
|
1925
|
-
onChange: (
|
|
2946
|
+
onChange: (r) => e.onChange(r === "true")
|
|
1926
2947
|
});
|
|
1927
|
-
},
|
|
2948
|
+
}, ea = (e) => {
|
|
1928
2949
|
const {
|
|
1929
|
-
t
|
|
1930
|
-
} =
|
|
1931
|
-
settings:
|
|
1932
|
-
setRetainSessionHistory:
|
|
2950
|
+
t
|
|
2951
|
+
} = X(), {
|
|
2952
|
+
settings: r,
|
|
2953
|
+
setRetainSessionHistory: n,
|
|
1933
2954
|
setAutoReconnect: o
|
|
1934
|
-
} =
|
|
1935
|
-
return
|
|
2955
|
+
} = Ge();
|
|
2956
|
+
return g(Fe, {
|
|
1936
2957
|
get title() {
|
|
1937
|
-
return
|
|
2958
|
+
return t("settings.connectionPreferences.title");
|
|
1938
2959
|
},
|
|
1939
2960
|
get children() {
|
|
1940
|
-
return [
|
|
2961
|
+
return [g(lr, {
|
|
1941
2962
|
get label() {
|
|
1942
|
-
return [
|
|
2963
|
+
return [Ce(() => t("settings.signaling.title")), g(sr, {
|
|
1943
2964
|
variant: "icon",
|
|
1944
2965
|
get children() {
|
|
1945
|
-
return
|
|
2966
|
+
return t("settings.signaling.description");
|
|
1946
2967
|
}
|
|
1947
2968
|
})];
|
|
1948
2969
|
},
|
|
1949
|
-
onClick: () =>
|
|
2970
|
+
onClick: () => e.onNavigate("signaling"),
|
|
1950
2971
|
get value() {
|
|
1951
|
-
return
|
|
2972
|
+
return r()?.signaling?.p;
|
|
1952
2973
|
}
|
|
1953
|
-
}),
|
|
2974
|
+
}), g(lr, {
|
|
1954
2975
|
get label() {
|
|
1955
|
-
return [
|
|
2976
|
+
return [Ce(() => t("settings.transport.title")), g(sr, {
|
|
1956
2977
|
variant: "icon",
|
|
1957
2978
|
get children() {
|
|
1958
|
-
return
|
|
2979
|
+
return t("settings.transport.description");
|
|
1959
2980
|
}
|
|
1960
2981
|
})];
|
|
1961
2982
|
},
|
|
1962
|
-
onClick: () =>
|
|
2983
|
+
onClick: () => e.onNavigate("transport"),
|
|
1963
2984
|
value: "WebRTC"
|
|
1964
|
-
}),
|
|
2985
|
+
}), g(ve, {
|
|
1965
2986
|
get each() {
|
|
1966
|
-
return [[
|
|
2987
|
+
return [[t("settings.connectionPreferences.retainSessionHistory"), r()?.retainHistory ?? !1, n], [t("settings.connectionPreferences.autoReconnect"), r()?.autoReconnect ?? !1, o]];
|
|
1967
2988
|
},
|
|
1968
|
-
children: ([
|
|
1969
|
-
label:
|
|
2989
|
+
children: ([i, s, a]) => g(Ie, {
|
|
2990
|
+
label: i,
|
|
1970
2991
|
get children() {
|
|
1971
|
-
return
|
|
1972
|
-
label:
|
|
2992
|
+
return g(Yi, {
|
|
2993
|
+
label: i,
|
|
1973
2994
|
value: s,
|
|
1974
|
-
onChange:
|
|
2995
|
+
onChange: a
|
|
1975
2996
|
});
|
|
1976
2997
|
}
|
|
1977
2998
|
})
|
|
@@ -1979,216 +3000,216 @@ const Vo = (t) => {
|
|
|
1979
3000
|
}
|
|
1980
3001
|
});
|
|
1981
3002
|
};
|
|
1982
|
-
var
|
|
1983
|
-
const
|
|
1984
|
-
const
|
|
3003
|
+
var ta = /* @__PURE__ */ 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)">');
|
|
3004
|
+
const Le = (e) => {
|
|
3005
|
+
const t = W({
|
|
1985
3006
|
readOnly: !0
|
|
1986
|
-
},
|
|
3007
|
+
}, e), [r] = ct(t, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
|
|
1987
3008
|
return (() => {
|
|
1988
|
-
var
|
|
1989
|
-
return
|
|
1990
|
-
|
|
1991
|
-
},
|
|
1992
|
-
var
|
|
1993
|
-
return
|
|
3009
|
+
var n = ta();
|
|
3010
|
+
return n.$$input = (o) => {
|
|
3011
|
+
r.onChange?.(o.currentTarget.value);
|
|
3012
|
+
}, F((o) => {
|
|
3013
|
+
var i = r.id, s = r.placeholder, a = r.ariaLabel, l = r.readOnly;
|
|
3014
|
+
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;
|
|
1994
3015
|
}, {
|
|
1995
3016
|
e: void 0,
|
|
1996
3017
|
t: void 0,
|
|
1997
3018
|
a: void 0,
|
|
1998
3019
|
o: void 0
|
|
1999
|
-
}),
|
|
3020
|
+
}), F(() => n.value = r.value), n;
|
|
2000
3021
|
})();
|
|
2001
3022
|
};
|
|
2002
|
-
|
|
2003
|
-
var
|
|
2004
|
-
const
|
|
3023
|
+
be(["input"]);
|
|
3024
|
+
var ra = /* @__PURE__ */ m('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');
|
|
3025
|
+
const na = ["mqtt", "ntfy", "gun"], oa = () => {
|
|
2005
3026
|
const {
|
|
2006
|
-
t
|
|
2007
|
-
} =
|
|
2008
|
-
settings:
|
|
2009
|
-
setSignalingProtocol:
|
|
2010
|
-
setSignalingOptions:
|
|
2011
|
-
} =
|
|
3027
|
+
t: e
|
|
3028
|
+
} = X(), {
|
|
3029
|
+
settings: t,
|
|
3030
|
+
setSignalingProtocol: r,
|
|
3031
|
+
setSignalingOptions: n
|
|
3032
|
+
} = Ge(), o = $(() => t()?.signaling?.p), i = $(() => {
|
|
2012
3033
|
const s = o();
|
|
2013
|
-
return s ?
|
|
3034
|
+
return s ? t()?.signaling?.s?.[s] ?? "" : "";
|
|
2014
3035
|
});
|
|
2015
3036
|
return (() => {
|
|
2016
|
-
var s =
|
|
2017
|
-
return
|
|
3037
|
+
var s = ra(), a = s.firstChild;
|
|
3038
|
+
return f(s, g(Fe, {
|
|
2018
3039
|
get title() {
|
|
2019
|
-
return
|
|
3040
|
+
return e("settings.signaling.title");
|
|
2020
3041
|
},
|
|
2021
3042
|
get children() {
|
|
2022
|
-
return [
|
|
3043
|
+
return [g(Ie, {
|
|
2023
3044
|
get label() {
|
|
2024
|
-
return
|
|
3045
|
+
return e("common.protocol");
|
|
2025
3046
|
},
|
|
2026
3047
|
get children() {
|
|
2027
|
-
return
|
|
3048
|
+
return g(gt, {
|
|
2028
3049
|
get options() {
|
|
2029
|
-
return
|
|
3050
|
+
return na.map((l) => [l.toLowerCase(), l.toUpperCase()]);
|
|
2030
3051
|
},
|
|
2031
3052
|
get value() {
|
|
2032
3053
|
return o() ?? "";
|
|
2033
3054
|
},
|
|
2034
|
-
onChange: (
|
|
3055
|
+
onChange: (l) => r(l)
|
|
2035
3056
|
});
|
|
2036
3057
|
}
|
|
2037
|
-
}),
|
|
3058
|
+
}), g(Ie, {
|
|
2038
3059
|
get label() {
|
|
2039
|
-
return
|
|
3060
|
+
return e("settings.signaling.server");
|
|
2040
3061
|
},
|
|
2041
3062
|
get children() {
|
|
2042
|
-
return
|
|
3063
|
+
return g(Le, {
|
|
2043
3064
|
id: "server",
|
|
2044
3065
|
get value() {
|
|
2045
|
-
return
|
|
3066
|
+
return i();
|
|
2046
3067
|
},
|
|
2047
|
-
onChange: (
|
|
2048
|
-
url:
|
|
3068
|
+
onChange: (l) => n({
|
|
3069
|
+
url: l
|
|
2049
3070
|
}),
|
|
2050
3071
|
get placeholder() {
|
|
2051
|
-
return String(
|
|
3072
|
+
return String(e("settings.signaling.serverUrl"));
|
|
2052
3073
|
},
|
|
2053
3074
|
get ariaLabel() {
|
|
2054
|
-
return String(
|
|
3075
|
+
return String(e("settings.signaling.serverUrl"));
|
|
2055
3076
|
},
|
|
2056
3077
|
readOnly: !1
|
|
2057
3078
|
});
|
|
2058
3079
|
}
|
|
2059
3080
|
})];
|
|
2060
3081
|
}
|
|
2061
|
-
}),
|
|
3082
|
+
}), a), f(a, () => e("settings.signaling.description")), s;
|
|
2062
3083
|
})();
|
|
2063
3084
|
};
|
|
2064
|
-
var
|
|
2065
|
-
const
|
|
2066
|
-
var
|
|
2067
|
-
return
|
|
3085
|
+
var ia = /* @__PURE__ */ m('<div class="flex items-center gap-2"><div class=flex-1>'), aa = /* @__PURE__ */ 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)">'), sa = /* @__PURE__ */ m('<div class="flex flex-col gap-2 p-2">'), la = /* @__PURE__ */ m('<div class="flex flex-col gap-3 p-2">'), ca = /* @__PURE__ */ m('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), da = /* @__PURE__ */ 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">');
|
|
3086
|
+
const cr = (e) => (() => {
|
|
3087
|
+
var t = ia(), r = t.firstChild;
|
|
3088
|
+
return f(r, () => e.children), f(t, g(Oe, {
|
|
2068
3089
|
get onClick() {
|
|
2069
|
-
return
|
|
3090
|
+
return e.onRemove;
|
|
2070
3091
|
},
|
|
2071
3092
|
$variant: "tertiary",
|
|
2072
3093
|
$aspect: "square",
|
|
2073
3094
|
$size: "sm",
|
|
2074
3095
|
get children() {
|
|
2075
|
-
return
|
|
3096
|
+
return g(ei, {
|
|
2076
3097
|
class: "h-4 w-4 text-(--lv-text-muted)"
|
|
2077
3098
|
});
|
|
2078
3099
|
}
|
|
2079
|
-
}), null),
|
|
2080
|
-
})(),
|
|
2081
|
-
var
|
|
2082
|
-
return
|
|
3100
|
+
}), null), t;
|
|
3101
|
+
})(), dr = (e) => (() => {
|
|
3102
|
+
var t = aa();
|
|
3103
|
+
return dt(t, "click", e.onClick, !0), f(t, g(Go, {
|
|
2083
3104
|
class: "h-4 w-4"
|
|
2084
|
-
}), null),
|
|
2085
|
-
})(),
|
|
3105
|
+
}), null), f(t, () => e.label, null), t;
|
|
3106
|
+
})(), ua = () => {
|
|
2086
3107
|
const {
|
|
2087
|
-
t
|
|
2088
|
-
} =
|
|
2089
|
-
|
|
2090
|
-
const [
|
|
2091
|
-
o([...
|
|
2092
|
-
}, s = (
|
|
2093
|
-
o(
|
|
2094
|
-
},
|
|
2095
|
-
o(
|
|
2096
|
-
},
|
|
2097
|
-
|
|
3108
|
+
t: e
|
|
3109
|
+
} = X();
|
|
3110
|
+
Ge();
|
|
3111
|
+
const [t, r] = D([]), [n, o] = D([]), i = () => {
|
|
3112
|
+
o([...n(), ""]);
|
|
3113
|
+
}, s = (c) => {
|
|
3114
|
+
o(n().filter((h, v) => v !== c));
|
|
3115
|
+
}, a = (c, h) => {
|
|
3116
|
+
o(n().map((v, b) => b === c ? h : v));
|
|
3117
|
+
}, l = () => {
|
|
3118
|
+
r([...t(), {
|
|
2098
3119
|
urls: ""
|
|
2099
3120
|
}]);
|
|
2100
|
-
}, d = (
|
|
2101
|
-
|
|
2102
|
-
}, u = (
|
|
2103
|
-
|
|
2104
|
-
...
|
|
2105
|
-
[
|
|
2106
|
-
} :
|
|
3121
|
+
}, d = (c) => {
|
|
3122
|
+
r(t().filter((h, v) => v !== c));
|
|
3123
|
+
}, u = (c, h, v) => {
|
|
3124
|
+
r(t().map((b, w) => w === c ? {
|
|
3125
|
+
...b,
|
|
3126
|
+
[h]: v
|
|
3127
|
+
} : b));
|
|
2107
3128
|
};
|
|
2108
|
-
return [
|
|
3129
|
+
return [g(Fe, {
|
|
2109
3130
|
get title() {
|
|
2110
|
-
return
|
|
3131
|
+
return e("settings.transport.iceServers.stun");
|
|
2111
3132
|
},
|
|
2112
3133
|
get children() {
|
|
2113
|
-
var
|
|
2114
|
-
return
|
|
3134
|
+
var c = sa();
|
|
3135
|
+
return f(c, g(ve, {
|
|
2115
3136
|
get each() {
|
|
2116
|
-
return
|
|
3137
|
+
return n();
|
|
2117
3138
|
},
|
|
2118
|
-
children: (
|
|
2119
|
-
onRemove: () => s(
|
|
3139
|
+
children: (h, v) => g(cr, {
|
|
3140
|
+
onRemove: () => s(v()),
|
|
2120
3141
|
get children() {
|
|
2121
|
-
return
|
|
2122
|
-
value:
|
|
2123
|
-
onChange: (
|
|
3142
|
+
return g(Le, {
|
|
3143
|
+
value: h,
|
|
3144
|
+
onChange: (b) => a(v(), b),
|
|
2124
3145
|
placeholder: "stun:stun.l.google.com:19302",
|
|
2125
3146
|
readOnly: !1
|
|
2126
3147
|
});
|
|
2127
3148
|
}
|
|
2128
3149
|
})
|
|
2129
|
-
}), null),
|
|
3150
|
+
}), null), f(c, g(dr, {
|
|
2130
3151
|
get label() {
|
|
2131
|
-
return
|
|
3152
|
+
return e("settings.transport.iceServers.addStun");
|
|
2132
3153
|
},
|
|
2133
|
-
onClick:
|
|
2134
|
-
}), null),
|
|
3154
|
+
onClick: i
|
|
3155
|
+
}), null), c;
|
|
2135
3156
|
}
|
|
2136
|
-
}),
|
|
3157
|
+
}), g(Fe, {
|
|
2137
3158
|
get title() {
|
|
2138
|
-
return
|
|
3159
|
+
return e("settings.transport.iceServers.turn");
|
|
2139
3160
|
},
|
|
2140
3161
|
get children() {
|
|
2141
|
-
var
|
|
2142
|
-
return
|
|
3162
|
+
var c = la();
|
|
3163
|
+
return f(c, g(ve, {
|
|
2143
3164
|
get each() {
|
|
2144
|
-
return
|
|
3165
|
+
return t();
|
|
2145
3166
|
},
|
|
2146
|
-
children: (
|
|
2147
|
-
var
|
|
2148
|
-
return
|
|
2149
|
-
onRemove: () => d(
|
|
3167
|
+
children: (h, v) => (() => {
|
|
3168
|
+
var b = da(), w = b.firstChild;
|
|
3169
|
+
return f(b, g(cr, {
|
|
3170
|
+
onRemove: () => d(v()),
|
|
2150
3171
|
get children() {
|
|
2151
|
-
return
|
|
3172
|
+
return g(Le, {
|
|
2152
3173
|
get value() {
|
|
2153
|
-
return
|
|
3174
|
+
return h.urls;
|
|
2154
3175
|
},
|
|
2155
|
-
onChange: (p) => u(
|
|
3176
|
+
onChange: (p) => u(v(), "urls", p),
|
|
2156
3177
|
placeholder: "turn:relay.example.com:443",
|
|
2157
3178
|
readOnly: !1
|
|
2158
3179
|
});
|
|
2159
3180
|
}
|
|
2160
|
-
}),
|
|
3181
|
+
}), w), f(w, g(Le, {
|
|
2161
3182
|
get value() {
|
|
2162
|
-
return
|
|
3183
|
+
return h.username ?? "";
|
|
2163
3184
|
},
|
|
2164
|
-
onChange: (p) => u(
|
|
3185
|
+
onChange: (p) => u(v(), "username", p),
|
|
2165
3186
|
placeholder: "Username",
|
|
2166
3187
|
readOnly: !1
|
|
2167
|
-
}), null),
|
|
3188
|
+
}), null), f(w, g(Le, {
|
|
2168
3189
|
get value() {
|
|
2169
|
-
return
|
|
3190
|
+
return h.credential ?? "";
|
|
2170
3191
|
},
|
|
2171
|
-
onChange: (p) => u(
|
|
3192
|
+
onChange: (p) => u(v(), "credential", p),
|
|
2172
3193
|
placeholder: "Password",
|
|
2173
3194
|
readOnly: !1
|
|
2174
|
-
}), null),
|
|
3195
|
+
}), null), b;
|
|
2175
3196
|
})()
|
|
2176
|
-
}), null),
|
|
3197
|
+
}), null), f(c, g(dr, {
|
|
2177
3198
|
get label() {
|
|
2178
|
-
return
|
|
3199
|
+
return e("settings.transport.iceServers.addTurn");
|
|
2179
3200
|
},
|
|
2180
|
-
onClick:
|
|
2181
|
-
}), null),
|
|
3201
|
+
onClick: l
|
|
3202
|
+
}), null), c;
|
|
2182
3203
|
}
|
|
2183
3204
|
}), (() => {
|
|
2184
|
-
var
|
|
2185
|
-
return
|
|
3205
|
+
var c = ca();
|
|
3206
|
+
return f(c, () => e("settings.transport.description")), c;
|
|
2186
3207
|
})()];
|
|
2187
3208
|
};
|
|
2188
|
-
|
|
2189
|
-
var
|
|
2190
|
-
const
|
|
2191
|
-
switch (
|
|
3209
|
+
be(["click"]);
|
|
3210
|
+
var ga = /* @__PURE__ */ m('<div class="px-4 pb-2">');
|
|
3211
|
+
const fa = (e) => {
|
|
3212
|
+
switch (e) {
|
|
2192
3213
|
case "main":
|
|
2193
3214
|
return "settings.title";
|
|
2194
3215
|
case "signaling":
|
|
@@ -2196,238 +3217,240 @@ const Xo = (t) => {
|
|
|
2196
3217
|
case "transport":
|
|
2197
3218
|
return "settings.transport.title";
|
|
2198
3219
|
}
|
|
2199
|
-
},
|
|
3220
|
+
}, ha = (e) => {
|
|
2200
3221
|
const {
|
|
2201
|
-
screen:
|
|
2202
|
-
previousScreen:
|
|
2203
|
-
isTransitioning:
|
|
3222
|
+
screen: t,
|
|
3223
|
+
previousScreen: r,
|
|
3224
|
+
isTransitioning: n,
|
|
2204
3225
|
navigate: o,
|
|
2205
|
-
goBack:
|
|
3226
|
+
goBack: i,
|
|
2206
3227
|
isAtRoot: s
|
|
2207
|
-
} =
|
|
2208
|
-
goBack:
|
|
3228
|
+
} = Bi("main"), a = {
|
|
3229
|
+
goBack: i,
|
|
2209
3230
|
get isAtRoot() {
|
|
2210
3231
|
return s();
|
|
2211
3232
|
}
|
|
2212
3233
|
};
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
}),
|
|
2216
|
-
|
|
3234
|
+
ee(() => {
|
|
3235
|
+
e.navigationRef && (e.navigationRef.current = a);
|
|
3236
|
+
}), ee(() => {
|
|
3237
|
+
e.onTitleChange?.(fa(t()));
|
|
2217
3238
|
});
|
|
2218
|
-
const
|
|
3239
|
+
const l = (d) => {
|
|
2219
3240
|
switch (d) {
|
|
2220
3241
|
case "main":
|
|
2221
|
-
return [
|
|
3242
|
+
return [g(ea, {
|
|
2222
3243
|
onNavigate: o
|
|
2223
|
-
}),
|
|
3244
|
+
}), g(Hi, {})];
|
|
2224
3245
|
case "signaling":
|
|
2225
|
-
return
|
|
3246
|
+
return g(oa, {});
|
|
2226
3247
|
case "transport":
|
|
2227
|
-
return
|
|
3248
|
+
return g(ua, {});
|
|
2228
3249
|
}
|
|
2229
3250
|
};
|
|
2230
3251
|
return (() => {
|
|
2231
|
-
var d =
|
|
2232
|
-
return
|
|
3252
|
+
var d = ga();
|
|
3253
|
+
return f(d, g(ji, {
|
|
2233
3254
|
get current() {
|
|
2234
|
-
return
|
|
3255
|
+
return t();
|
|
2235
3256
|
},
|
|
2236
3257
|
get previous() {
|
|
2237
|
-
return
|
|
3258
|
+
return r();
|
|
2238
3259
|
},
|
|
2239
3260
|
get isTransitioning() {
|
|
2240
|
-
return
|
|
3261
|
+
return n();
|
|
2241
3262
|
},
|
|
2242
|
-
render:
|
|
3263
|
+
render: l
|
|
2243
3264
|
})), d;
|
|
2244
3265
|
})();
|
|
2245
3266
|
};
|
|
2246
|
-
var
|
|
2247
|
-
const
|
|
2248
|
-
const [
|
|
2249
|
-
return
|
|
2250
|
-
if (!
|
|
2251
|
-
const o = globalThis.setTimeout(() =>
|
|
2252
|
-
|
|
3267
|
+
var va = /* @__PURE__ */ m("<div class=modal-transition__container><div>"), pa = /* @__PURE__ */ m('<div class="modal-transition__layer modal-transition__layer--outgoing">'), ba = /* @__PURE__ */ 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>');
|
|
3268
|
+
const ma = () => {
|
|
3269
|
+
const [e, t] = D("start"), [r, n] = D(!1);
|
|
3270
|
+
return ee(() => {
|
|
3271
|
+
if (!r()) return;
|
|
3272
|
+
const o = globalThis.setTimeout(() => n(!1), 2e3);
|
|
3273
|
+
te(() => globalThis.clearTimeout(o));
|
|
2253
3274
|
}), {
|
|
2254
|
-
view:
|
|
2255
|
-
setView:
|
|
2256
|
-
copied:
|
|
2257
|
-
setCopied:
|
|
3275
|
+
view: e,
|
|
3276
|
+
setView: t,
|
|
3277
|
+
copied: r,
|
|
3278
|
+
setCopied: n
|
|
2258
3279
|
};
|
|
2259
|
-
},
|
|
2260
|
-
|
|
2261
|
-
const
|
|
2262
|
-
|
|
3280
|
+
}, ya = (e) => {
|
|
3281
|
+
ee(() => {
|
|
3282
|
+
const t = (r) => {
|
|
3283
|
+
r.key === "Escape" && e();
|
|
2263
3284
|
};
|
|
2264
|
-
document.addEventListener("keydown",
|
|
3285
|
+
document.addEventListener("keydown", t), te(() => document.removeEventListener("keydown", t));
|
|
2265
3286
|
});
|
|
2266
|
-
},
|
|
2267
|
-
const [
|
|
2268
|
-
const
|
|
2269
|
-
if (!
|
|
2270
|
-
const
|
|
2271
|
-
|
|
3287
|
+
}, wa = () => {
|
|
3288
|
+
const [e, t] = D(), [r, n] = D(0), o = (s, a = !1) => {
|
|
3289
|
+
const l = s || e();
|
|
3290
|
+
if (!l || !l.getBoundingClientRect) return;
|
|
3291
|
+
const d = a ? l.scrollHeight : l.getBoundingClientRect().height;
|
|
3292
|
+
d > 0 && n((u) => typeof u == "number" && Math.abs(u - d) < 0.5 ? u : d);
|
|
2272
3293
|
};
|
|
2273
|
-
|
|
2274
|
-
const
|
|
2275
|
-
if (!
|
|
2276
|
-
const
|
|
3294
|
+
ee(() => {
|
|
3295
|
+
const s = e();
|
|
3296
|
+
if (!s || typeof ResizeObserver > "u") return;
|
|
3297
|
+
const a = new ResizeObserver(() => {
|
|
2277
3298
|
o();
|
|
2278
3299
|
});
|
|
2279
|
-
|
|
2280
|
-
})
|
|
2281
|
-
|
|
3300
|
+
a.observe(s), te(() => a.disconnect());
|
|
3301
|
+
});
|
|
3302
|
+
const i = () => o();
|
|
3303
|
+
return ee(() => {
|
|
3304
|
+
globalThis.window !== void 0 && (window.addEventListener("resize", i), te(() => window.removeEventListener("resize", i)));
|
|
2282
3305
|
}), {
|
|
2283
|
-
setContentRef:
|
|
2284
|
-
contentNode:
|
|
2285
|
-
height:
|
|
3306
|
+
setContentRef: t,
|
|
3307
|
+
contentNode: e,
|
|
3308
|
+
height: r,
|
|
2286
3309
|
measureHeight: o
|
|
2287
3310
|
};
|
|
2288
|
-
},
|
|
3311
|
+
}, xa = (e) => {
|
|
2289
3312
|
const {
|
|
2290
|
-
view:
|
|
2291
|
-
setView:
|
|
2292
|
-
copied:
|
|
3313
|
+
view: t,
|
|
3314
|
+
setView: r,
|
|
3315
|
+
copied: n,
|
|
2293
3316
|
setCopied: o
|
|
2294
|
-
} =
|
|
2295
|
-
uri:
|
|
3317
|
+
} = ma(), {
|
|
3318
|
+
uri: i,
|
|
2296
3319
|
status: s
|
|
2297
|
-
} =
|
|
2298
|
-
provider:
|
|
2299
|
-
} =
|
|
2300
|
-
setContentRef:
|
|
3320
|
+
} = Ke(), {
|
|
3321
|
+
provider: a
|
|
3322
|
+
} = Re(), {
|
|
3323
|
+
setContentRef: l,
|
|
2301
3324
|
contentNode: d,
|
|
2302
3325
|
height: u,
|
|
2303
|
-
measureHeight:
|
|
2304
|
-
} =
|
|
2305
|
-
current:
|
|
2306
|
-
previous:
|
|
2307
|
-
isTransitioning:
|
|
2308
|
-
} =
|
|
2309
|
-
current:
|
|
3326
|
+
measureHeight: c
|
|
3327
|
+
} = wa(), {
|
|
3328
|
+
current: h,
|
|
3329
|
+
previous: v,
|
|
3330
|
+
isTransitioning: b
|
|
3331
|
+
} = Nt(t), {
|
|
3332
|
+
current: w,
|
|
2310
3333
|
previous: p,
|
|
2311
|
-
isTransitioning:
|
|
2312
|
-
} =
|
|
3334
|
+
isTransitioning: P
|
|
3335
|
+
} = Nt(s), S = () => r("settings"), {
|
|
2313
3336
|
t: y,
|
|
2314
|
-
isRtl:
|
|
2315
|
-
languageTag:
|
|
2316
|
-
} =
|
|
3337
|
+
isRtl: z,
|
|
3338
|
+
languageTag: E
|
|
3339
|
+
} = X(), Ae = Vr(), $e = {
|
|
2317
3340
|
current: null
|
|
2318
|
-
}, [
|
|
2319
|
-
|
|
2320
|
-
s()?.status ===
|
|
3341
|
+
}, [ft, We] = D("settings.title"), Pe = $(() => ke(t()).with("start", () => y("start.title")).with("settings", () => y(ft())).with("info", () => y("info.title")).exhaustive());
|
|
3342
|
+
ya(e.onClose), ee(() => {
|
|
3343
|
+
s()?.status === oe.CONNECTED && e.onClose();
|
|
2321
3344
|
});
|
|
2322
|
-
const
|
|
2323
|
-
const
|
|
2324
|
-
|
|
3345
|
+
const He = async () => {
|
|
3346
|
+
const _ = i();
|
|
3347
|
+
_ && await Br(_) && o(!0);
|
|
2325
3348
|
};
|
|
2326
|
-
let
|
|
2327
|
-
const [
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
d() && (
|
|
2331
|
-
}, 0)) :
|
|
2332
|
-
|
|
3349
|
+
let qe = !0, ye, k, C;
|
|
3350
|
+
const [A, O] = D(!1);
|
|
3351
|
+
ee(() => {
|
|
3352
|
+
w(), h(), d() && (qe ? (ye && globalThis.clearTimeout(ye), ye = globalThis.setTimeout(() => {
|
|
3353
|
+
d() && (c(void 0, !0), qe = !1);
|
|
3354
|
+
}, 0)) : c(), te(() => {
|
|
3355
|
+
ye && globalThis.clearTimeout(ye);
|
|
2333
3356
|
}));
|
|
2334
|
-
}),
|
|
2335
|
-
const
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
}, 200)),
|
|
2339
|
-
|
|
3357
|
+
}), ee(() => {
|
|
3358
|
+
const _ = u();
|
|
3359
|
+
k !== void 0 && _ !== k && _ > 0 && k > 0 && Math.abs(_ - k) > 0.5 && (O(!0), C && globalThis.clearTimeout(C), C = globalThis.setTimeout(() => {
|
|
3360
|
+
O(!1), C = void 0;
|
|
3361
|
+
}, 200)), k = _, te(() => {
|
|
3362
|
+
C && globalThis.clearTimeout(C);
|
|
2340
3363
|
});
|
|
2341
3364
|
});
|
|
2342
|
-
const [
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
}),
|
|
2346
|
-
|
|
3365
|
+
const [T, B] = D(a.getState().status);
|
|
3366
|
+
Et(() => {
|
|
3367
|
+
a.on("status_change", B);
|
|
3368
|
+
}), te(() => {
|
|
3369
|
+
a.off("status_change", B);
|
|
2347
3370
|
});
|
|
2348
|
-
const
|
|
2349
|
-
|
|
2350
|
-
view:
|
|
2351
|
-
status:
|
|
3371
|
+
const H = $(() => !(t() === "start" && T() === oe.STANDBY)), ie = () => {
|
|
3372
|
+
ke({
|
|
3373
|
+
view: t(),
|
|
3374
|
+
status: T()
|
|
2352
3375
|
}).with({
|
|
2353
3376
|
view: "start",
|
|
2354
|
-
status:
|
|
3377
|
+
status: oe.STANDBY
|
|
2355
3378
|
}, () => {
|
|
2356
3379
|
}).with({
|
|
2357
3380
|
view: "start"
|
|
2358
3381
|
}, () => {
|
|
2359
|
-
|
|
3382
|
+
a.closeSession();
|
|
2360
3383
|
}).with({
|
|
2361
3384
|
view: "settings"
|
|
2362
3385
|
}, () => {
|
|
2363
|
-
|
|
3386
|
+
$e.current && !$e.current.isAtRoot ? $e.current.goBack() : r("start");
|
|
2364
3387
|
}).with({
|
|
2365
3388
|
view: "info"
|
|
2366
3389
|
}, () => {
|
|
2367
|
-
|
|
3390
|
+
r("start");
|
|
2368
3391
|
}).otherwise(() => {
|
|
2369
|
-
|
|
3392
|
+
a.closeSession(), e.onClose();
|
|
2370
3393
|
});
|
|
2371
|
-
},
|
|
2372
|
-
onSettings:
|
|
2373
|
-
})).with("settings", () =>
|
|
2374
|
-
onTitleChange:
|
|
2375
|
-
navigationRef:
|
|
2376
|
-
})).with("info", () =>
|
|
2377
|
-
state:
|
|
2378
|
-
})),
|
|
2379
|
-
var
|
|
2380
|
-
return
|
|
3394
|
+
}, U = (_) => ke(_).with("start", () => g(Ci, {
|
|
3395
|
+
onSettings: S
|
|
3396
|
+
})).with("settings", () => g(ha, {
|
|
3397
|
+
onTitleChange: We,
|
|
3398
|
+
navigationRef: $e
|
|
3399
|
+
})).with("info", () => g(Ai, {})).otherwise(() => g(Tt, {
|
|
3400
|
+
state: _
|
|
3401
|
+
})), re = () => (() => {
|
|
3402
|
+
var _ = va(), Q = _.firstChild;
|
|
3403
|
+
return f(_, g(Se, {
|
|
2381
3404
|
get when() {
|
|
2382
|
-
return
|
|
3405
|
+
return v();
|
|
2383
3406
|
},
|
|
2384
|
-
children: (
|
|
2385
|
-
var
|
|
2386
|
-
return
|
|
3407
|
+
children: (we) => (() => {
|
|
3408
|
+
var Be = pa();
|
|
3409
|
+
return f(Be, () => U(we())), Be;
|
|
2387
3410
|
})()
|
|
2388
|
-
}),
|
|
2389
|
-
})(),
|
|
3411
|
+
}), Q), f(Q, () => U(h())), F(() => Y(Q, he("modal-transition__layer", b() && "modal-transition__layer--incoming"))), _;
|
|
3412
|
+
})(), ce = (_) => ke(_).with(oe.STANDBY, () => re()).with(In.union(oe.CREATING, oe.CONNECTING, oe.CONNECTED), () => g(To, {
|
|
2390
3413
|
get onClose() {
|
|
2391
|
-
return
|
|
3414
|
+
return e.onClose;
|
|
2392
3415
|
},
|
|
2393
|
-
onCopy:
|
|
2394
|
-
})).otherwise((
|
|
2395
|
-
state:
|
|
2396
|
-
})),
|
|
3416
|
+
onCopy: He
|
|
3417
|
+
})).otherwise((Q) => g(Tt, {
|
|
3418
|
+
state: Q || "unknown status"
|
|
3419
|
+
})), ne = {
|
|
2397
3420
|
background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
|
|
2398
3421
|
"backdrop-filter": "var(--lv-overlay-backdrop-filter, blur(4px))"
|
|
2399
|
-
},
|
|
3422
|
+
}, Te = {
|
|
2400
3423
|
background: "var(--lv-body-background)",
|
|
2401
3424
|
color: "var(--lv-body-color, var(--lv-text-primary))",
|
|
2402
3425
|
"border-radius": "var(--lv-border-radius, 16px)",
|
|
2403
3426
|
"box-shadow": "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
|
|
2404
3427
|
};
|
|
2405
3428
|
return (() => {
|
|
2406
|
-
var
|
|
2407
|
-
return
|
|
2408
|
-
|
|
2409
|
-
},
|
|
3429
|
+
var _ = ba(), Q = _.firstChild, we = Q.firstChild, Be = we.firstChild, Bt = Be.firstChild, Fr = Bt.firstChild, Lt = we.nextSibling;
|
|
3430
|
+
return _.$$mouseup = (L) => {
|
|
3431
|
+
L.target === L.currentTarget && e.onClose();
|
|
3432
|
+
}, xt(_, ne), Q.$$click = (L) => L.stopPropagation(), Sr(l, we), f(we, g(Pi, {
|
|
2410
3433
|
get title() {
|
|
2411
|
-
return String(
|
|
3434
|
+
return String(Pe());
|
|
2412
3435
|
},
|
|
2413
3436
|
get view() {
|
|
2414
|
-
return
|
|
3437
|
+
return t();
|
|
2415
3438
|
},
|
|
2416
3439
|
get onClose() {
|
|
2417
|
-
return
|
|
3440
|
+
return e.onClose;
|
|
2418
3441
|
},
|
|
2419
3442
|
get onBack() {
|
|
2420
|
-
return
|
|
3443
|
+
return H() ? ie : void 0;
|
|
2421
3444
|
},
|
|
2422
|
-
setView:
|
|
2423
|
-
}),
|
|
2424
|
-
var
|
|
3445
|
+
setView: r
|
|
3446
|
+
}), Be), f(Fr, () => ce(T())), f(we, g(Oi, {}), null), f(Lt, () => y("modal.urlCopied")), F((L) => {
|
|
3447
|
+
var Mt = Ae.mode(), jt = E(), Dt = z() ? "rtl" : "ltr", Vt = 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), Ft = String(Pe()), Ir = {
|
|
2425
3448
|
...typeof u() == "number" && u() > 0 ? {
|
|
2426
3449
|
height: `${u()}px`
|
|
2427
3450
|
} : {},
|
|
2428
|
-
...
|
|
2429
|
-
},
|
|
2430
|
-
return
|
|
3451
|
+
...Te
|
|
3452
|
+
}, It = he("modal-transition__layer", P() && "modal-transition__layer--incoming"), zt = 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");
|
|
3453
|
+
return Mt !== L.e && Z(_, "data-openlv-theme-mode", L.e = Mt), jt !== L.t && Z(_, "lang", L.t = jt), Dt !== L.a && Z(_, "dir", L.a = Dt), Vt !== L.o && Y(Q, L.o = Vt), Ft !== L.i && Z(Q, "aria-label", L.i = Ft), L.n = xt(Q, Ir, L.n), It !== L.s && Y(Bt, L.s = It), zt !== L.h && Y(Lt, L.h = zt), L;
|
|
2431
3454
|
}, {
|
|
2432
3455
|
e: void 0,
|
|
2433
3456
|
t: void 0,
|
|
@@ -2437,45 +3460,45 @@ const ra = () => {
|
|
|
2437
3460
|
n: void 0,
|
|
2438
3461
|
s: void 0,
|
|
2439
3462
|
h: void 0
|
|
2440
|
-
}),
|
|
3463
|
+
}), _;
|
|
2441
3464
|
})();
|
|
2442
3465
|
};
|
|
2443
|
-
|
|
2444
|
-
const
|
|
3466
|
+
be(["mouseup", "click"]);
|
|
3467
|
+
const ka = (...e) => console.log(
|
|
2445
3468
|
"%c[modal]%c",
|
|
2446
3469
|
"color: yellow; font-weight: bold",
|
|
2447
3470
|
"color: inherit; font-weight: normal",
|
|
2448
|
-
...
|
|
2449
|
-
),
|
|
3471
|
+
...e
|
|
3472
|
+
), Ca = (e = "openlv-modal") => {
|
|
2450
3473
|
if (globalThis.window === void 0)
|
|
2451
|
-
return
|
|
2452
|
-
const
|
|
2453
|
-
return
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
),
|
|
3474
|
+
return e;
|
|
3475
|
+
const t = globalThis.customElements;
|
|
3476
|
+
return t ? (t.get(e) || t.define(
|
|
3477
|
+
e,
|
|
3478
|
+
Or
|
|
3479
|
+
), e) : (console.warn(
|
|
2457
3480
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
2458
|
-
),
|
|
2459
|
-
},
|
|
2460
|
-
const
|
|
2461
|
-
if (
|
|
2462
|
-
|
|
2463
|
-
const
|
|
3481
|
+
), e);
|
|
3482
|
+
}, Aa = (e) => {
|
|
3483
|
+
const t = document.querySelector("openlv-modal");
|
|
3484
|
+
if (t && t.remove(), !t) {
|
|
3485
|
+
Ca();
|
|
3486
|
+
const r = new Or({
|
|
2464
3487
|
onClose() {
|
|
2465
|
-
|
|
3488
|
+
ka("modal closed"), r.remove(), e.onClose?.();
|
|
2466
3489
|
},
|
|
2467
|
-
provider:
|
|
2468
|
-
theme:
|
|
3490
|
+
provider: e.provider,
|
|
3491
|
+
theme: e.theme
|
|
2469
3492
|
});
|
|
2470
|
-
document.body.append(
|
|
3493
|
+
document.body.append(r);
|
|
2471
3494
|
}
|
|
2472
3495
|
};
|
|
2473
3496
|
export {
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
3497
|
+
xa as ModalRoot,
|
|
3498
|
+
$i as OPENLV_ICON_128,
|
|
3499
|
+
Or as OpenLVModalElement,
|
|
3500
|
+
Or as default,
|
|
3501
|
+
Ca as registerOpenLVModal,
|
|
3502
|
+
Aa as triggerOpenModal
|
|
2480
3503
|
};
|
|
2481
3504
|
//# sourceMappingURL=index.es.js.map
|