@openlv/modal 0.2.0 → 0.2.2

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/index.es.js CHANGED
@@ -1,135 +1,150 @@
1
- var gn = Object.defineProperty;
2
- var vn = (t, e, r) => e in t ? gn(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ee = (t, e, r) => vn(t, typeof e != "symbol" ? e + "" : e, r);
4
- const pn = (t, e) => t === e, ct = /* @__PURE__ */ Symbol("solid-proxy"), Rr = typeof Proxy == "function", bn = /* @__PURE__ */ Symbol("solid-track"), dt = {
5
- equals: pn
1
+ var un = Object.defineProperty;
2
+ var fn = (t, e, r) => e in t ? un(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var te = (t, e, r) => fn(t, typeof e != "symbol" ? e + "" : e, r);
4
+ const hn = (t, e) => t === e, at = /* @__PURE__ */ Symbol("solid-proxy"), _r = typeof Proxy == "function", gn = /* @__PURE__ */ Symbol("solid-track"), lt = {
5
+ equals: hn
6
6
  };
7
- let Br = Fr;
8
- const Se = 1, ut = 2, Or = {
7
+ let Pr = Dr;
8
+ const Ce = 1, ct = 2, Rr = {
9
9
  owned: null,
10
10
  cleanups: null,
11
11
  context: null,
12
12
  owner: null
13
13
  };
14
14
  var I = null;
15
- let Ct = null, mn = null, D = null, W = null, he = null, mt = 0;
16
- function at(t, e) {
17
- const r = D, n = I, o = t.length === 0, i = e === void 0 ? n : e, a = o ? Or : {
15
+ let kt = null, vn = null, j = null, K = null, he = null, pt = 0;
16
+ function ot(t, e) {
17
+ const r = j, n = I, o = t.length === 0, i = e === void 0 ? n : e, a = o ? Rr : {
18
18
  owned: null,
19
19
  cleanups: null,
20
20
  context: i ? i.context : null,
21
21
  owner: i
22
- }, s = o ? t : () => t(() => ne(() => He(a)));
23
- I = a, D = null;
22
+ }, s = o ? t : () => t(() => ee(() => Ge(a)));
23
+ I = a, j = null;
24
24
  try {
25
- return et(s, !0);
25
+ return Je(s, !0);
26
26
  } finally {
27
- D = r, I = n;
27
+ j = r, I = n;
28
28
  }
29
29
  }
30
- function z(t, e) {
31
- e = e ? Object.assign({}, dt, e) : dt;
30
+ function U(t, e) {
31
+ e = e ? Object.assign({}, lt, e) : lt;
32
32
  const r = {
33
33
  value: t,
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)), jr(r, o));
38
- return [Dr.bind(r), n];
37
+ }, n = (o) => (typeof o == "function" && (o = o(r.value)), Lr(r, o));
38
+ return [Mr.bind(r), n];
39
39
  }
40
- function U(t, e, r) {
41
- const n = Ft(t, e, !1, Se);
42
- Ye(n);
40
+ function G(t, e, r) {
41
+ const n = jt(t, e, !1, Ce);
42
+ Qe(n);
43
43
  }
44
44
  function ae(t, e, r) {
45
- Br = xn;
46
- const n = Ft(t, e, !1, Se);
47
- n.user = !0, he ? he.push(n) : Ye(n);
45
+ Pr = mn;
46
+ const n = jt(t, e, !1, Ce);
47
+ n.user = !0, he ? he.push(n) : Qe(n);
48
48
  }
49
- function N(t, e, r) {
50
- r = r ? Object.assign({}, dt, r) : dt;
51
- const n = Ft(t, e, !0, 0);
52
- return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Ye(n), Dr.bind(n);
49
+ function E(t, e, r) {
50
+ r = r ? Object.assign({}, lt, r) : lt;
51
+ const n = jt(t, e, !0, 0);
52
+ return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Qe(n), Mr.bind(n);
53
53
  }
54
- function ne(t) {
55
- if (D === null) return t();
56
- const e = D;
57
- D = null;
54
+ function ee(t) {
55
+ if (j === null) return t();
56
+ const e = j;
57
+ j = null;
58
58
  try {
59
59
  return t();
60
60
  } finally {
61
- D = e;
61
+ j = e;
62
62
  }
63
63
  }
64
- function ie(t) {
64
+ function it(t, e, r) {
65
+ const n = Array.isArray(t);
66
+ let o, i = r && r.defer;
67
+ return (a) => {
68
+ let s;
69
+ if (n) {
70
+ s = Array(t.length);
71
+ for (let d = 0; d < t.length; d++) s[d] = t[d]();
72
+ } else s = t();
73
+ if (i)
74
+ return i = !1, a;
75
+ const l = ee(() => e(s, o, a));
76
+ return o = s, l;
77
+ };
78
+ }
79
+ function le(t) {
65
80
  return I === null || (I.cleanups === null ? I.cleanups = [t] : I.cleanups.push(t)), t;
66
81
  }
67
- function Ir(t, e) {
82
+ function Br(t, e) {
68
83
  const r = /* @__PURE__ */ Symbol("context");
69
84
  return {
70
85
  id: r,
71
- Provider: Cn(r),
86
+ Provider: wn(r),
72
87
  defaultValue: t
73
88
  };
74
89
  }
75
- function Mr(t) {
90
+ function Or(t) {
76
91
  let e;
77
92
  return I && I.context && (e = I.context[t.id]) !== void 0 ? e : t.defaultValue;
78
93
  }
79
- function Lr(t) {
80
- const e = N(t), r = N(() => Nt(e()));
94
+ function Ir(t) {
95
+ const e = E(t), r = E(() => Tt(e()));
81
96
  return r.toArray = () => {
82
97
  const n = r();
83
98
  return Array.isArray(n) ? n : n != null ? [n] : [];
84
99
  }, r;
85
100
  }
86
- function Dr() {
101
+ function Mr() {
87
102
  if (this.sources && this.state)
88
- if (this.state === Se) Ye(this);
103
+ if (this.state === Ce) Qe(this);
89
104
  else {
90
- const t = W;
91
- W = null, et(() => ht(this), !1), W = t;
105
+ const t = K;
106
+ K = null, Je(() => ut(this), !1), K = t;
92
107
  }
93
- if (D) {
108
+ if (j) {
94
109
  const t = this.observers;
95
- if (!t || t[t.length - 1] !== D) {
110
+ if (!t || t[t.length - 1] !== j) {
96
111
  const e = t ? t.length : 0;
97
- D.sources ? (D.sources.push(this), D.sourceSlots.push(e)) : (D.sources = [this], D.sourceSlots = [e]), t ? (t.push(D), this.observerSlots.push(D.sources.length - 1)) : (this.observers = [D], this.observerSlots = [D.sources.length - 1]);
112
+ j.sources ? (j.sources.push(this), j.sourceSlots.push(e)) : (j.sources = [this], j.sourceSlots = [e]), t ? (t.push(j), this.observerSlots.push(j.sources.length - 1)) : (this.observers = [j], this.observerSlots = [j.sources.length - 1]);
98
113
  }
99
114
  }
100
115
  return this.value;
101
116
  }
102
- function jr(t, e, r) {
117
+ function Lr(t, e, r) {
103
118
  let n = t.value;
104
- return (!t.comparator || !t.comparator(n, e)) && (t.value = e, t.observers && t.observers.length && et(() => {
119
+ return (!t.comparator || !t.comparator(n, e)) && (t.value = e, t.observers && t.observers.length && Je(() => {
105
120
  for (let o = 0; o < t.observers.length; o += 1) {
106
- const i = t.observers[o], a = Ct && Ct.running;
107
- a && Ct.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? W.push(i) : he.push(i), i.observers && Vr(i)), a || (i.state = Se);
121
+ const i = t.observers[o], a = kt && kt.running;
122
+ a && kt.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? K.push(i) : he.push(i), i.observers && jr(i)), a || (i.state = Ce);
108
123
  }
109
- if (W.length > 1e6)
110
- throw W = [], new Error();
124
+ if (K.length > 1e6)
125
+ throw K = [], new Error();
111
126
  }, !1)), e;
112
127
  }
113
- function Ye(t) {
128
+ function Qe(t) {
114
129
  if (!t.fn) return;
115
- He(t);
116
- const e = mt;
117
- wn(t, t.value, e);
130
+ Ge(t);
131
+ const e = pt;
132
+ pn(t, t.value, e);
118
133
  }
119
- function wn(t, e, r) {
134
+ function pn(t, e, r) {
120
135
  let n;
121
- const o = I, i = D;
122
- D = I = t;
136
+ const o = I, i = j;
137
+ j = I = t;
123
138
  try {
124
139
  n = t.fn(e);
125
140
  } catch (a) {
126
- return t.pure && (t.state = Se, t.owned && t.owned.forEach(He), t.owned = null), t.updatedAt = r + 1, zr(a);
141
+ return t.pure && (t.state = Ce, t.owned && t.owned.forEach(Ge), t.owned = null), t.updatedAt = r + 1, Fr(a);
127
142
  } finally {
128
- D = i, I = o;
143
+ j = i, I = o;
129
144
  }
130
- (!t.updatedAt || t.updatedAt <= r) && (t.updatedAt != null && "observers" in t ? jr(t, n) : t.value = n, t.updatedAt = r);
145
+ (!t.updatedAt || t.updatedAt <= r) && (t.updatedAt != null && "observers" in t ? Lr(t, n) : t.value = n, t.updatedAt = r);
131
146
  }
132
- function Ft(t, e, r, n = Se, o) {
147
+ function jt(t, e, r, n = Ce, o) {
133
148
  const i = {
134
149
  fn: t,
135
150
  state: n,
@@ -143,67 +158,67 @@ function Ft(t, e, r, n = Se, o) {
143
158
  context: I ? I.context : null,
144
159
  pure: r
145
160
  };
146
- return I === null || I !== Or && (I.owned ? I.owned.push(i) : I.owned = [i]), i;
161
+ return I === null || I !== Rr && (I.owned ? I.owned.push(i) : I.owned = [i]), i;
147
162
  }
148
- function ft(t) {
163
+ function dt(t) {
149
164
  if (t.state === 0) return;
150
- if (t.state === ut) return ht(t);
151
- if (t.suspense && ne(t.suspense.inFallback)) return t.suspense.effects.push(t);
165
+ if (t.state === ct) return ut(t);
166
+ if (t.suspense && ee(t.suspense.inFallback)) return t.suspense.effects.push(t);
152
167
  const e = [t];
153
- for (; (t = t.owner) && (!t.updatedAt || t.updatedAt < mt); )
168
+ for (; (t = t.owner) && (!t.updatedAt || t.updatedAt < pt); )
154
169
  t.state && e.push(t);
155
170
  for (let r = e.length - 1; r >= 0; r--)
156
- if (t = e[r], t.state === Se)
157
- Ye(t);
158
- else if (t.state === ut) {
159
- const n = W;
160
- W = null, et(() => ht(t, e[0]), !1), W = n;
171
+ if (t = e[r], t.state === Ce)
172
+ Qe(t);
173
+ else if (t.state === ct) {
174
+ const n = K;
175
+ K = null, Je(() => ut(t, e[0]), !1), K = n;
161
176
  }
162
177
  }
163
- function et(t, e) {
164
- if (W) return t();
178
+ function Je(t, e) {
179
+ if (K) return t();
165
180
  let r = !1;
166
- e || (W = []), he ? r = !0 : he = [], mt++;
181
+ e || (K = []), he ? r = !0 : he = [], pt++;
167
182
  try {
168
183
  const n = t();
169
- return yn(r), n;
184
+ return bn(r), n;
170
185
  } catch (n) {
171
- r || (he = null), W = null, zr(n);
186
+ r || (he = null), K = null, Fr(n);
172
187
  }
173
188
  }
174
- function yn(t) {
175
- if (W && (Fr(W), W = null), t) return;
189
+ function bn(t) {
190
+ if (K && (Dr(K), K = null), t) return;
176
191
  const e = he;
177
- he = null, e.length && et(() => Br(e), !1);
192
+ he = null, e.length && Je(() => Pr(e), !1);
178
193
  }
179
- function Fr(t) {
180
- for (let e = 0; e < t.length; e++) ft(t[e]);
194
+ function Dr(t) {
195
+ for (let e = 0; e < t.length; e++) dt(t[e]);
181
196
  }
182
- function xn(t) {
197
+ function mn(t) {
183
198
  let e, r = 0;
184
199
  for (e = 0; e < t.length; e++) {
185
200
  const n = t[e];
186
- n.user ? t[r++] = n : ft(n);
201
+ n.user ? t[r++] = n : dt(n);
187
202
  }
188
- for (e = 0; e < r; e++) ft(t[e]);
203
+ for (e = 0; e < r; e++) dt(t[e]);
189
204
  }
190
- function ht(t, e) {
205
+ function ut(t, e) {
191
206
  t.state = 0;
192
207
  for (let r = 0; r < t.sources.length; r += 1) {
193
208
  const n = t.sources[r];
194
209
  if (n.sources) {
195
210
  const o = n.state;
196
- o === Se ? n !== e && (!n.updatedAt || n.updatedAt < mt) && ft(n) : o === ut && ht(n, e);
211
+ o === Ce ? n !== e && (!n.updatedAt || n.updatedAt < pt) && dt(n) : o === ct && ut(n, e);
197
212
  }
198
213
  }
199
214
  }
200
- function Vr(t) {
215
+ function jr(t) {
201
216
  for (let e = 0; e < t.observers.length; e += 1) {
202
217
  const r = t.observers[e];
203
- r.state || (r.state = ut, r.pure ? W.push(r) : he.push(r), r.observers && Vr(r));
218
+ r.state || (r.state = ct, r.pure ? K.push(r) : he.push(r), r.observers && jr(r));
204
219
  }
205
220
  }
206
- function He(t) {
221
+ function Ge(t) {
207
222
  let e;
208
223
  if (t.sources)
209
224
  for (; t.sources.length; ) {
@@ -214,11 +229,11 @@ function He(t) {
214
229
  }
215
230
  }
216
231
  if (t.tOwned) {
217
- for (e = t.tOwned.length - 1; e >= 0; e--) He(t.tOwned[e]);
232
+ for (e = t.tOwned.length - 1; e >= 0; e--) Ge(t.tOwned[e]);
218
233
  delete t.tOwned;
219
234
  }
220
235
  if (t.owned) {
221
- for (e = t.owned.length - 1; e >= 0; e--) He(t.owned[e]);
236
+ for (e = t.owned.length - 1; e >= 0; e--) Ge(t.owned[e]);
222
237
  t.owned = null;
223
238
  }
224
239
  if (t.cleanups) {
@@ -227,20 +242,20 @@ function He(t) {
227
242
  }
228
243
  t.state = 0;
229
244
  }
230
- function kn(t) {
245
+ function yn(t) {
231
246
  return t instanceof Error ? t : new Error(typeof t == "string" ? t : "Unknown error", {
232
247
  cause: t
233
248
  });
234
249
  }
235
- function zr(t, e = I) {
236
- throw kn(t);
250
+ function Fr(t, e = I) {
251
+ throw yn(t);
237
252
  }
238
- function Nt(t) {
239
- if (typeof t == "function" && !t.length) return Nt(t());
253
+ function Tt(t) {
254
+ if (typeof t == "function" && !t.length) return Tt(t());
240
255
  if (Array.isArray(t)) {
241
256
  const e = [];
242
257
  for (let r = 0; r < t.length; r++) {
243
- const n = Nt(t[r]);
258
+ const n = Tt(t[r]);
244
259
  if (Array.isArray(n))
245
260
  if (n.length < 32768) e.push.apply(e, n);
246
261
  else for (let o = 0; o < n.length; o++) e.push(n[o]);
@@ -251,61 +266,61 @@ function Nt(t) {
251
266
  }
252
267
  return t;
253
268
  }
254
- function Cn(t, e) {
269
+ function wn(t, e) {
255
270
  return function(n) {
256
271
  let o;
257
- return U(() => o = ne(() => (I.context = {
272
+ return G(() => o = ee(() => (I.context = {
258
273
  ...I.context,
259
274
  [t]: n.value
260
- }, Lr(() => n.children))), void 0), o;
275
+ }, Ir(() => n.children))), void 0), o;
261
276
  };
262
277
  }
263
- function xe(t, e = void 0) {
264
- const [r, n] = z(e, {
278
+ function we(t, e = void 0) {
279
+ const [r, n] = U(e, {
265
280
  equals: !1
266
281
  });
267
282
  if ("subscribe" in t) {
268
283
  const o = t.subscribe((i) => n(() => i));
269
- ie(() => "unsubscribe" in o ? o.unsubscribe() : o());
284
+ le(() => "unsubscribe" in o ? o.unsubscribe() : o());
270
285
  } else {
271
286
  const o = t(n);
272
- ie(o);
287
+ le(o);
273
288
  }
274
289
  return r;
275
290
  }
276
- const Sn = /* @__PURE__ */ Symbol("fallback");
277
- function Yt(t) {
291
+ const xn = /* @__PURE__ */ Symbol("fallback");
292
+ function Jt(t) {
278
293
  for (let e = 0; e < t.length; e++) t[e]();
279
294
  }
280
- function An(t, e, r = {}) {
295
+ function kn(t, e, r = {}) {
281
296
  let n = [], o = [], i = [], a = 0, s = e.length > 1 ? [] : null;
282
- return ie(() => Yt(i)), () => {
297
+ return le(() => Jt(i)), () => {
283
298
  let l = t() || [], d = l.length, u, c;
284
- return l[bn], ne(() => {
285
- let h, p, m, g, C, x, y, R, E;
299
+ return l[gn], ee(() => {
300
+ let h, p, m, g, C, x, w, B, A;
286
301
  if (d === 0)
287
- a !== 0 && (Yt(i), i = [], n = [], o = [], a = 0, s && (s = [])), r.fallback && (n = [Sn], o[0] = at((ve) => (i[0] = ve, r.fallback())), a = 1);
302
+ a !== 0 && (Jt(i), i = [], n = [], o = [], a = 0, s && (s = [])), r.fallback && (n = [xn], o[0] = ot((ve) => (i[0] = ve, r.fallback())), a = 1);
288
303
  else if (a === 0) {
289
304
  for (o = new Array(d), c = 0; c < d; c++)
290
- n[c] = l[c], o[c] = at(f);
305
+ n[c] = l[c], o[c] = ot(f);
291
306
  a = d;
292
307
  } else {
293
- for (m = new Array(d), g = new Array(d), s && (C = new Array(d)), x = 0, y = Math.min(a, d); x < y && n[x] === l[x]; x++) ;
294
- for (y = a - 1, R = d - 1; y >= x && R >= x && n[y] === l[R]; y--, R--)
295
- m[R] = o[y], g[R] = i[y], s && (C[R] = s[y]);
296
- for (h = /* @__PURE__ */ new Map(), p = new Array(R + 1), c = R; c >= x; c--)
297
- E = l[c], u = h.get(E), p[c] = u === void 0 ? -1 : u, h.set(E, c);
298
- for (u = x; u <= y; u++)
299
- E = n[u], c = h.get(E), c !== void 0 && c !== -1 ? (m[c] = o[u], g[c] = i[u], s && (C[c] = s[u]), c = p[c], h.set(E, c)) : i[u]();
308
+ for (m = new Array(d), g = new Array(d), s && (C = new Array(d)), x = 0, w = Math.min(a, d); x < w && n[x] === l[x]; x++) ;
309
+ for (w = a - 1, B = d - 1; w >= x && B >= x && n[w] === l[B]; w--, B--)
310
+ m[B] = o[w], g[B] = i[w], s && (C[B] = s[w]);
311
+ for (h = /* @__PURE__ */ new Map(), p = new Array(B + 1), c = B; c >= x; c--)
312
+ A = l[c], u = h.get(A), p[c] = u === void 0 ? -1 : u, h.set(A, c);
313
+ for (u = x; u <= w; u++)
314
+ A = n[u], c = h.get(A), c !== void 0 && c !== -1 ? (m[c] = o[u], g[c] = i[u], s && (C[c] = s[u]), c = p[c], h.set(A, c)) : i[u]();
300
315
  for (c = x; c < d; c++)
301
- c in m ? (o[c] = m[c], i[c] = g[c], s && (s[c] = C[c], s[c](c))) : o[c] = at(f);
316
+ c in m ? (o[c] = m[c], i[c] = g[c], s && (s[c] = C[c], s[c](c))) : o[c] = ot(f);
302
317
  o = o.slice(0, a = d), n = l.slice(0);
303
318
  }
304
319
  return o;
305
320
  });
306
321
  function f(h) {
307
322
  if (i[c] = h, s) {
308
- const [p, m] = z(c);
323
+ const [p, m] = U(c);
309
324
  return s[c] = m, e(l[c], p);
310
325
  }
311
326
  return e(l[c]);
@@ -313,20 +328,20 @@ function An(t, e, r = {}) {
313
328
  };
314
329
  }
315
330
  function v(t, e) {
316
- return ne(() => t(e || {}));
331
+ return ee(() => t(e || {}));
317
332
  }
318
- function it() {
333
+ function rt() {
319
334
  return !0;
320
335
  }
321
- const _t = {
336
+ const Nt = {
322
337
  get(t, e, r) {
323
- return e === ct ? r : t.get(e);
338
+ return e === at ? r : t.get(e);
324
339
  },
325
340
  has(t, e) {
326
- return e === ct ? !0 : t.has(e);
341
+ return e === at ? !0 : t.has(e);
327
342
  },
328
- set: it,
329
- deleteProperty: it,
343
+ set: rt,
344
+ deleteProperty: rt,
330
345
  getOwnPropertyDescriptor(t, e) {
331
346
  return {
332
347
  configurable: !0,
@@ -334,18 +349,18 @@ const _t = {
334
349
  get() {
335
350
  return t.get(e);
336
351
  },
337
- set: it,
338
- deleteProperty: it
352
+ set: rt,
353
+ deleteProperty: rt
339
354
  };
340
355
  },
341
356
  ownKeys(t) {
342
357
  return t.keys();
343
358
  }
344
359
  };
345
- function St(t) {
360
+ function Ct(t) {
346
361
  return (t = typeof t == "function" ? t() : t) ? t : {};
347
362
  }
348
- function $n() {
363
+ function Cn() {
349
364
  for (let t = 0, e = this.length; t < e; ++t) {
350
365
  const r = this[t]();
351
366
  if (r !== void 0) return r;
@@ -355,27 +370,27 @@ function Q(...t) {
355
370
  let e = !1;
356
371
  for (let a = 0; a < t.length; a++) {
357
372
  const s = t[a];
358
- e = e || !!s && ct in s, t[a] = typeof s == "function" ? (e = !0, N(s)) : s;
373
+ e = e || !!s && at in s, t[a] = typeof s == "function" ? (e = !0, E(s)) : s;
359
374
  }
360
- if (Rr && e)
375
+ if (_r && e)
361
376
  return new Proxy({
362
377
  get(a) {
363
378
  for (let s = t.length - 1; s >= 0; s--) {
364
- const l = St(t[s])[a];
379
+ const l = Ct(t[s])[a];
365
380
  if (l !== void 0) return l;
366
381
  }
367
382
  },
368
383
  has(a) {
369
384
  for (let s = t.length - 1; s >= 0; s--)
370
- if (a in St(t[s])) return !0;
385
+ if (a in Ct(t[s])) return !0;
371
386
  return !1;
372
387
  },
373
388
  keys() {
374
389
  const a = [];
375
- for (let s = 0; s < t.length; s++) a.push(...Object.keys(St(t[s])));
390
+ for (let s = 0; s < t.length; s++) a.push(...Object.keys(Ct(t[s])));
376
391
  return [...new Set(a)];
377
392
  }
378
- }, _t);
393
+ }, Nt);
379
394
  const r = {}, n = /* @__PURE__ */ Object.create(null);
380
395
  for (let a = t.length - 1; a >= 0; a--) {
381
396
  const s = t[a];
@@ -389,7 +404,7 @@ function Q(...t) {
389
404
  n[u] = c.get ? {
390
405
  enumerable: !0,
391
406
  configurable: !0,
392
- get: $n.bind(r[u] = [c.get.bind(s)])
407
+ get: Cn.bind(r[u] = [c.get.bind(s)])
393
408
  } : c.value !== void 0 ? c : void 0;
394
409
  else {
395
410
  const f = r[u];
@@ -404,9 +419,9 @@ function Q(...t) {
404
419
  }
405
420
  return o;
406
421
  }
407
- function wt(t, ...e) {
422
+ function bt(t, ...e) {
408
423
  const r = e.length;
409
- if (Rr && ct in t) {
424
+ if (_r && at in t) {
410
425
  const o = r > 1 ? e.flat() : e[0], i = e.map((a) => new Proxy({
411
426
  get(s) {
412
427
  return a.includes(s) ? t[s] : void 0;
@@ -417,7 +432,7 @@ function wt(t, ...e) {
417
432
  keys() {
418
433
  return a.filter((s) => s in t);
419
434
  }
420
- }, _t));
435
+ }, Nt));
421
436
  return i.push(new Proxy({
422
437
  get(a) {
423
438
  return o.includes(a) ? void 0 : t[a];
@@ -428,7 +443,7 @@ function wt(t, ...e) {
428
443
  keys() {
429
444
  return Object.keys(t).filter((a) => !o.includes(a));
430
445
  }
431
- }, _t)), i;
446
+ }, Nt)), i;
432
447
  }
433
448
  const n = [];
434
449
  for (let o = 0; o <= r; o++)
@@ -445,56 +460,56 @@ function wt(t, ...e) {
445
460
  }
446
461
  return n;
447
462
  }
448
- const Ur = (t) => `Stale read from <${t}>.`;
449
- function Ce(t) {
463
+ const Vr = (t) => `Stale read from <${t}>.`;
464
+ function ke(t) {
450
465
  const e = "fallback" in t && {
451
466
  fallback: () => t.fallback
452
467
  };
453
- return N(An(() => t.each, t.children, e || void 0));
468
+ return E(kn(() => t.each, t.children, e || void 0));
454
469
  }
455
470
  function ge(t) {
456
- const e = t.keyed, r = N(() => t.when, void 0, void 0), n = e ? r : N(r, void 0, {
471
+ const e = t.keyed, r = E(() => t.when, void 0, void 0), n = e ? r : E(r, void 0, {
457
472
  equals: (o, i) => !o == !i
458
473
  });
459
- return N(() => {
474
+ return E(() => {
460
475
  const o = n();
461
476
  if (o) {
462
477
  const i = t.children;
463
- return typeof i == "function" && i.length > 0 ? ne(() => i(e ? o : () => {
464
- if (!ne(n)) throw Ur("Show");
478
+ return typeof i == "function" && i.length > 0 ? ee(() => i(e ? o : () => {
479
+ if (!ee(n)) throw Vr("Show");
465
480
  return r();
466
481
  })) : i;
467
482
  }
468
483
  return t.fallback;
469
484
  }, void 0, void 0);
470
485
  }
471
- function Gr(t) {
472
- const e = Lr(() => t.children), r = N(() => {
486
+ function zr(t) {
487
+ const e = Ir(() => t.children), r = E(() => {
473
488
  const n = e(), o = Array.isArray(n) ? n : [n];
474
489
  let i = () => {
475
490
  };
476
491
  for (let a = 0; a < o.length; a++) {
477
- const s = a, l = o[a], d = i, u = N(() => d() ? void 0 : l.when, void 0, void 0), c = l.keyed ? u : N(u, void 0, {
492
+ const s = a, l = o[a], d = i, u = E(() => d() ? void 0 : l.when, void 0, void 0), c = l.keyed ? u : E(u, void 0, {
478
493
  equals: (f, h) => !f == !h
479
494
  });
480
495
  i = () => d() || (c() ? [s, u, l] : void 0);
481
496
  }
482
497
  return i;
483
498
  });
484
- return N(() => {
499
+ return E(() => {
485
500
  const n = r()();
486
501
  if (!n) return t.fallback;
487
502
  const [o, i, a] = n, s = a.children;
488
- return typeof s == "function" && s.length > 0 ? ne(() => s(a.keyed ? i() : () => {
489
- if (ne(r)()?.[0] !== o) throw Ur("Match");
503
+ return typeof s == "function" && s.length > 0 ? ee(() => s(a.keyed ? i() : () => {
504
+ if (ee(r)()?.[0] !== o) throw Vr("Match");
490
505
  return i();
491
506
  })) : s;
492
507
  }, void 0, void 0);
493
508
  }
494
- function Be(t) {
509
+ function _e(t) {
495
510
  return t;
496
511
  }
497
- const En = [
512
+ const Sn = [
498
513
  "allowfullscreen",
499
514
  "async",
500
515
  "alpha",
@@ -536,7 +551,7 @@ const En = [
536
551
  "shadowrootdelegatesfocus",
537
552
  "shadowrootserializable",
538
553
  "sharedstoragewritable"
539
- ], Tn = /* @__PURE__ */ new Set([
554
+ ], An = /* @__PURE__ */ new Set([
540
555
  "className",
541
556
  "value",
542
557
  "readOnly",
@@ -559,11 +574,11 @@ const En = [
559
574
  "shadowRootDelegatesFocus",
560
575
  "shadowRootSerializable",
561
576
  "sharedStorageWritable",
562
- ...En
563
- ]), Nn = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), _n = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
577
+ ...Sn
578
+ ]), $n = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]), En = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
564
579
  className: "class",
565
580
  htmlFor: "for"
566
- }), Pn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
581
+ }), Tn = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
567
582
  class: "className",
568
583
  novalidate: {
569
584
  $: "noValidate",
@@ -648,11 +663,11 @@ const En = [
648
663
  IMG: 1
649
664
  }
650
665
  });
651
- function Rn(t, e) {
652
- const r = Pn[t];
666
+ function Nn(t, e) {
667
+ const r = Tn[t];
653
668
  return typeof r == "object" ? r[e] ? r.$ : void 0 : r;
654
669
  }
655
- 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"]), On = /* @__PURE__ */ new Set([
670
+ const _n = /* @__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"]), Pn = /* @__PURE__ */ new Set([
656
671
  "altGlyph",
657
672
  "altGlyphDef",
658
673
  "altGlyphItem",
@@ -730,11 +745,11 @@ const Bn = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "context
730
745
  "use",
731
746
  "view",
732
747
  "vkern"
733
- ]), In = {
748
+ ]), Rn = {
734
749
  xlink: "http://www.w3.org/1999/xlink",
735
750
  xml: "http://www.w3.org/XML/1998/namespace"
736
- }, Ie = (t) => N(() => t());
737
- function Mn(t, e, r) {
751
+ }, Re = (t) => E(() => t());
752
+ function Bn(t, e, r) {
738
753
  let n = r.length, o = e.length, i = n, a = 0, s = 0, l = e[o - 1].nextSibling, d = null;
739
754
  for (; a < o || s < i; ) {
740
755
  if (e[a] === r[s]) {
@@ -773,10 +788,10 @@ function Mn(t, e, r) {
773
788
  }
774
789
  }
775
790
  }
776
- const er = "_$DX_DELEGATE";
777
- function Ln(t, e, r, n = {}) {
791
+ const Zt = "_$DX_DELEGATE";
792
+ function On(t, e, r, n = {}) {
778
793
  let o;
779
- return at((i) => {
794
+ return ot((i) => {
780
795
  o = i, e === document ? t() : b(e, t(), e.firstChild ? null : void 0, r);
781
796
  }, n.owner), () => {
782
797
  o(), e.textContent = "";
@@ -787,29 +802,29 @@ function k(t, e, r, n) {
787
802
  const i = () => {
788
803
  const s = n ? document.createElementNS("http://www.w3.org/1998/Math/MathML", "template") : document.createElement("template");
789
804
  return s.innerHTML = t, r ? s.content.firstChild.firstChild : n ? s.firstChild : s.content.firstChild;
790
- }, a = e ? () => ne(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
805
+ }, a = e ? () => ee(() => document.importNode(o || (o = i()), !0)) : () => (o || (o = i())).cloneNode(!0);
791
806
  return a.cloneNode = a, a;
792
807
  }
793
- function Ae(t, e = window.document) {
794
- const r = e[er] || (e[er] = /* @__PURE__ */ new Set());
808
+ function Se(t, e = window.document) {
809
+ const r = e[Zt] || (e[Zt] = /* @__PURE__ */ new Set());
795
810
  for (let n = 0, o = t.length; n < o; n++) {
796
811
  const i = t[n];
797
- r.has(i) || (r.add(i), e.addEventListener(i, Un));
812
+ r.has(i) || (r.add(i), e.addEventListener(i, Fn));
798
813
  }
799
814
  }
800
815
  function Y(t, e, r) {
801
816
  r == null ? t.removeAttribute(e) : t.setAttribute(e, r);
802
817
  }
803
- function Dn(t, e, r, n) {
818
+ function In(t, e, r, n) {
804
819
  n == null ? t.removeAttributeNS(e, r) : t.setAttributeNS(e, r, n);
805
820
  }
806
- function jn(t, e, r) {
821
+ function Mn(t, e, r) {
807
822
  r ? t.setAttribute(e, "") : t.removeAttribute(e);
808
823
  }
809
- function re(t, e) {
824
+ function ne(t, e) {
810
825
  e == null ? t.removeAttribute("class") : t.className = e;
811
826
  }
812
- function yt(t, e, r, n) {
827
+ function mt(t, e, r, n) {
813
828
  if (n)
814
829
  Array.isArray(r) ? (t[`$$${e}`] = r[0], t[`$$${e}Data`] = r[1]) : t[`$$${e}`] = r;
815
830
  else if (Array.isArray(r)) {
@@ -817,20 +832,20 @@ function yt(t, e, r, n) {
817
832
  t.addEventListener(e, r[0] = (i) => o.call(t, r[1], i));
818
833
  } else t.addEventListener(e, r, typeof r != "function" && r);
819
834
  }
820
- function Fn(t, e, r = {}) {
835
+ function Ln(t, e, r = {}) {
821
836
  const n = Object.keys(e || {}), o = Object.keys(r);
822
837
  let i, a;
823
838
  for (i = 0, a = o.length; i < a; i++) {
824
839
  const s = o[i];
825
- !s || s === "undefined" || e[s] || (tr(t, s, !1), delete r[s]);
840
+ !s || s === "undefined" || e[s] || (Yt(t, s, !1), delete r[s]);
826
841
  }
827
842
  for (i = 0, a = n.length; i < a; i++) {
828
843
  const s = n[i], l = !!e[s];
829
- !s || s === "undefined" || r[s] === l || !l || (tr(t, s, !0), r[s] = l);
844
+ !s || s === "undefined" || r[s] === l || !l || (Yt(t, s, !0), r[s] = l);
830
845
  }
831
846
  return r;
832
847
  }
833
- function Pt(t, e, r) {
848
+ function _t(t, e, r) {
834
849
  if (!e) return r ? Y(t, "style") : e;
835
850
  const n = t.style;
836
851
  if (typeof e == "string") return n.cssText = e;
@@ -842,42 +857,42 @@ function Pt(t, e, r) {
842
857
  o = e[i], o !== r[i] && (n.setProperty(i, o), r[i] = o);
843
858
  return r;
844
859
  }
845
- function gt(t, e = {}, r, n) {
860
+ function ft(t, e = {}, r, n) {
846
861
  const o = {};
847
- return n || U(() => o.children = qe(t, e.children, o.children)), U(() => typeof e.ref == "function" && Wr(e.ref, t)), U(() => Vn(t, e, r, !0, o, !0)), o;
862
+ return n || G(() => o.children = We(t, e.children, o.children)), G(() => typeof e.ref == "function" && Ur(e.ref, t)), G(() => Dn(t, e, r, !0, o, !0)), o;
848
863
  }
849
- function Wr(t, e, r) {
850
- return ne(() => t(e, r));
864
+ function Ur(t, e, r) {
865
+ return ee(() => t(e, r));
851
866
  }
852
867
  function b(t, e, r, n) {
853
- if (r !== void 0 && !n && (n = []), typeof e != "function") return qe(t, e, n, r);
854
- U((o) => qe(t, e(), o, r), n);
868
+ if (r !== void 0 && !n && (n = []), typeof e != "function") return We(t, e, n, r);
869
+ G((o) => We(t, e(), o, r), n);
855
870
  }
856
- function Vn(t, e, r, n, o = {}, i = !1) {
871
+ function Dn(t, e, r, n, o = {}, i = !1) {
857
872
  e || (e = {});
858
873
  for (const a in o)
859
874
  if (!(a in e)) {
860
875
  if (a === "children") continue;
861
- o[a] = rr(t, a, null, o[a], r, i, e);
876
+ o[a] = er(t, a, null, o[a], r, i, e);
862
877
  }
863
878
  for (const a in e) {
864
879
  if (a === "children")
865
880
  continue;
866
881
  const s = e[a];
867
- o[a] = rr(t, a, s, o[a], r, i, e);
882
+ o[a] = er(t, a, s, o[a], r, i, e);
868
883
  }
869
884
  }
870
- function zn(t) {
885
+ function jn(t) {
871
886
  return t.toLowerCase().replace(/-([a-z])/g, (e, r) => r.toUpperCase());
872
887
  }
873
- function tr(t, e, r) {
888
+ function Yt(t, e, r) {
874
889
  const n = e.trim().split(/\s+/);
875
890
  for (let o = 0, i = n.length; o < i; o++) t.classList.toggle(n[o], r);
876
891
  }
877
- function rr(t, e, r, n, o, i, a) {
892
+ function er(t, e, r, n, o, i, a) {
878
893
  let s, l, d, u, c;
879
- if (e === "style") return Pt(t, r, n);
880
- if (e === "classList") return Fn(t, r, n);
894
+ if (e === "style") return _t(t, r, n);
895
+ if (e === "classList") return Ln(t, r, n);
881
896
  if (r === n) return n;
882
897
  if (e === "ref")
883
898
  i || r(t);
@@ -888,25 +903,25 @@ function rr(t, e, r, n, o, i, a) {
888
903
  const f = e.slice(10);
889
904
  n && t.removeEventListener(f, n, !0), r && t.addEventListener(f, r, !0);
890
905
  } else if (e.slice(0, 2) === "on") {
891
- const f = e.slice(2).toLowerCase(), h = Bn.has(f);
906
+ const f = e.slice(2).toLowerCase(), h = _n.has(f);
892
907
  if (!h && n) {
893
908
  const p = Array.isArray(n) ? n[0] : n;
894
909
  t.removeEventListener(f, p);
895
910
  }
896
- (h || r) && (yt(t, f, r, h), h && Ae([f]));
911
+ (h || r) && (mt(t, f, r, h), h && Se([f]));
897
912
  } else if (e.slice(0, 5) === "attr:")
898
913
  Y(t, e.slice(5), r);
899
914
  else if (e.slice(0, 5) === "bool:")
900
- jn(t, e.slice(5), r);
901
- else if ((c = e.slice(0, 5) === "prop:") || (d = Nn.has(e)) || !o && ((u = Rn(e, t.tagName)) || (l = Tn.has(e))) || (s = t.nodeName.includes("-") || "is" in a))
902
- c && (e = e.slice(5), l = !0), e === "class" || e === "className" ? re(t, r) : s && !l && !d ? t[zn(e)] = r : t[u || e] = r;
915
+ Mn(t, e.slice(5), r);
916
+ else if ((c = e.slice(0, 5) === "prop:") || (d = $n.has(e)) || !o && ((u = Nn(e, t.tagName)) || (l = An.has(e))) || (s = t.nodeName.includes("-") || "is" in a))
917
+ c && (e = e.slice(5), l = !0), e === "class" || e === "className" ? ne(t, r) : s && !l && !d ? t[jn(e)] = r : t[u || e] = r;
903
918
  else {
904
- const f = o && e.indexOf(":") > -1 && In[e.split(":")[0]];
905
- f ? Dn(t, f, e, r) : Y(t, _n[e] || e, r);
919
+ const f = o && e.indexOf(":") > -1 && Rn[e.split(":")[0]];
920
+ f ? In(t, f, e, r) : Y(t, En[e] || e, r);
906
921
  }
907
922
  return r;
908
923
  }
909
- function Un(t) {
924
+ function Fn(t) {
910
925
  let e = t.target;
911
926
  const r = `$$${t.type}`, n = t.target, o = t.currentTarget, i = (l) => Object.defineProperty(t, "target", {
912
927
  configurable: !0,
@@ -940,7 +955,7 @@ function Un(t) {
940
955
  } else s();
941
956
  i(n);
942
957
  }
943
- function qe(t, e, r, n, o) {
958
+ function We(t, e, r, n, o) {
944
959
  for (; typeof r == "function"; ) r = r();
945
960
  if (e === r) return r;
946
961
  const i = typeof e, a = n !== void 0;
@@ -949,48 +964,48 @@ function qe(t, e, r, n, o) {
949
964
  return r;
950
965
  if (a) {
951
966
  let s = r[0];
952
- s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e), r = Le(t, r, n, s);
967
+ s && s.nodeType === 3 ? s.data !== e && (s.data = e) : s = document.createTextNode(e), r = Ie(t, r, n, s);
953
968
  } else
954
969
  r !== "" && typeof r == "string" ? r = t.firstChild.data = e : r = t.textContent = e;
955
970
  } else if (e == null || i === "boolean")
956
- r = Le(t, r, n);
971
+ r = Ie(t, r, n);
957
972
  else {
958
973
  if (i === "function")
959
- return U(() => {
974
+ return G(() => {
960
975
  let s = e();
961
976
  for (; typeof s == "function"; ) s = s();
962
- r = qe(t, s, r, n);
977
+ r = We(t, s, r, n);
963
978
  }), () => r;
964
979
  if (Array.isArray(e)) {
965
980
  const s = [], l = r && Array.isArray(r);
966
- if (Rt(s, e, r, o))
967
- return U(() => r = qe(t, s, r, n, !0)), () => r;
981
+ if (Pt(s, e, r, o))
982
+ return G(() => r = We(t, s, r, n, !0)), () => r;
968
983
  if (s.length === 0) {
969
- if (r = Le(t, r, n), a) return r;
970
- } else l ? r.length === 0 ? nr(t, s, n) : Mn(t, r, s) : (r && Le(t), nr(t, s));
984
+ if (r = Ie(t, r, n), a) return r;
985
+ } else l ? r.length === 0 ? tr(t, s, n) : Bn(t, r, s) : (r && Ie(t), tr(t, s));
971
986
  r = s;
972
987
  } else if (e.nodeType) {
973
988
  if (Array.isArray(r)) {
974
- if (a) return r = Le(t, r, n, e);
975
- Le(t, r, null, e);
989
+ if (a) return r = Ie(t, r, n, e);
990
+ Ie(t, r, null, e);
976
991
  } else r == null || r === "" || !t.firstChild ? t.appendChild(e) : t.replaceChild(e, t.firstChild);
977
992
  r = e;
978
993
  }
979
994
  }
980
995
  return r;
981
996
  }
982
- function Rt(t, e, r, n) {
997
+ function Pt(t, e, r, n) {
983
998
  let o = !1;
984
999
  for (let i = 0, a = e.length; i < a; i++) {
985
1000
  let s = e[i], l = r && r[t.length], d;
986
1001
  if (!(s == null || s === !0 || s === !1)) if ((d = typeof s) == "object" && s.nodeType)
987
1002
  t.push(s);
988
1003
  else if (Array.isArray(s))
989
- o = Rt(t, s, l) || o;
1004
+ o = Pt(t, s, l) || o;
990
1005
  else if (d === "function")
991
1006
  if (n) {
992
1007
  for (; typeof s == "function"; ) s = s();
993
- o = Rt(t, Array.isArray(s) ? s : [s], Array.isArray(l) ? l : [l]) || o;
1008
+ o = Pt(t, Array.isArray(s) ? s : [s], Array.isArray(l) ? l : [l]) || o;
994
1009
  } else
995
1010
  t.push(s), o = !0;
996
1011
  else {
@@ -1000,10 +1015,10 @@ function Rt(t, e, r, n) {
1000
1015
  }
1001
1016
  return o;
1002
1017
  }
1003
- function nr(t, e, r = null) {
1018
+ function tr(t, e, r = null) {
1004
1019
  for (let n = 0, o = e.length; n < o; n++) t.insertBefore(e[n], r);
1005
1020
  }
1006
- function Le(t, e, r, n) {
1021
+ function Ie(t, e, r, n) {
1007
1022
  if (r === void 0) return t.textContent = "";
1008
1023
  const o = n || document.createTextNode("");
1009
1024
  if (e.length) {
@@ -1018,39 +1033,39 @@ function Le(t, e, r, n) {
1018
1033
  } else t.insertBefore(o, r);
1019
1034
  return [o];
1020
1035
  }
1021
- const Gn = "http://www.w3.org/2000/svg";
1022
- function Wn(t, e = !1, r = void 0) {
1023
- return e ? document.createElementNS(Gn, t) : document.createElement(t, {
1036
+ const Vn = "http://www.w3.org/2000/svg";
1037
+ function zn(t, e = !1, r = void 0) {
1038
+ return e ? document.createElementNS(Vn, t) : document.createElement(t, {
1024
1039
  is: r
1025
1040
  });
1026
1041
  }
1027
- function Kn(t, e) {
1028
- const r = N(t);
1029
- return N(() => {
1042
+ function Un(t, e) {
1043
+ const r = E(t);
1044
+ return E(() => {
1030
1045
  const n = r();
1031
1046
  switch (typeof n) {
1032
1047
  case "function":
1033
- return ne(() => n(e));
1048
+ return ee(() => n(e));
1034
1049
  case "string":
1035
- const o = On.has(n), i = Wn(n, o, ne(() => e.is));
1036
- return gt(i, e, o), i;
1050
+ const o = Pn.has(n), i = zn(n, o, ee(() => e.is));
1051
+ return ft(i, e, o), i;
1037
1052
  }
1038
1053
  });
1039
1054
  }
1040
- function Hn(t) {
1041
- const [, e] = wt(t, ["component"]);
1042
- return Kn(() => t.component, e);
1055
+ function Gn(t) {
1056
+ const [, e] = bt(t, ["component"]);
1057
+ return Un(() => t.component, e);
1043
1058
  }
1044
- const qn = 1, Xn = (t) => {
1059
+ const Wn = 1, Kn = (t) => {
1045
1060
  const e = new URLSearchParams();
1046
- 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}@${qn}?${e.toString()}`;
1061
+ 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}@${Wn}?${e.toString()}`;
1047
1062
  };
1048
- function Qn(t) {
1063
+ function Hn(t) {
1049
1064
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1050
1065
  }
1051
- var At = { exports: {} }, or;
1052
- function Jn() {
1053
- return or || (or = 1, (function(t) {
1066
+ var St = { exports: {} }, rr;
1067
+ function qn() {
1068
+ return rr || (rr = 1, (function(t) {
1054
1069
  var e = Object.prototype.hasOwnProperty, r = "~";
1055
1070
  function n() {
1056
1071
  }
@@ -1089,7 +1104,7 @@ function Jn() {
1089
1104
  }, s.prototype.emit = function(d, u, c, f, h, p) {
1090
1105
  var m = r ? r + d : d;
1091
1106
  if (!this._events[m]) return !1;
1092
- var g = this._events[m], C = arguments.length, x, y;
1107
+ var g = this._events[m], C = arguments.length, x, w;
1093
1108
  if (g.fn) {
1094
1109
  switch (g.once && this.removeListener(d, g.fn, void 0, !0), C) {
1095
1110
  case 1:
@@ -1105,29 +1120,29 @@ function Jn() {
1105
1120
  case 6:
1106
1121
  return g.fn.call(g.context, u, c, f, h, p), !0;
1107
1122
  }
1108
- for (y = 1, x = new Array(C - 1); y < C; y++)
1109
- x[y - 1] = arguments[y];
1123
+ for (w = 1, x = new Array(C - 1); w < C; w++)
1124
+ x[w - 1] = arguments[w];
1110
1125
  g.fn.apply(g.context, x);
1111
1126
  } else {
1112
- var R = g.length, E;
1113
- for (y = 0; y < R; y++)
1114
- switch (g[y].once && this.removeListener(d, g[y].fn, void 0, !0), C) {
1127
+ var B = g.length, A;
1128
+ for (w = 0; w < B; w++)
1129
+ switch (g[w].once && this.removeListener(d, g[w].fn, void 0, !0), C) {
1115
1130
  case 1:
1116
- g[y].fn.call(g[y].context);
1131
+ g[w].fn.call(g[w].context);
1117
1132
  break;
1118
1133
  case 2:
1119
- g[y].fn.call(g[y].context, u);
1134
+ g[w].fn.call(g[w].context, u);
1120
1135
  break;
1121
1136
  case 3:
1122
- g[y].fn.call(g[y].context, u, c);
1137
+ g[w].fn.call(g[w].context, u, c);
1123
1138
  break;
1124
1139
  case 4:
1125
- g[y].fn.call(g[y].context, u, c, f);
1140
+ g[w].fn.call(g[w].context, u, c, f);
1126
1141
  break;
1127
1142
  default:
1128
- if (!x) for (E = 1, x = new Array(C - 1); E < C; E++)
1129
- x[E - 1] = arguments[E];
1130
- g[y].fn.apply(g[y].context, x);
1143
+ if (!x) for (A = 1, x = new Array(C - 1); A < C; A++)
1144
+ x[A - 1] = arguments[A];
1145
+ g[w].fn.apply(g[w].context, x);
1131
1146
  }
1132
1147
  }
1133
1148
  return !0;
@@ -1153,153 +1168,153 @@ function Jn() {
1153
1168
  var u;
1154
1169
  return d ? (u = r ? r + d : d, this._events[u] && a(this, u)) : (this._events = new n(), this._eventsCount = 0), this;
1155
1170
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, t.exports = s;
1156
- })(At)), At.exports;
1171
+ })(St)), St.exports;
1157
1172
  }
1158
- Jn();
1159
- const X = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Kr = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), vt = "@ts-pattern/anonymous-select-key", Bt = (t) => !!(t && typeof t == "object"), lt = (t) => t && !!t[X], j = (t, e, r) => {
1160
- if (lt(t)) {
1173
+ qn();
1174
+ const X = /* @__PURE__ */ Symbol.for("@ts-pattern/matcher"), Gr = /* @__PURE__ */ Symbol.for("@ts-pattern/isVariadic"), ht = "@ts-pattern/anonymous-select-key", Rt = (t) => !!(t && typeof t == "object"), st = (t) => t && !!t[X], F = (t, e, r) => {
1175
+ if (st(t)) {
1161
1176
  const n = t[X](), { matched: o, selections: i } = n.match(e);
1162
1177
  return o && i && Object.keys(i).forEach((a) => r(a, i[a])), o;
1163
1178
  }
1164
- if (Bt(t)) {
1165
- if (!Bt(e)) return !1;
1179
+ if (Rt(t)) {
1180
+ if (!Rt(e)) return !1;
1166
1181
  if (Array.isArray(t)) {
1167
1182
  if (!Array.isArray(e)) return !1;
1168
1183
  let n = [], o = [], i = [];
1169
1184
  for (const a of t.keys()) {
1170
1185
  const s = t[a];
1171
- lt(s) && s[Kr] ? i.push(s) : i.length ? o.push(s) : n.push(s);
1186
+ st(s) && s[Gr] ? i.push(s) : i.length ? o.push(s) : n.push(s);
1172
1187
  }
1173
1188
  if (i.length) {
1174
1189
  if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1175
1190
  if (e.length < n.length + o.length) return !1;
1176
1191
  const a = e.slice(0, n.length), s = o.length === 0 ? [] : e.slice(-o.length), l = e.slice(n.length, o.length === 0 ? 1 / 0 : -o.length);
1177
- return n.every((d, u) => j(d, a[u], r)) && o.every((d, u) => j(d, s[u], r)) && (i.length === 0 || j(i[0], l, r));
1192
+ return n.every((d, u) => F(d, a[u], r)) && o.every((d, u) => F(d, s[u], r)) && (i.length === 0 || F(i[0], l, r));
1178
1193
  }
1179
- return t.length === e.length && t.every((a, s) => j(a, e[s], r));
1194
+ return t.length === e.length && t.every((a, s) => F(a, e[s], r));
1180
1195
  }
1181
1196
  return Reflect.ownKeys(t).every((n) => {
1182
1197
  const o = t[n];
1183
- return (n in e || lt(i = o) && i[X]().matcherType === "optional") && j(o, e[n], r);
1198
+ return (n in e || st(i = o) && i[X]().matcherType === "optional") && F(o, e[n], r);
1184
1199
  var i;
1185
1200
  });
1186
1201
  }
1187
1202
  return Object.is(e, t);
1188
1203
  }, q = (t) => {
1189
1204
  var e, r, n;
1190
- return Bt(t) ? lt(t) ? (e = (r = (n = t[X]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Xe(t, q) : Xe(Object.values(t), q) : [];
1191
- }, Xe = (t, e) => t.reduce((r, n) => r.concat(e(n)), []);
1192
- function Zn(...t) {
1205
+ return Rt(t) ? st(t) ? (e = (r = (n = t[X]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Ke(t, q) : Ke(Object.values(t), q) : [];
1206
+ }, Ke = (t, e) => t.reduce((r, n) => r.concat(e(n)), []);
1207
+ function Xn(...t) {
1193
1208
  if (t.length === 1) {
1194
1209
  const [e] = t;
1195
- return (r) => j(e, r, () => {
1210
+ return (r) => F(e, r, () => {
1196
1211
  });
1197
1212
  }
1198
1213
  if (t.length === 2) {
1199
1214
  const [e, r] = t;
1200
- return j(e, r, () => {
1215
+ return F(e, r, () => {
1201
1216
  });
1202
1217
  }
1203
1218
  throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${t.length}.`);
1204
1219
  }
1205
- function F(t) {
1206
- return Object.assign(t, { optional: () => Vt(t), and: (e) => P(t, e), or: (e) => Hr(t, e), select: (e) => e === void 0 ? Qe(t) : Qe(e, t) });
1220
+ function z(t) {
1221
+ return Object.assign(t, { optional: () => Ft(t), and: (e) => R(t, e), or: (e) => Wr(t, e), select: (e) => e === void 0 ? He(t) : He(e, t) });
1207
1222
  }
1208
- function Ot(t) {
1223
+ function Bt(t) {
1209
1224
  return Object.assign(((e) => Object.assign(e, { [Symbol.iterator]() {
1210
1225
  let r = 0;
1211
- const n = [{ value: Object.assign(e, { [Kr]: !0 }), done: !1 }, { done: !0, value: void 0 }];
1226
+ const n = [{ value: Object.assign(e, { [Gr]: !0 }), done: !1 }, { done: !0, value: void 0 }];
1212
1227
  return { next: () => {
1213
1228
  var o;
1214
1229
  return (o = n[r++]) != null ? o : n.at(-1);
1215
1230
  } };
1216
- } }))(t), { optional: () => Ot(Vt(t)), select: (e) => Ot(e === void 0 ? Qe(t) : Qe(e, t)) });
1231
+ } }))(t), { optional: () => Bt(Ft(t)), select: (e) => Bt(e === void 0 ? He(t) : He(e, t)) });
1217
1232
  }
1218
- function Vt(t) {
1219
- return F({ [X]: () => ({ match: (e) => {
1233
+ function Ft(t) {
1234
+ return z({ [X]: () => ({ match: (e) => {
1220
1235
  let r = {};
1221
1236
  const n = (o, i) => {
1222
1237
  r[o] = i;
1223
1238
  };
1224
- return e === void 0 ? (q(t).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: j(t, e, n), selections: r };
1239
+ return e === void 0 ? (q(t).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: F(t, e, n), selections: r };
1225
1240
  }, getSelectionKeys: () => q(t), matcherType: "optional" }) });
1226
1241
  }
1227
- const Yn = (t, e) => {
1242
+ const Qn = (t, e) => {
1228
1243
  for (const r of t) if (!e(r)) return !1;
1229
1244
  return !0;
1230
- }, eo = (t, e) => {
1245
+ }, Jn = (t, e) => {
1231
1246
  for (const [r, n] of t.entries()) if (!e(n, r)) return !1;
1232
1247
  return !0;
1233
- }, to = (t, e) => {
1248
+ }, Zn = (t, e) => {
1234
1249
  const r = Reflect.ownKeys(t);
1235
1250
  for (const n of r) if (!e(n, t[n])) return !1;
1236
1251
  return !0;
1237
1252
  };
1238
- function P(...t) {
1239
- return F({ [X]: () => ({ match: (e) => {
1253
+ function R(...t) {
1254
+ return z({ [X]: () => ({ match: (e) => {
1240
1255
  let r = {};
1241
1256
  const n = (o, i) => {
1242
1257
  r[o] = i;
1243
1258
  };
1244
- return { matched: t.every((o) => j(o, e, n)), selections: r };
1245
- }, getSelectionKeys: () => Xe(t, q), matcherType: "and" }) });
1259
+ return { matched: t.every((o) => F(o, e, n)), selections: r };
1260
+ }, getSelectionKeys: () => Ke(t, q), matcherType: "and" }) });
1246
1261
  }
1247
- function Hr(...t) {
1248
- return F({ [X]: () => ({ match: (e) => {
1262
+ function Wr(...t) {
1263
+ return z({ [X]: () => ({ match: (e) => {
1249
1264
  let r = {};
1250
1265
  const n = (o, i) => {
1251
1266
  r[o] = i;
1252
1267
  };
1253
- return Xe(t, q).forEach((o) => n(o, void 0)), { matched: t.some((o) => j(o, e, n)), selections: r };
1254
- }, getSelectionKeys: () => Xe(t, q), matcherType: "or" }) });
1268
+ return Ke(t, q).forEach((o) => n(o, void 0)), { matched: t.some((o) => F(o, e, n)), selections: r };
1269
+ }, getSelectionKeys: () => Ke(t, q), matcherType: "or" }) });
1255
1270
  }
1256
- function A(t) {
1271
+ function S(t) {
1257
1272
  return { [X]: () => ({ match: (e) => ({ matched: !!t(e) }) }) };
1258
1273
  }
1259
- function Qe(...t) {
1274
+ function He(...t) {
1260
1275
  const e = typeof t[0] == "string" ? t[0] : void 0, r = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
1261
- return F({ [X]: () => ({ match: (n) => {
1262
- let o = { [e ?? vt]: n };
1263
- return { matched: r === void 0 || j(r, n, (i, a) => {
1276
+ return z({ [X]: () => ({ match: (n) => {
1277
+ let o = { [e ?? ht]: n };
1278
+ return { matched: r === void 0 || F(r, n, (i, a) => {
1264
1279
  o[i] = a;
1265
1280
  }), selections: o };
1266
- }, getSelectionKeys: () => [e ?? vt].concat(r === void 0 ? [] : q(r)) }) });
1281
+ }, getSelectionKeys: () => [e ?? ht].concat(r === void 0 ? [] : q(r)) }) });
1267
1282
  }
1268
- function qr(t) {
1283
+ function Kr(t) {
1269
1284
  return !0;
1270
1285
  }
1271
1286
  function ce(t) {
1272
1287
  return typeof t == "number";
1273
1288
  }
1274
- function be(t) {
1289
+ function pe(t) {
1275
1290
  return typeof t == "string";
1276
1291
  }
1277
- function me(t) {
1292
+ function be(t) {
1278
1293
  return typeof t == "bigint";
1279
1294
  }
1280
- const Xr = F(A(qr)), ro = F(A(qr)), no = Xr, we = (t) => Object.assign(F(t), { startsWith: (e) => {
1281
- return we(P(t, (r = e, A((n) => be(n) && n.startsWith(r)))));
1295
+ const Hr = z(S(Kr)), Yn = z(S(Kr)), eo = Hr, me = (t) => Object.assign(z(t), { startsWith: (e) => {
1296
+ return me(R(t, (r = e, S((n) => pe(n) && n.startsWith(r)))));
1282
1297
  var r;
1283
1298
  }, endsWith: (e) => {
1284
- return we(P(t, (r = e, A((n) => be(n) && n.endsWith(r)))));
1299
+ return me(R(t, (r = e, S((n) => pe(n) && n.endsWith(r)))));
1285
1300
  var r;
1286
- }, minLength: (e) => we(P(t, ((r) => A((n) => be(n) && n.length >= r))(e))), length: (e) => we(P(t, ((r) => A((n) => be(n) && n.length === r))(e))), maxLength: (e) => we(P(t, ((r) => A((n) => be(n) && n.length <= r))(e))), includes: (e) => {
1287
- return we(P(t, (r = e, A((n) => be(n) && n.includes(r)))));
1301
+ }, minLength: (e) => me(R(t, ((r) => S((n) => pe(n) && n.length >= r))(e))), length: (e) => me(R(t, ((r) => S((n) => pe(n) && n.length === r))(e))), maxLength: (e) => me(R(t, ((r) => S((n) => pe(n) && n.length <= r))(e))), includes: (e) => {
1302
+ return me(R(t, (r = e, S((n) => pe(n) && n.includes(r)))));
1288
1303
  var r;
1289
1304
  }, regex: (e) => {
1290
- return we(P(t, (r = e, A((n) => be(n) && !!n.match(r)))));
1305
+ return me(R(t, (r = e, S((n) => pe(n) && !!n.match(r)))));
1291
1306
  var r;
1292
- } }), ir = we(A(be)), de = (t) => Object.assign(F(t), { between: (e, r) => de(P(t, ((n, o) => A((i) => ce(i) && n <= i && o >= i))(e, r))), lt: (e) => de(P(t, ((r) => A((n) => ce(n) && n < r))(e))), gt: (e) => de(P(t, ((r) => A((n) => ce(n) && n > r))(e))), lte: (e) => de(P(t, ((r) => A((n) => ce(n) && n <= r))(e))), gte: (e) => de(P(t, ((r) => A((n) => ce(n) && n >= r))(e))), int: () => de(P(t, A((e) => ce(e) && Number.isInteger(e)))), finite: () => de(P(t, A((e) => ce(e) && Number.isFinite(e)))), positive: () => de(P(t, A((e) => ce(e) && e > 0))), negative: () => de(P(t, A((e) => ce(e) && e < 0))) }), oo = de(A(ce)), ye = (t) => Object.assign(F(t), { between: (e, r) => ye(P(t, ((n, o) => A((i) => me(i) && n <= i && o >= i))(e, r))), lt: (e) => ye(P(t, ((r) => A((n) => me(n) && n < r))(e))), gt: (e) => ye(P(t, ((r) => A((n) => me(n) && n > r))(e))), lte: (e) => ye(P(t, ((r) => A((n) => me(n) && n <= r))(e))), gte: (e) => ye(P(t, ((r) => A((n) => me(n) && n >= r))(e))), positive: () => ye(P(t, A((e) => me(e) && e > 0))), negative: () => ye(P(t, A((e) => me(e) && e < 0))) }), io = ye(A(me)), so = F(A(function(t) {
1307
+ } }), nr = me(S(pe)), de = (t) => Object.assign(z(t), { between: (e, r) => de(R(t, ((n, o) => S((i) => ce(i) && n <= i && o >= i))(e, r))), lt: (e) => de(R(t, ((r) => S((n) => ce(n) && n < r))(e))), gt: (e) => de(R(t, ((r) => S((n) => ce(n) && n > r))(e))), lte: (e) => de(R(t, ((r) => S((n) => ce(n) && n <= r))(e))), gte: (e) => de(R(t, ((r) => S((n) => ce(n) && n >= r))(e))), int: () => de(R(t, S((e) => ce(e) && Number.isInteger(e)))), finite: () => de(R(t, S((e) => ce(e) && Number.isFinite(e)))), positive: () => de(R(t, S((e) => ce(e) && e > 0))), negative: () => de(R(t, S((e) => ce(e) && e < 0))) }), to = de(S(ce)), ye = (t) => Object.assign(z(t), { between: (e, r) => ye(R(t, ((n, o) => S((i) => be(i) && n <= i && o >= i))(e, r))), lt: (e) => ye(R(t, ((r) => S((n) => be(n) && n < r))(e))), gt: (e) => ye(R(t, ((r) => S((n) => be(n) && n > r))(e))), lte: (e) => ye(R(t, ((r) => S((n) => be(n) && n <= r))(e))), gte: (e) => ye(R(t, ((r) => S((n) => be(n) && n >= r))(e))), positive: () => ye(R(t, S((e) => be(e) && e > 0))), negative: () => ye(R(t, S((e) => be(e) && e < 0))) }), ro = ye(S(be)), no = z(S(function(t) {
1293
1308
  return typeof t == "boolean";
1294
- })), ao = F(A(function(t) {
1309
+ })), oo = z(S(function(t) {
1295
1310
  return typeof t == "symbol";
1296
- })), lo = F(A(function(t) {
1311
+ })), io = z(S(function(t) {
1297
1312
  return t == null;
1298
- })), co = F(A(function(t) {
1313
+ })), so = z(S(function(t) {
1299
1314
  return t != null;
1300
1315
  }));
1301
- var Qr = { __proto__: null, matcher: X, optional: Vt, array: function(...t) {
1302
- return Ot({ [X]: () => ({ match: (e) => {
1316
+ var qr = { __proto__: null, matcher: X, optional: Ft, array: function(...t) {
1317
+ return Bt({ [X]: () => ({ match: (e) => {
1303
1318
  if (!Array.isArray(e)) return { matched: !1 };
1304
1319
  if (t.length === 0) return { matched: !0 };
1305
1320
  const r = t[0];
@@ -1310,10 +1325,10 @@ var Qr = { __proto__: null, matcher: X, optional: Vt, array: function(...t) {
1310
1325
  const o = (i, a) => {
1311
1326
  n[i] = (n[i] || []).concat([a]);
1312
1327
  };
1313
- return { matched: e.every((i) => j(r, i, o)), selections: n };
1328
+ return { matched: e.every((i) => F(r, i, o)), selections: n };
1314
1329
  }, getSelectionKeys: () => t.length === 0 ? [] : q(t[0]) }) });
1315
1330
  }, set: function(...t) {
1316
- return F({ [X]: () => ({ match: (e) => {
1331
+ return z({ [X]: () => ({ match: (e) => {
1317
1332
  if (!(e instanceof Set)) return { matched: !1 };
1318
1333
  let r = {};
1319
1334
  if (e.size === 0) return { matched: !0, selections: r };
@@ -1321,10 +1336,10 @@ var Qr = { __proto__: null, matcher: X, optional: Vt, array: function(...t) {
1321
1336
  const n = (i, a) => {
1322
1337
  r[i] = (r[i] || []).concat([a]);
1323
1338
  }, o = t[0];
1324
- return { matched: Yn(e, (i) => j(o, i, n)), selections: r };
1339
+ return { matched: Qn(e, (i) => F(o, i, n)), selections: r };
1325
1340
  }, getSelectionKeys: () => t.length === 0 ? [] : q(t[0]) }) });
1326
1341
  }, map: function(...t) {
1327
- return F({ [X]: () => ({ match: (e) => {
1342
+ return z({ [X]: () => ({ match: (e) => {
1328
1343
  if (!(e instanceof Map)) return { matched: !1 };
1329
1344
  let r = {};
1330
1345
  if (e.size === 0) return { matched: !0, selections: r };
@@ -1335,36 +1350,36 @@ var Qr = { __proto__: null, matcher: X, optional: Vt, array: function(...t) {
1335
1350
  var o;
1336
1351
  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()}`);
1337
1352
  const [i, a] = t;
1338
- return { matched: eo(e, (s, l) => {
1339
- const d = j(i, l, n), u = j(a, s, n);
1353
+ return { matched: Jn(e, (s, l) => {
1354
+ const d = F(i, l, n), u = F(a, s, n);
1340
1355
  return d && u;
1341
1356
  }), selections: r };
1342
1357
  }, getSelectionKeys: () => t.length === 0 ? [] : [...q(t[0]), ...q(t[1])] }) });
1343
1358
  }, record: function(...t) {
1344
- return F({ [X]: () => ({ match: (e) => {
1359
+ return z({ [X]: () => ({ match: (e) => {
1345
1360
  if (e === null || typeof e != "object" || Array.isArray(e)) return { matched: !1 };
1346
1361
  var r;
1347
1362
  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()}`);
1348
1363
  let n = {};
1349
1364
  const o = (s, l) => {
1350
1365
  n[s] = (n[s] || []).concat([l]);
1351
- }, [i, a] = t.length === 1 ? [ir, t[0]] : t;
1352
- return { matched: to(e, (s, l) => {
1353
- 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);
1366
+ }, [i, a] = t.length === 1 ? [nr, t[0]] : t;
1367
+ return { matched: Zn(e, (s, l) => {
1368
+ const d = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), u = d !== null && F(i, d, o), c = F(i, s, o), f = F(a, l, o);
1354
1369
  return (c || u) && f;
1355
1370
  }), selections: n };
1356
1371
  }, getSelectionKeys: () => t.length === 0 ? [] : [...q(t[0]), ...q(t[1])] }) });
1357
- }, intersection: P, union: Hr, not: function(t) {
1358
- return F({ [X]: () => ({ match: (e) => ({ matched: !j(t, e, () => {
1372
+ }, intersection: R, union: Wr, not: function(t) {
1373
+ return z({ [X]: () => ({ match: (e) => ({ matched: !F(t, e, () => {
1359
1374
  }) }), getSelectionKeys: () => [], matcherType: "not" }) });
1360
- }, when: A, select: Qe, any: Xr, unknown: ro, _: no, string: ir, number: oo, bigint: io, boolean: so, symbol: ao, nullish: lo, nonNullable: co, instanceOf: function(t) {
1361
- return F(A(/* @__PURE__ */ (function(e) {
1375
+ }, when: S, select: He, any: Hr, unknown: Yn, _: eo, string: nr, number: to, bigint: ro, boolean: no, symbol: oo, nullish: io, nonNullable: so, instanceOf: function(t) {
1376
+ return z(S(/* @__PURE__ */ (function(e) {
1362
1377
  return (r) => r instanceof e;
1363
1378
  })(t)));
1364
1379
  }, shape: function(t) {
1365
- return F(A(Zn(t)));
1380
+ return z(S(Xn(t)));
1366
1381
  } };
1367
- class uo extends Error {
1382
+ class ao extends Error {
1368
1383
  constructor(e) {
1369
1384
  let r;
1370
1385
  try {
@@ -1375,11 +1390,11 @@ class uo extends Error {
1375
1390
  super(`Pattern matching error: no pattern matches value ${r}`), this.input = void 0, this.input = e;
1376
1391
  }
1377
1392
  }
1378
- const It = { matched: !1, value: void 0 };
1379
- function Oe(t) {
1380
- return new pt(t, It);
1393
+ const Ot = { matched: !1, value: void 0 };
1394
+ function Pe(t) {
1395
+ return new gt(t, Ot);
1381
1396
  }
1382
- class pt {
1397
+ class gt {
1383
1398
  constructor(e, r) {
1384
1399
  this.input = void 0, this.state = void 0, this.input = e, this.state = r;
1385
1400
  }
@@ -1391,18 +1406,18 @@ class pt {
1391
1406
  let i = !1, a = {};
1392
1407
  const s = (d, u) => {
1393
1408
  i = !0, a[d] = u;
1394
- }, l = !n.some((d) => j(d, this.input, s)) || o && !o(this.input) ? It : { matched: !0, value: r(i ? vt in a ? a[vt] : a : this.input, this.input) };
1395
- return new pt(this.input, l);
1409
+ }, l = !n.some((d) => F(d, this.input, s)) || o && !o(this.input) ? Ot : { matched: !0, value: r(i ? ht in a ? a[ht] : a : this.input, this.input) };
1410
+ return new gt(this.input, l);
1396
1411
  }
1397
1412
  when(e, r) {
1398
1413
  if (this.state.matched) return this;
1399
1414
  const n = !!e(this.input);
1400
- return new pt(this.input, n ? { matched: !0, value: r(this.input, this.input) } : It);
1415
+ return new gt(this.input, n ? { matched: !0, value: r(this.input, this.input) } : Ot);
1401
1416
  }
1402
1417
  otherwise(e) {
1403
1418
  return this.state.matched ? this.state.value : e(this.input);
1404
1419
  }
1405
- exhaustive(e = fo) {
1420
+ exhaustive(e = lo) {
1406
1421
  return this.state.matched ? this.state.value : e(this.input);
1407
1422
  }
1408
1423
  run() {
@@ -1415,10 +1430,10 @@ class pt {
1415
1430
  return this;
1416
1431
  }
1417
1432
  }
1418
- function fo(t) {
1419
- throw new uo(t);
1433
+ function lo(t) {
1434
+ throw new ao(t);
1420
1435
  }
1421
- const _e = {
1436
+ const Ee = {
1422
1437
  STANDBY: "standby",
1423
1438
  CONNECTING: "connecting",
1424
1439
  READY: "ready",
@@ -1426,24 +1441,24 @@ const _e = {
1426
1441
  HANDSHAKE_PARTIAL: "handshake-partial",
1427
1442
  ENCRYPTED: "encrypted",
1428
1443
  ERROR: "error"
1429
- }, je = {
1444
+ }, Le = {
1430
1445
  CREATED: "created",
1431
1446
  SIGNALING: "signaling",
1432
1447
  READY: "ready",
1433
1448
  LINKING: "linking",
1434
1449
  CONNECTED: "connected",
1435
1450
  DISCONNECTED: "disconnected"
1436
- }, oe = {
1451
+ }, se = {
1437
1452
  STANDBY: "standby",
1438
1453
  CREATING: "creating",
1439
1454
  CONNECTING: "connecting",
1440
1455
  CONNECTED: "connected",
1441
1456
  ERROR: "error"
1442
1457
  };
1443
- var $t = { exports: {} };
1444
- var sr;
1445
- function ho() {
1446
- return sr || (sr = 1, (function(t) {
1458
+ var At = { exports: {} };
1459
+ var or;
1460
+ function co() {
1461
+ return or || (or = 1, (function(t) {
1447
1462
  (function() {
1448
1463
  var e = {}.hasOwnProperty;
1449
1464
  function r() {
@@ -1472,10 +1487,10 @@ function ho() {
1472
1487
  }
1473
1488
  t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
1474
1489
  })();
1475
- })($t)), $t.exports;
1490
+ })(At)), At.exports;
1476
1491
  }
1477
- var go = ho();
1478
- const ke = /* @__PURE__ */ Qn(go), vo = async (t) => {
1492
+ var uo = co();
1493
+ const xe = /* @__PURE__ */ Hn(uo), fo = async (t) => {
1479
1494
  if (typeof t == "string") {
1480
1495
  if (t === "simple")
1481
1496
  return await import("./simple-CAAgvkQC.js").then((e) => e.simpleTheme);
@@ -1484,28 +1499,28 @@ const ke = /* @__PURE__ */ Qn(go), vo = async (t) => {
1484
1499
  throw new Error(`Unknown theme: ${t}`);
1485
1500
  }
1486
1501
  return t;
1487
- }, Mt = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Jr = (t, e = [], r = {}) => {
1502
+ }, It = (t) => typeof t == "object" && t !== null && !Array.isArray(t), Xr = (t, e = [], r = {}) => {
1488
1503
  for (const [n, o] of Object.entries(t)) {
1489
1504
  const i = [...e, n];
1490
- Mt(o) ? Jr(o, i, r) : r[`--lv-${i.join("-")}`] = o;
1505
+ It(o) ? Xr(o, i, r) : r[`--lv-${i.join("-")}`] = o;
1491
1506
  }
1492
1507
  return r;
1493
- }, po = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, Zr = (t, e) => {
1508
+ }, ho = (t = "auto", e = "system") => t === "light" || t === "dark" ? t : e === "system" ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : e, Qr = (t, e) => {
1494
1509
  const r = {
1495
1510
  ...t
1496
1511
  };
1497
1512
  for (const n of Object.keys(e)) {
1498
1513
  const o = t[n], i = e[n];
1499
- r[n] = Mt(o) && Mt(i) ? Zr(o, i) : i;
1514
+ r[n] = It(o) && It(i) ? Qr(o, i) : i;
1500
1515
  }
1501
1516
  return r;
1502
- }, bo = async (t, e = "system") => {
1503
- const r = await vo(t.theme), n = po(t.mode, e), o = r[n];
1517
+ }, go = async (t, e = "system") => {
1518
+ const r = await fo(t.theme), n = ho(t.mode, e), o = r[n];
1504
1519
  if (!o) return "";
1505
- const i = r.common ? Zr(r.common, o) : o, a = Jr(i);
1520
+ const i = r.common ? Qr(r.common, o) : o, a = Xr(i);
1506
1521
  return Object.entries(a).map(([s, l]) => `${s}: ${l};`).join(`
1507
1522
  `);
1508
- }, ar = `@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)}}`, lr = async (t, e, r = "system") => {
1523
+ }, ir = `@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)}}`, sr = async (t, e, r = "system") => {
1509
1524
  let n = t.querySelector(
1510
1525
  "style[data-openlv-modal]"
1511
1526
  );
@@ -1515,27 +1530,27 @@ const ke = /* @__PURE__ */ Qn(go), vo = async (t) => {
1515
1530
  theme: e?.theme ?? "simple"
1516
1531
  };
1517
1532
  if (o) {
1518
- const i = await bo(o, r);
1533
+ const i = await go(o, r);
1519
1534
  n.textContent = `:root, :host {
1520
1535
  ${i}
1521
1536
  }
1522
- ` + ar;
1537
+ ` + ir;
1523
1538
  } else
1524
- n.textContent = ar;
1539
+ n.textContent = ir;
1525
1540
  };
1526
- class Yr extends HTMLElement {
1541
+ class Jr extends HTMLElement {
1527
1542
  constructor(r) {
1528
1543
  super();
1529
- ee(this, "shadow");
1530
- ee(this, "renderRequested", !1);
1531
- ee(this, "parameters");
1532
- ee(this, "themeCleanup");
1533
- ee(this, "disposeRender");
1544
+ te(this, "shadow");
1545
+ te(this, "renderRequested", !1);
1546
+ te(this, "parameters");
1547
+ te(this, "themeCleanup");
1548
+ te(this, "disposeRender");
1534
1549
  this.parameters = r, this.shadow = this.attachShadow({
1535
1550
  mode: "open"
1536
1551
  });
1537
- const n = r.provider.storage.getSettings()?.theme ?? "system";
1538
- lr(this.shadow, r.theme, n);
1552
+ const n = r.provider.storage.settings.get()?.theme ?? "system";
1553
+ sr(this.shadow, r.theme, n);
1539
1554
  }
1540
1555
  connectedCallback() {
1541
1556
  this.requestRender(), this.themeCleanup?.(), this.setupThemeListener();
@@ -1545,13 +1560,11 @@ class Yr extends HTMLElement {
1545
1560
  }
1546
1561
  setupThemeListener() {
1547
1562
  const r = () => {
1548
- const o = this.parameters.provider.storage.getSettings()?.theme ?? "system";
1549
- lr(this.shadow, this.parameters.theme, o);
1550
- };
1551
- this.parameters.provider.storage.emitter.on("settings_change", r);
1552
- const n = globalThis.matchMedia("(prefers-color-scheme: dark)");
1553
- n.addEventListener("change", r), this.themeCleanup = () => {
1554
- this.parameters.provider.storage.emitter.off("settings_change", r), n.removeEventListener("change", r);
1563
+ const i = this.parameters.provider.storage.settings.get()?.theme ?? "system";
1564
+ sr(this.shadow, this.parameters.theme, i);
1565
+ }, n = this.parameters.provider.storage.settings.subscribe(r), o = globalThis.matchMedia("(prefers-color-scheme: dark)");
1566
+ o.addEventListener("change", r), this.themeCleanup = () => {
1567
+ n(), o.removeEventListener("change", r);
1555
1568
  };
1556
1569
  }
1557
1570
  showModal() {
@@ -1566,26 +1579,26 @@ class Yr extends HTMLElement {
1566
1579
  }));
1567
1580
  }
1568
1581
  performRender() {
1569
- this.disposeRender?.(), this.disposeRender = Ln(() => {
1582
+ this.disposeRender?.(), this.disposeRender = On(() => {
1570
1583
  const r = this;
1571
- return v(Bo, Q(() => r.parameters));
1584
+ return v(_o, Q(() => r.parameters));
1572
1585
  }, this.shadow);
1573
1586
  }
1574
1587
  }
1575
- const mo = { 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.", connectionFailed: "Connection failed", tryAgain: "Try again", errorGeneric: "The connection could not be established.", errorNoIce: "Your browser could not gather any network candidates. WebRTC may be blocked by the browser, an extension, or a VPN." }, Ao = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
1576
- Or copy the link and paste it into your wallet.` }, $o = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, Eo = {
1577
- common: mo,
1578
- status: wo,
1579
- settings: yo,
1580
- start: xo,
1581
- info: ko,
1582
- disconnected: Co,
1583
- connectionFlow: So,
1584
- handshake: Ao,
1585
- modal: $o
1588
+ const vo = { close: "Close", yes: "Yes", no: "No", protocol: "Protocol" }, po = { connectedSuccessfully: "Connected Successfully!", connecting: "Connecting", ready: "Ready", handshakeClosed: "Handshake Closed", handshakePartial: "Handshake Partial", encrypted: "Encrypted", signalError: "Signal Error", disconnected: "Disconnected" }, bo = { 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" }, mo = { title: "Connect Wallet" }, yo = { title: "What is openlv?", scanQrCode: "Scan QR Code", approveOnDevice: "Approve on device", youreConnected: "You're connected!" }, wo = { prompt: "Click the button below to start a connection", generateQr: "Generate QR", connectionSettings: "Connection settings" }, xo = { 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.", connectionFailed: "Connection failed", tryAgain: "Try again", errorGeneric: "The connection could not be established.", errorNoIce: "Your browser could not gather any network candidates. WebRTC may be blocked by the browser, an extension, or a VPN." }, ko = { clickToCopyUrl: "Click to copy connection URL", copyConnectionUrl: "Copy Connection URL", scanCodeInstruction: `Scan the code above using your mobile wallet.
1589
+ Or copy the link and paste it into your wallet.` }, Co = { urlCopied: "Connection URL copied to clipboard!", backToQr: "Back to QR", closeModal: "Close modal" }, So = {
1590
+ common: vo,
1591
+ status: po,
1592
+ settings: bo,
1593
+ start: mo,
1594
+ info: yo,
1595
+ disconnected: wo,
1596
+ connectionFlow: xo,
1597
+ handshake: ko,
1598
+ modal: Co
1586
1599
  };
1587
- var To = /* @__PURE__ */ k("<br>");
1588
- const zt = [{
1600
+ var Ao = /* @__PURE__ */ k("<br>");
1601
+ const Vt = [{
1589
1602
  tag: "en",
1590
1603
  name: "English",
1591
1604
  nativeName: "English"
@@ -1624,9 +1637,9 @@ const zt = [{
1624
1637
  name: "Persian",
1625
1638
  nativeName: "فارسی",
1626
1639
  rtl: !0
1627
- }], No = (t) => zt.find((r) => r.tag === t)?.rtl ?? !1;
1628
- new Set(zt.map((t) => t.tag));
1629
- const cr = (t) => {
1640
+ }], $o = (t) => Vt.find((r) => r.tag === t)?.rtl ?? !1;
1641
+ new Set(Vt.map((t) => t.tag));
1642
+ const ar = (t) => {
1630
1643
  if (typeof navigator > "u") return 0;
1631
1644
  const e = navigator.languages || [navigator.language];
1632
1645
  for (let r = 0; r < e.length; r++) {
@@ -1637,7 +1650,7 @@ const cr = (t) => {
1637
1650
  if (o === t || t.startsWith(`${o}-`)) return e.length - r - 0.5;
1638
1651
  }
1639
1652
  return 0;
1640
- }, dr = (t, e) => {
1653
+ }, lr = (t, e) => {
1641
1654
  if (!t) return;
1642
1655
  const r = e.split(".").filter(Boolean);
1643
1656
  if (r.length === 0) return;
@@ -1647,44 +1660,44 @@ const cr = (t) => {
1647
1660
  n = n[o];
1648
1661
  }
1649
1662
  return n;
1650
- }, ur = (t, e) => e ? t.replaceAll(/\{(\w+)\}/g, (r, n) => {
1663
+ }, cr = (t, e) => e ? t.replaceAll(/\{(\w+)\}/g, (r, n) => {
1651
1664
  const o = e[n];
1652
1665
  return o === void 0 ? r : String(o);
1653
- }) : t, _o = (t) => {
1654
- const e = dr(t.primary, t.key);
1666
+ }) : t, Eo = (t) => {
1667
+ const e = lr(t.primary, t.key);
1655
1668
  if (typeof e == "string")
1656
- return ur(e, t.params);
1657
- const r = dr(t.fallback, t.key);
1658
- return typeof r == "string" ? ur(r, t.params) : t.key;
1659
- }, en = Ir(void 0), Po = async (t) => Oe(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(), Ro = (t) => {
1669
+ return cr(e, t.params);
1670
+ const r = lr(t.fallback, t.key);
1671
+ return typeof r == "string" ? cr(r, t.params) : t.key;
1672
+ }, Zr = Br(void 0), To = async (t) => Pe(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(), No = (t) => {
1660
1673
  const {
1661
1674
  provider: e
1662
- } = $e(), r = e.storage.getSettings().language, [n, o] = z(r ?? "en"), [i, a] = z(void 0), [s, l] = z(!1);
1675
+ } = Ae(), r = e.storage.settings.get().language, [n, o] = U(r ?? "en"), [i, a] = U(void 0), [s, l] = U(!1);
1663
1676
  ae(() => {
1664
1677
  let h = !1;
1665
1678
  (async () => {
1666
1679
  l(!0);
1667
1680
  try {
1668
- const m = await Po(n());
1681
+ const m = await To(n());
1669
1682
  if (h) return;
1670
1683
  a(m);
1671
1684
  } finally {
1672
1685
  h || l(!1);
1673
1686
  }
1674
- })(), ie(() => {
1687
+ })(), le(() => {
1675
1688
  h = !0;
1676
1689
  });
1677
1690
  });
1678
1691
  const d = (h, p) => {
1679
- const m = _o({
1692
+ const m = Eo({
1680
1693
  primary: i(),
1681
- fallback: Eo,
1694
+ fallback: So,
1682
1695
  key: h,
1683
1696
  params: p
1684
1697
  }), g = m.split(`
1685
1698
  `);
1686
- return g.length <= 1 ? m : Ie(() => g.map((C, x) => [C, Ie(() => Ie(() => x < g.length - 1)() ? To() : null)]));
1687
- }, u = N(() => No(n())), f = {
1699
+ return g.length <= 1 ? m : Re(() => g.map((C, x) => [C, Re(() => Re(() => x < g.length - 1)() ? Ao() : null)]));
1700
+ }, u = E(() => $o(n())), f = {
1688
1701
  languageTag: n,
1689
1702
  setLanguageTag: (h) => {
1690
1703
  o(h);
@@ -1693,31 +1706,31 @@ const cr = (t) => {
1693
1706
  isRtl: u,
1694
1707
  t: d
1695
1708
  };
1696
- return v(en.Provider, {
1709
+ return v(Zr.Provider, {
1697
1710
  value: f,
1698
1711
  get children() {
1699
1712
  return t.children;
1700
1713
  }
1701
1714
  });
1702
1715
  }, J = () => {
1703
- const t = Mr(en);
1716
+ const t = Or(Zr);
1704
1717
  if (!t)
1705
1718
  throw new Error("TranslationProvider not found");
1706
1719
  return t;
1707
- }, tn = Ir(void 0), Bo = (t) => {
1720
+ }, Yr = Br(void 0), _o = (t) => {
1708
1721
  const {
1709
1722
  provider: e,
1710
1723
  theme: r
1711
1724
  } = t;
1712
- return v(tn.Provider, {
1725
+ return v(Yr.Provider, {
1713
1726
  value: {
1714
1727
  provider: e,
1715
1728
  themeConfig: r
1716
1729
  },
1717
1730
  get children() {
1718
- return v(Ro, {
1731
+ return v(No, {
1719
1732
  get children() {
1720
- return v(da, {
1733
+ return v(aa, {
1721
1734
  get onClose() {
1722
1735
  return t.onClose;
1723
1736
  }
@@ -1726,36 +1739,36 @@ const cr = (t) => {
1726
1739
  });
1727
1740
  }
1728
1741
  });
1729
- }, $e = () => {
1730
- const t = Mr(tn);
1742
+ }, Ae = () => {
1743
+ const t = Or(Yr);
1731
1744
  if (!t) throw new Error("Modal context not found");
1732
1745
  return t;
1733
- }, Me = () => {
1734
- const { provider: t } = $e(), e = xe(t.session), r = N(() => {
1746
+ }, Be = () => {
1747
+ const { provider: t } = Ae(), e = we(t.session), r = E(() => {
1735
1748
  const o = e();
1736
1749
  if (o)
1737
1750
  return {
1738
- status: xe(o.status),
1739
- signalStatus: xe(o.signalStatus),
1740
- peerInfo: xe(o.peerInfo),
1741
- error: xe(o.error)
1751
+ status: we(o.status),
1752
+ signalStatus: we(o.signalStatus),
1753
+ peerInfo: we(o.peerInfo),
1754
+ error: we(o.error)
1742
1755
  };
1743
1756
  });
1744
1757
  return {
1745
- uri: N(() => {
1758
+ uri: E(() => {
1746
1759
  const o = e()?.getHandshakeParameters();
1747
- return o ? Xn(o) : void 0;
1760
+ return o ? Kn(o) : void 0;
1748
1761
  }),
1749
1762
  status: () => r()?.status(),
1750
1763
  signalStatus: () => r()?.signalStatus(),
1751
1764
  peerInfo: () => r()?.peerInfo(),
1752
1765
  error: () => r()?.error()
1753
1766
  };
1754
- }, Oo = () => {
1755
- const { provider: t } = $e();
1767
+ }, Po = () => {
1768
+ const { provider: t } = Ae();
1756
1769
  return {
1757
1770
  start: () => {
1758
- const e = t.storage.getSettings(), r = e?.signaling?.p, n = r ? e?.signaling?.s?.[r] : void 0;
1771
+ const e = t.storage.settings.get(), r = e?.signaling?.p, n = r ? e?.signaling?.s?.[r] : void 0;
1759
1772
  if (!r || !n)
1760
1773
  throw new Error("Invalid protocol or server");
1761
1774
  return t.createSession({
@@ -1765,16 +1778,16 @@ const cr = (t) => {
1765
1778
  }
1766
1779
  };
1767
1780
  };
1768
- var Io = /* @__PURE__ */ k('<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:');
1769
- const Lt = (t) => {
1781
+ var Ro = /* @__PURE__ */ k('<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:');
1782
+ const Mt = (t) => {
1770
1783
  const {
1771
1784
  uri: e,
1772
1785
  status: r
1773
- } = Me();
1786
+ } = Be();
1774
1787
  return console.error("Unknown state:", {
1775
1788
  state: t.state
1776
1789
  }), (() => {
1777
- var n = Io(), o = n.firstChild;
1790
+ var n = Ro(), o = n.firstChild;
1778
1791
  o.firstChild;
1779
1792
  var i = o.nextSibling;
1780
1793
  i.firstChild;
@@ -1782,29 +1795,29 @@ const Lt = (t) => {
1782
1795
  return a.firstChild, b(o, () => JSON.stringify(t.state), null), b(i, e, null), b(a, () => JSON.stringify(r()), null), n;
1783
1796
  })();
1784
1797
  };
1785
- const Ge = { newline: 10, reset: 27 };
1786
- function Mo(t) {
1798
+ const Ve = { newline: 10, reset: 27 };
1799
+ function Bo(t) {
1787
1800
  if (!Number.isSafeInteger(t))
1788
1801
  throw new Error(`integer expected: ${t}`);
1789
1802
  }
1790
- function Lo(t) {
1803
+ function Oo(t) {
1791
1804
  if (!Number.isSafeInteger(t) || t < 1 || t > 40)
1792
1805
  throw new Error(`Invalid version=${t}. Expected number [1..40]`);
1793
1806
  }
1794
- function Pe(t, e) {
1807
+ function Te(t, e) {
1795
1808
  return t.toString(2).padStart(e, "0");
1796
1809
  }
1797
- function fr(t, e) {
1810
+ function dr(t, e) {
1798
1811
  const r = t % e;
1799
1812
  return r >= 0 ? r : e + r;
1800
1813
  }
1801
1814
  function ue(t, e) {
1802
1815
  return new Array(t).fill(e);
1803
1816
  }
1804
- function Et(t) {
1817
+ function $t(t) {
1805
1818
  return t = t - (t >>> 1 & 1431655765), t = (t & 858993459) + (t >>> 2 & 858993459), (t + (t >>> 4) & 252645135) * 16843009 >>> 24;
1806
1819
  }
1807
- function hr(t) {
1820
+ function ur(t) {
1808
1821
  let e = 0, r = 0;
1809
1822
  for (const i of t)
1810
1823
  e = Math.max(e, i.length), r += i.length;
@@ -1815,7 +1828,7 @@ function hr(t) {
1815
1828
  i < a.length && (n[o++] = a[i]);
1816
1829
  return n;
1817
1830
  }
1818
- function Do() {
1831
+ function Io() {
1819
1832
  let t, e = 1 / 0;
1820
1833
  return {
1821
1834
  add(r, n) {
@@ -1825,7 +1838,7 @@ function Do() {
1825
1838
  score: () => e
1826
1839
  };
1827
1840
  }
1828
- function gr(t) {
1841
+ function fr(t) {
1829
1842
  return Object.freeze({
1830
1843
  has: (e) => t.includes(e),
1831
1844
  decode: (e) => {
@@ -1844,14 +1857,14 @@ function gr(t) {
1844
1857
  if (!Array.isArray(e) || e.length && typeof e[0] != "number")
1845
1858
  throw new Error("alphabet.encode input should be an array of numbers");
1846
1859
  return e.map((r) => {
1847
- if (Mo(r), r < 0 || r >= t.length)
1860
+ if (Bo(r), r < 0 || r >= t.length)
1848
1861
  throw new Error(`Digit index outside alphabet: ${r} (alphabet: ${t.length})`);
1849
1862
  return t[r];
1850
1863
  });
1851
1864
  }
1852
1865
  });
1853
1866
  }
1854
- function vr(t) {
1867
+ function hr(t) {
1855
1868
  if (t.length !== 32)
1856
1869
  throw new Error("expects 32 element matrix");
1857
1870
  const e = [1431655765, 858993459, 252645135, 16711935, 65535];
@@ -1864,26 +1877,26 @@ function vr(t) {
1864
1877
  }
1865
1878
  }
1866
1879
  }
1867
- const We = (t) => 1 << (t & 31) >>> 0, Re = (t, e) => e === 0 ? 0 : e === 32 ? 4294967295 : (1 << e) - 1 << t >>> 0;
1880
+ const ze = (t) => 1 << (t & 31) >>> 0, Ne = (t, e) => e === 0 ? 0 : e === 32 ? 4294967295 : (1 << e) - 1 << t >>> 0;
1868
1881
  class H {
1869
1882
  constructor(e, r) {
1870
1883
  // Two bitsets:
1871
1884
  // defined=0 -> undefined
1872
1885
  // defined=1,value=0 -> false
1873
1886
  // defined=1,value=1 -> true
1874
- ee(this, "defined");
1875
- ee(this, "value");
1876
- ee(this, "tailMask");
1877
- ee(this, "words");
1878
- ee(this, "fullWords");
1879
- ee(this, "height");
1880
- ee(this, "width");
1887
+ te(this, "defined");
1888
+ te(this, "value");
1889
+ te(this, "tailMask");
1890
+ te(this, "words");
1891
+ te(this, "fullWords");
1892
+ te(this, "height");
1893
+ te(this, "width");
1881
1894
  const { height: n, width: o } = H.size(e);
1882
1895
  if (!Number.isSafeInteger(n) || n <= 0)
1883
1896
  throw new Error(`Bitmap: invalid height=${n}, expected positive safe integer dimension`);
1884
1897
  if (!Number.isSafeInteger(o) || o <= 0)
1885
1898
  throw new Error(`Bitmap: invalid width=${o}, expected positive safe integer dimension`);
1886
- if (this.height = n, this.width = o, this.tailMask = Re(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) {
1899
+ 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) {
1887
1900
  if (r.length !== n)
1888
1901
  throw new Error(`Bitmap: data height mismatch: exp=${n} got=${r.length}`);
1889
1902
  for (let i = 0; i < n; i++) {
@@ -1907,7 +1920,7 @@ class H {
1907
1920
  }
1908
1921
  static fromString(e) {
1909
1922
  e = e.replace(/^\n+/g, "").replace(/\n+$/g, "");
1910
- const r = e.split(String.fromCharCode(Ge.newline)), n = r.length;
1923
+ const r = e.split(String.fromCharCode(Ve.newline)), n = r.length;
1911
1924
  let o;
1912
1925
  const i = [];
1913
1926
  for (const a of r) {
@@ -1943,7 +1956,7 @@ class H {
1943
1956
  throw new Error(`Bitmap: invalid x=${e.x}`);
1944
1957
  if (!Number.isSafeInteger(e.y))
1945
1958
  throw new Error(`Bitmap: invalid y=${e.y}`);
1946
- return e.x = fr(e.x, this.width), e.y = fr(e.y, this.height), e;
1959
+ return e.x = dr(e.x, this.width), e.y = dr(e.y, this.height), e;
1947
1960
  }
1948
1961
  /**
1949
1962
  * Return pixel bit index
@@ -1955,11 +1968,11 @@ class H {
1955
1968
  return { word: this.wordIndex(e, r), bit: e & 31 };
1956
1969
  }
1957
1970
  isDefined(e, r) {
1958
- const n = this.wordIndex(e, r), o = We(e);
1971
+ const n = this.wordIndex(e, r), o = ze(e);
1959
1972
  return (this.defined[n] & o) !== 0;
1960
1973
  }
1961
1974
  get(e, r) {
1962
- const n = this.wordIndex(e, r), o = We(e);
1975
+ const n = this.wordIndex(e, r), o = ze(e);
1963
1976
  return (this.value[n] & o) !== 0;
1964
1977
  }
1965
1978
  maskWord(e, r, n) {
@@ -1967,7 +1980,7 @@ class H {
1967
1980
  o[e] |= r, i[e] = i[e] & ~r | -n & r;
1968
1981
  }
1969
1982
  set(e, r, n) {
1970
- n !== void 0 && this.maskWord(this.wordIndex(e, r), We(e), n);
1983
+ n !== void 0 && this.maskWord(this.wordIndex(e, r), ze(e), n);
1971
1984
  }
1972
1985
  // word-span fill for constant values (fast path)
1973
1986
  fillRectConst(e, r, n, o, i) {
@@ -1977,14 +1990,14 @@ class H {
1977
1990
  for (let h = 0; h < o; h++) {
1978
1991
  const p = (r + h) * l;
1979
1992
  if (d === u) {
1980
- const m = Re(c, f - c + 1);
1993
+ const m = Ne(c, f - c + 1);
1981
1994
  this.maskWord(p + d, m, i);
1982
1995
  continue;
1983
1996
  }
1984
- this.maskWord(p + d, Re(c, 32 - c), i);
1997
+ this.maskWord(p + d, Ne(c, 32 - c), i);
1985
1998
  for (let m = d + 1; m < u; m++)
1986
1999
  s[p + m] = 4294967295, a[p + m] = i ? 4294967295 : 0;
1987
- this.maskWord(p + u, Re(0, f + 1), i);
2000
+ this.maskWord(p + u, Ne(0, f + 1), i);
1988
2001
  }
1989
2002
  }
1990
2003
  rectWords(e, r, n, o, i) {
@@ -2005,8 +2018,8 @@ class H {
2005
2018
  return this.rectWords(o, i, s, a, (u, c, f, h, p) => {
2006
2019
  let m = 0, g = d[u];
2007
2020
  for (let C = 0; C < p; C++) {
2008
- const x = We(c + C), y = n({ x: f + C, y: h }, (g & x) !== 0);
2009
- y !== void 0 && (m |= x, g = g & ~x | -y & x);
2021
+ const x = ze(c + C), w = n({ x: f + C, y: h }, (g & x) !== 0);
2022
+ w !== void 0 && (m |= x, g = g & ~x | -w & x);
2010
2023
  }
2011
2024
  l[u] |= m, d[u] = g;
2012
2025
  }), this;
@@ -2017,7 +2030,7 @@ class H {
2017
2030
  return this.rectWords(o, i, s, a, (d, u, c, f, h) => {
2018
2031
  const p = l[d];
2019
2032
  for (let m = 0; m < h; m++) {
2020
- const g = We(u + m);
2033
+ const g = ze(u + m);
2021
2034
  n({ x: c + m, y: f }, (p & g) !== 0);
2022
2035
  }
2023
2036
  }), this;
@@ -2045,8 +2058,8 @@ class H {
2045
2058
  for (let c = 0; c < i; c++) {
2046
2059
  const f = c * d;
2047
2060
  for (let h = 0; h < a; ) {
2048
- const p = n + h, { word: m, bit: g } = this.bitIndex(p, o + c), { word: C, bit: x } = r.bitIndex(h, c), y = Math.min(32 - g, a - h), R = u[C], E = x && C + 1 < f + d ? u[C + 1] : 0, ve = x ? (R >>> x | E << 32 - x) >>> 0 : R, fe = Re(g, y), Ve = (ve & Re(0, y)) << g >>> 0;
2049
- l[m] |= fe, s[m] = s[m] & ~fe | Ve, h += y;
2061
+ const p = n + h, { word: m, bit: g } = this.bitIndex(p, o + c), { word: C, bit: x } = r.bitIndex(h, c), w = Math.min(32 - g, a - h), B = u[C], A = x && C + 1 < f + d ? u[C + 1] : 0, ve = x ? (B >>> x | A << 32 - x) >>> 0 : B, fe = Ne(g, w), je = (ve & Ne(0, w)) << g >>> 0;
2062
+ l[m] |= fe, s[m] = s[m] & ~fe | je, h += w;
2050
2063
  }
2051
2064
  }
2052
2065
  return this;
@@ -2068,13 +2081,13 @@ class H {
2068
2081
  const C = this.wordIndex(32 * p, h + g);
2069
2082
  c[g] = n[C], f[g] = o[C];
2070
2083
  }
2071
- c.fill(0, m), f.fill(0, m), vr(c), vr(f);
2084
+ c.fill(0, m), f.fill(0, m), hr(c), hr(f);
2072
2085
  for (let g = 0; g < 32; g++) {
2073
2086
  const C = p * 32 + g;
2074
2087
  if (C >= r)
2075
2088
  break;
2076
- const x = a.wordIndex(h, C), y = h >>> 5 === s - 1 ? u : 4294967295;
2077
- l[x] = c[g] & y, d[x] = f[g] & y;
2089
+ const x = a.wordIndex(h, C), w = h >>> 5 === s - 1 ? u : 4294967295;
2090
+ l[x] = c[g] & w, d[x] = f[g] & w;
2078
2091
  }
2079
2092
  }
2080
2093
  return a;
@@ -2158,8 +2171,8 @@ class H {
2158
2171
  for (let s = 0; s < e; s++) {
2159
2172
  const l = s * n;
2160
2173
  for (let d = 0; d < o; d++)
2161
- a += Et(this.value[l + d]);
2162
- n !== o && (a += Et(this.value[l + o] & i));
2174
+ a += $t(this.value[l + d]);
2175
+ n !== o && (a += $t(this.value[l + o] & i));
2163
2176
  }
2164
2177
  return a;
2165
2178
  }
@@ -2167,18 +2180,18 @@ class H {
2167
2180
  const { height: r, width: n, words: o } = this;
2168
2181
  if (n < 2 || !Number.isSafeInteger(e) || e < 0 || e + 1 >= r)
2169
2182
  return 0;
2170
- const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (n & 31) === 0 ? 2147483647 : Re(0, n - 1 & 31);
2183
+ const i = this.wordIndex(0, e), a = this.wordIndex(0, e + 1), l = (n & 31) === 0 ? 2147483647 : Ne(0, n - 1 & 31);
2171
2184
  let d = 0;
2172
2185
  for (let u = 0; u < o; u++) {
2173
2186
  const c = this.value[i + u], f = this.value[a + u], h = ~(c ^ f) >>> 0, p = u + 1 < o ? this.value[i + u + 1] >>> 0 : 0, m = ~(c ^ (c >>> 1 | (p & 1) << 31) >>> 0) >>> 0, g = u + 1 < o ? this.value[a + u + 1] >>> 0 : 0, C = ~(f ^ (f >>> 1 | (g & 1) << 31) >>> 0) >>> 0;
2174
2187
  let x = (h & m & C) >>> 0;
2175
- u === o - 1 && (x &= l), d += Et(x);
2188
+ u === o - 1 && (x &= l), d += $t(x);
2176
2189
  }
2177
2190
  return d;
2178
2191
  }
2179
2192
  // Export
2180
2193
  toString() {
2181
- const e = String.fromCharCode(Ge.newline);
2194
+ const e = String.fromCharCode(Ve.newline);
2182
2195
  let r = "";
2183
2196
  for (let n = 0; n < this.height; n++) {
2184
2197
  let o = "";
@@ -2207,12 +2220,12 @@ class H {
2207
2220
  const a = this.get(i, o), s = o + 1 >= e ? !0 : this.get(i, o + 1);
2208
2221
  !a && !s ? n += "█" : !a && s ? n += "▀" : a && !s ? n += "▄" : a && s && (n += " ");
2209
2222
  }
2210
- n += String.fromCharCode(Ge.newline);
2223
+ n += String.fromCharCode(Ve.newline);
2211
2224
  }
2212
2225
  return n;
2213
2226
  }
2214
2227
  toTerm() {
2215
- const e = String.fromCharCode(Ge.reset), r = e + "[0m", n = e + "[1;47m " + r, o = e + "[40m " + r, i = String.fromCharCode(Ge.newline);
2228
+ const e = String.fromCharCode(Ve.reset), r = e + "[0m", n = e + "[1;47m " + r, o = e + "[40m " + r, i = String.fromCharCode(Ve.newline);
2216
2229
  let a = "";
2217
2230
  for (let s = 0; s < this.height; s++) {
2218
2231
  for (let l = 0; l < this.width; l++) {
@@ -2284,7 +2297,7 @@ class H {
2284
2297
  return { height: r, width: n, data: o };
2285
2298
  }
2286
2299
  }
2287
- const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]), br = /* @__PURE__ */ Object.freeze(["numeric", "alphanumeric", "byte", "kanji", "eci"]), jo = [
2300
+ const gr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]), vr = /* @__PURE__ */ Object.freeze(["numeric", "alphanumeric", "byte", "kanji", "eci"]), Mo = [
2288
2301
  // 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
2289
2302
  26,
2290
2303
  44,
@@ -2327,19 +2340,19 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2327
2340
  3362,
2328
2341
  3532,
2329
2342
  3706
2330
- ], Fo = {
2343
+ ], Lo = {
2331
2344
  // 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
2332
2345
  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],
2333
2346
  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],
2334
2347
  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],
2335
2348
  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]
2336
- }, Vo = {
2349
+ }, Do = {
2337
2350
  // 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
2338
2351
  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],
2339
2352
  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],
2340
2353
  quartile: [1, 1, 2, 2, 4, 4, 6, 6, 8, 8, 8, 10, 12, 16, 12, 17, 16, 18, 21, 20, 23, 23, 25, 27, 29, 34, 34, 35, 38, 40, 43, 45, 48, 51, 53, 56, 59, 62, 65, 68],
2341
2354
  high: [1, 1, 2, 4, 4, 4, 5, 6, 8, 8, 11, 11, 16, 16, 18, 16, 19, 21, 25, 25, 25, 34, 30, 32, 35, 37, 40, 42, 45, 48, 51, 54, 57, 60, 63, 66, 70, 74, 77, 81]
2342
- }, G = /* @__PURE__ */ Object.freeze({
2355
+ }, W = /* @__PURE__ */ Object.freeze({
2343
2356
  size: /* @__PURE__ */ Object.freeze({
2344
2357
  encode: (t) => 21 + 4 * (t - 1),
2345
2358
  // ver1 = 21, ver40 = 177 modules per side
@@ -2352,7 +2365,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2352
2365
  alignmentPatterns(t) {
2353
2366
  if (t === 1)
2354
2367
  return [];
2355
- const e = 6, r = G.size.encode(t) - e - 1, n = r - e, o = Math.ceil(n / 28);
2368
+ const e = 6, r = W.size.encode(t) - e - 1, n = r - e, o = Math.ceil(n / 28);
2356
2369
  let i = Math.floor(n / o);
2357
2370
  i % 2 ? i += 1 : n % o * 2 >= o && (i += 2);
2358
2371
  const a = [e];
@@ -2371,11 +2384,11 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2371
2384
  formatMask: 21522,
2372
2385
  // ISO/IEC 18004:2024 §7.9.1 / Annex C.2: append the 10-bit BCH remainder for the 5 data bits, then apply the fixed QR format mask.
2373
2386
  formatBits(t, e) {
2374
- const r = G.ECCode[t] << 3 | e;
2387
+ const r = W.ECCode[t] << 3 | e;
2375
2388
  let n = r;
2376
2389
  for (let o = 0; o < 10; o++)
2377
2390
  n = n << 1 ^ (n >> 9) * 1335;
2378
- return (r << 10 | n) ^ G.formatMask;
2391
+ return (r << 10 | n) ^ W.formatMask;
2379
2392
  },
2380
2393
  // ISO/IEC 18004:2024 §7.10 / Annex D.2: append the 12-bit Golay remainder to the 6-bit version word; version information is not masked.
2381
2394
  versionBits(t) {
@@ -2387,9 +2400,9 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2387
2400
  // ISO/IEC 18004:2024 §7.3.3 / §7.3.4 / §7.4.5 Table 5: character-set membership and value codecs for numeric and alphanumeric QR modes.
2388
2401
  alphabet: /* @__PURE__ */ Object.freeze({
2389
2402
  // ISO/IEC 18004:2024 §7.3.3 / §7.4.4: numeric-mode digits map directly to values 0..9 before 3-digit grouping.
2390
- numeric: gr("0123456789"),
2403
+ numeric: fr("0123456789"),
2391
2404
  // ISO/IEC 18004:2024 §7.3.4 / §7.4.5 Table 5: 45-character alphanumeric-mode value order used for 11-bit pair packing. Keep the legacy `alphanumerc` key name in sync with existing callers.
2392
- alphanumerc: gr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")
2405
+ alphanumerc: fr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:")
2393
2406
  }),
2394
2407
  // as Record<EncodingType, ReturnType<typeof alphabet>>,
2395
2408
  // ISO/IEC 18004:2024 Table 3 gives QR character-count widths for data modes; ECI headers instead carry only the mode indicator plus the designator from §7.4.3.
@@ -2400,7 +2413,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2400
2413
  byte: [8, 16, 16],
2401
2414
  kanji: [8, 10, 12],
2402
2415
  eci: [0, 0, 0]
2403
- }[e][G.sizeType(t)];
2416
+ }[e][W.sizeType(t)];
2404
2417
  },
2405
2418
  // ISO/IEC 18004:2024 §7.4.2 Table 2: 4-bit QR mode indicators for the segment types this library models.
2406
2419
  modeBits: /* @__PURE__ */ Object.freeze({
@@ -2412,7 +2425,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2412
2425
  }),
2413
2426
  // 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.
2414
2427
  capacity(t, e) {
2415
- const r = jo[t - 1], n = Fo[e][t - 1], o = Vo[e][t - 1], i = Math.floor(r / o) - n, a = o - r % o;
2428
+ const r = Mo[t - 1], n = Lo[e][t - 1], o = Do[e][t - 1], i = Math.floor(r / o) - n, a = o - r % o;
2416
2429
  return {
2417
2430
  words: n,
2418
2431
  numBlocks: o,
@@ -2422,7 +2435,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2422
2435
  total: (n + i) * o + o - a
2423
2436
  };
2424
2437
  }
2425
- }), Ut = /* @__PURE__ */ Object.freeze([
2438
+ }), zt = /* @__PURE__ */ Object.freeze([
2426
2439
  (t, e) => (t + e) % 2 == 0,
2427
2440
  (t, e) => e % 2 == 0,
2428
2441
  (t, e) => t % 3 == 0,
@@ -2431,7 +2444,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2431
2444
  (t, e) => t * e % 2 + t * e % 3 == 0,
2432
2445
  (t, e) => (t * e % 2 + t * e % 3) % 2 == 0,
2433
2446
  (t, e) => ((t + e) % 2 + t * e % 3) % 2 == 0
2434
- ]), w = {
2447
+ ]), y = {
2435
2448
  tables: ((t) => {
2436
2449
  const e = ue(256, 0), r = ue(256, 0);
2437
2450
  for (let n = 0, o = 1; n < 256; n++)
@@ -2440,31 +2453,31 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2440
2453
  })(285),
2441
2454
  // Raw α^i lookup from the precomputed field table; callers are expected
2442
2455
  // to reduce / validate exponents before indexing it.
2443
- exp: (t) => w.tables.exp[t],
2456
+ exp: (t) => y.tables.exp[t],
2444
2457
  // log(0) is undefined in GF(2^8); `% 255` also folds the wrapped table
2445
2458
  // entry for α^255 = 1 back to exponent 0.
2446
2459
  log(t) {
2447
2460
  if (t === 0)
2448
2461
  throw new Error(`GF.log: invalid arg=${t}`);
2449
- return w.tables.log[t] % 255;
2462
+ return y.tables.log[t] % 255;
2450
2463
  },
2451
2464
  // Zero has no logarithm in GF(2^8), so it must short-circuit here; all
2452
2465
  // other products are α^(log(x) + log(y) mod 255) in the reviewed field.
2453
2466
  mul(t, e) {
2454
- return t === 0 || e === 0 ? 0 : w.tables.exp[(w.tables.log[t] + w.tables.log[e]) % 255];
2467
+ return t === 0 || e === 0 ? 0 : y.tables.exp[(y.tables.log[t] + y.tables.log[e]) % 255];
2455
2468
  },
2456
2469
  // In characteristic 2 fields, addition and subtraction are the same
2457
2470
  // bitwise XOR operation used by the QR Reed-Solomon arithmetic.
2458
2471
  add: (t, e) => t ^ e,
2459
2472
  // Raw nonzero field power helper. Current QR use is GF.pow(2, i) for the
2460
2473
  // Annex A generator factors; x = 0 or negative exponents are not validated.
2461
- pow: (t, e) => w.tables.exp[w.tables.log[t] * e % 255],
2474
+ pow: (t, e) => y.tables.exp[y.tables.log[t] * e % 255],
2462
2475
  // Multiplicative inverse for nonzero field elements. Current callers only
2463
2476
  // use it on values already known to be nonzero; 0 has no inverse in GF(2^8).
2464
2477
  inv(t) {
2465
2478
  if (t === 0)
2466
2479
  throw new Error(`GF.inverse: invalid arg=${t}`);
2467
- return w.tables.exp[255 - w.tables.log[t]];
2480
+ return y.tables.exp[255 - y.tables.log[t]];
2468
2481
  },
2469
2482
  // Canonicalize coefficient arrays by trimming leading zero coefficients
2470
2483
  // while preserving `[0]` as the zero polynomial; already-normalized inputs
@@ -2487,14 +2500,14 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2487
2500
  if (e == 0)
2488
2501
  return [0];
2489
2502
  let r = ue(t + 1, 0);
2490
- return r[0] = e, w.polynomial(r);
2503
+ return r[0] = e, y.polynomial(r);
2491
2504
  },
2492
2505
  // Canonical polynomials keep the highest-order coefficient first and use
2493
2506
  // `[0]` for zero, so degree is just `length - 1`.
2494
2507
  degree: (t) => t.length - 1,
2495
2508
  // Read the coefficient for x^degree from the descending-power array layout.
2496
2509
  // Canonical arrays make this a direct index; out-of-range degrees return `undefined`.
2497
- coefficient: (t, e) => t[w.degree(t) - e],
2510
+ coefficient: (t, e) => t[y.degree(t) - e],
2498
2511
  // Multiply descending-power coefficient arrays by convolution over GF(2^8).
2499
2512
  // Zero short-circuits here before the log-based field multiply is consulted.
2500
2513
  mulPoly(t, e) {
@@ -2503,8 +2516,8 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2503
2516
  const r = ue(t.length + e.length - 1, 0);
2504
2517
  for (let n = 0; n < t.length; n++)
2505
2518
  for (let o = 0; o < e.length; o++)
2506
- r[n + o] = w.add(r[n + o], w.mul(t[n], e[o]));
2507
- return w.polynomial(r);
2519
+ r[n + o] = y.add(r[n + o], y.mul(t[n], e[o]));
2520
+ return y.polynomial(r);
2508
2521
  },
2509
2522
  // Scale every coefficient by the same field element in descending-power order.
2510
2523
  // Scalar 0 canonicalizes to `[0]`, and scalar 1 reuses the original array.
@@ -2515,8 +2528,8 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2515
2528
  return t;
2516
2529
  const r = ue(t.length, 0);
2517
2530
  for (let n = 0; n < t.length; n++)
2518
- r[n] = w.mul(t[n], e);
2519
- return w.polynomial(r);
2531
+ r[n] = y.mul(t[n], e);
2532
+ return y.polynomial(r);
2520
2533
  },
2521
2534
  // Multiply a polynomial by c*x^degree in descending-power coefficient form.
2522
2535
  // This scales existing coefficients, then appends trailing zero coefficients.
@@ -2527,8 +2540,8 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2527
2540
  return [0];
2528
2541
  const n = ue(t.length + e, 0);
2529
2542
  for (let o = 0; o < t.length; o++)
2530
- n[o] = w.mul(t[o], r);
2531
- return w.polynomial(n);
2543
+ n[o] = y.mul(t[o], r);
2544
+ return y.polynomial(n);
2532
2545
  },
2533
2546
  // Add descending-power coefficient arrays with GF(2^8) XOR on the aligned
2534
2547
  // suffix; `[0]` short-circuits by returning the other array unchanged.
@@ -2543,8 +2556,8 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2543
2556
  for (let s = 0; s < a.length; s++)
2544
2557
  o[s] = a[s];
2545
2558
  for (let s = i; s < n.length; s++)
2546
- o[s] = w.add(r[s - i], n[s]);
2547
- return w.polynomial(o);
2559
+ o[s] = y.add(r[s - i], n[s]);
2560
+ return y.polynomial(o);
2548
2561
  },
2549
2562
  // Synthetic division for monic divisors in descending-power coefficient form.
2550
2563
  // Callers are expected to append `divisor.length - 1` zero coefficients first.
@@ -2554,7 +2567,7 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2554
2567
  const o = r[n];
2555
2568
  if (o !== 0)
2556
2569
  for (let i = 1; i < e.length; i++)
2557
- e[i] !== 0 && (r[n + i] = w.add(r[n + i], w.mul(e[i], o)));
2570
+ e[i] !== 0 && (r[n + i] = y.add(r[n + i], y.mul(e[i], o)));
2558
2571
  }
2559
2572
  return r.slice(t.length - e.length + 1, r.length);
2560
2573
  },
@@ -2563,84 +2576,84 @@ const pr = /* @__PURE__ */ Object.freeze(["low", "medium", "quartile", "high"]),
2563
2576
  divisorPoly(t) {
2564
2577
  let e = [1];
2565
2578
  for (let r = 0; r < t; r++)
2566
- e = w.mulPoly(e, [1, w.pow(2, r)]);
2579
+ e = y.mulPoly(e, [1, y.pow(2, r)]);
2567
2580
  return e;
2568
2581
  },
2569
2582
  // Evaluate a descending-power coefficient array at `a` with Horner's rule.
2570
2583
  // The `a == 0` fast-path returns the x^0 coefficient directly.
2571
2584
  evalPoly(t, e) {
2572
2585
  if (e == 0)
2573
- return w.coefficient(t, 0);
2586
+ return y.coefficient(t, 0);
2574
2587
  let r = t[0];
2575
2588
  for (let n = 1; n < t.length; n++)
2576
- r = w.add(w.mul(e, r), t[n]);
2589
+ r = y.add(y.mul(e, r), t[n]);
2577
2590
  return r;
2578
2591
  },
2579
2592
  // TODO: cleanup
2580
2593
  // Extended Euclidean RS step: derive the locator/evaluator pair from x^R
2581
2594
  // and the syndrome polynomial, then normalize sigma(0) to 1.
2582
2595
  euclidian(t, e, r) {
2583
- w.degree(t) < w.degree(e) && ([t, e] = [e, t]);
2596
+ y.degree(t) < y.degree(e) && ([t, e] = [e, t]);
2584
2597
  let n = t, o = e, i = [0], a = [1];
2585
- for (; 2 * w.degree(o) >= r; ) {
2598
+ for (; 2 * y.degree(o) >= r; ) {
2586
2599
  let d = n, u = i;
2587
2600
  if (n = o, i = a, n[0] === 0)
2588
2601
  throw new Error("rLast[0] === 0");
2589
2602
  o = d;
2590
2603
  let c = [0];
2591
- const f = w.inv(n[0]);
2592
- for (; w.degree(o) >= w.degree(n) && o[0] !== 0; ) {
2593
- const h = w.degree(o) - w.degree(n), p = w.mul(o[0], f);
2594
- c = w.addPoly(c, w.monomial(h, p)), o = w.addPoly(o, w.mulPolyMonomial(n, h, p));
2604
+ const f = y.inv(n[0]);
2605
+ for (; y.degree(o) >= y.degree(n) && o[0] !== 0; ) {
2606
+ const h = y.degree(o) - y.degree(n), p = y.mul(o[0], f);
2607
+ c = y.addPoly(c, y.monomial(h, p)), o = y.addPoly(o, y.mulPolyMonomial(n, h, p));
2595
2608
  }
2596
- if (c = w.mulPoly(c, i), a = w.addPoly(c, u), w.degree(o) >= w.degree(n))
2609
+ if (c = y.mulPoly(c, i), a = y.addPoly(c, u), y.degree(o) >= y.degree(n))
2597
2610
  throw new Error(`Division failed r: ${o}, rLast: ${n}`);
2598
2611
  }
2599
- const s = w.coefficient(a, 0);
2612
+ const s = y.coefficient(a, 0);
2600
2613
  if (s == 0)
2601
2614
  throw new Error("sigmaTilde(0) was zero");
2602
- const l = w.inv(s);
2603
- return [w.mulPolyScalar(a, l), w.mulPolyScalar(o, l)];
2615
+ const l = y.inv(s);
2616
+ return [y.mulPolyScalar(a, l), y.mulPolyScalar(o, l)];
2604
2617
  }
2605
2618
  };
2606
- function zo(t) {
2619
+ function jo(t) {
2607
2620
  return {
2608
2621
  encode(e) {
2609
- const r = w.divisorPoly(t), n = Array.from(e);
2610
- return n.push(...r.slice(0, -1).fill(0)), Uint8Array.from(w.remainderPoly(n, r));
2622
+ const r = y.divisorPoly(t), n = Array.from(e);
2623
+ return n.push(...r.slice(0, -1).fill(0)), Uint8Array.from(y.remainderPoly(n, r));
2611
2624
  },
2612
2625
  decode(e) {
2613
- const r = e.slice(), n = w.polynomial(Array.from(e));
2626
+ const r = e.slice(), n = y.polynomial(Array.from(e));
2614
2627
  let o = ue(t, 0), i = !1;
2615
2628
  for (let c = 0; c < t; c++) {
2616
- const f = w.evalPoly(n, w.exp(c));
2629
+ const f = y.evalPoly(n, y.exp(c));
2617
2630
  o[o.length - 1 - c] = f, f !== 0 && (i = !0);
2618
2631
  }
2619
2632
  if (!i)
2620
2633
  return r;
2621
- o = w.polynomial(o);
2622
- const a = w.monomial(t, 1), [s, l] = w.euclidian(a, o, t), d = ue(w.degree(s), 0);
2634
+ o = y.polynomial(o);
2635
+ const a = y.monomial(t, 1), [s, l] = y.euclidian(a, o, t), d = ue(y.degree(s), 0);
2623
2636
  let u = 0;
2624
2637
  for (let c = 1; c < 256 && u < d.length; c++)
2625
- w.evalPoly(s, c) === 0 && (d[u++] = w.inv(c));
2638
+ y.evalPoly(s, c) === 0 && (d[u++] = y.inv(c));
2626
2639
  if (u !== d.length)
2627
2640
  throw new Error("RS.decode: invalid errors number");
2628
2641
  for (let c = 0; c < d.length; c++) {
2629
- const f = r.length - 1 - w.log(d[c]);
2642
+ const f = r.length - 1 - y.log(d[c]);
2630
2643
  if (f < 0)
2631
2644
  throw new Error("RS.decode: invalid error location");
2632
- const h = w.inv(d[c]);
2645
+ const h = y.inv(d[c]);
2633
2646
  let p = 1;
2634
2647
  for (let m = 0; m < d.length; m++)
2635
- c !== m && (p = w.mul(p, w.add(1, w.mul(d[m], h))));
2636
- r[f] = w.add(r[f], w.mul(w.evalPoly(l, h), w.inv(p)));
2648
+ c !== m && (p = y.mul(p, y.add(1, y.mul(d[m], h))));
2649
+ r[f] = y.add(r[f], y.mul(y.evalPoly(l, h), y.inv(p)));
2637
2650
  }
2638
2651
  return r;
2639
2652
  }
2640
2653
  };
2641
2654
  }
2642
- function Uo(t, e) {
2643
- const { words: r, shortBlocks: n, numBlocks: o, blockLen: i, total: a } = G.capacity(t, e), s = zo(r);
2655
+ function Fo(t, e) {
2656
+ const { words: r, shortBlocks: n, numBlocks: o, blockLen: i, total: a } = W.capacity(t, e), s = jo(r);
2644
2657
  return {
2645
2658
  encode(l) {
2646
2659
  const d = [], u = [];
@@ -2648,7 +2661,7 @@ function Uo(t, e) {
2648
2661
  const m = p < n, g = i + (m ? 0 : 1);
2649
2662
  d.push(l.subarray(0, g)), u.push(s.encode(l.subarray(0, g))), l = l.subarray(g);
2650
2663
  }
2651
- const c = hr(d), f = hr(u), h = new Uint8Array(c.length + f.length);
2664
+ const c = ur(d), f = ur(u), h = new Uint8Array(c.length + f.length);
2652
2665
  return h.set(c), h.set(f, c.length), h;
2653
2666
  },
2654
2667
  decode(l) {
@@ -2677,18 +2690,18 @@ function Uo(t, e) {
2677
2690
  }
2678
2691
  };
2679
2692
  }
2680
- function Go(t, e, r, n = !1) {
2681
- const o = G.size.encode(t);
2693
+ function Vo(t, e, r, n = !1) {
2694
+ const o = W.size.encode(t);
2682
2695
  let i = new H(o + 2);
2683
2696
  const a = new H(3).rect(0, 3, !0).border(1, !1).border(1, !0).border(1, !1);
2684
2697
  i = i.embed(0, a).embed({ x: -a.width, y: 0 }, a).embed({ x: 0, y: -a.height }, a), i = i.rectSlice(1, o);
2685
- const s = new H(1).rect(0, 1, !0).border(1, !1).border(1, !0), l = G.alignmentPatterns(t);
2698
+ const s = new H(1).rect(0, 1, !0).border(1, !1).border(1, !0), l = W.alignmentPatterns(t);
2686
2699
  for (const d of l)
2687
2700
  for (const u of l)
2688
2701
  i.isDefined(u, d) || i.embed({ x: u - 2, y: d - 2 }, s);
2689
2702
  i = i.hLine({ x: 0, y: 6 }, 1 / 0, ({ x: d }) => i.isDefined(d, 6) ? void 0 : d % 2 == 0).vLine({ x: 6, y: 0 }, 1 / 0, ({ y: d }) => i.isDefined(6, d) ? void 0 : d % 2 == 0);
2690
2703
  {
2691
- const d = G.formatBits(e, r), u = (c) => !n && (d >> c & 1) == 1;
2704
+ const d = W.formatBits(e, r), u = (c) => !n && (d >> c & 1) == 1;
2692
2705
  for (let c = 0; c < 6; c++)
2693
2706
  i.set(8, c, u(c));
2694
2707
  for (let c = 6; c < 8; c++)
@@ -2704,7 +2717,7 @@ function Go(t, e, r, n = !1) {
2704
2717
  i.set(8, o - 8, !n);
2705
2718
  }
2706
2719
  if (t >= 7) {
2707
- const d = G.versionBits(t);
2720
+ const d = W.versionBits(t);
2708
2721
  for (let u = 0; u < 18; u += 1) {
2709
2722
  const c = !n && (d >> u & 1) == 1, f = Math.floor(u / 3), h = u % 3 + o - 8 - 3;
2710
2723
  i.set(h, f, c), i.set(f, h, c);
@@ -2712,8 +2725,8 @@ function Go(t, e, r, n = !1) {
2712
2725
  }
2713
2726
  return i;
2714
2727
  }
2715
- function Wo(t, e, r) {
2716
- const n = t, o = n.height, i = Ut[e];
2728
+ function zo(t, e, r) {
2729
+ const n = t, o = n.height, i = zt[e];
2717
2730
  let a = -1, s = o - 1;
2718
2731
  for (let l = o - 1; l > 0; l -= 2) {
2719
2732
  for (l == 6 && (l = 5); ; s += a) {
@@ -2727,37 +2740,37 @@ function Wo(t, e, r) {
2727
2740
  a = -a;
2728
2741
  }
2729
2742
  }
2730
- function Ko(t) {
2743
+ function Uo(t) {
2731
2744
  let e = "numeric";
2732
2745
  for (let r of t)
2733
- if (!G.alphabet.numeric.has(r) && (e = "alphanumeric", !G.alphabet.alphanumerc.has(r)))
2746
+ if (!W.alphabet.numeric.has(r) && (e = "alphanumeric", !W.alphabet.alphanumerc.has(r)))
2734
2747
  return "byte";
2735
2748
  return e;
2736
2749
  }
2737
- function Ho(t) {
2750
+ function Go(t) {
2738
2751
  if (typeof t != "string")
2739
2752
  throw new Error(`utf8ToBytes expected string, got ${typeof t}`);
2740
2753
  return new Uint8Array(new TextEncoder().encode(t));
2741
2754
  }
2742
- function mr(t, e, r, n, o = Ho) {
2755
+ function pr(t, e, r, n, o = Go) {
2743
2756
  let i = "", a = r.length;
2744
2757
  if (n === "numeric") {
2745
- const f = G.alphabet.numeric.decode(r.split("")), h = f.length;
2758
+ const f = W.alphabet.numeric.decode(r.split("")), h = f.length;
2746
2759
  for (let p = 0; p < h - 2; p += 3)
2747
- i += Pe(f[p] * 100 + f[p + 1] * 10 + f[p + 2], 10);
2748
- h % 3 === 1 ? i += Pe(f[h - 1], 4) : h % 3 === 2 && (i += Pe(f[h - 2] * 10 + f[h - 1], 7));
2760
+ i += Te(f[p] * 100 + f[p + 1] * 10 + f[p + 2], 10);
2761
+ h % 3 === 1 ? i += Te(f[h - 1], 4) : h % 3 === 2 && (i += Te(f[h - 2] * 10 + f[h - 1], 7));
2749
2762
  } else if (n === "alphanumeric") {
2750
- const f = G.alphabet.alphanumerc.decode(r.split("")), h = f.length;
2763
+ const f = W.alphabet.alphanumerc.decode(r.split("")), h = f.length;
2751
2764
  for (let p = 0; p < h - 1; p += 2)
2752
- i += Pe(f[p] * 45 + f[p + 1], 11);
2753
- h % 2 == 1 && (i += Pe(f[h - 1], 6));
2765
+ i += Te(f[p] * 45 + f[p + 1], 11);
2766
+ h % 2 == 1 && (i += Te(f[h - 1], 6));
2754
2767
  } else if (n === "byte") {
2755
2768
  const f = o(r);
2756
- a = f.length, i = Array.from(f).map((h) => Pe(h, 8)).join("");
2769
+ a = f.length, i = Array.from(f).map((h) => Te(h, 8)).join("");
2757
2770
  } else
2758
2771
  throw new Error("encode: unsupported type");
2759
- const { capacity: s } = G.capacity(t, e), l = Pe(a, G.lengthBits(t, n));
2760
- let d = G.modeBits[n] + l + i;
2772
+ const { capacity: s } = W.capacity(t, e), l = Te(a, W.lengthBits(t, n));
2773
+ let d = W.modeBits[n] + l + i;
2761
2774
  if (d.length > s)
2762
2775
  throw new Error("Capacity overflow");
2763
2776
  d += "0".repeat(Math.min(4, Math.max(0, s - d.length))), d.length % 8 && (d += "0".repeat(8 - d.length % 8));
@@ -2765,24 +2778,24 @@ function mr(t, e, r, n, o = Ho) {
2765
2778
  for (let f = 0; d.length !== s; f++)
2766
2779
  d += u[f % u.length];
2767
2780
  const c = Uint8Array.from(d.match(/(.{8})/g).map((f) => +`0b${f}`));
2768
- return Uo(t, e).encode(c);
2781
+ return Fo(t, e).encode(c);
2769
2782
  }
2770
- function wr(t, e, r, n, o = !1) {
2771
- const i = Go(t, e, n, o);
2783
+ function br(t, e, r, n, o = !1) {
2784
+ const i = Vo(t, e, n, o);
2772
2785
  let a = 0;
2773
2786
  const s = 8 * r.length;
2774
- if (Wo(i, n, (l, d, u) => {
2787
+ if (zo(i, n, (l, d, u) => {
2775
2788
  let c = !1;
2776
2789
  a < s && (c = (r[a >>> 3] >> (7 - a & 7) & 1) !== 0, a++), i.set(l, d, c !== u);
2777
2790
  }), a !== s)
2778
2791
  throw new Error("QR: bytes left after draw");
2779
2792
  return i;
2780
2793
  }
2781
- const rn = (t) => {
2794
+ const en = (t) => {
2782
2795
  const e = t.map((r) => r ? "1" : "0").join("");
2783
2796
  return { len: e.length, n: +`0b${e}` };
2784
- }, nn = [!0, !1, !0, !0, !0, !1, !0], on = [!1, !1, !1, !1], st = rn([...nn, ...on]), yr = rn([...on, ...nn]);
2785
- function qo(t) {
2797
+ }, tn = [!0, !1, !0, !0, !0, !1, !0], rn = [!1, !1, !1, !1], nt = en([...tn, ...rn]), mr = en([...rn, ...tn]);
2798
+ function Wo(t) {
2786
2799
  const e = t, { width: r, height: n } = e, o = e.transpose();
2787
2800
  let i = 0;
2788
2801
  for (let f = 0; f < n; f++)
@@ -2798,56 +2811,56 @@ function qo(t) {
2798
2811
  a += 3 * e.countBoxes2x2(f);
2799
2812
  let s = 0;
2800
2813
  for (let f = 0; f < n; f++)
2801
- s += 40 * e.countPatternInRow(f, st.len, st.n, yr.n);
2814
+ s += 40 * e.countPatternInRow(f, nt.len, nt.n, mr.n);
2802
2815
  for (let f = 0; f < r; f++)
2803
- s += 40 * o.countPatternInRow(f, st.len, st.n, yr.n);
2816
+ s += 40 * o.countPatternInRow(f, nt.len, nt.n, mr.n);
2804
2817
  const l = n * r, d = e.popcnt(), c = 10 * Math.ceil(Math.max(0, Math.abs(d * 100 - l * 50) - l * 5) / (l * 5));
2805
2818
  return i + a + s + c;
2806
2819
  }
2807
- function Xo(t, e, r, n) {
2820
+ function Ko(t, e, r, n) {
2808
2821
  if (n === void 0) {
2809
- const o = Do();
2810
- for (let i = 0; i < Ut.length; i++)
2811
- o.add(qo(wr(t, e, r, i, !0)), i);
2822
+ const o = Io();
2823
+ for (let i = 0; i < zt.length; i++)
2824
+ o.add(Wo(br(t, e, r, i, !0)), i);
2812
2825
  n = o.get();
2813
2826
  }
2814
2827
  if (n === void 0)
2815
2828
  throw new Error("Cannot find mask");
2816
- return wr(t, e, r, n);
2829
+ return br(t, e, r, n);
2817
2830
  }
2818
- function Qo(t) {
2819
- if (!pr.includes(t))
2820
- throw new Error(`Invalid error correction mode=${t}. Expected: ${pr}`);
2831
+ function Ho(t) {
2832
+ if (!gr.includes(t))
2833
+ throw new Error(`Invalid error correction mode=${t}. Expected: ${gr}`);
2821
2834
  }
2822
- function Jo(t) {
2823
- if (!br.includes(t))
2824
- throw new Error(`Encoding: invalid mode=${t}. Expected: ${br}`);
2835
+ function qo(t) {
2836
+ if (!vr.includes(t))
2837
+ throw new Error(`Encoding: invalid mode=${t}. Expected: ${vr}`);
2825
2838
  if (t === "kanji" || t === "eci")
2826
2839
  throw new Error(`Encoding: ${t} is not supported (yet?).`);
2827
2840
  }
2828
- function Zo(t) {
2829
- if (![0, 1, 2, 3, 4, 5, 6, 7].includes(t) || !Ut[t])
2841
+ function Xo(t) {
2842
+ if (![0, 1, 2, 3, 4, 5, 6, 7].includes(t) || !zt[t])
2830
2843
  throw new Error(`Invalid mask=${t}. Expected number [0..7]`);
2831
2844
  }
2832
- function Yo(t, e = "raw", r = {}) {
2845
+ function Qo(t, e = "raw", r = {}) {
2833
2846
  const n = r, o = n.ecc !== void 0 ? n.ecc : "medium";
2834
- Qo(o);
2835
- const i = n.encoding !== void 0 ? n.encoding : Ko(t);
2836
- Jo(i), n.mask !== void 0 && Zo(n.mask);
2847
+ Ho(o);
2848
+ const i = n.encoding !== void 0 ? n.encoding : Uo(t);
2849
+ qo(i), n.mask !== void 0 && Xo(n.mask);
2837
2850
  let a = n.version, s, l = new Error("Unknown error");
2838
2851
  if (a !== void 0)
2839
- Lo(a), s = mr(a, o, t, i, n.textEncoder);
2852
+ Oo(a), s = pr(a, o, t, i, n.textEncoder);
2840
2853
  else
2841
2854
  for (let c = 1; c <= 40; c++)
2842
2855
  try {
2843
- s = mr(c, o, t, i, n.textEncoder), a = c;
2856
+ s = pr(c, o, t, i, n.textEncoder), a = c;
2844
2857
  break;
2845
2858
  } catch (f) {
2846
2859
  l = f;
2847
2860
  }
2848
2861
  if (!a || !s)
2849
2862
  throw l;
2850
- let d = Xo(a, o, s, n.mask);
2863
+ let d = Ko(a, o, s, n.mask);
2851
2864
  d.assertDrawn();
2852
2865
  const u = n.border === void 0 ? 2 : n.border;
2853
2866
  if (!Number.isSafeInteger(u) || u <= 0)
@@ -2864,7 +2877,7 @@ function Yo(t, e = "raw", r = {}) {
2864
2877
  return d.toTerm();
2865
2878
  throw new Error(`Unknown output: ${e}`);
2866
2879
  }
2867
- const sn = async (t) => {
2880
+ const nn = async (t) => {
2868
2881
  if (!t) return !1;
2869
2882
  try {
2870
2883
  if (navigator?.clipboard?.writeText)
@@ -2881,30 +2894,30 @@ const sn = async (t) => {
2881
2894
  return !1;
2882
2895
  }
2883
2896
  };
2884
- var ei = /* @__PURE__ */ k('<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__ */ k('<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)">');
2885
- const ri = (t) => Yo(t, "svg", {
2897
+ var Jo = /* @__PURE__ */ k('<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>'), Zo = /* @__PURE__ */ k('<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)">');
2898
+ const Yo = (t) => Qo(t, "svg", {
2886
2899
  optimize: !0,
2887
2900
  encoding: "byte",
2888
2901
  border: 2
2889
- }), ni = () => {
2902
+ }), ei = () => {
2890
2903
  const {
2891
2904
  t
2892
2905
  } = J(), {
2893
2906
  uri: e
2894
- } = Me(), r = () => {
2907
+ } = Be(), r = () => {
2895
2908
  const n = e();
2896
- n && sn(n);
2909
+ n && nn(n);
2897
2910
  };
2898
2911
  return (() => {
2899
- var n = ei(), o = n.firstChild, i = o.firstChild, a = i.firstChild, s = o.nextSibling, l = s.firstChild;
2912
+ var n = Jo(), o = n.firstChild, i = o.firstChild, a = i.firstChild, s = o.nextSibling, l = s.firstChild;
2900
2913
  return b(o, v(ge, {
2901
2914
  get when() {
2902
2915
  return e();
2903
2916
  },
2904
2917
  children: (d) => (() => {
2905
- var u = ti(), c = u.firstChild;
2906
- return c.$$click = r, U((f) => {
2907
- var h = String(t("handshake.clickToCopyUrl")), p = ri(d());
2918
+ var u = Zo(), c = u.firstChild;
2919
+ return c.$$click = r, G((f) => {
2920
+ var h = String(t("handshake.clickToCopyUrl")), p = Yo(d());
2908
2921
  return h !== f.e && Y(c, "title", f.e = h), p !== f.t && (c.innerHTML = f.t = p), f;
2909
2922
  }, {
2910
2923
  e: void 0,
@@ -2914,137 +2927,137 @@ const ri = (t) => Yo(t, "svg", {
2914
2927
  }), i), a.$$click = r, b(a, () => t("handshake.copyConnectionUrl")), b(l, () => t("handshake.scanCodeInstruction")), n;
2915
2928
  })();
2916
2929
  };
2917
- Ae(["click"]);
2918
- var oi = /* @__PURE__ */ k('<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">'), xr = /* @__PURE__ */ k('<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__ */ k("<div>");
2919
- const kr = () => oi(), si = () => {
2930
+ Se(["click"]);
2931
+ var ti = /* @__PURE__ */ k('<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">'), yr = /* @__PURE__ */ k('<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">'), ri = /* @__PURE__ */ k("<div>");
2932
+ const wr = () => ti(), ni = () => {
2920
2933
  const {
2921
2934
  status: t
2922
- } = Me(), {
2935
+ } = Be(), {
2923
2936
  t: e
2924
2937
  } = J();
2925
2938
  return (() => {
2926
- var r = ii();
2927
- return b(r, v(Gr, {
2939
+ var r = ri();
2940
+ return b(r, v(zr, {
2928
2941
  get children() {
2929
- return [v(Be, {
2942
+ return [v(_e, {
2930
2943
  get when() {
2931
- return t() === je.CREATED || t() === je.SIGNALING;
2944
+ return t() === Le.CREATED || t() === Le.SIGNALING;
2932
2945
  },
2933
2946
  get children() {
2934
- var n = xr(), o = n.firstChild, i = o.firstChild, a = i.nextSibling;
2935
- return b(n, v(kr, {}), o), b(i, () => e("connectionFlow.connecting")), b(a, () => e("connectionFlow.waitingForNetwork")), n;
2947
+ var n = yr(), o = n.firstChild, i = o.firstChild, a = i.nextSibling;
2948
+ return b(n, v(wr, {}), o), b(i, () => e("connectionFlow.connecting")), b(a, () => e("connectionFlow.waitingForNetwork")), n;
2936
2949
  }
2937
- }), v(Be, {
2950
+ }), v(_e, {
2938
2951
  get when() {
2939
- return t() === je.READY;
2952
+ return t() === Le.READY;
2940
2953
  },
2941
2954
  get children() {
2942
- return v(ni, {});
2955
+ return v(ei, {});
2943
2956
  }
2944
- }), v(Be, {
2957
+ }), v(_e, {
2945
2958
  get when() {
2946
- return t() === je.LINKING;
2959
+ return t() === Le.LINKING;
2947
2960
  },
2948
2961
  get children() {
2949
- var n = xr(), o = n.firstChild, i = o.firstChild, a = i.nextSibling;
2950
- return b(n, v(kr, {}), o), b(i, () => e("connectionFlow.establishingConnection")), b(a, () => e("connectionFlow.mayTakeFewSeconds")), n;
2962
+ var n = yr(), o = n.firstChild, i = o.firstChild, a = i.nextSibling;
2963
+ return b(n, v(wr, {}), o), b(i, () => e("connectionFlow.establishingConnection")), b(a, () => e("connectionFlow.mayTakeFewSeconds")), n;
2951
2964
  }
2952
2965
  })];
2953
2966
  }
2954
2967
  })), r;
2955
2968
  })();
2956
2969
  };
2957
- var ai = /* @__PURE__ */ k('<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)">');
2958
- const li = (t) => {
2970
+ var oi = /* @__PURE__ */ k('<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)">');
2971
+ const ii = (t) => {
2959
2972
  const {
2960
2973
  t: e
2961
2974
  } = J(), {
2962
2975
  provider: r
2963
- } = $e(), n = xe(r.error), {
2976
+ } = Ae(), n = we(r.error), {
2964
2977
  error: o
2965
- } = Me(), i = N(() => n() ?? o()), a = N(() => /ice candidates/i.test(i() ?? "")), s = N(() => a() ? e("connectionFlow.errorNoIce") : i() ?? e("connectionFlow.errorGeneric")), l = () => {
2978
+ } = Be(), i = E(() => n() ?? o()), a = E(() => /ice candidates/i.test(i() ?? "")), s = E(() => a() ? e("connectionFlow.errorNoIce") : i() ?? e("connectionFlow.errorGeneric")), l = () => {
2966
2979
  r.closeSession();
2967
2980
  };
2968
2981
  return (() => {
2969
- var d = ai(), u = d.firstChild, c = u.firstChild, f = c.nextSibling, h = f.nextSibling, p = u.nextSibling, m = p.firstChild, g = m.nextSibling;
2970
- return b(f, () => e("connectionFlow.connectionFailed")), b(h, s), m.$$click = l, b(m, () => e("connectionFlow.tryAgain")), yt(g, "click", t.onClose, !0), b(g, () => e("common.close")), d;
2982
+ var d = oi(), u = d.firstChild, c = u.firstChild, f = c.nextSibling, h = f.nextSibling, p = u.nextSibling, m = p.firstChild, g = m.nextSibling;
2983
+ return b(f, () => e("connectionFlow.connectionFailed")), b(h, s), m.$$click = l, b(m, () => e("connectionFlow.tryAgain")), mt(g, "click", t.onClose, !0), b(g, () => e("common.close")), d;
2971
2984
  })();
2972
2985
  };
2973
- Ae(["click"]);
2974
- var ci = /* @__PURE__ */ k('<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">'), Cr = /* @__PURE__ */ k('<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__ */ k("<div class=w-full style=view-transition-name:connection-flow>"), ui = /* @__PURE__ */ k('<div class="mb-4 text-4xl">✅'), fi = /* @__PURE__ */ k('<div class="mb-4 flex flex-col items-center gap-2"><span class="font-medium text-(--lv-text-primary) text-sm">'), hi = /* @__PURE__ */ k("<div class=text-4xl>✅"), gi = /* @__PURE__ */ k('<img alt class="h-12 w-12 rounded-xl">');
2975
- const vi = () => ci(), pi = (t) => {
2986
+ Se(["click"]);
2987
+ var si = /* @__PURE__ */ k('<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">'), xr = /* @__PURE__ */ k('<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">'), ai = /* @__PURE__ */ k("<div class=w-full style=view-transition-name:connection-flow>"), li = /* @__PURE__ */ k('<div class="mb-4 text-4xl">✅'), ci = /* @__PURE__ */ k('<div class="mb-4 flex flex-col items-center gap-2"><span class="font-medium text-(--lv-text-primary) text-sm">'), di = /* @__PURE__ */ k("<div class=text-4xl>✅"), ui = /* @__PURE__ */ k('<img alt class="h-12 w-12 rounded-xl">');
2988
+ const fi = () => si(), hi = (t) => {
2976
2989
  const {
2977
2990
  t: e
2978
2991
  } = J(), {
2979
2992
  provider: r
2980
- } = $e(), n = xe(r.status), {
2993
+ } = Ae(), n = we(r.status), {
2981
2994
  peerInfo: o
2982
- } = Me(), i = () => {
2995
+ } = Be(), i = () => {
2983
2996
  const a = o()?.icon;
2984
2997
  return a && (a.startsWith("data:image/") || a.startsWith("https://")) ? a : void 0;
2985
2998
  };
2986
2999
  return (() => {
2987
- var a = di();
2988
- return b(a, v(Gr, {
3000
+ var a = ai();
3001
+ return b(a, v(zr, {
2989
3002
  get fallback() {
2990
- return v(Lt, {
3003
+ return v(Mt, {
2991
3004
  get state() {
2992
3005
  return n();
2993
3006
  }
2994
3007
  });
2995
3008
  },
2996
3009
  get children() {
2997
- return [v(Be, {
3010
+ return [v(_e, {
2998
3011
  get when() {
2999
- return n() === oe.CREATING;
3012
+ return n() === se.CREATING;
3000
3013
  },
3001
3014
  get children() {
3002
- var s = Cr(), l = s.firstChild, d = l.firstChild, u = d.nextSibling;
3003
- return b(s, v(vi, {}), l), b(d, () => e("connectionFlow.preparingConnection")), b(u, () => e("connectionFlow.generatingKeys")), s;
3015
+ var s = xr(), l = s.firstChild, d = l.firstChild, u = d.nextSibling;
3016
+ return b(s, v(fi, {}), l), b(d, () => e("connectionFlow.preparingConnection")), b(u, () => e("connectionFlow.generatingKeys")), s;
3004
3017
  }
3005
- }), v(Be, {
3018
+ }), v(_e, {
3006
3019
  get when() {
3007
- return n() === oe.CONNECTING;
3020
+ return n() === se.CONNECTING;
3008
3021
  },
3009
3022
  get children() {
3010
- return v(si, {});
3023
+ return v(ni, {});
3011
3024
  }
3012
- }), v(Be, {
3025
+ }), v(_e, {
3013
3026
  get when() {
3014
- return n() === oe.CONNECTED;
3027
+ return n() === se.CONNECTED;
3015
3028
  },
3016
3029
  get children() {
3017
- var s = Cr(), l = s.firstChild, d = l.firstChild, u = d.nextSibling;
3030
+ var s = xr(), l = s.firstChild, d = l.firstChild, u = d.nextSibling;
3018
3031
  return b(l, v(ge, {
3019
3032
  get when() {
3020
3033
  return o();
3021
3034
  },
3022
3035
  get fallback() {
3023
- return ui();
3036
+ return li();
3024
3037
  },
3025
3038
  children: (c) => (() => {
3026
- var f = fi(), h = f.firstChild;
3039
+ var f = ci(), h = f.firstChild;
3027
3040
  return b(f, v(ge, {
3028
3041
  get when() {
3029
3042
  return i();
3030
3043
  },
3031
3044
  get fallback() {
3032
- return hi();
3045
+ return di();
3033
3046
  },
3034
3047
  children: (p) => (() => {
3035
- var m = gi();
3036
- return U(() => Y(m, "src", p())), m;
3048
+ var m = ui();
3049
+ return G(() => Y(m, "src", p())), m;
3037
3050
  })()
3038
3051
  }), h), b(h, () => c().name), f;
3039
3052
  })()
3040
3053
  }), d), b(d, () => e("connectionFlow.connectedSuccessfully")), b(u, () => e("connectionFlow.walletConnectedReady")), s;
3041
3054
  }
3042
- }), v(Be, {
3055
+ }), v(_e, {
3043
3056
  get when() {
3044
- return n() === oe.ERROR;
3057
+ return n() === se.ERROR;
3045
3058
  },
3046
3059
  get children() {
3047
- return v(li, {
3060
+ return v(ii, {
3048
3061
  get onClose() {
3049
3062
  return t.onClose;
3050
3063
  }
@@ -3055,7 +3068,7 @@ const vi = () => ci(), pi = (t) => {
3055
3068
  })), a;
3056
3069
  })();
3057
3070
  };
3058
- var bi = {
3071
+ var gi = {
3059
3072
  xmlns: "http://www.w3.org/2000/svg",
3060
3073
  width: 24,
3061
3074
  height: 24,
@@ -3065,59 +3078,59 @@ var bi = {
3065
3078
  "stroke-width": 2,
3066
3079
  "stroke-linecap": "round",
3067
3080
  "stroke-linejoin": "round"
3068
- }, De = bi, mi = /* @__PURE__ */ k("<svg>"), wi = (t) => {
3081
+ }, Me = gi, vi = /* @__PURE__ */ k("<svg>"), pi = (t) => {
3069
3082
  for (const e in t)
3070
3083
  if (e.startsWith("aria-") || e === "role" || e === "title")
3071
3084
  return !0;
3072
3085
  return !1;
3073
- }, 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()), Sr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), ki = (t) => {
3074
- const e = xi(t);
3086
+ }, bi = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim(), mi = (t) => t.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, r, n) => n ? n.toUpperCase() : r.toLowerCase()), kr = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), yi = (t) => {
3087
+ const e = mi(t);
3075
3088
  return e.charAt(0).toUpperCase() + e.slice(1);
3076
- }, Ci = (t) => {
3077
- const [e, r] = wt(t, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
3089
+ }, wi = (t) => {
3090
+ const [e, r] = bt(t, ["color", "size", "strokeWidth", "children", "class", "name", "iconNode", "absoluteStrokeWidth"]);
3078
3091
  return (() => {
3079
- var n = mi();
3080
- return gt(n, Q(De, {
3092
+ var n = vi();
3093
+ return ft(n, Q(Me, {
3081
3094
  get width() {
3082
- return e.size ?? De.width;
3095
+ return e.size ?? Me.width;
3083
3096
  },
3084
3097
  get height() {
3085
- return e.size ?? De.height;
3098
+ return e.size ?? Me.height;
3086
3099
  },
3087
3100
  get stroke() {
3088
- return e.color ?? De.stroke;
3101
+ return e.color ?? Me.stroke;
3089
3102
  },
3090
3103
  get "stroke-width"() {
3091
- return Ie(() => !!e.absoluteStrokeWidth)() ? Number(e.strokeWidth ?? De["stroke-width"]) * 24 / Number(e.size) : Number(e.strokeWidth ?? De["stroke-width"]);
3104
+ return Re(() => !!e.absoluteStrokeWidth)() ? Number(e.strokeWidth ?? Me["stroke-width"]) * 24 / Number(e.size) : Number(e.strokeWidth ?? Me["stroke-width"]);
3092
3105
  },
3093
3106
  get class() {
3094
- return yi("lucide", "lucide-icon", ...e.name != null ? [`lucide-${Sr(ki(e.name))}`, `lucide-${Sr(e.name)}`] : [], e.class != null ? e.class : "");
3107
+ return bi("lucide", "lucide-icon", ...e.name != null ? [`lucide-${kr(yi(e.name))}`, `lucide-${kr(e.name)}`] : [], e.class != null ? e.class : "");
3095
3108
  },
3096
3109
  get "aria-hidden"() {
3097
- return !e.children && !wi(r) ? "true" : void 0;
3110
+ return !e.children && !pi(r) ? "true" : void 0;
3098
3111
  }
3099
- }, r), !0, !0), b(n, v(Ce, {
3112
+ }, r), !0, !0), b(n, v(ke, {
3100
3113
  get each() {
3101
3114
  return e.iconNode;
3102
3115
  },
3103
- children: ([o, i]) => v(Hn, Q({
3116
+ children: ([o, i]) => v(Gn, Q({
3104
3117
  component: o
3105
3118
  }, i))
3106
3119
  })), n;
3107
3120
  })();
3108
- }, Ee = Ci, Si = [["path", {
3121
+ }, $e = wi, xi = [["path", {
3109
3122
  d: "m15 18-6-6 6-6",
3110
3123
  key: "1wnfg3"
3111
- }]], Ai = (t) => v(Ee, Q(t, {
3112
- iconNode: Si,
3124
+ }]], ki = (t) => v($e, Q(t, {
3125
+ iconNode: xi,
3113
3126
  name: "chevron-left"
3114
- })), $i = Ai, Ei = [["path", {
3127
+ })), Ci = ki, Si = [["path", {
3115
3128
  d: "m9 18 6-6-6-6",
3116
3129
  key: "mthhwq"
3117
- }]], Ti = (t) => v(Ee, Q(t, {
3118
- iconNode: Ei,
3130
+ }]], Ai = (t) => v($e, Q(t, {
3131
+ iconNode: Si,
3119
3132
  name: "chevron-right"
3120
- })), Ni = Ti, _i = [["circle", {
3133
+ })), $i = Ai, Ei = [["circle", {
3121
3134
  cx: "12",
3122
3135
  cy: "12",
3123
3136
  r: "10",
@@ -3128,19 +3141,19 @@ var bi = {
3128
3141
  }], ["path", {
3129
3142
  d: "M12 17h.01",
3130
3143
  key: "p32p05"
3131
- }]], Pi = (t) => v(Ee, Q(t, {
3132
- iconNode: _i,
3144
+ }]], Ti = (t) => v($e, Q(t, {
3145
+ iconNode: Ei,
3133
3146
  name: "circle-question-mark"
3134
- })), an = Pi, Ri = [["path", {
3147
+ })), on = Ti, Ni = [["path", {
3135
3148
  d: "M5 12h14",
3136
3149
  key: "1ays0h"
3137
3150
  }], ["path", {
3138
3151
  d: "M12 5v14",
3139
3152
  key: "s699le"
3140
- }]], Bi = (t) => v(Ee, Q(t, {
3141
- iconNode: Ri,
3153
+ }]], _i = (t) => v($e, Q(t, {
3154
+ iconNode: Ni,
3142
3155
  name: "plus"
3143
- })), Oi = Bi, Ii = [["rect", {
3156
+ })), Pi = _i, Ri = [["rect", {
3144
3157
  width: "5",
3145
3158
  height: "5",
3146
3159
  x: "3",
@@ -3188,10 +3201,10 @@ var bi = {
3188
3201
  }], ["path", {
3189
3202
  d: "M12 21v-1",
3190
3203
  key: "1880an"
3191
- }]], Mi = (t) => v(Ee, Q(t, {
3192
- iconNode: Ii,
3204
+ }]], Bi = (t) => v($e, Q(t, {
3205
+ iconNode: Ri,
3193
3206
  name: "qr-code"
3194
- })), Li = Mi, Di = [["path", {
3207
+ })), Oi = Bi, Ii = [["path", {
3195
3208
  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",
3196
3209
  key: "1i5ecw"
3197
3210
  }], ["circle", {
@@ -3199,10 +3212,10 @@ var bi = {
3199
3212
  cy: "12",
3200
3213
  r: "3",
3201
3214
  key: "1v7zrd"
3202
- }]], ji = (t) => v(Ee, Q(t, {
3203
- iconNode: Di,
3215
+ }]], Mi = (t) => v($e, Q(t, {
3216
+ iconNode: Ii,
3204
3217
  name: "settings"
3205
- })), Fi = ji, Vi = [["path", {
3218
+ })), Li = Mi, Di = [["path", {
3206
3219
  d: "M10 11v6",
3207
3220
  key: "nco0om"
3208
3221
  }], ["path", {
@@ -3217,19 +3230,19 @@ var bi = {
3217
3230
  }], ["path", {
3218
3231
  d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",
3219
3232
  key: "e791ji"
3220
- }]], zi = (t) => v(Ee, Q(t, {
3221
- iconNode: Vi,
3233
+ }]], ji = (t) => v($e, Q(t, {
3234
+ iconNode: Di,
3222
3235
  name: "trash-2"
3223
- })), Ui = zi, Gi = [["path", {
3236
+ })), Fi = ji, Vi = [["path", {
3224
3237
  d: "M18 6 6 18",
3225
3238
  key: "1bl5f8"
3226
3239
  }], ["path", {
3227
3240
  d: "m6 6 12 12",
3228
3241
  key: "d8bk6v"
3229
- }]], Wi = (t) => v(Ee, Q(t, {
3230
- iconNode: Gi,
3242
+ }]], zi = (t) => v($e, Q(t, {
3243
+ iconNode: Vi,
3231
3244
  name: "x"
3232
- })), Ki = Wi, Hi = /\s+/g, qi = (t) => typeof t != "string" || !t ? t : t.replace(Hi, " ").trim(), bt = (...t) => {
3245
+ })), Ui = zi, Gi = /\s+/g, Wi = (t) => typeof t != "string" || !t ? t : t.replace(Gi, " ").trim(), vt = (...t) => {
3233
3246
  const e = [], r = (n) => {
3234
3247
  if (!n && n !== 0 && n !== 0n) return;
3235
3248
  if (Array.isArray(n)) {
@@ -3252,12 +3265,12 @@ var bi = {
3252
3265
  const i = t[n];
3253
3266
  i != null && r(i);
3254
3267
  }
3255
- return e.length > 0 ? qi(e.join(" ")) : void 0;
3256
- }, Ar = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, te = (t) => {
3268
+ return e.length > 0 ? Wi(e.join(" ")) : void 0;
3269
+ }, Cr = (t) => t === !1 ? "false" : t === !0 ? "true" : t === 0 ? "0" : t, re = (t) => {
3257
3270
  if (!t || typeof t != "object") return !0;
3258
3271
  for (const e in t) return !1;
3259
3272
  return !0;
3260
- }, Xi = (t, e) => {
3273
+ }, Ki = (t, e) => {
3261
3274
  if (t === e) return !0;
3262
3275
  if (!t || !e) return !1;
3263
3276
  const r = Object.keys(t), n = Object.keys(e);
@@ -3267,43 +3280,43 @@ var bi = {
3267
3280
  if (!n.includes(i) || t[i] !== e[i]) return !1;
3268
3281
  }
3269
3282
  return !0;
3270
- }, Qi = (t, e) => {
3283
+ }, Hi = (t, e) => {
3271
3284
  for (const r in e)
3272
3285
  if (Object.prototype.hasOwnProperty.call(e, r)) {
3273
3286
  const n = e[r];
3274
- r in t ? t[r] = bt(t[r], n) : t[r] = n;
3287
+ r in t ? t[r] = vt(t[r], n) : t[r] = n;
3275
3288
  }
3276
3289
  return t;
3277
- }, ln = (t, e) => {
3290
+ }, sn = (t, e) => {
3278
3291
  for (let r = 0; r < t.length; r++) {
3279
3292
  const n = t[r];
3280
- Array.isArray(n) ? ln(n, e) : n && e.push(n);
3293
+ Array.isArray(n) ? sn(n, e) : n && e.push(n);
3281
3294
  }
3282
- }, cn = (...t) => {
3295
+ }, an = (...t) => {
3283
3296
  const e = [];
3284
- ln(t, e);
3297
+ sn(t, e);
3285
3298
  const r = [];
3286
3299
  for (let n = 0; n < e.length; n++)
3287
3300
  e[n] && r.push(e[n]);
3288
3301
  return r;
3289
- }, Dt = (t, e) => {
3302
+ }, Lt = (t, e) => {
3290
3303
  const r = {};
3291
3304
  for (const n in t) {
3292
3305
  const o = t[n];
3293
3306
  if (n in e) {
3294
3307
  const i = e[n];
3295
- Array.isArray(o) || Array.isArray(i) ? r[n] = cn(i, o) : typeof o == "object" && typeof i == "object" && o && i ? r[n] = Dt(o, i) : r[n] = i + " " + o;
3308
+ Array.isArray(o) || Array.isArray(i) ? r[n] = an(i, o) : typeof o == "object" && typeof i == "object" && o && i ? r[n] = Lt(o, i) : r[n] = i + " " + o;
3296
3309
  } else
3297
3310
  r[n] = o;
3298
3311
  }
3299
3312
  for (const n in e)
3300
3313
  n in t || (r[n] = e[n]);
3301
3314
  return r;
3302
- }, Ji = {
3315
+ }, qi = {
3303
3316
  twMerge: !0,
3304
3317
  twMergeConfig: {}
3305
3318
  };
3306
- function Zi() {
3319
+ function Xi() {
3307
3320
  let t = null, e = {}, r = !1;
3308
3321
  return {
3309
3322
  get cachedTwMerge() {
@@ -3329,7 +3342,7 @@ function Zi() {
3329
3342
  }
3330
3343
  };
3331
3344
  }
3332
- var Tt = Zi(), Yi = (t) => {
3345
+ var Et = Xi(), Qi = (t) => {
3333
3346
  const e = (n, o) => {
3334
3347
  const {
3335
3348
  extend: i = null,
@@ -3338,18 +3351,18 @@ var Tt = Zi(), Yi = (t) => {
3338
3351
  compoundVariants: l = [],
3339
3352
  compoundSlots: d = [],
3340
3353
  defaultVariants: u = {}
3341
- } = n, c = { ...Ji, ...o }, f = i?.base ? bt(i.base, n?.base) : n?.base, h = i?.variants && !te(i.variants) ? Dt(s, i.variants) : s, p = i?.defaultVariants && !te(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
3342
- !te(c.twMergeConfig) && !Xi(c.twMergeConfig, Tt.cachedTwMergeConfig) && (Tt.didTwMergeConfigChange = !0, Tt.cachedTwMergeConfig = c.twMergeConfig);
3343
- const m = te(i?.slots), g = te(a) ? {} : {
3354
+ } = n, c = { ...qi, ...o }, f = i?.base ? vt(i.base, n?.base) : n?.base, h = i?.variants && !re(i.variants) ? Lt(s, i.variants) : s, p = i?.defaultVariants && !re(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
3355
+ !re(c.twMergeConfig) && !Ki(c.twMergeConfig, Et.cachedTwMergeConfig) && (Et.didTwMergeConfigChange = !0, Et.cachedTwMergeConfig = c.twMergeConfig);
3356
+ const m = re(i?.slots), g = re(a) ? {} : {
3344
3357
  // add "base" to the slots object
3345
- base: bt(n?.base, m && i?.base),
3358
+ base: vt(n?.base, m && i?.base),
3346
3359
  ...a
3347
- }, C = m ? g : Qi(
3360
+ }, C = m ? g : Hi(
3348
3361
  { ...i?.slots },
3349
- te(g) ? { base: n?.base } : g
3350
- ), x = te(i?.compoundVariants) ? l : cn(i?.compoundVariants, l), y = (E) => {
3351
- if (te(h) && te(a) && m)
3352
- return t(f, E?.class, E?.className)(c);
3362
+ re(g) ? { base: n?.base } : g
3363
+ ), x = re(i?.compoundVariants) ? l : an(i?.compoundVariants, l), w = (A) => {
3364
+ if (re(h) && re(a) && m)
3365
+ return t(f, A?.class, A?.className)(c);
3353
3366
  if (x && !Array.isArray(x))
3354
3367
  throw new TypeError(
3355
3368
  `The "compoundVariants" prop must be an array. Received: ${typeof x}`
@@ -3358,152 +3371,152 @@ var Tt = Zi(), Yi = (t) => {
3358
3371
  throw new TypeError(
3359
3372
  `The "compoundSlots" prop must be an array. Received: ${typeof d}`
3360
3373
  );
3361
- const ve = ($, T = h, _ = null, B = null) => {
3362
- const O = T[$];
3363
- if (!O || te(O))
3374
+ const ve = (T, _ = h, N = null, M = null) => {
3375
+ const O = _[T];
3376
+ if (!O || re(O))
3364
3377
  return null;
3365
- const L = B?.[$] ?? E?.[$];
3366
- if (L === null) return null;
3367
- const K = Ar(L);
3368
- if (typeof K == "object")
3378
+ const D = M?.[T] ?? A?.[T];
3379
+ if (D === null) return null;
3380
+ const Z = Cr(D);
3381
+ if (typeof Z == "object")
3369
3382
  return null;
3370
- const le = p?.[$], Z = K ?? Ar(le);
3371
- return O[Z || "false"];
3383
+ const $ = p?.[T], P = Z ?? Cr($);
3384
+ return O[P || "false"];
3372
3385
  }, fe = () => {
3373
3386
  if (!h) return null;
3374
- const $ = Object.keys(h), T = [];
3375
- for (let _ = 0; _ < $.length; _++) {
3376
- const B = ve($[_], h);
3377
- B && T.push(B);
3387
+ const T = Object.keys(h), _ = [];
3388
+ for (let N = 0; N < T.length; N++) {
3389
+ const M = ve(T[N], h);
3390
+ M && _.push(M);
3378
3391
  }
3379
- return T;
3380
- }, Ve = ($, T) => {
3392
+ return _;
3393
+ }, je = (T, _) => {
3381
3394
  if (!h || typeof h != "object") return null;
3382
- const _ = [];
3383
- for (const B in h) {
3384
- const O = ve(B, h, $, T), L = $ === "base" && typeof O == "string" ? O : O && O[$];
3385
- L && _.push(L);
3395
+ const N = [];
3396
+ for (const M in h) {
3397
+ const O = ve(M, h, T, _), D = T === "base" && typeof O == "string" ? O : O && O[T];
3398
+ D && N.push(D);
3386
3399
  }
3387
- return _;
3388
- }, rt = {};
3389
- for (const $ in E) {
3390
- const T = E[$];
3391
- T !== void 0 && (rt[$] = T);
3400
+ return N;
3401
+ }, Ye = {};
3402
+ for (const T in A) {
3403
+ const _ = A[T];
3404
+ _ !== void 0 && (Ye[T] = _);
3392
3405
  }
3393
- const ze = ($, T) => {
3394
- const _ = typeof E?.[$] == "object" ? {
3395
- [$]: E[$]?.initial
3406
+ const Fe = (T, _) => {
3407
+ const N = typeof A?.[T] == "object" ? {
3408
+ [T]: A[T]?.initial
3396
3409
  } : {};
3397
3410
  return {
3398
3411
  ...p,
3399
- ...rt,
3400
- ..._,
3401
- ...T
3412
+ ...Ye,
3413
+ ...N,
3414
+ ..._
3402
3415
  };
3403
- }, nt = ($ = [], T) => {
3404
- const _ = [], B = $.length;
3405
- for (let O = 0; O < B; O++) {
3406
- const { class: L, className: K, ...le } = $[O];
3407
- let Z = !0;
3408
- const se = ze(null, T);
3409
- for (const pe in le) {
3410
- const S = le[pe], V = se[pe];
3411
- if (Array.isArray(S)) {
3412
- if (!S.includes(V)) {
3413
- Z = !1;
3416
+ }, et = (T = [], _) => {
3417
+ const N = [], M = T.length;
3418
+ for (let O = 0; O < M; O++) {
3419
+ const { class: D, className: Z, ...$ } = T[O];
3420
+ let P = !0;
3421
+ const V = Fe(null, _);
3422
+ for (const oe in $) {
3423
+ const ie = $[oe], Oe = V[oe];
3424
+ if (Array.isArray(ie)) {
3425
+ if (!ie.includes(Oe)) {
3426
+ P = !1;
3414
3427
  break;
3415
3428
  }
3416
3429
  } else {
3417
- if ((S == null || S === !1) && (V == null || V === !1))
3430
+ if ((ie == null || ie === !1) && (Oe == null || Oe === !1))
3418
3431
  continue;
3419
- if (V !== S) {
3420
- Z = !1;
3432
+ if (Oe !== ie) {
3433
+ P = !1;
3421
3434
  break;
3422
3435
  }
3423
3436
  }
3424
3437
  }
3425
- Z && (L && _.push(L), K && _.push(K));
3438
+ P && (D && N.push(D), Z && N.push(Z));
3426
3439
  }
3427
- return _;
3428
- }, ot = ($) => {
3429
- const T = nt(x, $);
3430
- if (!Array.isArray(T)) return T;
3431
- const _ = {}, B = t;
3432
- for (let O = 0; O < T.length; O++) {
3433
- const L = T[O];
3434
- if (typeof L == "string")
3435
- _.base = B(_.base, L)(c);
3436
- else if (typeof L == "object")
3437
- for (const K in L)
3438
- _[K] = B(_[K], L[K])(c);
3440
+ return N;
3441
+ }, xt = (T) => {
3442
+ const _ = et(x, T);
3443
+ if (!Array.isArray(_)) return _;
3444
+ const N = {}, M = t;
3445
+ for (let O = 0; O < _.length; O++) {
3446
+ const D = _[O];
3447
+ if (typeof D == "string")
3448
+ N.base = M(N.base, D)(c);
3449
+ else if (typeof D == "object")
3450
+ for (const Z in D)
3451
+ N[Z] = M(N[Z], D[Z])(c);
3439
3452
  }
3440
- return _;
3441
- }, Te = ($) => {
3453
+ return N;
3454
+ }, tt = (T) => {
3442
3455
  if (d.length < 1) return null;
3443
- const T = {}, _ = ze(null, $);
3444
- for (let B = 0; B < d.length; B++) {
3456
+ const _ = {}, N = Fe(null, T);
3457
+ for (let M = 0; M < d.length; M++) {
3445
3458
  const {
3446
3459
  slots: O = [],
3447
- class: L,
3448
- className: K,
3449
- ...le
3450
- } = d[B];
3451
- if (!te(le)) {
3452
- let Z = !0;
3453
- for (const se in le) {
3454
- const pe = _[se], S = le[se];
3455
- if (pe === void 0 || (Array.isArray(S) ? !S.includes(pe) : S !== pe)) {
3456
- Z = !1;
3460
+ class: D,
3461
+ className: Z,
3462
+ ...$
3463
+ } = d[M];
3464
+ if (!re($)) {
3465
+ let P = !0;
3466
+ for (const V in $) {
3467
+ const oe = N[V], ie = $[V];
3468
+ if (oe === void 0 || (Array.isArray(ie) ? !ie.includes(oe) : ie !== oe)) {
3469
+ P = !1;
3457
3470
  break;
3458
3471
  }
3459
3472
  }
3460
- if (!Z) continue;
3473
+ if (!P) continue;
3461
3474
  }
3462
- for (let Z = 0; Z < O.length; Z++) {
3463
- const se = O[Z];
3464
- T[se] || (T[se] = []), T[se].push([L, K]);
3475
+ for (let P = 0; P < O.length; P++) {
3476
+ const V = O[P];
3477
+ _[V] || (_[V] = []), _[V].push([D, Z]);
3465
3478
  }
3466
3479
  }
3467
- return T;
3480
+ return _;
3468
3481
  };
3469
- if (!te(a) || !m) {
3470
- const $ = {};
3471
- if (typeof C == "object" && !te(C)) {
3472
- const T = t;
3473
- for (const _ in C)
3474
- $[_] = (B) => {
3475
- const O = ot(B), L = Te(B);
3476
- return T(
3477
- C[_],
3478
- Ve(_, B),
3479
- O ? O[_] : void 0,
3480
- L ? L[_] : void 0,
3481
- B?.class,
3482
- B?.className
3482
+ if (!re(a) || !m) {
3483
+ const T = {};
3484
+ if (typeof C == "object" && !re(C)) {
3485
+ const _ = t;
3486
+ for (const N in C)
3487
+ T[N] = (M) => {
3488
+ const O = xt(M), D = tt(M);
3489
+ return _(
3490
+ C[N],
3491
+ je(N, M),
3492
+ O ? O[N] : void 0,
3493
+ D ? D[N] : void 0,
3494
+ M?.class,
3495
+ M?.className
3483
3496
  )(c);
3484
3497
  };
3485
3498
  }
3486
- return $;
3499
+ return T;
3487
3500
  }
3488
3501
  return t(
3489
3502
  f,
3490
3503
  fe(),
3491
- nt(x),
3492
- E?.class,
3493
- E?.className
3504
+ et(x),
3505
+ A?.class,
3506
+ A?.className
3494
3507
  )(c);
3495
- }, R = () => {
3508
+ }, B = () => {
3496
3509
  if (!(!h || typeof h != "object"))
3497
3510
  return Object.keys(h);
3498
3511
  };
3499
- return y.variantKeys = R(), y.extend = i, y.base = f, y.slots = C, y.variants = h, y.defaultVariants = p, y.compoundSlots = d, y.compoundVariants = x, y;
3512
+ return w.variantKeys = B(), w.extend = i, w.base = f, w.slots = C, w.variants = h, w.defaultVariants = p, w.compoundSlots = d, w.compoundVariants = x, w;
3500
3513
  };
3501
3514
  return {
3502
3515
  tv: e,
3503
- createTV: (n) => (o, i) => e(o, i ? Dt(n, i) : n)
3516
+ createTV: (n) => (o, i) => e(o, i ? Lt(n, i) : n)
3504
3517
  };
3505
- }, es = (...t) => (e) => bt(t) || void 0, { tv: xt } = Yi(es), ts = /* @__PURE__ */ k("<a>"), rs = /* @__PURE__ */ k("<button type=button>");
3506
- const $r = xt({
3518
+ }, Ji = (...t) => (e) => vt(t) || void 0, { tv: yt } = Qi(Ji), Zi = /* @__PURE__ */ k("<a>"), Yi = /* @__PURE__ */ k("<button type=button>");
3519
+ const Sr = yt({
3507
3520
  base: "flex items-center justify-center rounded-lg transition-all duration-100 cursor-pointer active:scale-95",
3508
3521
  variants: {
3509
3522
  $variant: {
@@ -3526,11 +3539,11 @@ const $r = xt({
3526
3539
  $variant: "primary",
3527
3540
  $aspect: "auto"
3528
3541
  }
3529
- }), Fe = (t) => {
3530
- const [e, r] = wt(t, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
3542
+ }), De = (t) => {
3543
+ const [e, r] = bt(t, ["children", "class", "$variant", "$size", "$aspect", "href", "onClick"]);
3531
3544
  return e.href ? (() => {
3532
- var n = ts();
3533
- return gt(n, Q({
3545
+ var n = Zi();
3546
+ return ft(n, Q({
3534
3547
  get href() {
3535
3548
  return e.href;
3536
3549
  },
@@ -3538,7 +3551,7 @@ const $r = xt({
3538
3551
  return e.onClick;
3539
3552
  },
3540
3553
  get class() {
3541
- return ke($r({
3554
+ return xe(Sr({
3542
3555
  $variant: e.$variant,
3543
3556
  $size: e.$size,
3544
3557
  $aspect: e.$aspect
@@ -3546,13 +3559,13 @@ const $r = xt({
3546
3559
  }
3547
3560
  }, r), !1, !0), b(n, () => e.children), n;
3548
3561
  })() : (() => {
3549
- var n = rs();
3550
- return gt(n, Q({
3562
+ var n = Yi();
3563
+ return ft(n, Q({
3551
3564
  get onClick() {
3552
3565
  return e.onClick;
3553
3566
  },
3554
3567
  get class() {
3555
- return ke($r({
3568
+ return xe(Sr({
3556
3569
  $variant: e.$variant,
3557
3570
  $size: e.$size,
3558
3571
  $aspect: e.$aspect
@@ -3561,45 +3574,45 @@ const $r = xt({
3561
3574
  }, r), !1, !0), b(n, () => e.children), n;
3562
3575
  })();
3563
3576
  };
3564
- var ns = /* @__PURE__ */ k('<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__ */ k('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), is = /* @__PURE__ */ k('<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__ */ k('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), as = /* @__PURE__ */ k('<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">');
3565
- const dn = (t) => t ? 1 : 3, ls = (t) => (() => {
3566
- var e = ns(), r = e.firstChild, n = r.nextSibling;
3567
- return b(n, v(Ce, {
3577
+ var es = /* @__PURE__ */ k('<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">'), ts = /* @__PURE__ */ k('<div class="h-1.5 w-1.5 rounded-full border border-gray-500">'), rs = /* @__PURE__ */ k('<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">'), ns = /* @__PURE__ */ k('<div class="h-1.5 w-1.5 rounded-full border border-gray-400">'), os = /* @__PURE__ */ k('<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">');
3578
+ const ln = (t) => t ? 1 : 3, is = (t) => (() => {
3579
+ var e = es(), r = e.firstChild, n = r.nextSibling;
3580
+ return b(n, v(ke, {
3568
3581
  get each() {
3569
3582
  return Array.from({
3570
- length: dn(t.isApple)
3583
+ length: ln(t.isApple)
3571
3584
  });
3572
3585
  },
3573
- children: () => os()
3586
+ children: () => ts()
3574
3587
  })), e;
3575
- })(), cs = (t) => (() => {
3576
- var e = is(), r = e.firstChild, n = r.nextSibling;
3577
- return b(n, v(Ce, {
3588
+ })(), ss = (t) => (() => {
3589
+ var e = rs(), r = e.firstChild, n = r.nextSibling;
3590
+ return b(n, v(ke, {
3578
3591
  get each() {
3579
3592
  return Array.from({
3580
- length: dn(t.isApple)
3593
+ length: ln(t.isApple)
3581
3594
  });
3582
3595
  },
3583
- children: () => ss()
3596
+ children: () => ns()
3584
3597
  })), e;
3585
- })(), ds = () => (() => {
3586
- var e = as(), r = e.firstChild, n = r.nextSibling;
3587
- return b(r, v(ls, {
3598
+ })(), as = () => (() => {
3599
+ var e = os(), r = e.firstChild, n = r.nextSibling;
3600
+ return b(r, v(is, {
3588
3601
  isApple: !0
3589
- })), b(n, v(cs, {
3602
+ })), b(n, v(ss, {
3590
3603
  isApple: !0
3591
3604
  })), e;
3592
3605
  })();
3593
- var us = /* @__PURE__ */ k('<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">');
3594
- const fs = (t) => {
3606
+ var ls = /* @__PURE__ */ k('<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">');
3607
+ const cs = (t) => {
3595
3608
  const {
3596
3609
  t: e
3597
3610
  } = J(), {
3598
3611
  start: r
3599
- } = Oo();
3612
+ } = Po();
3600
3613
  return (() => {
3601
- var n = us(), o = n.firstChild, i = o.firstChild, a = o.nextSibling;
3602
- return b(n, v(ds, {}), o), b(i, () => e("disconnected.prompt")), b(a, v(Fe, {
3614
+ var n = ls(), o = n.firstChild, i = o.firstChild, a = o.nextSibling;
3615
+ return b(n, v(as, {}), o), b(i, () => e("disconnected.prompt")), b(a, v(De, {
3603
3616
  type: "button",
3604
3617
  onClick: r,
3605
3618
  class: "z-10 px-6 py-3",
@@ -3608,7 +3621,7 @@ const fs = (t) => {
3608
3621
  get children() {
3609
3622
  return e("disconnected.generateQr");
3610
3623
  }
3611
- }), null), b(a, v(Fe, {
3624
+ }), null), b(a, v(De, {
3612
3625
  type: "button",
3613
3626
  get "aria-label"() {
3614
3627
  return String(e("disconnected.connectionSettings"));
@@ -3622,43 +3635,39 @@ const fs = (t) => {
3622
3635
  $size: "lg",
3623
3636
  $variant: "secondary",
3624
3637
  get children() {
3625
- return v(Fi, {
3638
+ return v(Li, {
3626
3639
  class: "h-5 w-5 text-(--lv-text-muted)"
3627
3640
  });
3628
3641
  }
3629
3642
  }), null), n;
3630
3643
  })();
3631
3644
  };
3632
- var hs = /* @__PURE__ */ k('<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>');
3633
- const gs = () => {
3645
+ var ds = /* @__PURE__ */ k('<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>');
3646
+ const us = () => {
3634
3647
  const {
3635
3648
  t
3636
3649
  } = J();
3637
3650
  return (() => {
3638
- var e = hs(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling, a = i.firstChild, s = i.nextSibling, l = s.firstChild;
3639
- return b(n, () => t("info.scanQrCode")), b(o, v(Li, {
3651
+ var e = ds(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling, a = i.firstChild, s = i.nextSibling, l = s.firstChild;
3652
+ return b(n, () => t("info.scanQrCode")), b(o, v(Oi, {
3640
3653
  class: "w-10 h-10"
3641
3654
  })), b(a, () => t("info.approveOnDevice")), b(l, () => t("info.youreConnected")), e;
3642
3655
  })();
3643
- }, jt = (t, { duration: e = 200 } = {}) => {
3644
- const r = typeof t == "function" ? t : () => t, n = r(), [o, i] = z(n), [a, s] = z(void 0);
3645
- let l, d = n;
3646
- return ae(() => {
3647
- const u = r();
3648
- Object.is(u, d) || (l && globalThis.clearTimeout(l), s(() => d), i(() => u), d = u, l = globalThis.setTimeout(() => {
3649
- s(() => {
3650
- }), l = void 0;
3651
- }, e), ie(() => {
3652
- l && globalThis.clearTimeout(l);
3653
- }));
3654
- }), {
3656
+ }, Dt = (t, { duration: e = 200 } = {}) => {
3657
+ const n = E(typeof t == "function" ? t : () => t, void 0, { equals: Object.is }), [o, i] = U(n()), [a, s] = U(void 0);
3658
+ return ae(it(n, (l) => {
3659
+ s(() => o()), i(() => l);
3660
+ const d = globalThis.setTimeout(() => s(() => {
3661
+ }), e);
3662
+ le(() => globalThis.clearTimeout(d));
3663
+ }, { defer: !0 })), {
3655
3664
  current: o,
3656
3665
  previous: a,
3657
3666
  isTransitioning: () => a() !== void 0
3658
3667
  };
3659
- }, tt = () => {
3660
- const { provider: t } = $e(), [e, r] = z(t.storage.getSettings());
3661
- t.storage.emitter.on("settings_change", r), ie(() => t.storage.emitter.off("settings_change", r));
3668
+ }, Ze = () => {
3669
+ const { provider: t } = Ae(), [e, r] = U(t.storage.settings.get());
3670
+ le(t.storage.settings.subscribe(r));
3662
3671
  const n = (c) => {
3663
3672
  t.storage.setSettings(c);
3664
3673
  };
@@ -3691,73 +3700,73 @@ const gs = () => {
3691
3700
  n({ ...e(), autoReconnect: c });
3692
3701
  }
3693
3702
  };
3694
- }, un = () => {
3695
- const { themeConfig: t } = $e(), { settings: e, setThemeMode: r } = tt(), n = N(() => t?.mode ?? "auto"), o = N(() => e().theme ?? "system"), i = N(() => n() === "auto" ? o() : n());
3703
+ }, cn = () => {
3704
+ const { themeConfig: t } = Ae(), { settings: e, setThemeMode: r } = Ze(), n = E(() => t?.mode ?? "auto"), o = E(() => e().theme ?? "system"), i = E(() => n() === "auto" ? o() : n());
3696
3705
  return {
3697
3706
  mode: n,
3698
3707
  preference: o,
3699
3708
  applied: i,
3700
3709
  setPreference: r
3701
3710
  };
3702
- }, vs = "data:image/webp;base64,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";
3703
- var ps = /* @__PURE__ */ k('<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>');
3704
- const Er = {
3705
- [_e.STANDBY]: {
3711
+ }, fs = "data:image/webp;base64,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";
3712
+ var hs = /* @__PURE__ */ k('<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>');
3713
+ const Ar = {
3714
+ [Ee.STANDBY]: {
3706
3715
  icon: "🫥",
3707
3716
  key: "status.connecting"
3708
3717
  },
3709
- [_e.CONNECTING]: {
3718
+ [Ee.CONNECTING]: {
3710
3719
  icon: "↗️",
3711
3720
  key: "status.connecting"
3712
3721
  },
3713
- [_e.READY]: {
3722
+ [Ee.READY]: {
3714
3723
  icon: "👋",
3715
3724
  key: "status.ready"
3716
3725
  },
3717
- [_e.HANDSHAKE]: {
3726
+ [Ee.HANDSHAKE]: {
3718
3727
  icon: "🤝",
3719
3728
  key: "status.handshakeClosed"
3720
3729
  },
3721
- [_e.HANDSHAKE_PARTIAL]: {
3730
+ [Ee.HANDSHAKE_PARTIAL]: {
3722
3731
  icon: "🤝",
3723
3732
  key: "status.handshakePartial"
3724
3733
  },
3725
3734
  // Reaching ENCRYPTED is what starts the transport, so this state is the
3726
3735
  // peer connection being negotiated, not an idle encrypted channel.
3727
- [_e.ENCRYPTED]: {
3736
+ [Ee.ENCRYPTED]: {
3728
3737
  icon: "🔒",
3729
3738
  key: "connectionFlow.establishingConnection"
3730
3739
  },
3731
- [_e.ERROR]: {
3740
+ [Ee.ERROR]: {
3732
3741
  icon: "❌",
3733
3742
  key: "status.signalError"
3734
3743
  }
3735
- }, bs = () => {
3744
+ }, gs = () => {
3736
3745
  const {
3737
3746
  t
3738
3747
  } = J(), {
3739
3748
  status: e,
3740
3749
  signalStatus: r
3741
- } = Me(), n = N(() => Oe({
3750
+ } = Be(), n = E(() => Pe({
3742
3751
  session: e(),
3743
3752
  signal: r()
3744
3753
  }).with({
3745
- session: je.CONNECTED
3754
+ session: Le.CONNECTED
3746
3755
  }, () => ({
3747
3756
  icon: "✅",
3748
3757
  text: t("status.connectedSuccessfully")
3749
3758
  })).with({
3750
- session: je.DISCONNECTED
3759
+ session: Le.DISCONNECTED
3751
3760
  }, () => ({
3752
3761
  icon: "❌",
3753
3762
  text: t("status.disconnected")
3754
3763
  })).with({
3755
- signal: Qr.nonNullable
3764
+ signal: qr.nonNullable
3756
3765
  }, ({
3757
3766
  signal: o
3758
3767
  }) => ({
3759
- icon: Er[o].icon,
3760
- text: t(Er[o].key)
3768
+ icon: Ar[o].icon,
3769
+ text: t(Ar[o].key)
3761
3770
  })).otherwise(() => {
3762
3771
  }));
3763
3772
  return v(ge, {
@@ -3765,26 +3774,26 @@ const Er = {
3765
3774
  return n();
3766
3775
  },
3767
3776
  children: (o) => (() => {
3768
- var i = ps(), a = i.firstChild, s = a.nextSibling;
3777
+ var i = hs(), a = i.firstChild, s = a.nextSibling;
3769
3778
  return b(a, () => o().text), b(s, () => o().icon), i;
3770
3779
  })()
3771
3780
  });
3772
3781
  };
3773
- var ms = /* @__PURE__ */ k('<div class="h-11 w-full">'), ws = /* @__PURE__ */ k('<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/open-lavatory/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)">');
3774
- const ys = () => [ms(), (() => {
3775
- var t = ws(), e = t.firstChild, r = e.firstChild, n = e.nextSibling;
3776
- return Y(r, "src", vs), b(n, v(bs, {})), t;
3782
+ var vs = /* @__PURE__ */ k('<div class="h-11 w-full">'), ps = /* @__PURE__ */ k('<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/open-lavatory/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)">');
3783
+ const bs = () => [vs(), (() => {
3784
+ var t = ps(), e = t.firstChild, r = e.firstChild, n = e.nextSibling;
3785
+ return Y(r, "src", fs), b(n, v(gs, {})), t;
3777
3786
  })()];
3778
- var xs = /* @__PURE__ */ k('<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">');
3779
- const ks = (t) => {
3787
+ var ms = /* @__PURE__ */ k('<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">');
3788
+ const ys = (t) => {
3780
3789
  const {
3781
3790
  t: e
3782
3791
  } = J();
3783
3792
  return (() => {
3784
- var r = xs(), n = r.firstChild;
3793
+ var r = ms(), n = r.firstChild;
3785
3794
  return b(r, (() => {
3786
- var o = Ie(() => !!t.onBack);
3787
- return () => o() ? v(Fe, {
3795
+ var o = Re(() => !!t.onBack);
3796
+ return () => o() ? v(De, {
3788
3797
  get onClick() {
3789
3798
  return t.onBack;
3790
3799
  },
@@ -3795,23 +3804,23 @@ const ks = (t) => {
3795
3804
  $aspect: "square",
3796
3805
  $size: "md",
3797
3806
  get children() {
3798
- return v($i, {
3807
+ return v(Ci, {
3799
3808
  class: "h-6 w-6 text-(--lv-text-muted) rtl:rotate-180"
3800
3809
  });
3801
3810
  }
3802
- }) : v(Fe, {
3811
+ }) : v(De, {
3803
3812
  type: "button",
3804
3813
  onClick: () => t.setView("info"),
3805
3814
  $variant: "tertiary",
3806
3815
  $aspect: "square",
3807
3816
  $size: "md",
3808
3817
  get children() {
3809
- return v(an, {
3818
+ return v(on, {
3810
3819
  class: "h-5 w-5"
3811
3820
  });
3812
3821
  }
3813
3822
  });
3814
- })(), n), b(n, () => t.title), b(r, v(Fe, {
3823
+ })(), n), b(n, () => t.title), b(r, v(De, {
3815
3824
  type: "button",
3816
3825
  get "aria-label"() {
3817
3826
  return String(e("common.close"));
@@ -3824,14 +3833,14 @@ const ks = (t) => {
3824
3833
  $aspect: "square",
3825
3834
  $size: "md",
3826
3835
  get children() {
3827
- return v(Ki, {
3836
+ return v(Ui, {
3828
3837
  class: "h-6 w-6 text-(--lv-text-muted)"
3829
3838
  });
3830
3839
  }
3831
3840
  }), null), r;
3832
3841
  })();
3833
- }, Cs = (t, { transitionDuration: e = 200 } = {}) => {
3834
- const [r, n] = z([t]), [o, i] = z(0), a = N(() => r()[o()] ?? t), { current: s, previous: l, isTransitioning: d } = jt(a, {
3842
+ }, ws = (t, { transitionDuration: e = 200 } = {}) => {
3843
+ const [r, n] = U([t]), [o, i] = U(0), a = E(() => r()[o()] ?? t), { current: s, previous: l, isTransitioning: d } = Dt(a, {
3835
3844
  duration: e
3836
3845
  });
3837
3846
  return {
@@ -3850,37 +3859,37 @@ const ks = (t) => {
3850
3859
  isAtRoot: () => o() === 0
3851
3860
  };
3852
3861
  };
3853
- var Ss = /* @__PURE__ */ k('<div class="modal-transition__layer modal-transition__layer--outgoing">'), As = /* @__PURE__ */ k("<div><div>");
3854
- const $s = (t) => (() => {
3855
- var e = As(), r = e.firstChild;
3862
+ var xs = /* @__PURE__ */ k('<div class="modal-transition__layer modal-transition__layer--outgoing">'), ks = /* @__PURE__ */ k("<div><div>");
3863
+ const Cs = (t) => (() => {
3864
+ var e = ks(), r = e.firstChild;
3856
3865
  return b(e, v(ge, {
3857
3866
  get when() {
3858
3867
  return t.previous !== void 0;
3859
3868
  },
3860
3869
  get children() {
3861
- var n = Ss();
3870
+ var n = xs();
3862
3871
  return b(n, () => t.render(t.previous)), n;
3863
3872
  }
3864
- }), r), b(r, () => t.render(t.current)), U((n) => {
3865
- var o = ke("modal-transition__container", t.class), i = ke("modal-transition__layer", t.isTransitioning && "modal-transition__layer--incoming");
3866
- return o !== n.e && re(e, n.e = o), i !== n.t && re(r, n.t = i), n;
3873
+ }), r), b(r, () => t.render(t.current)), G((n) => {
3874
+ var o = xe("modal-transition__container", t.class), i = xe("modal-transition__layer", t.isTransitioning && "modal-transition__layer--incoming");
3875
+ return o !== n.e && ne(e, n.e = o), i !== n.t && ne(r, n.t = i), n;
3867
3876
  }, {
3868
3877
  e: void 0,
3869
3878
  t: void 0
3870
3879
  }), e;
3871
3880
  })();
3872
- var Es = /* @__PURE__ */ k('<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)">');
3873
- const Je = (t) => (() => {
3874
- var e = Es(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling;
3881
+ var Ss = /* @__PURE__ */ k('<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)">');
3882
+ const qe = (t) => (() => {
3883
+ var e = Ss(), r = e.firstChild, n = r.firstChild, o = n.nextSibling, i = r.nextSibling;
3875
3884
  return b(n, () => t.title), b(o, () => t.right), b(i, () => t.children), e;
3876
3885
  })();
3877
- var Ts = /* @__PURE__ */ k('<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>');
3878
- const Ze = (t) => (() => {
3879
- var e = Ts(), r = e.firstChild, n = r.nextSibling;
3886
+ var As = /* @__PURE__ */ k('<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>');
3887
+ const Xe = (t) => (() => {
3888
+ var e = As(), r = e.firstChild, n = r.nextSibling;
3880
3889
  return b(r, () => t.label), b(n, () => t.children), e;
3881
3890
  })();
3882
- var Ns = /* @__PURE__ */ k("<select>"), _s = /* @__PURE__ */ k("<div>"), Ps = /* @__PURE__ */ k("<button type=button>"), Rs = /* @__PURE__ */ k("<option>");
3883
- const Bs = xt({
3891
+ var $s = /* @__PURE__ */ k("<select>"), Es = /* @__PURE__ */ k("<div>"), Ts = /* @__PURE__ */ k("<button type=button>"), Ns = /* @__PURE__ */ k("<option>");
3892
+ const _s = yt({
3884
3893
  slots: {
3885
3894
  root: "flex overflow-hidden rounded-md border border-(--lv-control-button-secondary-border)",
3886
3895
  box: "px-4 py-2 font-semibold text-xs transition border-l first:border-l-0 border-(--lv-control-button-secondary-border)"
@@ -3898,69 +3907,69 @@ const Bs = xt({
3898
3907
  defaultVariants: {
3899
3908
  active: "off"
3900
3909
  }
3901
- }), Os = xt({
3910
+ }), Ps = yt({
3902
3911
  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"
3903
- }), kt = (t) => {
3904
- const e = Os(), {
3912
+ }), wt = (t) => {
3913
+ const e = Ps(), {
3905
3914
  root: r,
3906
3915
  box: n
3907
- } = Bs({});
3916
+ } = _s({});
3908
3917
  return v(ge, {
3909
3918
  get when() {
3910
3919
  return t.options.length > (t.dropdownThreshold ?? 3);
3911
3920
  },
3912
3921
  get fallback() {
3913
3922
  return (() => {
3914
- var o = _s();
3915
- return b(o, v(Ce, {
3923
+ var o = Es();
3924
+ return b(o, v(ke, {
3916
3925
  get each() {
3917
3926
  return t.options;
3918
3927
  },
3919
3928
  children: ([i, a]) => (() => {
3920
- var s = Ps();
3921
- return s.$$click = () => t.onChange(i), b(s, a), U((l) => {
3929
+ var s = Ts();
3930
+ return s.$$click = () => t.onChange(i), b(s, a), G((l) => {
3922
3931
  var d = i === t.value, u = n({
3923
3932
  active: i === t.value ? "on" : "off"
3924
3933
  });
3925
- return d !== l.e && Y(s, "aria-pressed", l.e = d), u !== l.t && re(s, l.t = u), l;
3934
+ return d !== l.e && Y(s, "aria-pressed", l.e = d), u !== l.t && ne(s, l.t = u), l;
3926
3935
  }, {
3927
3936
  e: void 0,
3928
3937
  t: void 0
3929
3938
  }), s;
3930
3939
  })()
3931
- })), U(() => re(o, r())), o;
3940
+ })), G(() => ne(o, r())), o;
3932
3941
  })();
3933
3942
  },
3934
3943
  get children() {
3935
- var o = Ns();
3936
- return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)), re(o, e), b(o, v(Ce, {
3944
+ var o = $s();
3945
+ return o.addEventListener("change", (i) => t.onChange(i.currentTarget.value)), ne(o, e), b(o, v(ke, {
3937
3946
  get each() {
3938
3947
  return t.options;
3939
3948
  },
3940
3949
  children: ([i, a]) => (() => {
3941
- var s = Rs();
3950
+ var s = Ns();
3942
3951
  return s.value = i, b(s, a), s;
3943
3952
  })()
3944
- })), U(() => o.value = t.value), o;
3953
+ })), G(() => o.value = t.value), o;
3945
3954
  }
3946
3955
  });
3947
3956
  };
3948
- Ae(["click"]);
3949
- const Is = () => {
3957
+ Se(["click"]);
3958
+ const Rs = () => {
3950
3959
  const {
3951
3960
  t
3952
- } = J(), e = un(), r = () => e.mode() === "auto";
3961
+ } = J(), e = cn(), r = () => e.mode() === "auto";
3953
3962
  return v(ge, {
3954
3963
  get when() {
3955
3964
  return r();
3956
3965
  },
3957
3966
  get children() {
3958
- return v(Ze, {
3967
+ return v(Xe, {
3959
3968
  get label() {
3960
3969
  return t("settings.theme.mode");
3961
3970
  },
3962
3971
  get children() {
3963
- return v(kt, {
3972
+ return v(wt, {
3964
3973
  get options() {
3965
3974
  return [["light", String(t("settings.theme.light"))], ["dark", String(t("settings.theme.dark"))], ["system", String(t("settings.theme.system"))]];
3966
3975
  },
@@ -3980,7 +3989,7 @@ const Is = () => {
3980
3989
  });
3981
3990
  }
3982
3991
  });
3983
- }, Ms = () => {
3992
+ }, Bs = () => {
3984
3993
  const {
3985
3994
  t,
3986
3995
  languageTag: e,
@@ -3988,24 +3997,24 @@ const Is = () => {
3988
3997
  } = J(), {
3989
3998
  settings: n,
3990
3999
  setLanguage: o
3991
- } = tt(), i = N(() => [...zt].sort((s, l) => {
3992
- const d = cr(s.tag);
3993
- return cr(l.tag) - d;
4000
+ } = Ze(), i = E(() => [...Vt].sort((s, l) => {
4001
+ const d = ar(s.tag);
4002
+ return ar(l.tag) - d;
3994
4003
  })), a = (s) => {
3995
4004
  const l = s;
3996
4005
  r(l), o(l);
3997
4006
  };
3998
- return v(Je, {
4007
+ return v(qe, {
3999
4008
  get title() {
4000
4009
  return t("settings.appearance");
4001
4010
  },
4002
4011
  get children() {
4003
- return [v(Ze, {
4012
+ return [v(Xe, {
4004
4013
  get label() {
4005
4014
  return t("settings.language");
4006
4015
  },
4007
4016
  get children() {
4008
- return v(kt, {
4017
+ return v(wt, {
4009
4018
  get options() {
4010
4019
  return i().map((s) => [s.tag, s.nativeName]);
4011
4020
  },
@@ -4015,12 +4024,12 @@ const Is = () => {
4015
4024
  onChange: a
4016
4025
  });
4017
4026
  }
4018
- }), v(Is, {})];
4027
+ }), v(Rs, {})];
4019
4028
  }
4020
4029
  });
4021
4030
  };
4022
- var Ls = /* @__PURE__ */ k("<div><div></div><div>"), Ds = /* @__PURE__ */ k("<div>Text");
4023
- const js = xt({
4031
+ var Os = /* @__PURE__ */ k("<div><div></div><div>"), Is = /* @__PURE__ */ k("<div>Text");
4032
+ const Ms = yt({
4024
4033
  slots: {
4025
4034
  root: "group relative",
4026
4035
  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)",
@@ -4050,7 +4059,7 @@ const js = xt({
4050
4059
  defaultVariants: {
4051
4060
  size: "lg"
4052
4061
  }
4053
- }), Tr = (t) => {
4062
+ }), $r = (t) => {
4054
4063
  const e = Q({
4055
4064
  variant: "icon",
4056
4065
  size: "lg"
@@ -4059,19 +4068,19 @@ const js = xt({
4059
4068
  box: n,
4060
4069
  popover: o,
4061
4070
  icon: i
4062
- } = js({
4071
+ } = Ms({
4063
4072
  size: e.size,
4064
4073
  variant: e.variant
4065
4074
  });
4066
4075
  return (() => {
4067
- var a = Ls(), s = a.firstChild, l = s.nextSibling;
4068
- return b(s, () => Oe(e.variant).with("icon", () => v(an, {
4076
+ var a = Os(), s = a.firstChild, l = s.nextSibling;
4077
+ return b(s, () => Pe(e.variant).with("icon", () => v(on, {
4069
4078
  get class() {
4070
4079
  return i();
4071
4080
  }
4072
- })).with("text", () => Ds()).exhaustive()), b(l, () => e.children), U((d) => {
4081
+ })).with("text", () => Is()).exhaustive()), b(l, () => e.children), G((d) => {
4073
4082
  var u = r(), c = n(), f = o();
4074
- return u !== d.e && re(a, d.e = u), c !== d.t && re(s, d.t = c), f !== d.a && re(l, d.a = f), d;
4083
+ 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;
4075
4084
  }, {
4076
4085
  e: void 0,
4077
4086
  t: void 0,
@@ -4079,27 +4088,27 @@ const js = xt({
4079
4088
  }), a;
4080
4089
  })();
4081
4090
  };
4082
- var Fs = /* @__PURE__ */ k('<span class="text-sm text-(--lv-text-muted)">'), Vs = /* @__PURE__ */ k('<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">');
4083
- const Nr = (t) => (() => {
4084
- var e = Vs(), r = e.firstChild, n = r.nextSibling;
4085
- return yt(e, "click", t.onClick, !0), b(r, () => t.label), b(n, v(ge, {
4091
+ var Ls = /* @__PURE__ */ k('<span class="text-sm text-(--lv-text-muted)">'), Ds = /* @__PURE__ */ k('<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">');
4092
+ const Er = (t) => (() => {
4093
+ var e = Ds(), r = e.firstChild, n = r.nextSibling;
4094
+ return mt(e, "click", t.onClick, !0), b(r, () => t.label), b(n, v(ge, {
4086
4095
  get when() {
4087
4096
  return t.value;
4088
4097
  },
4089
4098
  get children() {
4090
- var o = Fs();
4099
+ var o = Ls();
4091
4100
  return b(o, () => t.value), o;
4092
4101
  }
4093
- }), null), b(n, v(Ni, {
4102
+ }), null), b(n, v($i, {
4094
4103
  class: "h-4 w-4 text-(--lv-text-muted) rtl:rotate-180"
4095
4104
  }), null), e;
4096
4105
  })();
4097
- Ae(["click"]);
4098
- const zs = (t) => {
4106
+ Se(["click"]);
4107
+ const js = (t) => {
4099
4108
  const {
4100
4109
  t: e
4101
4110
  } = J();
4102
- return v(kt, {
4111
+ return v(wt, {
4103
4112
  get options() {
4104
4113
  return [["true", String(e("common.yes"))], ["false", String(e("common.no"))]];
4105
4114
  },
@@ -4108,22 +4117,22 @@ const zs = (t) => {
4108
4117
  },
4109
4118
  onChange: (r) => t.onChange(r === "true")
4110
4119
  });
4111
- }, Us = (t) => {
4120
+ }, Fs = (t) => {
4112
4121
  const {
4113
4122
  t: e
4114
4123
  } = J(), {
4115
4124
  settings: r,
4116
4125
  setRetainSessionHistory: n,
4117
4126
  setAutoReconnect: o
4118
- } = tt();
4119
- return v(Je, {
4127
+ } = Ze();
4128
+ return v(qe, {
4120
4129
  get title() {
4121
4130
  return e("settings.connectionPreferences.title");
4122
4131
  },
4123
4132
  get children() {
4124
- return [v(Nr, {
4133
+ return [v(Er, {
4125
4134
  get label() {
4126
- return [Ie(() => e("settings.signaling.title")), v(Tr, {
4135
+ return [Re(() => e("settings.signaling.title")), v($r, {
4127
4136
  variant: "icon",
4128
4137
  get children() {
4129
4138
  return e("settings.signaling.description");
@@ -4134,9 +4143,9 @@ const zs = (t) => {
4134
4143
  get value() {
4135
4144
  return r()?.signaling?.p;
4136
4145
  }
4137
- }), v(Nr, {
4146
+ }), v(Er, {
4138
4147
  get label() {
4139
- return [Ie(() => e("settings.transport.title")), v(Tr, {
4148
+ return [Re(() => e("settings.transport.title")), v($r, {
4140
4149
  variant: "icon",
4141
4150
  get children() {
4142
4151
  return e("settings.transport.description");
@@ -4145,14 +4154,14 @@ const zs = (t) => {
4145
4154
  },
4146
4155
  onClick: () => t.onNavigate("transport"),
4147
4156
  value: "WebRTC"
4148
- }), v(Ce, {
4157
+ }), v(ke, {
4149
4158
  get each() {
4150
4159
  return [[e("settings.connectionPreferences.retainSessionHistory"), r()?.retainHistory ?? !1, n], [e("settings.connectionPreferences.autoReconnect"), r()?.autoReconnect ?? !1, o]];
4151
4160
  },
4152
- children: ([i, a, s]) => v(Ze, {
4161
+ children: ([i, a, s]) => v(Xe, {
4153
4162
  label: i,
4154
4163
  get children() {
4155
- return v(zs, {
4164
+ return v(js, {
4156
4165
  label: i,
4157
4166
  value: a,
4158
4167
  onChange: s
@@ -4163,16 +4172,16 @@ const zs = (t) => {
4163
4172
  }
4164
4173
  });
4165
4174
  };
4166
- var Gs = /* @__PURE__ */ k('<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)">');
4167
- const Ke = (t) => {
4175
+ var Vs = /* @__PURE__ */ k('<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)">');
4176
+ const Ue = (t) => {
4168
4177
  const e = Q({
4169
4178
  readOnly: !0
4170
- }, t), [r] = wt(e, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
4179
+ }, t), [r] = bt(e, ["id", "value", "placeholder", "ariaLabel", "readOnly", "onChange"]);
4171
4180
  return (() => {
4172
- var n = Gs();
4181
+ var n = Vs();
4173
4182
  return n.$$input = (o) => {
4174
4183
  r.onChange?.(o.currentTarget.value);
4175
- }, U((o) => {
4184
+ }, G((o) => {
4176
4185
  var i = r.id, a = r.placeholder, s = r.ariaLabel, l = r.readOnly;
4177
4186
  return i !== o.e && Y(n, "id", o.e = i), a !== o.t && Y(n, "placeholder", o.t = a), s !== o.a && Y(n, "aria-label", o.a = s), l !== o.o && (n.readOnly = o.o = l), o;
4178
4187
  }, {
@@ -4180,37 +4189,37 @@ const Ke = (t) => {
4180
4189
  t: void 0,
4181
4190
  a: void 0,
4182
4191
  o: void 0
4183
- }), U(() => n.value = r.value), n;
4192
+ }), G(() => n.value = r.value), n;
4184
4193
  })();
4185
4194
  };
4186
- Ae(["input"]);
4187
- var Ws = /* @__PURE__ */ k('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');
4188
- const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
4195
+ Se(["input"]);
4196
+ var zs = /* @__PURE__ */ k('<div><div class="p-2 text-sm text-(--lv-text-secondary) text-start">');
4197
+ const Us = ["mqtt", "ntfy", "gun"], Gs = () => {
4189
4198
  const {
4190
4199
  t
4191
4200
  } = J(), {
4192
4201
  settings: e,
4193
4202
  setSignalingProtocol: r,
4194
4203
  setSignalingOptions: n
4195
- } = tt(), o = N(() => e()?.signaling?.p), i = N(() => {
4204
+ } = Ze(), o = E(() => e()?.signaling?.p), i = E(() => {
4196
4205
  const a = o();
4197
4206
  return a ? e()?.signaling?.s?.[a] ?? "" : "";
4198
4207
  });
4199
4208
  return (() => {
4200
- var a = Ws(), s = a.firstChild;
4201
- return b(a, v(Je, {
4209
+ var a = zs(), s = a.firstChild;
4210
+ return b(a, v(qe, {
4202
4211
  get title() {
4203
4212
  return t("settings.signaling.title");
4204
4213
  },
4205
4214
  get children() {
4206
- return [v(Ze, {
4215
+ return [v(Xe, {
4207
4216
  get label() {
4208
4217
  return t("common.protocol");
4209
4218
  },
4210
4219
  get children() {
4211
- return v(kt, {
4220
+ return v(wt, {
4212
4221
  get options() {
4213
- return Ks.map((l) => [l.toLowerCase(), l.toUpperCase()]);
4222
+ return Us.map((l) => [l.toLowerCase(), l.toUpperCase()]);
4214
4223
  },
4215
4224
  get value() {
4216
4225
  return o() ?? "";
@@ -4218,12 +4227,12 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
4218
4227
  onChange: (l) => r(l)
4219
4228
  });
4220
4229
  }
4221
- }), v(Ze, {
4230
+ }), v(Xe, {
4222
4231
  get label() {
4223
4232
  return t("settings.signaling.server");
4224
4233
  },
4225
4234
  get children() {
4226
- return v(Ke, {
4235
+ return v(Ue, {
4227
4236
  id: "server",
4228
4237
  get value() {
4229
4238
  return i();
@@ -4245,10 +4254,10 @@ const Ks = ["mqtt", "ntfy", "gun"], Hs = () => {
4245
4254
  }), s), b(s, () => t("settings.signaling.description")), a;
4246
4255
  })();
4247
4256
  };
4248
- var qs = /* @__PURE__ */ k('<div class="flex items-center gap-2"><div class=flex-1>'), Xs = /* @__PURE__ */ k('<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__ */ k('<div class="flex flex-col gap-2 p-2">'), Js = /* @__PURE__ */ k('<div class="flex flex-col gap-3 p-2">'), Zs = /* @__PURE__ */ k('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), Ys = /* @__PURE__ */ k('<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">');
4249
- const _r = (t) => (() => {
4250
- var e = qs(), r = e.firstChild;
4251
- return b(r, () => t.children), b(e, v(Fe, {
4257
+ var Ws = /* @__PURE__ */ k('<div class="flex items-center gap-2"><div class=flex-1>'), Ks = /* @__PURE__ */ k('<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)">'), Hs = /* @__PURE__ */ k('<div class="flex flex-col gap-2 p-2">'), qs = /* @__PURE__ */ k('<div class="flex flex-col gap-3 p-2">'), Xs = /* @__PURE__ */ k('<div class="p-2 text-sm text-(--lv-text-secondary) text-start">'), Qs = /* @__PURE__ */ k('<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">');
4258
+ const Tr = (t) => (() => {
4259
+ var e = Ws(), r = e.firstChild;
4260
+ return b(r, () => t.children), b(e, v(De, {
4252
4261
  get onClick() {
4253
4262
  return t.onRemove;
4254
4263
  },
@@ -4256,23 +4265,23 @@ const _r = (t) => (() => {
4256
4265
  $aspect: "square",
4257
4266
  $size: "sm",
4258
4267
  get children() {
4259
- return v(Ui, {
4268
+ return v(Fi, {
4260
4269
  class: "h-4 w-4 text-(--lv-text-muted)"
4261
4270
  });
4262
4271
  }
4263
4272
  }), null), e;
4264
- })(), Pr = (t) => (() => {
4265
- var e = Xs();
4266
- return yt(e, "click", t.onClick, !0), b(e, v(Oi, {
4273
+ })(), Nr = (t) => (() => {
4274
+ var e = Ks();
4275
+ return mt(e, "click", t.onClick, !0), b(e, v(Pi, {
4267
4276
  class: "h-4 w-4"
4268
4277
  }), null), b(e, () => t.label, null), e;
4269
- })(), ea = () => {
4278
+ })(), Js = () => {
4270
4279
  const {
4271
4280
  t
4272
4281
  } = J(), {
4273
4282
  settings: e,
4274
4283
  setTransportOptions: r
4275
- } = tt(), n = e()?.transport?.s?.webrtc, [o, i] = z(n?.turn ?? []), [a, s] = z(n?.stun ?? []), l = (g) => {
4284
+ } = Ze(), n = e()?.transport?.s?.webrtc, [o, i] = U(n?.turn ?? []), [a, s] = U(n?.stun ?? []), l = (g) => {
4276
4285
  s(g), r({
4277
4286
  stun: g,
4278
4287
  turn: o()
@@ -4282,81 +4291,81 @@ const _r = (t) => (() => {
4282
4291
  stun: a(),
4283
4292
  turn: g
4284
4293
  });
4285
- }, u = () => l([...a(), ""]), c = (g) => l(a().filter((C, x) => x !== g)), f = (g, C) => l(a().map((x, y) => y === g ? C : x)), h = () => d([...o(), {
4294
+ }, u = () => l([...a(), ""]), c = (g) => l(a().filter((C, x) => x !== g)), f = (g, C) => l(a().map((x, w) => w === g ? C : x)), h = () => d([...o(), {
4286
4295
  urls: ""
4287
- }]), p = (g) => d(o().filter((C, x) => x !== g)), m = (g, C, x) => d(o().map((y, R) => R === g ? {
4288
- ...y,
4296
+ }]), p = (g) => d(o().filter((C, x) => x !== g)), m = (g, C, x) => d(o().map((w, B) => B === g ? {
4297
+ ...w,
4289
4298
  [C]: x
4290
- } : y));
4291
- return [v(Je, {
4299
+ } : w));
4300
+ return [v(qe, {
4292
4301
  get title() {
4293
4302
  return t("settings.transport.iceServers.stun");
4294
4303
  },
4295
4304
  get children() {
4296
- var g = Qs();
4297
- return b(g, v(Ce, {
4305
+ var g = Hs();
4306
+ return b(g, v(ke, {
4298
4307
  get each() {
4299
4308
  return a();
4300
4309
  },
4301
- children: (C, x) => v(_r, {
4310
+ children: (C, x) => v(Tr, {
4302
4311
  onRemove: () => c(x()),
4303
4312
  get children() {
4304
- return v(Ke, {
4313
+ return v(Ue, {
4305
4314
  value: C,
4306
- onChange: (y) => f(x(), y),
4315
+ onChange: (w) => f(x(), w),
4307
4316
  placeholder: "stun:stun.l.google.com:19302",
4308
4317
  readOnly: !1
4309
4318
  });
4310
4319
  }
4311
4320
  })
4312
- }), null), b(g, v(Pr, {
4321
+ }), null), b(g, v(Nr, {
4313
4322
  get label() {
4314
4323
  return t("settings.transport.iceServers.addStun");
4315
4324
  },
4316
4325
  onClick: u
4317
4326
  }), null), g;
4318
4327
  }
4319
- }), v(Je, {
4328
+ }), v(qe, {
4320
4329
  get title() {
4321
4330
  return t("settings.transport.iceServers.turn");
4322
4331
  },
4323
4332
  get children() {
4324
- var g = Js();
4325
- return b(g, v(Ce, {
4333
+ var g = qs();
4334
+ return b(g, v(ke, {
4326
4335
  get each() {
4327
4336
  return o();
4328
4337
  },
4329
4338
  children: (C, x) => (() => {
4330
- var y = Ys(), R = y.firstChild;
4331
- return b(y, v(_r, {
4339
+ var w = Qs(), B = w.firstChild;
4340
+ return b(w, v(Tr, {
4332
4341
  onRemove: () => p(x()),
4333
4342
  get children() {
4334
- return v(Ke, {
4343
+ return v(Ue, {
4335
4344
  get value() {
4336
4345
  return C.urls;
4337
4346
  },
4338
- onChange: (E) => m(x(), "urls", E),
4347
+ onChange: (A) => m(x(), "urls", A),
4339
4348
  placeholder: "turn:relay.example.com:443",
4340
4349
  readOnly: !1
4341
4350
  });
4342
4351
  }
4343
- }), R), b(R, v(Ke, {
4352
+ }), B), b(B, v(Ue, {
4344
4353
  get value() {
4345
4354
  return C.username ?? "";
4346
4355
  },
4347
- onChange: (E) => m(x(), "username", E),
4356
+ onChange: (A) => m(x(), "username", A),
4348
4357
  placeholder: "Username",
4349
4358
  readOnly: !1
4350
- }), null), b(R, v(Ke, {
4359
+ }), null), b(B, v(Ue, {
4351
4360
  get value() {
4352
4361
  return C.credential ?? "";
4353
4362
  },
4354
- onChange: (E) => m(x(), "credential", E),
4363
+ onChange: (A) => m(x(), "credential", A),
4355
4364
  placeholder: "Password",
4356
4365
  readOnly: !1
4357
- }), null), y;
4366
+ }), null), w;
4358
4367
  })()
4359
- }), null), b(g, v(Pr, {
4368
+ }), null), b(g, v(Nr, {
4360
4369
  get label() {
4361
4370
  return t("settings.transport.iceServers.addTurn");
4362
4371
  },
@@ -4364,13 +4373,13 @@ const _r = (t) => (() => {
4364
4373
  }), null), g;
4365
4374
  }
4366
4375
  }), (() => {
4367
- var g = Zs();
4376
+ var g = Xs();
4368
4377
  return b(g, () => t("settings.transport.description")), g;
4369
4378
  })()];
4370
4379
  };
4371
- Ae(["click"]);
4372
- var ta = /* @__PURE__ */ k('<div class="px-4 pb-2">');
4373
- const ra = (t) => {
4380
+ Se(["click"]);
4381
+ var Zs = /* @__PURE__ */ k('<div class="px-4 pb-2">');
4382
+ const Ys = (t) => {
4374
4383
  switch (t) {
4375
4384
  case "main":
4376
4385
  return "settings.title";
@@ -4379,7 +4388,7 @@ const ra = (t) => {
4379
4388
  case "transport":
4380
4389
  return "settings.transport.title";
4381
4390
  }
4382
- }, na = (t) => {
4391
+ }, ea = (t) => {
4383
4392
  const {
4384
4393
  screen: e,
4385
4394
  previousScreen: r,
@@ -4387,7 +4396,7 @@ const ra = (t) => {
4387
4396
  navigate: o,
4388
4397
  goBack: i,
4389
4398
  isAtRoot: a
4390
- } = Cs("main"), s = {
4399
+ } = ws("main"), s = {
4391
4400
  goBack: i,
4392
4401
  get isAtRoot() {
4393
4402
  return a();
@@ -4396,23 +4405,23 @@ const ra = (t) => {
4396
4405
  ae(() => {
4397
4406
  t.navigationRef && (t.navigationRef.current = s);
4398
4407
  }), ae(() => {
4399
- t.onTitleChange?.(ra(e()));
4408
+ t.onTitleChange?.(Ys(e()));
4400
4409
  });
4401
4410
  const l = (d) => {
4402
4411
  switch (d) {
4403
4412
  case "main":
4404
- return [v(Us, {
4413
+ return [v(Fs, {
4405
4414
  onNavigate: o
4406
- }), v(Ms, {})];
4415
+ }), v(Bs, {})];
4407
4416
  case "signaling":
4408
- return v(Hs, {});
4417
+ return v(Gs, {});
4409
4418
  case "transport":
4410
- return v(ea, {});
4419
+ return v(Js, {});
4411
4420
  }
4412
4421
  };
4413
4422
  return (() => {
4414
- var d = ta();
4415
- return b(d, v($s, {
4423
+ var d = Zs();
4424
+ return b(d, v(Cs, {
4416
4425
  get current() {
4417
4426
  return e();
4418
4427
  },
@@ -4426,28 +4435,28 @@ const ra = (t) => {
4426
4435
  })), d;
4427
4436
  })();
4428
4437
  };
4429
- var oa = /* @__PURE__ */ k("<div class=modal-transition__container><div>"), ia = /* @__PURE__ */ k('<div class="modal-transition__layer modal-transition__layer--outgoing">'), sa = /* @__PURE__ */ k('<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>');
4430
- const aa = () => {
4431
- const [t, e] = z("start"), [r, n] = z(!1);
4438
+ var ta = /* @__PURE__ */ k("<div class=modal-transition__container><div>"), ra = /* @__PURE__ */ k('<div class="modal-transition__layer modal-transition__layer--outgoing">'), na = /* @__PURE__ */ k('<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>');
4439
+ const oa = () => {
4440
+ const [t, e] = U("start"), [r, n] = U(!1);
4432
4441
  return ae(() => {
4433
4442
  if (!r()) return;
4434
4443
  const o = globalThis.setTimeout(() => n(!1), 2e3);
4435
- ie(() => globalThis.clearTimeout(o));
4444
+ le(() => globalThis.clearTimeout(o));
4436
4445
  }), {
4437
4446
  view: t,
4438
4447
  setView: e,
4439
4448
  copied: r,
4440
4449
  setCopied: n
4441
4450
  };
4442
- }, la = (t) => {
4451
+ }, ia = (t) => {
4443
4452
  ae(() => {
4444
4453
  const e = (r) => {
4445
4454
  r.key === "Escape" && t();
4446
4455
  };
4447
- document.addEventListener("keydown", e), ie(() => document.removeEventListener("keydown", e));
4456
+ document.addEventListener("keydown", e), le(() => document.removeEventListener("keydown", e));
4448
4457
  });
4449
- }, ca = () => {
4450
- const [t, e] = z(), [r, n] = z(0), o = (a, s = !1) => {
4458
+ }, sa = () => {
4459
+ const [t, e] = U(), [r, n] = U(0), o = (a, s = !1) => {
4451
4460
  const l = a || t();
4452
4461
  if (!l || !l.getBoundingClientRect) return;
4453
4462
  const d = s ? l.scrollHeight : l.getBoundingClientRect().height;
@@ -4459,77 +4468,72 @@ const aa = () => {
4459
4468
  const s = new ResizeObserver(() => {
4460
4469
  o();
4461
4470
  });
4462
- s.observe(a), ie(() => s.disconnect());
4471
+ s.observe(a), le(() => s.disconnect());
4463
4472
  });
4464
4473
  const i = () => o();
4465
4474
  return ae(() => {
4466
- globalThis.window !== void 0 && (window.addEventListener("resize", i), ie(() => window.removeEventListener("resize", i)));
4475
+ globalThis.window !== void 0 && (window.addEventListener("resize", i), le(() => window.removeEventListener("resize", i)));
4467
4476
  }), {
4468
4477
  setContentRef: e,
4469
4478
  contentNode: t,
4470
4479
  height: r,
4471
4480
  measureHeight: o
4472
4481
  };
4473
- }, da = (t) => {
4482
+ }, aa = (t) => {
4474
4483
  const {
4475
4484
  view: e,
4476
4485
  setView: r,
4477
4486
  copied: n,
4478
4487
  setCopied: o
4479
- } = aa(), {
4488
+ } = oa(), {
4480
4489
  uri: i
4481
- } = Me(), {
4490
+ } = Be(), {
4482
4491
  provider: a
4483
- } = $e(), s = xe(a.status), {
4492
+ } = Ae(), s = we(a.status), {
4484
4493
  setContentRef: l,
4485
4494
  contentNode: d,
4486
4495
  height: u,
4487
4496
  measureHeight: c
4488
- } = ca(), {
4497
+ } = sa(), {
4489
4498
  current: f,
4490
4499
  previous: h,
4491
4500
  isTransitioning: p
4492
- } = jt(e), {
4501
+ } = Dt(e), {
4493
4502
  current: m,
4494
4503
  previous: g,
4495
4504
  isTransitioning: C
4496
- } = jt(s), x = () => r("settings"), {
4497
- t: y,
4498
- isRtl: R,
4499
- languageTag: E
4500
- } = J(), ve = un(), fe = {
4505
+ } = Dt(s), x = () => r("settings"), {
4506
+ t: w,
4507
+ isRtl: B,
4508
+ languageTag: A
4509
+ } = J(), ve = cn(), fe = {
4501
4510
  current: null
4502
- }, [Ve, rt] = z("settings.title"), ze = N(() => Oe(e()).with("start", () => y("start.title")).with("settings", () => y(Ve())).with("info", () => y("info.title")).exhaustive());
4503
- la(t.onClose), ae(() => {
4504
- s() === oe.CONNECTED && t.onClose();
4511
+ }, [je, Ye] = U("settings.title"), Fe = E(() => Pe(e()).with("start", () => w("start.title")).with("settings", () => w(je())).with("info", () => w("info.title")).exhaustive());
4512
+ ia(t.onClose), ae(() => {
4513
+ s() === se.CONNECTED && t.onClose();
4505
4514
  });
4506
- const nt = async () => {
4507
- const S = i();
4508
- S && await sn(S) && o(!0);
4509
- };
4510
- let ot = !0, Te, $, T;
4511
- const [_, B] = z(!1);
4512
- ae(() => {
4513
- m(), f(), d() && (ot ? (Te && globalThis.clearTimeout(Te), Te = globalThis.setTimeout(() => {
4514
- d() && (c(void 0, !0), ot = !1);
4515
- }, 0)) : c(), ie(() => {
4516
- Te && globalThis.clearTimeout(Te);
4517
- }));
4518
- }), ae(() => {
4519
- const S = u();
4520
- $ !== void 0 && S !== $ && S > 0 && $ > 0 && Math.abs(S - $) > 0.5 && (B(!0), T && globalThis.clearTimeout(T), T = globalThis.setTimeout(() => {
4521
- B(!1), T = void 0;
4522
- }, 200)), $ = S, ie(() => {
4523
- T && globalThis.clearTimeout(T);
4524
- });
4525
- });
4526
- const O = N(() => !(e() === "start" && s() === oe.STANDBY)), L = () => {
4527
- Oe({
4515
+ const et = async () => {
4516
+ const $ = i();
4517
+ $ && await nn($) && o(!0);
4518
+ }, [xt, tt] = U(!1);
4519
+ ae(it(d, () => {
4520
+ const $ = globalThis.setTimeout(() => c(void 0, !0), 0);
4521
+ le(() => globalThis.clearTimeout($));
4522
+ })), ae(it([m, f], () => c(), {
4523
+ defer: !0
4524
+ })), ae(it(u, ($, P) => {
4525
+ if (!P) return;
4526
+ tt(!0);
4527
+ const V = globalThis.setTimeout(() => tt(!1), 200);
4528
+ le(() => globalThis.clearTimeout(V));
4529
+ }));
4530
+ const T = E(() => !(e() === "start" && s() === se.STANDBY)), _ = () => {
4531
+ Pe({
4528
4532
  view: e(),
4529
4533
  status: s()
4530
4534
  }).with({
4531
4535
  view: "start",
4532
- status: oe.STANDBY
4536
+ status: se.STANDBY
4533
4537
  }, () => {
4534
4538
  }).with({
4535
4539
  view: "start"
@@ -4546,47 +4550,47 @@ const aa = () => {
4546
4550
  }).otherwise(() => {
4547
4551
  a.closeSession(), t.onClose();
4548
4552
  });
4549
- }, K = (S) => Oe(S).with("start", () => v(fs, {
4553
+ }, N = ($) => Pe($).with("start", () => v(cs, {
4550
4554
  onSettings: x
4551
- })).with("settings", () => v(na, {
4552
- onTitleChange: rt,
4555
+ })).with("settings", () => v(ea, {
4556
+ onTitleChange: Ye,
4553
4557
  navigationRef: fe
4554
- })).with("info", () => v(gs, {})).otherwise(() => v(Lt, {
4555
- state: S
4556
- })), le = () => (() => {
4557
- var S = oa(), V = S.firstChild;
4558
- return b(S, v(ge, {
4558
+ })).with("info", () => v(us, {})).otherwise(() => v(Mt, {
4559
+ state: $
4560
+ })), M = () => (() => {
4561
+ var $ = ta(), P = $.firstChild;
4562
+ return b($, v(ge, {
4559
4563
  get when() {
4560
4564
  return h();
4561
4565
  },
4562
- children: (Ne) => (() => {
4563
- var Ue = ia();
4564
- return b(Ue, () => K(Ne())), Ue;
4566
+ children: (V) => (() => {
4567
+ var oe = ra();
4568
+ return b(oe, () => N(V())), oe;
4565
4569
  })()
4566
- }), V), b(V, () => K(f())), U(() => re(V, ke("modal-transition__layer", p() && "modal-transition__layer--incoming"))), S;
4567
- })(), Z = (S) => Oe(S).with(oe.STANDBY, () => le()).with(Qr.union(oe.CREATING, oe.CONNECTING, oe.CONNECTED, oe.ERROR), () => v(pi, {
4570
+ }), P), b(P, () => N(f())), G(() => ne(P, xe("modal-transition__layer", p() && "modal-transition__layer--incoming"))), $;
4571
+ })(), O = ($) => Pe($).with(se.STANDBY, () => M()).with(qr.union(se.CREATING, se.CONNECTING, se.CONNECTED, se.ERROR), () => v(hi, {
4568
4572
  get onClose() {
4569
4573
  return t.onClose;
4570
4574
  },
4571
- onCopy: nt
4572
- })).otherwise((V) => v(Lt, {
4573
- state: V || "unknown status"
4574
- })), se = {
4575
+ onCopy: et
4576
+ })).otherwise((P) => v(Mt, {
4577
+ state: P || "unknown status"
4578
+ })), D = {
4575
4579
  background: "var(--lv-overlay-background, rgba(0,0,0,0.3))",
4576
4580
  "backdrop-filter": "var(--lv-overlay-backdrop-filter, blur(4px))"
4577
- }, pe = {
4581
+ }, Z = {
4578
4582
  background: "var(--lv-body-background)",
4579
4583
  color: "var(--lv-body-color, var(--lv-text-primary))",
4580
4584
  "border-radius": "var(--lv-border-radius, 16px)",
4581
4585
  "box-shadow": "var(--lv-modal-shadow, 0px 12px 32px rgba(0,0,0,0.25))"
4582
4586
  };
4583
4587
  return (() => {
4584
- var S = sa(), V = S.firstChild, Ne = V.firstChild, Ue = Ne.firstChild, Gt = Ue.firstChild, fn = Gt.firstChild, Wt = Ne.nextSibling;
4585
- return S.$$mouseup = (M) => {
4586
- M.target === M.currentTarget && t.onClose();
4587
- }, Pt(S, se), V.$$click = (M) => M.stopPropagation(), Wr(l, Ne), b(Ne, v(ks, {
4588
+ var $ = na(), P = $.firstChild, V = P.firstChild, oe = V.firstChild, ie = oe.firstChild, Oe = ie.firstChild, Ut = V.nextSibling;
4589
+ return $.$$mouseup = (L) => {
4590
+ L.target === L.currentTarget && t.onClose();
4591
+ }, _t($, D), P.$$click = (L) => L.stopPropagation(), Ur(l, V), b(V, v(ys, {
4588
4592
  get title() {
4589
- return String(ze());
4593
+ return String(Fe());
4590
4594
  },
4591
4595
  get view() {
4592
4596
  return e();
@@ -4595,17 +4599,17 @@ const aa = () => {
4595
4599
  return t.onClose;
4596
4600
  },
4597
4601
  get onBack() {
4598
- return O() ? L : void 0;
4602
+ return T() ? _ : void 0;
4599
4603
  },
4600
4604
  setView: r
4601
- }), Ue), b(fn, () => Z(s())), b(Ne, v(ys, {}), null), b(Wt, () => y("modal.urlCopied")), U((M) => {
4602
- var Kt = ve.applied(), Ht = E(), qt = R() ? "rtl" : "ltr", Xt = ke("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", _() || g() ? "overflow-hidden" : void 0), Qt = String(ze()), hn = {
4605
+ }), oe), b(Oe, () => O(s())), b(V, v(bs, {}), null), b(Ut, () => w("modal.urlCopied")), G((L) => {
4606
+ var Gt = ve.applied(), Wt = A(), Kt = B() ? "rtl" : "ltr", Ht = xe("relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] transition-[height] duration-200 ease-out", xt() || g() ? "overflow-hidden" : void 0), qt = String(Fe()), dn = {
4603
4607
  ...typeof u() == "number" && u() > 0 && {
4604
4608
  height: `${u()}px`
4605
4609
  },
4606
- ...pe
4607
- }, Jt = ke("modal-transition__layer", C() && "modal-transition__layer--incoming"), Zt = 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");
4608
- return Kt !== M.e && Y(S, "data-openlv-theme-mode", M.e = Kt), Ht !== M.t && Y(S, "lang", M.t = Ht), qt !== M.a && Y(S, "dir", M.a = qt), Xt !== M.o && re(V, M.o = Xt), Qt !== M.i && Y(V, "aria-label", M.i = Qt), M.n = Pt(V, hn, M.n), Jt !== M.s && re(Gt, M.s = Jt), Zt !== M.h && re(Wt, M.h = Zt), M;
4610
+ ...Z
4611
+ }, Xt = xe("modal-transition__layer", C() && "modal-transition__layer--incoming"), Qt = xe("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");
4612
+ return Gt !== L.e && Y($, "data-openlv-theme-mode", L.e = Gt), Wt !== L.t && Y($, "lang", L.t = Wt), Kt !== L.a && Y($, "dir", L.a = Kt), Ht !== L.o && ne(P, L.o = Ht), qt !== L.i && Y(P, "aria-label", L.i = qt), L.n = _t(P, dn, L.n), Xt !== L.s && ne(ie, L.s = Xt), Qt !== L.h && ne(Ut, L.h = Qt), L;
4609
4613
  }, {
4610
4614
  e: void 0,
4611
4615
  t: void 0,
@@ -4615,32 +4619,32 @@ const aa = () => {
4615
4619
  n: void 0,
4616
4620
  s: void 0,
4617
4621
  h: void 0
4618
- }), S;
4622
+ }), $;
4619
4623
  })();
4620
4624
  };
4621
- Ae(["mouseup", "click"]);
4622
- const ua = (...t) => console.log(
4625
+ Se(["mouseup", "click"]);
4626
+ const la = (...t) => console.log(
4623
4627
  "%c[modal]%c",
4624
4628
  "color: yellow; font-weight: bold",
4625
4629
  "color: inherit; font-weight: normal",
4626
4630
  ...t
4627
- ), fa = (t = "openlv-modal") => {
4631
+ ), ca = (t = "openlv-modal") => {
4628
4632
  if (globalThis.window === void 0)
4629
4633
  return t;
4630
4634
  const e = globalThis.customElements;
4631
4635
  return e ? (e.get(t) || e.define(
4632
4636
  t,
4633
- Yr
4637
+ Jr
4634
4638
  ), t) : (console.warn(
4635
4639
  "OpenLV modal: custom elements are not supported in this environment."
4636
4640
  ), t);
4637
- }, ga = (t) => {
4641
+ }, ua = (t) => {
4638
4642
  const e = document.querySelector("openlv-modal");
4639
4643
  if (e && e.remove(), !e) {
4640
- fa();
4641
- const r = new Yr({
4644
+ ca();
4645
+ const r = new Jr({
4642
4646
  onClose() {
4643
- ua("modal closed"), r.remove(), t.onClose?.();
4647
+ la("modal closed"), r.remove(), t.onClose?.();
4644
4648
  },
4645
4649
  provider: t.provider,
4646
4650
  theme: t.theme
@@ -4649,11 +4653,11 @@ const ua = (...t) => console.log(
4649
4653
  }
4650
4654
  };
4651
4655
  export {
4652
- da as ModalRoot,
4653
- vs as OPENLV_ICON_128,
4654
- Yr as OpenLVModalElement,
4655
- Yr as default,
4656
- fa as registerOpenLVModal,
4657
- ga as triggerOpenModal
4656
+ aa as ModalRoot,
4657
+ fs as OPENLV_ICON_128,
4658
+ Jr as OpenLVModalElement,
4659
+ Jr as default,
4660
+ ca as registerOpenLVModal,
4661
+ ua as triggerOpenModal
4658
4662
  };
4659
4663
  //# sourceMappingURL=index.es.js.map