@openlv/modal 0.0.1-beta.5 → 0.0.1-beta.6

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,211 +1,283 @@
1
1
  var ir = Object.defineProperty;
2
2
  var or = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var ae = (e, t, r) => or(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsx as s, jsxs as m, Fragment as Nt } from "preact/jsx-runtime";
5
- import { useContext as $e, useState as O, useEffect as z, useCallback as I, useRef as L, useReducer as Ct, useMemo as At, useLayoutEffect as ue, useImperativeHandle as Ot, useId as jt, useDebugValue as Tt } from "preact/hooks";
6
- import { createContext as Rt, createElement as K, Fragment as ve, Component as le, createRef as ar, toChildArray as ee, cloneElement as sr, render as ce, hydrate as lr, options as R, h as cr } from "preact";
3
+ var fe = (e, t, r) => or(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { jsx as l, jsxs as b, Fragment as kt } from "preact/jsx-runtime";
5
+ import { useState as M, useRef as J, useReducer as Ct, useMemo as At, useLayoutEffect as ve, useImperativeHandle as St, useId as Et, useEffect as B, useDebugValue as Ot, useContext as Ze, useCallback as q } from "preact/hooks";
6
+ import { createElement as ee, Fragment as _e, Component as he, createRef as ar, createContext as Rt, toChildArray as ce, cloneElement as sr, render as ge, hydrate as lr, options as F, h as cr } from "preact";
7
7
  import ur from "qrcode-generator";
8
- function dr(e) {
8
+ const dr = 1, fr = (e) => {
9
+ const t = new URLSearchParams();
10
+ return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}@${dr}?${t.toString()}`;
11
+ };
12
+ function pr(e) {
9
13
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
10
14
  }
11
- var Me = { exports: {} };
12
- /*!
13
- Copyright (c) 2018 Jed Watson.
14
- Licensed under the MIT License (MIT), see
15
- http://jedwatson.github.io/classnames
16
- */
17
- var ct;
18
- function pr() {
19
- return ct || (ct = 1, (function(e) {
20
- (function() {
21
- var t = {}.hasOwnProperty;
22
- function r() {
23
- for (var o = "", a = 0; a < arguments.length; a++) {
24
- var l = arguments[a];
25
- l && (o = i(o, n(l)));
15
+ var ze = { exports: {} }, st;
16
+ function hr() {
17
+ return st || (st = 1, (function(e) {
18
+ var t = Object.prototype.hasOwnProperty, r = "~";
19
+ function n() {
20
+ }
21
+ Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
22
+ function i(c, u, d) {
23
+ this.fn = c, this.context = u, this.once = d || !1;
24
+ }
25
+ function o(c, u, d, p, w) {
26
+ if (typeof d != "function")
27
+ throw new TypeError("The listener must be a function");
28
+ var S = new i(d, p || c, w), N = r ? r + u : u;
29
+ return c._events[N] ? c._events[N].fn ? c._events[N] = [c._events[N], S] : c._events[N].push(S) : (c._events[N] = S, c._eventsCount++), c;
30
+ }
31
+ function a(c, u) {
32
+ --c._eventsCount === 0 ? c._events = new n() : delete c._events[u];
33
+ }
34
+ function s() {
35
+ this._events = new n(), this._eventsCount = 0;
36
+ }
37
+ s.prototype.eventNames = function() {
38
+ var u = [], d, p;
39
+ if (this._eventsCount === 0) return u;
40
+ for (p in d = this._events)
41
+ t.call(d, p) && u.push(r ? p.slice(1) : p);
42
+ return Object.getOwnPropertySymbols ? u.concat(Object.getOwnPropertySymbols(d)) : u;
43
+ }, s.prototype.listeners = function(u) {
44
+ var d = r ? r + u : u, p = this._events[d];
45
+ if (!p) return [];
46
+ if (p.fn) return [p.fn];
47
+ for (var w = 0, S = p.length, N = new Array(S); w < S; w++)
48
+ N[w] = p[w].fn;
49
+ return N;
50
+ }, s.prototype.listenerCount = function(u) {
51
+ var d = r ? r + u : u, p = this._events[d];
52
+ return p ? p.fn ? 1 : p.length : 0;
53
+ }, s.prototype.emit = function(u, d, p, w, S, N) {
54
+ var P = r ? r + u : u;
55
+ if (!this._events[P]) return !1;
56
+ var f = this._events[P], j = arguments.length, O, k;
57
+ if (f.fn) {
58
+ switch (f.once && this.removeListener(u, f.fn, void 0, !0), j) {
59
+ case 1:
60
+ return f.fn.call(f.context), !0;
61
+ case 2:
62
+ return f.fn.call(f.context, d), !0;
63
+ case 3:
64
+ return f.fn.call(f.context, d, p), !0;
65
+ case 4:
66
+ return f.fn.call(f.context, d, p, w), !0;
67
+ case 5:
68
+ return f.fn.call(f.context, d, p, w, S), !0;
69
+ case 6:
70
+ return f.fn.call(f.context, d, p, w, S, N), !0;
26
71
  }
27
- return o;
28
- }
29
- function n(o) {
30
- if (typeof o == "string" || typeof o == "number")
31
- return o;
32
- if (typeof o != "object")
33
- return "";
34
- if (Array.isArray(o))
35
- return r.apply(null, o);
36
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
37
- return o.toString();
38
- var a = "";
39
- for (var l in o)
40
- t.call(o, l) && o[l] && (a = i(a, l));
41
- return a;
72
+ for (k = 1, O = new Array(j - 1); k < j; k++)
73
+ O[k - 1] = arguments[k];
74
+ f.fn.apply(f.context, O);
75
+ } else {
76
+ var H = f.length, Y;
77
+ for (k = 0; k < H; k++)
78
+ switch (f[k].once && this.removeListener(u, f[k].fn, void 0, !0), j) {
79
+ case 1:
80
+ f[k].fn.call(f[k].context);
81
+ break;
82
+ case 2:
83
+ f[k].fn.call(f[k].context, d);
84
+ break;
85
+ case 3:
86
+ f[k].fn.call(f[k].context, d, p);
87
+ break;
88
+ case 4:
89
+ f[k].fn.call(f[k].context, d, p, w);
90
+ break;
91
+ default:
92
+ if (!O) for (Y = 1, O = new Array(j - 1); Y < j; Y++)
93
+ O[Y - 1] = arguments[Y];
94
+ f[k].fn.apply(f[k].context, O);
95
+ }
42
96
  }
43
- function i(o, a) {
44
- return a ? o ? o + " " + a : o + a : o;
97
+ return !0;
98
+ }, s.prototype.on = function(u, d, p) {
99
+ return o(this, u, d, p, !1);
100
+ }, s.prototype.once = function(u, d, p) {
101
+ return o(this, u, d, p, !0);
102
+ }, s.prototype.removeListener = function(u, d, p, w) {
103
+ var S = r ? r + u : u;
104
+ if (!this._events[S]) return this;
105
+ if (!d)
106
+ return a(this, S), this;
107
+ var N = this._events[S];
108
+ if (N.fn)
109
+ N.fn === d && (!w || N.once) && (!p || N.context === p) && a(this, S);
110
+ else {
111
+ for (var P = 0, f = [], j = N.length; P < j; P++)
112
+ (N[P].fn !== d || w && !N[P].once || p && N[P].context !== p) && f.push(N[P]);
113
+ f.length ? this._events[S] = f.length === 1 ? f[0] : f : a(this, S);
45
114
  }
46
- e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
47
- })();
48
- })(Me)), Me.exports;
49
- }
50
- var fr = pr();
51
- const se = /* @__PURE__ */ dr(fr), T = Symbol.for("@ts-pattern/matcher"), Et = Symbol.for("@ts-pattern/isVariadic"), Ce = "@ts-pattern/anonymous-select-key", Fe = (e) => !!(e && typeof e == "object"), Se = (e) => e && !!e[T], k = (e, t, r) => {
115
+ return this;
116
+ }, s.prototype.removeAllListeners = function(u) {
117
+ var d;
118
+ return u ? (d = r ? r + u : u, this._events[d] && a(this, d)) : (this._events = new n(), this._eventsCount = 0), this;
119
+ }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, e.exports = s;
120
+ })(ze)), ze.exports;
121
+ }
122
+ hr();
123
+ const V = Symbol.for("@ts-pattern/matcher"), Tt = Symbol.for("@ts-pattern/isVariadic"), Oe = "@ts-pattern/anonymous-select-key", He = (e) => !!(e && typeof e == "object"), Se = (e) => e && !!e[V], E = (e, t, r) => {
52
124
  if (Se(e)) {
53
- const n = e[T](), { matched: i, selections: o } = n.match(t);
125
+ const n = e[V](), { matched: i, selections: o } = n.match(t);
54
126
  return i && o && Object.keys(o).forEach((a) => r(a, o[a])), i;
55
127
  }
56
- if (Fe(e)) {
57
- if (!Fe(t)) return !1;
128
+ if (He(e)) {
129
+ if (!He(t)) return !1;
58
130
  if (Array.isArray(e)) {
59
131
  if (!Array.isArray(t)) return !1;
60
132
  let n = [], i = [], o = [];
61
133
  for (const a of e.keys()) {
62
- const l = e[a];
63
- Se(l) && l[Et] ? o.push(l) : o.length ? i.push(l) : n.push(l);
134
+ const s = e[a];
135
+ Se(s) && s[Tt] ? o.push(s) : o.length ? i.push(s) : n.push(s);
64
136
  }
65
137
  if (o.length) {
66
138
  if (o.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
67
139
  if (t.length < n.length + i.length) return !1;
68
- const a = t.slice(0, n.length), l = i.length === 0 ? [] : t.slice(-i.length), c = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
69
- return n.every((g, v) => k(g, a[v], r)) && i.every((g, v) => k(g, l[v], r)) && (o.length === 0 || k(o[0], c, r));
140
+ const a = t.slice(0, n.length), s = i.length === 0 ? [] : t.slice(-i.length), c = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
141
+ return n.every((u, d) => E(u, a[d], r)) && i.every((u, d) => E(u, s[d], r)) && (o.length === 0 || E(o[0], c, r));
70
142
  }
71
- return e.length === t.length && e.every((a, l) => k(a, t[l], r));
143
+ return e.length === t.length && e.every((a, s) => E(a, t[s], r));
72
144
  }
73
145
  return Reflect.ownKeys(e).every((n) => {
74
146
  const i = e[n];
75
- return (n in t || Se(o = i) && o[T]().matcherType === "optional") && k(i, t[n], r);
147
+ return (n in t || Se(o = i) && o[V]().matcherType === "optional") && E(i, t[n], r);
76
148
  var o;
77
149
  });
78
150
  }
79
151
  return Object.is(t, e);
80
- }, j = (e) => {
152
+ }, z = (e) => {
81
153
  var t, r, n;
82
- return Fe(e) ? Se(e) ? (t = (r = (n = e[T]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? ye(e, j) : ye(Object.values(e), j) : [];
83
- }, ye = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
84
- function hr(...e) {
154
+ return He(e) ? Se(e) ? (t = (r = (n = e[V]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ne(e, z) : Ne(Object.values(e), z) : [];
155
+ }, Ne = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
156
+ function gr(...e) {
85
157
  if (e.length === 1) {
86
158
  const [t] = e;
87
- return (r) => k(t, r, () => {
159
+ return (r) => E(t, r, () => {
88
160
  });
89
161
  }
90
162
  if (e.length === 2) {
91
163
  const [t, r] = e;
92
- return k(t, r, () => {
164
+ return E(t, r, () => {
93
165
  });
94
166
  }
95
167
  throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`);
96
168
  }
97
- function _(e) {
98
- return Object.assign(e, { optional: () => et(e), and: (t) => b(e, t), or: (t) => Pt(e, t), select: (t) => t === void 0 ? we(e) : we(t, e) });
169
+ function R(e) {
170
+ return Object.assign(e, { optional: () => qe(e), and: (t) => C(e, t), or: (t) => jt(e, t), select: (t) => t === void 0 ? ke(e) : ke(t, e) });
99
171
  }
100
- function Ie(e) {
172
+ function Ge(e) {
101
173
  return Object.assign(((t) => Object.assign(t, { [Symbol.iterator]() {
102
174
  let r = 0;
103
- const n = [{ value: Object.assign(t, { [Et]: !0 }), done: !1 }, { done: !0, value: void 0 }];
175
+ const n = [{ value: Object.assign(t, { [Tt]: !0 }), done: !1 }, { done: !0, value: void 0 }];
104
176
  return { next: () => {
105
177
  var i;
106
178
  return (i = n[r++]) != null ? i : n.at(-1);
107
179
  } };
108
- } }))(e), { optional: () => Ie(et(e)), select: (t) => Ie(t === void 0 ? we(e) : we(t, e)) });
180
+ } }))(e), { optional: () => Ge(qe(e)), select: (t) => Ge(t === void 0 ? ke(e) : ke(t, e)) });
109
181
  }
