@openlv/modal 0.0.1-beta.2 → 0.0.1-beta.3
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.js +224 -225
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var F = (e, t, r) =>
|
|
4
|
-
import { jsx as s, jsxs as d, Fragment as
|
|
1
|
+
var $e = Object.defineProperty;
|
|
2
|
+
var et = (e, t, r) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var F = (e, t, r) => et(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { jsx as s, jsxs as d, Fragment as tt } from "preact/jsx-runtime";
|
|
5
5
|
import { useEffect as L, useContext as ae, useState as y, useCallback as C, useRef as Se, useReducer as Ne, useMemo as Ae, useLayoutEffect as Z, useImperativeHandle as Oe, useId as je, useDebugValue as Re } from "preact/hooks";
|
|
6
|
-
import { createContext as Pe, createElement as R, Fragment as z, Component as B, createRef as
|
|
7
|
-
import
|
|
8
|
-
function
|
|
6
|
+
import { createContext as Pe, createElement as R, Fragment as z, Component as B, createRef as rt, toChildArray as j, cloneElement as nt, render as T, hydrate as ot, options as b, h as it } from "preact";
|
|
7
|
+
import at from "qrcode-generator";
|
|
8
|
+
function st(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
10
10
|
}
|
|
11
11
|
var Y = { exports: {} };
|
|
@@ -15,7 +15,7 @@ var Y = { exports: {} };
|
|
|
15
15
|
http://jedwatson.github.io/classnames
|
|
16
16
|
*/
|
|
17
17
|
var fe;
|
|
18
|
-
function
|
|
18
|
+
function lt() {
|
|
19
19
|
return fe || (fe = 1, (function(e) {
|
|
20
20
|
(function() {
|
|
21
21
|
var t = {}.hasOwnProperty;
|
|
@@ -47,8 +47,8 @@ function st() {
|
|
|
47
47
|
})();
|
|
48
48
|
})(Y)), Y.exports;
|
|
49
49
|
}
|
|
50
|
-
var
|
|
51
|
-
const Le = /* @__PURE__ */
|
|
50
|
+
var ct = lt();
|
|
51
|
+
const Le = /* @__PURE__ */ st(ct), v = Symbol.for("@ts-pattern/matcher"), Ee = Symbol.for("@ts-pattern/isVariadic"), J = "@ts-pattern/anonymous-select-key", ee = (e) => !!(e && typeof e == "object"), V = (e) => e && !!e[v], h = (e, t, r) => {
|
|
52
52
|
if (V(e)) {
|
|
53
53
|
const n = e[v](), { matched: o, selections: i } = n.match(t);
|
|
54
54
|
return o && i && Object.keys(i).forEach((a) => r(a, i[a])), o;
|
|
@@ -81,7 +81,7 @@ const Le = /* @__PURE__ */ at(lt), v = Symbol.for("@ts-pattern/matcher"), Ee = S
|
|
|
81
81
|
var t, r, n;
|
|
82
82
|
return ee(e) ? V(e) ? (t = (r = (n = e[v]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? M(e, m) : M(Object.values(e), m) : [];
|
|
83
83
|
}, M = (e, t) => e.reduce((r, n) => r.concat(t(n)), []);
|
|
84
|
-
function
|
|
84
|
+
function ut(...e) {
|
|
85
85
|
if (e.length === 1) {
|
|
86
86
|
const [t] = e;
|
|
87
87
|
return (r) => h(t, r, () => {
|
|
@@ -116,13 +116,13 @@ function se(e) {
|
|
|
116
116
|
return t === void 0 ? (m(e).forEach((o) => n(o, void 0)), { matched: !0, selections: r }) : { matched: h(e, t, n), selections: r };
|
|
117
117
|
}, getSelectionKeys: () => m(e), matcherType: "optional" }) });
|
|
118
118
|
}
|
|
119
|
-
const
|
|
119
|
+
const dt = (e, t) => {
|
|
120
120
|
for (const r of e) if (!t(r)) return !1;
|
|
121
121
|
return !0;
|
|
122
|
-
},
|
|
122
|
+
}, pt = (e, t) => {
|
|
123
123
|
for (const [r, n] of e.entries()) if (!t(n, r)) return !1;
|
|
124
124
|
return !0;
|
|
125
|
-
},
|
|
125
|
+
}, ft = (e, t) => {
|
|
126
126
|
const r = Reflect.ownKeys(e);
|
|
127
127
|
for (const n of r) if (!t(n, e[n])) return !1;
|
|
128
128
|
return !0;
|
|
@@ -169,7 +169,7 @@ function S(e) {
|
|
|
169
169
|
function N(e) {
|
|
170
170
|
return typeof e == "bigint";
|
|
171
171
|
}
|
|
172
|
-
const Te = g(u(Be)),
|
|
172
|
+
const Te = g(u(Be)), ht = g(u(Be)), gt = Te, A = (e) => Object.assign(g(e), { startsWith: (t) => {
|
|
173
173
|
return A(p(e, (r = t, u((n) => S(n) && n.startsWith(r)))));
|
|
174
174
|
var r;
|
|
175
175
|
}, endsWith: (t) => {
|
|
@@ -181,13 +181,13 @@ const Te = g(u(Be)), ft = g(u(Be)), ht = Te, A = (e) => Object.assign(g(e), { st
|
|
|
181
181
|
}, regex: (t) => {
|
|
182
182
|
return A(p(e, (r = t, u((n) => S(n) && !!n.match(r)))));
|
|
183
183
|
var r;
|
|
184
|
-
} }), he = A(u(S)), k = (e) => Object.assign(g(e), { between: (t, r) => k(p(e, ((n, o) => u((i) => x(i) && n <= i && o >= i))(t, r))), lt: (t) => k(p(e, ((r) => u((n) => x(n) && n < r))(t))), gt: (t) => k(p(e, ((r) => u((n) => x(n) && n > r))(t))), lte: (t) => k(p(e, ((r) => u((n) => x(n) && n <= r))(t))), gte: (t) => k(p(e, ((r) => u((n) => x(n) && n >= r))(t))), int: () => k(p(e, u((t) => x(t) && Number.isInteger(t)))), finite: () => k(p(e, u((t) => x(t) && Number.isFinite(t)))), positive: () => k(p(e, u((t) => x(t) && t > 0))), negative: () => k(p(e, u((t) => x(t) && t < 0))) }),
|
|
184
|
+
} }), he = A(u(S)), k = (e) => Object.assign(g(e), { between: (t, r) => k(p(e, ((n, o) => u((i) => x(i) && n <= i && o >= i))(t, r))), lt: (t) => k(p(e, ((r) => u((n) => x(n) && n < r))(t))), gt: (t) => k(p(e, ((r) => u((n) => x(n) && n > r))(t))), lte: (t) => k(p(e, ((r) => u((n) => x(n) && n <= r))(t))), gte: (t) => k(p(e, ((r) => u((n) => x(n) && n >= r))(t))), int: () => k(p(e, u((t) => x(t) && Number.isInteger(t)))), finite: () => k(p(e, u((t) => x(t) && Number.isFinite(t)))), positive: () => k(p(e, u((t) => x(t) && t > 0))), negative: () => k(p(e, u((t) => x(t) && t < 0))) }), mt = k(u(x)), O = (e) => Object.assign(g(e), { between: (t, r) => O(p(e, ((n, o) => u((i) => N(i) && n <= i && o >= i))(t, r))), lt: (t) => O(p(e, ((r) => u((n) => N(n) && n < r))(t))), gt: (t) => O(p(e, ((r) => u((n) => N(n) && n > r))(t))), lte: (t) => O(p(e, ((r) => u((n) => N(n) && n <= r))(t))), gte: (t) => O(p(e, ((r) => u((n) => N(n) && n >= r))(t))), positive: () => O(p(e, u((t) => N(t) && t > 0))), negative: () => O(p(e, u((t) => N(t) && t < 0))) }), vt = O(u(N)), bt = g(u(function(e) {
|
|
185
185
|
return typeof e == "boolean";
|
|
186
|
-
})), bt = g(u(function(e) {
|
|
187
|
-
return typeof e == "symbol";
|
|
188
186
|
})), wt = g(u(function(e) {
|
|
189
|
-
return e ==
|
|
187
|
+
return typeof e == "symbol";
|
|
190
188
|
})), yt = g(u(function(e) {
|
|
189
|
+
return e == null;
|
|
190
|
+
})), xt = g(u(function(e) {
|
|
191
191
|
return e != null;
|
|
192
192
|
}));
|
|
193
193
|
var le = { __proto__: null, matcher: v, optional: se, array: function(...e) {
|
|
@@ -213,7 +213,7 @@ var le = { __proto__: null, matcher: v, optional: se, array: function(...e) {
|
|
|
213
213
|
const n = (i, a) => {
|
|
214
214
|
r[i] = (r[i] || []).concat([a]);
|
|
215
215
|
}, o = e[0];
|
|
216
|
-
return { matched:
|
|
216
|
+
return { matched: dt(t, (i) => h(o, i, n)), selections: r };
|
|
217
217
|
}, getSelectionKeys: () => e.length === 0 ? [] : m(e[0]) }) });
|
|
218
218
|
}, map: function(...e) {
|
|
219
219
|
return g({ [v]: () => ({ match: (t) => {
|
|
@@ -227,7 +227,7 @@ var le = { __proto__: null, matcher: v, optional: se, array: function(...e) {
|
|
|
227
227
|
var o;
|
|
228
228
|
if (e.length === 1) throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(o = e[0]) == null ? void 0 : o.toString()}`);
|
|
229
229
|
const [i, a] = e;
|
|
230
|
-
return { matched:
|
|
230
|
+
return { matched: pt(t, (l, c) => {
|
|
231
231
|
const f = h(i, c, n), w = h(a, l, n);
|
|
232
232
|
return f && w;
|
|
233
233
|
}), selections: r };
|
|
@@ -241,22 +241,22 @@ var le = { __proto__: null, matcher: v, optional: se, array: function(...e) {
|
|
|
241
241
|
const o = (l, c) => {
|
|
242
242
|
n[l] = (n[l] || []).concat([c]);
|
|
243
243
|
}, [i, a] = e.length === 1 ? [he, e[0]] : e;
|
|
244
|
-
return { matched:
|
|
245
|
-
const f = typeof l != "string" || Number.isNaN(Number(l)) ? null : Number(l), w = f !== null && h(i, f, o),
|
|
246
|
-
return (
|
|
244
|
+
return { matched: ft(t, (l, c) => {
|
|
245
|
+
const f = typeof l != "string" || Number.isNaN(Number(l)) ? null : Number(l), w = f !== null && h(i, f, o), qe = h(i, l, o), Ye = h(a, c, o);
|
|
246
|
+
return (qe || w) && Ye;
|
|
247
247
|
}), selections: n };
|
|
248
248
|
}, getSelectionKeys: () => e.length === 0 ? [] : [...m(e[0]), ...m(e[1])] }) });
|
|
249
249
|
}, intersection: p, union: Fe, not: function(e) {
|
|
250
250
|
return g({ [v]: () => ({ match: (t) => ({ matched: !h(e, t, () => {
|
|
251
251
|
}) }), getSelectionKeys: () => [], matcherType: "not" }) });
|
|
252
|
-
}, when: u, select: W, any: Te, unknown:
|
|
252
|
+
}, when: u, select: W, any: Te, unknown: ht, _: gt, string: he, number: mt, bigint: vt, boolean: bt, symbol: wt, nullish: yt, nonNullable: xt, instanceOf: function(e) {
|
|
253
253
|
return g(u(/* @__PURE__ */ (function(t) {
|
|
254
254
|
return (r) => r instanceof t;
|
|
255
255
|
})(e)));
|
|
256
256
|
}, shape: function(e) {
|
|
257
|
-
return g(u(
|
|
257
|
+
return g(u(ut(e)));
|
|
258
258
|
} };
|
|
259
|
-
let
|
|
259
|
+
let kt = class extends Error {
|
|
260
260
|
constructor(t) {
|
|
261
261
|
let r;
|
|
262
262
|
try {
|
|
@@ -269,9 +269,9 @@ let xt = class extends Error {
|
|
|
269
269
|
};
|
|
270
270
|
const re = { matched: !1, value: void 0 };
|
|
271
271
|
function _(e) {
|
|
272
|
-
return new
|
|
272
|
+
return new Ct(e, re);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
274
|
+
let Ct = class ne {
|
|
275
275
|
constructor(t, r) {
|
|
276
276
|
this.input = void 0, this.state = void 0, this.input = t, this.state = r;
|
|
277
277
|
}
|
|
@@ -294,7 +294,7 @@ let kt = class ne {
|
|
|
294
294
|
otherwise(t) {
|
|
295
295
|
return this.state.matched ? this.state.value : t(this.input);
|
|
296
296
|
}
|
|
297
|
-
exhaustive(t =
|
|
297
|
+
exhaustive(t = _t) {
|
|
298
298
|
return this.state.matched ? this.state.value : t(this.input);
|
|
299
299
|
}
|
|
300
300
|
run() {
|
|
@@ -307,10 +307,10 @@ let kt = class ne {
|
|
|
307
307
|
return this;
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
function
|
|
311
|
-
throw new
|
|
310
|
+
function _t(e) {
|
|
311
|
+
throw new kt(e);
|
|
312
312
|
}
|
|
313
|
-
const
|
|
313
|
+
const St = async (e) => {
|
|
314
314
|
if (!e) return !1;
|
|
315
315
|
try {
|
|
316
316
|
if (navigator?.clipboard?.writeText)
|
|
@@ -332,11 +332,11 @@ const _t = async (e) => {
|
|
|
332
332
|
}, De = Pe({
|
|
333
333
|
provider: void 0,
|
|
334
334
|
storage: void 0
|
|
335
|
-
}),
|
|
335
|
+
}), Nt = ({
|
|
336
336
|
provider: e,
|
|
337
337
|
storage: t,
|
|
338
338
|
onClose: r
|
|
339
|
-
}) => /* @__PURE__ */ s(De.Provider, { value: { provider: e, storage: t }, children: /* @__PURE__ */ s(
|
|
339
|
+
}) => /* @__PURE__ */ s(De.Provider, { value: { provider: e, storage: t }, children: /* @__PURE__ */ s(Br, { onClose: r }) }), E = () => {
|
|
340
340
|
const e = ae(De), { provider: t, storage: r } = e, [n, o] = y(
|
|
341
341
|
t?.getState().status || "disconnected"
|
|
342
342
|
);
|
|
@@ -348,7 +348,7 @@ const _t = async (e) => {
|
|
|
348
348
|
}
|
|
349
349
|
), !e.provider) throw new Error("Provider not found");
|
|
350
350
|
return { provider: t, status: n, storage: r };
|
|
351
|
-
},
|
|
351
|
+
}, At = (e) => {
|
|
352
352
|
const t = new URLSearchParams();
|
|
353
353
|
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}?${t.toString()}`;
|
|
354
354
|
}, D = (...e) => console.log(
|
|
@@ -377,7 +377,7 @@ const _t = async (e) => {
|
|
|
377
377
|
}, G = () => {
|
|
378
378
|
const { provider: e } = E(), [t, r] = y(
|
|
379
379
|
e?.getSession()
|
|
380
|
-
), n = t?.getHandshakeParameters(), o = n ?
|
|
380
|
+
), n = t?.getHandshakeParameters(), o = n ? At(n) : void 0, [i, a] = y(
|
|
381
381
|
t?.getState()
|
|
382
382
|
);
|
|
383
383
|
return H(t?.emitter, "state_change", (l) => {
|
|
@@ -390,7 +390,7 @@ const _t = async (e) => {
|
|
|
390
390
|
uri: o,
|
|
391
391
|
status: i
|
|
392
392
|
};
|
|
393
|
-
},
|
|
393
|
+
}, Ot = () => {
|
|
394
394
|
const { provider: e } = E(), { settings: t } = ce();
|
|
395
395
|
return {
|
|
396
396
|
start: () => {
|
|
@@ -417,17 +417,17 @@ const _t = async (e) => {
|
|
|
417
417
|
JSON.stringify(n)
|
|
418
418
|
] })
|
|
419
419
|
] });
|
|
420
|
-
},
|
|
420
|
+
}, jt = () => /* @__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" }) }), Rt = ({ onClose: e, onCopy: t }) => {
|
|
421
421
|
const { uri: r, status: n = { status: "created" } } = G(), o = "", i = C(() => {
|
|
422
422
|
r && t(r);
|
|
423
423
|
}, [r, t]), a = C((l) => {
|
|
424
|
-
const c =
|
|
424
|
+
const c = at(0, "M");
|
|
425
425
|
return c.addData(l), c.make(), c.createSvgTag({ cellSize: 5, margin: 0, scalable: !0 });
|
|
426
426
|
}, []);
|
|
427
427
|
return _(n).with({ status: "disconnected" }, () => /* @__PURE__ */ s("div", { children: "hi" })).with(
|
|
428
428
|
{ status: le.union("created", "signaling", "connected", "ready") },
|
|
429
429
|
(l) => _(l.signaling).with({ state: "connecting" }, () => /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
430
|
-
/* @__PURE__ */ s(
|
|
430
|
+
/* @__PURE__ */ s(jt, {}),
|
|
431
431
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
432
432
|
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Connecting" }),
|
|
433
433
|
/* @__PURE__ */ s("p", { className: "text-gray-500 text-sm", children: "Waiting for wallet to connect..." })
|
|
@@ -480,8 +480,8 @@ const _t = async (e) => {
|
|
|
480
480
|
)
|
|
481
481
|
] })).otherwise(() => /* @__PURE__ */ s(K, { state: n }))
|
|
482
482
|
).otherwise(() => /* @__PURE__ */ s(K, { state: n }));
|
|
483
|
-
},
|
|
484
|
-
const { start: e } =
|
|
483
|
+
}, Pt = () => {
|
|
484
|
+
const { start: e } = Ot();
|
|
485
485
|
return /* @__PURE__ */ d("div", { className: "flex flex-col items-center gap-4 p-6", children: [
|
|
486
486
|
/* @__PURE__ */ d("div", { className: "text-center", children: [
|
|
487
487
|
/* @__PURE__ */ s("h3", { className: "mb-2 font-semibold text-gray-900 text-lg", children: "Ready to Connect" }),
|
|
@@ -497,7 +497,7 @@ const _t = async (e) => {
|
|
|
497
497
|
}
|
|
498
498
|
)
|
|
499
499
|
] });
|
|
500
|
-
},
|
|
500
|
+
}, Lt = "data:image/webp;base64,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", Et = () => {
|
|
501
501
|
const { status: e } = G(), { status: t } = E(), r = _(t).with("disconnected", () => {
|
|
502
502
|
}).with(
|
|
503
503
|
le.union("connected", "connecting", "error"),
|
|
@@ -527,8 +527,8 @@ const _t = async (e) => {
|
|
|
527
527
|
return r ? /* @__PURE__ */ d("div", { className: "group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-neutral-200", children: [
|
|
528
528
|
/* @__PURE__ */ s("div", { className: "text-gray-900 text-xs opacity-0 transition-opacity duration-300 group-hover:opacity-100", children: r.text }),
|
|
529
529
|
/* @__PURE__ */ s("div", { children: r.icon })
|
|
530
|
-
] }) : /* @__PURE__ */ s(
|
|
531
|
-
},
|
|
530
|
+
] }) : /* @__PURE__ */ s(tt, {});
|
|
531
|
+
}, Ft = () => /* @__PURE__ */ d("div", { className: "mt-2 flex items-end justify-between gap-2 px-1 text-gray-500", children: [
|
|
532
532
|
/* @__PURE__ */ d(
|
|
533
533
|
"a",
|
|
534
534
|
{
|
|
@@ -540,7 +540,7 @@ const _t = async (e) => {
|
|
|
540
540
|
/* @__PURE__ */ s(
|
|
541
541
|
"img",
|
|
542
542
|
{
|
|
543
|
-
src:
|
|
543
|
+
src: Lt,
|
|
544
544
|
alt: "Open Lavatory Logo",
|
|
545
545
|
width: 20,
|
|
546
546
|
height: 20,
|
|
@@ -551,8 +551,8 @@ const _t = async (e) => {
|
|
|
551
551
|
]
|
|
552
552
|
}
|
|
553
553
|
),
|
|
554
|
-
/* @__PURE__ */ s("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ s(
|
|
555
|
-
] }),
|
|
554
|
+
/* @__PURE__ */ s("div", { className: "text-gray-500 text-sm", children: /* @__PURE__ */ s(Et, {}) })
|
|
555
|
+
] }), Bt = ({ size: e = 24 }) => (
|
|
556
556
|
// biome-ignore lint/a11y/noSvgWithoutTitle: Chevron left icon
|
|
557
557
|
/* @__PURE__ */ s(
|
|
558
558
|
"svg",
|
|
@@ -575,7 +575,7 @@ const _t = async (e) => {
|
|
|
575
575
|
)
|
|
576
576
|
}
|
|
577
577
|
)
|
|
578
|
-
),
|
|
578
|
+
), Tt = ({ size: e = 24 }) => (
|
|
579
579
|
// biome-ignore lint/a11y/noSvgWithoutTitle: Cog icon
|
|
580
580
|
/* @__PURE__ */ d(
|
|
581
581
|
"svg",
|
|
@@ -610,7 +610,7 @@ const _t = async (e) => {
|
|
|
610
610
|
]
|
|
611
611
|
}
|
|
612
612
|
)
|
|
613
|
-
),
|
|
613
|
+
), Dt = ({
|
|
614
614
|
title: e,
|
|
615
615
|
view: t,
|
|
616
616
|
onToggleSettings: r,
|
|
@@ -633,7 +633,7 @@ const _t = async (e) => {
|
|
|
633
633
|
onClick: c,
|
|
634
634
|
"aria-label": t === "settings" ? "Back to QR" : "Close modal",
|
|
635
635
|
className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-200",
|
|
636
|
-
children: /* @__PURE__ */ s(
|
|
636
|
+
children: /* @__PURE__ */ s(Bt, {})
|
|
637
637
|
}
|
|
638
638
|
),
|
|
639
639
|
/* @__PURE__ */ s("h2", { className: "flex items-center justify-center gap-2 font-semibold text-gray-900 text-lg", children: e }),
|
|
@@ -645,20 +645,53 @@ const _t = async (e) => {
|
|
|
645
645
|
"aria-pressed": t === "settings",
|
|
646
646
|
onClick: r,
|
|
647
647
|
className: "flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg transition-colors hover:bg-gray-200",
|
|
648
|
-
children: /* @__PURE__ */ s(
|
|
648
|
+
children: /* @__PURE__ */ s(Tt, {})
|
|
649
649
|
}
|
|
650
650
|
)
|
|
651
651
|
] });
|
|
652
652
|
};
|
|
653
|
+
function Ie(e, t) {
|
|
654
|
+
for (var r in t) e[r] = t[r];
|
|
655
|
+
return e;
|
|
656
|
+
}
|
|
653
657
|
function oe(e, t) {
|
|
654
658
|
for (var r in e) if (r !== "__source" && !(r in t)) return !0;
|
|
655
659
|
for (var n in t) if (n !== "__source" && e[n] !== t[n]) return !0;
|
|
656
660
|
return !1;
|
|
657
661
|
}
|
|
662
|
+
function ze(e, t) {
|
|
663
|
+
var r = t(), n = y({ t: { __: r, u: t } }), o = n[0].t, i = n[1];
|
|
664
|
+
return Z(function() {
|
|
665
|
+
o.__ = r, o.u = t, $(o) && i({ t: o });
|
|
666
|
+
}, [e, r, t]), L(function() {
|
|
667
|
+
return $(o) && i({ t: o }), e(function() {
|
|
668
|
+
$(o) && i({ t: o });
|
|
669
|
+
});
|
|
670
|
+
}, [e]), r;
|
|
671
|
+
}
|
|
672
|
+
function $(e) {
|
|
673
|
+
var t, r, n = e.u, o = e.__;
|
|
674
|
+
try {
|
|
675
|
+
var i = n();
|
|
676
|
+
return !((t = o) === (r = i) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
|
|
677
|
+
} catch {
|
|
678
|
+
return !0;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
function Me(e) {
|
|
682
|
+
e();
|
|
683
|
+
}
|
|
684
|
+
function We(e) {
|
|
685
|
+
return e;
|
|
686
|
+
}
|
|
687
|
+
function Ve() {
|
|
688
|
+
return [!1, Me];
|
|
689
|
+
}
|
|
690
|
+
var Ue = Z;
|
|
658
691
|
function ie(e, t) {
|
|
659
692
|
this.props = e, this.context = t;
|
|
660
693
|
}
|
|
661
|
-
function
|
|
694
|
+
function It(e, t) {
|
|
662
695
|
function r(o) {
|
|
663
696
|
var i = this.props.ref, a = i == o.ref;
|
|
664
697
|
return !a && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, o) || !a : oe(this.props, o);
|
|
@@ -666,7 +699,7 @@ function Dt(e, t) {
|
|
|
666
699
|
function n(o) {
|
|
667
700
|
return this.shouldComponentUpdate = r, R(e, o);
|
|
668
701
|
}
|
|
669
|
-
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n;
|
|
702
|
+
return n.displayName = "Memo(" + (e.displayName || e.name) + ")", n.prototype.isReactComponent = !0, n.__f = !0, n.type = e, n;
|
|
670
703
|
}
|
|
671
704
|
(ie.prototype = new B()).isPureReactComponent = !0, ie.prototype.shouldComponentUpdate = function(e, t) {
|
|
672
705
|
return oe(this.props, e) || oe(this.state, t);
|
|
@@ -675,56 +708,50 @@ var ge = b.__b;
|
|
|
675
708
|
b.__b = function(e) {
|
|
676
709
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), ge && ge(e);
|
|
677
710
|
};
|
|
678
|
-
var
|
|
679
|
-
function
|
|
711
|
+
var zt = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
712
|
+
function Mt(e) {
|
|
680
713
|
function t(r) {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
delete r.ref;
|
|
684
|
-
var o = e(r, n);
|
|
685
|
-
return r.ref = n, o;
|
|
714
|
+
var n = Ie({}, r);
|
|
715
|
+
return delete n.ref, e(n, r.ref || null);
|
|
686
716
|
}
|
|
687
|
-
return t.$$typeof =
|
|
717
|
+
return t.$$typeof = zt, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
688
718
|
}
|
|
689
719
|
var me = function(e, t) {
|
|
690
720
|
return e == null ? null : j(j(e).map(t));
|
|
691
|
-
},
|
|
721
|
+
}, Wt = { map: me, forEach: me, count: function(e) {
|
|
692
722
|
return e ? j(e).length : 0;
|
|
693
723
|
}, only: function(e) {
|
|
694
724
|
var t = j(e);
|
|
695
725
|
if (t.length !== 1) throw "Children.only";
|
|
696
726
|
return t[0];
|
|
697
|
-
}, toArray: j },
|
|
727
|
+
}, toArray: j }, Vt = b.__e;
|
|
698
728
|
b.__e = function(e, t, r, n) {
|
|
699
729
|
if (e.then) {
|
|
700
730
|
for (var o, i = t; i = i.__; ) if ((o = i.__c) && o.__c) return t.__e == null && (t.__e = r.__e, t.__k = r.__k), o.__c(e, t);
|
|
701
731
|
}
|
|
702
|
-
|
|
732
|
+
Vt(e, t, r, n);
|
|
703
733
|
};
|
|
704
734
|
var ve = b.unmount;
|
|
705
|
-
function
|
|
735
|
+
function Je(e, t, r) {
|
|
706
736
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(n) {
|
|
707
737
|
typeof n.__c == "function" && n.__c();
|
|
708
|
-
}), e.__c.__H = null), (e = (
|
|
709
|
-
|
|
710
|
-
return n;
|
|
711
|
-
})({}, e)).__c != null && (e.__c.__P === r && (e.__c.__P = t), e.__c = null), e.__k = e.__k && e.__k.map(function(n) {
|
|
712
|
-
return Ie(n, t, r);
|
|
738
|
+
}), e.__c.__H = null), (e = Ie({}, 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) {
|
|
739
|
+
return Je(n, t, r);
|
|
713
740
|
})), e;
|
|
714
741
|
}
|
|
715
|
-
function
|
|
742
|
+
function He(e, t, r) {
|
|
716
743
|
return e && r && (e.__v = null, e.__k = e.__k && e.__k.map(function(n) {
|
|
717
|
-
return
|
|
744
|
+
return He(n, t, r);
|
|
718
745
|
}), e.__c && e.__c.__P === t && (e.__e && r.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = r)), e;
|
|
719
746
|
}
|
|
720
747
|
function U() {
|
|
721
|
-
this.__u = 0, this.
|
|
748
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
722
749
|
}
|
|
723
|
-
function
|
|
750
|
+
function Ke(e) {
|
|
724
751
|
var t = e.__.__c;
|
|
725
752
|
return t && t.__a && t.__a(e);
|
|
726
753
|
}
|
|
727
|
-
function
|
|
754
|
+
function Ut(e) {
|
|
728
755
|
var t, r, n;
|
|
729
756
|
function o(i) {
|
|
730
757
|
if (t || (t = e()).then(function(a) {
|
|
@@ -738,15 +765,15 @@ function Vt(e) {
|
|
|
738
765
|
return o.displayName = "Lazy", o.__f = !0, o;
|
|
739
766
|
}
|
|
740
767
|
function I() {
|
|
741
|
-
this.
|
|
768
|
+
this.i = null, this.l = null;
|
|
742
769
|
}
|
|
743
770
|
b.unmount = function(e) {
|
|
744
771
|
var t = e.__c;
|
|
745
772
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), ve && ve(e);
|
|
746
773
|
}, (U.prototype = new B()).__c = function(e, t) {
|
|
747
774
|
var r = t.__c, n = this;
|
|
748
|
-
n.
|
|
749
|
-
var o =
|
|
775
|
+
n.o == null && (n.o = []), n.o.push(r);
|
|
776
|
+
var o = Ke(n.__v), i = !1, a = function() {
|
|
750
777
|
i || (i = !0, r.__R = null, o ? o(l) : l());
|
|
751
778
|
};
|
|
752
779
|
r.__R = a;
|
|
@@ -754,20 +781,20 @@ b.unmount = function(e) {
|
|
|
754
781
|
if (!--n.__u) {
|
|
755
782
|
if (n.state.__a) {
|
|
756
783
|
var c = n.state.__a;
|
|
757
|
-
n.__v.__k[0] =
|
|
784
|
+
n.__v.__k[0] = He(c, c.__c.__P, c.__c.__O);
|
|
758
785
|
}
|
|
759
786
|
var f;
|
|
760
|
-
for (n.setState({ __a: n.__b = null }); f = n.
|
|
787
|
+
for (n.setState({ __a: n.__b = null }); f = n.o.pop(); ) f.forceUpdate();
|
|
761
788
|
}
|
|
762
789
|
};
|
|
763
790
|
n.__u++ || 32 & t.__u || n.setState({ __a: n.__b = n.__v.__k[0] }), e.then(a, a);
|
|
764
791
|
}, U.prototype.componentWillUnmount = function() {
|
|
765
|
-
this.
|
|
792
|
+
this.o = [];
|
|
766
793
|
}, U.prototype.render = function(e, t) {
|
|
767
794
|
if (this.__b) {
|
|
768
795
|
if (this.__v.__k) {
|
|
769
796
|
var r = document.createElement("div"), n = this.__v.__k[0].__c;
|
|
770
|
-
this.__v.__k[0] =
|
|
797
|
+
this.__v.__k[0] = Je(this.__b, r, n.__O = n.__P);
|
|
771
798
|
}
|
|
772
799
|
this.__b = null;
|
|
773
800
|
}
|
|
@@ -775,37 +802,39 @@ b.unmount = function(e) {
|
|
|
775
802
|
return o && (o.__u &= -33), [R(z, null, t.__a ? null : e.children), o];
|
|
776
803
|
};
|
|
777
804
|
var be = function(e, t, r) {
|
|
778
|
-
if (++r[1] === r[0] && e.
|
|
805
|
+
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; ) {
|
|
779
806
|
for (; r.length > 3; ) r.pop()();
|
|
780
807
|
if (r[1] < r[0]) break;
|
|
781
|
-
e.
|
|
808
|
+
e.i = r = r[2];
|
|
782
809
|
}
|
|
783
810
|
};
|
|
784
|
-
function
|
|
811
|
+
function Jt(e) {
|
|
785
812
|
return this.getChildContext = function() {
|
|
786
813
|
return e.context;
|
|
787
814
|
}, e.children;
|
|
788
815
|
}
|
|
789
|
-
function
|
|
790
|
-
var t = this, r = e.
|
|
791
|
-
t.componentWillUnmount = function() {
|
|
792
|
-
T(null, t.
|
|
793
|
-
}, t.
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
816
|
+
function Ht(e) {
|
|
817
|
+
var t = this, r = e.h;
|
|
818
|
+
if (t.componentWillUnmount = function() {
|
|
819
|
+
T(null, t.v), t.v = null, t.h = null;
|
|
820
|
+
}, t.h && t.h !== r && t.componentWillUnmount(), !t.v) {
|
|
821
|
+
for (var n = t.__v; n !== null && !n.__m && n.__ !== null; ) n = n.__;
|
|
822
|
+
t.h = r, t.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: n.__m }, contains: function() {
|
|
823
|
+
return !0;
|
|
824
|
+
}, insertBefore: function(o, i) {
|
|
825
|
+
this.childNodes.push(o), t.h.insertBefore(o, i);
|
|
826
|
+
}, removeChild: function(o) {
|
|
827
|
+
this.childNodes.splice(this.childNodes.indexOf(o) >>> 1, 1), t.h.removeChild(o);
|
|
828
|
+
} };
|
|
829
|
+
}
|
|
830
|
+
T(R(Jt, { context: t.context }, e.__v), t.v);
|
|
802
831
|
}
|
|
803
|
-
function
|
|
804
|
-
var r = R(
|
|
832
|
+
function Kt(e, t) {
|
|
833
|
+
var r = R(Ht, { __v: e, h: t });
|
|
805
834
|
return r.containerInfo = t, r;
|
|
806
835
|
}
|
|
807
836
|
(I.prototype = new B()).__a = function(e) {
|
|
808
|
-
var t = this, r =
|
|
837
|
+
var t = this, r = Ke(t.__v), n = t.l.get(e);
|
|
809
838
|
return n[0]++, function(o) {
|
|
810
839
|
var i = function() {
|
|
811
840
|
t.props.revealOrder ? (n.push(o), be(t, e, n)) : o();
|
|
@@ -813,25 +842,25 @@ function Ht(e, t) {
|
|
|
813
842
|
r ? r(i) : i();
|
|
814
843
|
};
|
|
815
844
|
}, I.prototype.render = function(e) {
|
|
816
|
-
this.
|
|
845
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
817
846
|
var t = j(e.children);
|
|
818
847
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
819
|
-
for (var r = t.length; r--; ) this.
|
|
848
|
+
for (var r = t.length; r--; ) this.l.set(t[r], this.i = [1, 0, this.i]);
|
|
820
849
|
return e.children;
|
|
821
850
|
}, I.prototype.componentDidUpdate = I.prototype.componentDidMount = function() {
|
|
822
851
|
var e = this;
|
|
823
|
-
this.
|
|
852
|
+
this.l.forEach(function(t, r) {
|
|
824
853
|
be(e, r, t);
|
|
825
854
|
});
|
|
826
855
|
};
|
|
827
|
-
var
|
|
856
|
+
var Xe = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Xt = /^(?: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]/, Qt = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Zt = /[A-Z0-9]/g, Gt = typeof document < "u", qt = function(e) {
|
|
828
857
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
|
|
829
858
|
};
|
|
830
|
-
function
|
|
859
|
+
function Yt(e, t, r) {
|
|
831
860
|
return t.__k == null && (t.textContent = ""), T(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
832
861
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
862
|
+
function $t(e, t, r) {
|
|
863
|
+
return ot(e, t), typeof r == "function" && r(), e ? e.__c : null;
|
|
835
864
|
}
|
|
836
865
|
B.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(e) {
|
|
837
866
|
Object.defineProperty(B.prototype, e, { configurable: !0, get: function() {
|
|
@@ -841,18 +870,18 @@ B.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveP
|
|
|
841
870
|
} });
|
|
842
871
|
});
|
|
843
872
|
var we = b.event;
|
|
844
|
-
function $t() {
|
|
845
|
-
}
|
|
846
873
|
function er() {
|
|
847
|
-
return this.cancelBubble;
|
|
848
874
|
}
|
|
849
875
|
function tr() {
|
|
876
|
+
return this.cancelBubble;
|
|
877
|
+
}
|
|
878
|
+
function rr() {
|
|
850
879
|
return this.defaultPrevented;
|
|
851
880
|
}
|
|
852
881
|
b.event = function(e) {
|
|
853
|
-
return we && (e = we(e)), e.persist =
|
|
882
|
+
return we && (e = we(e)), e.persist = er, e.isPropagationStopped = tr, e.isDefaultPrevented = rr, e.nativeEvent = e;
|
|
854
883
|
};
|
|
855
|
-
var ue,
|
|
884
|
+
var ue, nr = { enumerable: !1, configurable: !0, get: function() {
|
|
856
885
|
return this.class;
|
|
857
886
|
} }, ye = b.vnode;
|
|
858
887
|
b.vnode = function(e) {
|
|
@@ -860,17 +889,17 @@ b.vnode = function(e) {
|
|
|
860
889
|
var r = t.props, n = t.type, o = {}, i = n.indexOf("-") === -1;
|
|
861
890
|
for (var a in r) {
|
|
862
891
|
var l = r[a];
|
|
863
|
-
if (!(a === "value" && "defaultValue" in r && l == null ||
|
|
892
|
+
if (!(a === "value" && "defaultValue" in r && l == null || Gt && a === "children" && n === "noscript" || a === "class" || a === "className")) {
|
|
864
893
|
var c = a.toLowerCase();
|
|
865
|
-
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" ||
|
|
894
|
+
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" || qt(r.type) ? c === "onfocus" ? a = "onfocusin" : c === "onblur" ? a = "onfocusout" : Qt.test(a) && (a = c) : c = a = "oninput" : i && Xt.test(a) ? a = a.replace(Zt, "-$&").toLowerCase() : l === null && (l = void 0), c === "oninput" && o[a = c] && (a = "oninputCapture"), o[a] = l;
|
|
866
895
|
}
|
|
867
896
|
}
|
|
868
897
|
n == "select" && o.multiple && Array.isArray(o.value) && (o.value = j(r.children).forEach(function(f) {
|
|
869
898
|
f.props.selected = o.value.indexOf(f.props.value) != -1;
|
|
870
899
|
})), n == "select" && o.defaultValue != null && (o.value = j(r.children).forEach(function(f) {
|
|
871
900
|
f.props.selected = o.multiple ? o.defaultValue.indexOf(f.props.value) != -1 : o.defaultValue == f.props.value;
|
|
872
|
-
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className",
|
|
873
|
-
})(e), e.$$typeof =
|
|
901
|
+
})), r.class && !r.className ? (o.class = r.class, Object.defineProperty(o, "className", nr)) : (r.className && !r.class || r.class && r.className) && (o.class = o.className = r.className), t.props = o;
|
|
902
|
+
})(e), e.$$typeof = Xe, ye && ye(e);
|
|
874
903
|
};
|
|
875
904
|
var xe = b.__r;
|
|
876
905
|
b.__r = function(e) {
|
|
@@ -882,74 +911,44 @@ b.diffed = function(e) {
|
|
|
882
911
|
var t = e.props, r = e.__e;
|
|
883
912
|
r != null && e.type === "textarea" && "value" in t && t.value !== r.value && (r.value = t.value == null ? "" : t.value), ue = null;
|
|
884
913
|
};
|
|
885
|
-
var
|
|
914
|
+
var or = { ReactCurrentDispatcher: { current: { readContext: function(e) {
|
|
886
915
|
return ue.__n[e.__c].props.value;
|
|
887
|
-
}, useCallback: C, useContext: ae, useDebugValue: Re, useDeferredValue:
|
|
888
|
-
function
|
|
916
|
+
}, useCallback: C, useContext: ae, useDebugValue: Re, useDeferredValue: We, useEffect: L, useId: je, useImperativeHandle: Oe, useInsertionEffect: Ue, useLayoutEffect: Z, useMemo: Ae, useReducer: Ne, useRef: Se, useState: y, useSyncExternalStore: ze, useTransition: Ve } } };
|
|
917
|
+
function ir(e) {
|
|
889
918
|
return R.bind(null, e);
|
|
890
919
|
}
|
|
891
920
|
function q(e) {
|
|
892
|
-
return !!e && e.$$typeof ===
|
|
893
|
-
}
|
|
894
|
-
function ir(e) {
|
|
895
|
-
return q(e) && e.type === z;
|
|
921
|
+
return !!e && e.$$typeof === Xe;
|
|
896
922
|
}
|
|
897
923
|
function ar(e) {
|
|
898
|
-
return
|
|
924
|
+
return q(e) && e.type === z;
|
|
899
925
|
}
|
|
900
926
|
function sr(e) {
|
|
901
|
-
return
|
|
927
|
+
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
902
928
|
}
|
|
903
929
|
function lr(e) {
|
|
904
|
-
return
|
|
930
|
+
return q(e) ? nt.apply(null, arguments) : e;
|
|
905
931
|
}
|
|
906
932
|
function cr(e) {
|
|
933
|
+
return !!e.__k && (T(null, e), !0);
|
|
934
|
+
}
|
|
935
|
+
function ur(e) {
|
|
907
936
|
return e && (e.base || e.nodeType === 1 && e) || null;
|
|
908
937
|
}
|
|
909
|
-
var
|
|
938
|
+
var dr = function(e, t) {
|
|
910
939
|
return e(t);
|
|
911
|
-
},
|
|
940
|
+
}, pr = function(e, t) {
|
|
912
941
|
return e(t);
|
|
913
|
-
}, pr =
|
|
914
|
-
function Ve(e) {
|
|
915
|
-
e();
|
|
916
|
-
}
|
|
917
|
-
function Ue(e) {
|
|
918
|
-
return e;
|
|
919
|
-
}
|
|
920
|
-
function Je() {
|
|
921
|
-
return [!1, Ve];
|
|
922
|
-
}
|
|
923
|
-
var He = Z, fr = q;
|
|
924
|
-
function Ke(e, t) {
|
|
925
|
-
var r = t(), n = y({ h: { __: r, v: t } }), o = n[0].h, i = n[1];
|
|
926
|
-
return Z(function() {
|
|
927
|
-
o.__ = r, o.v = t, $(o) && i({ h: o });
|
|
928
|
-
}, [e, r, t]), L(function() {
|
|
929
|
-
return $(o) && i({ h: o }), e(function() {
|
|
930
|
-
$(o) && i({ h: o });
|
|
931
|
-
});
|
|
932
|
-
}, [e]), r;
|
|
933
|
-
}
|
|
934
|
-
function $(e) {
|
|
935
|
-
var t, r, n = e.v, o = e.__;
|
|
936
|
-
try {
|
|
937
|
-
var i = n();
|
|
938
|
-
return !((t = o) === (r = i) && (t !== 0 || 1 / t == 1 / r) || t != t && r != r);
|
|
939
|
-
} catch {
|
|
940
|
-
return !0;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
var P = { useState: y, useId: je, useReducer: Ne, useEffect: L, useLayoutEffect: Z, useInsertionEffect: He, useTransition: Je, useDeferredValue: Ue, useSyncExternalStore: Ke, startTransition: Ve, useRef: Se, useImperativeHandle: Oe, useMemo: Ae, useCallback: C, useContext: ae, useDebugValue: Re, version: "18.3.1", Children: Mt, render: qt, hydrate: Yt, unmountComponentAtNode: lr, createPortal: Ht, createElement: R, createContext: Pe, createFactory: or, cloneElement: sr, createRef: tt, Fragment: z, isValidElement: q, isElement: fr, isFragment: ir, isMemo: ar, findDOMNode: cr, Component: B, PureComponent: ie, memo: Dt, forwardRef: zt, flushSync: dr, unstable_batchedUpdates: ur, StrictMode: pr, Suspense: U, SuspenseList: I, lazy: Vt, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: nr }, Xe = {
|
|
942
|
+
}, fr = z, hr = q, P = { useState: y, useId: je, useReducer: Ne, useEffect: L, useLayoutEffect: Z, useInsertionEffect: Ue, useTransition: Ve, useDeferredValue: We, useSyncExternalStore: ze, startTransition: Me, useRef: Se, useImperativeHandle: Oe, useMemo: Ae, useCallback: C, useContext: ae, useDebugValue: Re, version: "18.3.1", Children: Wt, render: Yt, hydrate: $t, unmountComponentAtNode: cr, createPortal: Kt, createElement: R, createContext: Pe, createFactory: ir, cloneElement: lr, createRef: rt, Fragment: z, isValidElement: q, isElement: hr, isFragment: ar, isMemo: sr, findDOMNode: ur, Component: B, PureComponent: ie, memo: It, forwardRef: Mt, flushSync: pr, unstable_batchedUpdates: dr, StrictMode: fr, Suspense: U, SuspenseList: I, lazy: Ut, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: or }, Qe = {
|
|
944
943
|
color: void 0,
|
|
945
944
|
size: void 0,
|
|
946
945
|
className: void 0,
|
|
947
946
|
style: void 0,
|
|
948
947
|
attr: void 0
|
|
949
|
-
}, Ce = P.createContext && /* @__PURE__ */ P.createContext(
|
|
950
|
-
function
|
|
948
|
+
}, Ce = P.createContext && /* @__PURE__ */ P.createContext(Qe), gr = ["attr", "size", "title"];
|
|
949
|
+
function mr(e, t) {
|
|
951
950
|
if (e == null) return {};
|
|
952
|
-
var r =
|
|
951
|
+
var r = vr(e, t), n, o;
|
|
953
952
|
if (Object.getOwnPropertySymbols) {
|
|
954
953
|
var i = Object.getOwnPropertySymbols(e);
|
|
955
954
|
for (o = 0; o < i.length; o++)
|
|
@@ -957,7 +956,7 @@ function gr(e, t) {
|
|
|
957
956
|
}
|
|
958
957
|
return r;
|
|
959
958
|
}
|
|
960
|
-
function
|
|
959
|
+
function vr(e, t) {
|
|
961
960
|
if (e == null) return {};
|
|
962
961
|
var r = {};
|
|
963
962
|
for (var n in e)
|
|
@@ -991,21 +990,21 @@ function Q(e) {
|
|
|
991
990
|
for (var t = 1; t < arguments.length; t++) {
|
|
992
991
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
993
992
|
t % 2 ? _e(Object(r), !0).forEach(function(n) {
|
|
994
|
-
|
|
993
|
+
br(e, n, r[n]);
|
|
995
994
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : _e(Object(r)).forEach(function(n) {
|
|
996
995
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
997
996
|
});
|
|
998
997
|
}
|
|
999
998
|
return e;
|
|
1000
999
|
}
|
|
1001
|
-
function
|
|
1002
|
-
return t =
|
|
1000
|
+
function br(e, t, r) {
|
|
1001
|
+
return t = wr(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1003
1002
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var t =
|
|
1003
|
+
function wr(e) {
|
|
1004
|
+
var t = yr(e, "string");
|
|
1006
1005
|
return typeof t == "symbol" ? t : t + "";
|
|
1007
1006
|
}
|
|
1008
|
-
function
|
|
1007
|
+
function yr(e, t) {
|
|
1009
1008
|
if (typeof e != "object" || !e) return e;
|
|
1010
1009
|
var r = e[Symbol.toPrimitive];
|
|
1011
1010
|
if (r !== void 0) {
|
|
@@ -1015,23 +1014,23 @@ function wr(e, t) {
|
|
|
1015
1014
|
}
|
|
1016
1015
|
return (t === "string" ? String : Number)(e);
|
|
1017
1016
|
}
|
|
1018
|
-
function
|
|
1017
|
+
function Ze(e) {
|
|
1019
1018
|
return e && e.map((t, r) => /* @__PURE__ */ P.createElement(t.tag, Q({
|
|
1020
1019
|
key: r
|
|
1021
|
-
}, t.attr),
|
|
1020
|
+
}, t.attr), Ze(t.child)));
|
|
1022
1021
|
}
|
|
1023
|
-
function
|
|
1024
|
-
return (t) => /* @__PURE__ */ P.createElement(
|
|
1022
|
+
function xr(e) {
|
|
1023
|
+
return (t) => /* @__PURE__ */ P.createElement(kr, X({
|
|
1025
1024
|
attr: Q({}, e.attr)
|
|
1026
|
-
}, t),
|
|
1025
|
+
}, t), Ze(e.child));
|
|
1027
1026
|
}
|
|
1028
|
-
function
|
|
1027
|
+
function kr(e) {
|
|
1029
1028
|
var t = (r) => {
|
|
1030
1029
|
var {
|
|
1031
1030
|
attr: n,
|
|
1032
1031
|
size: o,
|
|
1033
1032
|
title: i
|
|
1034
|
-
} = e, a =
|
|
1033
|
+
} = e, a = mr(e, gr), l = o || r.size || "1em", c;
|
|
1035
1034
|
return r.className && (c = r.className), e.className && (c = (c ? c + " " : "") + e.className), /* @__PURE__ */ P.createElement("svg", X({
|
|
1036
1035
|
stroke: "currentColor",
|
|
1037
1036
|
fill: "currentColor",
|
|
@@ -1046,16 +1045,16 @@ function xr(e) {
|
|
|
1046
1045
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1047
1046
|
}), i && /* @__PURE__ */ P.createElement("title", null, i), e.children);
|
|
1048
1047
|
};
|
|
1049
|
-
return Ce !== void 0 ? /* @__PURE__ */ P.createElement(Ce.Consumer, null, (r) => t(r)) : t(
|
|
1048
|
+
return Ce !== void 0 ? /* @__PURE__ */ P.createElement(Ce.Consumer, null, (r) => t(r)) : t(Qe);
|
|
1050
1049
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return
|
|
1050
|
+
function Cr(e) {
|
|
1051
|
+
return xr({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "circle", attr: { cx: "12", cy: "12", r: "10" }, child: [] }, { tag: "path", attr: { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }, child: [] }, { tag: "path", attr: { d: "M12 17h.01" }, child: [] }] })(e);
|
|
1053
1052
|
}
|
|
1054
1053
|
const de = ({
|
|
1055
1054
|
variant: e,
|
|
1056
1055
|
children: t
|
|
1057
1056
|
}) => /* @__PURE__ */ d("div", { className: "group relative", children: [
|
|
1058
|
-
/* @__PURE__ */ s("div", { className: "cursor-pointer rounded-md p-1.5 transition-colors hover:bg-neutral-200", children: _(e).with("icon", () => /* @__PURE__ */ s(
|
|
1057
|
+
/* @__PURE__ */ s("div", { className: "cursor-pointer rounded-md p-1.5 transition-colors hover:bg-neutral-200", children: _(e).with("icon", () => /* @__PURE__ */ s(Cr, {})).with("text", () => /* @__PURE__ */ s("div", { children: "Text" })).exhaustive() }),
|
|
1059
1058
|
/* @__PURE__ */ s("div", { className: "-translate-x-1/2 absolute top-full left-1/2 z-10 hidden rounded-md bg-neutral-100 p-2 shadow-sm group-hover:block", children: t })
|
|
1060
1059
|
] }), pe = ({ options: e, value: t, onChange: r }) => /* @__PURE__ */ s("div", { className: "flex divide-x rounded-md border border-gray-300", children: e.map(([n, o]) => /* @__PURE__ */ s(
|
|
1061
1060
|
"button",
|
|
@@ -1070,7 +1069,7 @@ const de = ({
|
|
|
1070
1069
|
children: o
|
|
1071
1070
|
},
|
|
1072
1071
|
n
|
|
1073
|
-
)) }),
|
|
1072
|
+
)) }), _r = ({ label: e, value: t, onChange: r }) => /* @__PURE__ */ s(
|
|
1074
1073
|
pe,
|
|
1075
1074
|
{
|
|
1076
1075
|
options: [
|
|
@@ -1080,7 +1079,7 @@ const de = ({
|
|
|
1080
1079
|
value: t ? "true" : "false",
|
|
1081
1080
|
onChange: (n) => r(n === "true")
|
|
1082
1081
|
}
|
|
1083
|
-
),
|
|
1082
|
+
), Sr = () => {
|
|
1084
1083
|
const { settings: e, updateSettings: t } = ce();
|
|
1085
1084
|
return /* @__PURE__ */ d("div", { children: [
|
|
1086
1085
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1102,10 +1101,10 @@ const de = ({
|
|
|
1102
1101
|
]
|
|
1103
1102
|
].map(([r, n, o, i]) => /* @__PURE__ */ d("div", { className: "flex items-center justify-between", children: [
|
|
1104
1103
|
/* @__PURE__ */ s("div", { className: "font-semibold text-gray-900 text-sm", children: r }),
|
|
1105
|
-
/* @__PURE__ */ s(
|
|
1104
|
+
/* @__PURE__ */ s(_r, { label: r, value: o, onChange: i })
|
|
1106
1105
|
] }, n)) })
|
|
1107
1106
|
] });
|
|
1108
|
-
},
|
|
1107
|
+
}, Nr = "h-11 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", Ar = ({
|
|
1109
1108
|
// eslint-disable-next-line no-restricted-syntax
|
|
1110
1109
|
id: e,
|
|
1111
1110
|
value: t,
|
|
@@ -1117,7 +1116,7 @@ const de = ({
|
|
|
1117
1116
|
"input",
|
|
1118
1117
|
{
|
|
1119
1118
|
id: e,
|
|
1120
|
-
className:
|
|
1119
|
+
className: Nr,
|
|
1121
1120
|
value: t,
|
|
1122
1121
|
placeholder: r,
|
|
1123
1122
|
"aria-label": n,
|
|
@@ -1126,7 +1125,7 @@ const de = ({
|
|
|
1126
1125
|
a.target instanceof HTMLInputElement && i?.(a.target.value);
|
|
1127
1126
|
}
|
|
1128
1127
|
}
|
|
1129
|
-
),
|
|
1128
|
+
), Or = ["MQTT", "NTFY", "GUN"], jr = () => {
|
|
1130
1129
|
const { settings: e, updateSettings: t } = ce(), r = (o) => t({ session: { p: o } }), n = (o) => t({ session: { s: o } });
|
|
1131
1130
|
return /* @__PURE__ */ d("div", { children: [
|
|
1132
1131
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1139,7 +1138,7 @@ const de = ({
|
|
|
1139
1138
|
/* @__PURE__ */ s(
|
|
1140
1139
|
pe,
|
|
1141
1140
|
{
|
|
1142
|
-
options:
|
|
1141
|
+
options: Or.map((o) => [
|
|
1143
1142
|
o.toLowerCase(),
|
|
1144
1143
|
o
|
|
1145
1144
|
]),
|
|
@@ -1149,7 +1148,7 @@ const de = ({
|
|
|
1149
1148
|
)
|
|
1150
1149
|
] }),
|
|
1151
1150
|
/* @__PURE__ */ s(
|
|
1152
|
-
|
|
1151
|
+
Ar,
|
|
1153
1152
|
{
|
|
1154
1153
|
id: "server",
|
|
1155
1154
|
value: e?.session.s || "",
|
|
@@ -1161,7 +1160,7 @@ const de = ({
|
|
|
1161
1160
|
)
|
|
1162
1161
|
] })
|
|
1163
1162
|
] });
|
|
1164
|
-
},
|
|
1163
|
+
}, Rr = ["WebRTC"], Pr = () => {
|
|
1165
1164
|
const [e, t] = y("WebRTC");
|
|
1166
1165
|
return /* @__PURE__ */ d("div", { children: [
|
|
1167
1166
|
/* @__PURE__ */ d("div", { className: "flex items-end justify-between p-2", children: [
|
|
@@ -1173,18 +1172,18 @@ const de = ({
|
|
|
1173
1172
|
/* @__PURE__ */ s(
|
|
1174
1173
|
pe,
|
|
1175
1174
|
{
|
|
1176
|
-
options:
|
|
1175
|
+
options: Rr.map((r) => [r, r]),
|
|
1177
1176
|
value: e,
|
|
1178
1177
|
onChange: (r) => t(r)
|
|
1179
1178
|
}
|
|
1180
1179
|
)
|
|
1181
1180
|
] }) })
|
|
1182
1181
|
] });
|
|
1183
|
-
},
|
|
1184
|
-
/* @__PURE__ */ s(
|
|
1185
|
-
/* @__PURE__ */ s(
|
|
1186
|
-
/* @__PURE__ */ s(
|
|
1187
|
-
] }) }),
|
|
1182
|
+
}, Lr = ({ onBack: e }) => /* @__PURE__ */ s("div", { className: "text-left", children: /* @__PURE__ */ d("div", { className: "flex flex-col gap-2 px-2", children: [
|
|
1183
|
+
/* @__PURE__ */ s(jr, {}),
|
|
1184
|
+
/* @__PURE__ */ s(Pr, {}),
|
|
1185
|
+
/* @__PURE__ */ s(Sr, {})
|
|
1186
|
+
] }) }), Er = () => {
|
|
1188
1187
|
const [e, t] = y("start"), [r, n] = y(!1);
|
|
1189
1188
|
return L(() => {
|
|
1190
1189
|
if (!r) return;
|
|
@@ -1196,19 +1195,19 @@ const de = ({
|
|
|
1196
1195
|
copied: r,
|
|
1197
1196
|
setCopied: n
|
|
1198
1197
|
};
|
|
1199
|
-
},
|
|
1198
|
+
}, Fr = (e) => {
|
|
1200
1199
|
L(() => {
|
|
1201
1200
|
const t = (r) => {
|
|
1202
1201
|
r.key === "Escape" && e();
|
|
1203
1202
|
};
|
|
1204
1203
|
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
1205
1204
|
}, [e]);
|
|
1206
|
-
},
|
|
1205
|
+
}, Br = ({ onClose: e = () => {
|
|
1207
1206
|
}, onCopy: t }) => {
|
|
1208
|
-
const { view: r, setView: n, copied: o, setCopied: i } =
|
|
1209
|
-
|
|
1207
|
+
const { view: r, setView: n, copied: o, setCopied: i } = Er(), { uri: a } = G(), { status: l } = E(), c = "Connect Wallet";
|
|
1208
|
+
Fr(e);
|
|
1210
1209
|
const f = C(async () => {
|
|
1211
|
-
a && await
|
|
1210
|
+
a && await St(a) && i(!0);
|
|
1212
1211
|
}, [a, i]);
|
|
1213
1212
|
return D("view", r), /* @__PURE__ */ s(
|
|
1214
1213
|
"div",
|
|
@@ -1227,7 +1226,7 @@ const de = ({
|
|
|
1227
1226
|
onClick: (w) => w.stopPropagation(),
|
|
1228
1227
|
children: [
|
|
1229
1228
|
/* @__PURE__ */ s(
|
|
1230
|
-
|
|
1229
|
+
Dt,
|
|
1231
1230
|
{
|
|
1232
1231
|
setView: n,
|
|
1233
1232
|
onToggleSettings: () => n(r === "settings" ? "start" : "settings"),
|
|
@@ -1238,8 +1237,8 @@ const de = ({
|
|
|
1238
1237
|
),
|
|
1239
1238
|
_(l).with(
|
|
1240
1239
|
"disconnected",
|
|
1241
|
-
() => _(r).with("start", () => /* @__PURE__ */ s(
|
|
1242
|
-
).with(le.union("connecting", "connected"), () => /* @__PURE__ */ s(
|
|
1240
|
+
() => _(r).with("start", () => /* @__PURE__ */ s(Pt, {})).with("settings", () => /* @__PURE__ */ s(Lr, { onBack: () => n("start") })).otherwise(() => /* @__PURE__ */ s(K, { state: r }))
|
|
1241
|
+
).with(le.union("connecting", "connected"), () => /* @__PURE__ */ s(Rt, { onClose: e, onCopy: t || f })).otherwise(() => /* @__PURE__ */ s(K, { state: "unknown status" })),
|
|
1243
1242
|
/* @__PURE__ */ s(
|
|
1244
1243
|
"div",
|
|
1245
1244
|
{
|
|
@@ -1250,13 +1249,13 @@ const de = ({
|
|
|
1250
1249
|
children: "📋 Connection URL copied to clipboard!"
|
|
1251
1250
|
}
|
|
1252
1251
|
),
|
|
1253
|
-
/* @__PURE__ */ s(
|
|
1252
|
+
/* @__PURE__ */ s(Ft, {})
|
|
1254
1253
|
]
|
|
1255
1254
|
}
|
|
1256
1255
|
)
|
|
1257
1256
|
}
|
|
1258
1257
|
);
|
|
1259
|
-
},
|
|
1258
|
+
}, Hr = (e = "idle") => {
|
|
1260
1259
|
const [t, r] = y({
|
|
1261
1260
|
state: e
|
|
1262
1261
|
}), n = C(
|
|
@@ -1279,15 +1278,15 @@ const de = ({
|
|
|
1279
1278
|
updateConnectionInfo: o,
|
|
1280
1279
|
reset: i
|
|
1281
1280
|
};
|
|
1282
|
-
}, Br = '/*! 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-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-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}}}@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-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--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)}}@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)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-8{height:calc(var(--spacing)*8)}.h-11{height:calc(var(--spacing)*11)}.h-\\[200px\\]{height:200px}.w-8{width:calc(var(--spacing)*8)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.-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}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.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)))}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.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-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-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-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-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-center{text-align:center}.text-left{text-align:left}.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)}.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-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))}.duration-300{--tw-duration:.3s;transition-duration:.3s}@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)}}.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}}@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)}}@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-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-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}@keyframes spin{to{transform:rotate(360deg)}}', Tr = async (e) => {
|
|
1281
|
+
}, Tr = '/*! 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-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-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}}}@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-md:.375rem;--radius-lg:.5rem;--radius-2xl:1rem;--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)}}@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)}.top-5{top:calc(var(--spacing)*5)}.top-full{top:100%}.right-5{right:calc(var(--spacing)*5)}.left-1\\/2{left:50%}.z-10{z-index:10}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-8{height:calc(var(--spacing)*8)}.h-11{height:calc(var(--spacing)*11)}.h-\\[200px\\]{height:200px}.w-8{width:calc(var(--spacing)*8)}.w-\\[200px\\]{width:200px}.w-fit{width:fit-content}.w-full{width:100%}.max-w-\\[400px\\]{max-width:400px}.-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}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.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)))}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.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-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-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-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-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.text-center{text-align:center}.text-left{text-align:left}.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)}.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-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))}.duration-300{--tw-duration:.3s;transition-duration:.3s}@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)}}.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}}@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)}}@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-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-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}@keyframes spin{to{transform:rotate(360deg)}}', Dr = async (e) => {
|
|
1283
1282
|
if (e) {
|
|
1284
1283
|
if (e.querySelector("style[data-openlv-modal]"))
|
|
1285
1284
|
return;
|
|
1286
1285
|
const r = document.createElement("style");
|
|
1287
|
-
r.setAttribute("data-openlv-modal", "true"), r.textContent =
|
|
1286
|
+
r.setAttribute("data-openlv-modal", "true"), r.textContent = Tr, e.appendChild(r);
|
|
1288
1287
|
}
|
|
1289
1288
|
};
|
|
1290
|
-
class
|
|
1289
|
+
class Ge extends HTMLElement {
|
|
1291
1290
|
constructor(r, n) {
|
|
1292
1291
|
super();
|
|
1293
1292
|
F(this, "onClose");
|
|
@@ -1295,7 +1294,7 @@ class Ze extends HTMLElement {
|
|
|
1295
1294
|
F(this, "storage");
|
|
1296
1295
|
F(this, "shadow");
|
|
1297
1296
|
F(this, "renderRequested", !1);
|
|
1298
|
-
this.provider = r, this.storage = n, this.shadow = this.attachShadow({ mode: "open" }),
|
|
1297
|
+
this.provider = r, this.storage = n, this.shadow = this.attachShadow({ mode: "open" }), Dr(this.shadow);
|
|
1299
1298
|
}
|
|
1300
1299
|
connectedCallback() {
|
|
1301
1300
|
this.requestRender();
|
|
@@ -1320,36 +1319,36 @@ class Ze extends HTMLElement {
|
|
|
1320
1319
|
provider: this.provider,
|
|
1321
1320
|
storage: this.storage
|
|
1322
1321
|
};
|
|
1323
|
-
T(
|
|
1322
|
+
T(it(Nt, r), this.shadow);
|
|
1324
1323
|
}
|
|
1325
1324
|
}
|
|
1326
|
-
const
|
|
1325
|
+
const Ir = (e = "openlv-modal") => {
|
|
1327
1326
|
if (typeof window > "u")
|
|
1328
1327
|
return e;
|
|
1329
1328
|
const t = window.customElements;
|
|
1330
1329
|
return t ? (t.get(e) || t.define(
|
|
1331
1330
|
e,
|
|
1332
|
-
|
|
1331
|
+
Ge
|
|
1333
1332
|
), e) : (console.warn(
|
|
1334
1333
|
"OpenLV modal: custom elements are not supported in this environment."
|
|
1335
1334
|
), e);
|
|
1336
|
-
},
|
|
1335
|
+
}, Kr = (e, t) => {
|
|
1337
1336
|
const r = document.querySelector("openlv-modal");
|
|
1338
1337
|
if (r && r.remove(), !r) {
|
|
1339
|
-
|
|
1340
|
-
const n = new
|
|
1338
|
+
Ir();
|
|
1339
|
+
const n = new Ge(e, t);
|
|
1341
1340
|
document.body.appendChild(n), n.showModal(), n.onClose = () => {
|
|
1342
1341
|
D("modal closed"), n.remove();
|
|
1343
1342
|
};
|
|
1344
1343
|
}
|
|
1345
1344
|
};
|
|
1346
1345
|
export {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1346
|
+
Br as ModalRoot,
|
|
1347
|
+
Lt as OPENLV_ICON_128,
|
|
1348
|
+
Ge as OpenLVModalElement,
|
|
1349
|
+
Ge as default,
|
|
1350
|
+
Ir as registerOpenLVModal,
|
|
1351
|
+
Kr as triggerOpenModal,
|
|
1352
|
+
Hr as useConnectionState
|
|
1354
1353
|
};
|
|
1355
1354
|
//# sourceMappingURL=index.js.map
|