@openlv/modal 0.0.3 → 0.1.0
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/flow/ErrorScreen.d.ts +8 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +743 -697
- package/dist/index.es.js.map +1 -1
- package/dist/modal.css +1 -1
- package/dist/ui/Button.d.ts +2 -2
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
equals:
|
|
1
|
+
var hn = Object.defineProperty;
|
|
2
|
+
var gn = (t, e, r) => e in t ? hn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var te = (t, e, r) => gn(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
const vn = (t, e) => t === e, ct = /* @__PURE__ */ Symbol("solid-proxy"), Br = typeof Proxy == "function", pn = /* @__PURE__ */ Symbol("solid-track"), dt = {
|
|
5
|
+
equals: vn
|
|
6
6
|
};
|
|
7
|
-
let
|
|
8
|
-
const
|
|
7
|
+
let Rr = Vr;
|
|
8
|
+
const Se = 1, ut = 2, Mr = {
|
|
9
9
|
owned: null,
|
|
10
10
|
cleanups: null,
|
|
11
11
|
context: null,
|
|
12
12
|
owner: null
|
|
13
13
|
};
|
|
14
14
|
var M = null;
|
|
15
|
-
let Ct = null,
|
|
15
|
+
let Ct = null, mn = null, L = null, W = null, ge = null, bt = 0;
|
|
16
16
|
function at(t, e) {
|
|
17
|
-
const r = L, n = M, o = t.length === 0, i = e === void 0 ? n : e, a = o ?
|
|
17
|
+
const r = L, n = M, o = t.length === 0, i = e === void 0 ? n : e, a = o ? Mr : {
|
|
18
18
|
owned: null,
|
|
19
19
|
cleanups: null,
|
|
20
20
|
context: i ? i.context : null,
|
|
21
21
|
owner: i
|
|
22
|
-
}, s = o ? t : () => t(() =>
|
|
22
|
+
}, s = o ? t : () => t(() => Y(() => Ge(a)));
|
|
23
23
|
M = a, L = null;
|
|
24
24
|
try {
|
|
25
25
|
return Ze(s, !0);
|
|
@@ -34,24 +34,24 @@ function D(t, e) {
|
|
|
34
34
|
observers: null,
|
|
35
35
|
observerSlots: null,
|
|
36
36
|
comparator: e.equals || void 0
|
|
37
|
-
}, n = (o) => (typeof o == "function" && (o = o(r.value)),
|
|
38
|
-
return [
|
|
37
|
+
}, n = (o) => (typeof o == "function" && (o = o(r.value)), Dr(r, o));
|
|
38
|
+
return [jr.bind(r), n];
|
|
39
39
|
}
|
|
40
40
|
function z(t, e, r) {
|
|
41
|
-
const n = Ft(t, e, !1,
|
|
41
|
+
const n = Ft(t, e, !1, Se);
|
|
42
42
|
Je(n);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
|
|
46
|
-
const n = Ft(t, e, !1,
|
|
44
|
+
function ie(t, e, r) {
|
|
45
|
+
Rr = yn;
|
|
46
|
+
const n = Ft(t, e, !1, Se);
|
|
47
47
|
n.user = !0, ge ? ge.push(n) : Je(n);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function T(t, e, r) {
|
|
50
50
|
r = r ? Object.assign({}, dt, r) : dt;
|
|
51
51
|
const n = Ft(t, e, !0, 0);
|
|
52
|
-
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Je(n),
|
|
52
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Je(n), jr.bind(n);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Y(t) {
|
|
55
55
|
if (L === null) return t();
|
|
56
56
|
const e = L;
|
|
57
57
|
L = null;
|
|
@@ -62,33 +62,33 @@ function J(t) {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function Vt(t) {
|
|
65
|
-
|
|
65
|
+
ie(() => Y(t));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function se(t) {
|
|
68
68
|
return M === null || (M.cleanups === null ? M.cleanups = [t] : M.cleanups.push(t)), t;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Or(t, e) {
|
|
71
71
|
const r = /* @__PURE__ */ Symbol("context");
|
|
72
72
|
return {
|
|
73
73
|
id: r,
|
|
74
|
-
Provider:
|
|
74
|
+
Provider: kn(r),
|
|
75
75
|
defaultValue: t
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function Ir(t) {
|
|
79
79
|
let e;
|
|
80
80
|
return M && M.context && (e = M.context[t.id]) !== void 0 ? e : t.defaultValue;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
const e =
|
|
82
|
+
function Lr(t) {
|
|
83
|
+
const e = T(t), r = T(() => _t(e()));
|
|
84
84
|
return r.toArray = () => {
|
|
85
85
|
const n = r();
|
|
86
86
|
return Array.isArray(n) ? n : n != null ? [n] : [];
|
|
87
87
|
}, r;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function jr() {
|
|
90
90
|
if (this.sources && this.state)
|
|
91
|
-
if (this.state ===
|
|
91
|
+
if (this.state === Se) Je(this);
|
|
92
92
|
else {
|
|
93
93
|
const t = W;
|
|
94
94
|
W = null, Ze(() => ht(this), !1), W = t;
|
|
@@ -102,12 +102,12 @@ function Lr() {
|
|
|
102
102
|
}
|
|
103
103
|
return this.value;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Dr(t, e, r) {
|
|
106
106
|
let n = t.value;
|
|
107
107
|
return (!t.comparator || !t.comparator(n, e)) && (t.value = e, t.observers && t.observers.length && Ze(() => {
|
|
108
108
|
for (let o = 0; o < t.observers.length; o += 1) {
|
|
109
109
|
const i = t.observers[o], a = Ct && Ct.running;
|
|
110
|
-
a && Ct.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? W.push(i) : ge.push(i), i.observers &&
|
|
110
|
+
a && Ct.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? W.push(i) : ge.push(i), i.observers && Fr(i)), a || (i.state = Se);
|
|
111
111
|
}
|
|
112
112
|
if (W.length > 1e6)
|
|
113
113
|
throw W = [], new Error();
|
|
@@ -117,22 +117,22 @@ function Je(t) {
|
|
|
117
117
|
if (!t.fn) return;
|
|
118
118
|
Ge(t);
|
|
119
119
|
const e = bt;
|
|
120
|
-
|
|
120
|
+
bn(t, t.value, e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function bn(t, e, r) {
|
|
123
123
|
let n;
|
|
124
124
|
const o = M, i = L;
|
|
125
125
|
L = M = t;
|
|
126
126
|
try {
|
|
127
127
|
n = t.fn(e);
|
|
128
128
|
} catch (a) {
|
|
129
|
-
return t.pure && (t.state =
|
|
129
|
+
return t.pure && (t.state = Se, t.owned && t.owned.forEach(Ge), t.owned = null), t.updatedAt = r + 1, zr(a);
|
|
130
130
|
} finally {
|
|
131
131
|
L = i, M = o;
|
|
132
132
|
}
|
|
133
|
-
(!t.updatedAt || t.updatedAt <= r) && (t.updatedAt != null && "observers" in t ?
|
|
133
|
+
(!t.updatedAt || t.updatedAt <= r) && (t.updatedAt != null && "observers" in t ? Dr(t, n) : t.value = n, t.updatedAt = r);
|
|
134
134
|
}
|
|
135
|
-
function Ft(t, e, r, n =
|
|
135
|
+
function Ft(t, e, r, n = Se, o) {
|
|
136
136
|
const i = {
|
|
137
137
|
fn: t,
|
|
138
138
|
state: n,
|
|
@@ -146,17 +146,17 @@ function Ft(t, e, r, n = Ce, o) {
|
|
|
146
146
|
context: M ? M.context : null,
|
|
147
147
|
pure: r
|
|
148
148
|
};
|
|
149
|
-
return M === null || M !==
|
|
149
|
+
return M === null || M !== Mr && (M.owned ? M.owned.push(i) : M.owned = [i]), i;
|
|
150
150
|
}
|
|
151
151
|
function ft(t) {
|
|
152
152
|
if (t.state === 0) return;
|
|
153
153
|
if (t.state === ut) return ht(t);
|
|
154
|
-
if (t.suspense &&
|
|
154
|
+
if (t.suspense && Y(t.suspense.inFallback)) return t.suspense.effects.push(t);
|
|
155
155
|
const e = [t];
|
|
156
156
|
for (; (t = t.owner) && (!t.updatedAt || t.updatedAt < bt); )
|
|
157
157
|
t.state && e.push(t);
|
|
158
158
|
for (let r = e.length - 1; r >= 0; r--)
|
|
159
|
-
if (t = e[r], t.state ===
|
|
159
|
+
if (t = e[r], t.state === Se)
|
|
160
160
|
Je(t);
|
|
161
161
|
else if (t.state === ut) {
|
|
162
162
|
const n = W;
|
|
@@ -169,20 +169,20 @@ function Ze(t, e) {
|
|
|
169
169
|
e || (W = []), ge ? r = !0 : ge = [], bt++;
|
|
170
170
|
try {
|
|
171
171
|
const n = t();
|
|
172
|
-
return
|
|
172
|
+
return wn(r), n;
|
|
173
173
|
} catch (n) {
|
|
174
|
-
r || (ge = null), W = null,
|
|
174
|
+
r || (ge = null), W = null, zr(n);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
if (W && (
|
|
177
|
+
function wn(t) {
|
|
178
|
+
if (W && (Vr(W), W = null), t) return;
|
|
179
179
|
const e = ge;
|
|
180
|
-
ge = null, e.length && Ze(() =>
|
|
180
|
+
ge = null, e.length && Ze(() => Rr(e), !1);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Vr(t) {
|
|
183
183
|
for (let e = 0; e < t.length; e++) ft(t[e]);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function yn(t) {
|
|
186
186
|
let e, r = 0;
|
|
187
187
|
for (e = 0; e < t.length; e++) {
|
|
188
188
|
const n = t[e];
|
|
@@ -196,14 +196,14 @@ function ht(t, e) {
|
|
|
196
196
|
const n = t.sources[r];
|
|
197
197
|
if (n.sources) {
|
|
198
198
|
const o = n.state;
|
|
199
|
-
o ===
|
|
199
|
+
o === Se ? n !== e && (!n.updatedAt || n.updatedAt < bt) && ft(n) : o === ut && ht(n, e);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Fr(t) {
|
|
204
204
|
for (let e = 0; e < t.observers.length; e += 1) {
|
|
205
205
|
const r = t.observers[e];
|
|
206
|
-
r.state || (r.state = ut, r.pure ? W.push(r) : ge.push(r), r.observers &&
|
|
206
|
+
r.state || (r.state = ut, r.pure ? W.push(r) : ge.push(r), r.observers && Fr(r));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
function Ge(t) {
|
|
@@ -230,13 +230,13 @@ function Ge(t) {
|
|
|
230
230
|
}
|
|
231
231
|
t.state = 0;
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function xn(t) {
|
|
234
234
|
return t instanceof Error ? t : new Error(typeof t == "string" ? t : "Unknown error", {
|
|
235
235
|
cause: t
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
throw
|
|
238
|
+
function zr(t, e = M) {
|
|
239
|
+
throw xn(t);
|
|
240
240
|
}
|
|
241
241
|
function _t(t) {
|
|
242
242
|
if (typeof t == "function" && !t.length) return _t(t());
|
|
@@ -254,27 +254,27 @@ function _t(t) {
|
|
|
254
254
|
}
|
|
255
255
|
return t;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function kn(t, e) {
|
|
258
258
|
return function(n) {
|
|
259
259
|
let o;
|
|
260
|
-
return z(() => o =
|
|
260
|
+
return z(() => o = Y(() => (M.context = {
|
|
261
261
|
...M.context,
|
|
262
262
|
[t]: n.value
|
|
263
|
-
},
|
|
263
|
+
}, Lr(() => n.children))), void 0), o;
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
const
|
|
266
|
+
const Cn = /* @__PURE__ */ Symbol("fallback");
|
|
267
267
|
function er(t) {
|
|
268
268
|
for (let e = 0; e < t.length; e++) t[e]();
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Sn(t, e, r = {}) {
|
|
271
271
|
let n = [], o = [], i = [], a = 0, s = e.length > 1 ? [] : null;
|
|
272
|
-
return
|
|
272
|
+
return se(() => er(i)), () => {
|
|
273
273
|
let l = t() || [], d = l.length, u, c;
|
|
274
|
-
return l[
|
|
274
|
+
return l[pn], Y(() => {
|
|
275
275
|
let h, g, b, p, C, k, y, F, _;
|
|
276
276
|
if (d === 0)
|
|
277
|
-
a !== 0 && (er(i), i = [], n = [], o = [], a = 0, s && (s = [])), r.fallback && (n = [
|
|
277
|
+
a !== 0 && (er(i), i = [], n = [], o = [], a = 0, s && (s = [])), r.fallback && (n = [Cn], o[0] = at((pe) => (i[0] = pe, r.fallback())), a = 1);
|
|
278
278
|
else if (a === 0) {
|
|
279
279
|
for (o = new Array(d), c = 0; c < d; c++)
|
|
280
280
|
n[c] = l[c], o[c] = at(f);
|
|
@@ -303,7 +303,7 @@ function Cn(t, e, r = {}) {
|
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
function v(t, e) {
|
|
306
|
-
return
|
|
306
|
+
return Y(() => t(e || {}));
|
|
307
307
|
}
|
|
308
308
|
function ot() {
|
|
309
309
|
return !0;
|
|
@@ -335,7 +335,7 @@ const Nt = {
|
|
|
335
335
|
function St(t) {
|
|
336
336
|
return (t = typeof t == "function" ? t() : t) ? t : {};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function An() {
|
|
339
339
|
for (let t = 0, e = this.length; t < e; ++t) {
|
|
340
340
|
const r = this[t]();
|
|
341
341
|
if (r !== void 0) return r;
|
|
@@ -345,9 +345,9 @@ function X(...t) {
|
|
|
345
345
|
let e = !1;
|
|
346
346
|
for (let a = 0; a < t.length; a++) {
|
|
347
347
|
const s = t[a];
|
|
348
|
-
e = e || !!s && ct in s, t[a] = typeof s == "function" ? (e = !0,
|
|
348
|
+
e = e || !!s && ct in s, t[a] = typeof s == "function" ? (e = !0, T(s)) : s;
|
|
349
349
|
}
|
|
350
|
-
if (
|
|
350
|
+
if (Br && e)
|
|
351
351
|
return new Proxy({
|
|
352
352
|
get(a) {
|
|
353
353
|
for (let s = t.length - 1; s >= 0; s--) {
|
|
@@ -379,7 +379,7 @@ function X(...t) {
|
|
|
379
379
|
n[u] = c.get ? {
|
|
380
380
|
enumerable: !0,
|
|
381
381
|
configurable: !0,
|
|
382
|
-
get:
|
|
382
|
+
get: An.bind(r[u] = [c.get.bind(s)])
|
|
383
383
|
} : c.value !== void 0 ? c : void 0;
|
|
384
384
|
else {
|
|
385
385
|
const f = r[u];
|
|
@@ -396,7 +396,7 @@ function X(...t) {
|
|
|
396
396
|
}
|
|
397
397
|
function wt(t, ...e) {
|
|
398
398
|
const r = e.length;
|
|
399
|
-
if (
|
|
399
|
+
if (Br && ct in t) {
|
|
400
400
|
const o = r > 1 ? e.flat() : e[0], i = e.map((a) => new Proxy({
|
|
401
401
|
get(s) {
|
|
402
402
|
return a.includes(s) ? t[s] : void 0;
|
|
@@ -435,56 +435,56 @@ function wt(t, ...e) {
|
|
|
435
435
|
}
|
|
436
436
|
return n;
|
|
437
437
|
}
|
|
438
|
-
const
|
|
439
|
-
function
|
|
438
|
+
const Ur = (t) => `Stale read from <${t}>.`;
|
|
439
|
+
function Ce(t) {
|
|
440
440
|
const e = "fallback" in t && {
|
|
441
441
|
fallback: () => t.fallback
|
|
442
442
|
};
|
|
443
|
-
return
|
|
443
|
+
return T(Sn(() => t.each, t.children, e || void 0));
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const e = t.keyed, r =
|
|
445
|
+
function ve(t) {
|
|
446
|
+
const e = t.keyed, r = T(() => t.when, void 0, void 0), n = e ? r : T(r, void 0, {
|
|
447
447
|
equals: (o, i) => !o == !i
|
|
448
448
|
});
|
|
449
|
-
return
|
|
449
|
+
return T(() => {
|
|
450
450
|
const o = n();
|
|
451
451
|
if (o) {
|
|
452
452
|
const i = t.children;
|
|
453
|
-
return typeof i == "function" && i.length > 0 ?
|
|
454
|
-
if (!
|
|
453
|
+
return typeof i == "function" && i.length > 0 ? Y(() => i(e ? o : () => {
|
|
454
|
+
if (!Y(n)) throw Ur("Show");
|
|
455
455
|
return r();
|
|
456
456
|
})) : i;
|
|
457
457
|
}
|
|
458
458
|
return t.fallback;
|
|
459
459
|
}, void 0, void 0);
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
const e =
|
|
461
|
+
function Wr(t) {
|
|
462
|
+
const e = Lr(() => t.children), r = T(() => {
|
|
463
463
|
const n = e(), o = Array.isArray(n) ? n : [n];
|
|
464
464
|
let i = () => {
|
|
465
465
|
};
|
|
466
466
|
for (let a = 0; a < o.length; a++) {
|
|
467
|
-
const s = a, l = o[a], d = i, u =
|
|
467
|
+
const s = a, l = o[a], d = i, u = T(() => d() ? void 0 : l.when, void 0, void 0), c = l.keyed ? u : T(u, void 0, {
|
|
468
468
|
equals: (f, h) => !f == !h
|
|
469
469
|
});
|
|
470
470
|
i = () => d() || (c() ? [s, u, l] : void 0);
|
|
471
471
|
}
|
|
472
472
|
return i;
|
|
473
473
|
});
|
|
474
|
-
return
|
|
474
|
+
return T(() => {
|
|
475
475
|
const n = r()();
|
|
476
476
|
if (!n) return t.fallback;
|
|
477
477
|
const [o, i, a] = n, s = a.children;
|
|
478
|
-
return typeof s == "function" && s.length > 0 ?
|
|
479
|
-
if (
|
|
478
|
+
return typeof s == "function" && s.length > 0 ? Y(() => s(a.keyed ? i() : () => {
|
|
479
|
+
if (Y(r)()?.[0] !== o) throw Ur("Match");
|
|
480
480
|
return i();
|
|
481
481
|
})) : s;
|
|
482
482
|
}, void 0, void 0);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Pe(t) {
|
|
485
485
|
return t;
|
|
486
486
|
}
|
|
487
|
-
const
|
|
487
|
+
const $n = [
|
|
488
488
|
"allowfullscreen",
|
|
489
489
|
"async",
|
|
490
490
|
"alpha",
|
|
@@ -526,7 +526,7 @@ const An = [
|
|
|
526
526
|
"shadowrootdelegatesfocus",
|
|
527
527
|
"shadowrootserializable",
|
|
528
528
|
"sharedstoragewritable"
|
|
529
|
-
],
|
|
529
|
+
], Tn = /* @__PURE__ */ new Set([
|
|
530
530
|
"className",
|
|
531
531
|
"value",
|
|
532
532
|
"readOnly",
|
|
@@ -549,11 +549,11 @@ const An = [
|
|
|
549
549
|
"shadowRootDelegatesFocus",
|
|
550
550
|
"shadowRootSerializable",
|
|
551
551
|
"sharedStorageWritable",
|
|
552
|
-
|
|
553
|
-
]),
|
|
552
|
+
...$n
|
|
553
|
+
]), En = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), _n = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
554
554
|
className: "class",
|
|
555
555
|
htmlFor: "for"
|
|
556
|
-
}),
|
|
556
|
+
}), Nn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
557
557
|
class: "className",
|
|
558
558
|
novalidate: {
|
|
559
559
|
$: "noValidate",
|
|
@@ -638,11 +638,11 @@ const An = [
|
|
|
638
638
|
IMG: 1
|
|
639
639
|
}
|
|
640
640
|
});
|
|
641
|
-
function
|
|
642
|
-
const r =
|
|
641
|
+
function Pn(t, e) {
|
|
642
|
+
const r = Nn[t];
|
|
643
643
|
return typeof r == "object" ? r[e] ? r.$ : void 0 : r;
|
|
644
644
|
}
|
|
645
|
-
const
|
|
645
|
+
const Bn = /* @__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"]), Rn = /* @__PURE__ */ new Set([
|
|
646
646
|
"altGlyph",
|
|
647
647
|
"altGlyphDef",
|
|
648
648
|
"altGlyphItem",
|
|
@@ -720,11 +720,11 @@ const Pn = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "context
|
|
|
720
720
|
"use",
|
|
721
721
|
"view",
|
|
722
722
|
"vkern"
|
|
723
|
-
]),
|
|
723
|
+
]), Mn = {
|
|
724
724
|
xlink: "http://www.w3.org/1999/xlink",
|
|
725
725
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
726
|
-
},
|
|
727
|
-
function
|
|
726
|
+
}, Re = (t) => T(() => t());
|
|
727
|
+
function On(t, e, r) {
|
|
728
728
|
let n = r.length, o = e.length, i = n, a = 0, s = 0, l = e[o - 1].nextSibling, d = null;
|
|
729
729
|
for (; a < o || s < i; ) {
|
|
730
730
|
if (e[a] === r[s]) {
|
|
@@ -764,7 +764,7 @@ function Mn(t, e, r) {
|
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
766
|
const tr = "_$DX_DELEGATE";
|
|
767
|
-
function
|
|
767
|
+
function In(t, e, r, n = {}) {
|
|
768
768
|
let o;
|
|
769
769
|
return at((i) => {
|
|
770
770
|
o = i, e === document ? t() : m(e, t(), e.firstChild ? null : void 0, r);
|
|
@@ -777,23 +777,23 @@ function x(t, e, r, n) {
|
|
|
777
777
|
const i = () => {
|
|
778
778
|
const s = n ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
|
|
779
779
|
return s.innerHTML = t, r ? s.content.firstChild.firstChild : n ? s.firstChild : s.content.firstChild;
|
|
780
|
-
}, a = e ? () =>
|
|
780
|
+
}, a = e ? () => Y(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
|
|
781
781
|
return a.cloneNode = a, a;
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Ae(t, e = window.document) {
|
|
784
784
|
const r = e[tr] || (e[tr] = /* @__PURE__ */ new Set());
|
|
785
785
|
for (let n = 0, o = t.length; n < o; n++) {
|
|
786
786
|
const i = t[n];
|
|
787
|
-
r.has(i) || (r.add(i), e.addEventListener(i,
|
|
787
|
+
r.has(i) || (r.add(i), e.addEventListener(i, zn));
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Z(t, e, r) {
|
|
791
791
|
r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function Ln(t, e, r, n) {
|
|
794
794
|
n == null ? t.removeAttributeNS(e, r) : t.setAttributeNS(e, r, n);
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function jn(t, e, r) {
|
|
797
797
|
r ? t.setAttribute(e, "") : t.removeAttribute(e);
|
|
798
798
|
}
|
|
799
799
|
function ne(t, e) {
|
|
@@ -807,7 +807,7 @@ function yt(t, e, r, n) {
|
|
|
807
807
|
t.addEventListener(e, r[0] = (i) => o.call(t, r[1], i));
|
|
808
808
|
} else t.addEventListener(e, r, typeof r != "function" && r);
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Dn(t, e, r = {}) {
|
|
811
811
|
const n = Object.keys(e || {}), o = Object.keys(r);
|
|
812
812
|
let i, a;
|
|
813
813
|
for (i = 0, a = o.length; i < a; i++) {
|
|
@@ -821,7 +821,7 @@ function jn(t, e, r = {}) {
|
|
|
821
821
|
return r;
|
|
822
822
|
}
|
|
823
823
|
function Pt(t, e, r) {
|
|
824
|
-
if (!e) return r ?
|
|
824
|
+
if (!e) return r ? Z(t, "style") : e;
|
|
825
825
|
const n = t.style;
|
|
826
826
|
if (typeof e == "string") return n.cssText = e;
|
|
827
827
|
typeof r == "string" && (n.cssText = r = void 0), r || (r = {}), e || (e = {});
|
|
@@ -834,16 +834,16 @@ function Pt(t, e, r) {
|
|
|
834
834
|
}
|
|
835
835
|
function gt(t, e = {}, r, n) {
|
|
836
836
|
const o = {};
|
|
837
|
-
return n || z(() => o.children = Ke(t, e.children, o.children)), z(() => typeof e.ref == "function" &&
|
|
837
|
+
return n || z(() => o.children = Ke(t, e.children, o.children)), z(() => typeof e.ref == "function" && Gr(e.ref, t)), z(() => Vn(t, e, r, !0, o, !0)), o;
|
|
838
838
|
}
|
|
839
|
-
function
|
|
840
|
-
return
|
|
839
|
+
function Gr(t, e, r) {
|
|
840
|
+
return Y(() => t(e, r));
|
|
841
841
|
}
|
|
842
842
|
function m(t, e, r, n) {
|
|
843
843
|
if (r !== void 0 && !n && (n = []), typeof e != "function") return Ke(t, e, n, r);
|
|
844
844
|
z((o) => Ke(t, e(), o, r), n);
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Vn(t, e, r, n, o = {}, i = !1) {
|
|
847
847
|
e || (e = {});
|
|
848
848
|
for (const a in o)
|
|
849
849
|
if (!(a in e)) {
|
|
@@ -857,7 +857,7 @@ function Dn(t, e, r, n, o = {}, i = !1) {
|
|
|
857
857
|
o[a] = nr(t, a, s, o[a], r, i, e);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function Fn(t) {
|
|
861
861
|
return t.toLowerCase().replace(/-([a-z])/g, (e, r) => r.toUpperCase());
|
|
862
862
|
}
|
|
863
863
|
function rr(t, e, r) {
|
|
@@ -867,7 +867,7 @@ function rr(t, e, r) {
|
|
|
867
867
|
function nr(t, e, r, n, o, i, a) {
|
|
868
868
|
let s, l, d, u, c;
|
|
869
869
|
if (e === "style") return Pt(t, r, n);
|
|
870
|
-
if (e === "classList") return
|
|
870
|
+
if (e === "classList") return Dn(t, r, n);
|
|
871
871
|
if (r === n) return n;
|
|
872
872
|
if (e === "ref")
|
|
873
873
|
i || r(t);
|
|
@@ -878,25 +878,25 @@ function nr(t, e, r, n, o, i, a) {
|
|
|
878
878
|
const f = e.slice(10);
|
|
879
879
|
n && t.removeEventListener(f, n, !0), r && t.addEventListener(f, r, !0);
|
|
880
880
|
} else if (e.slice(0, 2) === "on") {
|
|
881
|
-
const f = e.slice(2).toLowerCase(), h =
|
|
881
|
+
const f = e.slice(2).toLowerCase(), h = Bn.has(f);
|
|
882
882
|
if (!h && n) {
|
|
883
883
|
const g = Array.isArray(n) ? n[0] : n;
|
|
884
884
|
t.removeEventListener(f, g);
|
|
885
885
|
}
|
|
886
|
-
(h || r) && (yt(t, f, r, h), h &&
|
|
886
|
+
(h || r) && (yt(t, f, r, h), h && Ae([f]));
|
|
887
887
|
} else if (e.slice(0, 5) === "attr:")
|
|
888
|
-
|
|
888
|
+
Z(t, e.slice(5), r);
|
|
889
889
|
else if (e.slice(0, 5) === "bool:")
|
|
890
|
-
|
|
891
|
-
else if ((c = e.slice(0, 5) === "prop:") || (d =
|
|
892
|
-
c && (e = e.slice(5), l = !0), e === "class" || e === "className" ? ne(t, r) : s && !l && !d ? t[
|
|
890
|
+
jn(t, e.slice(5), r);
|
|
891
|
+
else if ((c = e.slice(0, 5) === "prop:") || (d = En.has(e)) || !o && ((u = Pn(e, t.tagName)) || (l = Tn.has(e))) || (s = t.nodeName.includes("-") || "is" in a))
|
|
892
|
+
c && (e = e.slice(5), l = !0), e === "class" || e === "className" ? ne(t, r) : s && !l && !d ? t[Fn(e)] = r : t[u || e] = r;
|
|
893
893
|
else {
|
|
894
|
-
const f = o && e.indexOf(":") > -1 &&
|
|
895
|
-
f ?
|
|
894
|
+
const f = o && e.indexOf(":") > -1 && Mn[e.split(":")[0]];
|
|
895
|
+
f ? Ln(t, f, e, r) : Z(t, _n[e] || e, r);
|
|
896
896
|
}
|
|
897
897
|
return r;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function zn(t) {
|
|
900
900
|
let e = t.target;
|
|
901
901
|
const r = `$$${t.type}`, n = t.target, o = t.currentTarget, i = (l) => Object.defineProperty(t, "target", {
|
|
902
902
|
configurable: !0,
|
|
@@ -939,11 +939,11 @@ function Ke(t, e, r, n, o) {
|
|
|
939
939
|
return r;
|
|
940
940
|
if (a) {
|
|
941
941
|
let s = r[0];
|
|
942
|
-
s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e), r =
|
|
942
|
+
s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e), r = Ie(t, r, n, s);
|
|
943
943
|
} else
|
|
944
944
|
r !== "" && typeof r == "string" ? r = t.firstChild.data = e : r = t.textContent = e;
|
|
945
945
|
} else if (e == null || i === "boolean")
|
|
946
|
-
r =
|
|
946
|
+
r = Ie(t, r, n);
|
|
947
947
|
else {
|
|
948
948
|
if (i === "function")
|
|
949
949
|
return z(() => {
|
|
@@ -956,13 +956,13 @@ function Ke(t, e, r, n, o) {
|
|
|
956
956
|
if (Bt(s, e, r, o))
|
|
957
957
|
return z(() => r = Ke(t, s, r, n, !0)), () => r;
|
|
958
958
|
if (s.length === 0) {
|
|
959
|
-
if (r =
|
|
960
|
-
} else l ? r.length === 0 ? or(t, s, n) :
|
|
959
|
+
if (r = Ie(t, r, n), a) return r;
|
|
960
|
+
} else l ? r.length === 0 ? or(t, s, n) : On(t, r, s) : (r && Ie(t), or(t, s));
|
|
961
961
|
r = s;
|
|
962
962
|
} else if (e.nodeType) {
|
|
963
963
|
if (Array.isArray(r)) {
|
|
964
|
-
if (a) return r =
|
|
965
|
-
|
|
964
|
+
if (a) return r = Ie(t, r, n, e);
|
|
965
|
+
Ie(t, r, null, e);
|
|
966
966
|
} else r == null || r === "" || !t.firstChild ? t.appendChild(e) : t.replaceChild(e, t.firstChild);
|
|
967
967
|
r = e;
|
|
968
968
|
}
|
|
@@ -993,7 +993,7 @@ function Bt(t, e, r, n) {
|
|
|
993
993
|
function or(t, e, r = null) {
|
|
994
994
|
for (let n = 0, o = e.length; n < o; n++) t.insertBefore(e[n], r);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ie(t, e, r, n) {
|
|
997
997
|
if (r === void 0) return t.textContent = "";
|
|
998
998
|
const o = n || document.createTextNode("");
|
|
999
999
|
if (e.length) {
|
|
@@ -1008,38 +1008,38 @@ function Oe(t, e, r, n) {
|
|
|
1008
1008
|
} else t.insertBefore(o, r);
|
|
1009
1009
|
return [o];
|
|
1010
1010
|
}
|
|
1011
|
-
const
|
|
1012
|
-
function
|
|
1013
|
-
return e ? document.createElementNS(
|
|
1011
|
+
const Un = "http://www.w3.org/2000/svg";
|
|
1012
|
+
function Wn(t, e = !1, r = void 0) {
|
|
1013
|
+
return e ? document.createElementNS(Un, t) : document.createElement(t, {
|
|
1014
1014
|
is: r
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1018
|
-
const r =
|
|
1019
|
-
return
|
|
1017
|
+
function Gn(t, e) {
|
|
1018
|
+
const r = T(t);
|
|
1019
|
+
return T(() => {
|
|
1020
1020
|
const n = r();
|
|
1021
1021
|
switch (typeof n) {
|
|
1022
1022
|
case "function":
|
|
1023
|
-
return
|
|
1023
|
+
return Y(() => n(e));
|
|
1024
1024
|
case "string":
|
|
1025
|
-
const o =
|
|
1025
|
+
const o = Rn.has(n), i = Wn(n, o, Y(() => e.is));
|
|
1026
1026
|
return gt(i, e, o), i;
|
|
1027
1027
|
}
|
|
1028
1028
|
});
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function Kn(t) {
|
|
1031
1031
|
const [, e] = wt(t, ["component"]);
|
|
1032
|
-
return
|
|
1032
|
+
return Gn(() => t.component, e);
|
|
1033
1033
|
}
|
|
1034
|
-
const
|
|
1034
|
+
const Hn = 1, qn = (t) => {
|
|
1035
1035
|
const e = new URLSearchParams();
|
|
1036
|
-
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}@${
|
|
1036
|
+
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}@${Hn}?${e.toString()}`;
|
|
1037
1037
|
};
|
|
1038
|
-
function
|
|
1038
|
+
function Xn(t) {
|
|
1039
1039
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1040
1040
|
}
|
|
1041
1041
|
var At = { exports: {} }, ir;
|
|
1042
|
-
function
|
|
1042
|
+
function Qn() {
|
|
1043
1043
|
return ir || (ir = 1, (function(t) {
|
|
1044
1044
|
var e = Object.prototype.hasOwnProperty, r = "~";
|
|
1045
1045
|
function n() {
|
|
@@ -1145,10 +1145,10 @@ function Xn() {
|
|
|
1145
1145
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, t.exports = s;
|
|
1146
1146
|
})(At)), At.exports;
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1149
|
-
const
|
|
1148
|
+
Qn();
|
|
1149
|
+
const q = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Kr = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), vt = "@ts-pattern/anonymous-select-key", Rt = (t) => !!(t && typeof t == "object"), lt = (t) => t && !!t[q], j = (t, e, r) => {
|
|
1150
1150
|
if (lt(t)) {
|
|
1151
|
-
const n = t[
|
|
1151
|
+
const n = t[q](), { matched: o, selections: i } = n.match(e);
|
|
1152
1152
|
return o && i && Object.keys(i).forEach((a) => r(a, i[a])), o;
|
|
1153
1153
|
}
|
|
1154
1154
|
if (Rt(t)) {
|
|
@@ -1158,7 +1158,7 @@ const H = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Gr = /* @__PURE__ *
|
|
|
1158
1158
|
let n = [], o = [], i = [];
|
|
1159
1159
|
for (const a of t.keys()) {
|
|
1160
1160
|
const s = t[a];
|
|
1161
|
-
lt(s) && s[
|
|
1161
|
+
lt(s) && s[Kr] ? i.push(s) : i.length ? o.push(s) : n.push(s);
|
|
1162
1162
|
}
|
|
1163
1163
|
if (i.length) {
|
|
1164
1164
|
if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
@@ -1170,16 +1170,16 @@ const H = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Gr = /* @__PURE__ *
|
|
|
1170
1170
|
}
|
|
1171
1171
|
return Reflect.ownKeys(t).every((n) => {
|
|
1172
1172
|
const o = t[n];
|
|
1173
|
-
return (n in e || lt(i = o) && i[
|
|
1173
|
+
return (n in e || lt(i = o) && i[q]().matcherType === "optional") && j(o, e[n], r);
|
|
1174
1174
|
var i;
|
|
1175
1175
|
});
|
|
1176
1176
|
}
|
|
1177
1177
|
return Object.is(e, t);
|
|
1178
|
-
},
|
|
1178
|
+
}, H = (t) => {
|
|
1179
1179
|
var e, r, n;
|
|
1180
|
-
return Rt(t) ? lt(t) ? (e = (r = (n = t[
|
|
1181
|
-
},
|
|
1182
|
-
function
|
|
1180
|
+
return Rt(t) ? lt(t) ? (e = (r = (n = t[q]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? He(t, H) : He(Object.values(t), H) : [];
|
|
1181
|
+
}, He = (t, e) => t.reduce((r, n) => r.concat(e(n)), []);
|
|
1182
|
+
function Jn(...t) {
|
|
1183
1183
|
if (t.length === 1) {
|
|
1184
1184
|
const [e] = t;
|
|
1185
1185
|
return (r) => j(e, r, () => {
|
|
@@ -1193,67 +1193,67 @@ function Qn(...t) {
|
|
|
1193
1193
|
throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
|
|
1194
1194
|
}
|
|
1195
1195
|
function V(t) {
|
|
1196
|
-
return Object.assign(t, { optional: () => zt(t), and: (e) => B(t, e), or: (e) =>
|
|
1196
|
+
return Object.assign(t, { optional: () => zt(t), and: (e) => B(t, e), or: (e) => Hr(t, e), select: (e) => e === void 0 ? qe(t) : qe(e, t) });
|
|
1197
1197
|
}
|
|
1198
1198
|
function Mt(t) {
|
|
1199
1199
|
return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
|
|
1200
1200
|
let r = 0;
|
|
1201
|
-
const n = [{ value: Object.assign(e, { [
|
|
1201
|
+
const n = [{ value: Object.assign(e, { [Kr]: !0 }), done: !1 }, { done: !0, value: void 0 }];
|
|
1202
1202
|
return { next: () => {
|
|
1203
1203
|
var o;
|
|
1204
1204
|
return (o = n[r++]) != null ? o : n.at(-1);
|
|
1205
1205
|
} };
|
|
1206
|
-
} }))(t), { optional: () => Mt(zt(t)), select: (e) => Mt(e === void 0 ?
|
|
1206
|
+
} }))(t), { optional: () => Mt(zt(t)), select: (e) => Mt(e === void 0 ? qe(t) : qe(e, t)) });
|
|
1207
1207
|
}
|
|
1208
1208
|
function zt(t) {
|
|
1209
|
-
return V({ [
|
|
1209
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1210
1210
|
let r = {};
|
|
1211
1211
|
const n = (o, i) => {
|
|
1212
1212
|
r[o] = i;
|
|
1213
1213
|
};
|
|
1214
|
-
return e === void 0 ? (
|
|
1215
|
-
}, getSelectionKeys: () =>
|
|
1214
|
+
return e === void 0 ? (H(t).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: j(t, e, n), selections: r };
|
|
1215
|
+
}, getSelectionKeys: () => H(t), matcherType: "optional" }) });
|
|
1216
1216
|
}
|
|
1217
|
-
const
|
|
1217
|
+
const Zn = (t, e) => {
|
|
1218
1218
|
for (const r of t) if (!e(r)) return !1;
|
|
1219
1219
|
return !0;
|
|
1220
|
-
},
|
|
1220
|
+
}, Yn = (t, e) => {
|
|
1221
1221
|
for (const [r, n] of t.entries()) if (!e(n, r)) return !1;
|
|
1222
1222
|
return !0;
|
|
1223
|
-
},
|
|
1223
|
+
}, eo = (t, e) => {
|
|
1224
1224
|
const r = Reflect.ownKeys(t);
|
|
1225
1225
|
for (const n of r) if (!e(n, t[n])) return !1;
|
|
1226
1226
|
return !0;
|
|
1227
1227
|
};
|
|
1228
1228
|
function B(...t) {
|
|
1229
|
-
return V({ [
|
|
1229
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1230
1230
|
let r = {};
|
|
1231
1231
|
const n = (o, i) => {
|
|
1232
1232
|
r[o] = i;
|
|
1233
1233
|
};
|
|
1234
1234
|
return { matched: t.every((o) => j(o, e, n)), selections: r };
|
|
1235
|
-
}, getSelectionKeys: () =>
|
|
1235
|
+
}, getSelectionKeys: () => He(t, H), matcherType: "and" }) });
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1238
|
-
return V({ [
|
|
1237
|
+
function Hr(...t) {
|
|
1238
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1239
1239
|
let r = {};
|
|
1240
1240
|
const n = (o, i) => {
|
|
1241
1241
|
r[o] = i;
|
|
1242
1242
|
};
|
|
1243
|
-
return
|
|
1244
|
-
}, getSelectionKeys: () =>
|
|
1243
|
+
return He(t, H).forEach((o) => n(o, void 0)), { matched: t.some((o) => j(o, e, n)), selections: r };
|
|
1244
|
+
}, getSelectionKeys: () => He(t, H), matcherType: "or" }) });
|
|
1245
1245
|
}
|
|
1246
1246
|
function S(t) {
|
|
1247
|
-
return { [
|
|
1247
|
+
return { [q]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function qe(...t) {
|
|
1250
1250
|
const e = typeof t[0] == "string" ? t[0] : void 0, r = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
1251
|
-
return V({ [
|
|
1251
|
+
return V({ [q]: () => ({ match: (n) => {
|
|
1252
1252
|
let o = { [e ?? vt]: n };
|
|
1253
1253
|
return { matched: r === void 0 || j(r, n, (i, a) => {
|
|
1254
1254
|
o[i] = a;
|
|
1255
1255
|
}), selections: o };
|
|
1256
|
-
}, getSelectionKeys: () => [e ?? vt].concat(r === void 0 ? [] :
|
|
1256
|
+
}, getSelectionKeys: () => [e ?? vt].concat(r === void 0 ? [] : H(r)) }) });
|
|
1257
1257
|
}
|
|
1258
1258
|
function qr(t) {
|
|
1259
1259
|
return !0;
|
|
@@ -1261,49 +1261,49 @@ function qr(t) {
|
|
|
1261
1261
|
function de(t) {
|
|
1262
1262
|
return typeof t == "number";
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function be(t) {
|
|
1265
1265
|
return typeof t == "string";
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function we(t) {
|
|
1268
1268
|
return typeof t == "bigint";
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1271
|
-
return
|
|
1270
|
+
const Xr = V(S(qr)), to = V(S(qr)), ro = Xr, ye = (t) => Object.assign(V(t), { startsWith: (e) => {
|
|
1271
|
+
return ye(B(t, (r = e, S((n) => be(n) && n.startsWith(r)))));
|
|
1272
1272
|
var r;
|
|
1273
1273
|
}, endsWith: (e) => {
|
|
1274
|
-
return
|
|
1274
|
+
return ye(B(t, (r = e, S((n) => be(n) && n.endsWith(r)))));
|
|
1275
1275
|
var r;
|
|
1276
|
-
}, minLength: (e) =>
|
|
1277
|
-
return
|
|
1276
|
+
}, minLength: (e) => ye(B(t, ((r) => S((n) => be(n) && n.length >= r))(e))), length: (e) => ye(B(t, ((r) => S((n) => be(n) && n.length === r))(e))), maxLength: (e) => ye(B(t, ((r) => S((n) => be(n) && n.length <= r))(e))), includes: (e) => {
|
|
1277
|
+
return ye(B(t, (r = e, S((n) => be(n) && n.includes(r)))));
|
|
1278
1278
|
var r;
|
|
1279
1279
|
}, regex: (e) => {
|
|
1280
|
-
return
|
|
1280
|
+
return ye(B(t, (r = e, S((n) => be(n) && !!n.match(r)))));
|
|
1281
1281
|
var r;
|
|
1282
|
-
} }), sr =
|
|
1282
|
+
} }), sr = ye(S(be)), ue = (t) => Object.assign(V(t), { between: (e, r) => ue(B(t, ((n, o) => S((i) => de(i) && n <= i && o >= i))(e, r))), lt: (e) => ue(B(t, ((r) => S((n) => de(n) && n < r))(e))), gt: (e) => ue(B(t, ((r) => S((n) => de(n) && n > r))(e))), lte: (e) => ue(B(t, ((r) => S((n) => de(n) && n <= r))(e))), gte: (e) => ue(B(t, ((r) => S((n) => de(n) && n >= r))(e))), int: () => ue(B(t, S((e) => de(e) && Number.isInteger(e)))), finite: () => ue(B(t, S((e) => de(e) && Number.isFinite(e)))), positive: () => ue(B(t, S((e) => de(e) && e > 0))), negative: () => ue(B(t, S((e) => de(e) && e < 0))) }), no = ue(S(de)), xe = (t) => Object.assign(V(t), { between: (e, r) => xe(B(t, ((n, o) => S((i) => we(i) && n <= i && o >= i))(e, r))), lt: (e) => xe(B(t, ((r) => S((n) => we(n) && n < r))(e))), gt: (e) => xe(B(t, ((r) => S((n) => we(n) && n > r))(e))), lte: (e) => xe(B(t, ((r) => S((n) => we(n) && n <= r))(e))), gte: (e) => xe(B(t, ((r) => S((n) => we(n) && n >= r))(e))), positive: () => xe(B(t, S((e) => we(e) && e > 0))), negative: () => xe(B(t, S((e) => we(e) && e < 0))) }), oo = xe(S(we)), io = V(S(function(t) {
|
|
1283
1283
|
return typeof t == "boolean";
|
|
1284
|
-
})), io = V(S(function(t) {
|
|
1285
|
-
return typeof t == "symbol";
|
|
1286
1284
|
})), so = V(S(function(t) {
|
|
1287
|
-
return t ==
|
|
1285
|
+
return typeof t == "symbol";
|
|
1288
1286
|
})), ao = V(S(function(t) {
|
|
1287
|
+
return t == null;
|
|
1288
|
+
})), lo = V(S(function(t) {
|
|
1289
1289
|
return t != null;
|
|
1290
1290
|
}));
|
|
1291
|
-
var
|
|
1292
|
-
return Mt({ [
|
|
1291
|
+
var co = { __proto__: null, matcher: q, optional: zt, array: function(...t) {
|
|
1292
|
+
return Mt({ [q]: () => ({ match: (e) => {
|
|
1293
1293
|
if (!Array.isArray(e)) return { matched: !1 };
|
|
1294
1294
|
if (t.length === 0) return { matched: !0 };
|
|
1295
1295
|
const r = t[0];
|
|
1296
1296
|
let n = {};
|
|
1297
|
-
if (e.length === 0) return
|
|
1297
|
+
if (e.length === 0) return H(r).forEach((i) => {
|
|
1298
1298
|
n[i] = [];
|
|
1299
1299
|
}), { matched: !0, selections: n };
|
|
1300
1300
|
const o = (i, a) => {
|
|
1301
1301
|
n[i] = (n[i] || []).concat([a]);
|
|
1302
1302
|
};
|
|
1303
1303
|
return { matched: e.every((i) => j(r, i, o)), selections: n };
|
|
1304
|
-
}, getSelectionKeys: () => t.length === 0 ? [] :
|
|
1304
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : H(t[0]) }) });
|
|
1305
1305
|
}, set: function(...t) {
|
|
1306
|
-
return V({ [
|
|
1306
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1307
1307
|
if (!(e instanceof Set)) return { matched: !1 };
|
|
1308
1308
|
let r = {};
|
|
1309
1309
|
if (e.size === 0) return { matched: !0, selections: r };
|
|
@@ -1311,10 +1311,10 @@ var lo = { __proto__: null, matcher: H, optional: zt, array: function(...t) {
|
|
|
1311
1311
|
const n = (i, a) => {
|
|
1312
1312
|
r[i] = (r[i] || []).concat([a]);
|
|
1313
1313
|
}, o = t[0];
|
|
1314
|
-
return { matched:
|
|
1315
|
-
}, getSelectionKeys: () => t.length === 0 ? [] :
|
|
1314
|
+
return { matched: Zn(e, (i) => j(o, i, n)), selections: r };
|
|
1315
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : H(t[0]) }) });
|
|
1316
1316
|
}, map: function(...t) {
|
|
1317
|
-
return V({ [
|
|
1317
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1318
1318
|
if (!(e instanceof Map)) return { matched: !1 };
|
|
1319
1319
|
let r = {};
|
|
1320
1320
|
if (e.size === 0) return { matched: !0, selections: r };
|
|
@@ -1325,13 +1325,13 @@ var lo = { __proto__: null, matcher: H, optional: zt, array: function(...t) {
|
|
|
1325
1325
|
var o;
|
|
1326
1326
|
if (t.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = t[0]) == null ? void 0 : o.toString()}`);
|
|
1327
1327
|
const [i, a] = t;
|
|
1328
|
-
return { matched:
|
|
1328
|
+
return { matched: Yn(e, (s, l) => {
|
|
1329
1329
|
const d = j(i, l, n), u = j(a, s, n);
|
|
1330
1330
|
return d && u;
|
|
1331
1331
|
}), selections: r };
|
|
1332
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : [...
|
|
1332
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...H(t[0]), ...H(t[1])] }) });
|
|
1333
1333
|
}, record: function(...t) {
|
|
1334
|
-
return V({ [
|
|
1334
|
+
return V({ [q]: () => ({ match: (e) => {
|
|
1335
1335
|
if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
|
|
1336
1336
|
var r;
|
|
1337
1337
|
if (t.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(r = t[0]) == null ? void 0 : r.toString()}`);
|
|
@@ -1339,22 +1339,22 @@ var lo = { __proto__: null, matcher: H, optional: zt, array: function(...t) {
|
|
|
1339
1339
|
const o = (s, l) => {
|
|
1340
1340
|
n[s] = (n[s] || []).concat([l]);
|
|
1341
1341
|
}, [i, a] = t.length === 1 ? [sr, t[0]] : t;
|
|
1342
|
-
return { matched:
|
|
1342
|
+
return { matched: eo(e, (s, l) => {
|
|
1343
1343
|
const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && j(i, d, o), c = j(i, s, o), f = j(a, l, o);
|
|
1344
1344
|
return (c || u) && f;
|
|
1345
1345
|
}), selections: n };
|
|
1346
|
-
}, getSelectionKeys: () => t.length === 0 ? [] : [...
|
|
1347
|
-
}, intersection: B, union:
|
|
1348
|
-
return V({ [
|
|
1346
|
+
}, getSelectionKeys: () => t.length === 0 ? [] : [...H(t[0]), ...H(t[1])] }) });
|
|
1347
|
+
}, intersection: B, union: Hr, not: function(t) {
|
|
1348
|
+
return V({ [q]: () => ({ match: (e) => ({ matched: !j(t, e, () => {
|
|
1349
1349
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
1350
|
-
}, when: S, select:
|
|
1350
|
+
}, when: S, select: qe, any: Xr, unknown: to, _: ro, string: sr, number: no, bigint: oo, boolean: io, symbol: so, nullish: ao, nonNullable: lo, instanceOf: function(t) {
|
|
1351
1351
|
return V(S(/* @__PURE__ */ (function(e) {
|
|
1352
1352
|
return (r) => r instanceof e;
|
|
1353
1353
|
})(t)));
|
|
1354
1354
|
}, shape: function(t) {
|
|
1355
|
-
return V(S(
|
|
1355
|
+
return V(S(Jn(t)));
|
|
1356
1356
|
} };
|
|
1357
|
-
class
|
|
1357
|
+
class uo extends Error {
|
|
1358
1358
|
constructor(e) {
|
|
1359
1359
|
let r;
|
|
1360
1360
|
try {
|
|
@@ -1366,7 +1366,7 @@ class co extends Error {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
1368
|
const Ot = { matched: !1, value: void 0 };
|
|
1369
|
-
function
|
|
1369
|
+
function Be(t) {
|
|
1370
1370
|
return new pt(t, Ot);
|
|
1371
1371
|
}
|
|
1372
1372
|
class pt {
|
|
@@ -1392,7 +1392,7 @@ class pt {
|
|
|
1392
1392
|
otherwise(e) {
|
|
1393
1393
|
return this.state.matched ? this.state.value : e(this.input);
|
|
1394
1394
|
}
|
|
1395
|
-
exhaustive(e =
|
|
1395
|
+
exhaustive(e = fo) {
|
|
1396
1396
|
return this.state.matched ? this.state.value : e(this.input);
|
|
1397
1397
|
}
|
|
1398
1398
|
run() {
|
|
@@ -1405,15 +1405,15 @@ class pt {
|
|
|
1405
1405
|
return this;
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1409
|
-
throw new
|
|
1408
|
+
function fo(t) {
|
|
1409
|
+
throw new uo(t);
|
|
1410
1410
|
}
|
|
1411
1411
|
const it = {
|
|
1412
1412
|
CREATED: "created",
|
|
1413
1413
|
SIGNALING: "signaling",
|
|
1414
1414
|
READY: "ready",
|
|
1415
1415
|
LINKING: "linking"
|
|
1416
|
-
},
|
|
1416
|
+
}, oe = {
|
|
1417
1417
|
STANDBY: "standby",
|
|
1418
1418
|
CREATING: "creating",
|
|
1419
1419
|
CONNECTING: "connecting",
|
|
@@ -1422,7 +1422,7 @@ const it = {
|
|
|
1422
1422
|
};
|
|
1423
1423
|
var $t = { exports: {} };
|
|
1424
1424
|
var ar;
|
|
1425
|
-
function
|
|
1425
|
+
function ho() {
|
|
1426
1426
|
return ar || (ar = 1, (function(t) {
|
|
1427
1427
|
(function() {
|
|
1428
1428
|
var e = {}.hasOwnProperty;
|
|
@@ -1454,8 +1454,8 @@ function fo() {
|
|
|
1454
1454
|
})();
|
|
1455
1455
|
})($t)), $t.exports;
|
|
1456
1456
|
}
|
|
1457
|
-
var
|
|
1458
|
-
const
|
|
1457
|
+
var go = ho();
|
|
1458
|
+
const ke = /* @__PURE__ */ Xn(go), vo = async (t) => {
|
|
1459
1459
|
if (typeof t == "string") {
|
|
1460
1460
|
if (t === "simple")
|
|
1461
1461
|
return await import("./simple-CAAgvkQC.js").then((e) => e.simpleTheme);
|
|
@@ -1464,28 +1464,28 @@ const xe = /* @__PURE__ */ Hn(ho), go = async (t) => {
|
|
|
1464
1464
|
throw new Error(`Unknown theme: ${t}`);
|
|
1465
1465
|
}
|
|
1466
1466
|
return t;
|
|
1467
|
-
}, It = (t) => typeof t == "object" && t !== null && !Array.isArray(t),
|
|
1467
|
+
}, It = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Qr = (t, e = [], r = {}) => {
|
|
1468
1468
|
for (const [n, o] of Object.entries(t)) {
|
|
1469
1469
|
const i = [...e, n];
|
|
1470
|
-
It(o) ?
|
|
1470
|
+
It(o) ? Qr(o, i, r) : r[`--lv-${i.join("-")}`] = o;
|
|
1471
1471
|
}
|
|
1472
1472
|
return r;
|
|
1473
|
-
},
|
|
1473
|
+
}, po = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, Jr = (t, e) => {
|
|
1474
1474
|
const r = {
|
|
1475
1475
|
...t
|
|
1476
1476
|
};
|
|
1477
1477
|
for (const n of Object.keys(e)) {
|
|
1478
1478
|
const o = t[n], i = e[n];
|
|
1479
|
-
r[n] = It(o) && It(i) ?
|
|
1479
|
+
r[n] = It(o) && It(i) ? Jr(o, i) : i;
|
|
1480
1480
|
}
|
|
1481
1481
|
return r;
|
|
1482
|
-
},
|
|
1483
|
-
const r = await
|
|
1482
|
+
}, mo = async (t, e = "system") => {
|
|
1483
|
+
const r = await vo(t.theme), n = po(t.mode, e), o = r[n];
|
|
1484
1484
|
if (!o) return "";
|
|
1485
|
-
const i = r.common ?
|
|
1485
|
+
const i = r.common ? Jr(r.common, o) : o, a = Qr(i);
|
|
1486
1486
|
return Object.entries(a).map(([s, l]) => `${s}: ${l};`).join(`
|
|
1487
1487
|
`);
|
|
1488
|
-
}, lr = `@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)}}`, cr = async (t, e, r = "system") => {
|
|
1488
|
+
}, lr = `@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:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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;--radius-xl:.75rem;--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,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, 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:where(:not(iframe)){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:0}.inset-x-0{inset-inline:0}.top-5{top:calc(var(--spacing) * 5)}.top-full{top:100%}.bottom-0{bottom: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-12{height:calc(var(--spacing) * 12)}.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:0px;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:var(--spacing)}.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)}.rounded-xl{border-radius:var(--radius-xl)}.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:var(--spacing)}.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:var(--spacing)}.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:var(--spacing)}.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:var(--spacing)}.pt-1{padding-top:var(--spacing)}.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)}}`, cr = async (t, e, r = "system") => {
|
|
1489
1489
|
let n = t.querySelector(
|
|
1490
1490
|
"style[data-openlv-modal]"
|
|
1491
1491
|
);
|
|
@@ -1495,7 +1495,7 @@ const xe = /* @__PURE__ */ Hn(ho), go = async (t) => {
|
|
|
1495
1495
|
theme: e?.theme ?? "simple"
|
|
1496
1496
|
};
|
|
1497
1497
|
if (o) {
|
|
1498
|
-
const i = await
|
|
1498
|
+
const i = await mo(o, r);
|
|
1499
1499
|
n.textContent = `:root, :host {
|
|
1500
1500
|
${i}
|
|
1501
1501
|
}
|
|
@@ -1503,14 +1503,14 @@ ${i}
|
|
|
1503
1503
|
} else
|
|
1504
1504
|
n.textContent = lr;
|
|
1505
1505
|
};
|
|
1506
|
-
class
|
|
1506
|
+
class Zr extends HTMLElement {
|
|
1507
1507
|
constructor(r) {
|
|
1508
1508
|
super();
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1509
|
+
te(this, "shadow");
|
|
1510
|
+
te(this, "renderRequested", !1);
|
|
1511
|
+
te(this, "parameters");
|
|
1512
|
+
te(this, "themeCleanup");
|
|
1513
|
+
te(this, "disposeRender");
|
|
1514
1514
|
this.parameters = r, this.shadow = this.attachShadow({
|
|
1515
1515
|
mode: "open"
|
|
1516
1516
|
});
|
|
@@ -1546,25 +1546,25 @@ class Jr extends HTMLElement {
|
|
|
1546
1546
|
}));
|
|
1547
1547
|
}
|
|
1548
1548
|
performRender() {
|
|
1549
|
-
this.disposeRender?.(), this.disposeRender =
|
|
1549
|
+
this.disposeRender?.(), this.disposeRender = In(() => {
|
|
1550
1550
|
const r = this;
|
|
1551
|
-
return v(
|
|
1551
|
+
return v(Ro, X(() => r.parameters));
|
|
1552
1552
|
}, this.shadow);
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
|
-
const
|
|
1556
|
-
Or copy the link and paste it into your wallet.` },
|
|
1557
|
-
common:
|
|
1558
|
-
status:
|
|
1559
|
-
settings:
|
|
1560
|
-
start:
|
|
1561
|
-
info:
|
|
1562
|
-
disconnected:
|
|
1563
|
-
connectionFlow:
|
|
1564
|
-
handshake:
|
|
1565
|
-
modal:
|
|
1555
|
+
const bo = { close: "Close", yes: "Yes", no: "No", protocol: "Protocol" }, wo = { connectedSuccessfully: "Connected Successfully!", connecting: "Connecting", ready: "Ready", handshakeClosed: "Handshake Closed", handshakePartial: "Handshake Partial", encrypted: "Encrypted", signalError: "Signal Error", disconnected: "Disconnected" }, yo = { 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" }, xo = { title: "Connect Wallet" }, ko = { title: "What is openlv?", scanQrCode: "Scan QR Code", approveOnDevice: "Approve on device", youreConnected: "You're connected!" }, Co = { prompt: "Click the button below to start a connection", generateQr: "Generate QR", connectionSettings: "Connection settings" }, So = { 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." }, Ao = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
|
|
1556
|
+
Or copy the link and paste it into your wallet.` }, $o = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, To = {
|
|
1557
|
+
common: bo,
|
|
1558
|
+
status: wo,
|
|
1559
|
+
settings: yo,
|
|
1560
|
+
start: xo,
|
|
1561
|
+
info: ko,
|
|
1562
|
+
disconnected: Co,
|
|
1563
|
+
connectionFlow: So,
|
|
1564
|
+
handshake: Ao,
|
|
1565
|
+
modal: $o
|
|
1566
1566
|
};
|
|
1567
|
-
var
|
|
1567
|
+
var Eo = /* @__PURE__ */ x("<br>");
|
|
1568
1568
|
const Ut = [{
|
|
1569
1569
|
tag: "en",
|
|
1570
1570
|
name: "English",
|
|
@@ -1604,7 +1604,7 @@ const Ut = [{
|
|
|
1604
1604
|
name: "Persian",
|
|
1605
1605
|
nativeName: "فارسی",
|
|
1606
1606
|
rtl: !0
|
|
1607
|
-
}],
|
|
1607
|
+
}], _o = (t) => Ut.find((r) => r.tag === t)?.rtl ?? !1;
|
|
1608
1608
|
new Set(Ut.map((t) => t.tag));
|
|
1609
1609
|
const dr = (t) => {
|
|
1610
1610
|
if (typeof navigator > "u") return 0;
|
|
@@ -1630,41 +1630,41 @@ const dr = (t) => {
|
|
|
1630
1630
|
}, fr = (t, e) => e ? t.replaceAll(/\{(\w+)\}/g, (r, n) => {
|
|
1631
1631
|
const o = e[n];
|
|
1632
1632
|
return o === void 0 ? r : String(o);
|
|
1633
|
-
}) : t,
|
|
1633
|
+
}) : t, No = (t) => {
|
|
1634
1634
|
const e = ur(t.primary, t.key);
|
|
1635
1635
|
if (typeof e == "string")
|
|
1636
1636
|
return fr(e, t.params);
|
|
1637
1637
|
const r = ur(t.fallback, t.key);
|
|
1638
1638
|
return typeof r == "string" ? fr(r, t.params) : t.key;
|
|
1639
|
-
},
|
|
1639
|
+
}, Yr = Or(void 0), Po = async (t) => Be(t).with("en", () => Promise.resolve(void 0)).with("nl", async () => import("./nl-BRV9i3nM.js").then((e) => e.default)).with("es", async () => import("./es-C2sG0TfH.js").then((e) => e.default)).with("sv", async () => import("./sv-CEyo-XBk.js").then((e) => e.default)).with("fr", async () => import("./fr-BRQDr1rj.js").then((e) => e.default)).with("zh-cn", async () => import("./zh-cn-DJpfZdjA.js").then((e) => e.default)).with("ar", async () => import("./ar-CyZSQ56p.js").then((e) => e.default)).with("he", async () => import("./he-NFIsHMZP.js").then((e) => e.default)).with("fa", async () => import("./fa-_bXJQdwj.js").then((e) => e.default)).exhaustive(), Bo = (t) => {
|
|
1640
1640
|
const {
|
|
1641
1641
|
provider: e
|
|
1642
|
-
} =
|
|
1643
|
-
|
|
1642
|
+
} = Me(), r = e.storage.getSettings().language, [n, o] = D(r ?? "en"), [i, a] = D(void 0), [s, l] = D(!1);
|
|
1643
|
+
ie(() => {
|
|
1644
1644
|
let h = !1;
|
|
1645
1645
|
(async () => {
|
|
1646
1646
|
l(!0);
|
|
1647
1647
|
try {
|
|
1648
|
-
const b = await
|
|
1648
|
+
const b = await Po(n());
|
|
1649
1649
|
if (h) return;
|
|
1650
1650
|
a(b);
|
|
1651
1651
|
} finally {
|
|
1652
1652
|
h || l(!1);
|
|
1653
1653
|
}
|
|
1654
|
-
})(),
|
|
1654
|
+
})(), se(() => {
|
|
1655
1655
|
h = !0;
|
|
1656
1656
|
});
|
|
1657
1657
|
});
|
|
1658
1658
|
const d = (h, g) => {
|
|
1659
|
-
const b =
|
|
1659
|
+
const b = No({
|
|
1660
1660
|
primary: i(),
|
|
1661
|
-
fallback:
|
|
1661
|
+
fallback: To,
|
|
1662
1662
|
key: h,
|
|
1663
1663
|
params: g
|
|
1664
1664
|
}), p = b.split(`
|
|
1665
1665
|
`);
|
|
1666
|
-
return p.length <= 1 ? b :
|
|
1667
|
-
}, u =
|
|
1666
|
+
return p.length <= 1 ? b : Re(() => p.map((C, k) => [C, Re(() => Re(() => k < p.length - 1)() ? Eo() : null)]));
|
|
1667
|
+
}, u = T(() => _o(n())), f = {
|
|
1668
1668
|
languageTag: n,
|
|
1669
1669
|
setLanguageTag: (h) => {
|
|
1670
1670
|
o(h);
|
|
@@ -1673,31 +1673,31 @@ const dr = (t) => {
|
|
|
1673
1673
|
isRtl: u,
|
|
1674
1674
|
t: d
|
|
1675
1675
|
};
|
|
1676
|
-
return v(
|
|
1676
|
+
return v(Yr.Provider, {
|
|
1677
1677
|
value: f,
|
|
1678
1678
|
get children() {
|
|
1679
1679
|
return t.children;
|
|
1680
1680
|
}
|
|
1681
1681
|
});
|
|
1682
|
-
},
|
|
1683
|
-
const t =
|
|
1682
|
+
}, Q = () => {
|
|
1683
|
+
const t = Ir(Yr);
|
|
1684
1684
|
if (!t)
|
|
1685
1685
|
throw new Error("TranslationProvider not found");
|
|
1686
1686
|
return t;
|
|
1687
|
-
},
|
|
1687
|
+
}, en = Or(void 0), Ro = (t) => {
|
|
1688
1688
|
const {
|
|
1689
1689
|
provider: e,
|
|
1690
1690
|
theme: r
|
|
1691
1691
|
} = t;
|
|
1692
|
-
return v(
|
|
1692
|
+
return v(en.Provider, {
|
|
1693
1693
|
value: {
|
|
1694
1694
|
provider: e,
|
|
1695
1695
|
themeConfig: r
|
|
1696
1696
|
},
|
|
1697
1697
|
get children() {
|
|
1698
|
-
return v(
|
|
1698
|
+
return v(Bo, {
|
|
1699
1699
|
get children() {
|
|
1700
|
-
return v(
|
|
1700
|
+
return v(da, {
|
|
1701
1701
|
get onClose() {
|
|
1702
1702
|
return t.onClose;
|
|
1703
1703
|
}
|
|
@@ -1706,31 +1706,31 @@ const dr = (t) => {
|
|
|
1706
1706
|
});
|
|
1707
1707
|
}
|
|
1708
1708
|
});
|
|
1709
|
-
},
|
|
1710
|
-
const t =
|
|
1709
|
+
}, Me = () => {
|
|
1710
|
+
const t = Ir(en);
|
|
1711
1711
|
if (!t) throw new Error("Modal context not found");
|
|
1712
1712
|
return t;
|
|
1713
1713
|
}, Ye = () => {
|
|
1714
|
-
const { provider: t } =
|
|
1714
|
+
const { provider: t } = Me(), e = T(() => t.getSession(), void 0, { name: "session" }), [r, n] = D(e()?.getState());
|
|
1715
1715
|
console.log("session status", r());
|
|
1716
1716
|
const o = (s) => {
|
|
1717
1717
|
console.log("session state change", s), n(s);
|
|
1718
1718
|
};
|
|
1719
1719
|
Vt(() => {
|
|
1720
1720
|
e()?.emitter.on("state_change", o);
|
|
1721
|
-
}),
|
|
1721
|
+
}), se(() => {
|
|
1722
1722
|
e()?.emitter.off("state_change", o);
|
|
1723
1723
|
});
|
|
1724
|
-
const i =
|
|
1724
|
+
const i = T(() => e()?.getHandshakeParameters());
|
|
1725
1725
|
return {
|
|
1726
|
-
uri:
|
|
1726
|
+
uri: T(() => {
|
|
1727
1727
|
const s = i();
|
|
1728
1728
|
return s ? qn(s) : void 0;
|
|
1729
1729
|
}),
|
|
1730
1730
|
status: r
|
|
1731
1731
|
};
|
|
1732
|
-
},
|
|
1733
|
-
const { provider: t } =
|
|
1732
|
+
}, Mo = () => {
|
|
1733
|
+
const { provider: t } = Me();
|
|
1734
1734
|
return {
|
|
1735
1735
|
start: () => {
|
|
1736
1736
|
const e = t.storage.getSettings(), r = e?.signaling?.p, n = r ? e?.signaling?.s?.[r] : void 0;
|
|
@@ -1743,7 +1743,7 @@ const dr = (t) => {
|
|
|
1743
1743
|
}
|
|
1744
1744
|
};
|
|
1745
1745
|
};
|
|
1746
|
-
var
|
|
1746
|
+
var Oo = /* @__PURE__ */ x('<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:');
|
|
1747
1747
|
const Lt = (t) => {
|
|
1748
1748
|
const {
|
|
1749
1749
|
uri: e,
|
|
@@ -1752,7 +1752,7 @@ const Lt = (t) => {
|
|
|
1752
1752
|
return console.error("Unknown state:", {
|
|
1753
1753
|
state: t.state
|
|
1754
1754
|
}), (() => {
|
|
1755
|
-
var n =
|
|
1755
|
+
var n = Oo(), o = n.firstChild;
|
|
1756
1756
|
o.firstChild;
|
|
1757
1757
|
var i = o.nextSibling;
|
|
1758
1758
|
i.firstChild;
|
|
@@ -1761,15 +1761,15 @@ const Lt = (t) => {
|
|
|
1761
1761
|
})();
|
|
1762
1762
|
};
|
|
1763
1763
|
const ze = { newline: 10, reset: 27 };
|
|
1764
|
-
function
|
|
1764
|
+
function Io(t) {
|
|
1765
1765
|
if (!Number.isSafeInteger(t))
|
|
1766
1766
|
throw new Error(`integer expected: ${t}`);
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function Lo(t) {
|
|
1769
1769
|
if (!Number.isSafeInteger(t) || t < 1 || t > 40)
|
|
1770
1770
|
throw new Error(`Invalid version=${t}. Expected number [1..40]`);
|
|
1771
1771
|
}
|
|
1772
|
-
function
|
|
1772
|
+
function _e(t, e) {
|
|
1773
1773
|
return t.toString(2).padStart(e, "0");
|
|
1774
1774
|
}
|
|
1775
1775
|
function hr(t, e) {
|
|
@@ -1793,7 +1793,7 @@ function gr(t) {
|
|
|
1793
1793
|
i < a.length && (n[o++] = a[i]);
|
|
1794
1794
|
return n;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function jo() {
|
|
1797
1797
|
let t, e = 1 / 0;
|
|
1798
1798
|
return {
|
|
1799
1799
|
add(r, n) {
|
|
@@ -1822,7 +1822,7 @@ function vr(t) {
|
|
|
1822
1822
|
if (!Array.isArray(e) || e.length && typeof e[0] != "number")
|
|
1823
1823
|
throw new Error("alphabet.encode input should be an array of numbers");
|
|
1824
1824
|
return e.map((r) => {
|
|
1825
|
-
if (
|
|
1825
|
+
if (Io(r), r < 0 || r >= t.length)
|
|
1826
1826
|
throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${t.length})`);
|
|
1827
1827
|
return t[r];
|
|
1828
1828
|
});
|
|
@@ -1842,26 +1842,26 @@ function pr(t) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
|
-
const Ue = (t) => 1 << (t & 31) >>> 0,
|
|
1845
|
+
const Ue = (t) => 1 << (t & 31) >>> 0, Ne = (t, e) => e === 0 ? 0 : e === 32 ? 4294967295 : (1 << e) - 1 << t >>> 0;
|
|
1846
1846
|
class K {
|
|
1847
1847
|
constructor(e, r) {
|
|
1848
1848
|
// Two bitsets:
|
|
1849
1849
|
// defined=0 -> undefined
|
|
1850
1850
|
// defined=1,value=0 -> false
|
|
1851
1851
|
// defined=1,value=1 -> true
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1852
|
+
te(this, "defined");
|
|
1853
|
+
te(this, "value");
|
|
1854
|
+
te(this, "tailMask");
|
|
1855
|
+
te(this, "words");
|
|
1856
|
+
te(this, "fullWords");
|
|
1857
|
+
te(this, "height");
|
|
1858
|
+
te(this, "width");
|
|
1859
1859
|
const { height: n, width: o } = K.size(e);
|
|
1860
1860
|
if (!Number.isSafeInteger(n) || n <= 0)
|
|
1861
1861
|
throw new Error(`Bitmap: invalid height=${n}, expected positive safe integer dimension`);
|
|
1862
1862
|
if (!Number.isSafeInteger(o) || o <= 0)
|
|
1863
1863
|
throw new Error(`Bitmap: invalid width=${o}, expected positive safe integer dimension`);
|
|
1864
|
-
if (this.height = n, this.width = o, this.tailMask =
|
|
1864
|
+
if (this.height = n, this.width = o, this.tailMask = Ne(0, o & 31 || 32), this.words = Math.ceil(o / 32) | 0, this.fullWords = Math.floor(o / 32) | 0, this.value = new Uint32Array(this.words * n), this.defined = new Uint32Array(this.value.length), r) {
|
|
1865
1865
|
if (r.length !== n)
|
|
1866
1866
|
throw new Error(`Bitmap: data height mismatch: exp=${n} got=${r.length}`);
|
|
1867
1867
|
for (let i = 0; i < n; i++) {
|
|
@@ -1955,14 +1955,14 @@ class K {
|
|
|
1955
1955
|
for (let h = 0; h < o; h++) {
|
|
1956
1956
|
const g = (r + h) * l;
|
|
1957
1957
|
if (d === u) {
|
|
1958
|
-
const b =
|
|
1958
|
+
const b = Ne(c, f - c + 1);
|
|
1959
1959
|
this.maskWord(g + d, b, i);
|
|
1960
1960
|
continue;
|
|
1961
1961
|
}
|
|
1962
|
-
this.maskWord(g + d,
|
|
1962
|
+
this.maskWord(g + d, Ne(c, 32 - c), i);
|
|
1963
1963
|
for (let b = d + 1; b < u; b++)
|
|
1964
1964
|
s[g + b] = 4294967295, a[g + b] = i ? 4294967295 : 0;
|
|
1965
|
-
this.maskWord(g + u,
|
|
1965
|
+
this.maskWord(g + u, Ne(0, f + 1), i);
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
1968
|
rectWords(e, r, n, o, i) {
|
|
@@ -2023,7 +2023,7 @@ class K {
|
|
|
2023
2023
|
for (let c = 0; c < i; c++) {
|
|
2024
2024
|
const f = c * d;
|
|
2025
2025
|
for (let h = 0; h < a; ) {
|
|
2026
|
-
const g = n + h, { word: b, bit: p } = this.bitIndex(g, o + c), { word: C, bit: k } = r.bitIndex(h, c), y = Math.min(32 - p, a - h), F = u[C], _ = k && C + 1 < f + d ? u[C + 1] : 0,
|
|
2026
|
+
const g = n + h, { word: b, bit: p } = this.bitIndex(g, o + c), { word: C, bit: k } = r.bitIndex(h, c), y = Math.min(32 - p, a - h), F = u[C], _ = k && C + 1 < f + d ? u[C + 1] : 0, pe = k ? (F >>> k | _ << 32 - k) >>> 0 : F, he = Ne(p, y), De = (pe & Ne(0, y)) << p >>> 0;
|
|
2027
2027
|
l[b] |= he, s[b] = s[b] & ~he | De, h += y;
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
@@ -2145,7 +2145,7 @@ class K {
|
|
|
2145
2145
|
const { height: r, width: n, words: o } = this;
|
|
2146
2146
|
if (n < 2 || !Number.isSafeInteger(e) || e < 0 || e + 1 >= r)
|
|
2147
2147
|
return 0;
|
|
2148
|
-
const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (n & 31) === 0 ? 2147483647 :
|
|
2148
|
+
const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (n & 31) === 0 ? 2147483647 : Ne(0, n - 1 & 31);
|
|
2149
2149
|
let d = 0;
|
|
2150
2150
|
for (let u = 0; u < o; u++) {
|
|
2151
2151
|
const c = this.value[i + u], f = this.value[a + u], h = ~(c ^ f) >>> 0, g = u + 1 < o ? this.value[i + u + 1] >>> 0 : 0, b = ~(c ^ (c >>> 1 | (g & 1) << 31) >>> 0) >>> 0, p = u + 1 < o ? this.value[a + u + 1] >>> 0 : 0, C = ~(f ^ (f >>> 1 | (p & 1) << 31) >>> 0) >>> 0;
|
|
@@ -2262,7 +2262,7 @@ class K {
|
|
|
2262
2262
|
return { height: r, width: n, data: o };
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]), br = /* @__PURE__ */ Object.freeze(["numeric", "alphanumeric", "byte", "kanji", "eci"]),
|
|
2265
|
+
const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]), br = /* @__PURE__ */ Object.freeze(["numeric", "alphanumeric", "byte", "kanji", "eci"]), Do = [
|
|
2266
2266
|
// 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
2267
2267
|
26,
|
|
2268
2268
|
44,
|
|
@@ -2305,13 +2305,13 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2305
2305
|
3362,
|
|
2306
2306
|
3532,
|
|
2307
2307
|
3706
|
|
2308
|
-
],
|
|
2308
|
+
], Vo = {
|
|
2309
2309
|
// Version 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40
|
|
2310
2310
|
low: [7, 10, 15, 20, 26, 18, 20, 24, 30, 18, 20, 24, 26, 30, 22, 24, 28, 30, 28, 28, 28, 28, 30, 30, 26, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
2311
2311
|
medium: [10, 16, 26, 18, 24, 16, 18, 22, 22, 26, 30, 22, 22, 24, 24, 28, 28, 26, 26, 26, 26, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28],
|
|
2312
2312
|
quartile: [13, 22, 18, 26, 18, 24, 18, 22, 20, 24, 28, 26, 24, 20, 30, 24, 28, 28, 26, 30, 28, 30, 30, 30, 30, 28, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30],
|
|
2313
2313
|
high: [17, 28, 22, 16, 22, 28, 26, 26, 24, 28, 24, 28, 22, 24, 24, 30, 28, 28, 26, 28, 30, 24, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30]
|
|
2314
|
-
},
|
|
2314
|
+
}, Fo = {
|
|
2315
2315
|
// Version 1, 2, 3, 4, 5, 6, 7, 8, 9,10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40
|
|
2316
2316
|
low: [1, 1, 1, 1, 1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 6, 6, 6, 6, 7, 8, 8, 9, 9, 10, 12, 12, 12, 13, 14, 15, 16, 17, 18, 19, 19, 20, 21, 22, 24, 25],
|
|
2317
2317
|
medium: [1, 1, 1, 2, 2, 4, 4, 4, 5, 5, 5, 8, 9, 9, 10, 10, 11, 13, 14, 16, 17, 17, 18, 20, 21, 23, 25, 26, 28, 29, 31, 33, 35, 37, 38, 40, 43, 45, 47, 49],
|
|
@@ -2390,7 +2390,7 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2390
2390
|
}),
|
|
2391
2391
|
// ISO/IEC 18004:2024 Table 1 / §7.5.1 Table 9: derive total data bits and short/long RS block layout from total codewords, ECC words per block, and block counts.
|
|
2392
2392
|
capacity(t, e) {
|
|
2393
|
-
const r =
|
|
2393
|
+
const r = Do[t - 1], n = Vo[e][t - 1], o = Fo[e][t - 1], i = Math.floor(r / o) - n, a = o - r % o;
|
|
2394
2394
|
return {
|
|
2395
2395
|
words: n,
|
|
2396
2396
|
numBlocks: o,
|
|
@@ -2581,7 +2581,7 @@ const mr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
|
|
|
2581
2581
|
return [w.mulPolyScalar(a, l), w.mulPolyScalar(o, l)];
|
|
2582
2582
|
}
|
|
2583
2583
|
};
|
|
2584
|
-
function
|
|
2584
|
+
function zo(t) {
|
|
2585
2585
|
return {
|
|
2586
2586
|
encode(e) {
|
|
2587
2587
|
const r = w.divisorPoly(t), n = Array.from(e);
|
|
@@ -2617,8 +2617,8 @@ function Fo(t) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
|
-
function
|
|
2621
|
-
const { words: r, shortBlocks: n, numBlocks: o, blockLen: i, total: a } = U.capacity(t, e), s =
|
|
2620
|
+
function Uo(t, e) {
|
|
2621
|
+
const { words: r, shortBlocks: n, numBlocks: o, blockLen: i, total: a } = U.capacity(t, e), s = zo(r);
|
|
2622
2622
|
return {
|
|
2623
2623
|
encode(l) {
|
|
2624
2624
|
const d = [], u = [];
|
|
@@ -2655,7 +2655,7 @@ function zo(t, e) {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
};
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function Wo(t, e, r, n = !1) {
|
|
2659
2659
|
const o = U.size.encode(t);
|
|
2660
2660
|
let i = new K(o + 2);
|
|
2661
2661
|
const a = new K(3).rect(0, 3, !0).border(1, !1).border(1, !0).border(1, !1);
|
|
@@ -2690,7 +2690,7 @@ function Uo(t, e, r, n = !1) {
|
|
|
2690
2690
|
}
|
|
2691
2691
|
return i;
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2693
|
+
function Go(t, e, r) {
|
|
2694
2694
|
const n = t, o = n.height, i = Wt[e];
|
|
2695
2695
|
let a = -1, s = o - 1;
|
|
2696
2696
|
for (let l = o - 1; l > 0; l -= 2) {
|
|
@@ -2705,36 +2705,36 @@ function Wo(t, e, r) {
|
|
|
2705
2705
|
a = -a;
|
|
2706
2706
|
}
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function Ko(t) {
|
|
2709
2709
|
let e = "numeric";
|
|
2710
2710
|
for (let r of t)
|
|
2711
2711
|
if (!U.alphabet.numeric.has(r) && (e = "alphanumeric", !U.alphabet.alphanumerc.has(r)))
|
|
2712
2712
|
return "byte";
|
|
2713
2713
|
return e;
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2715
|
+
function Ho(t) {
|
|
2716
2716
|
if (typeof t != "string")
|
|
2717
2717
|
throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
|
|
2718
2718
|
return new Uint8Array(new TextEncoder().encode(t));
|
|
2719
2719
|
}
|
|
2720
|
-
function wr(t, e, r, n, o =
|
|
2720
|
+
function wr(t, e, r, n, o = Ho) {
|
|
2721
2721
|
let i = "", a = r.length;
|
|
2722
2722
|
if (n === "numeric") {
|
|
2723
2723
|
const f = U.alphabet.numeric.decode(r.split("")), h = f.length;
|
|
2724
2724
|
for (let g = 0; g < h - 2; g += 3)
|
|
2725
|
-
i +=
|
|
2726
|
-
h % 3 === 1 ? i +=
|
|
2725
|
+
i += _e(f[g] * 100 + f[g + 1] * 10 + f[g + 2], 10);
|
|
2726
|
+
h % 3 === 1 ? i += _e(f[h - 1], 4) : h % 3 === 2 && (i += _e(f[h - 2] * 10 + f[h - 1], 7));
|
|
2727
2727
|
} else if (n === "alphanumeric") {
|
|
2728
2728
|
const f = U.alphabet.alphanumerc.decode(r.split("")), h = f.length;
|
|
2729
2729
|
for (let g = 0; g < h - 1; g += 2)
|
|
2730
|
-
i +=
|
|
2731
|
-
h % 2 == 1 && (i +=
|
|
2730
|
+
i += _e(f[g] * 45 + f[g + 1], 11);
|
|
2731
|
+
h % 2 == 1 && (i += _e(f[h - 1], 6));
|
|
2732
2732
|
} else if (n === "byte") {
|
|
2733
2733
|
const f = o(r);
|
|
2734
|
-
a = f.length, i = Array.from(f).map((h) =>
|
|
2734
|
+
a = f.length, i = Array.from(f).map((h) => _e(h, 8)).join("");
|
|
2735
2735
|
} else
|
|
2736
2736
|
throw new Error("encode: unsupported type");
|
|
2737
|
-
const { capacity: s } = U.capacity(t, e), l =
|
|
2737
|
+
const { capacity: s } = U.capacity(t, e), l = _e(a, U.lengthBits(t, n));
|
|
2738
2738
|
let d = U.modeBits[n] + l + i;
|
|
2739
2739
|
if (d.length > s)
|
|
2740
2740
|
throw new Error("Capacity overflow");
|
|
@@ -2743,23 +2743,23 @@ function wr(t, e, r, n, o = Ko) {
|
|
|
2743
2743
|
for (let f = 0; d.length !== s; f++)
|
|
2744
2744
|
d += u[f % u.length];
|
|
2745
2745
|
const c = Uint8Array.from(d.match(/(.{8})/g).map((f) => +`0b${f}`));
|
|
2746
|
-
return
|
|
2746
|
+
return Uo(t, e).encode(c);
|
|
2747
2747
|
}
|
|
2748
2748
|
function yr(t, e, r, n, o = !1) {
|
|
2749
|
-
const i =
|
|
2749
|
+
const i = Wo(t, e, n, o);
|
|
2750
2750
|
let a = 0;
|
|
2751
2751
|
const s = 8 * r.length;
|
|
2752
|
-
if (
|
|
2752
|
+
if (Go(i, n, (l, d, u) => {
|
|
2753
2753
|
let c = !1;
|
|
2754
2754
|
a < s && (c = (r[a >>> 3] >> (7 - a & 7) & 1) !== 0, a++), i.set(l, d, c !== u);
|
|
2755
2755
|
}), a !== s)
|
|
2756
2756
|
throw new Error("QR: bytes left after draw");
|
|
2757
2757
|
return i;
|
|
2758
2758
|
}
|
|
2759
|
-
const
|
|
2759
|
+
const tn = (t) => {
|
|
2760
2760
|
const e = t.map((r) => r ? "1" : "0").join("");
|
|
2761
2761
|
return { len: e.length, n: +`0b${e}` };
|
|
2762
|
-
},
|
|
2762
|
+
}, rn = [!0, !1, !0, !0, !0, !1, !0], nn = [!1, !1, !1, !1], st = tn([...rn, ...nn]), xr = tn([...nn, ...rn]);
|
|
2763
2763
|
function qo(t) {
|
|
2764
2764
|
const e = t, { width: r, height: n } = e, o = e.transpose();
|
|
2765
2765
|
let i = 0;
|
|
@@ -2782,9 +2782,9 @@ function qo(t) {
|
|
|
2782
2782
|
const l = n * r, d = e.popcnt(), c = 10 * Math.ceil(Math.max(0, Math.abs(d * 100 - l * 50) - l * 5) / (l * 5));
|
|
2783
2783
|
return i + a + s + c;
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function Xo(t, e, r, n) {
|
|
2786
2786
|
if (n === void 0) {
|
|
2787
|
-
const o =
|
|
2787
|
+
const o = jo();
|
|
2788
2788
|
for (let i = 0; i < Wt.length; i++)
|
|
2789
2789
|
o.add(qo(yr(t, e, r, i, !0)), i);
|
|
2790
2790
|
n = o.get();
|
|
@@ -2793,28 +2793,28 @@ function Ho(t, e, r, n) {
|
|
|
2793
2793
|
throw new Error("Cannot find mask");
|
|
2794
2794
|
return yr(t, e, r, n);
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function Qo(t) {
|
|
2797
2797
|
if (!mr.includes(t))
|
|
2798
2798
|
throw new Error(`Invalid error correction mode=${t}. Expected: ${mr}`);
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2800
|
+
function Jo(t) {
|
|
2801
2801
|
if (!br.includes(t))
|
|
2802
2802
|
throw new Error(`Encoding: invalid mode=${t}. Expected: ${br}`);
|
|
2803
2803
|
if (t === "kanji" || t === "eci")
|
|
2804
2804
|
throw new Error(`Encoding: ${t} is not supported (yet?).`);
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function Zo(t) {
|
|
2807
2807
|
if (![0, 1, 2, 3, 4, 5, 6, 7].includes(t) || !Wt[t])
|
|
2808
2808
|
throw new Error(`Invalid mask=${t}. Expected number [0..7]`);
|
|
2809
2809
|
}
|
|
2810
|
-
function
|
|
2810
|
+
function Yo(t, e = "raw", r = {}) {
|
|
2811
2811
|
const n = r, o = n.ecc !== void 0 ? n.ecc : "medium";
|
|
2812
|
-
|
|
2813
|
-
const i = n.encoding !== void 0 ? n.encoding :
|
|
2814
|
-
|
|
2812
|
+
Qo(o);
|
|
2813
|
+
const i = n.encoding !== void 0 ? n.encoding : Ko(t);
|
|
2814
|
+
Jo(i), n.mask !== void 0 && Zo(n.mask);
|
|
2815
2815
|
let a = n.version, s, l = new Error("Unknown error");
|
|
2816
2816
|
if (a !== void 0)
|
|
2817
|
-
|
|
2817
|
+
Lo(a), s = wr(a, o, t, i, n.textEncoder);
|
|
2818
2818
|
else
|
|
2819
2819
|
for (let c = 1; c <= 40; c++)
|
|
2820
2820
|
try {
|
|
@@ -2825,7 +2825,7 @@ function Zo(t, e = "raw", r = {}) {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
if (!a || !s)
|
|
2827
2827
|
throw l;
|
|
2828
|
-
let d =
|
|
2828
|
+
let d = Xo(a, o, s, n.mask);
|
|
2829
2829
|
d.assertDrawn();
|
|
2830
2830
|
const u = n.border === void 0 ? 2 : n.border;
|
|
2831
2831
|
if (!Number.isSafeInteger(u) || u <= 0)
|
|
@@ -2842,7 +2842,7 @@ function Zo(t, e = "raw", r = {}) {
|
|
|
2842
2842
|
return d.toTerm();
|
|
2843
2843
|
throw new Error(`Unknown output: ${e}`);
|
|
2844
2844
|
}
|
|
2845
|
-
const
|
|
2845
|
+
const on = async (t) => {
|
|
2846
2846
|
if (!t) return !1;
|
|
2847
2847
|
try {
|
|
2848
2848
|
if (navigator?.clipboard?.writeText)
|
|
@@ -2859,31 +2859,31 @@ const nn = async (t) => {
|
|
|
2859
2859
|
return !1;
|
|
2860
2860
|
}
|
|
2861
2861
|
};
|
|
2862
|
-
var
|
|
2863
|
-
const
|
|
2862
|
+
var ei = /* @__PURE__ */ x('<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>'), ti = /* @__PURE__ */ x('<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-2"><button type=button class="h-[200px] w-[200px] cursor-pointer rounded bg-(--lv-qr-background) text-(--lv-qr-color)">');
|
|
2863
|
+
const ri = (t) => Yo(t, "svg", {
|
|
2864
2864
|
optimize: !0,
|
|
2865
2865
|
encoding: "byte",
|
|
2866
2866
|
border: 2
|
|
2867
|
-
}),
|
|
2867
|
+
}), ni = () => {
|
|
2868
2868
|
const {
|
|
2869
2869
|
t
|
|
2870
|
-
} =
|
|
2870
|
+
} = Q(), {
|
|
2871
2871
|
uri: e
|
|
2872
2872
|
} = Ye(), r = () => {
|
|
2873
2873
|
const n = e();
|
|
2874
|
-
n &&
|
|
2874
|
+
n && on(n);
|
|
2875
2875
|
};
|
|
2876
2876
|
return (() => {
|
|
2877
|
-
var n =
|
|
2878
|
-
return m(o, v(
|
|
2877
|
+
var n = ei(), o = n.firstChild, i = o.firstChild, a = i.firstChild, s = o.nextSibling, l = s.firstChild;
|
|
2878
|
+
return m(o, v(ve, {
|
|
2879
2879
|
get when() {
|
|
2880
2880
|
return e();
|
|
2881
2881
|
},
|
|
2882
2882
|
children: (d) => (() => {
|
|
2883
|
-
var u =
|
|
2883
|
+
var u = ti(), c = u.firstChild;
|
|
2884
2884
|
return c.$$click = r, z((f) => {
|
|
2885
|
-
var h = String(t("handshake.clickToCopyUrl")), g =
|
|
2886
|
-
return h !== f.e &&
|
|
2885
|
+
var h = String(t("handshake.clickToCopyUrl")), g = ri(d());
|
|
2886
|
+
return h !== f.e && Z(c, "title", f.e = h), g !== f.t && (c.innerHTML = f.t = g), f;
|
|
2887
2887
|
}, {
|
|
2888
2888
|
e: void 0,
|
|
2889
2889
|
t: void 0
|
|
@@ -2892,19 +2892,19 @@ const ti = (t) => Zo(t, "svg", {
|
|
|
2892
2892
|
}), i), a.$$click = r, m(a, () => t("handshake.copyConnectionUrl")), m(l, () => t("handshake.scanCodeInstruction")), n;
|
|
2893
2893
|
})();
|
|
2894
2894
|
};
|
|
2895
|
-
|
|
2896
|
-
var
|
|
2897
|
-
const Cr = () =>
|
|
2895
|
+
Ae(["click"]);
|
|
2896
|
+
var oi = /* @__PURE__ */ x('<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">'), kr = /* @__PURE__ */ x('<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">'), ii = /* @__PURE__ */ x("<div>");
|
|
2897
|
+
const Cr = () => oi(), si = () => {
|
|
2898
2898
|
const {
|
|
2899
2899
|
status: t
|
|
2900
2900
|
} = Ye(), {
|
|
2901
2901
|
t: e
|
|
2902
|
-
} =
|
|
2902
|
+
} = Q();
|
|
2903
2903
|
return (() => {
|
|
2904
|
-
var r =
|
|
2905
|
-
return m(r, v(
|
|
2904
|
+
var r = ii();
|
|
2905
|
+
return m(r, v(Wr, {
|
|
2906
2906
|
get children() {
|
|
2907
|
-
return [v(
|
|
2907
|
+
return [v(Pe, {
|
|
2908
2908
|
get when() {
|
|
2909
2909
|
return [it.CREATED, it.SIGNALING].includes(t()?.status ?? "");
|
|
2910
2910
|
},
|
|
@@ -2912,14 +2912,14 @@ const Cr = () => ni(), ii = () => {
|
|
|
2912
2912
|
var n = kr(), o = n.firstChild, i = o.firstChild, a = i.nextSibling;
|
|
2913
2913
|
return m(n, v(Cr, {}), o), m(i, () => e("connectionFlow.connecting")), m(a, () => e("connectionFlow.waitingForNetwork")), n;
|
|
2914
2914
|
}
|
|
2915
|
-
}), v(
|
|
2915
|
+
}), v(Pe, {
|
|
2916
2916
|
get when() {
|
|
2917
2917
|
return t()?.status === it.READY;
|
|
2918
2918
|
},
|
|
2919
2919
|
get children() {
|
|
2920
|
-
return v(
|
|
2920
|
+
return v(ni, {});
|
|
2921
2921
|
}
|
|
2922
|
-
}), v(
|
|
2922
|
+
}), v(Pe, {
|
|
2923
2923
|
get when() {
|
|
2924
2924
|
return t()?.status === it.LINKING;
|
|
2925
2925
|
},
|
|
@@ -2932,20 +2932,38 @@ const Cr = () => ni(), ii = () => {
|
|
|
2932
2932
|
})), r;
|
|
2933
2933
|
})();
|
|
2934
2934
|
};
|
|
2935
|
-
var
|
|
2936
|
-
const
|
|
2935
|
+
var ai = /* @__PURE__ */ x('<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-2 text-(--lv-text-muted) text-sm"></p></div><div class="flex w-full flex-col gap-2"><button type=button class="w-full rounded-lg bg-(--lv-control-button-primary-background) px-4 py-2 font-semibold text-(--lv-control-button-primary-color, var(--lv-text-primary)) text-sm transition hover:bg-(--lv-control-button-primary-background-hover)"></button><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)">');
|
|
2936
|
+
const li = (t) => {
|
|
2937
2937
|
const {
|
|
2938
2938
|
t: e
|
|
2939
|
-
} =
|
|
2939
|
+
} = Q(), {
|
|
2940
2940
|
provider: r
|
|
2941
|
-
} =
|
|
2941
|
+
} = Me(), n = T(() => r.getState().error ?? r.getState().session?.error), o = T(() => /ice candidates/i.test(n() ?? "")), i = T(() => o() ? e("connectionFlow.errorNoIce") : n() ?? e("connectionFlow.errorGeneric")), a = () => {
|
|
2942
|
+
r.closeSession();
|
|
2943
|
+
};
|
|
2944
|
+
return (() => {
|
|
2945
|
+
var s = ai(), l = s.firstChild, d = l.firstChild, u = d.nextSibling, c = u.nextSibling, f = l.nextSibling, h = f.firstChild, g = h.nextSibling;
|
|
2946
|
+
return m(u, () => e("connectionFlow.connectionFailed")), m(c, i), h.$$click = a, m(h, () => e("connectionFlow.tryAgain")), yt(g, "click", t.onClose, !0), m(g, () => e("common.close")), s;
|
|
2947
|
+
})();
|
|
2948
|
+
};
|
|
2949
|
+
Ae(["click"]);
|
|
2950
|
+
var ci = /* @__PURE__ */ x('<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">'), Sr = /* @__PURE__ */ x('<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">'), di = /* @__PURE__ */ x("<div class=w-full style=view-transition-name:connection-flow>"), ui = /* @__PURE__ */ x('<div class="mb-4 text-4xl">✅'), fi = /* @__PURE__ */ x('<div class="mb-4 flex flex-col items-center gap-2"><span class="font-medium text-(--lv-text-primary) text-sm">'), hi = /* @__PURE__ */ x("<div class=text-4xl>✅"), gi = /* @__PURE__ */ x('<img alt class="h-12 w-12 rounded-xl">');
|
|
2951
|
+
const vi = () => ci(), pi = (t) => {
|
|
2952
|
+
const {
|
|
2953
|
+
t: e
|
|
2954
|
+
} = Q(), {
|
|
2955
|
+
provider: r
|
|
2956
|
+
} = Me(), [n, o] = D(r.getState().status), i = () => r.getSession()?.getState().peerInfo, a = () => {
|
|
2957
|
+
const s = i()?.icon;
|
|
2958
|
+
return s && (s.startsWith("data:image/") || s.startsWith("https://")) ? s : void 0;
|
|
2959
|
+
};
|
|
2942
2960
|
return Vt(() => {
|
|
2943
2961
|
r.on("status_change", o);
|
|
2944
|
-
}),
|
|
2962
|
+
}), se(() => {
|
|
2945
2963
|
r.off("status_change", o);
|
|
2946
2964
|
}), (() => {
|
|
2947
|
-
var
|
|
2948
|
-
return m(
|
|
2965
|
+
var s = di();
|
|
2966
|
+
return m(s, v(Wr, {
|
|
2949
2967
|
get fallback() {
|
|
2950
2968
|
return v(Lt, {
|
|
2951
2969
|
get state() {
|
|
@@ -2954,44 +2972,72 @@ const ui = () => si(), fi = (t) => {
|
|
|
2954
2972
|
});
|
|
2955
2973
|
},
|
|
2956
2974
|
get children() {
|
|
2957
|
-
return [v(
|
|
2975
|
+
return [v(Pe, {
|
|
2958
2976
|
get when() {
|
|
2959
|
-
return n() ===
|
|
2977
|
+
return n() === oe.CREATING;
|
|
2960
2978
|
},
|
|
2961
2979
|
get children() {
|
|
2962
|
-
var
|
|
2963
|
-
return m(
|
|
2980
|
+
var l = Sr(), d = l.firstChild, u = d.firstChild, c = u.nextSibling;
|
|
2981
|
+
return m(l, v(vi, {}), d), m(u, () => e("connectionFlow.preparingConnection")), m(c, () => e("connectionFlow.generatingKeys")), l;
|
|
2964
2982
|
}
|
|
2965
|
-
}), v(
|
|
2983
|
+
}), v(Pe, {
|
|
2966
2984
|
get when() {
|
|
2967
|
-
return n() ===
|
|
2985
|
+
return n() === oe.CONNECTING;
|
|
2968
2986
|
},
|
|
2969
2987
|
get children() {
|
|
2970
|
-
return v(
|
|
2988
|
+
return v(si, {
|
|
2989
|
+
get onClose() {
|
|
2990
|
+
return t.onClose;
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2971
2993
|
}
|
|
2972
|
-
}), v(
|
|
2994
|
+
}), v(Pe, {
|
|
2973
2995
|
get when() {
|
|
2974
|
-
return n() ===
|
|
2996
|
+
return n() === oe.CONNECTED;
|
|
2975
2997
|
},
|
|
2976
2998
|
get children() {
|
|
2977
|
-
var
|
|
2978
|
-
return m(d, (
|
|
2999
|
+
var l = Sr(), d = l.firstChild, u = d.firstChild, c = u.nextSibling;
|
|
3000
|
+
return m(d, v(ve, {
|
|
3001
|
+
get when() {
|
|
3002
|
+
return i();
|
|
3003
|
+
},
|
|
3004
|
+
get fallback() {
|
|
3005
|
+
return ui();
|
|
3006
|
+
},
|
|
3007
|
+
children: (f) => (() => {
|
|
3008
|
+
var h = fi(), g = h.firstChild;
|
|
3009
|
+
return m(h, v(ve, {
|
|
3010
|
+
get when() {
|
|
3011
|
+
return a();
|
|
3012
|
+
},
|
|
3013
|
+
get fallback() {
|
|
3014
|
+
return hi();
|
|
3015
|
+
},
|
|
3016
|
+
children: (b) => (() => {
|
|
3017
|
+
var p = gi();
|
|
3018
|
+
return z(() => Z(p, "src", b())), p;
|
|
3019
|
+
})()
|
|
3020
|
+
}), g), m(g, () => f().name), h;
|
|
3021
|
+
})()
|
|
3022
|
+
}), u), m(u, () => e("connectionFlow.connectedSuccessfully")), m(c, () => e("connectionFlow.walletConnectedReady")), l;
|
|
2979
3023
|
}
|
|
2980
|
-
}), v(
|
|
3024
|
+
}), v(Pe, {
|
|
2981
3025
|
get when() {
|
|
2982
|
-
return n() ===
|
|
3026
|
+
return n() === oe.ERROR;
|
|
2983
3027
|
},
|
|
2984
3028
|
get children() {
|
|
2985
|
-
|
|
2986
|
-
|
|
3029
|
+
return v(li, {
|
|
3030
|
+
get onClose() {
|
|
3031
|
+
return t.onClose;
|
|
3032
|
+
}
|
|
3033
|
+
});
|
|
2987
3034
|
}
|
|
2988
3035
|
})];
|
|
2989
3036
|
}
|
|
2990
|
-
})),
|
|
3037
|
+
})), s;
|
|
2991
3038
|
})();
|
|
2992
3039
|
};
|
|
2993
|
-
|
|
2994
|
-
var hi = {
|
|
3040
|
+
var mi = {
|
|
2995
3041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2996
3042
|
width: 24,
|
|
2997
3043
|
height: 24,
|
|
@@ -3001,59 +3047,59 @@ var hi = {
|
|
|
3001
3047
|
"stroke-width": 2,
|
|
3002
3048
|
"stroke-linecap": "round",
|
|
3003
3049
|
"stroke-linejoin": "round"
|
|
3004
|
-
},
|
|
3050
|
+
}, Le = mi, bi = /* @__PURE__ */ x("<svg>"), wi = (t) => {
|
|
3005
3051
|
for (const e in t)
|
|
3006
3052
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
3007
3053
|
return !0;
|
|
3008
3054
|
return !1;
|
|
3009
|
-
},
|
|
3010
|
-
const e =
|
|
3055
|
+
}, yi = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim(), xi = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, n) => n ? n.toUpperCase() : r.toLowerCase()), Ar = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ki = (t) => {
|
|
3056
|
+
const e = xi(t);
|
|
3011
3057
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3012
|
-
},
|
|
3058
|
+
}, Ci = (t) => {
|
|
3013
3059
|
const [e, r] = wt(t, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
|
|
3014
3060
|
return (() => {
|
|
3015
|
-
var n =
|
|
3016
|
-
return gt(n, X(
|
|
3061
|
+
var n = bi();
|
|
3062
|
+
return gt(n, X(Le, {
|
|
3017
3063
|
get width() {
|
|
3018
|
-
return e.size ??
|
|
3064
|
+
return e.size ?? Le.width;
|
|
3019
3065
|
},
|
|
3020
3066
|
get height() {
|
|
3021
|
-
return e.size ??
|
|
3067
|
+
return e.size ?? Le.height;
|
|
3022
3068
|
},
|
|
3023
3069
|
get stroke() {
|
|
3024
|
-
return e.color ??
|
|
3070
|
+
return e.color ?? Le.stroke;
|
|
3025
3071
|
},
|
|
3026
3072
|
get "stroke-width"() {
|
|
3027
|
-
return
|
|
3073
|
+
return Re(() => !!e.absoluteStrokeWidth)() ? Number(e.strokeWidth ?? Le["stroke-width"]) * 24 / Number(e.size) : Number(e.strokeWidth ?? Le["stroke-width"]);
|
|
3028
3074
|
},
|
|
3029
3075
|
get class() {
|
|
3030
|
-
return
|
|
3076
|
+
return yi("lucide", "lucide-icon", ...e.name != null ? [`lucide-${Ar(ki(e.name))}`, `lucide-${Ar(e.name)}`] : [], e.class != null ? e.class : "");
|
|
3031
3077
|
},
|
|
3032
3078
|
get "aria-hidden"() {
|
|
3033
|
-
return !e.children && !
|
|
3079
|
+
return !e.children && !wi(r) ? "true" : void 0;
|
|
3034
3080
|
}
|
|
3035
|
-
}, r), !0, !0), m(n, v(
|
|
3081
|
+
}, r), !0, !0), m(n, v(Ce, {
|
|
3036
3082
|
get each() {
|
|
3037
3083
|
return e.iconNode;
|
|
3038
3084
|
},
|
|
3039
|
-
children: ([o, i]) => v(
|
|
3085
|
+
children: ([o, i]) => v(Kn, X({
|
|
3040
3086
|
component: o
|
|
3041
3087
|
}, i))
|
|
3042
3088
|
})), n;
|
|
3043
3089
|
})();
|
|
3044
|
-
},
|
|
3090
|
+
}, $e = Ci, Si = [["path", {
|
|
3045
3091
|
d: "m15 18-6-6 6-6",
|
|
3046
3092
|
key: "1wnfg3"
|
|
3047
|
-
}]],
|
|
3048
|
-
iconNode:
|
|
3093
|
+
}]], Ai = (t) => v($e, X(t, {
|
|
3094
|
+
iconNode: Si,
|
|
3049
3095
|
name: "chevron-left"
|
|
3050
|
-
})),
|
|
3096
|
+
})), $i = Ai, Ti = [["path", {
|
|
3051
3097
|
d: "m9 18 6-6-6-6",
|
|
3052
3098
|
key: "mthhwq"
|
|
3053
|
-
}]],
|
|
3054
|
-
iconNode:
|
|
3099
|
+
}]], Ei = (t) => v($e, X(t, {
|
|
3100
|
+
iconNode: Ti,
|
|
3055
3101
|
name: "chevron-right"
|
|
3056
|
-
})),
|
|
3102
|
+
})), _i = Ei, Ni = [["circle", {
|
|
3057
3103
|
cx: "12",
|
|
3058
3104
|
cy: "12",
|
|
3059
3105
|
r: "10",
|
|
@@ -3064,19 +3110,19 @@ var hi = {
|
|
|
3064
3110
|
}], ["path", {
|
|
3065
3111
|
d: "M12 17h.01",
|
|
3066
3112
|
key: "p32p05"
|
|
3067
|
-
}]],
|
|
3068
|
-
iconNode:
|
|
3113
|
+
}]], Pi = (t) => v($e, X(t, {
|
|
3114
|
+
iconNode: Ni,
|
|
3069
3115
|
name: "circle-question-mark"
|
|
3070
|
-
})),
|
|
3116
|
+
})), sn = Pi, Bi = [["path", {
|
|
3071
3117
|
d: "M5 12h14",
|
|
3072
3118
|
key: "1ays0h"
|
|
3073
3119
|
}], ["path", {
|
|
3074
3120
|
d: "M12 5v14",
|
|
3075
3121
|
key: "s699le"
|
|
3076
|
-
}]],
|
|
3077
|
-
iconNode:
|
|
3122
|
+
}]], Ri = (t) => v($e, X(t, {
|
|
3123
|
+
iconNode: Bi,
|
|
3078
3124
|
name: "plus"
|
|
3079
|
-
})),
|
|
3125
|
+
})), Mi = Ri, Oi = [["rect", {
|
|
3080
3126
|
width: "5",
|
|
3081
3127
|
height: "5",
|
|
3082
3128
|
x: "3",
|
|
@@ -3124,10 +3170,10 @@ var hi = {
|
|
|
3124
3170
|
}], ["path", {
|
|
3125
3171
|
d: "M12 21v-1",
|
|
3126
3172
|
key: "1880an"
|
|
3127
|
-
}]],
|
|
3128
|
-
iconNode:
|
|
3173
|
+
}]], Ii = (t) => v($e, X(t, {
|
|
3174
|
+
iconNode: Oi,
|
|
3129
3175
|
name: "qr-code"
|
|
3130
|
-
})),
|
|
3176
|
+
})), Li = Ii, ji = [["path", {
|
|
3131
3177
|
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",
|
|
3132
3178
|
key: "1i5ecw"
|
|
3133
3179
|
}], ["circle", {
|
|
@@ -3135,10 +3181,10 @@ var hi = {
|
|
|
3135
3181
|
cy: "12",
|
|
3136
3182
|
r: "3",
|
|
3137
3183
|
key: "1v7zrd"
|
|
3138
|
-
}]],
|
|
3139
|
-
iconNode:
|
|
3184
|
+
}]], Di = (t) => v($e, X(t, {
|
|
3185
|
+
iconNode: ji,
|
|
3140
3186
|
name: "settings"
|
|
3141
|
-
})),
|
|
3187
|
+
})), Vi = Di, Fi = [["path", {
|
|
3142
3188
|
d: "M10 11v6",
|
|
3143
3189
|
key: "nco0om"
|
|
3144
3190
|
}], ["path", {
|
|
@@ -3153,19 +3199,19 @@ var hi = {
|
|
|
3153
3199
|
}], ["path", {
|
|
3154
3200
|
d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
|
|
3155
3201
|
key: "e791ji"
|
|
3156
|
-
}]],
|
|
3157
|
-
iconNode:
|
|
3202
|
+
}]], zi = (t) => v($e, X(t, {
|
|
3203
|
+
iconNode: Fi,
|
|
3158
3204
|
name: "trash-2"
|
|
3159
|
-
})),
|
|
3205
|
+
})), Ui = zi, Wi = [["path", {
|
|
3160
3206
|
d: "M18 6 6 18",
|
|
3161
3207
|
key: "1bl5f8"
|
|
3162
3208
|
}], ["path", {
|
|
3163
3209
|
d: "m6 6 12 12",
|
|
3164
3210
|
key: "d8bk6v"
|
|
3165
|
-
}]],
|
|
3166
|
-
iconNode:
|
|
3211
|
+
}]], Gi = (t) => v($e, X(t, {
|
|
3212
|
+
iconNode: Wi,
|
|
3167
3213
|
name: "x"
|
|
3168
|
-
})),
|
|
3214
|
+
})), Ki = Gi, Hi = /\s+/g, qi = (t) => typeof t != "string" || !t ? t : t.replace(Hi, " ").trim(), mt = (...t) => {
|
|
3169
3215
|
const e = [], r = (n) => {
|
|
3170
3216
|
if (!n && n !== 0 && n !== 0n) return;
|
|
3171
3217
|
if (Array.isArray(n)) {
|
|
@@ -3188,12 +3234,12 @@ var hi = {
|
|
|
3188
3234
|
const i = t[n];
|
|
3189
3235
|
i != null && r(i);
|
|
3190
3236
|
}
|
|
3191
|
-
return e.length > 0 ?
|
|
3192
|
-
},
|
|
3237
|
+
return e.length > 0 ? qi(e.join(" ")) : void 0;
|
|
3238
|
+
}, $r = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, re = (t) => {
|
|
3193
3239
|
if (!t || typeof t != "object") return !0;
|
|
3194
3240
|
for (const e in t) return !1;
|
|
3195
3241
|
return !0;
|
|
3196
|
-
},
|
|
3242
|
+
}, Xi = (t, e) => {
|
|
3197
3243
|
if (t === e) return !0;
|
|
3198
3244
|
if (!t || !e) return !1;
|
|
3199
3245
|
const r = Object.keys(t), n = Object.keys(e);
|
|
@@ -3203,21 +3249,21 @@ var hi = {
|
|
|
3203
3249
|
if (!n.includes(i) || t[i] !== e[i]) return !1;
|
|
3204
3250
|
}
|
|
3205
3251
|
return !0;
|
|
3206
|
-
},
|
|
3252
|
+
}, Qi = (t, e) => {
|
|
3207
3253
|
for (const r in e)
|
|
3208
3254
|
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
3209
3255
|
const n = e[r];
|
|
3210
3256
|
r in t ? t[r] = mt(t[r], n) : t[r] = n;
|
|
3211
3257
|
}
|
|
3212
3258
|
return t;
|
|
3213
|
-
},
|
|
3259
|
+
}, an = (t, e) => {
|
|
3214
3260
|
for (let r = 0; r < t.length; r++) {
|
|
3215
3261
|
const n = t[r];
|
|
3216
|
-
Array.isArray(n) ?
|
|
3262
|
+
Array.isArray(n) ? an(n, e) : n && e.push(n);
|
|
3217
3263
|
}
|
|
3218
|
-
},
|
|
3264
|
+
}, ln = (...t) => {
|
|
3219
3265
|
const e = [];
|
|
3220
|
-
|
|
3266
|
+
an(t, e);
|
|
3221
3267
|
const r = [];
|
|
3222
3268
|
for (let n = 0; n < e.length; n++)
|
|
3223
3269
|
e[n] && r.push(e[n]);
|
|
@@ -3228,18 +3274,18 @@ var hi = {
|
|
|
3228
3274
|
const o = t[n];
|
|
3229
3275
|
if (n in e) {
|
|
3230
3276
|
const i = e[n];
|
|
3231
|
-
Array.isArray(o) || Array.isArray(i) ? r[n] =
|
|
3277
|
+
Array.isArray(o) || Array.isArray(i) ? r[n] = ln(i, o) : typeof o == "object" && typeof i == "object" && o && i ? r[n] = jt(o, i) : r[n] = i + " " + o;
|
|
3232
3278
|
} else
|
|
3233
3279
|
r[n] = o;
|
|
3234
3280
|
}
|
|
3235
3281
|
for (const n in e)
|
|
3236
3282
|
n in t || (r[n] = e[n]);
|
|
3237
3283
|
return r;
|
|
3238
|
-
},
|
|
3284
|
+
}, Ji = {
|
|
3239
3285
|
twMerge: !0,
|
|
3240
3286
|
twMergeConfig: {}
|
|
3241
3287
|
};
|
|
3242
|
-
function
|
|
3288
|
+
function Zi() {
|
|
3243
3289
|
let t = null, e = {}, r = !1;
|
|
3244
3290
|
return {
|
|
3245
3291
|
get cachedTwMerge() {
|
|
@@ -3265,7 +3311,7 @@ function Hi() {
|
|
|
3265
3311
|
}
|
|
3266
3312
|
};
|
|
3267
3313
|
}
|
|
3268
|
-
var Et =
|
|
3314
|
+
var Et = Zi(), Yi = (t) => {
|
|
3269
3315
|
const e = (n, o) => {
|
|
3270
3316
|
const {
|
|
3271
3317
|
extend: i = null,
|
|
@@ -3274,17 +3320,17 @@ var Et = Hi(), Xi = (t) => {
|
|
|
3274
3320
|
compoundVariants: l = [],
|
|
3275
3321
|
compoundSlots: d = [],
|
|
3276
3322
|
defaultVariants: u = {}
|
|
3277
|
-
} = n, c = { ...
|
|
3278
|
-
!
|
|
3279
|
-
const b =
|
|
3323
|
+
} = n, c = { ...Ji, ...o }, f = i?.base ? mt(i.base, n?.base) : n?.base, h = i?.variants && !re(i.variants) ? jt(s, i.variants) : s, g = i?.defaultVariants && !re(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
|
|
3324
|
+
!re(c.twMergeConfig) && !Xi(c.twMergeConfig, Et.cachedTwMergeConfig) && (Et.didTwMergeConfigChange = !0, Et.cachedTwMergeConfig = c.twMergeConfig);
|
|
3325
|
+
const b = re(i?.slots), p = re(a) ? {} : {
|
|
3280
3326
|
// add "base" to the slots object
|
|
3281
3327
|
base: mt(n?.base, b && i?.base),
|
|
3282
3328
|
...a
|
|
3283
|
-
}, C = b ? p :
|
|
3329
|
+
}, C = b ? p : Qi(
|
|
3284
3330
|
{ ...i?.slots },
|
|
3285
|
-
|
|
3286
|
-
), k =
|
|
3287
|
-
if (
|
|
3331
|
+
re(p) ? { base: n?.base } : p
|
|
3332
|
+
), k = re(i?.compoundVariants) ? l : ln(i?.compoundVariants, l), y = (_) => {
|
|
3333
|
+
if (re(h) && re(a) && b)
|
|
3288
3334
|
return t(f, _?.class, _?.className)(c);
|
|
3289
3335
|
if (k && !Array.isArray(k))
|
|
3290
3336
|
throw new TypeError(
|
|
@@ -3294,101 +3340,101 @@ var Et = Hi(), Xi = (t) => {
|
|
|
3294
3340
|
throw new TypeError(
|
|
3295
3341
|
`The "compoundSlots" prop must be an array. Received: ${typeof d}`
|
|
3296
3342
|
);
|
|
3297
|
-
const
|
|
3343
|
+
const pe = (A, $ = h, E = null, R = null) => {
|
|
3298
3344
|
const N = $[A];
|
|
3299
|
-
if (!N ||
|
|
3345
|
+
if (!N || re(N))
|
|
3300
3346
|
return null;
|
|
3301
3347
|
const O = R?.[A] ?? _?.[A];
|
|
3302
3348
|
if (O === null) return null;
|
|
3303
|
-
const
|
|
3304
|
-
if (typeof
|
|
3349
|
+
const J = $r(O);
|
|
3350
|
+
if (typeof J == "object")
|
|
3305
3351
|
return null;
|
|
3306
|
-
const ce = g?.[A], G =
|
|
3352
|
+
const ce = g?.[A], G = J ?? $r(ce);
|
|
3307
3353
|
return N[G || "false"];
|
|
3308
3354
|
}, he = () => {
|
|
3309
3355
|
if (!h) return null;
|
|
3310
3356
|
const A = Object.keys(h), $ = [];
|
|
3311
|
-
for (let
|
|
3312
|
-
const R =
|
|
3357
|
+
for (let E = 0; E < A.length; E++) {
|
|
3358
|
+
const R = pe(A[E], h);
|
|
3313
3359
|
R && $.push(R);
|
|
3314
3360
|
}
|
|
3315
3361
|
return $;
|
|
3316
3362
|
}, De = (A, $) => {
|
|
3317
3363
|
if (!h || typeof h != "object") return null;
|
|
3318
|
-
const
|
|
3364
|
+
const E = [];
|
|
3319
3365
|
for (const R in h) {
|
|
3320
|
-
const N =
|
|
3321
|
-
O &&
|
|
3366
|
+
const N = pe(R, h, A, $), O = A === "base" && typeof N == "string" ? N : N && N[A];
|
|
3367
|
+
O && E.push(O);
|
|
3322
3368
|
}
|
|
3323
|
-
return
|
|
3369
|
+
return E;
|
|
3324
3370
|
}, tt = {};
|
|
3325
3371
|
for (const A in _) {
|
|
3326
3372
|
const $ = _[A];
|
|
3327
3373
|
$ !== void 0 && (tt[A] = $);
|
|
3328
3374
|
}
|
|
3329
3375
|
const Ve = (A, $) => {
|
|
3330
|
-
const
|
|
3376
|
+
const E = typeof _?.[A] == "object" ? {
|
|
3331
3377
|
[A]: _[A]?.initial
|
|
3332
3378
|
} : {};
|
|
3333
3379
|
return {
|
|
3334
3380
|
...g,
|
|
3335
3381
|
...tt,
|
|
3336
|
-
...
|
|
3382
|
+
...E,
|
|
3337
3383
|
...$
|
|
3338
3384
|
};
|
|
3339
3385
|
}, rt = (A = [], $) => {
|
|
3340
|
-
const
|
|
3386
|
+
const E = [], R = A.length;
|
|
3341
3387
|
for (let N = 0; N < R; N++) {
|
|
3342
|
-
const { class: O, className:
|
|
3388
|
+
const { class: O, className: J, ...ce } = A[N];
|
|
3343
3389
|
let G = !0;
|
|
3344
|
-
const
|
|
3345
|
-
for (const
|
|
3346
|
-
const
|
|
3347
|
-
if (Array.isArray(
|
|
3348
|
-
if (!
|
|
3390
|
+
const ae = Ve(null, $);
|
|
3391
|
+
for (const me in ce) {
|
|
3392
|
+
const le = ce[me], Oe = ae[me];
|
|
3393
|
+
if (Array.isArray(le)) {
|
|
3394
|
+
if (!le.includes(Oe)) {
|
|
3349
3395
|
G = !1;
|
|
3350
3396
|
break;
|
|
3351
3397
|
}
|
|
3352
3398
|
} else {
|
|
3353
|
-
if ((
|
|
3399
|
+
if ((le == null || le === !1) && (Oe == null || Oe === !1))
|
|
3354
3400
|
continue;
|
|
3355
|
-
if (
|
|
3401
|
+
if (Oe !== le) {
|
|
3356
3402
|
G = !1;
|
|
3357
3403
|
break;
|
|
3358
3404
|
}
|
|
3359
3405
|
}
|
|
3360
3406
|
}
|
|
3361
|
-
G && (O &&
|
|
3407
|
+
G && (O && E.push(O), J && E.push(J));
|
|
3362
3408
|
}
|
|
3363
|
-
return
|
|
3409
|
+
return E;
|
|
3364
3410
|
}, nt = (A) => {
|
|
3365
3411
|
const $ = rt(k, A);
|
|
3366
3412
|
if (!Array.isArray($)) return $;
|
|
3367
|
-
const
|
|
3413
|
+
const E = {}, R = t;
|
|
3368
3414
|
for (let N = 0; N < $.length; N++) {
|
|
3369
3415
|
const O = $[N];
|
|
3370
3416
|
if (typeof O == "string")
|
|
3371
|
-
|
|
3417
|
+
E.base = R(E.base, O)(c);
|
|
3372
3418
|
else if (typeof O == "object")
|
|
3373
|
-
for (const
|
|
3374
|
-
|
|
3419
|
+
for (const J in O)
|
|
3420
|
+
E[J] = R(E[J], O[J])(c);
|
|
3375
3421
|
}
|
|
3376
|
-
return
|
|
3377
|
-
},
|
|
3422
|
+
return E;
|
|
3423
|
+
}, Te = (A) => {
|
|
3378
3424
|
if (d.length < 1) return null;
|
|
3379
|
-
const $ = {},
|
|
3425
|
+
const $ = {}, E = Ve(null, A);
|
|
3380
3426
|
for (let R = 0; R < d.length; R++) {
|
|
3381
3427
|
const {
|
|
3382
3428
|
slots: N = [],
|
|
3383
3429
|
class: O,
|
|
3384
|
-
className:
|
|
3430
|
+
className: J,
|
|
3385
3431
|
...ce
|
|
3386
3432
|
} = d[R];
|
|
3387
|
-
if (!
|
|
3433
|
+
if (!re(ce)) {
|
|
3388
3434
|
let G = !0;
|
|
3389
|
-
for (const
|
|
3390
|
-
const
|
|
3391
|
-
if (
|
|
3435
|
+
for (const ae in ce) {
|
|
3436
|
+
const me = E[ae], le = ce[ae];
|
|
3437
|
+
if (me === void 0 || (Array.isArray(le) ? !le.includes(me) : le !== me)) {
|
|
3392
3438
|
G = !1;
|
|
3393
3439
|
break;
|
|
3394
3440
|
}
|
|
@@ -3396,24 +3442,24 @@ var Et = Hi(), Xi = (t) => {
|
|
|
3396
3442
|
if (!G) continue;
|
|
3397
3443
|
}
|
|
3398
3444
|
for (let G = 0; G < N.length; G++) {
|
|
3399
|
-
const
|
|
3400
|
-
$[
|
|
3445
|
+
const ae = N[G];
|
|
3446
|
+
$[ae] || ($[ae] = []), $[ae].push([O, J]);
|
|
3401
3447
|
}
|
|
3402
3448
|
}
|
|
3403
3449
|
return $;
|
|
3404
3450
|
};
|
|
3405
|
-
if (!
|
|
3451
|
+
if (!re(a) || !b) {
|
|
3406
3452
|
const A = {};
|
|
3407
|
-
if (typeof C == "object" && !
|
|
3453
|
+
if (typeof C == "object" && !re(C)) {
|
|
3408
3454
|
const $ = t;
|
|
3409
|
-
for (const
|
|
3410
|
-
A[
|
|
3411
|
-
const N = nt(R), O =
|
|
3455
|
+
for (const E in C)
|
|
3456
|
+
A[E] = (R) => {
|
|
3457
|
+
const N = nt(R), O = Te(R);
|
|
3412
3458
|
return $(
|
|
3413
|
-
C[
|
|
3414
|
-
De(
|
|
3415
|
-
N ? N[
|
|
3416
|
-
O ? O[
|
|
3459
|
+
C[E],
|
|
3460
|
+
De(E, R),
|
|
3461
|
+
N ? N[E] : void 0,
|
|
3462
|
+
O ? O[E] : void 0,
|
|
3417
3463
|
R?.class,
|
|
3418
3464
|
R?.className
|
|
3419
3465
|
)(c);
|
|
@@ -3438,8 +3484,8 @@ var Et = Hi(), Xi = (t) => {
|
|
|
3438
3484
|
tv: e,
|
|
3439
3485
|
createTV: (n) => (o, i) => e(o, i ? jt(n, i) : n)
|
|
3440
3486
|
};
|
|
3441
|
-
},
|
|
3442
|
-
const
|
|
3487
|
+
}, es = (...t) => (e) => mt(t) || void 0, { tv: xt } = Yi(es), ts = /* @__PURE__ */ x("<a>"), rs = /* @__PURE__ */ x("<button type=button>");
|
|
3488
|
+
const Tr = xt({
|
|
3443
3489
|
base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
|
|
3444
3490
|
variants: {
|
|
3445
3491
|
$variant: {
|
|
@@ -3462,10 +3508,10 @@ const $r = xt({
|
|
|
3462
3508
|
$variant: "primary",
|
|
3463
3509
|
$aspect: "auto"
|
|
3464
3510
|
}
|
|
3465
|
-
}),
|
|
3511
|
+
}), je = (t) => {
|
|
3466
3512
|
const [e, r] = wt(t, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
|
|
3467
3513
|
return e.href ? (() => {
|
|
3468
|
-
var n =
|
|
3514
|
+
var n = ts();
|
|
3469
3515
|
return gt(n, X({
|
|
3470
3516
|
get href() {
|
|
3471
3517
|
return e.href;
|
|
@@ -3474,7 +3520,7 @@ const $r = xt({
|
|
|
3474
3520
|
return e.onClick;
|
|
3475
3521
|
},
|
|
3476
3522
|
get class() {
|
|
3477
|
-
return
|
|
3523
|
+
return ke(Tr({
|
|
3478
3524
|
$variant: e.$variant,
|
|
3479
3525
|
$size: e.$size,
|
|
3480
3526
|
$aspect: e.$aspect
|
|
@@ -3482,13 +3528,13 @@ const $r = xt({
|
|
|
3482
3528
|
}
|
|
3483
3529
|
}, r), !1, !0), m(n, () => e.children), n;
|
|
3484
3530
|
})() : (() => {
|
|
3485
|
-
var n =
|
|
3531
|
+
var n = rs();
|
|
3486
3532
|
return gt(n, X({
|
|
3487
3533
|
get onClick() {
|
|
3488
3534
|
return e.onClick;
|
|
3489
3535
|
},
|
|
3490
3536
|
get class() {
|
|
3491
|
-
return
|
|
3537
|
+
return ke(Tr({
|
|
3492
3538
|
$variant: e.$variant,
|
|
3493
3539
|
$size: e.$size,
|
|
3494
3540
|
$aspect: e.$aspect
|
|
@@ -3497,45 +3543,45 @@ const $r = xt({
|
|
|
3497
3543
|
}, r), !1, !0), m(n, () => e.children), n;
|
|
3498
3544
|
})();
|
|
3499
3545
|
};
|
|
3500
|
-
var
|
|
3501
|
-
const
|
|
3502
|
-
var e =
|
|
3503
|
-
return m(n, v(
|
|
3546
|
+
var ns = /* @__PURE__ */ x('<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">'), os = /* @__PURE__ */ x('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), is = /* @__PURE__ */ x('<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">'), ss = /* @__PURE__ */ x('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), as = /* @__PURE__ */ x('<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">');
|
|
3547
|
+
const cn = (t) => t ? 1 : 3, ls = (t) => (() => {
|
|
3548
|
+
var e = ns(), r = e.firstChild, n = r.nextSibling;
|
|
3549
|
+
return m(n, v(Ce, {
|
|
3504
3550
|
get each() {
|
|
3505
3551
|
return Array.from({
|
|
3506
|
-
length:
|
|
3552
|
+
length: cn(t.isApple)
|
|
3507
3553
|
});
|
|
3508
3554
|
},
|
|
3509
|
-
children: () =>
|
|
3555
|
+
children: () => os()
|
|
3510
3556
|
})), e;
|
|
3511
|
-
})(),
|
|
3512
|
-
var e =
|
|
3513
|
-
return m(n, v(
|
|
3557
|
+
})(), cs = (t) => (() => {
|
|
3558
|
+
var e = is(), r = e.firstChild, n = r.nextSibling;
|
|
3559
|
+
return m(n, v(Ce, {
|
|
3514
3560
|
get each() {
|
|
3515
3561
|
return Array.from({
|
|
3516
|
-
length:
|
|
3562
|
+
length: cn(t.isApple)
|
|
3517
3563
|
});
|
|
3518
3564
|
},
|
|
3519
|
-
children: () =>
|
|
3565
|
+
children: () => ss()
|
|
3520
3566
|
})), e;
|
|
3521
|
-
})(),
|
|
3522
|
-
var e =
|
|
3523
|
-
return m(r, v(
|
|
3567
|
+
})(), ds = () => (() => {
|
|
3568
|
+
var e = as(), r = e.firstChild, n = r.nextSibling;
|
|
3569
|
+
return m(r, v(ls, {
|
|
3524
3570
|
isApple: !0
|
|
3525
|
-
})), m(n, v(
|
|
3571
|
+
})), m(n, v(cs, {
|
|
3526
3572
|
isApple: !0
|
|
3527
3573
|
})), e;
|
|
3528
3574
|
})();
|
|
3529
|
-
var
|
|
3530
|
-
const
|
|
3575
|
+
var us = /* @__PURE__ */ x('<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">');
|
|
3576
|
+
const fs = (t) => {
|
|
3531
3577
|
const {
|
|
3532
3578
|
t: e
|
|
3533
|
-
} =
|
|
3579
|
+
} = Q(), {
|
|
3534
3580
|
start: r
|
|
3535
|
-
} =
|
|
3581
|
+
} = Mo();
|
|
3536
3582
|
return (() => {
|
|
3537
|
-
var n =
|
|
3538
|
-
return m(n, v(
|
|
3583
|
+
var n = us(), o = n.firstChild, i = o.firstChild, a = o.nextSibling;
|
|
3584
|
+
return m(n, v(ds, {}), o), m(i, () => e("disconnected.prompt")), m(a, v(je, {
|
|
3539
3585
|
type: "button",
|
|
3540
3586
|
onClick: r,
|
|
3541
3587
|
class: "z-10 px-6 py-3",
|
|
@@ -3544,7 +3590,7 @@ const ls = (t) => {
|
|
|
3544
3590
|
get children() {
|
|
3545
3591
|
return e("disconnected.generateQr");
|
|
3546
3592
|
}
|
|
3547
|
-
}), null), m(a, v(
|
|
3593
|
+
}), null), m(a, v(je, {
|
|
3548
3594
|
type: "button",
|
|
3549
3595
|
get "aria-label"() {
|
|
3550
3596
|
return String(e("disconnected.connectionSettings"));
|
|
@@ -3558,33 +3604,33 @@ const ls = (t) => {
|
|
|
3558
3604
|
$size: "lg",
|
|
3559
3605
|
$variant: "secondary",
|
|
3560
3606
|
get children() {
|
|
3561
|
-
return v(
|
|
3607
|
+
return v(Vi, {
|
|
3562
3608
|
class: "h-5 w-5 text-(--lv-text-muted)"
|
|
3563
3609
|
});
|
|
3564
3610
|
}
|
|
3565
3611
|
}), null), n;
|
|
3566
3612
|
})();
|
|
3567
3613
|
};
|
|
3568
|
-
var
|
|
3569
|
-
const
|
|
3614
|
+
var hs = /* @__PURE__ */ x('<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>');
|
|
3615
|
+
const gs = () => {
|
|
3570
3616
|
const {
|
|
3571
3617
|
t
|
|
3572
|
-
} =
|
|
3618
|
+
} = Q();
|
|
3573
3619
|
return (() => {
|
|
3574
|
-
var e =
|
|
3575
|
-
return m(n, () => t("info.scanQrCode")), m(o, v(
|
|
3620
|
+
var e = hs(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling, a = i.firstChild, s = i.nextSibling, l = s.firstChild;
|
|
3621
|
+
return m(n, () => t("info.scanQrCode")), m(o, v(Li, {
|
|
3576
3622
|
class: "w-10 h-10"
|
|
3577
3623
|
})), m(a, () => t("info.approveOnDevice")), m(l, () => t("info.youreConnected")), e;
|
|
3578
3624
|
})();
|
|
3579
3625
|
}, Dt = (t, { duration: e = 200 } = {}) => {
|
|
3580
3626
|
const r = typeof t == "function" ? t : () => t, n = r(), [o, i] = D(n), [a, s] = D(void 0);
|
|
3581
3627
|
let l, d = n;
|
|
3582
|
-
return
|
|
3628
|
+
return ie(() => {
|
|
3583
3629
|
const u = r();
|
|
3584
3630
|
Object.is(u, d) || (l && globalThis.clearTimeout(l), s(() => d), i(() => u), d = u, l = globalThis.setTimeout(() => {
|
|
3585
3631
|
s(() => {
|
|
3586
3632
|
}), l = void 0;
|
|
3587
|
-
}, e),
|
|
3633
|
+
}, e), se(() => {
|
|
3588
3634
|
l && globalThis.clearTimeout(l);
|
|
3589
3635
|
}));
|
|
3590
3636
|
}), {
|
|
@@ -3593,7 +3639,7 @@ const ds = () => {
|
|
|
3593
3639
|
isTransitioning: () => a() !== void 0
|
|
3594
3640
|
};
|
|
3595
3641
|
}, et = () => {
|
|
3596
|
-
const { provider: t } =
|
|
3642
|
+
const { provider: t } = Me(), [e, r] = D(t.storage.getSettings()), n = (u) => {
|
|
3597
3643
|
r(u), t.storage.setSettings(u);
|
|
3598
3644
|
};
|
|
3599
3645
|
return {
|
|
@@ -3621,22 +3667,22 @@ const ds = () => {
|
|
|
3621
3667
|
n({ ...e(), autoReconnect: u });
|
|
3622
3668
|
}
|
|
3623
3669
|
};
|
|
3624
|
-
},
|
|
3625
|
-
const { settings: t } = et(), e =
|
|
3670
|
+
}, dn = () => {
|
|
3671
|
+
const { settings: t } = et(), e = T(() => t().theme), r = T(() => "light");
|
|
3626
3672
|
return {
|
|
3627
3673
|
theme: e,
|
|
3628
3674
|
mode: r
|
|
3629
3675
|
};
|
|
3630
|
-
},
|
|
3631
|
-
var
|
|
3632
|
-
const
|
|
3676
|
+
}, vs = "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==";
|
|
3677
|
+
var ps = /* @__PURE__ */ x('<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>');
|
|
3678
|
+
const ms = () => {
|
|
3633
3679
|
const {
|
|
3634
3680
|
t
|
|
3635
|
-
} =
|
|
3681
|
+
} = Q(), {
|
|
3636
3682
|
status: e
|
|
3637
|
-
} = Ye(), r =
|
|
3683
|
+
} = Ye(), r = T(() => {
|
|
3638
3684
|
const n = e()?.status, o = e()?.signaling?.state;
|
|
3639
|
-
return
|
|
3685
|
+
return Be({
|
|
3640
3686
|
sessionState: n,
|
|
3641
3687
|
signalState: o
|
|
3642
3688
|
}).with({
|
|
@@ -3689,31 +3735,31 @@ const hs = () => {
|
|
|
3689
3735
|
})).otherwise(() => {
|
|
3690
3736
|
});
|
|
3691
3737
|
});
|
|
3692
|
-
return v(
|
|
3738
|
+
return v(ve, {
|
|
3693
3739
|
get when() {
|
|
3694
3740
|
return r();
|
|
3695
3741
|
},
|
|
3696
3742
|
children: (n) => (() => {
|
|
3697
|
-
var o =
|
|
3743
|
+
var o = ps(), i = o.firstChild, a = i.nextSibling;
|
|
3698
3744
|
return m(i, () => n().text), m(a, () => n().icon), o;
|
|
3699
3745
|
})()
|
|
3700
3746
|
});
|
|
3701
3747
|
};
|
|
3702
|
-
var
|
|
3703
|
-
const
|
|
3704
|
-
var t =
|
|
3705
|
-
return
|
|
3748
|
+
var bs = /* @__PURE__ */ x('<div class="h-11 w-full">'), ws = /* @__PURE__ */ x('<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)">');
|
|
3749
|
+
const ys = () => [bs(), (() => {
|
|
3750
|
+
var t = ws(), e = t.firstChild, r = e.firstChild, n = e.nextSibling;
|
|
3751
|
+
return Z(r, "src", vs), m(n, v(ms, {})), t;
|
|
3706
3752
|
})()];
|
|
3707
|
-
var
|
|
3708
|
-
const
|
|
3753
|
+
var xs = /* @__PURE__ */ x('<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">');
|
|
3754
|
+
const ks = (t) => {
|
|
3709
3755
|
const {
|
|
3710
3756
|
t: e
|
|
3711
|
-
} =
|
|
3757
|
+
} = Q();
|
|
3712
3758
|
return (() => {
|
|
3713
|
-
var r =
|
|
3759
|
+
var r = xs(), n = r.firstChild;
|
|
3714
3760
|
return m(r, (() => {
|
|
3715
|
-
var o =
|
|
3716
|
-
return () => o() ? v(
|
|
3761
|
+
var o = Re(() => !!t.onBack);
|
|
3762
|
+
return () => o() ? v(je, {
|
|
3717
3763
|
get onClick() {
|
|
3718
3764
|
return t.onBack;
|
|
3719
3765
|
},
|
|
@@ -3724,23 +3770,23 @@ const bs = (t) => {
|
|
|
3724
3770
|
$aspect: "square",
|
|
3725
3771
|
$size: "md",
|
|
3726
3772
|
get children() {
|
|
3727
|
-
return v(
|
|
3773
|
+
return v($i, {
|
|
3728
3774
|
class: "h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"
|
|
3729
3775
|
});
|
|
3730
3776
|
}
|
|
3731
|
-
}) : v(
|
|
3777
|
+
}) : v(je, {
|
|
3732
3778
|
type: "button",
|
|
3733
3779
|
onClick: () => t.setView("info"),
|
|
3734
3780
|
$variant: "tertiary",
|
|
3735
3781
|
$aspect: "square",
|
|
3736
3782
|
$size: "md",
|
|
3737
3783
|
get children() {
|
|
3738
|
-
return v(
|
|
3784
|
+
return v(sn, {
|
|
3739
3785
|
class: "h-5 w-5"
|
|
3740
3786
|
});
|
|
3741
3787
|
}
|
|
3742
3788
|
});
|
|
3743
|
-
})(), n), m(n, () => t.title), m(r, v(
|
|
3789
|
+
})(), n), m(n, () => t.title), m(r, v(je, {
|
|
3744
3790
|
type: "button",
|
|
3745
3791
|
get "aria-label"() {
|
|
3746
3792
|
return String(e("common.close"));
|
|
@@ -3753,14 +3799,14 @@ const bs = (t) => {
|
|
|
3753
3799
|
$aspect: "square",
|
|
3754
3800
|
$size: "md",
|
|
3755
3801
|
get children() {
|
|
3756
|
-
return v(
|
|
3802
|
+
return v(Ki, {
|
|
3757
3803
|
class: "h-6 w-6 text-(--lv-text-muted)"
|
|
3758
3804
|
});
|
|
3759
3805
|
}
|
|
3760
3806
|
}), null), r;
|
|
3761
3807
|
})();
|
|
3762
|
-
},
|
|
3763
|
-
const [r, n] = D([t]), [o, i] = D(0), a =
|
|
3808
|
+
}, Cs = (t, { transitionDuration: e = 200 } = {}) => {
|
|
3809
|
+
const [r, n] = D([t]), [o, i] = D(0), a = T(() => r()[o()] ?? t), { current: s, previous: l, isTransitioning: d } = Dt(a, {
|
|
3764
3810
|
duration: e
|
|
3765
3811
|
});
|
|
3766
3812
|
return {
|
|
@@ -3779,37 +3825,37 @@ const bs = (t) => {
|
|
|
3779
3825
|
isAtRoot: () => o() === 0
|
|
3780
3826
|
};
|
|
3781
3827
|
};
|
|
3782
|
-
var
|
|
3783
|
-
const
|
|
3784
|
-
var e =
|
|
3785
|
-
return m(e, v(
|
|
3828
|
+
var Ss = /* @__PURE__ */ x('<div class="modal-transition__layer modal-transition__layer--outgoing">'), As = /* @__PURE__ */ x("<div><div>");
|
|
3829
|
+
const $s = (t) => (() => {
|
|
3830
|
+
var e = As(), r = e.firstChild;
|
|
3831
|
+
return m(e, v(ve, {
|
|
3786
3832
|
get when() {
|
|
3787
3833
|
return t.previous !== void 0;
|
|
3788
3834
|
},
|
|
3789
3835
|
get children() {
|
|
3790
|
-
var n =
|
|
3836
|
+
var n = Ss();
|
|
3791
3837
|
return m(n, () => t.render(t.previous)), n;
|
|
3792
3838
|
}
|
|
3793
3839
|
}), r), m(r, () => t.render(t.current)), z((n) => {
|
|
3794
|
-
var o =
|
|
3840
|
+
var o = ke("modal-transition__container", t.class), i = ke("modal-transition__layer", t.isTransitioning && "modal-transition__layer--incoming");
|
|
3795
3841
|
return o !== n.e && ne(e, n.e = o), i !== n.t && ne(r, n.t = i), n;
|
|
3796
3842
|
}, {
|
|
3797
3843
|
e: void 0,
|
|
3798
3844
|
t: void 0
|
|
3799
3845
|
}), e;
|
|
3800
3846
|
})();
|
|
3801
|
-
var
|
|
3847
|
+
var Ts = /* @__PURE__ */ x('<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)">');
|
|
3802
3848
|
const Xe = (t) => (() => {
|
|
3803
|
-
var e =
|
|
3849
|
+
var e = Ts(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling;
|
|
3804
3850
|
return m(n, () => t.title), m(o, () => t.right), m(i, () => t.children), e;
|
|
3805
3851
|
})();
|
|
3806
|
-
var
|
|
3852
|
+
var Es = /* @__PURE__ */ x('<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>');
|
|
3807
3853
|
const Qe = (t) => (() => {
|
|
3808
|
-
var e =
|
|
3854
|
+
var e = Es(), r = e.firstChild, n = r.nextSibling;
|
|
3809
3855
|
return m(r, () => t.label), m(n, () => t.children), e;
|
|
3810
3856
|
})();
|
|
3811
|
-
var
|
|
3812
|
-
const
|
|
3857
|
+
var _s = /* @__PURE__ */ x("<select>"), Ns = /* @__PURE__ */ x("<div>"), Ps = /* @__PURE__ */ x("<button type=button>"), Bs = /* @__PURE__ */ x("<option>");
|
|
3858
|
+
const Rs = xt({
|
|
3813
3859
|
slots: {
|
|
3814
3860
|
root: "flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",
|
|
3815
3861
|
box: "px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"
|
|
@@ -3827,31 +3873,31 @@ const _s = xt({
|
|
|
3827
3873
|
defaultVariants: {
|
|
3828
3874
|
active: "off"
|
|
3829
3875
|
}
|
|
3830
|
-
}),
|
|
3876
|
+
}), Ms = xt({
|
|
3831
3877
|
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"
|
|
3832
3878
|
}), kt = (t) => {
|
|
3833
|
-
const e =
|
|
3879
|
+
const e = Ms(), {
|
|
3834
3880
|
root: r,
|
|
3835
3881
|
box: n
|
|
3836
|
-
} =
|
|
3837
|
-
return v(
|
|
3882
|
+
} = Rs({});
|
|
3883
|
+
return v(ve, {
|
|
3838
3884
|
get when() {
|
|
3839
3885
|
return t.options.length > (t.dropdownThreshold ?? 3);
|
|
3840
3886
|
},
|
|
3841
3887
|
get fallback() {
|
|
3842
3888
|
return (() => {
|
|
3843
|
-
var o =
|
|
3844
|
-
return m(o, v(
|
|
3889
|
+
var o = Ns();
|
|
3890
|
+
return m(o, v(Ce, {
|
|
3845
3891
|
get each() {
|
|
3846
3892
|
return t.options;
|
|
3847
3893
|
},
|
|
3848
3894
|
children: ([i, a]) => (() => {
|
|
3849
|
-
var s =
|
|
3895
|
+
var s = Ps();
|
|
3850
3896
|
return s.$$click = () => t.onChange(i), m(s, a), z((l) => {
|
|
3851
3897
|
var d = i === t.value, u = n({
|
|
3852
3898
|
active: i === t.value ? "on" : "off"
|
|
3853
3899
|
});
|
|
3854
|
-
return d !== l.e &&
|
|
3900
|
+
return d !== l.e && Z(s, "aria-pressed", l.e = d), u !== l.t && ne(s, l.t = u), l;
|
|
3855
3901
|
}, {
|
|
3856
3902
|
e: void 0,
|
|
3857
3903
|
t: void 0
|
|
@@ -3861,26 +3907,26 @@ const _s = xt({
|
|
|
3861
3907
|
})();
|
|
3862
3908
|
},
|
|
3863
3909
|
get children() {
|
|
3864
|
-
var o =
|
|
3865
|
-
return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)), ne(o, e), m(o, v(
|
|
3910
|
+
var o = _s();
|
|
3911
|
+
return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)), ne(o, e), m(o, v(Ce, {
|
|
3866
3912
|
get each() {
|
|
3867
3913
|
return t.options;
|
|
3868
3914
|
},
|
|
3869
3915
|
children: ([i, a]) => (() => {
|
|
3870
|
-
var s =
|
|
3916
|
+
var s = Bs();
|
|
3871
3917
|
return s.value = i, m(s, a), s;
|
|
3872
3918
|
})()
|
|
3873
3919
|
})), z(() => o.value = t.value), o;
|
|
3874
3920
|
}
|
|
3875
3921
|
});
|
|
3876
3922
|
};
|
|
3877
|
-
|
|
3878
|
-
const
|
|
3923
|
+
Ae(["click"]);
|
|
3924
|
+
const Os = () => {
|
|
3879
3925
|
const {
|
|
3880
3926
|
t
|
|
3881
|
-
} =
|
|
3927
|
+
} = Q(), e = dn(), r = () => e.mode() === "auto", n = () => e.mode() === "auto" ? "system" : e.mode(), o = (i) => {
|
|
3882
3928
|
};
|
|
3883
|
-
return v(
|
|
3929
|
+
return v(ve, {
|
|
3884
3930
|
get when() {
|
|
3885
3931
|
return r();
|
|
3886
3932
|
},
|
|
@@ -3903,15 +3949,15 @@ const Ps = () => {
|
|
|
3903
3949
|
});
|
|
3904
3950
|
}
|
|
3905
3951
|
});
|
|
3906
|
-
},
|
|
3952
|
+
}, Is = () => {
|
|
3907
3953
|
const {
|
|
3908
3954
|
t,
|
|
3909
3955
|
languageTag: e,
|
|
3910
3956
|
setLanguageTag: r
|
|
3911
|
-
} =
|
|
3957
|
+
} = Q(), {
|
|
3912
3958
|
settings: n,
|
|
3913
3959
|
setLanguage: o
|
|
3914
|
-
} = et(), i =
|
|
3960
|
+
} = et(), i = T(() => [...Ut].sort((s, l) => {
|
|
3915
3961
|
const d = dr(s.tag);
|
|
3916
3962
|
return dr(l.tag) - d;
|
|
3917
3963
|
})), a = (s) => {
|
|
@@ -3938,12 +3984,12 @@ const Ps = () => {
|
|
|
3938
3984
|
onChange: a
|
|
3939
3985
|
});
|
|
3940
3986
|
}
|
|
3941
|
-
}), v(
|
|
3987
|
+
}), v(Os, {})];
|
|
3942
3988
|
}
|
|
3943
3989
|
});
|
|
3944
3990
|
};
|
|
3945
|
-
var
|
|
3946
|
-
const
|
|
3991
|
+
var Ls = /* @__PURE__ */ x("<div><div></div><div>"), js = /* @__PURE__ */ x("<div>Text");
|
|
3992
|
+
const Ds = xt({
|
|
3947
3993
|
slots: {
|
|
3948
3994
|
root: "group relative",
|
|
3949
3995
|
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)",
|
|
@@ -3973,7 +4019,7 @@ const Os = xt({
|
|
|
3973
4019
|
defaultVariants: {
|
|
3974
4020
|
size: "lg"
|
|
3975
4021
|
}
|
|
3976
|
-
}),
|
|
4022
|
+
}), Er = (t) => {
|
|
3977
4023
|
const e = X({
|
|
3978
4024
|
variant: "icon",
|
|
3979
4025
|
size: "lg"
|
|
@@ -3982,17 +4028,17 @@ const Os = xt({
|
|
|
3982
4028
|
box: n,
|
|
3983
4029
|
popover: o,
|
|
3984
4030
|
icon: i
|
|
3985
|
-
} =
|
|
4031
|
+
} = Ds({
|
|
3986
4032
|
size: e.size,
|
|
3987
4033
|
variant: e.variant
|
|
3988
4034
|
});
|
|
3989
4035
|
return (() => {
|
|
3990
|
-
var a =
|
|
3991
|
-
return m(s, () =>
|
|
4036
|
+
var a = Ls(), s = a.firstChild, l = s.nextSibling;
|
|
4037
|
+
return m(s, () => Be(e.variant).with("icon", () => v(sn, {
|
|
3992
4038
|
get class() {
|
|
3993
4039
|
return i();
|
|
3994
4040
|
}
|
|
3995
|
-
})).with("text", () =>
|
|
4041
|
+
})).with("text", () => js()).exhaustive()), m(l, () => e.children), z((d) => {
|
|
3996
4042
|
var u = r(), c = n(), f = o();
|
|
3997
4043
|
return u !== d.e && ne(a, d.e = u), c !== d.t && ne(s, d.t = c), f !== d.a && ne(l, d.a = f), d;
|
|
3998
4044
|
}, {
|
|
@@ -4002,26 +4048,26 @@ const Os = xt({
|
|
|
4002
4048
|
}), a;
|
|
4003
4049
|
})();
|
|
4004
4050
|
};
|
|
4005
|
-
var
|
|
4006
|
-
const
|
|
4007
|
-
var e =
|
|
4008
|
-
return yt(e, "click", t.onClick, !0), m(r, () => t.label), m(n, v(
|
|
4051
|
+
var Vs = /* @__PURE__ */ x('<span class="text-sm text-(--lv-text-muted)">'), Fs = /* @__PURE__ */ x('<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">');
|
|
4052
|
+
const _r = (t) => (() => {
|
|
4053
|
+
var e = Fs(), r = e.firstChild, n = r.nextSibling;
|
|
4054
|
+
return yt(e, "click", t.onClick, !0), m(r, () => t.label), m(n, v(ve, {
|
|
4009
4055
|
get when() {
|
|
4010
4056
|
return t.value;
|
|
4011
4057
|
},
|
|
4012
4058
|
get children() {
|
|
4013
|
-
var o =
|
|
4059
|
+
var o = Vs();
|
|
4014
4060
|
return m(o, () => t.value), o;
|
|
4015
4061
|
}
|
|
4016
|
-
}), null), m(n, v(
|
|
4062
|
+
}), null), m(n, v(_i, {
|
|
4017
4063
|
class: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"
|
|
4018
4064
|
}), null), e;
|
|
4019
4065
|
})();
|
|
4020
|
-
|
|
4021
|
-
const
|
|
4066
|
+
Ae(["click"]);
|
|
4067
|
+
const zs = (t) => {
|
|
4022
4068
|
const {
|
|
4023
4069
|
t: e
|
|
4024
|
-
} =
|
|
4070
|
+
} = Q();
|
|
4025
4071
|
return v(kt, {
|
|
4026
4072
|
get options() {
|
|
4027
4073
|
return [["true", String(e("common.yes"))], ["false", String(e("common.no"))]];
|
|
@@ -4031,10 +4077,10 @@ const js = (t) => {
|
|
|
4031
4077
|
},
|
|
4032
4078
|
onChange: (r) => t.onChange(r === "true")
|
|
4033
4079
|
});
|
|
4034
|
-
},
|
|
4080
|
+
}, Us = (t) => {
|
|
4035
4081
|
const {
|
|
4036
4082
|
t: e
|
|
4037
|
-
} =
|
|
4083
|
+
} = Q(), {
|
|
4038
4084
|
settings: r,
|
|
4039
4085
|
setRetainSessionHistory: n,
|
|
4040
4086
|
setAutoReconnect: o
|
|
@@ -4044,9 +4090,9 @@ const js = (t) => {
|
|
|
4044
4090
|
return e("settings.connectionPreferences.title");
|
|
4045
4091
|
},
|
|
4046
4092
|
get children() {
|
|
4047
|
-
return [v(
|
|
4093
|
+
return [v(_r, {
|
|
4048
4094
|
get label() {
|
|
4049
|
-
return [
|
|
4095
|
+
return [Re(() => e("settings.signaling.title")), v(Er, {
|
|
4050
4096
|
variant: "icon",
|
|
4051
4097
|
get children() {
|
|
4052
4098
|
return e("settings.signaling.description");
|
|
@@ -4057,9 +4103,9 @@ const js = (t) => {
|
|
|
4057
4103
|
get value() {
|
|
4058
4104
|
return r()?.signaling?.p;
|
|
4059
4105
|
}
|
|
4060
|
-
}), v(
|
|
4106
|
+
}), v(_r, {
|
|
4061
4107
|
get label() {
|
|
4062
|
-
return [
|
|
4108
|
+
return [Re(() => e("settings.transport.title")), v(Er, {
|
|
4063
4109
|
variant: "icon",
|
|
4064
4110
|
get children() {
|
|
4065
4111
|
return e("settings.transport.description");
|
|
@@ -4068,14 +4114,14 @@ const js = (t) => {
|
|
|
4068
4114
|
},
|
|
4069
4115
|
onClick: () => t.onNavigate("transport"),
|
|
4070
4116
|
value: "WebRTC"
|
|
4071
|
-
}), v(
|
|
4117
|
+
}), v(Ce, {
|
|
4072
4118
|
get each() {
|
|
4073
4119
|
return [[e("settings.connectionPreferences.retainSessionHistory"), r()?.retainHistory ?? !1, n], [e("settings.connectionPreferences.autoReconnect"), r()?.autoReconnect ?? !1, o]];
|
|
4074
4120
|
},
|
|
4075
4121
|
children: ([i, a, s]) => v(Qe, {
|
|
4076
4122
|
label: i,
|
|
4077
4123
|
get children() {
|
|
4078
|
-
return v(
|
|
4124
|
+
return v(zs, {
|
|
4079
4125
|
label: i,
|
|
4080
4126
|
value: a,
|
|
4081
4127
|
onChange: s
|
|
@@ -4086,18 +4132,18 @@ const js = (t) => {
|
|
|
4086
4132
|
}
|
|
4087
4133
|
});
|
|
4088
4134
|
};
|
|
4089
|
-
var
|
|
4135
|
+
var Ws = /* @__PURE__ */ x('<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)">');
|
|
4090
4136
|
const We = (t) => {
|
|
4091
4137
|
const e = X({
|
|
4092
4138
|
readOnly: !0
|
|
4093
4139
|
}, t), [r] = wt(e, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
|
|
4094
4140
|
return (() => {
|
|
4095
|
-
var n =
|
|
4141
|
+
var n = Ws();
|
|
4096
4142
|
return n.$$input = (o) => {
|
|
4097
4143
|
r.onChange?.(o.currentTarget.value);
|
|
4098
4144
|
}, z((o) => {
|
|
4099
4145
|
var i = r.id, a = r.placeholder, s = r.ariaLabel, l = r.readOnly;
|
|
4100
|
-
return i !== o.e &&
|
|
4146
|
+
return i !== o.e && Z(n, "id", o.e = i), a !== o.t && Z(n, "placeholder", o.t = a), s !== o.a && Z(n, "aria-label", o.a = s), l !== o.o && (n.readOnly = o.o = l), o;
|
|
4101
4147
|
}, {
|
|
4102
4148
|
e: void 0,
|
|
4103
4149
|
t: void 0,
|
|
@@ -4106,21 +4152,21 @@ const We = (t) => {
|
|
|
4106
4152
|
}), z(() => n.value = r.value), n;
|
|
4107
4153
|
})();
|
|
4108
4154
|
};
|
|
4109
|
-
|
|
4110
|
-
var
|
|
4111
|
-
const
|
|
4155
|
+
Ae(["input"]);
|
|
4156
|
+
var Gs = /* @__PURE__ */ x('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');
|
|
4157
|
+
const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
|
|
4112
4158
|
const {
|
|
4113
4159
|
t
|
|
4114
|
-
} =
|
|
4160
|
+
} = Q(), {
|
|
4115
4161
|
settings: e,
|
|
4116
4162
|
setSignalingProtocol: r,
|
|
4117
4163
|
setSignalingOptions: n
|
|
4118
|
-
} = et(), o =
|
|
4164
|
+
} = et(), o = T(() => e()?.signaling?.p), i = T(() => {
|
|
4119
4165
|
const a = o();
|
|
4120
4166
|
return a ? e()?.signaling?.s?.[a] ?? "" : "";
|
|
4121
4167
|
});
|
|
4122
4168
|
return (() => {
|
|
4123
|
-
var a =
|
|
4169
|
+
var a = Gs(), s = a.firstChild;
|
|
4124
4170
|
return m(a, v(Xe, {
|
|
4125
4171
|
get title() {
|
|
4126
4172
|
return t("settings.signaling.title");
|
|
@@ -4133,7 +4179,7 @@ const zs = ["mqtt", "ntfy", "gun"], Us = () => {
|
|
|
4133
4179
|
get children() {
|
|
4134
4180
|
return v(kt, {
|
|
4135
4181
|
get options() {
|
|
4136
|
-
return
|
|
4182
|
+
return Ks.map((l) => [l.toLowerCase(), l.toUpperCase()]);
|
|
4137
4183
|
},
|
|
4138
4184
|
get value() {
|
|
4139
4185
|
return o() ?? "";
|
|
@@ -4168,10 +4214,10 @@ const zs = ["mqtt", "ntfy", "gun"], Us = () => {
|
|
|
4168
4214
|
}), s), m(s, () => t("settings.signaling.description")), a;
|
|
4169
4215
|
})();
|
|
4170
4216
|
};
|
|
4171
|
-
var
|
|
4172
|
-
const
|
|
4173
|
-
var e =
|
|
4174
|
-
return m(r, () => t.children), m(e, v(
|
|
4217
|
+
var qs = /* @__PURE__ */ x('<div class="flex items-center gap-2"><div class=flex-1>'), Xs = /* @__PURE__ */ x('<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)">'), Qs = /* @__PURE__ */ x('<div class="flex flex-col gap-2 p-2">'), Js = /* @__PURE__ */ x('<div class="flex flex-col gap-3 p-2">'), Zs = /* @__PURE__ */ x('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), Ys = /* @__PURE__ */ x('<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">');
|
|
4218
|
+
const Nr = (t) => (() => {
|
|
4219
|
+
var e = qs(), r = e.firstChild;
|
|
4220
|
+
return m(r, () => t.children), m(e, v(je, {
|
|
4175
4221
|
get onClick() {
|
|
4176
4222
|
return t.onRemove;
|
|
4177
4223
|
},
|
|
@@ -4179,20 +4225,20 @@ const _r = (t) => (() => {
|
|
|
4179
4225
|
$aspect: "square",
|
|
4180
4226
|
$size: "sm",
|
|
4181
4227
|
get children() {
|
|
4182
|
-
return v(
|
|
4228
|
+
return v(Ui, {
|
|
4183
4229
|
class: "h-4 w-4 text-(--lv-text-muted)"
|
|
4184
4230
|
});
|
|
4185
4231
|
}
|
|
4186
4232
|
}), null), e;
|
|
4187
|
-
})(),
|
|
4188
|
-
var e =
|
|
4189
|
-
return yt(e, "click", t.onClick, !0), m(e, v(
|
|
4233
|
+
})(), Pr = (t) => (() => {
|
|
4234
|
+
var e = Xs();
|
|
4235
|
+
return yt(e, "click", t.onClick, !0), m(e, v(Mi, {
|
|
4190
4236
|
class: "h-4 w-4"
|
|
4191
4237
|
}), null), m(e, () => t.label, null), e;
|
|
4192
|
-
})(),
|
|
4238
|
+
})(), ea = () => {
|
|
4193
4239
|
const {
|
|
4194
4240
|
t
|
|
4195
|
-
} =
|
|
4241
|
+
} = Q();
|
|
4196
4242
|
et();
|
|
4197
4243
|
const [e, r] = D([]), [n, o] = D([]), i = () => {
|
|
4198
4244
|
o([...n(), ""]);
|
|
@@ -4217,12 +4263,12 @@ const _r = (t) => (() => {
|
|
|
4217
4263
|
return t("settings.transport.iceServers.stun");
|
|
4218
4264
|
},
|
|
4219
4265
|
get children() {
|
|
4220
|
-
var c =
|
|
4221
|
-
return m(c, v(
|
|
4266
|
+
var c = Qs();
|
|
4267
|
+
return m(c, v(Ce, {
|
|
4222
4268
|
get each() {
|
|
4223
4269
|
return n();
|
|
4224
4270
|
},
|
|
4225
|
-
children: (f, h) => v(
|
|
4271
|
+
children: (f, h) => v(Nr, {
|
|
4226
4272
|
onRemove: () => a(h()),
|
|
4227
4273
|
get children() {
|
|
4228
4274
|
return v(We, {
|
|
@@ -4233,7 +4279,7 @@ const _r = (t) => (() => {
|
|
|
4233
4279
|
});
|
|
4234
4280
|
}
|
|
4235
4281
|
})
|
|
4236
|
-
}), null), m(c, v(
|
|
4282
|
+
}), null), m(c, v(Pr, {
|
|
4237
4283
|
get label() {
|
|
4238
4284
|
return t("settings.transport.iceServers.addStun");
|
|
4239
4285
|
},
|
|
@@ -4245,14 +4291,14 @@ const _r = (t) => (() => {
|
|
|
4245
4291
|
return t("settings.transport.iceServers.turn");
|
|
4246
4292
|
},
|
|
4247
4293
|
get children() {
|
|
4248
|
-
var c =
|
|
4249
|
-
return m(c, v(
|
|
4294
|
+
var c = Js();
|
|
4295
|
+
return m(c, v(Ce, {
|
|
4250
4296
|
get each() {
|
|
4251
4297
|
return e();
|
|
4252
4298
|
},
|
|
4253
4299
|
children: (f, h) => (() => {
|
|
4254
|
-
var g =
|
|
4255
|
-
return m(g, v(
|
|
4300
|
+
var g = Ys(), b = g.firstChild;
|
|
4301
|
+
return m(g, v(Nr, {
|
|
4256
4302
|
onRemove: () => d(h()),
|
|
4257
4303
|
get children() {
|
|
4258
4304
|
return v(We, {
|
|
@@ -4280,7 +4326,7 @@ const _r = (t) => (() => {
|
|
|
4280
4326
|
readOnly: !1
|
|
4281
4327
|
}), null), g;
|
|
4282
4328
|
})()
|
|
4283
|
-
}), null), m(c, v(
|
|
4329
|
+
}), null), m(c, v(Pr, {
|
|
4284
4330
|
get label() {
|
|
4285
4331
|
return t("settings.transport.iceServers.addTurn");
|
|
4286
4332
|
},
|
|
@@ -4288,13 +4334,13 @@ const _r = (t) => (() => {
|
|
|
4288
4334
|
}), null), c;
|
|
4289
4335
|
}
|
|
4290
4336
|
}), (() => {
|
|
4291
|
-
var c =
|
|
4337
|
+
var c = Zs();
|
|
4292
4338
|
return m(c, () => t("settings.transport.description")), c;
|
|
4293
4339
|
})()];
|
|
4294
4340
|
};
|
|
4295
|
-
|
|
4296
|
-
var
|
|
4297
|
-
const
|
|
4341
|
+
Ae(["click"]);
|
|
4342
|
+
var ta = /* @__PURE__ */ x('<div class="px-4 pb-2">');
|
|
4343
|
+
const ra = (t) => {
|
|
4298
4344
|
switch (t) {
|
|
4299
4345
|
case "main":
|
|
4300
4346
|
return "settings.title";
|
|
@@ -4303,7 +4349,7 @@ const Zs = (t) => {
|
|
|
4303
4349
|
case "transport":
|
|
4304
4350
|
return "settings.transport.title";
|
|
4305
4351
|
}
|
|
4306
|
-
},
|
|
4352
|
+
}, na = (t) => {
|
|
4307
4353
|
const {
|
|
4308
4354
|
screen: e,
|
|
4309
4355
|
previousScreen: r,
|
|
@@ -4311,32 +4357,32 @@ const Zs = (t) => {
|
|
|
4311
4357
|
navigate: o,
|
|
4312
4358
|
goBack: i,
|
|
4313
4359
|
isAtRoot: a
|
|
4314
|
-
} =
|
|
4360
|
+
} = Cs("main"), s = {
|
|
4315
4361
|
goBack: i,
|
|
4316
4362
|
get isAtRoot() {
|
|
4317
4363
|
return a();
|
|
4318
4364
|
}
|
|
4319
4365
|
};
|
|
4320
|
-
|
|
4366
|
+
ie(() => {
|
|
4321
4367
|
t.navigationRef && (t.navigationRef.current = s);
|
|
4322
|
-
}),
|
|
4323
|
-
t.onTitleChange?.(
|
|
4368
|
+
}), ie(() => {
|
|
4369
|
+
t.onTitleChange?.(ra(e()));
|
|
4324
4370
|
});
|
|
4325
4371
|
const l = (d) => {
|
|
4326
4372
|
switch (d) {
|
|
4327
4373
|
case "main":
|
|
4328
|
-
return [v(
|
|
4374
|
+
return [v(Us, {
|
|
4329
4375
|
onNavigate: o
|
|
4330
|
-
}), v(
|
|
4376
|
+
}), v(Is, {})];
|
|
4331
4377
|
case "signaling":
|
|
4332
|
-
return v(
|
|
4378
|
+
return v(Hs, {});
|
|
4333
4379
|
case "transport":
|
|
4334
|
-
return v(
|
|
4380
|
+
return v(ea, {});
|
|
4335
4381
|
}
|
|
4336
4382
|
};
|
|
4337
4383
|
return (() => {
|
|
4338
|
-
var d =
|
|
4339
|
-
return m(d, v(
|
|
4384
|
+
var d = ta();
|
|
4385
|
+
return m(d, v($s, {
|
|
4340
4386
|
get current() {
|
|
4341
4387
|
return e();
|
|
4342
4388
|
},
|
|
@@ -4350,67 +4396,67 @@ const Zs = (t) => {
|
|
|
4350
4396
|
})), d;
|
|
4351
4397
|
})();
|
|
4352
4398
|
};
|
|
4353
|
-
var
|
|
4354
|
-
const
|
|
4399
|
+
var oa = /* @__PURE__ */ x("<div class=modal-transition__container><div>"), ia = /* @__PURE__ */ x('<div class="modal-transition__layer modal-transition__layer--outgoing">'), sa = /* @__PURE__ */ x('<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>');
|
|
4400
|
+
const aa = () => {
|
|
4355
4401
|
const [t, e] = D("start"), [r, n] = D(!1);
|
|
4356
|
-
return
|
|
4402
|
+
return ie(() => {
|
|
4357
4403
|
if (!r()) return;
|
|
4358
4404
|
const o = globalThis.setTimeout(() => n(!1), 2e3);
|
|
4359
|
-
|
|
4405
|
+
se(() => globalThis.clearTimeout(o));
|
|
4360
4406
|
}), {
|
|
4361
4407
|
view: t,
|
|
4362
4408
|
setView: e,
|
|
4363
4409
|
copied: r,
|
|
4364
4410
|
setCopied: n
|
|
4365
4411
|
};
|
|
4366
|
-
},
|
|
4367
|
-
|
|
4412
|
+
}, la = (t) => {
|
|
4413
|
+
ie(() => {
|
|
4368
4414
|
const e = (r) => {
|
|
4369
4415
|
r.key === "Escape" && t();
|
|
4370
4416
|
};
|
|
4371
|
-
document.addEventListener("keydown", e),
|
|
4417
|
+
document.addEventListener("keydown", e), se(() => document.removeEventListener("keydown", e));
|
|
4372
4418
|
});
|
|
4373
|
-
},
|
|
4419
|
+
}, ca = () => {
|
|
4374
4420
|
const [t, e] = D(), [r, n] = D(0), o = (a, s = !1) => {
|
|
4375
4421
|
const l = a || t();
|
|
4376
4422
|
if (!l || !l.getBoundingClientRect) return;
|
|
4377
4423
|
const d = s ? l.scrollHeight : l.getBoundingClientRect().height;
|
|
4378
4424
|
d > 0 && n((u) => typeof u == "number" && Math.abs(u - d) < 0.5 ? u : d);
|
|
4379
4425
|
};
|
|
4380
|
-
|
|
4426
|
+
ie(() => {
|
|
4381
4427
|
const a = t();
|
|
4382
4428
|
if (!a || typeof ResizeObserver > "u") return;
|
|
4383
4429
|
const s = new ResizeObserver(() => {
|
|
4384
4430
|
o();
|
|
4385
4431
|
});
|
|
4386
|
-
s.observe(a),
|
|
4432
|
+
s.observe(a), se(() => s.disconnect());
|
|
4387
4433
|
});
|
|
4388
4434
|
const i = () => o();
|
|
4389
|
-
return
|
|
4390
|
-
globalThis.window !== void 0 && (window.addEventListener("resize", i),
|
|
4435
|
+
return ie(() => {
|
|
4436
|
+
globalThis.window !== void 0 && (window.addEventListener("resize", i), se(() => window.removeEventListener("resize", i)));
|
|
4391
4437
|
}), {
|
|
4392
4438
|
setContentRef: e,
|
|
4393
4439
|
contentNode: t,
|
|
4394
4440
|
height: r,
|
|
4395
4441
|
measureHeight: o
|
|
4396
4442
|
};
|
|
4397
|
-
},
|
|
4443
|
+
}, da = (t) => {
|
|
4398
4444
|
const {
|
|
4399
4445
|
view: e,
|
|
4400
4446
|
setView: r,
|
|
4401
4447
|
copied: n,
|
|
4402
4448
|
setCopied: o
|
|
4403
|
-
} =
|
|
4449
|
+
} = aa(), {
|
|
4404
4450
|
uri: i,
|
|
4405
4451
|
status: a
|
|
4406
4452
|
} = Ye(), {
|
|
4407
4453
|
provider: s
|
|
4408
|
-
} =
|
|
4454
|
+
} = Me(), {
|
|
4409
4455
|
setContentRef: l,
|
|
4410
4456
|
contentNode: d,
|
|
4411
4457
|
height: u,
|
|
4412
4458
|
measureHeight: c
|
|
4413
|
-
} =
|
|
4459
|
+
} = ca(), {
|
|
4414
4460
|
current: f,
|
|
4415
4461
|
previous: h,
|
|
4416
4462
|
isTransitioning: g
|
|
@@ -4422,45 +4468,45 @@ const na = () => {
|
|
|
4422
4468
|
t: y,
|
|
4423
4469
|
isRtl: F,
|
|
4424
4470
|
languageTag: _
|
|
4425
|
-
} =
|
|
4471
|
+
} = Q(), pe = dn(), he = {
|
|
4426
4472
|
current: null
|
|
4427
|
-
}, [De, tt] = D("settings.title"), Ve =
|
|
4428
|
-
|
|
4429
|
-
a()?.status ===
|
|
4473
|
+
}, [De, tt] = D("settings.title"), Ve = T(() => Be(e()).with("start", () => y("start.title")).with("settings", () => y(De())).with("info", () => y("info.title")).exhaustive());
|
|
4474
|
+
la(t.onClose), ie(() => {
|
|
4475
|
+
a()?.status === oe.CONNECTED && t.onClose();
|
|
4430
4476
|
});
|
|
4431
4477
|
const rt = async () => {
|
|
4432
4478
|
const P = i();
|
|
4433
|
-
P && await
|
|
4479
|
+
P && await on(P) && o(!0);
|
|
4434
4480
|
};
|
|
4435
|
-
let nt = !0,
|
|
4436
|
-
const [
|
|
4437
|
-
|
|
4438
|
-
b(), f(), d() && (nt ? (
|
|
4481
|
+
let nt = !0, Te, A, $;
|
|
4482
|
+
const [E, R] = D(!1);
|
|
4483
|
+
ie(() => {
|
|
4484
|
+
b(), f(), d() && (nt ? (Te && globalThis.clearTimeout(Te), Te = globalThis.setTimeout(() => {
|
|
4439
4485
|
d() && (c(void 0, !0), nt = !1);
|
|
4440
|
-
}, 0)) : c(),
|
|
4441
|
-
|
|
4486
|
+
}, 0)) : c(), se(() => {
|
|
4487
|
+
Te && globalThis.clearTimeout(Te);
|
|
4442
4488
|
}));
|
|
4443
|
-
}),
|
|
4489
|
+
}), ie(() => {
|
|
4444
4490
|
const P = u();
|
|
4445
4491
|
A !== void 0 && P !== A && P > 0 && A > 0 && Math.abs(P - A) > 0.5 && (R(!0), $ && globalThis.clearTimeout($), $ = globalThis.setTimeout(() => {
|
|
4446
4492
|
R(!1), $ = void 0;
|
|
4447
|
-
}, 200)), A = P,
|
|
4493
|
+
}, 200)), A = P, se(() => {
|
|
4448
4494
|
$ && globalThis.clearTimeout($);
|
|
4449
4495
|
});
|
|
4450
4496
|
});
|
|
4451
4497
|
const [N, O] = D(s.getState().status);
|
|
4452
4498
|
Vt(() => {
|
|
4453
4499
|
s.on("status_change", O);
|
|
4454
|
-
}),
|
|
4500
|
+
}), se(() => {
|
|
4455
4501
|
s.off("status_change", O);
|
|
4456
4502
|
});
|
|
4457
|
-
const
|
|
4458
|
-
|
|
4503
|
+
const J = T(() => !(e() === "start" && N() === oe.STANDBY)), ce = () => {
|
|
4504
|
+
Be({
|
|
4459
4505
|
view: e(),
|
|
4460
4506
|
status: N()
|
|
4461
4507
|
}).with({
|
|
4462
4508
|
view: "start",
|
|
4463
|
-
status:
|
|
4509
|
+
status: oe.STANDBY
|
|
4464
4510
|
}, () => {
|
|
4465
4511
|
}).with({
|
|
4466
4512
|
view: "start"
|
|
@@ -4477,45 +4523,45 @@ const na = () => {
|
|
|
4477
4523
|
}).otherwise(() => {
|
|
4478
4524
|
s.closeSession(), t.onClose();
|
|
4479
4525
|
});
|
|
4480
|
-
}, G = (P) =>
|
|
4526
|
+
}, G = (P) => Be(P).with("start", () => v(fs, {
|
|
4481
4527
|
onSettings: k
|
|
4482
|
-
})).with("settings", () => v(
|
|
4528
|
+
})).with("settings", () => v(na, {
|
|
4483
4529
|
onTitleChange: tt,
|
|
4484
4530
|
navigationRef: he
|
|
4485
|
-
})).with("info", () => v(
|
|
4531
|
+
})).with("info", () => v(gs, {})).otherwise(() => v(Lt, {
|
|
4486
4532
|
state: P
|
|
4487
|
-
})),
|
|
4488
|
-
var P =
|
|
4489
|
-
return m(P, v(
|
|
4533
|
+
})), ae = () => (() => {
|
|
4534
|
+
var P = oa(), ee = P.firstChild;
|
|
4535
|
+
return m(P, v(ve, {
|
|
4490
4536
|
get when() {
|
|
4491
4537
|
return h();
|
|
4492
4538
|
},
|
|
4493
|
-
children: (
|
|
4494
|
-
var Fe =
|
|
4495
|
-
return m(Fe, () => G(
|
|
4539
|
+
children: (Ee) => (() => {
|
|
4540
|
+
var Fe = ia();
|
|
4541
|
+
return m(Fe, () => G(Ee())), Fe;
|
|
4496
4542
|
})()
|
|
4497
|
-
}),
|
|
4498
|
-
})(),
|
|
4543
|
+
}), ee), m(ee, () => G(f())), z(() => ne(ee, ke("modal-transition__layer", g() && "modal-transition__layer--incoming"))), P;
|
|
4544
|
+
})(), me = (P) => Be(P).with(oe.STANDBY, () => ae()).with(co.union(oe.CREATING, oe.CONNECTING, oe.CONNECTED, oe.ERROR), () => v(pi, {
|
|
4499
4545
|
get onClose() {
|
|
4500
4546
|
return t.onClose;
|
|
4501
4547
|
},
|
|
4502
4548
|
onCopy: rt
|
|
4503
|
-
})).otherwise((
|
|
4504
|
-
state:
|
|
4505
|
-
})),
|
|
4549
|
+
})).otherwise((ee) => v(Lt, {
|
|
4550
|
+
state: ee || "unknown status"
|
|
4551
|
+
})), le = {
|
|
4506
4552
|
background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
|
|
4507
4553
|
"backdrop-filter": "var(--lv-overlay-backdrop-filter, blur(4px))"
|
|
4508
|
-
},
|
|
4554
|
+
}, Oe = {
|
|
4509
4555
|
background: "var(--lv-body-background)",
|
|
4510
4556
|
color: "var(--lv-body-color, var(--lv-text-primary))",
|
|
4511
4557
|
"border-radius": "var(--lv-border-radius, 16px)",
|
|
4512
4558
|
"box-shadow": "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
|
|
4513
4559
|
};
|
|
4514
4560
|
return (() => {
|
|
4515
|
-
var P =
|
|
4561
|
+
var P = sa(), ee = P.firstChild, Ee = ee.firstChild, Fe = Ee.firstChild, Gt = Fe.firstChild, un = Gt.firstChild, Kt = Ee.nextSibling;
|
|
4516
4562
|
return P.$$mouseup = (I) => {
|
|
4517
4563
|
I.target === I.currentTarget && t.onClose();
|
|
4518
|
-
}, Pt(P,
|
|
4564
|
+
}, Pt(P, le), ee.$$click = (I) => I.stopPropagation(), Gr(l, Ee), m(Ee, v(ks, {
|
|
4519
4565
|
get title() {
|
|
4520
4566
|
return String(Ve());
|
|
4521
4567
|
},
|
|
@@ -4526,17 +4572,17 @@ const na = () => {
|
|
|
4526
4572
|
return t.onClose;
|
|
4527
4573
|
},
|
|
4528
4574
|
get onBack() {
|
|
4529
|
-
return
|
|
4575
|
+
return J() ? ce : void 0;
|
|
4530
4576
|
},
|
|
4531
4577
|
setView: r
|
|
4532
|
-
}), Fe), m(
|
|
4533
|
-
var
|
|
4578
|
+
}), Fe), m(un, () => me(N())), m(Ee, v(ys, {}), null), m(Kt, () => y("modal.urlCopied")), z((I) => {
|
|
4579
|
+
var Ht = pe.mode(), qt = _(), Xt = F() ? "rtl" : "ltr", Qt = ke("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", E() || p() ? "overflow-hidden" : void 0), Jt = String(Ve()), fn = {
|
|
4534
4580
|
...typeof u() == "number" && u() > 0 ? {
|
|
4535
4581
|
height: `${u()}px`
|
|
4536
4582
|
} : {},
|
|
4537
|
-
...
|
|
4538
|
-
}, Zt =
|
|
4539
|
-
return
|
|
4583
|
+
...Oe
|
|
4584
|
+
}, Zt = ke("modal-transition__layer", C() && "modal-transition__layer--incoming"), Yt = ke("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");
|
|
4585
|
+
return Ht !== I.e && Z(P, "data-openlv-theme-mode", I.e = Ht), qt !== I.t && Z(P, "lang", I.t = qt), Xt !== I.a && Z(P, "dir", I.a = Xt), Qt !== I.o && ne(ee, I.o = Qt), Jt !== I.i && Z(ee, "aria-label", I.i = Jt), I.n = Pt(ee, fn, I.n), Zt !== I.s && ne(Gt, I.s = Zt), Yt !== I.h && ne(Kt, I.h = Yt), I;
|
|
4540
4586
|
}, {
|
|
4541
4587
|
e: void 0,
|
|
4542
4588
|
t: void 0,
|
|
@@ -4549,29 +4595,29 @@ const na = () => {
|
|
|
4549
4595
|
}), P;
|
|
4550
4596
|
})();
|
|
4551
4597
|
};
|
|
4552
|
-
|
|
4553
|
-
const
|
|
4598
|
+
Ae(["mouseup", "click"]);
|
|
4599
|
+
const ua = (...t) => console.log(
|
|
4554
4600
|
"%c[modal]%c",
|
|
4555
4601
|
"color: yellow; font-weight: bold",
|
|
4556
4602
|
"color: inherit; font-weight: normal",
|
|
4557
4603
|
...t
|
|
4558
|
-
),
|
|
4604
|
+
), fa = (t = "openlv-modal") => {
|
|
4559
4605
|
if (globalThis.window === void 0)
|
|
4560
4606
|
return t;
|
|
4561
4607
|
const e = globalThis.customElements;
|
|
4562
4608
|
return e ? (e.get(t) || e.define(
|
|
4563
4609
|
t,
|
|
4564
|
-
|
|
4610
|
+
Zr
|
|
4565
4611
|
), t) : (console.warn(
|
|
4566
4612
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
4567
4613
|
), t);
|
|
4568
|
-
},
|
|
4614
|
+
}, ga = (t) => {
|
|
4569
4615
|
const e = document.querySelector("openlv-modal");
|
|
4570
4616
|
if (e && e.remove(), !e) {
|
|
4571
|
-
|
|
4572
|
-
const r = new
|
|
4617
|
+
fa();
|
|
4618
|
+
const r = new Zr({
|
|
4573
4619
|
onClose() {
|
|
4574
|
-
|
|
4620
|
+
ua("modal closed"), r.remove(), t.onClose?.();
|
|
4575
4621
|
},
|
|
4576
4622
|
provider: t.provider,
|
|
4577
4623
|
theme: t.theme
|
|
@@ -4580,11 +4626,11 @@ const aa = (...t) => console.log(
|
|
|
4580
4626
|
}
|
|
4581
4627
|
};
|
|
4582
4628
|
export {
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4629
|
+
da as ModalRoot,
|
|
4630
|
+
vs as OPENLV_ICON_128,
|
|
4631
|
+
Zr as OpenLVModalElement,
|
|
4632
|
+
Zr as default,
|
|
4633
|
+
fa as registerOpenLVModal,
|
|
4634
|
+
ga as triggerOpenModal
|
|
4589
4635
|
};
|
|
4590
4636
|
//# sourceMappingURL=index.es.js.map
|