110
- function et(e) {
111
- return _({ [T]: () => ({ match: (t) => {
182
+ function qe(e) {
183
+ return R({ [V]: () => ({ match: (t) => {
112
184
  let r = {};
113
185
  const n = (i, o) => {
114
186
  r[i] = o;
115
187
  };
116
- return t === void 0 ? (j(e).forEach((i) => n(i, void 0)), { matched: !0, selections: r }) : { matched: k(e, t, n), selections: r };
117
- }, getSelectionKeys: () => j(e), matcherType: "optional" }) });
188
+ return t === void 0 ? (z(e).forEach((i) => n(i, void 0)), { matched: !0, selections: r }) : { matched: E(e, t, n), selections: r };
189
+ }, getSelectionKeys: () => z(e), matcherType: "optional" }) });
118
190
  }
119
- const gr = (e, t) => {
191
+ const vr = (e, t) => {
120
192
  for (const r of e) if (!t(r)) return !1;
121
193
  return !0;
122
194
  }, mr = (e, t) => {
123
195
  for (const [r, n] of e.entries()) if (!t(n, r)) return !1;
124
196
  return !0;
125
- }, vr = (e, t) => {
197
+ }, yr = (e, t) => {
126
198
  const r = Reflect.ownKeys(e);
127
199
  for (const n of r) if (!t(n, e[n])) return !1;
128
200
  return !0;
129
201
  };
130
- function b(...e) {
131
- return _({ [T]: () => ({ match: (t) => {
202
+ function C(...e) {
203
+ return R({ [V]: () => ({ match: (t) => {
132
204
  let r = {};
133
205
  const n = (i, o) => {
134
206
  r[i] = o;
135
207
  };
136
- return { matched: e.every((i) => k(i, t, n)), selections: r };
137
- }, getSelectionKeys: () => ye(e, j), matcherType: "and" }) });
208
+ return { matched: e.every((i) => E(i, t, n)), selections: r };
209
+ }, getSelectionKeys: () => Ne(e, z), matcherType: "and" }) });
138
210
  }
139
- function Pt(...e) {
140
- return _({ [T]: () => ({ match: (t) => {
211
+ function jt(...e) {
212
+ return R({ [V]: () => ({ match: (t) => {
141
213
  let r = {};
142
214
  const n = (i, o) => {
143
215
  r[i] = o;
144
216
  };
145
- return ye(e, j).forEach((i) => n(i, void 0)), { matched: e.some((i) => k(i, t, n)), selections: r };
146
- }, getSelectionKeys: () => ye(e, j), matcherType: "or" }) });
217
+ return Ne(e, z).forEach((i) => n(i, void 0)), { matched: e.some((i) => E(i, t, n)), selections: r };
218
+ }, getSelectionKeys: () => Ne(e, z), matcherType: "or" }) });
147
219
  }
148
- function f(e) {
149
- return { [T]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
220
+ function m(e) {
221
+ return { [V]: () => ({ match: (t) => ({ matched: !!e(t) }) }) };
150
222
  }
151
- function we(...e) {
223
+ function ke(...e) {
152
224
  const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
153
- return _({ [T]: () => ({ match: (n) => {
154
- let i = { [t ?? Ce]: n };
155
- return { matched: r === void 0 || k(r, n, (o, a) => {
225
+ return R({ [V]: () => ({ match: (n) => {
226
+ let i = { [t ?? Oe]: n };
227
+ return { matched: r === void 0 || E(r, n, (o, a) => {
156
228
  i[o] = a;
157
229
  }), selections: i };
158
- }, getSelectionKeys: () => [t ?? Ce].concat(r === void 0 ? [] : j(r)) }) });
230
+ }, getSelectionKeys: () => [t ?? Oe].concat(r === void 0 ? [] : z(r)) }) });
159
231
  }
160
- function zt(e) {
232
+ function Dt(e) {
161
233
  return !0;
162
234
  }
163
- function B(e) {
235
+ function Q(e) {
164
236
  return typeof e == "number";
165
237
  }
166
- function Z(e) {
238
+ function ie(e) {
167
239
  return typeof e == "string";
168
240
  }
169
- function q(e) {
241
+ function oe(e) {
170
242
  return typeof e == "bigint";
171
243
  }
172
- const Vt = _(f(zt)), yr = _(f(zt)), wr = Vt, Y = (e) => Object.assign(_(e), { startsWith: (t) => {
173
- return Y(b(e, (r = t, f((n) => Z(n) && n.startsWith(r)))));
244
+ const It = R(m(Dt)), wr = R(m(Dt)), br = It, ae = (e) => Object.assign(R(e), { startsWith: (t) => {
245
+ return ae(C(e, (r = t, m((n) => ie(n) && n.startsWith(r)))));
174
246
  var r;
175
247
  }, endsWith: (t) => {
176
- return Y(b(e, (r = t, f((n) => Z(n) && n.endsWith(r)))));
248
+ return ae(C(e, (r = t, m((n) => ie(n) && n.endsWith(r)))));
177
249
  var r;
178
- }, minLength: (t) => Y(b(e, ((r) => f((n) => Z(n) && n.length >= r))(t))), length: (t) => Y(b(e, ((r) => f((n) => Z(n) && n.length === r))(t))), maxLength: (t) => Y(b(e, ((r) => f((n) => Z(n) && n.length <= r))(t))), includes: (t) => {
179
- return Y(b(e, (r = t, f((n) => Z(n) && n.includes(r)))));
250
+ }, minLength: (t) => ae(C(e, ((r) => m((n) => ie(n) && n.length >= r))(t))), length: (t) => ae(C(e, ((r) => m((n) => ie(n) && n.length === r))(t))), maxLength: (t) => ae(C(e, ((r) => m((n) => ie(n) && n.length <= r))(t))), includes: (t) => {
251
+ return ae(C(e, (r = t, m((n) => ie(n) && n.includes(r)))));
180
252
  var r;
181
253
  }, regex: (t) => {
182
- return Y(b(e, (r = t, f((n) => Z(n) && !!n.match(r)))));
254
+ return ae(C(e, (r = t, m((n) => ie(n) && !!n.match(r)))));
183
255
  var r;
184
- } }), ut = Y(f(Z)), F = (e) => Object.assign(_(e), { between: (t, r) => F(b(e, ((n, i) => f((o) => B(o) && n <= o && i >= o))(t, r))), lt: (t) => F(b(e, ((r) => f((n) => B(n) && n < r))(t))), gt: (t) => F(b(e, ((r) => f((n) => B(n) && n > r))(t))), lte: (t) => F(b(e, ((r) => f((n) => B(n) && n <= r))(t))), gte: (t) => F(b(e, ((r) => f((n) => B(n) && n >= r))(t))), int: () => F(b(e, f((t) => B(t) && Number.isInteger(t)))), finite: () => F(b(e, f((t) => B(t) && Number.isFinite(t)))), positive: () => F(b(e, f((t) => B(t) && t > 0))), negative: () => F(b(e, f((t) => B(t) && t < 0))) }), br = F(f(B)), $ = (e) => Object.assign(_(e), { between: (t, r) => $(b(e, ((n, i) => f((o) => q(o) && n <= o && i >= o))(t, r))), lt: (t) => $(b(e, ((r) => f((n) => q(n) && n < r))(t))), gt: (t) => $(b(e, ((r) => f((n) => q(n) && n > r))(t))), lte: (t) => $(b(e, ((r) => f((n) => q(n) && n <= r))(t))), gte: (t) => $(b(e, ((r) => f((n) => q(n) && n >= r))(t))), positive: () => $(b(e, f((t) => q(t) && t > 0))), negative: () => $(b(e, f((t) => q(t) && t < 0))) }), xr = $(f(q)), kr = _(f(function(e) {
256
+ } }), lt = ae(m(ie)), Z = (e) => Object.assign(R(e), { between: (t, r) => Z(C(e, ((n, i) => m((o) => Q(o) && n <= o && i >= o))(t, r))), lt: (t) => Z(C(e, ((r) => m((n) => Q(n) && n < r))(t))), gt: (t) => Z(C(e, ((r) => m((n) => Q(n) && n > r))(t))), lte: (t) => Z(C(e, ((r) => m((n) => Q(n) && n <= r))(t))), gte: (t) => Z(C(e, ((r) => m((n) => Q(n) && n >= r))(t))), int: () => Z(C(e, m((t) => Q(t) && Number.isInteger(t)))), finite: () => Z(C(e, m((t) => Q(t) && Number.isFinite(t)))), positive: () => Z(C(e, m((t) => Q(t) && t > 0))), negative: () => Z(C(e, m((t) => Q(t) && t < 0))) }), xr = Z(m(Q)), se = (e) => Object.assign(R(e), { between: (t, r) => se(C(e, ((n, i) => m((o) => oe(o) && n <= o && i >= o))(t, r))), lt: (t) => se(C(e, ((r) => m((n) => oe(n) && n < r))(t))), gt: (t) => se(C(e, ((r) => m((n) => oe(n) && n > r))(t))), lte: (t) => se(C(e, ((r) => m((n) => oe(n) && n <= r))(t))), gte: (t) => se(C(e, ((r) => m((n) => oe(n) && n >= r))(t))), positive: () => se(C(e, m((t) => oe(t) && t > 0))), negative: () => se(C(e, m((t) => oe(t) && t < 0))) }), _r = se(m(oe)), Nr = R(m(function(e) {
185
257
  return typeof e == "boolean";
186
- })), _r = _(f(function(e) {
258
+ })), kr = R(m(function(e) {
187
259
  return typeof e == "symbol";
188
- })), Sr = _(f(function(e) {
260
+ })), Cr = R(m(function(e) {
189
261
  return e == null;
190
- })), Nr = _(f(function(e) {
262
+ })), Ar = R(m(function(e) {
191
263
  return e != null;
192
264
  }));
193
- var tt = { __proto__: null, matcher: T, optional: et, array: function(...e) {
194
- return Ie({ [T]: () => ({ match: (t) => {
265
+ var Pt = { __proto__: null, matcher: V, optional: qe, array: function(...e) {
266
+ return Ge({ [V]: () => ({ match: (t) => {
195
267
  if (!Array.isArray(t)) return { matched: !1 };
196
268
  if (e.length === 0) return { matched: !0 };
197
269
  const r = e[0];
198
270
  let n = {};
199
- if (t.length === 0) return j(r).forEach((o) => {
271
+ if (t.length === 0) return z(r).forEach((o) => {
200
272
  n[o] = [];
201
273
  }), { matched: !0, selections: n };
202
274
  const i = (o, a) => {
203
275
  n[o] = (n[o] || []).concat([a]);
204
276
  };
205
- return { matched: t.every((o) => k(r, o, i)), selections: n };
206
- }, getSelectionKeys: () => e.length === 0 ? [] : j(e[0]) }) });
277
+ return { matched: t.every((o) => E(r, o, i)), selections: n };
278
+ }, getSelectionKeys: () => e.length === 0 ? [] : z(e[0]) }) });
207
279
  }, set: function(...e) {
208
- return _({ [T]: () => ({ match: (t) => {
280
+ return R({ [V]: () => ({ match: (t) => {
209
281
  if (!(t instanceof Set)) return { matched: !1 };
210
282
  let r = {};
211
283
  if (t.size === 0) return { matched: !0, selections: r };
@@ -213,50 +285,50 @@ var tt = { __proto__: null, matcher: T, optional: et, array: function(...e) {
213
285
  const n = (o, a) => {
214
286
  r[o] = (r[o] || []).concat([a]);
215
287
  }, i = e[0];
216
- return { matched: gr(t, (o) => k(i, o, n)), selections: r };
217
- }, getSelectionKeys: () => e.length === 0 ? [] : j(e[0]) }) });
288
+ return { matched: vr(t, (o) => E(i, o, n)), selections: r };
289
+ }, getSelectionKeys: () => e.length === 0 ? [] : z(e[0]) }) });
218
290
  }, map: function(...e) {
219
- return _({ [T]: () => ({ match: (t) => {
291
+ return R({ [V]: () => ({ match: (t) => {
220
292
  if (!(t instanceof Map)) return { matched: !1 };
221
293
  let r = {};
222
294
  if (t.size === 0) return { matched: !0, selections: r };
223
- const n = (l, c) => {
224
- r[l] = (r[l] || []).concat([c]);
295
+ const n = (s, c) => {
296
+ r[s] = (r[s] || []).concat([c]);
225
297
  };
226
298
  if (e.length === 0) return { matched: !0 };
227
299
  var i;
228
300
  if (e.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i = e[0]) == null ? void 0 : i.toString()}`);
229
301
  const [o, a] = e;
230
- return { matched: mr(t, (l, c) => {
231
- const g = k(o, c, n), v = k(a, l, n);
232
- return g && v;
302
+ return { matched: mr(t, (s, c) => {
303
+ const u = E(o, c, n), d = E(a, s, n);
304
+ return u && d;
233
305
  }), selections: r };
234
- }, getSelectionKeys: () => e.length === 0 ? [] : [...j(e[0]), ...j(e[1])] }) });
306
+ }, getSelectionKeys: () => e.length === 0 ? [] : [...z(e[0]), ...z(e[1])] }) });
235
307
  }, record: function(...e) {
236
- return _({ [T]: () => ({ match: (t) => {
308
+ return R({ [V]: () => ({ match: (t) => {
237
309
  if (t === null || typeof t != "object" || Array.isArray(t)) return { matched: !1 };
238
310
  var r;
239
311
  if (e.length === 0) throw new Error(`\`P.record\` wasn't given enough arguments. Expected (value) or (key, value), received ${(r = e[0]) == null ? void 0 : r.toString()}`);
240
312
  let n = {};
241
- const i = (l, c) => {
242
- n[l] = (n[l] || []).concat([c]);
243
- }, [o, a] = e.length === 1 ? [ut, e[0]] : e;
244
- return { matched: vr(t, (l, c) => {
245
- const g = typeof l != "string" || Number.isNaN(Number(l)) ? null : Number(l), v = g !== null && k(o, g, i), W = k(o, l, i), S = k(a, c, i);
246
- return (W || v) && S;
313
+ const i = (s, c) => {
314
+ n[s] = (n[s] || []).concat([c]);
315
+ }, [o, a] = e.length === 1 ? [lt, e[0]] : e;
316
+ return { matched: yr(t, (s, c) => {
317
+ const u = typeof s != "string" || Number.isNaN(Number(s)) ? null : Number(s), d = u !== null && E(o, u, i), p = E(o, s, i), w = E(a, c, i);
318
+ return (p || d) && w;
247
319
  }), selections: n };
248
- }, getSelectionKeys: () => e.length === 0 ? [] : [...j(e[0]), ...j(e[1])] }) });
249
- }, intersection: b, union: Pt, not: function(e) {
250
- return _({ [T]: () => ({ match: (t) => ({ matched: !k(e, t, () => {
320
+ }, getSelectionKeys: () => e.length === 0 ? [] : [...z(e[0]), ...z(e[1])] }) });
321
+ }, intersection: C, union: jt, not: function(e) {
322
+ return R({ [V]: () => ({ match: (t) => ({ matched: !E(e, t, () => {
251
323
  }) }), getSelectionKeys: () => [], matcherType: "not" }) });
252
- }, when: f, select: we, any: Vt, unknown: yr, _: wr, string: ut, number: br, bigint: xr, boolean: kr, symbol: _r, nullish: Sr, nonNullable: Nr, instanceOf: function(e) {
253
- return _(f(/* @__PURE__ */ (function(t) {
324
+ }, when: m, select: ke, any: It, unknown: wr, _: br, string: lt, number: xr, bigint: _r, boolean: Nr, symbol: kr, nullish: Cr, nonNullable: Ar, instanceOf: function(e) {
325
+ return R(m(/* @__PURE__ */ (function(t) {
254
326
  return (r) => r instanceof t;
255
327
  })(e)));
256
328
  }, shape: function(e) {
257
- return _(f(hr(e)));
329
+ return R(m(gr(e)));
258
330
  } };
259
- let Cr = class extends Error {
331
+ let Sr = class extends Error {
260
332
  constructor(t) {
261
333
  let r;
262
334
  try {
@@ -268,10 +340,10 @@ let Cr = class extends Error {
268
340
  }
269
341
  };
270
342
  const We = { matched: !1, value: void 0 };
271
- function D(e) {
272
- return new Ar(e, We);
343
+ function X(e) {
344
+ return new Er(e, We);
273
345
  }
274
- let Ar = class He {
346
+ let Er = class Ue {
275
347
  constructor(t, r) {
276
348
  this.input = void 0, this.state = void 0, this.input = t, this.state = r;
277
349
  }
@@ -281,15 +353,15 @@ let Ar = class He {
281
353
  let i;
282
354
  t.length === 3 && typeof t[1] == "function" ? i = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
283
355
  let o = !1, a = {};
284
- const l = (g, v) => {
285
- o = !0, a[g] = v;
286
- }, c = !n.some((g) => k(g, this.input, l)) || i && !i(this.input) ? We : { matched: !0, value: r(o ? Ce in a ? a[Ce] : a : this.input, this.input) };
287
- return new He(this.input, c);
356
+ const s = (u, d) => {
357
+ o = !0, a[u] = d;
358
+ }, c = !n.some((u) => E(u, this.input, s)) || i && !i(this.input) ? We : { matched: !0, value: r(o ? Oe in a ? a[Oe] : a : this.input, this.input) };
359
+ return new Ue(this.input, c);
288
360
  }
289
361
  when(t, r) {
290
362
  if (this.state.matched) return this;
291
363
  const n = !!t(this.input);
292
- return new He(this.input, n ? { matched: !0, value: r(this.input, this.input) } : We);
364
+ return new Ue(this.input, n ? { matched: !0, value: r(this.input, this.input) } : We);
293
365
  }
294
366
  otherwise(t) {
295
367
  return this.state.matched ? this.state.value : t(this.input);
@@ -308,264 +380,90 @@ let Ar = class He {
308
380
  }
309
381
  };
310
382
  function Or(e) {
311
- throw new Cr(e);
312
- }
313
- const rt = {
314
- font: {
315
- family: "Inter, sans-serif"
316
- },
317
- body: {
318
- color: "#373737",
319
- background: "#ffffff"
320
- },
321
- border: {
322
- radius: "16px"
323
- },
324
- overlay: {
325
- background: "#00000008",
326
- backdrop: {
327
- filter: "blur(2px)"
328
- }
329
- },
330
- modal: {
331
- shadow: "0px 2px 4px 0px #00000005"
332
- }
333
- }, Mt = (e, t, r) => {
334
- for (const [n, i] of Object.entries(r))
335
- typeof i == "object" && i !== null ? Mt(e, `${t}-${n}`, i) : typeof i == "string" && e.set(`--lv${t}-${n}`, i);
336
- }, Lt = (e, t = !0) => {
337
- const r = /* @__PURE__ */ new Map();
338
- return Mt(r, "", e), Object.fromEntries(r.entries());
339
- }, jr = ({
340
- theme: e = rt,
341
- children: t
342
- }) => /* @__PURE__ */ s("div", { style: Lt(e), id: "root", children: t }), Dt = Rt({
343
- provider: void 0
344
- }), Tr = ({
345
- provider: e,
346
- onClose: t
347
- }) => /* @__PURE__ */ s(Dt.Provider, { value: { provider: e }, children: /* @__PURE__ */ s(jr, { theme: rt, children: /* @__PURE__ */ s(oi, { onClose: t }) }) }), Rr = () => {
348
- const e = $e(Dt);
349
- if (!e.provider) throw new Error("Provider not found");
350
- return e;
351
- }, de = () => {
352
- const { provider: e } = Rr(), [t, r] = O(
353
- e?.getState().status || "disconnected"
354
- );
355
- if (z(() => {
356
- const n = (i) => {
357
- r(i);
358
- };
359
- return e?.on("status_change", n), () => {
360
- e?.off("status_change", n);
361
- };
362
- }, [e]), !e) throw new Error("Provider not found");
363
- return { provider: e, status: t };
364
- }, Er = 1, Pr = (e) => {
365
- const t = new URLSearchParams();
366
- return t.set("h", e.h), t.set("k", e.k), e.p && t.set("p", e.p), e.s && t.set("s", e.s), `openlv://${e.sessionId}@${Er}?${t.toString()}`;
367
- }, Ae = (...e) => console.log(
368
- "%c[modal]%c",
369
- "color: yellow; font-weight: bold",
370
- "color: inherit; font-weight: normal",
371
- ...e
372
- ), Bt = (e, t, r) => {
373
- z(() => (e?.on(t, r), () => {
374
- e?.off(t, r);
375
- }), [e, t]);
376
- }, nt = () => {
377
- const { provider: e } = de(), [t, r] = O(
378
- e?.storage.getSettings()
379
- );
380
- Bt(
381
- e?.storage.emitter,
382
- "settings_change",
383
- (o) => {
384
- r(o);
385
- }
386
- );
387
- const n = (o) => {
388
- if (!t || t.signaling?.p === o) return;
389
- const a = {
390
- ...t,
391
- signaling: {
392
- ...t.signaling,
393
- p: o
394
- }
395
- };
396
- r(a), e?.storage.setSettings(a);
397
- }, i = (o) => {
398
- if (!t || t.signaling?.s[t.signaling?.p] === o) return;
399
- const a = {
400
- ...t,
401
- signaling: {
402
- ...t.signaling,
403
- s: {
404
- ...t.signaling.s,
405
- [t.signaling.p]: o
383
+ throw new Sr(e);
384
+ }
385
+ const U = {
386
+ STANDBY: "standby",
387
+ CONNECTING: "connecting",
388
+ READY: "ready",
389
+ HANDSHAKE: "handshake",
390
+ HANDSHAKE_PARTIAL: "handshake-partial",
391
+ ENCRYPTED: "encrypted",
392
+ ERROR: "error"
393
+ }, le = {
394
+ CREATED: "created",
395
+ SIGNALING: "signaling",
396
+ READY: "ready",
397
+ CONNECTED: "connected",
398
+ DISCONNECTED: "disconnected"
399
+ }, K = {
400
+ STANDBY: "standby",
401
+ CREATING: "creating",
402
+ CONNECTING: "connecting",
403
+ CONNECTED: "connected",
404
+ ERROR: "error"
405
+ };
406
+ var Ve = { exports: {} };
407
+ /*!
408
+ Copyright (c) 2018 Jed Watson.
409
+ Licensed under the MIT License (MIT), see
410
+ http://jedwatson.github.io/classnames
411
+ */
412
+ var ct;
413
+ function Rr() {
414
+ return ct || (ct = 1, (function(e) {
415
+ (function() {
416
+ var t = {}.hasOwnProperty;
417
+ function r() {
418
+ for (var o = "", a = 0; a < arguments.length; a++) {
419
+ var s = arguments[a];
420
+ s && (o = i(o, n(s)));
406
421
  }
422
+ return o;
407
423
  }
408
- };
409
- r(a), e?.storage.setSettings(a);
410
- };
411
- if (!t) throw new Error("Settings not found");
412
- return { settings: t, updateSignalingProtocol: n, updateSignalingServer: i };
413
- }, be = () => {
414
- const { provider: e } = de(), [t, r] = O(
415
- e?.getSession()
416
- ), n = t?.getHandshakeParameters(), i = n ? Pr(n) : void 0, [o, a] = O(
417
- t?.getState()
418
- );
419
- return Bt(t?.emitter, "state_change", (l) => {
420
- Ae("session state change: ", l), a(l);
421
- }), z(() => {
422
- const l = (c) => {
423
- Ae("session started: ", c), r(c), a(c.getState());
424
- };
425
- return e?.on("session_started", l), () => {
426
- e?.off("session_started", l);
427
- };
428
- }, [e]), z(() => {
429
- t && a(t.getState());
430
- }, [t]), {
431
- uri: i,
432
- status: o
433
- };
434
- }, zr = () => {
435
- const { provider: e } = de(), { settings: t } = nt();
436
- return {
437
- start: () => {
438
- const r = t?.signaling?.p, n = t?.signaling?.s[r];
439
- if (!r || !n)
440
- throw new Error("Invalid protocol or server");
441
- return e?.createSession({
442
- p: r,
443
- s: n
444
- });
445
- }
446
- };
447
- }, Ue = ({ state: e }) => {
448
- const { status: t, uri: r } = be(), { status: n } = de();
449
- return console.error("Unknown state: ", { state: e, sessionStatus: t, providerStatus: n }), /* @__PURE__ */ m("div", { className: "rounded-md bg-gray-100 p-2 text-gray-500", children: [
450
- /* @__PURE__ */ m("div", { children: [
451
- "Unknown state: ",
452
- JSON.stringify(e)
453
- ] }),
454
- /* @__PURE__ */ m("div", { children: [
455
- "URI: ",
456
- r
457
- ] }),
458
- /* @__PURE__ */ m("div", { children: [
459
- "Session Status: ",
460
- JSON.stringify(t)
461
- ] }),
462
- /* @__PURE__ */ m("div", { children: [
463
- "Provider Status: ",
464
- JSON.stringify(n)
465
- ] })
466
- ] });
467
- }, Vr = ({
468
- onCopy: e
469
- }) => {
470
- const { uri: t } = be(), r = I(() => {
471
- t && e(t);
472
- }, [t, e]), n = I((i) => {
473
- const o = ur(0, "M");
474
- return o.addData(i), o.make(), o.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
475
- }, []);
476
- return /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-4 px-2", children: [
477
- /* @__PURE__ */ m("div", { className: "w-full space-y-4 rounded-md border border-neutral-200 bg-neutral-100 p-4", children: [
478
- t && /* @__PURE__ */ s("div", { className: "relative mx-auto flex w-fit items-center justify-center rounded-lg border-2 border-gray-200 bg-gray-50 p-4", children: /* @__PURE__ */ s(
479
- "button",
480
- {
481
- className: "flex h-[200px] w-[200px] cursor-pointer items-center justify-center",
482
- onClick: r,
483
- title: "Click to copy connection URL",
484
- dangerouslySetInnerHTML: { __html: n(t) }
485
- }
486
- ) }),
487
- /* @__PURE__ */ s("div", { className: "w-full", children: /* @__PURE__ */ s(
488
- "button",
489
- {
490
- type: "button",
491
- onClick: r,
492
- className: "w-full cursor-pointer rounded-lg border border-gray-300 bg-gray-200 px-4 py-2 text-gray-700 text-sm transition hover:bg-gray-300",
493
- children: "Copy Connection URL"
494
- }
495
- ) })
496
- ] }),
497
- /* @__PURE__ */ m("div", { className: "w-full", children: [
498
- /* @__PURE__ */ s("span", { children: "Scan the link above using your mobile wallet." }),
499
- /* @__PURE__ */ s("br", {}),
500
- /* @__PURE__ */ s("span", { children: "Or copy the link and paste it into your wallet." })
501
- ] })
502
- ] });
503
- }, Mr = () => typeof document < "u" && "startViewTransition" in document, Lr = (e) => {
504
- Mr() ? document.startViewTransition(e) : e();
505
- }, Dr = () => /* @__PURE__ */ s("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ s("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }) }), Ke = "connecting", Je = "handshake-open", Xe = "handshake-closed", Qe = "xr-encrypted", he = "disconnected", Le = "unknown", Br = (e) => e ? D(e).with({ status: he }, () => he).with(
506
- { status: tt.union("created", "signaling", "connected", "ready") },
507
- (t) => {
508
- const r = "signaling" in t ? t.signaling?.state : void 0;
509
- return D(r).with(Ke, () => Ke).with(Je, () => Je).with(Xe, () => Xe).with(Qe, () => Qe).with(he, () => he).otherwise(() => Le);
510
- }
511
- ).otherwise(() => Le) : Le, Fr = (e) => {
512
- const [t, r] = O(e), n = L(e);
513
- return z(() => {
514
- e !== n.current && Lr(() => {
515
- r(e), n.current = e;
516
- });
517
- }, [e]), {
518
- displayState: t
519
- };
520
- }, Ir = ({ onClose: e, onCopy: t }) => {
521
- const { status: r = { status: "created" } } = be(), n = Br(r), { displayState: i } = Fr(n);
522
- return /* @__PURE__ */ s("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: D(i).with(Ke, () => /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-4 p-6", children: [
523
- /* @__PURE__ */ s(Dr, {}),
524
- /* @__PURE__ */ m("div", { className: "text-center", children: [
525
- /* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connecting" }),
526
- /* @__PURE__ */ s("p", { className: "text-gray-500 text-sm", children: "Waiting for wallet to connect..." })
527
- ] })
528
- ] })).with(Je, () => /* @__PURE__ */ s(Vr, { onCopy: t })).with(Xe, () => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ s("div", { className: "text-center", children: /* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Establishing e2e encryption..." }) }) })).with(Qe, () => /* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ m("div", { className: "text-center", children: [
529
- /* @__PURE__ */ s("div", { className: "mb-4 text-4xl", children: "✅" }),
530
- /* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connected Successfully!" }),
531
- /* @__PURE__ */ s("p", { className: "text-gray-500 text-sm", children: "Your wallet is now connected and ready to use." })
532
- ] }) })).with(he, () => /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-4 p-6", children: [
533
- /* @__PURE__ */ m("div", { className: "text-center", children: [
534
- /* @__PURE__ */ s("div", { className: "mb-4 text-4xl", children: "🔌" }),
535
- /* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Disconnected" }),
536
- /* @__PURE__ */ s("p", { className: "mb-4 text-gray-500 text-sm", children: "The connection has been closed." })
537
- ] }),
538
- /* @__PURE__ */ s(
539
- "button",
540
- {
541
- type: "button",
542
- onClick: e,
543
- className: "w-full rounded-lg bg-gray-100 px-4 py-2 font-semibold text-gray-700 text-sm transition hover:bg-gray-200",
544
- children: "Close"
424
+ function n(o) {
425
+ if (typeof o == "string" || typeof o == "number")
426
+ return o;
427
+ if (typeof o != "object")
428
+ return "";
429
+ if (Array.isArray(o))
430
+ return r.apply(null, o);
431
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
432
+ return o.toString();
433
+ var a = "";
434
+ for (var s in o)
435
+ t.call(o, s) && o[s] && (a = i(a, s));
436
+ return a;
545
437
  }
546
- )
547
- ] })).otherwise(() => /* @__PURE__ */ s(Ue, { state: r })) });
548
- };
549
- function Ft(e, t) {
438
+ function i(o, a) {
439
+ return a ? o ? o + " " + a : o + a : o;
440
+ }
441
+ e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
442
+ })();
443
+ })(Ve)), Ve.exports;
444
+ }
445
+ var Tr = Rr();
446
+ const pe = /* @__PURE__ */ pr(Tr);
447
+ function Lt(e, t) {
550
448
  for (var r in t) e[r] = t[r];
551
449
  return e;
552
450
  }
553
- function Ge(e, t) {
451
+ function Ke(e, t) {
554
452
  for (var r in e) if (r !== "__source" && !(r in t)) return !0;
555
453
  for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
556
454
  return !1;
557
455
  }
558
- function It(e, t) {
559
- var r = t(), n = O({ t: { __: r, u: t } }), i = n[0].t, o = n[1];
560
- return ue(function() {
561
- i.__ = r, i.u = t, De(i) && o({ t: i });
562
- }, [e, r, t]), z(function() {
563
- return De(i) && o({ t: i }), e(function() {
564
- De(i) && o({ t: i });
456
+ function Mt(e, t) {
457
+ var r = t(), n = M({ t: { __: r, u: t } }), i = n[0].t, o = n[1];
458
+ return ve(function() {
459
+ i.__ = r, i.u = t, Be(i) && o({ t: i });
460
+ }, [e, r, t]), B(function() {
461
+ return Be(i) && o({ t: i }), e(function() {
462
+ Be(i) && o({ t: i });
565
463
  });
566
464
  }, [e]), r;
567
465
  }
568
- function De(e) {
466
+ function Be(e) {
569
467
  var t, r, n = e.u, i = e.__;
570
468
  try {
571
469
  var o = n();
@@ -574,80 +472,80 @@ function De(e) {
574
472
  return !0;
575
473
  }
576
474
  }
577
- function Wt(e) {
475
+ function zt(e) {
578
476
  e();
579
477
  }
580
- function Ht(e) {
478
+ function Vt(e) {
581
479
  return e;
582
480
  }
583
- function Ut() {
584
- return [!1, Wt];
481
+ function Bt() {
482
+ return [!1, zt];
585
483
  }
586
- var Kt = ue;
587
- function Ze(e, t) {
484
+ var Ft = ve;
485
+ function Je(e, t) {
588
486
  this.props = e, this.context = t;
589
487
  }
590
- function Wr(e, t) {
488
+ function jr(e, t) {
591
489
  function r(i) {
592
490
  var o = this.props.ref, a = o == i.ref;
593
- return !a && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, i) || !a : Ge(this.props, i);
491
+ return !a && o && (o.call ? o(null) : o.current = null), t ? !t(this.props, i) || !a : Ke(this.props, i);
594
492
  }
595
493
  function n(i) {
596
- return this.shouldComponentUpdate = r, K(e, i);
494
+ return this.shouldComponentUpdate = r, ee(e, i);
597
495
  }
598
496
  return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n.type = e, n;
599
497
  }
600
- (Ze.prototype = new le()).isPureReactComponent = !0, Ze.prototype.shouldComponentUpdate = function(e, t) {
601
- return Ge(this.props, e) || Ge(this.state, t);
498
+ (Je.prototype = new he()).isPureReactComponent = !0, Je.prototype.shouldComponentUpdate = function(e, t) {
499
+ return Ke(this.props, e) || Ke(this.state, t);
602
500
  };
603
- var dt = R.__b;
604
- R.__b = function(e) {
605
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), dt && dt(e);
501
+ var ut = F.__b;
502
+ F.__b = function(e) {
503
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), ut && ut(e);
606
504
  };
607
- var Hr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
608
- function Ur(e) {
505
+ var Dr = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
506
+ function Ir(e) {
609
507
  function t(r) {
610
- var n = Ft({}, r);
508
+ var n = Lt({}, r);
611
509
  return delete n.ref, e(n, r.ref || null);
612
510
  }
613
- return t.$$typeof = Hr, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
511
+ return t.$$typeof = Dr, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
614
512
  }
615
- var pt = function(e, t) {
616
- return e == null ? null : ee(ee(e).map(t));
617
- }, Kr = { map: pt, forEach: pt, count: function(e) {
618
- return e ? ee(e).length : 0;
513
+ var dt = function(e, t) {
514
+ return e == null ? null : ce(ce(e).map(t));
515
+ }, Pr = { map: dt, forEach: dt, count: function(e) {
516
+ return e ? ce(e).length : 0;
619
517
  }, only: function(e) {
620
- var t = ee(e);
518
+ var t = ce(e);
621
519
  if (t.length !== 1) throw "Children.only";
622
520
  return t[0];
623
- }, toArray: ee }, Jr = R.__e;
624
- R.__e = function(e, t, r, n) {
521
+ }, toArray: ce }, Lr = F.__e;
522
+ F.__e = function(e, t, r, n) {
625
523
  if (e.then) {
626
524
  for (var i, o = t; o = o.__; ) if ((i = o.__c) && i.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), i.__c(e, t);
627
525
  }
628
- Jr(e, t, r, n);
526
+ Lr(e, t, r, n);
629
527
  };
630
- var ft = R.unmount;
631
- function Jt(e, t, r) {
528
+ var ft = F.unmount;
529
+ function Ht(e, t, r) {
632
530
  return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
633
531
  typeof n.__c == "function" && n.__c();
634
- }), e.__c.__H = null), (e = Ft({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
635
- return Jt(n, t, r);
532
+ }), e.__c.__H = null), (e = Lt({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
533
+ return Ht(n, t, r);
636
534
  })), e;
637
535
  }
638
- function Xt(e, t, r) {
536
+ function Gt(e, t, r) {
639
537
  return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
640
- return Xt(n, t, r);
538
+ return Gt(n, t, r);
641
539
  }), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
642
540
  }
643
- function Ne() {
541
+ function Ee() {
644
542
  this.__u = 0, this.o = null, this.__b = null;
645
543
  }
646
- function Qt(e) {
544
+ function Wt(e) {
647
545
  var t = e.__.__c;
648
546
  return t && t.__a && t.__a(e);
649
547
  }
650
- function Xr(e) {
548
+ function Mr(e) {
651
549
  var t, r, n;
652
550
  function i(o) {
653
551
  if (t || (t = e()).then(function(a) {
@@ -656,63 +554,63 @@ function Xr(e) {
656
554
  n = a;
657
555
  }), n) throw n;
658
556
  if (!r) throw t;
659
- return K(r, o);
557
+ return ee(r, o);
660
558
  }
661
559
  return i.displayName = "Lazy", i.__f = !0, i;
662
560
  }
663
- function ge() {
561
+ function be() {
664
562
  this.i = null, this.l = null;
665
563
  }
666
- R.unmount = function(e) {
564
+ F.unmount = function(e) {
667
565
  var t = e.__c;
668
566
  t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), ft && ft(e);
669
- }, (Ne.prototype = new le()).__c = function(e, t) {
567
+ }, (Ee.prototype = new he()).__c = function(e, t) {
670
568
  var r = t.__c, n = this;
671
569
  n.o == null && (n.o = []), n.o.push(r);
672
- var i = Qt(n.__v), o = !1, a = function() {
673
- o || (o = !0, r.__R = null, i ? i(l) : l());
570
+ var i = Wt(n.__v), o = !1, a = function() {
571
+ o || (o = !0, r.__R = null, i ? i(s) : s());
674
572
  };
675
573
  r.__R = a;
676
- var l = function() {
574
+ var s = function() {
677
575
  if (!--n.__u) {
678
576
  if (n.state.__a) {
679
577
  var c = n.state.__a;
680
- n.__v.__k[0] = Xt(c, c.__c.__P, c.__c.__O);
578
+ n.__v.__k[0] = Gt(c, c.__c.__P, c.__c.__O);
681
579
  }
682
- var g;
683
- for (n.setState({ __a: n.__b = null }); g = n.o.pop(); ) g.forceUpdate();
580
+ var u;
581
+ for (n.setState({ __a: n.__b = null }); u = n.o.pop(); ) u.forceUpdate();
684
582
  }
685
583
  };
686
584
  n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
687
- }, Ne.prototype.componentWillUnmount = function() {
585
+ }, Ee.prototype.componentWillUnmount = function() {
688
586
  this.o = [];
689
- }, Ne.prototype.render = function(e, t) {
587
+ }, Ee.prototype.render = function(e, t) {
690
588
  if (this.__b) {
691
589
  if (this.__v.__k) {
692
590
  var r = document.createElement("div"), n = this.__v.__k[0].__c;
693
- this.__v.__k[0] = Jt(this.__b, r, n.__O = n.__P);
591
+ this.__v.__k[0] = Ht(this.__b, r, n.__O = n.__P);
694
592
  }
695
593
  this.__b = null;
696
594
  }
697
- var i = t.__a && K(ve, null, e.fallback);
698
- return i && (i.__u &= -33), [K(ve, null, t.__a ? null : e.children), i];
595
+ var i = t.__a && ee(_e, null, e.fallback);
596
+ return i && (i.__u &= -33), [ee(_e, null, t.__a ? null : e.children), i];
699
597
  };
700
- var ht = function(e, t, r) {
598
+ var pt = function(e, t, r) {
701
599
  if (++r[1] === r[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (r = e.i; r; ) {
702
600
  for (; r.length > 3; ) r.pop()();
703
601
  if (r[1] < r[0]) break;
704
602
  e.i = r = r[2];
705
603
  }
706
604
  };
707
- function Qr(e) {
605
+ function zr(e) {
708
606
  return this.getChildContext = function() {
709
607
  return e.context;
710
608
  }, e.children;
711
609
  }
712
- function Gr(e) {
610
+ function Vr(e) {
713
611
  var t = this, r = e.h;
714
612
  if (t.componentWillUnmount = function() {
715
- ce(null, t.v), t.v = null, t.h = null;
613
+ ge(null, t.v), t.v = null, t.h = null;
716
614
  }, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
717
615
  for (var n = t.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
718
616
  t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
@@ -723,128 +621,384 @@ function Gr(e) {
723
621
  this.childNodes.splice(this.childNodes.indexOf(i) >>> 1, 1), t.h.removeChild(i);
724
622
  } };
725
623
  }
726
- ce(K(Qr, { context: t.context }, e.__v), t.v);
624
+ ge(ee(zr, { context: t.context }, e.__v), t.v);
727
625
  }
728
- function Zr(e, t) {
729
- var r = K(Gr, { __v: e, h: t });
626
+ function Br(e, t) {
627
+ var r = ee(Vr, { __v: e, h: t });
730
628
  return r.containerInfo = t, r;
731
629
  }
732
- (ge.prototype = new le()).__a = function(e) {
733
- var t = this, r = Qt(t.__v), n = t.l.get(e);
630
+ (be.prototype = new he()).__a = function(e) {
631
+ var t = this, r = Wt(t.__v), n = t.l.get(e);
734
632
  return n[0]++, function(i) {
735
633
  var o = function() {
736
- t.props.revealOrder ? (n.push(i), ht(t, e, n)) : i();
634
+ t.props.revealOrder ? (n.push(i), pt(t, e, n)) : i();
737
635
  };
738
636
  r ? r(o) : o();
739
637
  };
740
- }, ge.prototype.render = function(e) {
638
+ }, be.prototype.render = function(e) {
741
639
  this.i = null, this.l = /* @__PURE__ */ new Map();
742
- var t = ee(e.children);
640
+ var t = ce(e.children);
743
641
  e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
744
642
  for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
745
643
  return e.children;
746
- }, ge.prototype.componentDidUpdate = ge.prototype.componentDidMount = function() {
644
+ }, be.prototype.componentDidUpdate = be.prototype.componentDidMount = function() {
747
645
  var e = this;
748
646
  this.l.forEach(function(t, r) {
749
- ht(e, r, t);
647
+ pt(e, r, t);
750
648
  });
751
649
  };
752
- var Gt = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, qr = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Yr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, $r = /[A-Z0-9]/g, en = typeof document < "u", tn = function(e) {
650
+ var Ut = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Fr = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Hr = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Gr = /[A-Z0-9]/g, Wr = typeof document < "u", Ur = function(e) {
753
651
  return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
754
652
  };
755
- function rn(e, t, r) {
756
- return t.__k == null && (t.textContent = ""), ce(e, t), typeof r == "function" && r(), e ? e.__c : null;
653
+ function Kr(e, t, r) {
654
+ return t.__k == null && (t.textContent = ""), ge(e, t), typeof r == "function" && r(), e ? e.__c : null;
757
655
  }
758
- function nn(e, t, r) {
656
+ function Jr(e, t, r) {
759
657
  return lr(e, t), typeof r == "function" && r(), e ? e.__c : null;
760
658
  }
761
- le.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
762
- Object.defineProperty(le.prototype, e, { configurable: !0, get: function() {
659
+ he.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
660
+ Object.defineProperty(he.prototype, e, { configurable: !0, get: function() {
763
661
  return this["UNSAFE_" + e];
764
662
  }, set: function(t) {
765
663
  Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
766
664
  } });
767
665
  });
768
- var gt = R.event;
769
- function on() {
666
+ var ht = F.event;
667
+ function Xr() {
770
668
  }
771
- function an() {
669
+ function Yr() {
772
670
  return this.cancelBubble;
773
671
  }
774
- function sn() {
672
+ function Qr() {
775
673
  return this.defaultPrevented;
776
674
  }
777
- R.event = function(e) {
778
- return gt && (e = gt(e)), e.persist = on, e.isPropagationStopped = an, e.isDefaultPrevented = sn, e.nativeEvent = e;
675
+ F.event = function(e) {
676
+ return ht && (e = ht(e)), e.persist = Xr, e.isPropagationStopped = Yr, e.isDefaultPrevented = Qr, e.nativeEvent = e;
779
677
  };
780
- var it, ln = { enumerable: !1, configurable: !0, get: function() {
678
+ var $e, Zr = { enumerable: !1, configurable: !0, get: function() {
781
679
  return this.class;
782
- } }, mt = R.vnode;
783
- R.vnode = function(e) {
680
+ } }, gt = F.vnode;
681
+ F.vnode = function(e) {
784
682
  typeof e.type == "string" && (function(t) {
785
683
  var r = t.props, n = t.type, i = {}, o = n.indexOf("-") === -1;
786
684
  for (var a in r) {
787
- var l = r[a];
788
- if (!(a === "value" && "defaultValue" in r && l == null || en && a === "children" && n === "noscript" || a === "class" || a === "className")) {
685
+ var s = r[a];
686
+ if (!(a === "value" && "defaultValue" in r && s == null || Wr && a === "children" && n === "noscript" || a === "class" || a === "className")) {
789
687
  var c = a.toLowerCase();
790
- a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && l === !0 ? l = "" : c === "translate" && l === "no" ? l = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || tn(r.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : Yr.test(a) && (a = c) : c = a = "oninput" : o && qr.test(a) ? a = a.replace($r, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && i[a = c] && (a = "oninputCapture"), i[a] = l;
688
+ a === "defaultValue" && "value" in r && r.value == null ? a = "value" : a === "download" && s === !0 ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? a = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || Ur(r.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : Hr.test(a) && (a = c) : c = a = "oninput" : o && Fr.test(a) ? a = a.replace(Gr, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[a = c] && (a = "oninputCapture"), i[a] = s;
791
689
  }
792
690
  }
793
- n == "select" && i.multiple && Array.isArray(i.value) && (i.value = ee(r.children).forEach(function(g) {
794
- g.props.selected = i.value.indexOf(g.props.value) != -1;
795
- })), n == "select" && i.defaultValue != null && (i.value = ee(r.children).forEach(function(g) {
796
- g.props.selected = i.multiple ? i.defaultValue.indexOf(g.props.value) != -1 : i.defaultValue == g.props.value;
797
- })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", ln)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), t.props = i;
798
- })(e), e.$$typeof = Gt, mt && mt(e);
691
+ n == "select" && i.multiple && Array.isArray(i.value) && (i.value = ce(r.children).forEach(function(u) {
692
+ u.props.selected = i.value.indexOf(u.props.value) != -1;
693
+ })), n == "select" && i.defaultValue != null && (i.value = ce(r.children).forEach(function(u) {
694
+ u.props.selected = i.multiple ? i.defaultValue.indexOf(u.props.value) != -1 : i.defaultValue == u.props.value;
695
+ })), r.class && !r.className ? (i.class = r.class, Object.defineProperty(i, "className", Zr)) : (r.className && !r.class || r.class && r.className) && (i.class = i.className = r.className), t.props = i;
696
+ })(e), e.$$typeof = Ut, gt && gt(e);
799
697
  };
800
- var vt = R.__r;
801
- R.__r = function(e) {
802
- vt && vt(e), it = e.__c;
698
+ var vt = F.__r;
699
+ F.__r = function(e) {
700
+ vt && vt(e), $e = e.__c;
803
701
  };
804
- var yt = R.diffed;
805
- R.diffed = function(e) {
806
- yt && yt(e);
702
+ var mt = F.diffed;
703
+ F.diffed = function(e) {
704
+ mt && mt(e);
807
705
  var t = e.props, r = e.__e;
808
- r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), it = null;
706
+ r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), $e = null;
809
707
  };
810
- var cn = { ReactCurrentDispatcher: { current: { readContext: function(e) {
811
- return it.__n[e.__c].props.value;
812
- }, useCallback: I, useContext: $e, useDebugValue: Tt, useDeferredValue: Ht, useEffect: z, useId: jt, useImperativeHandle: Ot, useInsertionEffect: Kt, useLayoutEffect: ue, useMemo: At, useReducer: Ct, useRef: L, useState: O, useSyncExternalStore: It, useTransition: Ut } } };
813
- function un(e) {
814
- return K.bind(null, e);
708
+ var qr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
709
+ return $e.__n[e.__c].props.value;
710
+ }, useCallback: q, useContext: Ze, useDebugValue: Ot, useDeferredValue: Vt, useEffect: B, useId: Et, useImperativeHandle: St, useInsertionEffect: Ft, useLayoutEffect: ve, useMemo: At, useReducer: Ct, useRef: J, useState: M, useSyncExternalStore: Mt, useTransition: Bt } } };
711
+ function $r(e) {
712
+ return ee.bind(null, e);
815
713
  }
816
- function Ee(e) {
817
- return !!e && e.$$typeof === Gt;
714
+ function Ie(e) {
715
+ return !!e && e.$$typeof === Ut;
818
716
  }
819
- function dn(e) {
820
- return Ee(e) && e.type === ve;
717
+ function en(e) {
718
+ return Ie(e) && e.type === _e;
821
719
  }
822
- function pn(e) {
720
+ function tn(e) {
823
721
  return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
824
722
  }
825
- function fn(e) {
826
- return Ee(e) ? sr.apply(null, arguments) : e;
723
+ function rn(e) {
724
+ return Ie(e) ? sr.apply(null, arguments) : e;
827
725
  }
828
- function hn(e) {
829
- return !!e.__k && (ce(null, e), !0);
726
+ function nn(e) {
727
+ return !!e.__k && (ge(null, e), !0);
830
728
  }
831
- function gn(e) {
729
+ function on(e) {
832
730
  return e && (e.base || e.nodeType === 1 && e) || null;
833
731
  }
834
- var mn = function(e, t) {
732
+ var an = function(e, t) {
835
733
  return e(t);
836
- }, vn = function(e, t) {
734
+ }, sn = function(e, t) {
837
735
  return e(t);
838
- }, yn = ve, wn = Ee, re = { useState: O, useId: jt, useReducer: Ct, useEffect: z, useLayoutEffect: ue, useInsertionEffect: Kt, useTransition: Ut, useDeferredValue: Ht, useSyncExternalStore: It, startTransition: Wt, useRef: L, useImperativeHandle: Ot, useMemo: At, useCallback: I, useContext: $e, useDebugValue: Tt, version: "18.3.1", Children: Kr, render: rn, hydrate: nn, unmountComponentAtNode: hn, createPortal: Zr, createElement: K, createContext: Rt, createFactory: un, cloneElement: fn, createRef: ar, Fragment: ve, isValidElement: Ee, isElement: wn, isFragment: dn, isMemo: pn, findDOMNode: gn, Component: le, PureComponent: Ze, memo: Wr, forwardRef: Ur, flushSync: vn, unstable_batchedUpdates: mn, StrictMode: yn, Suspense: Ne, SuspenseList: ge, lazy: Xr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: cn }, Zt = {
736
+ }, ln = _e, cn = Ie, de = { useState: M, useId: Et, useReducer: Ct, useEffect: B, useLayoutEffect: ve, useInsertionEffect: Ft, useTransition: Bt, useDeferredValue: Vt, useSyncExternalStore: Mt, startTransition: zt, useRef: J, useImperativeHandle: St, useMemo: At, useCallback: q, useContext: Ze, useDebugValue: Ot, version: "18.3.1", Children: Pr, render: Kr, hydrate: Jr, unmountComponentAtNode: nn, createPortal: Br, createElement: ee, createContext: Rt, createFactory: $r, cloneElement: rn, createRef: ar, Fragment: _e, isValidElement: Ie, isElement: cn, isFragment: en, isMemo: tn, findDOMNode: on, Component: he, PureComponent: Je, memo: jr, forwardRef: Ir, flushSync: sn, unstable_batchedUpdates: an, StrictMode: ln, Suspense: Ee, SuspenseList: be, lazy: Mr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qr };
737
+ const et = {
738
+ font: {
739
+ family: "Inter, sans-serif"
740
+ },
741
+ body: {
742
+ color: "#373737",
743
+ background: "#ffffff"
744
+ },
745
+ border: {
746
+ radius: "16px"
747
+ },
748
+ overlay: {
749
+ background: "#00000008",
750
+ backdrop: {
751
+ filter: "blur(2px)"
752
+ }
753
+ },
754
+ modal: {
755
+ shadow: "0px 2px 4px 0px #00000005"
756
+ }
757
+ }, Kt = (e, t, r) => {
758
+ for (const [n, i] of Object.entries(r))
759
+ typeof i == "object" && i !== null ? Kt(e, `${t}-${n}`, i) : typeof i == "string" && e.set(`--lv${t}-${n}`, i);
760
+ }, Jt = (e, t = !0) => {
761
+ const r = /* @__PURE__ */ new Map();
762
+ return Kt(r, "", e), Object.fromEntries(r.entries());
763
+ }, un = ({
764
+ theme: e = et,
765
+ children: t
766
+ }) => /* @__PURE__ */ l("div", { style: Jt(e), id: "root", children: t }), Xt = Rt({
767
+ provider: void 0
768
+ }), dn = ({
769
+ provider: e,
770
+ onClose: t
771
+ }) => /* @__PURE__ */ l(Xt.Provider, { value: { provider: e }, children: /* @__PURE__ */ l(un, { theme: et, children: /* @__PURE__ */ l(ai, { onClose: t }) }) }), fn = () => {
772
+ const e = Ze(Xt);
773
+ if (!e.provider) throw new Error("Provider not found");
774
+ return e;
775
+ }, me = () => {
776
+ const { provider: e } = fn(), [t, r] = M(
777
+ e?.getState().status || K.ERROR
778
+ );
779
+ if (B(() => {
780
+ const n = (i) => {
781
+ r(i);
782
+ };
783
+ return e?.on("status_change", n), () => {
784
+ e?.off("status_change", n);
785
+ };
786
+ }, [e]), !e) throw new Error("Provider not found");
787
+ return { provider: e, status: t };
788
+ }, tt = (...e) => console.log(
789
+ "%c[modal]%c",
790
+ "color: yellow; font-weight: bold",
791
+ "color: inherit; font-weight: normal",
792
+ ...e
793
+ ), Yt = (e, t, r) => {
794
+ B(() => (e?.on(t, r), () => {
795
+ e?.off(t, r);
796
+ }), [e, t]);
797
+ }, rt = () => {
798
+ const { provider: e } = me(), [t, r] = M(
799
+ e?.storage.getSettings()
800
+ );
801
+ Yt(
802
+ e?.storage.emitter,
803
+ "settings_change",
804
+ (s) => {
805
+ r(s);
806
+ }
807
+ );
808
+ const n = (s) => {
809
+ if (!t || t.signaling?.p === s) return;
810
+ const c = {
811
+ ...t,
812
+ signaling: {
813
+ ...t.signaling,
814
+ p: s
815
+ }
816
+ };
817
+ r(c), e?.storage.setSettings(c);
818
+ }, i = (s) => {
819
+ if (!t || t.signaling?.s[t.signaling?.p] === s) return;
820
+ const c = {
821
+ ...t,
822
+ signaling: {
823
+ ...t.signaling,
824
+ s: {
825
+ ...t.signaling.s,
826
+ [t.signaling.p]: s
827
+ }
828
+ }
829
+ };
830
+ r(c), e?.storage.setSettings(c);
831
+ }, o = (s) => {
832
+ t && (r({ ...t, retainHistory: s }), e?.storage.setSettings({ ...t, retainHistory: s }));
833
+ }, a = (s) => {
834
+ t && (r({ ...t, autoReconnect: s }), e?.storage.setSettings({ ...t, autoReconnect: s }));
835
+ };
836
+ if (!t) throw new Error("Settings not found");
837
+ return {
838
+ settings: t,
839
+ updateSignalingProtocol: n,
840
+ updateSignalingServer: i,
841
+ updateRetainHistory: o,
842
+ updateAutoReconnect: a
843
+ };
844
+ }, Ce = () => {
845
+ const { provider: e } = me(), [t, r] = M(
846
+ e?.getSession()
847
+ ), n = t?.getHandshakeParameters(), i = n ? fr(n) : void 0, [o, a] = M(
848
+ t?.getState()
849
+ );
850
+ return Yt(t?.emitter, "state_change", (s) => {
851
+ tt("session state change: ", s), a(s);
852
+ }), B(() => {
853
+ const s = () => {
854
+ const c = e?.getSession();
855
+ c && r(c);
856
+ };
857
+ return e?.on("status_change", s), () => {
858
+ e?.off("status_change", s);
859
+ };
860
+ }, [e]), B(() => {
861
+ const s = (c) => {
862
+ r(c), a(c.getState());
863
+ };
864
+ return e?.on("session_started", s), () => {
865
+ e?.off("session_started", s);
866
+ };
867
+ }, [e]), B(() => {
868
+ t && a(t.getState());
869
+ }, [t]), {
870
+ uri: i,
871
+ status: o
872
+ };
873
+ }, pn = () => {
874
+ const { provider: e } = me(), { settings: t } = rt();
875
+ return {
876
+ start: () => {
877
+ const r = t?.signaling?.p, n = t?.signaling?.s[r];
878
+ if (!r || !n)
879
+ throw new Error("Invalid protocol or server");
880
+ return e?.createSession({
881
+ p: r,
882
+ s: n
883
+ });
884
+ }
885
+ };
886
+ }, Xe = ({ state: e }) => {
887
+ const { status: t, uri: r } = Ce(), { status: n } = me();
888
+ return console.error("Unknown state: ", { state: e, sessionStatus: t, providerStatus: n }), /* @__PURE__ */ b("div", { className: "rounded-md bg-gray-100 p-2 text-gray-500", children: [
889
+ /* @__PURE__ */ b("div", { children: [
890
+ "Unknown state: ",
891
+ JSON.stringify(e)
892
+ ] }),
893
+ /* @__PURE__ */ b("div", { children: [
894
+ "URI: ",
895
+ r
896
+ ] }),
897
+ /* @__PURE__ */ b("div", { children: [
898
+ "Session Status: ",
899
+ JSON.stringify(t)
900
+ ] }),
901
+ /* @__PURE__ */ b("div", { children: [
902
+ "Provider Status: ",
903
+ JSON.stringify(n)
904
+ ] })
905
+ ] });
906
+ }, hn = ({
907
+ onCopy: e
908
+ }) => {
909
+ const { uri: t } = Ce(), r = q(() => {
910
+ t && e(t);
911
+ }, [t, e]), n = q((i) => {
912
+ const o = ur(0, "M");
913
+ return o.addData(i), o.make(), o.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
914
+ }, []);
915
+ return /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-4 px-2", children: [
916
+ /* @__PURE__ */ b("div", { className: "w-full space-y-4 rounded-md border border-neutral-200 bg-neutral-100 p-4", children: [
917
+ t && /* @__PURE__ */ l("div", { className: "relative mx-auto flex w-fit items-center justify-center rounded-lg border-2 border-gray-200 bg-gray-50 p-4", children: /* @__PURE__ */ l(
918
+ "button",
919
+ {
920
+ className: "flex h-[200px] w-[200px] cursor-pointer items-center justify-center",
921
+ onClick: r,
922
+ title: "Click to copy connection URL",
923
+ dangerouslySetInnerHTML: { __html: n(t) }
924
+ }
925
+ ) }),
926
+ /* @__PURE__ */ l("div", { className: "w-full", children: /* @__PURE__ */ l(
927
+ "button",
928
+ {
929
+ type: "button",
930
+ onClick: r,
931
+ className: "w-full cursor-pointer rounded-lg border border-gray-300 bg-gray-200 px-4 py-2 text-gray-700 text-sm transition hover:bg-gray-300",
932
+ children: "Copy Connection URL"
933
+ }
934
+ ) })
935
+ ] }),
936
+ /* @__PURE__ */ b("div", { className: "w-full", children: [
937
+ /* @__PURE__ */ l("span", { children: "Scan the link above using your mobile wallet." }),
938
+ /* @__PURE__ */ l("br", {}),
939
+ /* @__PURE__ */ l("span", { children: "Or copy the link and paste it into your wallet." })
940
+ ] })
941
+ ] });
942
+ }, gn = () => typeof document < "u" && "startViewTransition" in document, vn = (e) => {
943
+ gn() ? document.startViewTransition(e) : e();
944
+ }, mn = () => /* @__PURE__ */ l("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ l("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-blue-500 border-t-transparent" }) }), I = {
945
+ CONNECTING: "connecting",
946
+ READY: "ready",
947
+ CONFIRMING: "confirming",
948
+ CONNECTED: "connected",
949
+ DISCONNECTED: "disconnected",
950
+ ERROR: "error"
951
+ }, yn = (e) => {
952
+ const [t, r] = M(e), n = J(e);
953
+ return B(() => {
954
+ e !== n.current && vn(() => {
955
+ r(e), n.current = e;
956
+ });
957
+ }, [e]), {
958
+ displayState: t
959
+ };
960
+ }, wn = (e) => X(e).with({ status: le.CREATED }, () => I.CONNECTING).with(
961
+ { status: le.SIGNALING },
962
+ () => X(e?.signaling).with({ state: U.STANDBY }, () => I.CONNECTING).with({ state: U.CONNECTING }, () => I.CONNECTING).with({ state: U.READY }, () => I.READY).with({ state: U.HANDSHAKE }, () => I.CONFIRMING).with({ state: U.HANDSHAKE_PARTIAL }, () => I.CONFIRMING).with({ state: U.ENCRYPTED }, () => I.CONNECTED).otherwise(() => I.CONNECTING)
963
+ ).with({ status: le.READY }, () => I.READY).with({ status: le.CONNECTED }, () => I.CONNECTED).with({ status: le.DISCONNECTED }, () => I.DISCONNECTED).otherwise(() => I.ERROR), bn = ({ onClose: e, onCopy: t }) => {
964
+ const { status: r } = Ce(), { displayState: n } = yn(wn(r));
965
+ return /* @__PURE__ */ l("div", { style: { viewTransitionName: "connection-flow" }, className: "w-full", children: X(n).with(I.CONNECTING, () => /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-4 p-6", children: [
966
+ /* @__PURE__ */ l(mn, {}),
967
+ /* @__PURE__ */ b("div", { className: "text-center", children: [
968
+ /* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connecting" }),
969
+ /* @__PURE__ */ l("p", { className: "text-gray-500 text-sm", children: "Waiting for wallet to connect..." })
970
+ ] })
971
+ ] })).with(I.READY, () => /* @__PURE__ */ l(hn, { onCopy: t })).with(I.CONFIRMING, () => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Establishing e2e encryption..." }) }) })).with(I.CONNECTED, () => /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-4 p-6", children: /* @__PURE__ */ b("div", { className: "text-center", children: [
972
+ /* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "✅" }),
973
+ /* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connected Successfully!" }),
974
+ /* @__PURE__ */ l("p", { className: "text-gray-500 text-sm", children: "Your wallet is now connected and ready to use." })
975
+ ] }) })).with(I.DISCONNECTED, () => /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-4 p-6", children: [
976
+ /* @__PURE__ */ b("div", { className: "text-center", children: [
977
+ /* @__PURE__ */ l("div", { className: "mb-4 text-4xl", children: "🔌" }),
978
+ /* @__PURE__ */ l("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Disconnected" }),
979
+ /* @__PURE__ */ l("p", { className: "mb-4 text-gray-500 text-sm", children: "The connection has been closed." })
980
+ ] }),
981
+ /* @__PURE__ */ l(
982
+ "button",
983
+ {
984
+ type: "button",
985
+ onClick: e,
986
+ className: "w-full rounded-lg bg-gray-100 px-4 py-2 font-semibold text-gray-700 text-sm transition hover:bg-gray-200",
987
+ children: "Close"
988
+ }
989
+ )
990
+ ] })).otherwise(() => /* @__PURE__ */ l(Xe, { state: r })) });
991
+ };
992
+ var Qt = {
839
993
  color: void 0,
840
994
  size: void 0,
841
995
  className: void 0,
842
996
  style: void 0,
843
997
  attr: void 0
844
- }, wt = re.createContext && /* @__PURE__ */ re.createContext(Zt), bn = ["attr", "size", "title"];
845
- function xn(e, t) {
998
+ }, yt = de.createContext && /* @__PURE__ */ de.createContext(Qt), xn = ["attr", "size", "title"];
999
+ function _n(e, t) {
846
1000
  if (e == null) return {};
847
- var r = kn(e, t), n, i;
1001
+ var r = Nn(e, t), n, i;
848
1002
  if (Object.getOwnPropertySymbols) {
849
1003
  var o = Object.getOwnPropertySymbols(e);
850
1004
  for (i = 0; i < o.length; i++)
@@ -852,7 +1006,7 @@ function xn(e, t) {
852
1006
  }
853
1007
  return r;
854
1008
  }
855
- function kn(e, t) {
1009
+ function Nn(e, t) {
856
1010
  if (e == null) return {};
857
1011
  var r = {};
858
1012
  for (var n in e)
@@ -862,17 +1016,17 @@ function kn(e, t) {
862
1016
  }
863
1017
  return r;
864
1018
  }
865
- function Oe() {
866
- return Oe = Object.assign ? Object.assign.bind() : function(e) {
1019
+ function Re() {
1020
+ return Re = Object.assign ? Object.assign.bind() : function(e) {
867
1021
  for (var t = 1; t < arguments.length; t++) {
868
1022
  var r = arguments[t];
869
1023
  for (var n in r)
870
1024
  Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
871
1025
  }
872
1026
  return e;
873
- }, Oe.apply(this, arguments);
1027
+ }, Re.apply(this, arguments);
874
1028
  }
875
- function bt(e, t) {
1029
+ function wt(e, t) {
876
1030
  var r = Object.keys(e);
877
1031
  if (Object.getOwnPropertySymbols) {
878
1032
  var n = Object.getOwnPropertySymbols(e);
@@ -882,25 +1036,25 @@ function bt(e, t) {
882
1036
  }
883
1037
  return r;
884
1038
  }
885
- function je(e) {
1039
+ function Te(e) {
886
1040
  for (var t = 1; t < arguments.length; t++) {
887
1041
  var r = arguments[t] != null ? arguments[t] : {};
888
- t % 2 ? bt(Object(r), !0).forEach(function(n) {
889
- _n(e, n, r[n]);
890
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : bt(Object(r)).forEach(function(n) {
1042
+ t % 2 ? wt(Object(r), !0).forEach(function(n) {
1043
+ kn(e, n, r[n]);
1044
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : wt(Object(r)).forEach(function(n) {
891
1045
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
892
1046
  });
893
1047
  }
894
1048
  return e;
895
1049
  }
896
- function _n(e, t, r) {
897
- return t = Sn(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1050
+ function kn(e, t, r) {
1051
+ return t = Cn(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
898
1052
  }
899
- function Sn(e) {
900
- var t = Nn(e, "string");
1053
+ function Cn(e) {
1054
+ var t = An(e, "string");
901
1055
  return typeof t == "symbol" ? t : t + "";
902
1056
  }
903
- function Nn(e, t) {
1057
+ function An(e, t) {
904
1058
  if (typeof e != "object" || !e) return e;
905
1059
  var r = e[Symbol.toPrimitive];
906
1060
  if (r !== void 0) {
@@ -910,43 +1064,43 @@ function Nn(e, t) {
910
1064
  }
911
1065
  return (t === "string" ? String : Number)(e);
912
1066
  }
913
- function qt(e) {
914
- return e && e.map((t, r) => /* @__PURE__ */ re.createElement(t.tag, je({
1067
+ function Zt(e) {
1068
+ return e && e.map((t, r) => /* @__PURE__ */ de.createElement(t.tag, Te({
915
1069
  key: r
916
- }, t.attr), qt(t.child)));
1070
+ }, t.attr), Zt(t.child)));
917
1071
  }
918
1072
  function Pe(e) {
919
- return (t) => /* @__PURE__ */ re.createElement(Cn, Oe({
920
- attr: je({}, e.attr)
921
- }, t), qt(e.child));
1073
+ return (t) => /* @__PURE__ */ de.createElement(Sn, Re({
1074
+ attr: Te({}, e.attr)
1075
+ }, t), Zt(e.child));
922
1076
  }
923
- function Cn(e) {
1077
+ function Sn(e) {
924
1078
  var t = (r) => {
925
1079
  var {
926
1080
  attr: n,
927
1081
  size: i,
928
1082
  title: o
929
- } = e, a = xn(e, bn), l = i || r.size || "1em", c;
930
- return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ re.createElement("svg", Oe({
1083
+ } = e, a = _n(e, xn), s = i || r.size || "1em", c;
1084
+ return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ de.createElement("svg", Re({
931
1085
  stroke: "currentColor",
932
1086
  fill: "currentColor",
933
1087
  strokeWidth: "0"
934
1088
  }, r.attr, n, a, {
935
1089
  className: c,
936
- style: je(je({
1090
+ style: Te(Te({
937
1091
  color: e.color || r.color
938
1092
  }, r.style), e.style),
939
- height: l,
940
- width: l,
1093
+ height: s,
1094
+ width: s,
941
1095
  xmlns: "http://www.w3.org/2000/svg"
942
- }), o && /* @__PURE__ */ re.createElement("title", null, o), e.children);
1096
+ }), o && /* @__PURE__ */ de.createElement("title", null, o), e.children);
943
1097
  };
944
- return wt !== void 0 ? /* @__PURE__ */ re.createElement(wt.Consumer, null, (r) => t(r)) : t(Zt);
1098
+ return yt !== void 0 ? /* @__PURE__ */ de.createElement(yt.Consumer, null, (r) => t(r)) : t(Qt);
945
1099
  }
946
- function An(e) {
1100
+ function En(e) {
947
1101
  return Pe({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M416.3 256c0-21 13.1-38.9 31.7-46.1-4.9-20.5-13-39.7-23.7-57.1-6.4 2.8-13.2 4.3-20.1 4.3-12.6 0-25.2-4.8-34.9-14.4-14.9-14.9-18.2-36.8-10.2-55-17.3-10.7-36.6-18.8-57-23.7C295 82.5 277 95.7 256 95.7S217 82.5 209.9 64c-20.5 4.9-39.7 13-57.1 23.7 8.1 18.1 4.7 40.1-10.2 55-9.6 9.6-22.3 14.4-34.9 14.4-6.9 0-13.7-1.4-20.1-4.3C77 170.3 68.9 189.5 64 210c18.5 7.1 31.7 25 31.7 46.1 0 21-13.1 38.9-31.6 46.1 4.9 20.5 13 39.7 23.7 57.1 6.4-2.8 13.2-4.2 20-4.2 12.6 0 25.2 4.8 34.9 14.4 14.8 14.8 18.2 36.8 10.2 54.9 17.4 10.7 36.7 18.8 57.1 23.7 7.1-18.5 25-31.6 46-31.6s38.9 13.1 46 31.6c20.5-4.9 39.7-13 57.1-23.7-8-18.1-4.6-40 10.2-54.9 9.6-9.6 22.2-14.4 34.9-14.4 6.8 0 13.7 1.4 20 4.2 10.7-17.4 18.8-36.7 23.7-57.1-18.4-7.2-31.6-25.1-31.6-46.2zm-159.4 79.9c-44.3 0-80-35.9-80-80s35.7-80 80-80 80 35.9 80 80-35.7 80-80 80z" }, child: [] }] })(e);
948
1102
  }
949
- var On = /\s+/g, qe = (e) => typeof e != "string" || !e ? e : e.replace(On, " ").trim(), Te = (...e) => {
1103
+ var On = /\s+/g, Ye = (e) => typeof e != "string" || !e ? e : e.replace(On, " ").trim(), je = (...e) => {
950
1104
  let t = [], r = (n) => {
951
1105
  if (!n && n !== 0 && n !== 0n) return;
952
1106
  if (Array.isArray(n)) {
@@ -959,7 +1113,7 @@ var On = /\s+/g, qe = (e) => typeof e != "string" || !e ? e : e.replace(On, " ")
959
1113
  t.push(String(n));
960
1114
  } else if (i === "object") {
961
1115
  let o = Object.keys(n);
962
- for (let a = 0, l = o.length; a < l; a++) {
1116
+ for (let a = 0, s = o.length; a < s; a++) {
963
1117
  let c = o[a];
964
1118
  n[c] && t.push(c);
965
1119
  }
@@ -969,12 +1123,12 @@ var On = /\s+/g, qe = (e) => typeof e != "string" || !e ? e : e.replace(On, " ")
969
1123
  let o = e[n];
970
1124
  o != null && r(o);
971
1125
  }
972
- return t.length > 0 ? qe(t.join(" ")) : void 0;
973
- }, xt = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, P = (e) => {
1126
+ return t.length > 0 ? Ye(t.join(" ")) : void 0;
1127
+ }, bt = (e) => e === !1 ? "false" : e === !0 ? "true" : e === 0 ? "0" : e, W = (e) => {
974
1128
  if (!e || typeof e != "object") return !0;
975
1129
  for (let t in e) return !1;
976
1130
  return !0;
977
- }, jn = (e, t) => {
1131
+ }, Rn = (e, t) => {
978
1132
  if (e === t) return !0;
979
1133
  if (!e || !t) return !1;
980
1134
  let r = Object.keys(e), n = Object.keys(t);
@@ -984,36 +1138,36 @@ var On = /\s+/g, qe = (e) => typeof e != "string" || !e ? e : e.replace(On, " ")
984
1138
  if (!n.includes(o) || e[o] !== t[o]) return !1;
985
1139
  }
986
1140
  return !0;
987
- }, kt = (e, t) => {
1141
+ }, xt = (e, t) => {
988
1142
  for (let r in t) if (Object.prototype.hasOwnProperty.call(t, r)) {
989
1143
  let n = t[r];
990
- r in e ? e[r] = Te(e[r], n) : e[r] = n;
1144
+ r in e ? e[r] = je(e[r], n) : e[r] = n;
991
1145
  }
992
1146
  return e;
993
- }, Yt = (e, t) => {
1147
+ }, qt = (e, t) => {
994
1148
  for (let r = 0; r < e.length; r++) {
995
1149
  let n = e[r];
996
- Array.isArray(n) ? Yt(n, t) : n && t.push(n);
1150
+ Array.isArray(n) ? qt(n, t) : n && t.push(n);
997
1151
  }
998
1152
  }, $t = (...e) => {
999
1153
  let t = [];
1000
- Yt(e, t);
1154
+ qt(e, t);
1001
1155
  let r = [];
1002
1156
  for (let n = 0; n < t.length; n++) t[n] && r.push(t[n]);
1003
1157
  return r;
1004
- }, Ye = (e, t) => {
1158
+ }, Qe = (e, t) => {
1005
1159
  let r = {};
1006
1160
  for (let n in e) {
1007
1161
  let i = e[n];
1008
1162
  if (n in t) {
1009
1163
  let o = t[n];
1010
- Array.isArray(i) || Array.isArray(o) ? r[n] = $t(o, i) : typeof i == "object" && typeof o == "object" && i && o ? r[n] = Ye(i, o) : r[n] = o + " " + i;
1164
+ Array.isArray(i) || Array.isArray(o) ? r[n] = $t(o, i) : typeof i == "object" && typeof o == "object" && i && o ? r[n] = Qe(i, o) : r[n] = o + " " + i;
1011
1165
  } else r[n] = i;
1012
1166
  }
1013
1167
  for (let n in t) n in e || (r[n] = t[n]);
1014
1168
  return r;
1015
1169
  }, Tn = { twMerge: !0, twMergeConfig: {}, responsiveVariants: !1 };
1016
- function Rn() {
1170
+ function jn() {
1017
1171
  let e = null, t = {}, r = !1;
1018
1172
  return { get cachedTwMerge() {
1019
1173
  return e;
@@ -1031,148 +1185,148 @@ function Rn() {
1031
1185
  e = null, t = {}, r = !1;
1032
1186
  } };
1033
1187
  }
1034
- var Be = Rn(), En = (e) => {
1188
+ var Fe = jn(), Dn = (e) => {
1035
1189
  let t = (r, n) => {
1036
- let { extend: i = null, slots: o = {}, variants: a = {}, compoundVariants: l = [], compoundSlots: c = [], defaultVariants: g = {} } = r, v = { ...Tn, ...n }, W = i?.base ? Te(i.base, r?.base) : r?.base, S = i?.variants && !P(i.variants) ? Ye(a, i.variants) : a, ne = i?.defaultVariants && !P(i.defaultVariants) ? { ...i.defaultVariants, ...g } : g;
1037
- !P(v.twMergeConfig) && !jn(v.twMergeConfig, Be.cachedTwMergeConfig) && (Be.didTwMergeConfigChange = !0, Be.cachedTwMergeConfig = v.twMergeConfig);
1038
- let ie = P(i?.slots), oe = P(o) ? {} : { base: Te(r?.base, ie && i?.base), ...o }, H = ie ? oe : kt({ ...i?.slots }, P(oe) ? { base: r?.base } : oe), J = P(i?.compoundVariants) ? l : $t(i?.compoundVariants, l), V = (M) => {
1039
- if (P(S) && P(o) && ie) return e(W, M?.class, M?.className)(v);
1040
- if (J && !Array.isArray(J)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof J}`);
1190
+ let { extend: i = null, slots: o = {}, variants: a = {}, compoundVariants: s = [], compoundSlots: c = [], defaultVariants: u = {} } = r, d = { ...Tn, ...n }, p = i?.base ? je(i.base, r?.base) : r?.base, w = i?.variants && !W(i.variants) ? Qe(a, i.variants) : a, S = i?.defaultVariants && !W(i.defaultVariants) ? { ...i.defaultVariants, ...u } : u;
1191
+ !W(d.twMergeConfig) && !Rn(d.twMergeConfig, Fe.cachedTwMergeConfig) && (Fe.didTwMergeConfigChange = !0, Fe.cachedTwMergeConfig = d.twMergeConfig);
1192
+ let N = W(i?.slots), P = W(o) ? {} : { base: je(r?.base, N && i?.base), ...o }, f = N ? P : xt({ ...i?.slots }, W(P) ? { base: r?.base } : P), j = W(i?.compoundVariants) ? s : $t(i?.compoundVariants, s), O = (H) => {
1193
+ if (W(w) && W(o) && N) return e(p, H?.class, H?.className)(d);
1194
+ if (j && !Array.isArray(j)) throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);
1041
1195
  if (c && !Array.isArray(c)) throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof c}`);
1042
- let ke = (p, d, u = [], y) => {
1043
- let w = u;
1044
- if (typeof d == "string") {
1045
- let h = qe(d).split(" ");
1046
- for (let x = 0; x < h.length; x++) w.push(`${p}:${h[x]}`);
1047
- } else if (Array.isArray(d)) for (let h = 0; h < d.length; h++) w.push(`${p}:${d[h]}`);
1048
- else if (typeof d == "object" && typeof y == "string" && y in d) {
1049
- let h = d[y];
1050
- if (h && typeof h == "string") {
1051
- let x = qe(h).split(" "), A = [];
1052
- for (let C = 0; C < x.length; C++) A.push(`${p}:${x[C]}`);
1053
- w[y] = w[y] ? w[y].concat(A) : A;
1054
- } else if (Array.isArray(h) && h.length > 0) {
1055
- let x = [];
1056
- for (let A = 0; A < h.length; A++) x.push(`${p}:${h[A]}`);
1057
- w[y] = x;
1196
+ let Y = (v, g, h = [], x) => {
1197
+ let _ = h;
1198
+ if (typeof g == "string") {
1199
+ let y = Ye(g).split(" ");
1200
+ for (let A = 0; A < y.length; A++) _.push(`${v}:${y[A]}`);
1201
+ } else if (Array.isArray(g)) for (let y = 0; y < g.length; y++) _.push(`${v}:${g[y]}`);
1202
+ else if (typeof g == "object" && typeof x == "string" && x in g) {
1203
+ let y = g[x];
1204
+ if (y && typeof y == "string") {
1205
+ let A = Ye(y).split(" "), L = [];
1206
+ for (let D = 0; D < A.length; D++) L.push(`${v}:${A[D]}`);
1207
+ _[x] = _[x] ? _[x].concat(L) : L;
1208
+ } else if (Array.isArray(y) && y.length > 0) {
1209
+ let A = [];
1210
+ for (let L = 0; L < y.length; L++) A.push(`${v}:${y[L]}`);
1211
+ _[x] = A;
1058
1212
  }
1059
1213
  }
1060
- return w;
1061
- }, X = (p, d = S, u = null, y = null) => {
1062
- let w = d[p];
1063
- if (!w || P(w)) return null;
1064
- let h = y?.[p] ?? M?.[p];
1065
- if (h === null) return null;
1066
- let x = xt(h), A = Array.isArray(v.responsiveVariants) && v.responsiveVariants.length > 0 || v.responsiveVariants === !0, C = ne?.[p], N = [];
1067
- if (typeof x == "object" && A) for (let [G, lt] of Object.entries(x)) {
1068
- let nr = w[lt];
1069
- if (G === "initial") {
1070
- C = lt;
1214
+ return _;
1215
+ }, te = (v, g = w, h = null, x = null) => {
1216
+ let _ = g[v];
1217
+ if (!_ || W(_)) return null;
1218
+ let y = x?.[v] ?? H?.[v];
1219
+ if (y === null) return null;
1220
+ let A = bt(y), L = Array.isArray(d.responsiveVariants) && d.responsiveVariants.length > 0 || d.responsiveVariants === !0, D = S?.[v], T = [];
1221
+ if (typeof A == "object" && L) for (let [ne, at] of Object.entries(A)) {
1222
+ let nr = _[at];
1223
+ if (ne === "initial") {
1224
+ D = at;
1071
1225
  continue;
1072
1226
  }
1073
- Array.isArray(v.responsiveVariants) && !v.responsiveVariants.includes(G) || (N = ke(G, nr, N, u));
1227
+ Array.isArray(d.responsiveVariants) && !d.responsiveVariants.includes(ne) || (T = Y(ne, nr, T, h));
1074
1228
  }
1075
- let Q = x != null && typeof x != "object" ? x : xt(C), E = w[Q || "false"];
1076
- return typeof N == "object" && typeof u == "string" && N[u] ? kt(N, E) : N.length > 0 ? (N.push(E), u === "base" ? N.join(" ") : N) : E;
1077
- }, te = () => {
1078
- if (!S) return null;
1079
- let p = Object.keys(S), d = [];
1080
- for (let u = 0; u < p.length; u++) {
1081
- let y = X(p[u], S);
1082
- y && d.push(y);
1229
+ let re = A != null && typeof A != "object" ? A : bt(D), G = _[re || "false"];
1230
+ return typeof T == "object" && typeof h == "string" && T[h] ? xt(T, G) : T.length > 0 ? (T.push(G), h === "base" ? T.join(" ") : T) : G;
1231
+ }, ue = () => {
1232
+ if (!w) return null;
1233
+ let v = Object.keys(w), g = [];
1234
+ for (let h = 0; h < v.length; h++) {
1235
+ let x = te(v[h], w);
1236
+ x && g.push(x);
1083
1237
  }
1084
- return d;
1085
- }, ze = (p, d) => {
1086
- if (!S || typeof S != "object") return null;
1087
- let u = [];
1088
- for (let y in S) {
1089
- let w = X(y, S, p, d), h = p === "base" && typeof w == "string" ? w : w && w[p];
1090
- h && u.push(h);
1238
+ return g;
1239
+ }, Le = (v, g) => {
1240
+ if (!w || typeof w != "object") return null;
1241
+ let h = [];
1242
+ for (let x in w) {
1243
+ let _ = te(x, w, v, g), y = v === "base" && typeof _ == "string" ? _ : _ && _[v];
1244
+ y && h.push(y);
1091
1245
  }
1092
- return u;
1093
- }, pe = {};
1094
- for (let p in M) {
1095
- let d = M[p];
1096
- d !== void 0 && (pe[p] = d);
1246
+ return h;
1247
+ }, ye = {};
1248
+ for (let v in H) {
1249
+ let g = H[v];
1250
+ g !== void 0 && (ye[v] = g);
1097
1251
  }
1098
- let U = (p, d) => {
1099
- let u = typeof M?.[p] == "object" ? { [p]: M[p]?.initial } : {};
1100
- return { ...ne, ...pe, ...u, ...d };
1101
- }, fe = (p = [], d) => {
1102
- let u = [], y = p.length;
1103
- for (let w = 0; w < y; w++) {
1104
- let { class: h, className: x, ...A } = p[w], C = !0, N = U(null, d);
1105
- for (let Q in A) {
1106
- let E = A[Q], G = N[Q];
1107
- if (Array.isArray(E)) {
1108
- if (!E.includes(G)) {
1109
- C = !1;
1252
+ let $ = (v, g) => {
1253
+ let h = typeof H?.[v] == "object" ? { [v]: H[v]?.initial } : {};
1254
+ return { ...S, ...ye, ...h, ...g };
1255
+ }, we = (v = [], g) => {
1256
+ let h = [], x = v.length;
1257
+ for (let _ = 0; _ < x; _++) {
1258
+ let { class: y, className: A, ...L } = v[_], D = !0, T = $(null, g);
1259
+ for (let re in L) {
1260
+ let G = L[re], ne = T[re];
1261
+ if (Array.isArray(G)) {
1262
+ if (!G.includes(ne)) {
1263
+ D = !1;
1110
1264
  break;
1111
1265
  }
1112
1266
  } else {
1113
- if ((E == null || E === !1) && (G == null || G === !1)) continue;
1114
- if (G !== E) {
1115
- C = !1;
1267
+ if ((G == null || G === !1) && (ne == null || ne === !1)) continue;
1268
+ if (ne !== G) {
1269
+ D = !1;
1116
1270
  break;
1117
1271
  }
1118
1272
  }
1119
1273
  }
1120
- C && (h && u.push(h), x && u.push(x));
1274
+ D && (y && h.push(y), A && h.push(A));
1121
1275
  }
1122
- return u;
1123
- }, Ve = (p) => {
1124
- let d = fe(J, p);
1125
- if (!Array.isArray(d)) return d;
1126
- let u = {}, y = e;
1127
- for (let w = 0; w < d.length; w++) {
1128
- let h = d[w];
1129
- if (typeof h == "string") u.base = y(u.base, h)(v);
1130
- else if (typeof h == "object") for (let x in h) u[x] = y(u[x], h[x])(v);
1276
+ return h;
1277
+ }, Me = (v) => {
1278
+ let g = we(j, v);
1279
+ if (!Array.isArray(g)) return g;
1280
+ let h = {}, x = e;
1281
+ for (let _ = 0; _ < g.length; _++) {
1282
+ let y = g[_];
1283
+ if (typeof y == "string") h.base = x(h.base, y)(d);
1284
+ else if (typeof y == "object") for (let A in y) h[A] = x(h[A], y[A])(d);
1131
1285
  }
1132
- return u;
1133
- }, _e = (p) => {
1286
+ return h;
1287
+ }, Ae = (v) => {
1134
1288
  if (c.length < 1) return null;
1135
- let d = {}, u = U(null, p);
1136
- for (let y = 0; y < c.length; y++) {
1137
- let { slots: w = [], class: h, className: x, ...A } = c[y];
1138
- if (!P(A)) {
1139
- let C = !0;
1140
- for (let N in A) {
1141
- let Q = u[N], E = A[N];
1142
- if (Q === void 0 || (Array.isArray(E) ? !E.includes(Q) : E !== Q)) {
1143
- C = !1;
1289
+ let g = {}, h = $(null, v);
1290
+ for (let x = 0; x < c.length; x++) {
1291
+ let { slots: _ = [], class: y, className: A, ...L } = c[x];
1292
+ if (!W(L)) {
1293
+ let D = !0;
1294
+ for (let T in L) {
1295
+ let re = h[T], G = L[T];
1296
+ if (re === void 0 || (Array.isArray(G) ? !G.includes(re) : G !== re)) {
1297
+ D = !1;
1144
1298
  break;
1145
1299
  }
1146
1300
  }
1147
- if (!C) continue;
1301
+ if (!D) continue;
1148
1302
  }
1149
- for (let C = 0; C < w.length; C++) {
1150
- let N = w[C];
1151
- d[N] || (d[N] = []), d[N].push([h, x]);
1303
+ for (let D = 0; D < _.length; D++) {
1304
+ let T = _[D];
1305
+ g[T] || (g[T] = []), g[T].push([y, A]);
1152
1306
  }
1153
1307
  }
1154
- return d;
1308
+ return g;
1155
1309
  };
1156
- if (!P(o) || !ie) {
1157
- let p = {};
1158
- if (typeof H == "object" && !P(H)) {
1159
- let d = e;
1160
- for (let u in H) p[u] = (y) => {
1161
- let w = Ve(y), h = _e(y);
1162
- return d(H[u], ze(u, y), w ? w[u] : void 0, h ? h[u] : void 0, y?.class, y?.className)(v);
1310
+ if (!W(o) || !N) {
1311
+ let v = {};
1312
+ if (typeof f == "object" && !W(f)) {
1313
+ let g = e;
1314
+ for (let h in f) v[h] = (x) => {
1315
+ let _ = Me(x), y = Ae(x);
1316
+ return g(f[h], Le(h, x), _ ? _[h] : void 0, y ? y[h] : void 0, x?.class, x?.className)(d);
1163
1317
  };
1164
1318
  }
1165
- return p;
1319
+ return v;
1166
1320
  }
1167
- return e(W, te(), fe(J), M?.class, M?.className)(v);
1168
- }, xe = () => {
1169
- if (!(!S || typeof S != "object")) return Object.keys(S);
1321
+ return e(p, ue(), we(j), H?.class, H?.className)(d);
1322
+ }, k = () => {
1323
+ if (!(!w || typeof w != "object")) return Object.keys(w);
1170
1324
  };
1171
- return V.variantKeys = xe(), V.extend = i, V.base = W, V.slots = H, V.variants = S, V.defaultVariants = ne, V.compoundSlots = c, V.compoundVariants = J, V;
1325
+ return O.variantKeys = k(), O.extend = i, O.base = p, O.slots = f, O.variants = w, O.defaultVariants = S, O.compoundSlots = c, O.compoundVariants = j, O;
1172
1326
  };
1173
- return { tv: t, createTV: (r) => (n, i) => t(n, i ? Ye(r, i) : r) };
1174
- }, Pn = (...e) => (t) => Te(e) || void 0, { tv: er } = En(Pn);
1175
- const zn = er({
1327
+ return { tv: t, createTV: (r) => (n, i) => t(n, i ? Qe(r, i) : r) };
1328
+ }, In = (...e) => (t) => je(e) || void 0, { tv: er } = Dn(In);
1329
+ const Pn = er({
1176
1330
  base: "flex items-center justify-center rounded-lg transition-colors cursor-pointer active:scale-95 transition-transform",
1177
1331
  variants: {
1178
1332
  $variant: {
@@ -1195,7 +1349,7 @@ const zn = er({
1195
1349
  $variant: "primary",
1196
1350
  $aspect: "auto"
1197
1351
  }
1198
- }), me = ({
1352
+ }), xe = ({
1199
1353
  href: e,
1200
1354
  onClick: t,
1201
1355
  children: r,
@@ -1203,47 +1357,47 @@ const zn = er({
1203
1357
  $variant: i,
1204
1358
  $size: o,
1205
1359
  $aspect: a,
1206
- ...l
1207
- }) => K(
1360
+ ...s
1361
+ }) => ee(
1208
1362
  e ? "a" : "button",
1209
1363
  {
1210
1364
  href: e ?? void 0,
1211
1365
  onClick: t,
1212
- className: se(zn({ $variant: i, $size: o, $aspect: a }), n),
1213
- ...l
1366
+ className: pe(Pn({ $variant: i, $size: o, $aspect: a }), n),
1367
+ ...s
1214
1368
  },
1215
1369
  r
1216
- ), Vn = ({ isApple: e }) => /* @__PURE__ */ m("div", { className: "flex h-full w-full justify-between", children: [
1217
- /* @__PURE__ */ s("div", { className: "grow py-1 pl-1", children: /* @__PURE__ */ s("div", { className: "h-full rounded-sm border border-gray-300 bg-gray-400" }) }),
1218
- /* @__PURE__ */ s("div", { className: "flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ s(
1370
+ ), Ln = ({ isApple: e }) => /* @__PURE__ */ b("div", { className: "flex h-full w-full justify-between", children: [
1371
+ /* @__PURE__ */ l("div", { className: "grow py-1 pl-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-300 bg-gray-400" }) }),
1372
+ /* @__PURE__ */ l("div", { className: "flex h-full w-3 flex-col items-center justify-center gap-0.5 pr-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ l(
1219
1373
  "div",
1220
1374
  {
1221
1375
  className: "h-1.5 w-1.5 rounded-full border border-gray-500"
1222
1376
  },
1223
1377
  "dot-t-" + r
1224
1378
  )) })
1225
- ] }), Mn = ({ isApple: e }) => /* @__PURE__ */ m("div", { className: "flex h-full w-full flex-col justify-between", children: [
1226
- /* @__PURE__ */ s("div", { className: "grow px-1 pt-1", children: /* @__PURE__ */ s("div", { className: "h-full rounded-sm border border-gray-200 bg-gray-300" }) }),
1227
- /* @__PURE__ */ s("div", { className: "flex h-3 w-full items-center justify-center gap-0.5 pb-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ s(
1379
+ ] }), Mn = ({ isApple: e }) => /* @__PURE__ */ b("div", { className: "flex h-full w-full flex-col justify-between", children: [
1380
+ /* @__PURE__ */ l("div", { className: "grow px-1 pt-1", children: /* @__PURE__ */ l("div", { className: "h-full rounded-sm border border-gray-200 bg-gray-300" }) }),
1381
+ /* @__PURE__ */ l("div", { className: "flex h-3 w-full items-center justify-center gap-0.5 pb-0.5", children: Array.from({ length: e ? 1 : 3 }).map((t, r) => /* @__PURE__ */ l(
1228
1382
  "div",
1229
1383
  {
1230
1384
  className: "h-1.5 w-1.5 rounded-full border border-gray-400"
1231
1385
  },
1232
1386
  "dot-p-" + r
1233
1387
  )) })
1234
- ] }), Ln = () => /* @__PURE__ */ m("div", { className: "-space-x-4 flex items-end", children: [
1235
- /* @__PURE__ */ s("div", { className: "h-38 w-48 overflow-hidden rounded-lg bg-gray-300", children: /* @__PURE__ */ s(Vn, { isApple: !0 }) }),
1236
- /* @__PURE__ */ s("div", { className: "h-18 w-12 overflow-hidden rounded-lg bg-gray-200", children: /* @__PURE__ */ s(Mn, { isApple: !0 }) })
1237
- ] }), Dn = ({
1388
+ ] }), zn = () => /* @__PURE__ */ b("div", { className: "-space-x-4 flex items-end", children: [
1389
+ /* @__PURE__ */ l("div", { className: "h-38 w-48 overflow-hidden rounded-lg bg-gray-300", children: /* @__PURE__ */ l(Ln, { isApple: !0 }) }),
1390
+ /* @__PURE__ */ l("div", { className: "h-18 w-12 overflow-hidden rounded-lg bg-gray-200", children: /* @__PURE__ */ l(Mn, { isApple: !0 }) })
1391
+ ] }), Vn = ({
1238
1392
  onSettings: e
1239
1393
  }) => {
1240
- const { start: t } = zr();
1241
- return /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-4 p-6", children: [
1242
- /* @__PURE__ */ s(Ln, {}),
1243
- /* @__PURE__ */ s("div", { className: "text-center", children: /* @__PURE__ */ s("p", { className: "text-gray-500 text-sm", children: "Click the button below to start a connection" }) }),
1244
- /* @__PURE__ */ m("div", { className: "flex items-center", children: [
1245
- /* @__PURE__ */ s(
1246
- me,
1394
+ const { start: t } = pn();
1395
+ return /* @__PURE__ */ b("div", { className: "flex flex-col items-center gap-4 p-6", children: [
1396
+ /* @__PURE__ */ l(zn, {}),
1397
+ /* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ l("p", { className: "text-gray-500 text-sm", children: "Click the button below to start a connection" }) }),
1398
+ /* @__PURE__ */ b("div", { className: "flex items-center", children: [
1399
+ /* @__PURE__ */ l(
1400
+ xe,
1247
1401
  {
1248
1402
  type: "button",
1249
1403
  onClick: t,
@@ -1253,8 +1407,8 @@ const zn = er({
1253
1407
  children: "Generate QR"
1254
1408
  }
1255
1409
  ),
1256
- /* @__PURE__ */ s(
1257
- me,
1410
+ /* @__PURE__ */ l(
1411
+ xe,
1258
1412
  {
1259
1413
  type: "button",
1260
1414
  "aria-label": "Connection settings",
@@ -1264,7 +1418,7 @@ const zn = er({
1264
1418
  $aspect: "square",
1265
1419
  $size: "lg",
1266
1420
  $variant: "secondary",
1267
- children: /* @__PURE__ */ s(An, { className: "h-5 w-5 text-gray-500" })
1421
+ children: /* @__PURE__ */ l(En, { className: "h-5 w-5 text-gray-500" })
1268
1422
  }
1269
1423
  )
1270
1424
  ] })
@@ -1285,10 +1439,10 @@ const zn = er({
1285
1439
  return !1;
1286
1440
  }
1287
1441
  }, _t = (e, { duration: t = 200 } = {}) => {
1288
- const [r, n] = O(e), [i, o] = O(null), a = L(), l = L(e);
1289
- return z(() => {
1290
- if (!Object.is(e, l.current))
1291
- return a.current && window.clearTimeout(a.current), o(l.current), n(e), l.current = e, a.current = window.setTimeout(() => {
1442
+ const [r, n] = M(e), [i, o] = M(null), a = J(), s = J(e);
1443
+ return B(() => {
1444
+ if (!Object.is(e, s.current))
1445
+ return a.current && window.clearTimeout(a.current), o(s.current), n(e), s.current = e, a.current = window.setTimeout(() => {
1292
1446
  o(null), a.current = void 0;
1293
1447
  }, t), () => {
1294
1448
  a.current && window.clearTimeout(a.current);
@@ -1298,24 +1452,45 @@ const zn = er({
1298
1452
  previous: i,
1299
1453
  isTransitioning: i !== null
1300
1454
  };
1301
- }, Fn = "data:image/webp;base64,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", In = () => {
1302
- const { status: e } = be(), { status: t } = de(), r = D(t).with("disconnected", () => {
1455
+ }, Fn = "data:image/webp;base64,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", Hn = () => {
1456
+ const { status: e } = Ce(), { status: t } = me(), r = X(t).with(K.STANDBY, () => {
1303
1457
  }).with(
1304
- tt.union("connected", "connecting", "error"),
1305
- () => D(e).with({ status: "disconnected" }, () => ({
1306
- icon: "🫲",
1307
- text: "Disconnected"
1458
+ Pt.union(
1459
+ K.CREATING,
1460
+ K.CONNECTING,
1461
+ K.CONNECTED,
1462
+ K.ERROR
1463
+ ),
1464
+ () => X({ status: e?.status }).with({ status: le.CREATED }, () => {
1465
+ }).with({ status: le.CONNECTED }, () => ({
1466
+ icon: "✅",
1467
+ text: "Connected Successfully!"
1308
1468
  })).with(
1309
- { status: "signaling" },
1310
- (n) => D(n.signaling).with({ state: "handshake-open" }, () => ({
1469
+ { status: le.SIGNALING },
1470
+ () => X({ status: e?.signaling?.state }).with({ status: U.STANDBY }, () => ({
1471
+ icon: "🫥",
1472
+ text: "Connecting"
1473
+ })).with({ status: U.CONNECTING }, () => ({
1474
+ icon: "↗️",
1475
+ text: "Connecting"
1476
+ })).with({ status: U.READY }, () => ({
1311
1477
  icon: "👋",
1312
- text: "Handshake Open"
1313
- })).with({ state: "handshake-closed" }, () => ({
1478
+ text: "Ready"
1479
+ })).with({ status: U.HANDSHAKE }, () => ({
1314
1480
  icon: "🤝",
1315
1481
  text: "Handshake Closed"
1482
+ })).with({ status: U.HANDSHAKE_PARTIAL }, () => ({
1483
+ icon: "🤝",
1484
+ text: "Handshake Partial"
1485
+ })).with({ status: U.ENCRYPTED }, () => ({
1486
+ icon: "🔒",
1487
+ text: "Encrypted"
1488
+ })).with({ status: U.ERROR }, () => ({
1489
+ icon: "❌",
1490
+ text: "Signal Error"
1316
1491
  })).otherwise(() => ({
1317
1492
  icon: "❓",
1318
- text: "Unknown " + n.signaling?.state
1493
+ text: "Unknown " + e?.signaling?.state
1319
1494
  }))
1320
1495
  ).otherwise((n) => ({
1321
1496
  icon: "❓",
@@ -1325,14 +1500,14 @@ const zn = er({
1325
1500
  icon: "❓",
1326
1501
  text: "Unknown provider status " + JSON.stringify(t)
1327
1502
  }));
1328
- return r ? /* @__PURE__ */ m("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-neutral-200", children: [
1329
- /* @__PURE__ */ s("div", { className: "text-gray-900 text-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100", children: r.text }),
1330
- /* @__PURE__ */ s("div", { children: r.icon })
1331
- ] }) : /* @__PURE__ */ s(Nt, {});
1332
- }, Wn = () => /* @__PURE__ */ m(Nt, { children: [
1333
- /* @__PURE__ */ s("div", { className: "h-11 w-full" }),
1334
- /* @__PURE__ */ m("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-gray-500", children: [
1335
- /* @__PURE__ */ m(
1503
+ return r ? /* @__PURE__ */ b("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-neutral-200", children: [
1504
+ /* @__PURE__ */ l("div", { className: "text-gray-900 text-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100", children: r.text }),
1505
+ /* @__PURE__ */ l("div", { children: r.icon })
1506
+ ] }) : /* @__PURE__ */ l(kt, {});
1507
+ }, Gn = () => /* @__PURE__ */ b(kt, { children: [
1508
+ /* @__PURE__ */ l("div", { className: "h-11 w-full" }),
1509
+ /* @__PURE__ */ b("div", { className: "absolute inset-x-0 bottom-0 flex items-end justify-between gap-2 px-3 py-2 text-gray-500", children: [
1510
+ /* @__PURE__ */ b(
1336
1511
  "a",
1337
1512
  {
1338
1513
  href: "https://github.com/v3xlabs/open-lavatory",
@@ -1340,7 +1515,7 @@ const zn = er({
1340
1515
  rel: "noreferrer",
1341
1516
  className: "flex items-center gap-2 p-1 font-semibold text-gray-500 text-sm",
1342
1517
  children: [
1343
- /* @__PURE__ */ s(
1518
+ /* @__PURE__ */ l(
1344
1519
  "img",
1345
1520
  {
1346
1521
  src: Fn,
@@ -1350,14 +1525,14 @@ const zn = er({
1350
1525
  className: "rounded"
1351
1526
  }
1352
1527
  ),
1353
- /* @__PURE__ */ s("span", { children: "openlv" })
1528
+ /* @__PURE__ */ l("span", { children: "openlv" })
1354
1529
  ]
1355
1530
  }
1356
1531
  ),
1357
- /* @__PURE__ */ s("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ s(In, {}) })
1532
+ /* @__PURE__ */ l("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ l(Hn, {}) })
1358
1533
  ] })
1359
1534
  ] });
1360
- function Hn(e) {
1535
+ function Wn(e) {
1361
1536
  return Pe({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "m15 18-6-6 6-6" }, child: [] }] })(e);
1362
1537
  }
1363
1538
  function tr(e) {
@@ -1371,19 +1546,19 @@ const Kn = ({
1371
1546
  view: t,
1372
1547
  onClose: r,
1373
1548
  onBack: n
1374
- }) => /* @__PURE__ */ m("div", { className: "flex items-center justify-between px-2 py-2", children: [
1375
- n ? /* @__PURE__ */ s(
1376
- me,
1549
+ }) => /* @__PURE__ */ b("div", { className: "flex items-center justify-between px-2 py-2", children: [
1550
+ n ? /* @__PURE__ */ l(
1551
+ xe,
1377
1552
  {
1378
1553
  onClick: n,
1379
1554
  "aria-label": t === "settings" ? "Back to QR" : "Close modal",
1380
1555
  $variant: "tertiary",
1381
1556
  $aspect: "square",
1382
1557
  $size: "md",
1383
- children: /* @__PURE__ */ s(Hn, { className: "h-6 w-6 text-gray-500" })
1558
+ children: /* @__PURE__ */ l(Wn, { className: "h-6 w-6 text-gray-500" })
1384
1559
  }
1385
- ) : /* @__PURE__ */ s(
1386
- me,
1560
+ ) : /* @__PURE__ */ l(
1561
+ xe,
1387
1562
  {
1388
1563
  type: "button",
1389
1564
  href: "https://openlv.sh",
@@ -1391,12 +1566,12 @@ const Kn = ({
1391
1566
  $variant: "tertiary",
1392
1567
  $aspect: "square",
1393
1568
  $size: "md",
1394
- children: /* @__PURE__ */ s(tr, { className: "h-5 w-5" })
1569
+ children: /* @__PURE__ */ l(tr, { className: "h-5 w-5" })
1395
1570
  }
1396
1571
  ),
1397
- /* @__PURE__ */ s("h2", { className: "flex items-center justify-center gap-2 font-semibold text-gray-900 text-lg", children: e }),
1398
- /* @__PURE__ */ s(
1399
- me,
1572
+ /* @__PURE__ */ l("h2", { className: "flex items-center justify-center gap-2 font-semibold text-gray-900 text-lg", children: e }),
1573
+ /* @__PURE__ */ l(
1574
+ xe,
1400
1575
  {
1401
1576
  type: "button",
1402
1577
  "aria-label": "close",
@@ -1405,7 +1580,7 @@ const Kn = ({
1405
1580
  $variant: "tertiary",
1406
1581
  $aspect: "square",
1407
1582
  $size: "md",
1408
- children: /* @__PURE__ */ s(Un, { className: "h-6 w-6 text-gray-500" })
1583
+ children: /* @__PURE__ */ l(Un, { className: "h-6 w-6 text-gray-500" })
1409
1584
  }
1410
1585
  )
1411
1586
  ] }), Jn = er({
@@ -1438,40 +1613,40 @@ const Kn = ({
1438
1613
  defaultVariants: {
1439
1614
  size: "lg"
1440
1615
  }
1441
- }), ot = ({
1616
+ }), nt = ({
1442
1617
  variant: e = "icon",
1443
1618
  children: t,
1444
1619
  size: r = "lg"
1445
1620
  }) => {
1446
1621
  const { root: n, box: i, popover: o, icon: a } = Jn({ size: r, variant: e });
1447
- return /* @__PURE__ */ m("div", { className: n(), children: [
1448
- /* @__PURE__ */ s("div", { className: i(), children: D(e).with("icon", () => /* @__PURE__ */ s(tr, { className: a() })).with("text", () => /* @__PURE__ */ s("div", { children: "Text" })).exhaustive() }),
1449
- /* @__PURE__ */ s("div", { className: o(), children: t })
1622
+ return /* @__PURE__ */ b("div", { className: n(), children: [
1623
+ /* @__PURE__ */ l("div", { className: i(), children: X(e).with("icon", () => /* @__PURE__ */ l(tr, { className: a() })).with("text", () => /* @__PURE__ */ l("div", { children: "Text" })).exhaustive() }),
1624
+ /* @__PURE__ */ l("div", { className: o(), children: t })
1450
1625
  ] });
1451
- }, at = ({ title: e, right: t, children: r }) => /* @__PURE__ */ m("div", { children: [
1452
- /* @__PURE__ */ m("div", { className: "flex items-end justify-between px-2 py-1", children: [
1453
- /* @__PURE__ */ s("div", { className: "font-medium text-gray-900 text-sm", children: e }),
1454
- /* @__PURE__ */ s("div", { children: t })
1626
+ }, it = ({ title: e, right: t, children: r }) => /* @__PURE__ */ b("div", { children: [
1627
+ /* @__PURE__ */ b("div", { className: "flex items-end justify-between px-2 py-1", children: [
1628
+ /* @__PURE__ */ l("div", { className: "font-medium text-gray-900 text-sm", children: e }),
1629
+ /* @__PURE__ */ l("div", { children: t })
1455
1630
  ] }),
1456
- /* @__PURE__ */ s("div", { className: "flex flex-col gap-1 rounded-md bg-[#F4F5F6] p-2", children: r })
1457
- ] }), Re = ({ label: e, children: t }) => /* @__PURE__ */ m("div", { className: "flex items-baseline justify-between gap-2", children: [
1458
- /* @__PURE__ */ s("div", { className: "pl-1 text-sm", children: e }),
1459
- /* @__PURE__ */ s("div", { children: t })
1460
- ] }), st = ({ options: e, value: t, onChange: r }) => /* @__PURE__ */ s("div", { className: "flex divide-x rounded-md border border-gray-300", children: e.map(([n, i]) => /* @__PURE__ */ s(
1631
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-1 rounded-md bg-[#F4F5F6] p-2", children: r })
1632
+ ] }), De = ({ label: e, children: t }) => /* @__PURE__ */ b("div", { className: "flex items-baseline justify-between gap-2", children: [
1633
+ /* @__PURE__ */ l("div", { className: "pl-1 text-sm", children: e }),
1634
+ /* @__PURE__ */ l("div", { children: t })
1635
+ ] }), ot = ({ options: e, value: t, onChange: r }) => /* @__PURE__ */ l("div", { className: "flex divide-x rounded-md border border-gray-300", children: e.map(([n, i]) => /* @__PURE__ */ l(
1461
1636
  "button",
1462
1637
  {
1463
1638
  type: "button",
1464
1639
  onClick: () => r(n),
1465
1640
  "aria-pressed": n === t,
1466
- className: se(
1641
+ className: pe(
1467
1642
  "px-4 py-2 font-semibold text-xs transition first:rounded-l-md last:rounded-r-md",
1468
1643
  n === t ? "border-blue-500 bg-blue-50 text-blue-600" : "cursor-pointer border-gray-300 text-gray-600 hover:border-gray-400"
1469
1644
  ),
1470
1645
  children: i
1471
1646
  },
1472
1647
  n
1473
- )) }), Xn = ({ label: e, value: t, onChange: r }) => /* @__PURE__ */ s(
1474
- st,
1648
+ )) }), Xn = ({ label: e, value: t, onChange: r }) => /* @__PURE__ */ l(
1649
+ ot,
1475
1650
  {
1476
1651
  options: [
1477
1652
  ["true", "Yes"],
@@ -1480,30 +1655,30 @@ const Kn = ({
1480
1655
  value: t ? "true" : "false",
1481
1656
  onChange: (n) => r(n === "true")
1482
1657
  }
1483
- ), Qn = () => {
1484
- const { settings: e, updateSettings: t } = nt();
1485
- return /* @__PURE__ */ s(
1486
- at,
1658
+ ), Yn = () => {
1659
+ const { settings: e, updateRetainHistory: t, updateAutoReconnect: r } = rt();
1660
+ return /* @__PURE__ */ l(
1661
+ it,
1487
1662
  {
1488
1663
  title: "Connection preferences",
1489
- right: /* @__PURE__ */ s(ot, { variant: "icon", children: "Something something very cool" }),
1664
+ right: /* @__PURE__ */ l(nt, { variant: "icon", children: "Something something very cool" }),
1490
1665
  children: [
1491
1666
  [
1492
1667
  "Retain session history",
1493
1668
  "retainHistory",
1494
1669
  e?.retainHistory ?? !1,
1495
- (r) => t({ retainHistory: r })
1670
+ t
1496
1671
  ],
1497
1672
  [
1498
1673
  "Auto reconnect",
1499
1674
  "autoReconnect",
1500
1675
  e?.autoReconnect ?? !1,
1501
- (r) => t({ autoReconnect: r })
1676
+ r
1502
1677
  ]
1503
- ].map(([r, n, i, o]) => /* @__PURE__ */ s(Re, { label: r, children: /* @__PURE__ */ s(Xn, { label: r, value: i, onChange: o }) }, n))
1678
+ ].map(([n, i, o, a]) => /* @__PURE__ */ l(De, { label: n, children: /* @__PURE__ */ l(Xn, { label: n, value: o, onChange: a }) }, i))
1504
1679
  }
1505
1680
  );
1506
- }, Gn = "h-9 w-full rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-700 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200", Zn = ({
1681
+ }, Qn = "h-9 w-full rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-700 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200", Zn = ({
1507
1682
  // eslint-disable-next-line no-restricted-syntax
1508
1683
  id: e,
1509
1684
  value: t,
@@ -1511,11 +1686,11 @@ const Kn = ({
1511
1686
  ariaLabel: n,
1512
1687
  readOnly: i = !0,
1513
1688
  onChange: o
1514
- }) => /* @__PURE__ */ s(
1689
+ }) => /* @__PURE__ */ l(
1515
1690
  "input",
1516
1691
  {
1517
1692
  id: e,
1518
- className: Gn,
1693
+ className: Qn,
1519
1694
  value: t,
1520
1695
  placeholder: r,
1521
1696
  "aria-label": n,
@@ -1524,16 +1699,16 @@ const Kn = ({
1524
1699
  a.target instanceof HTMLInputElement && o?.(a.target.value);
1525
1700
  }
1526
1701
  }
1527
- ), qn = ["MQTT", "NTFY", "GUN"], Yn = () => {
1528
- const { settings: e, updateSignalingProtocol: t, updateSignalingServer: r } = nt();
1529
- return /* @__PURE__ */ s("div", { children: /* @__PURE__ */ m(
1530
- at,
1702
+ ), qn = ["MQTT", "NTFY", "GUN"], $n = () => {
1703
+ const { settings: e, updateSignalingProtocol: t, updateSignalingServer: r } = rt();
1704
+ return /* @__PURE__ */ l("div", { children: /* @__PURE__ */ b(
1705
+ it,
1531
1706
  {
1532
1707
  title: "Signaling",
1533
- right: /* @__PURE__ */ s(ot, { variant: "icon", children: "Something something very cool" }),
1708
+ right: /* @__PURE__ */ l(nt, { variant: "icon", children: "Something something very cool" }),
1534
1709
  children: [
1535
- /* @__PURE__ */ s(Re, { label: "Protocol", children: /* @__PURE__ */ s(
1536
- st,
1710
+ /* @__PURE__ */ l(De, { label: "Protocol", children: /* @__PURE__ */ l(
1711
+ ot,
1537
1712
  {
1538
1713
  options: qn.map((n) => [
1539
1714
  n.toLowerCase(),
@@ -1543,7 +1718,7 @@ const Kn = ({
1543
1718
  onChange: t
1544
1719
  }
1545
1720
  ) }),
1546
- /* @__PURE__ */ s(Re, { label: "Server", children: /* @__PURE__ */ s(
1721
+ /* @__PURE__ */ l(De, { label: "Server", children: /* @__PURE__ */ l(
1547
1722
  Zn,
1548
1723
  {
1549
1724
  id: "server",
@@ -1557,30 +1732,30 @@ const Kn = ({
1557
1732
  ]
1558
1733
  }
1559
1734
  ) });
1560
- }, $n = ["WebRTC"], ei = () => {
1561
- const [e, t] = O("WebRTC");
1562
- return /* @__PURE__ */ s(
1563
- at,
1735
+ }, ei = ["WebRTC"], ti = () => {
1736
+ const [e, t] = M("WebRTC");
1737
+ return /* @__PURE__ */ l(
1738
+ it,
1564
1739
  {
1565
1740
  title: "Transport",
1566
- right: /* @__PURE__ */ s(ot, { variant: "icon", children: "Something something very cool" }),
1567
- children: /* @__PURE__ */ s(Re, { label: "Protocol", children: /* @__PURE__ */ s(
1568
- st,
1741
+ right: /* @__PURE__ */ l(nt, { variant: "icon", children: "Something something very cool" }),
1742
+ children: /* @__PURE__ */ l(De, { label: "Protocol", children: /* @__PURE__ */ l(
1743
+ ot,
1569
1744
  {
1570
- options: $n.map((r) => [r, r]),
1745
+ options: ei.map((r) => [r, r]),
1571
1746
  value: e,
1572
1747
  onChange: (r) => t(r)
1573
1748
  }
1574
1749
  ) })
1575
1750
  }
1576
1751
  );
1577
- }, ti = () => /* @__PURE__ */ m("div", { className: "px-4 pb-2", children: [
1578
- /* @__PURE__ */ s(Yn, {}),
1579
- /* @__PURE__ */ s(ei, {}),
1580
- /* @__PURE__ */ s(Qn, {})
1581
- ] }), ri = () => {
1582
- const [e, t] = O("start"), [r, n] = O(!1);
1583
- return z(() => {
1752
+ }, ri = () => /* @__PURE__ */ b("div", { className: "px-4 pb-2", children: [
1753
+ /* @__PURE__ */ l($n, {}),
1754
+ /* @__PURE__ */ l(ti, {}),
1755
+ /* @__PURE__ */ l(Yn, {})
1756
+ ] }), ni = () => {
1757
+ const [e, t] = M("start"), [r, n] = M(!1);
1758
+ return B(() => {
1584
1759
  if (!r) return;
1585
1760
  const i = window.setTimeout(() => n(!1), 2e3);
1586
1761
  return () => window.clearTimeout(i);
@@ -1590,33 +1765,33 @@ const Kn = ({
1590
1765
  copied: r,
1591
1766
  setCopied: n
1592
1767
  };
1593
- }, ni = (e) => {
1594
- z(() => {
1768
+ }, ii = (e) => {
1769
+ B(() => {
1595
1770
  const t = (r) => {
1596
1771
  r.key === "Escape" && e();
1597
1772
  };
1598
1773
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
1599
1774
  }, [e]);
1600
- }, ii = () => {
1601
- const e = L(null), [t, r] = O(0), n = L(!1), i = I(
1775
+ }, oi = () => {
1776
+ const e = J(null), [t, r] = M(0), n = J(!1), i = q(
1602
1777
  (o, a = !1) => {
1603
- const l = o || e.current;
1604
- if (!l) return;
1605
- const c = a ? l.scrollHeight : l.getBoundingClientRect().height;
1778
+ const s = o || e.current;
1779
+ if (!s) return;
1780
+ const c = a ? s.scrollHeight : s.getBoundingClientRect().height;
1606
1781
  c > 0 && (r(
1607
- (g) => typeof g == "number" && Math.abs(g - c) < 0.5 ? g : c
1782
+ (u) => typeof u == "number" && Math.abs(u - c) < 0.5 ? u : c
1608
1783
  ), n.current = !0);
1609
1784
  },
1610
1785
  []
1611
1786
  );
1612
- return ue(() => {
1787
+ return ve(() => {
1613
1788
  const o = e.current;
1614
1789
  if (!o || typeof ResizeObserver > "u") return;
1615
1790
  const a = new ResizeObserver(() => {
1616
1791
  i();
1617
1792
  });
1618
1793
  return a.observe(o), () => a.disconnect();
1619
- }, [i]), z(() => {
1794
+ }, [i]), B(() => {
1620
1795
  if (typeof window > "u") return;
1621
1796
  const o = () => {
1622
1797
  i();
@@ -1628,100 +1803,107 @@ const Kn = ({
1628
1803
  measureHeight: i,
1629
1804
  setHeight: r
1630
1805
  };
1631
- }, oi = ({ onClose: e = () => {
1806
+ }, ai = ({ onClose: e = () => {
1632
1807
  }, onCopy: t }) => {
1633
- const { view: r, setView: n, copied: i, setCopied: o } = ri(), { uri: a } = be(), { status: l, provider: c } = de(), { contentRef: g, height: v, measureHeight: W } = ii(), {
1634
- current: S,
1635
- previous: ne,
1636
- isTransitioning: ie
1808
+ const { view: r, setView: n, copied: i, setCopied: o } = ni(), { uri: a } = Ce(), { status: s, provider: c } = me(), { contentRef: u, height: d, measureHeight: p } = oi(), {
1809
+ current: w,
1810
+ previous: S,
1811
+ isTransitioning: N
1637
1812
  } = _t(r), {
1638
- current: oe,
1639
- previous: H,
1640
- isTransitioning: J
1641
- } = _t(l), V = I(() => n("settings"), [n]), xe = D(r).with("start", () => "Connect Wallet").with("settings", () => "Settings").exhaustive();
1642
- ni(e);
1643
- const M = I(async () => {
1813
+ current: P,
1814
+ previous: f,
1815
+ isTransitioning: j
1816
+ } = _t(s), O = q(() => n("settings"), [n]), k = X(r).with("start", () => "Connect Wallet").with("settings", () => "Settings").exhaustive();
1817
+ ii(e);
1818
+ const H = q(async () => {
1644
1819
  a && await Bn(a) && o(!0);
1645
- }, [a, o]), ke = L(!0), X = L(), te = L(void 0), [ze, pe] = O(!1), U = L();
1646
- ue(() => {
1647
- if (g.current)
1648
- return ke.current ? (X.current && window.clearTimeout(X.current), X.current = window.setTimeout(() => {
1649
- g.current && (W(void 0, !0), ke.current = !1);
1650
- }, 0)) : W(), () => {
1651
- X.current && window.clearTimeout(X.current);
1820
+ }, [a, o]), Y = J(!0), te = J(), ue = J(void 0), [Le, ye] = M(!1), $ = J();
1821
+ ve(() => {
1822
+ if (u.current)
1823
+ return Y.current ? (te.current && window.clearTimeout(te.current), te.current = window.setTimeout(() => {
1824
+ u.current && (p(void 0, !0), Y.current = !1);
1825
+ }, 0)) : p(), () => {
1826
+ te.current && window.clearTimeout(te.current);
1652
1827
  };
1653
- }, [W, oe, S]), z(() => (te.current !== void 0 && v !== te.current && v > 0 && te.current > 0 && Math.abs(v - te.current) > 0.5 && (pe(!0), U.current && window.clearTimeout(U.current), U.current = window.setTimeout(() => {
1654
- pe(!1), U.current = void 0;
1655
- }, 200)), te.current = v, () => {
1656
- U.current && window.clearTimeout(U.current);
1657
- }), [v]);
1658
- const fe = () => {
1828
+ }, [p, P, w]), B(() => (ue.current !== void 0 && d !== ue.current && d > 0 && ue.current > 0 && Math.abs(d - ue.current) > 0.5 && (ye(!0), $.current && window.clearTimeout($.current), $.current = window.setTimeout(() => {
1829
+ ye(!1), $.current = void 0;
1830
+ }, 200)), ue.current = d, () => {
1831
+ $.current && window.clearTimeout($.current);
1832
+ }), [d]);
1833
+ const we = () => {
1659
1834
  c?.closeSession();
1660
- }, Ve = D({ view: r, status: l }).with({ view: "start", status: "disconnected" }, () => {
1661
- }).with({ view: "start" }, () => fe).with({ view: "settings" }, () => () => n("start")).otherwise(() => () => {
1662
- fe(), e();
1663
- }), _e = (u) => D(u).with("start", () => /* @__PURE__ */ s(Dn, { onSettings: V })).with("settings", () => /* @__PURE__ */ s(ti, {})).otherwise(() => /* @__PURE__ */ s(Ue, { state: u })), p = () => /* @__PURE__ */ m("div", { className: "modal-transition__container", children: [
1664
- ne && /* @__PURE__ */ s("div", { className: "modal-transition__layer modal-transition__layer--outgoing", children: _e(ne) }),
1665
- /* @__PURE__ */ s(
1835
+ }, Me = X({ view: r, status: s }).with({ view: "start", status: K.STANDBY }, () => {
1836
+ }).with({ view: "start" }, () => we).with({ view: "settings" }, () => () => n("start")).otherwise(() => () => {
1837
+ we(), e();
1838
+ }), Ae = (h) => X(h).with("start", () => /* @__PURE__ */ l(Vn, { onSettings: O })).with("settings", () => /* @__PURE__ */ l(ri, {})).otherwise(() => /* @__PURE__ */ l(Xe, { state: h })), v = () => /* @__PURE__ */ b("div", { className: "modal-transition__container", children: [
1839
+ S && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing", children: Ae(S) }),
1840
+ /* @__PURE__ */ l(
1666
1841
  "div",
1667
1842
  {
1668
- className: se(
1843
+ className: pe(
1669
1844
  "modal-transition__layer",
1670
- ie && "modal-transition__layer--incoming"
1845
+ N && "modal-transition__layer--incoming"
1671
1846
  ),
1672
- children: _e(S)
1847
+ children: Ae(w)
1673
1848
  }
1674
1849
  )
1675
- ] }), d = (u) => D(u).with("disconnected", () => p()).with(tt.union("connecting", "connected"), () => /* @__PURE__ */ s(Ir, { onClose: e, onCopy: t || M })).otherwise((y) => /* @__PURE__ */ s(Ue, { state: y || "unknown status" }));
1676
- return Ae("view", r), /* @__PURE__ */ s(
1850
+ ] }), g = (h) => X(h).with(K.STANDBY, () => v()).with(
1851
+ Pt.union(
1852
+ K.CREATING,
1853
+ K.CONNECTING,
1854
+ K.CONNECTED
1855
+ ),
1856
+ () => /* @__PURE__ */ l(bn, { onClose: e, onCopy: t || H })
1857
+ ).otherwise((x) => /* @__PURE__ */ l(Xe, { state: x || "unknown status" }));
1858
+ return tt("view", r), /* @__PURE__ */ l(
1677
1859
  "div",
1678
1860
  {
1679
1861
  className: "fixed inset-0 z-[10000] flex animate-[bg-in_0.15s_ease-in-out] items-end justify-center bg-black/30 font-sans text-slate-800 backdrop-blur-sm md:items-center lg:p-4",
1680
1862
  onClick: e,
1681
1863
  role: "presentation",
1682
1864
  "data-openlv-modal-root": !0,
1683
- children: /* @__PURE__ */ m(
1865
+ children: /* @__PURE__ */ b(
1684
1866
  "div",
1685
1867
  {
1686
- className: se(
1868
+ className: pe(
1687
1869
  "relative w-full max-w-[400px] animate-[fade-in_0.15s_ease-in-out] rounded-t-radius bg-body-background transition-[height] duration-[200ms] ease-out md:rounded-b-radius",
1688
- ze || H ? "overflow-hidden" : void 0
1870
+ Le || f ? "overflow-hidden" : void 0
1689
1871
  ),
1690
1872
  role: "dialog",
1691
1873
  "aria-modal": "true",
1692
- "aria-label": xe,
1693
- onClick: (u) => u.stopPropagation(),
1694
- style: typeof v == "number" && v > 0 ? { height: `${v}px` } : void 0,
1874
+ "aria-label": k,
1875
+ onClick: (h) => h.stopPropagation(),
1876
+ style: typeof d == "number" && d > 0 ? { height: `${d}px` } : void 0,
1695
1877
  children: [
1696
- /* @__PURE__ */ m("div", { ref: g, children: [
1697
- /* @__PURE__ */ s(
1878
+ /* @__PURE__ */ b("div", { ref: u, children: [
1879
+ /* @__PURE__ */ l(
1698
1880
  Kn,
1699
1881
  {
1700
- title: xe,
1882
+ title: k,
1701
1883
  view: r,
1702
1884
  onClose: e,
1703
- onBack: Ve
1885
+ onBack: Me
1704
1886
  }
1705
1887
  ),
1706
- /* @__PURE__ */ m("div", { className: "modal-transition__container", children: [
1707
- H && /* @__PURE__ */ s("div", { className: "modal-transition__layer modal-transition__layer--outgoing absolute", children: /* @__PURE__ */ s("div", { className: "flex flex-col text-center", children: d(H) }) }),
1708
- /* @__PURE__ */ s(
1888
+ /* @__PURE__ */ b("div", { className: "modal-transition__container", children: [
1889
+ f && /* @__PURE__ */ l("div", { className: "modal-transition__layer modal-transition__layer--outgoing absolute", children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: g(f) }) }),
1890
+ /* @__PURE__ */ l(
1709
1891
  "div",
1710
1892
  {
1711
- className: se(
1893
+ className: pe(
1712
1894
  "modal-transition__layer",
1713
- J && "modal-transition__layer--incoming"
1895
+ j && "modal-transition__layer--incoming"
1714
1896
  ),
1715
- children: /* @__PURE__ */ s("div", { className: "flex flex-col text-center", children: d(oe) })
1897
+ children: /* @__PURE__ */ l("div", { className: "flex flex-col text-center", children: g(P) })
1716
1898
  }
1717
1899
  )
1718
1900
  ] }),
1719
- /* @__PURE__ */ s(Wn, {})
1901
+ /* @__PURE__ */ l(Gn, {})
1720
1902
  ] }),
1721
- /* @__PURE__ */ s(
1903
+ /* @__PURE__ */ l(
1722
1904
  "div",
1723
1905
  {
1724
- className: se(
1906
+ className: pe(
1725
1907
  "absolute top-5 right-5 rounded-lg bg-blue-500 px-4 py-3 font-medium text-sm text-white transition-all",
1726
1908
  i ? "translate-x-0 opacity-100" : "translate-x-full opacity-0"
1727
1909
  ),
@@ -1733,36 +1915,36 @@ const Kn = ({
1733
1915
  )
1734
1916
  }
1735
1917
  );
1736
- }, St = '/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@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-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-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}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--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-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--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);--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-48{width:calc(var(--spacing)*48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;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}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}: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-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)))}.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-t-radius{border-top-left-radius:var(--radius-radius);border-top-right-radius:var(--radius-radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-neutral-200{border-color:var(--color-neutral-200)}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#F4F5F6\\]{background-color:#f4f5f6}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-body-background{background-color:var(--color-body-background)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.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-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-slate-800{color:var(--color-slate-800)}.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-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\\[200ms\\]{--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-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}}.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-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)}@media (min-width:48rem){.md\\:items-center{align-items:center}.md\\:rounded-b-radius{border-bottom-right-radius:var(--radius-radius);border-bottom-left-radius:var(--radius-radius)}}@media (min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.05)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-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}@keyframes spin{to{transform:rotate(360deg)}}', ai = async (e, t) => {
1918
+ }, Nt = '/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */@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-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-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}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-blue-50:oklch(97% .014 254.604);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-slate-800:oklch(27.9% .041 260.031);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--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-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--tracking-wide:.025em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--blur-sm:8px;--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);--color-body-background:var(--lv-body-background);--radius-radius:var(--lv-border-radius)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.-ml-1{margin-left:calc(var(--spacing)*-1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1}.h-1\\.5{height:calc(var(--spacing)*1.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-11{height:calc(var(--spacing)*11)}.h-18{height:calc(var(--spacing)*18)}.h-38{height:calc(var(--spacing)*38)}.h-\\[200px\\]{height:200px}.h-full{height:100%}.w-1\\.5{width:calc(var(--spacing)*1.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-48{width:calc(var(--spacing)*48)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.-translate-x-1\\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full{--tw-translate-x:100%;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}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0\\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}: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-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)))}.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-t-radius{border-top-left-radius:var(--radius-radius);border-top-right-radius:var(--radius-radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius-lg);border-bottom-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.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-neutral-200{border-color:var(--color-neutral-200)}.border-t-transparent{border-top-color:#0000}.bg-\\[\\#F4F5F6\\]{background-color:#f4f5f6}.bg-black\\/30{background-color:#0000004d}@supports (color:color-mix(in lab,red,red)){.bg-black\\/30{background-color:color-mix(in oklab,var(--color-black)30%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-body-background{background-color:var(--color-body-background)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.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-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-1\\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-1{padding-top:calc(var(--spacing)*1)}.pr-0\\.5{padding-right:calc(var(--spacing)*.5)}.pr-3{padding-right:calc(var(--spacing)*3)}.pb-0\\.5{padding-bottom:calc(var(--spacing)*.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pl-1{padding-left:calc(var(--spacing)*1)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.font-sans{font-family:var(--font-sans)}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-blue-600{color:var(--color-blue-600)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-slate-800{color:var(--color-slate-800)}.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-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-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))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-\\[200ms\\]{--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-l-md:first-child{border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md)}.last\\:rounded-r-md:last-child{border-top-right-radius:var(--radius-md);border-bottom-right-radius:var(--radius-md)}@media (hover:hover){.hover\\:border-gray-400:hover{border-color:var(--color-gray-400)}.hover\\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\\:bg-neutral-200:hover{background-color:var(--color-neutral-200)}.hover\\:text-gray-700:hover{color:var(--color-gray-700)}}.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-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)}@media (min-width:48rem){.md\\:items-center{align-items:center}.md\\:rounded-b-radius{border-bottom-right-radius:var(--radius-radius);border-bottom-left-radius:var(--radius-radius)}}@media (min-width:64rem){.lg\\:p-4{padding:calc(var(--spacing)*4)}}}@keyframes fade-in{0%{transform:translateY(-2px)scale(.95)}to{transform:translateY(0)scale(1)}}@keyframes bg-in{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}}.modal-transition__container{display:grid;position:relative}.modal-transition__layer{will-change:transform,opacity;grid-area:1/1;width:100%}.modal-transition__layer--outgoing{z-index:2;animation:.2s ease-out forwards modal-transition-out;position:absolute}.modal-transition__layer--incoming{animation:.2s ease-out forwards modal-transition-in}@keyframes modal-transition-in{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes modal-transition-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.05)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-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}@keyframes spin{to{transform:rotate(360deg)}}', si = async (e, t) => {
1737
1919
  if (e) {
1738
1920
  if (e.querySelector("style[data-openlv-modal]"))
1739
1921
  return;
1740
1922
  const n = document.createElement("style");
1741
1923
  if (n.setAttribute("data-openlv-modal", "true"), t) {
1742
- const i = Lt(t), o = `:root, :host {${Object.entries(i).map(([a, l]) => `${a}: ${l};`).join(`
1924
+ const i = Jt(t), o = `:root, :host {${Object.entries(i).map(([a, s]) => `${a}: ${s};`).join(`
1743
1925
  `)}}`;
1744
1926
  n.textContent = `${o}
1745
- ${St}`;
1927
+ ${Nt}`;
1746
1928
  } else
1747
- n.textContent = St;
1929
+ n.textContent = Nt;
1748
1930
  e.appendChild(n);
1749
1931
  }
1750
1932
  };
1751
1933
  class rr extends HTMLElement {
1752
- constructor(r, n = rt) {
1934
+ constructor(r, n = et) {
1753
1935
  super();
1754
- ae(this, "onClose");
1755
- ae(this, "provider");
1756
- ae(this, "theme");
1757
- ae(this, "shadow");
1758
- ae(this, "renderRequested", !1);
1759
- this.provider = r, this.theme = n, this.shadow = this.attachShadow({ mode: "open" }), ai(this.shadow, this.theme);
1936
+ fe(this, "onClose");
1937
+ fe(this, "provider");
1938
+ fe(this, "theme");
1939
+ fe(this, "shadow");
1940
+ fe(this, "renderRequested", !1);
1941
+ this.provider = r, this.theme = n, this.shadow = this.attachShadow({ mode: "open" }), si(this.shadow, this.theme);
1760
1942
  }
1761
1943
  connectedCallback() {
1762
1944
  this.requestRender();
1763
1945
  }
1764
1946
  disconnectedCallback() {
1765
- ce(null, this.shadow);
1947
+ ge(null, this.shadow);
1766
1948
  }
1767
1949
  showModal() {
1768
1950
  this.style.display = "block";
@@ -1776,8 +1958,8 @@ class rr extends HTMLElement {
1776
1958
  }));
1777
1959
  }
1778
1960
  performRender() {
1779
- ce(
1780
- cr(Tr, {
1961
+ ge(
1962
+ cr(dn, {
1781
1963
  onClose: this.onClose ?? (() => this.remove()),
1782
1964
  provider: this.provider
1783
1965
  }),
@@ -1785,21 +1967,21 @@ class rr extends HTMLElement {
1785
1967
  );
1786
1968
  }
1787
1969
  }
1788
- const hi = (e = "idle") => {
1789
- const [t, r] = O({
1970
+ const gi = (e = "idle") => {
1971
+ const [t, r] = M({
1790
1972
  state: e
1791
- }), n = I(
1792
- (a, l) => {
1973
+ }), n = q(
1974
+ (a, s) => {
1793
1975
  r((c) => ({
1794
1976
  ...c,
1795
1977
  state: a,
1796
- ...l
1978
+ ...s
1797
1979
  }));
1798
1980
  },
1799
1981
  []
1800
- ), i = I((a) => {
1982
+ ), i = q((a) => {
1801
1983
  r(a);
1802
- }, []), o = I(() => {
1984
+ }, []), o = q(() => {
1803
1985
  r({ state: "idle" });
1804
1986
  }, []);
1805
1987
  return {
@@ -1808,7 +1990,7 @@ const hi = (e = "idle") => {
1808
1990
  updateConnectionInfo: i,
1809
1991
  reset: o
1810
1992
  };
1811
- }, si = (e = "openlv-modal") => {
1993
+ }, li = (e = "openlv-modal") => {
1812
1994
  if (typeof window > "u")
1813
1995
  return e;
1814
1996
  const t = window.customElements;
@@ -1818,23 +2000,23 @@ const hi = (e = "idle") => {
1818
2000
  ), e) : (console.warn(
1819
2001
  "OpenLV modal: custom elements are not supported in this environment."
1820
2002
  ), e);
1821
- }, gi = (e) => {
2003
+ }, vi = (e) => {
1822
2004
  const t = document.querySelector("openlv-modal");
1823
2005
  if (t && t.remove(), !t) {
1824
- si();
2006
+ li();
1825
2007
  const r = new rr(e);
1826
2008
  document.body.appendChild(r), r.showModal(), r.onClose = () => {
1827
- Ae("modal closed"), r.remove();
2009
+ tt("modal closed"), r.remove();
1828
2010
  };
1829
2011
  }
1830
2012
  };
1831
2013
  export {
1832
- oi as ModalRoot,
2014
+ ai as ModalRoot,
1833
2015
  Fn as OPENLV_ICON_128,
1834
2016
  rr as OpenLVModalElement,
1835
2017
  rr as default,
1836
- si as registerOpenLVModal,
1837
- gi as triggerOpenModal,
1838
- hi as useConnectionState
2018
+ li as registerOpenLVModal,
2019
+ vi as triggerOpenModal,
2020
+ gi as useConnectionState
1839
2021
  };
1840
2022
  //# sourceMappingURL=index.es.js.map