@roku-ui/vue 0.8.2 → 0.8.4

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as R, openBlock as b, createElementBlock as w, normalizeStyle as V, renderSlot as z, computed as m, ref as g, onMounted as le, Fragment as ie, createBlock as X, resolveDynamicComponent as Se, mergeProps as $e, unref as c, createCommentVNode as B, getCurrentScope as Pt, onScopeDispose as Ft, nextTick as Fe, getCurrentInstance as mt, readonly as Ge, watch as ee, shallowRef as Je, shallowReactive as Dt, watchEffect as pe, withCtx as J, normalizeClass as k, createElementVNode as $, mergeModels as K, useModel as te, inject as we, useAttrs as vt, withDirectives as De, vModelText as Lt, createVNode as oe, toDisplayString as ue, Teleport as Wt, Transition as Ke, useSlots as bt, renderList as Re, vModelDynamic as jt, withModifiers as gt, withKeys as Xt, reactive as Ut, provide as Te, vModelCheckbox as Yt, isRef as qt, createTextVNode as Gt } from "vue";
2
- const ga = /* @__PURE__ */ R({
1
+ import { defineComponent as E, openBlock as v, createElementBlock as _, normalizeStyle as P, renderSlot as C, computed as m, ref as y, onMounted as ce, Fragment as ue, createBlock as U, resolveDynamicComponent as $e, mergeProps as Me, unref as c, createCommentVNode as N, getCurrentScope as jt, onScopeDispose as Xt, nextTick as Le, getCurrentInstance as yt, readonly as Ze, watch as Z, shallowRef as Qe, shallowReactive as Yt, watchEffect as pe, withCtx as K, normalizeClass as S, createElementVNode as M, mergeModels as Q, useModel as ne, inject as _e, useAttrs as wt, withDirectives as We, vModelText as qt, createVNode as le, toDisplayString as ie, Teleport as Ut, Transition as et, useSlots as _t, renderList as ze, vModelDynamic as Gt, withModifiers as xt, withKeys as Jt, reactive as Kt, provide as Re, vModelCheckbox as Zt, isRef as Qt, createTextVNode as qe } from "vue";
2
+ const xa = /* @__PURE__ */ E({
3
3
  __name: "AspectRatio",
4
4
  props: {
5
5
  ratio: { default: 1 },
@@ -9,8 +9,8 @@ const ga = /* @__PURE__ */ R({
9
9
  maxHeight: {}
10
10
  },
11
11
  setup(e) {
12
- return (t, r) => (b(), w("div", {
13
- style: V({
12
+ return (t, r) => (v(), _("div", {
13
+ style: P({
14
14
  "--ar-ratio": t.ratio,
15
15
  width: t.width,
16
16
  "max-width": t.maxWidth,
@@ -19,10 +19,10 @@ const ga = /* @__PURE__ */ R({
19
19
  }),
20
20
  class: "relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"
21
21
  }, [
22
- z(t.$slots, "default")
22
+ C(t.$slots, "default")
23
23
  ], 4));
24
24
  }
25
- }), Jt = /* @__PURE__ */ R({
25
+ }), er = /* @__PURE__ */ E({
26
26
  __name: "Avatar",
27
27
  props: {
28
28
  is: { default: "img" },
@@ -43,15 +43,15 @@ const ga = /* @__PURE__ */ R({
43
43
  default:
44
44
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `--size: ${t.size}rem;` : `--size: ${t.size};`;
45
45
  }
46
- }), n = g(!1), o = g(null);
46
+ }), n = y(!1), o = y(null);
47
47
  function a() {
48
48
  n.value = !0;
49
49
  }
50
- return le(() => {
50
+ return ce(() => {
51
51
  var s;
52
52
  (s = o.value) != null && s.complete && a();
53
- }), (s, i) => (b(), w(ie, null, [
54
- s.src ? (b(), X(Se(s.is), $e({
53
+ }), (s, i) => (v(), _(ue, null, [
54
+ s.src ? (v(), U($e(s.is), Me({
55
55
  key: 0,
56
56
  ref_key: "img",
57
57
  ref: o,
@@ -59,21 +59,21 @@ const ga = /* @__PURE__ */ R({
59
59
  placeholder: "",
60
60
  src: s.src,
61
61
  class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !c(n) }, t.class]]
62
- }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : B("", !0),
63
- c(n) ? B("", !0) : (b(), w("div", {
62
+ }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : N("", !0),
63
+ c(n) ? N("", !0) : (v(), _("div", {
64
64
  key: 1,
65
65
  class: "h-[var(--size)] w-[var(--size)] animate-pulse border-transparent rounded-full bg-surface-high object-cover",
66
- style: V([s.style, c(r)])
66
+ style: P([s.style, c(r)])
67
67
  }, null, 4))
68
68
  ], 64));
69
69
  }
70
70
  });
71
- function re(e) {
71
+ function ae(e) {
72
72
  return m(
73
- () => ({ style: Kt(e.rounded), class: "rounded-[var(--r-rounded)]" })
73
+ () => ({ style: tr(e.rounded), class: "rounded-[var(--r-rounded)]" })
74
74
  );
75
75
  }
76
- function Kt(e) {
76
+ function tr(e) {
77
77
  const t = /^-?\d*\.?\d+(px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
78
78
  switch (e) {
79
79
  case "none":
@@ -91,9 +91,9 @@ function Kt(e) {
91
91
  }
92
92
  }
93
93
  function ve(e) {
94
- return Pt() ? (Ft(e), !0) : !1;
94
+ return jt() ? (Xt(e), !0) : !1;
95
95
  }
96
- function Zt() {
96
+ function rr() {
97
97
  const e = /* @__PURE__ */ new Set(), t = (o) => {
98
98
  e.delete(o);
99
99
  };
@@ -112,11 +112,15 @@ function Zt() {
112
112
  function he(e) {
113
113
  return typeof e == "function" ? e() : c(e);
114
114
  }
115
- const se = typeof window < "u" && typeof document < "u";
115
+ const re = typeof window < "u" && typeof document < "u";
116
116
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
117
- const Qt = (e) => e != null, er = Object.prototype.toString, yt = (e) => er.call(e) === "[object Object]", tr = () => {
118
- }, rr = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
119
- function nr(e, t) {
117
+ const nr = (e) => e != null, ar = Object.prototype.toString, kt = (e) => ar.call(e) === "[object Object]", Pe = () => {
118
+ }, or = (e, t) => Object.prototype.hasOwnProperty.call(e, t), sr = /* @__PURE__ */ lr();
119
+ function lr() {
120
+ var e, t;
121
+ return re && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
122
+ }
123
+ function ir(e, t) {
120
124
  function r(...n) {
121
125
  return new Promise((o, a) => {
122
126
  Promise.resolve(e(() => t.apply(this, n), { fn: t, thisArg: this, args: n })).then(o).catch(a);
@@ -124,9 +128,9 @@ function nr(e, t) {
124
128
  }
125
129
  return r;
126
130
  }
127
- const wt = (e) => e();
128
- function ar(e = wt) {
129
- const t = g(!0);
131
+ const St = (e) => e();
132
+ function ur(e = St) {
133
+ const t = y(!0);
130
134
  function r() {
131
135
  t.value = !1;
132
136
  }
@@ -136,34 +140,34 @@ function ar(e = wt) {
136
140
  const o = (...a) => {
137
141
  t.value && e(...a);
138
142
  };
139
- return { isActive: Ge(t), pause: r, resume: n, eventFilter: o };
143
+ return { isActive: Ze(t), pause: r, resume: n, eventFilter: o };
140
144
  }
141
- function or(e, t, r = !1) {
145
+ function cr(e, t, r = !1) {
142
146
  return Object.fromEntries(Object.entries(e).filter(([n, o]) => (!r || o !== void 0) && !t.includes(n)));
143
147
  }
144
- function sr(e) {
145
- return e || mt();
148
+ function dr(e) {
149
+ return e || yt();
146
150
  }
147
- function lr(e, t, r = {}) {
151
+ function fr(e, t, r = {}) {
148
152
  const {
149
- eventFilter: n = wt,
153
+ eventFilter: n = St,
150
154
  ...o
151
155
  } = r;
152
- return ee(
156
+ return Z(
153
157
  e,
154
- nr(
158
+ ir(
155
159
  n,
156
160
  t
157
161
  ),
158
162
  o
159
163
  );
160
164
  }
161
- function ir(e, t, r = {}) {
165
+ function pr(e, t, r = {}) {
162
166
  const {
163
167
  eventFilter: n,
164
168
  ...o
165
- } = r, { eventFilter: a, pause: s, resume: i, isActive: l } = ar(n);
166
- return { stop: lr(
169
+ } = r, { eventFilter: a, pause: s, resume: i, isActive: l } = ur(n);
170
+ return { stop: fr(
167
171
  e,
168
172
  t,
169
173
  {
@@ -172,30 +176,30 @@ function ir(e, t, r = {}) {
172
176
  }
173
177
  ), pause: s, resume: i, isActive: l };
174
178
  }
175
- function Ze(e, t = !0, r) {
176
- sr() ? le(e, r) : t ? e() : Fe(e);
179
+ function tt(e, t = !0, r) {
180
+ dr() ? ce(e, r) : t ? e() : Le(e);
177
181
  }
178
- function q(e) {
182
+ function W(e) {
179
183
  var t;
180
184
  const r = he(e);
181
185
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
182
186
  }
183
- const U = se ? window : void 0, ur = se ? window.document : void 0;
184
- function P(...e) {
187
+ const q = re ? window : void 0, hr = re ? window.document : void 0;
188
+ function V(...e) {
185
189
  let t, r, n, o;
186
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, o] = e, t = U) : [t, r, n, o] = e, !t)
187
- return tr;
190
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, o] = e, t = q) : [t, r, n, o] = e, !t)
191
+ return Pe;
188
192
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
189
193
  const a = [], s = () => {
190
194
  a.forEach((d) => d()), a.length = 0;
191
- }, i = (d, f, p, h) => (d.addEventListener(f, p, h), () => d.removeEventListener(f, p, h)), l = ee(
192
- () => [q(t), he(o)],
193
- ([d, f]) => {
195
+ }, i = (d, p, f, h) => (d.addEventListener(p, f, h), () => d.removeEventListener(p, f, h)), l = Z(
196
+ () => [W(t), he(o)],
197
+ ([d, p]) => {
194
198
  if (s(), !d)
195
199
  return;
196
- const p = yt(f) ? { ...f } : f;
200
+ const f = kt(p) ? { ...p } : p;
197
201
  a.push(
198
- ...r.flatMap((h) => n.map((v) => i(d, h, v, p)))
202
+ ...r.flatMap((h) => n.map((b) => i(d, h, b, f)))
199
203
  );
200
204
  },
201
205
  { immediate: !0, flush: "post" }
@@ -204,75 +208,114 @@ function P(...e) {
204
208
  };
205
209
  return ve(u), u;
206
210
  }
207
- function cr(e) {
211
+ let it = !1;
212
+ function mr(e, t, r = {}) {
213
+ const { window: n = q, ignore: o = [], capture: a = !0, detectIframe: s = !1 } = r;
214
+ if (!n)
215
+ return Pe;
216
+ sr && !it && (it = !0, Array.from(n.document.body.children).forEach((f) => f.addEventListener("click", Pe)), n.document.documentElement.addEventListener("click", Pe));
217
+ let i = !0;
218
+ const l = (f) => o.some((h) => {
219
+ if (typeof h == "string")
220
+ return Array.from(n.document.querySelectorAll(h)).some((b) => b === f.target || f.composedPath().includes(b));
221
+ {
222
+ const b = W(h);
223
+ return b && (f.target === b || f.composedPath().includes(b));
224
+ }
225
+ }), d = [
226
+ V(n, "click", (f) => {
227
+ const h = W(e);
228
+ if (!(!h || h === f.target || f.composedPath().includes(h))) {
229
+ if (f.detail === 0 && (i = !l(f)), !i) {
230
+ i = !0;
231
+ return;
232
+ }
233
+ t(f);
234
+ }
235
+ }, { passive: !0, capture: a }),
236
+ V(n, "pointerdown", (f) => {
237
+ const h = W(e);
238
+ i = !l(f) && !!(h && !f.composedPath().includes(h));
239
+ }, { passive: !0 }),
240
+ s && V(n, "blur", (f) => {
241
+ setTimeout(() => {
242
+ var h;
243
+ const b = W(e);
244
+ ((h = n.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(b != null && b.contains(n.document.activeElement)) && t(f);
245
+ }, 0);
246
+ })
247
+ ].filter(Boolean);
248
+ return () => d.forEach((f) => f());
249
+ }
250
+ function vr(e) {
208
251
  return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
209
252
  }
210
253
  function fe(...e) {
211
254
  let t, r, n = {};
212
255
  e.length === 3 ? (t = e[0], r = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, r = e[0], n = e[1]) : (t = e[0], r = e[1]) : (t = !0, r = e[0]);
213
256
  const {
214
- target: o = U,
257
+ target: o = q,
215
258
  eventName: a = "keydown",
216
259
  passive: s = !1,
217
260
  dedupe: i = !1
218
- } = n, l = cr(t);
219
- return P(o, a, (d) => {
261
+ } = n, l = vr(t);
262
+ return V(o, a, (d) => {
220
263
  d.repeat && he(i) || l(d) && r(d);
221
264
  }, s);
222
265
  }
223
- function dr() {
224
- const e = g(!1);
225
- return mt() && le(() => {
266
+ function br() {
267
+ const e = y(!1);
268
+ return yt() && ce(() => {
226
269
  e.value = !0;
227
270
  }), e;
228
271
  }
229
- function Le(e) {
230
- const t = dr();
272
+ function je(e) {
273
+ const t = br();
231
274
  return m(() => (t.value, !!e()));
232
275
  }
233
- function fr(e, t = {}) {
276
+ function gr(e, t = {}) {
234
277
  const {
235
278
  immediate: r = !0,
236
279
  fpsLimit: n = void 0,
237
- window: o = U
238
- } = t, a = g(!1), s = n ? 1e3 / n : null;
280
+ window: o = q
281
+ } = t, a = y(!1), s = n ? 1e3 / n : null;
239
282
  let i = 0, l = null;
240
- function u(p) {
283
+ function u(f) {
241
284
  if (!a.value || !o)
242
285
  return;
243
- const h = p - (i || p);
286
+ const h = f - (i || f);
244
287
  if (s && h < s) {
245
288
  l = o.requestAnimationFrame(u);
246
289
  return;
247
290
  }
248
- e({ delta: h, timestamp: p }), i = p, l = o.requestAnimationFrame(u);
291
+ e({ delta: h, timestamp: f }), i = f, l = o.requestAnimationFrame(u);
249
292
  }
250
293
  function d() {
251
294
  !a.value && o && (a.value = !0, l = o.requestAnimationFrame(u));
252
295
  }
253
- function f() {
296
+ function p() {
254
297
  a.value = !1, l != null && o && (o.cancelAnimationFrame(l), l = null);
255
298
  }
256
- return r && d(), ve(f), {
257
- isActive: Ge(a),
258
- pause: f,
299
+ return r && d(), ve(p), {
300
+ isActive: Ze(a),
301
+ pause: p,
259
302
  resume: d
260
303
  };
261
304
  }
262
- function pr(e, t, r) {
305
+ function yr(e, t, r) {
263
306
  let n, o;
264
- yt(r) ? (n = r, o = or(r, ["window", "immediate", "commitStyles", "persist", "onReady", "onError"])) : (n = { duration: r }, o = r);
307
+ kt(r) ? (n = r, o = cr(r, ["window", "immediate", "commitStyles", "persist", "onReady", "onError"])) : (n = { duration: r }, o = r);
265
308
  const {
266
- window: a = U,
309
+ window: a = q,
267
310
  immediate: s = !0,
268
311
  commitStyles: i,
269
312
  persist: l,
270
313
  playbackRate: u = 1,
271
314
  onReady: d,
272
- onError: f = (A) => {
315
+ onError: p = (A) => {
273
316
  console.error(A);
274
317
  }
275
- } = n, p = Le(() => a && HTMLElement && "animate" in HTMLElement.prototype), h = Je(void 0), v = Dt({
318
+ } = n, f = je(() => a && HTMLElement && "animate" in HTMLElement.prototype), h = Qe(void 0), b = Yt({
276
319
  startTime: null,
277
320
  currentTime: null,
278
321
  timeline: null,
@@ -280,121 +323,121 @@ function pr(e, t, r) {
280
323
  pending: !1,
281
324
  playState: s ? "idle" : "paused",
282
325
  replaceState: "active"
283
- }), M = m(() => v.pending), S = m(() => v.playState), L = m(() => v.replaceState), H = m({
326
+ }), x = m(() => b.pending), T = m(() => b.playState), H = m(() => b.replaceState), F = m({
284
327
  get() {
285
- return v.startTime;
328
+ return b.startTime;
286
329
  },
287
330
  set(A) {
288
- v.startTime = A, h.value && (h.value.startTime = A);
331
+ b.startTime = A, h.value && (h.value.startTime = A);
289
332
  }
290
- }), I = m({
333
+ }), L = m({
291
334
  get() {
292
- return v.currentTime;
335
+ return b.currentTime;
293
336
  },
294
337
  set(A) {
295
- v.currentTime = A, h.value && (h.value.currentTime = A, Oe());
338
+ b.currentTime = A, h.value && (h.value.currentTime = A, ge());
296
339
  }
297
- }), N = m({
340
+ }), z = m({
298
341
  get() {
299
- return v.timeline;
342
+ return b.timeline;
300
343
  },
301
344
  set(A) {
302
- v.timeline = A, h.value && (h.value.timeline = A);
345
+ b.timeline = A, h.value && (h.value.timeline = A);
303
346
  }
304
- }), C = m({
347
+ }), $ = m({
305
348
  get() {
306
- return v.playbackRate;
349
+ return b.playbackRate;
307
350
  },
308
351
  set(A) {
309
- v.playbackRate = A, h.value && (h.value.playbackRate = A);
352
+ b.playbackRate = A, h.value && (h.value.playbackRate = A);
310
353
  }
311
- }), E = () => {
354
+ }), R = () => {
312
355
  if (h.value)
313
356
  try {
314
- h.value.play(), Oe();
357
+ h.value.play(), ge();
315
358
  } catch (A) {
316
- ge(), f(A);
359
+ ye(), p(A);
317
360
  }
318
361
  else
319
- D();
320
- }, F = () => {
362
+ O();
363
+ }, D = () => {
321
364
  var A;
322
365
  try {
323
- (A = h.value) == null || A.pause(), ge();
324
- } catch (Z) {
325
- f(Z);
366
+ (A = h.value) == null || A.pause(), ye();
367
+ } catch (ee) {
368
+ p(ee);
326
369
  }
327
- }, _ = () => {
370
+ }, B = () => {
328
371
  var A;
329
- !h.value && D();
372
+ !h.value && O();
330
373
  try {
331
- (A = h.value) == null || A.reverse(), Oe();
332
- } catch (Z) {
333
- ge(), f(Z);
374
+ (A = h.value) == null || A.reverse(), ge();
375
+ } catch (ee) {
376
+ ye(), p(ee);
334
377
  }
335
- }, x = () => {
378
+ }, k = () => {
336
379
  var A;
337
380
  try {
338
- (A = h.value) == null || A.finish(), ge();
339
- } catch (Z) {
340
- f(Z);
381
+ (A = h.value) == null || A.finish(), ye();
382
+ } catch (ee) {
383
+ p(ee);
341
384
  }
342
- }, T = () => {
385
+ }, g = () => {
343
386
  var A;
344
387
  try {
345
- (A = h.value) == null || A.cancel(), ge();
346
- } catch (Z) {
347
- f(Z);
388
+ (A = h.value) == null || A.cancel(), ye();
389
+ } catch (ee) {
390
+ p(ee);
348
391
  }
349
392
  };
350
- ee(() => q(e), (A) => {
351
- A && D();
352
- }), ee(() => t, (A) => {
353
- !h.value && D(), !q(e) && h.value && (h.value.effect = new KeyframeEffect(
354
- q(e),
393
+ Z(() => W(e), (A) => {
394
+ A && O();
395
+ }), Z(() => t, (A) => {
396
+ !h.value && O(), !W(e) && h.value && (h.value.effect = new KeyframeEffect(
397
+ W(e),
355
398
  he(A),
356
399
  o
357
400
  ));
358
- }, { deep: !0 }), Ze(() => {
359
- Fe(() => D(!0));
360
- }), ve(T);
361
- function D(A) {
362
- const Z = q(e);
363
- !p.value || !Z || (h.value = Z.animate(he(t), o), i && h.value.commitStyles(), l && h.value.persist(), u !== 1 && (h.value.playbackRate = u), A && !s ? h.value.pause() : Oe(), d == null || d(h.value));
401
+ }, { deep: !0 }), tt(() => {
402
+ Le(() => O(!0));
403
+ }), ve(g);
404
+ function O(A) {
405
+ const ee = W(e);
406
+ !f.value || !ee || (h.value = ee.animate(he(t), o), i && h.value.commitStyles(), l && h.value.persist(), u !== 1 && (h.value.playbackRate = u), A && !s ? h.value.pause() : ge(), d == null || d(h.value));
364
407
  }
365
- P(h, ["cancel", "finish", "remove"], ge);
366
- const { resume: de, pause: It } = fr(() => {
367
- h.value && (v.pending = h.value.pending, v.playState = h.value.playState, v.replaceState = h.value.replaceState, v.startTime = h.value.startTime, v.currentTime = h.value.currentTime, v.timeline = h.value.timeline, v.playbackRate = h.value.playbackRate);
408
+ V(h, ["cancel", "finish", "remove"], ye);
409
+ const { resume: X, pause: Ae } = gr(() => {
410
+ h.value && (b.pending = h.value.pending, b.playState = h.value.playState, b.replaceState = h.value.replaceState, b.startTime = h.value.startTime, b.currentTime = h.value.currentTime, b.timeline = h.value.timeline, b.playbackRate = h.value.playbackRate);
368
411
  }, { immediate: !1 });
369
- function Oe() {
370
- p.value && de();
371
- }
372
412
  function ge() {
373
- p.value && a && a.requestAnimationFrame(It);
413
+ f.value && X();
414
+ }
415
+ function ye() {
416
+ f.value && a && a.requestAnimationFrame(Ae);
374
417
  }
375
418
  return {
376
- isSupported: p,
419
+ isSupported: f,
377
420
  animate: h,
378
421
  // actions
379
- play: E,
380
- pause: F,
381
- reverse: _,
382
- finish: x,
383
- cancel: T,
422
+ play: R,
423
+ pause: D,
424
+ reverse: B,
425
+ finish: k,
426
+ cancel: g,
384
427
  // state
385
- pending: M,
386
- playState: S,
387
- replaceState: L,
388
- startTime: H,
389
- currentTime: I,
390
- timeline: N,
391
- playbackRate: C
428
+ pending: x,
429
+ playState: T,
430
+ replaceState: H,
431
+ startTime: F,
432
+ currentTime: L,
433
+ timeline: z,
434
+ playbackRate: $
392
435
  };
393
436
  }
394
- function ot(e, t = {}) {
395
- const { window: r = U } = t, n = Le(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
437
+ function ut(e, t = {}) {
438
+ const { window: r = q } = t, n = je(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
396
439
  let o;
397
- const a = g(!1), s = (u) => {
440
+ const a = y(!1), s = (u) => {
398
441
  a.value = u.matches;
399
442
  }, i = () => {
400
443
  o && ("removeEventListener" in o ? o.removeEventListener("change", s) : o.removeListener(s));
@@ -405,17 +448,17 @@ function ot(e, t = {}) {
405
448
  l(), i(), o = void 0;
406
449
  }), a;
407
450
  }
408
- const Ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = "__vueuse_ssr_handlers__", hr = /* @__PURE__ */ mr();
409
- function mr() {
410
- return Be in Ne || (Ne[Be] = Ne[Be] || {}), Ne[Be];
451
+ const Ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Be = "__vueuse_ssr_handlers__", wr = /* @__PURE__ */ _r();
452
+ function _r() {
453
+ return Be in Ie || (Ie[Be] = Ie[Be] || {}), Ie[Be];
411
454
  }
412
- function vr(e, t) {
413
- return hr[e] || t;
455
+ function xr(e, t) {
456
+ return wr[e] || t;
414
457
  }
415
- function br(e) {
458
+ function kr(e) {
416
459
  return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
417
460
  }
418
- const gr = {
461
+ const Sr = {
419
462
  boolean: {
420
463
  read: (e) => e === "true",
421
464
  write: (e) => String(e)
@@ -448,8 +491,8 @@ const gr = {
448
491
  read: (e) => new Date(e),
449
492
  write: (e) => e.toISOString()
450
493
  }
451
- }, st = "vueuse-storage";
452
- function yr(e, t, r, n = {}) {
494
+ }, ct = "vueuse-storage";
495
+ function $r(e, t, r, n = {}) {
453
496
  var o;
454
497
  const {
455
498
  flush: a = "pre",
@@ -458,92 +501,92 @@ function yr(e, t, r, n = {}) {
458
501
  writeDefaults: l = !0,
459
502
  mergeDefaults: u = !1,
460
503
  shallow: d,
461
- window: f = U,
462
- eventFilter: p,
463
- onError: h = (x) => {
464
- console.error(x);
504
+ window: p = q,
505
+ eventFilter: f,
506
+ onError: h = (k) => {
507
+ console.error(k);
465
508
  },
466
- initOnMounted: v
467
- } = n, M = (d ? Je : g)(typeof t == "function" ? t() : t);
509
+ initOnMounted: b
510
+ } = n, x = (d ? Qe : y)(typeof t == "function" ? t() : t);
468
511
  if (!r)
469
512
  try {
470
- r = vr("getDefaultStorage", () => {
471
- var x;
472
- return (x = U) == null ? void 0 : x.localStorage;
513
+ r = xr("getDefaultStorage", () => {
514
+ var k;
515
+ return (k = q) == null ? void 0 : k.localStorage;
473
516
  })();
474
- } catch (x) {
475
- h(x);
517
+ } catch (k) {
518
+ h(k);
476
519
  }
477
520
  if (!r)
478
- return M;
479
- const S = he(t), L = br(S), H = (o = n.serializer) != null ? o : gr[L], { pause: I, resume: N } = ir(
480
- M,
481
- () => C(M.value),
482
- { flush: a, deep: s, eventFilter: p }
521
+ return x;
522
+ const T = he(t), H = kr(T), F = (o = n.serializer) != null ? o : Sr[H], { pause: L, resume: z } = pr(
523
+ x,
524
+ () => $(x.value),
525
+ { flush: a, deep: s, eventFilter: f }
483
526
  );
484
- return f && i && Ze(() => {
485
- P(f, "storage", _), P(f, st, F), v && _();
486
- }), v || _(), M;
487
- function C(x) {
527
+ return p && i && tt(() => {
528
+ V(p, "storage", B), V(p, ct, D), b && B();
529
+ }), b || B(), x;
530
+ function $(k) {
488
531
  try {
489
- if (x == null)
532
+ if (k == null)
490
533
  r.removeItem(e);
491
534
  else {
492
- const T = H.write(x), D = r.getItem(e);
493
- D !== T && (r.setItem(e, T), f && f.dispatchEvent(new CustomEvent(st, {
535
+ const g = F.write(k), O = r.getItem(e);
536
+ O !== g && (r.setItem(e, g), p && p.dispatchEvent(new CustomEvent(ct, {
494
537
  detail: {
495
538
  key: e,
496
- oldValue: D,
497
- newValue: T,
539
+ oldValue: O,
540
+ newValue: g,
498
541
  storageArea: r
499
542
  }
500
543
  })));
501
544
  }
502
- } catch (T) {
503
- h(T);
545
+ } catch (g) {
546
+ h(g);
504
547
  }
505
548
  }
506
- function E(x) {
507
- const T = x ? x.newValue : r.getItem(e);
508
- if (T == null)
509
- return l && S != null && r.setItem(e, H.write(S)), S;
510
- if (!x && u) {
511
- const D = H.read(T);
512
- return typeof u == "function" ? u(D, S) : L === "object" && !Array.isArray(D) ? { ...S, ...D } : D;
549
+ function R(k) {
550
+ const g = k ? k.newValue : r.getItem(e);
551
+ if (g == null)
552
+ return l && T != null && r.setItem(e, F.write(T)), T;
553
+ if (!k && u) {
554
+ const O = F.read(g);
555
+ return typeof u == "function" ? u(O, T) : H === "object" && !Array.isArray(O) ? { ...T, ...O } : O;
513
556
  } else
514
- return typeof T != "string" ? T : H.read(T);
557
+ return typeof g != "string" ? g : F.read(g);
515
558
  }
516
- function F(x) {
517
- _(x.detail);
559
+ function D(k) {
560
+ B(k.detail);
518
561
  }
519
- function _(x) {
520
- if (!(x && x.storageArea !== r)) {
521
- if (x && x.key == null) {
522
- M.value = S;
562
+ function B(k) {
563
+ if (!(k && k.storageArea !== r)) {
564
+ if (k && k.key == null) {
565
+ x.value = T;
523
566
  return;
524
567
  }
525
- if (!(x && x.key !== e)) {
526
- I();
568
+ if (!(k && k.key !== e)) {
569
+ L();
527
570
  try {
528
- (x == null ? void 0 : x.newValue) !== H.write(M.value) && (M.value = E(x));
529
- } catch (T) {
530
- h(T);
571
+ (k == null ? void 0 : k.newValue) !== F.write(x.value) && (x.value = R(k));
572
+ } catch (g) {
573
+ h(g);
531
574
  } finally {
532
- x ? Fe(N) : N();
575
+ k ? Le(z) : z();
533
576
  }
534
577
  }
535
578
  }
536
579
  }
537
580
  }
538
- function wr(e, t, r = {}) {
539
- const { window: n = U, ...o } = r;
581
+ function Mr(e, t, r = {}) {
582
+ const { window: n = q, ...o } = r;
540
583
  let a;
541
- const s = Le(() => n && "MutationObserver" in n), i = () => {
584
+ const s = je(() => n && "MutationObserver" in n), i = () => {
542
585
  a && (a.disconnect(), a = void 0);
543
- }, l = ee(
544
- () => q(e),
545
- (f) => {
546
- i(), s.value && n && f && (a = new MutationObserver(t), a.observe(f, o));
586
+ }, l = Z(
587
+ () => W(e),
588
+ (p) => {
589
+ i(), s.value && n && p && (a = new MutationObserver(t), a.observe(p, o));
547
590
  },
548
591
  { immediate: !0 }
549
592
  ), u = () => a == null ? void 0 : a.takeRecords(), d = () => {
@@ -555,31 +598,31 @@ function wr(e, t, r = {}) {
555
598
  takeRecords: u
556
599
  };
557
600
  }
558
- function _r(e, t = {}) {
559
- const r = g(!1), n = Je(null);
601
+ function Ar(e, t = {}) {
602
+ const r = y(!1), n = Qe(null);
560
603
  let o = 0, a = !0;
561
- if (se) {
604
+ if (re) {
562
605
  const s = typeof t == "function" ? { onDrop: t } : t, i = (l) => {
563
606
  var u, d;
564
- const f = Array.from((d = (u = l.dataTransfer) == null ? void 0 : u.files) != null ? d : []);
565
- return n.value = f.length === 0 ? null : f;
607
+ const p = Array.from((d = (u = l.dataTransfer) == null ? void 0 : u.files) != null ? d : []);
608
+ return n.value = p.length === 0 ? null : p;
566
609
  };
567
- P(e, "dragenter", (l) => {
610
+ V(e, "dragenter", (l) => {
568
611
  var u, d;
569
- const f = Array.from(((u = l == null ? void 0 : l.dataTransfer) == null ? void 0 : u.items) || []).map((p) => p.kind === "file" ? p.type : null).filter(Qt);
612
+ const p = Array.from(((u = l == null ? void 0 : l.dataTransfer) == null ? void 0 : u.items) || []).map((f) => f.kind === "file" ? f.type : null).filter(nr);
570
613
  if (s.dataTypes && l.dataTransfer) {
571
- const p = c(s.dataTypes);
572
- if (a = typeof p == "function" ? p(f) : p ? p.some((h) => f.includes(h)) : !0, !a)
614
+ const f = c(s.dataTypes);
615
+ if (a = typeof f == "function" ? f(p) : f ? f.some((h) => p.includes(h)) : !0, !a)
573
616
  return;
574
617
  }
575
618
  l.preventDefault(), o += 1, r.value = !0, (d = s.onEnter) == null || d.call(s, i(l), l);
576
- }), P(e, "dragover", (l) => {
619
+ }), V(e, "dragover", (l) => {
577
620
  var u;
578
621
  a && (l.preventDefault(), (u = s.onOver) == null || u.call(s, i(l), l));
579
- }), P(e, "dragleave", (l) => {
622
+ }), V(e, "dragleave", (l) => {
580
623
  var u;
581
624
  a && (l.preventDefault(), o -= 1, o === 0 && (r.value = !1), (u = s.onLeave) == null || u.call(s, i(l), l));
582
- }), P(e, "drop", (l) => {
625
+ }), V(e, "drop", (l) => {
583
626
  var u;
584
627
  l.preventDefault(), o = 0, r.value = !1, (u = s.onDrop) == null || u.call(s, i(l), l);
585
628
  });
@@ -589,18 +632,18 @@ function _r(e, t = {}) {
589
632
  isOverDropZone: r
590
633
  };
591
634
  }
592
- function xr(e, t, r = {}) {
593
- const { window: n = U, ...o } = r;
635
+ function Cr(e, t, r = {}) {
636
+ const { window: n = q, ...o } = r;
594
637
  let a;
595
- const s = Le(() => n && "ResizeObserver" in n), i = () => {
638
+ const s = je(() => n && "ResizeObserver" in n), i = () => {
596
639
  a && (a.disconnect(), a = void 0);
597
- }, l = m(() => Array.isArray(e) ? e.map((f) => q(f)) : [q(e)]), u = ee(
640
+ }, l = m(() => Array.isArray(e) ? e.map((p) => W(p)) : [W(e)]), u = Z(
598
641
  l,
599
- (f) => {
642
+ (p) => {
600
643
  if (i(), s.value && n) {
601
644
  a = new ResizeObserver(t);
602
- for (const p of f)
603
- p && a.observe(p, o);
645
+ for (const f of p)
646
+ f && a.observe(f, o);
604
647
  }
605
648
  },
606
649
  { immediate: !0, flush: "post", deep: !0 }
@@ -618,55 +661,55 @@ function He(e, t = {}) {
618
661
  windowResize: n = !0,
619
662
  windowScroll: o = !0,
620
663
  immediate: a = !0
621
- } = t, s = g(0), i = g(0), l = g(0), u = g(0), d = g(0), f = g(0), p = g(0), h = g(0);
622
- function v() {
623
- const M = q(e);
624
- if (!M) {
625
- r && (s.value = 0, i.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, h.value = 0);
664
+ } = t, s = y(0), i = y(0), l = y(0), u = y(0), d = y(0), p = y(0), f = y(0), h = y(0);
665
+ function b() {
666
+ const x = W(e);
667
+ if (!x) {
668
+ r && (s.value = 0, i.value = 0, l.value = 0, u.value = 0, d.value = 0, p.value = 0, f.value = 0, h.value = 0);
626
669
  return;
627
670
  }
628
- const S = M.getBoundingClientRect();
629
- s.value = S.height, i.value = S.bottom, l.value = S.left, u.value = S.right, d.value = S.top, f.value = S.width, p.value = S.x, h.value = S.y;
671
+ const T = x.getBoundingClientRect();
672
+ s.value = T.height, i.value = T.bottom, l.value = T.left, u.value = T.right, d.value = T.top, p.value = T.width, f.value = T.x, h.value = T.y;
630
673
  }
631
- return xr(e, v), ee(() => q(e), (M) => !M && v()), wr(e, v, {
674
+ return Cr(e, b), Z(() => W(e), (x) => !x && b()), Mr(e, b, {
632
675
  attributeFilter: ["style", "class"]
633
- }), o && P("scroll", v, { capture: !0, passive: !0 }), n && P("resize", v, { passive: !0 }), Ze(() => {
634
- a && v();
676
+ }), o && V("scroll", b, { capture: !0, passive: !0 }), n && V("resize", b, { passive: !0 }), tt(() => {
677
+ a && b();
635
678
  }), {
636
679
  height: s,
637
680
  bottom: i,
638
681
  left: l,
639
682
  right: u,
640
683
  top: d,
641
- width: f,
642
- x: p,
684
+ width: p,
685
+ x: f,
643
686
  y: h,
644
- update: v
687
+ update: b
645
688
  };
646
689
  }
647
- function kr(e, t = {}) {
690
+ function $t(e, t = {}) {
648
691
  const {
649
692
  delayEnter: r = 0,
650
693
  delayLeave: n = 0,
651
- window: o = U
652
- } = t, a = g(!1);
694
+ window: o = q
695
+ } = t, a = y(!1);
653
696
  let s;
654
697
  const i = (l) => {
655
698
  const u = l ? r : n;
656
699
  s && (clearTimeout(s), s = void 0), u ? s = setTimeout(() => a.value = l, u) : a.value = l;
657
700
  };
658
- return o && (P(e, "mouseenter", () => i(!0), { passive: !0 }), P(e, "mouseleave", () => i(!1), { passive: !0 })), a;
701
+ return o && (V(e, "mouseenter", () => i(!0), { passive: !0 }), V(e, "mouseleave", () => i(!1), { passive: !0 })), a;
659
702
  }
660
- const Sr = {
703
+ const Tr = {
661
704
  multiple: !0,
662
705
  accept: "*",
663
706
  reset: !1,
664
707
  directory: !1
665
708
  };
666
- function $r(e = {}) {
709
+ function Er(e = {}) {
667
710
  const {
668
- document: t = ur
669
- } = e, r = g(null), { on: n, trigger: o } = Zt();
711
+ document: t = hr
712
+ } = e, r = y(null), { on: n, trigger: o } = rr();
670
713
  let a;
671
714
  t && (a = t.createElement("input"), a.type = "file", a.onchange = (l) => {
672
715
  const u = l.target;
@@ -678,93 +721,72 @@ function $r(e = {}) {
678
721
  if (!a)
679
722
  return;
680
723
  const u = {
681
- ...Sr,
724
+ ...Tr,
682
725
  ...e,
683
726
  ...l
684
727
  };
685
- a.multiple = u.multiple, a.accept = u.accept, a.webkitdirectory = u.directory, rr(u, "capture") && (a.capture = u.capture), u.reset && s(), a.click();
728
+ a.multiple = u.multiple, a.accept = u.accept, a.webkitdirectory = u.directory, or(u, "capture") && (a.capture = u.capture), u.reset && s(), a.click();
686
729
  };
687
730
  return {
688
- files: Ge(r),
731
+ files: Ze(r),
689
732
  open: i,
690
733
  reset: s,
691
734
  onChange: n
692
735
  };
693
736
  }
694
- function Mr(e, t = {}) {
695
- const { initialValue: r = !1, focusVisible: n = !1 } = t, o = g(!1), a = m(() => q(e));
696
- P(a, "focus", (i) => {
697
- var l, u;
698
- (!n || (u = (l = i.target).matches) != null && u.call(l, ":focus-visible")) && (o.value = !0);
699
- }), P(a, "blur", () => o.value = !1);
700
- const s = m({
701
- get: () => o.value,
702
- set(i) {
703
- var l, u;
704
- !i && o.value ? (l = a.value) == null || l.blur() : i && !o.value && ((u = a.value) == null || u.focus());
705
- }
706
- });
707
- return ee(
708
- a,
709
- () => {
710
- s.value = r;
711
- },
712
- { immediate: !0, flush: "post" }
713
- ), { focused: s };
714
- }
715
- function _t(e, t, r = {}) {
716
- const { window: n = U } = r;
717
- return yr(e, t, n == null ? void 0 : n.localStorage, r);
737
+ function Mt(e, t, r = {}) {
738
+ const { window: n = q } = r;
739
+ return $r(e, t, n == null ? void 0 : n.localStorage, r);
718
740
  }
719
- const Ar = {
741
+ const Rr = {
720
742
  page: (e) => [e.pageX, e.pageY],
721
743
  client: (e) => [e.clientX, e.clientY],
722
744
  screen: (e) => [e.screenX, e.screenY],
723
745
  movement: (e) => e instanceof Touch ? null : [e.movementX, e.movementY]
724
746
  };
725
- function Cr(e = {}) {
747
+ function At(e = {}) {
726
748
  const {
727
749
  type: t = "page",
728
750
  touch: r = !0,
729
751
  resetOnTouchEnds: n = !1,
730
752
  initialValue: o = { x: 0, y: 0 },
731
- window: a = U,
753
+ window: a = q,
732
754
  target: s = a,
733
755
  scroll: i = !0,
734
756
  eventFilter: l
735
757
  } = e;
736
758
  let u = null;
737
- const d = g(o.x), f = g(o.y), p = g(null), h = typeof t == "function" ? t : Ar[t], v = (C) => {
738
- const E = h(C);
739
- u = C, E && ([d.value, f.value] = E, p.value = "mouse");
740
- }, M = (C) => {
741
- if (C.touches.length > 0) {
742
- const E = h(C.touches[0]);
743
- E && ([d.value, f.value] = E, p.value = "touch");
759
+ const d = y(o.x), p = y(o.y), f = y(null), h = typeof t == "function" ? t : Rr[t], b = ($) => {
760
+ const R = h($);
761
+ u = $, R && ([d.value, p.value] = R, f.value = "mouse");
762
+ }, x = ($) => {
763
+ if ($.touches.length > 0) {
764
+ const R = h($.touches[0]);
765
+ R && ([d.value, p.value] = R, f.value = "touch");
744
766
  }
745
- }, S = () => {
767
+ }, T = () => {
746
768
  if (!u || !a)
747
769
  return;
748
- const C = h(u);
749
- u instanceof MouseEvent && C && (d.value = C[0] + a.scrollX, f.value = C[1] + a.scrollY);
750
- }, L = () => {
751
- d.value = o.x, f.value = o.y;
752
- }, H = l ? (C) => l(() => v(C), {}) : (C) => v(C), I = l ? (C) => l(() => M(C), {}) : (C) => M(C), N = l ? () => l(() => S(), {}) : () => S();
770
+ const $ = h(u);
771
+ u instanceof MouseEvent && $ && (d.value = $[0] + a.scrollX, p.value = $[1] + a.scrollY);
772
+ }, H = () => {
773
+ d.value = o.x, p.value = o.y;
774
+ }, F = l ? ($) => l(() => b($), {}) : ($) => b($), L = l ? ($) => l(() => x($), {}) : ($) => x($), z = l ? () => l(() => T(), {}) : () => T();
753
775
  if (s) {
754
- const C = { passive: !0 };
755
- P(s, ["mousemove", "dragover"], H, C), r && t !== "movement" && (P(s, ["touchstart", "touchmove"], I, C), n && P(s, "touchend", L, C)), i && t === "page" && P(a, "scroll", N, { passive: !0 });
776
+ const $ = { passive: !0 };
777
+ V(s, ["mousemove", "dragover"], F, $), r && t !== "movement" && (V(s, ["touchstart", "touchmove"], L, $), n && V(s, "touchend", H, $)), i && t === "page" && V(a, "scroll", z, { passive: !0 });
756
778
  }
757
779
  return {
758
780
  x: d,
759
- y: f,
760
- sourceType: p
781
+ y: p,
782
+ sourceType: f
761
783
  };
762
784
  }
763
- function Tr(e) {
764
- const t = ot("(prefers-color-scheme: light)", e), r = ot("(prefers-color-scheme: dark)", e);
785
+ function zr(e) {
786
+ const t = ut("(prefers-color-scheme: light)", e), r = ut("(prefers-color-scheme: dark)", e);
765
787
  return m(() => r.value ? "dark" : t.value ? "light" : "no-preference");
766
788
  }
767
- const xt = /* @__PURE__ */ R({
789
+ const Ct = /* @__PURE__ */ E({
768
790
  __name: "Btn",
769
791
  props: {
770
792
  type: { default: "button" },
@@ -780,7 +802,7 @@ const xt = /* @__PURE__ */ R({
780
802
  disabled: { type: Boolean, default: !1 }
781
803
  },
782
804
  setup(e) {
783
- const t = e, r = re(t), n = m(() => {
805
+ const t = e, r = ae(t), n = m(() => {
784
806
  switch (t.size) {
785
807
  case "sm":
786
808
  return {
@@ -798,7 +820,7 @@ const xt = /* @__PURE__ */ R({
798
820
  iconContent: "h-10 w-10 p-3"
799
821
  };
800
822
  }
801
- }), o = g(null), a = kr(o), s = m(() => t.hoverVariant && a.value ? t.hoverVariant : t.variant), i = m(() => {
823
+ }), o = y(null), a = $t(o), s = m(() => t.hoverVariant && a.value ? t.hoverVariant : t.variant), i = m(() => {
802
824
  switch (s.value) {
803
825
  case "filled":
804
826
  switch (t.color) {
@@ -871,7 +893,7 @@ const xt = /* @__PURE__ */ R({
871
893
  return "btn-default";
872
894
  }
873
895
  });
874
- return (l, u) => (b(), X(Se(l.is), $e({
896
+ return (l, u) => (v(), U($e(l.is), Me({
875
897
  ref_key: "btn",
876
898
  ref: o,
877
899
  "data-size": l.size,
@@ -892,26 +914,26 @@ const xt = /* @__PURE__ */ R({
892
914
  ],
893
915
  disabled: l.disabled
894
916
  }, l.$attrs), {
895
- default: J(() => [
896
- l.$slots.leftSection ? z(l.$slots, "leftSection", { key: 0 }) : B("", !0),
897
- z(l.$slots, "default"),
898
- l.$slots.rightSection ? z(l.$slots, "rightSection", { key: 1 }) : B("", !0)
917
+ default: K(() => [
918
+ l.$slots.leftSection ? C(l.$slots, "leftSection", { key: 0 }) : N("", !0),
919
+ C(l.$slots, "default"),
920
+ l.$slots.rightSection ? C(l.$slots, "rightSection", { key: 1 }) : N("", !0)
899
921
  ]),
900
922
  _: 3
901
923
  }, 16, ["data-size", "type", "style", "class", "disabled"]));
902
924
  }
903
- }), Rr = (e, t) => {
925
+ }), Or = (e, t) => {
904
926
  const r = e.__vccOpts || e;
905
927
  for (const [n, o] of t)
906
928
  r[n] = o;
907
929
  return r;
908
- }, Er = {}, zr = { class: "flex flex-col gap-4 container" };
909
- function Or(e, t) {
910
- return b(), w("div", zr, [
911
- z(e.$slots, "default")
930
+ }, Nr = {}, Ir = { class: "flex flex-col gap-4 container" };
931
+ function Br(e, t) {
932
+ return v(), _("div", Ir, [
933
+ C(e.$slots, "default")
912
934
  ]);
913
935
  }
914
- const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
936
+ const ka = /* @__PURE__ */ Or(Nr, [["render", Br]]), Sa = /* @__PURE__ */ E({
915
937
  __name: "ChatMessage",
916
938
  props: {
917
939
  avatar: {},
@@ -941,21 +963,21 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
941
963
  }
942
964
  });
943
965
  return (n, o) => {
944
- const a = Jt;
945
- return b(), w("div", {
946
- class: k(["flex gap-2", [
966
+ const a = er;
967
+ return v(), _("div", {
968
+ class: S(["flex gap-2", [
947
969
  {
948
970
  "flex-row-reverse": n.position === "right",
949
971
  "flex-row": n.position === "left"
950
972
  }
951
973
  ]])
952
974
  }, [
953
- n.$slots.avatar ? z(n.$slots, "avatar", { key: 0 }) : n.avatar ? (b(), X(a, {
975
+ n.$slots.avatar ? C(n.$slots, "avatar", { key: 0 }) : n.avatar ? (v(), U(a, {
954
976
  key: 1,
955
977
  src: n.avatar
956
- }, null, 8, ["src"])) : B("", !0),
957
- $("div", {
958
- class: k(["rounded-xl px-3 py-2 transition-background-color,border-color", [
978
+ }, null, 8, ["src"])) : N("", !0),
979
+ M("div", {
980
+ class: S(["rounded-xl px-3 py-2 transition-background-color,border-color", [
959
981
  {
960
982
  "rounded-tr": n.position === "right",
961
983
  "rounded-tl": n.position === "left",
@@ -964,12 +986,12 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
964
986
  c(r)
965
987
  ]])
966
988
  }, [
967
- z(n.$slots, "default")
989
+ C(n.$slots, "default")
968
990
  ], 2)
969
991
  ], 2);
970
992
  };
971
993
  }
972
- }), Nr = { class: "w-full flex self-center gap-2 text-center" }, _a = /* @__PURE__ */ R({
994
+ }), Pr = { class: "w-full flex self-center gap-2 text-center" }, $a = /* @__PURE__ */ E({
973
995
  __name: "ChatSystem",
974
996
  props: {
975
997
  position: {},
@@ -997,19 +1019,19 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
997
1019
  return "bg-transparent";
998
1020
  }
999
1021
  });
1000
- return (n, o) => (b(), w("div", Nr, [
1001
- $("div", {
1002
- class: k(["w-full rounded-xl px-3 py-2 transition-background-color,border-color", [
1022
+ return (n, o) => (v(), _("div", Pr, [
1023
+ M("div", {
1024
+ class: S(["w-full rounded-xl px-3 py-2 transition-background-color,border-color", [
1003
1025
  c(r)
1004
1026
  ]])
1005
1027
  }, [
1006
- z(n.$slots, "default")
1028
+ C(n.$slots, "default")
1007
1029
  ], 2)
1008
1030
  ]));
1009
1031
  }
1010
- }), xa = /* @__PURE__ */ R({
1032
+ }), Ma = /* @__PURE__ */ E({
1011
1033
  __name: "Chip",
1012
- props: /* @__PURE__ */ K({
1034
+ props: /* @__PURE__ */ Q({
1013
1035
  is: { default: "img" },
1014
1036
  src: {},
1015
1037
  size: { default: "md" },
@@ -1022,7 +1044,7 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
1022
1044
  }),
1023
1045
  emits: ["update:modelValue"],
1024
1046
  setup(e) {
1025
- const t = e, r = te(e, "modelValue"), n = re(t), o = m(() => {
1047
+ const t = e, r = ne(e, "modelValue"), n = ae(t), o = m(() => {
1026
1048
  switch (t.size) {
1027
1049
  case "sm":
1028
1050
  return "px-3 text-sm h-6";
@@ -1032,17 +1054,17 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
1032
1054
  return "px-8 h-10 text-lg";
1033
1055
  }
1034
1056
  }), a = m(() => r.value ? "container-filled-primary border-transparent text-white" : "container-base"), s = m(() => r.value !== void 0), i = m(() => s.value ? "cursor-pointer" : "");
1035
- return (l, u) => (b(), w("span", {
1036
- class: k(["inline-flex items-center gap-1", [c(n).class, c(o), c(a), c(i)]]),
1037
- style: V([c(n).style]),
1057
+ return (l, u) => (v(), _("span", {
1058
+ class: S(["inline-flex items-center gap-1", [c(n).class, c(o), c(a), c(i)]]),
1059
+ style: P([c(n).style]),
1038
1060
  onPointerup: u[0] || (u[0] = (d) => c(s) && (r.value = !r.value))
1039
1061
  }, [
1040
- l.$slots.leftSection ? z(l.$slots, "leftSection", { key: 0 }) : B("", !0),
1041
- z(l.$slots, "default"),
1042
- l.$slots.rightSection ? z(l.$slots, "rightSection", { key: 1 }) : B("", !0)
1062
+ l.$slots.leftSection ? C(l.$slots, "leftSection", { key: 0 }) : N("", !0),
1063
+ C(l.$slots, "default"),
1064
+ l.$slots.rightSection ? C(l.$slots, "rightSection", { key: 1 }) : N("", !0)
1043
1065
  ], 38));
1044
1066
  }
1045
- }), Br = /* @__PURE__ */ R({
1067
+ }), Hr = /* @__PURE__ */ E({
1046
1068
  __name: "ColorSwatch",
1047
1069
  props: {
1048
1070
  color: {},
@@ -1050,12 +1072,12 @@ const ya = /* @__PURE__ */ Rr(Er, [["render", Or]]), wa = /* @__PURE__ */ R({
1050
1072
  withBorder: { type: Boolean, default: !1 }
1051
1073
  },
1052
1074
  setup(e) {
1053
- return (t, r) => (b(), X(Se(t.is), {
1054
- class: k(["h-6 w-6 border rounded-full", [{
1075
+ return (t, r) => (v(), U($e(t.is), {
1076
+ class: S(["h-6 w-6 border rounded-full", [{
1055
1077
  "border border-surface-border-base": t.withBorder,
1056
1078
  "border border-transparent": !t.withBorder
1057
1079
  }]]),
1058
- style: V({
1080
+ style: P({
1059
1081
  backgroundColor: t.color
1060
1082
  })
1061
1083
  }, null, 8, ["class", "style"]));
@@ -1069,16 +1091,16 @@ function Ve(e) {
1069
1091
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1070
1092
  }, Ve(e);
1071
1093
  }
1072
- var Hr = /^\s+/, Vr = /\s+$/;
1073
- function y(e, t) {
1074
- if (e = e || "", t = t || {}, e instanceof y)
1094
+ var Vr = /^\s+/, Fr = /\s+$/;
1095
+ function w(e, t) {
1096
+ if (e = e || "", t = t || {}, e instanceof w)
1075
1097
  return e;
1076
- if (!(this instanceof y))
1077
- return new y(e, t);
1078
- var r = Ir(e);
1098
+ if (!(this instanceof w))
1099
+ return new w(e, t);
1100
+ var r = Dr(e);
1079
1101
  this._originalInput = e, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || r.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
1080
1102
  }
1081
- y.prototype = {
1103
+ w.prototype = {
1082
1104
  isDark: function() {
1083
1105
  return this.getBrightness() < 128;
1084
1106
  },
@@ -1106,10 +1128,10 @@ y.prototype = {
1106
1128
  return r = t.r / 255, n = t.g / 255, o = t.b / 255, r <= 0.03928 ? a = r / 12.92 : a = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? s = n / 12.92 : s = Math.pow((n + 0.055) / 1.055, 2.4), o <= 0.03928 ? i = o / 12.92 : i = Math.pow((o + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * s + 0.0722 * i;
1107
1129
  },
1108
1130
  setAlpha: function(t) {
1109
- return this._a = kt(t), this._roundA = Math.round(100 * this._a) / 100, this;
1131
+ return this._a = Tt(t), this._roundA = Math.round(100 * this._a) / 100, this;
1110
1132
  },
1111
1133
  toHsv: function() {
1112
- var t = it(this._r, this._g, this._b);
1134
+ var t = ft(this._r, this._g, this._b);
1113
1135
  return {
1114
1136
  h: t.h * 360,
1115
1137
  s: t.s,
@@ -1118,11 +1140,11 @@ y.prototype = {
1118
1140
  };
1119
1141
  },
1120
1142
  toHsvString: function() {
1121
- var t = it(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
1143
+ var t = ft(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
1122
1144
  return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + o + "%)" : "hsva(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
1123
1145
  },
1124
1146
  toHsl: function() {
1125
- var t = lt(this._r, this._g, this._b);
1147
+ var t = dt(this._r, this._g, this._b);
1126
1148
  return {
1127
1149
  h: t.h * 360,
1128
1150
  s: t.s,
@@ -1131,17 +1153,17 @@ y.prototype = {
1131
1153
  };
1132
1154
  },
1133
1155
  toHslString: function() {
1134
- var t = lt(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
1156
+ var t = dt(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
1135
1157
  return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + o + "%)" : "hsla(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
1136
1158
  },
1137
1159
  toHex: function(t) {
1138
- return ut(this._r, this._g, this._b, t);
1160
+ return pt(this._r, this._g, this._b, t);
1139
1161
  },
1140
1162
  toHexString: function(t) {
1141
1163
  return "#" + this.toHex(t);
1142
1164
  },
1143
1165
  toHex8: function(t) {
1144
- return Lr(this._r, this._g, this._b, this._a, t);
1166
+ return Xr(this._r, this._g, this._b, this._a, t);
1145
1167
  },
1146
1168
  toHex8String: function(t) {
1147
1169
  return "#" + this.toHex8(t);
@@ -1159,23 +1181,23 @@ y.prototype = {
1159
1181
  },
1160
1182
  toPercentageRgb: function() {
1161
1183
  return {
1162
- r: Math.round(O(this._r, 255) * 100) + "%",
1163
- g: Math.round(O(this._g, 255) * 100) + "%",
1164
- b: Math.round(O(this._b, 255) * 100) + "%",
1184
+ r: Math.round(I(this._r, 255) * 100) + "%",
1185
+ g: Math.round(I(this._g, 255) * 100) + "%",
1186
+ b: Math.round(I(this._b, 255) * 100) + "%",
1165
1187
  a: this._a
1166
1188
  };
1167
1189
  },
1168
1190
  toPercentageRgbString: function() {
1169
- return this._a == 1 ? "rgb(" + Math.round(O(this._r, 255) * 100) + "%, " + Math.round(O(this._g, 255) * 100) + "%, " + Math.round(O(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(O(this._r, 255) * 100) + "%, " + Math.round(O(this._g, 255) * 100) + "%, " + Math.round(O(this._b, 255) * 100) + "%, " + this._roundA + ")";
1191
+ return this._a == 1 ? "rgb(" + Math.round(I(this._r, 255) * 100) + "%, " + Math.round(I(this._g, 255) * 100) + "%, " + Math.round(I(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(I(this._r, 255) * 100) + "%, " + Math.round(I(this._g, 255) * 100) + "%, " + Math.round(I(this._b, 255) * 100) + "%, " + this._roundA + ")";
1170
1192
  },
1171
1193
  toName: function() {
1172
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : en[ut(this._r, this._g, this._b, !0)] || !1;
1194
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : nn[pt(this._r, this._g, this._b, !0)] || !1;
1173
1195
  },
1174
1196
  toFilter: function(t) {
1175
- var r = "#" + ct(this._r, this._g, this._b, this._a), n = r, o = this._gradientType ? "GradientType = 1, " : "";
1197
+ var r = "#" + ht(this._r, this._g, this._b, this._a), n = r, o = this._gradientType ? "GradientType = 1, " : "";
1176
1198
  if (t) {
1177
- var a = y(t);
1178
- n = "#" + ct(a._r, a._g, a._b, a._a);
1199
+ var a = w(t);
1200
+ n = "#" + ht(a._r, a._g, a._b, a._a);
1179
1201
  }
1180
1202
  return "progid:DXImageTransform.Microsoft.gradient(" + o + "startColorstr=" + r + ",endColorstr=" + n + ")";
1181
1203
  },
@@ -1186,75 +1208,75 @@ y.prototype = {
1186
1208
  return a ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
1187
1209
  },
1188
1210
  clone: function() {
1189
- return y(this.toString());
1211
+ return w(this.toString());
1190
1212
  },
1191
1213
  _applyModification: function(t, r) {
1192
1214
  var n = t.apply(null, [this].concat([].slice.call(r)));
1193
1215
  return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
1194
1216
  },
1195
1217
  lighten: function() {
1196
- return this._applyModification(Ur, arguments);
1218
+ return this._applyModification(Gr, arguments);
1197
1219
  },
1198
1220
  brighten: function() {
1199
- return this._applyModification(Yr, arguments);
1221
+ return this._applyModification(Jr, arguments);
1200
1222
  },
1201
1223
  darken: function() {
1202
- return this._applyModification(qr, arguments);
1224
+ return this._applyModification(Kr, arguments);
1203
1225
  },
1204
1226
  desaturate: function() {
1205
- return this._applyModification(Wr, arguments);
1227
+ return this._applyModification(Yr, arguments);
1206
1228
  },
1207
1229
  saturate: function() {
1208
- return this._applyModification(jr, arguments);
1230
+ return this._applyModification(qr, arguments);
1209
1231
  },
1210
1232
  greyscale: function() {
1211
- return this._applyModification(Xr, arguments);
1233
+ return this._applyModification(Ur, arguments);
1212
1234
  },
1213
1235
  spin: function() {
1214
- return this._applyModification(Gr, arguments);
1236
+ return this._applyModification(Zr, arguments);
1215
1237
  },
1216
1238
  _applyCombination: function(t, r) {
1217
1239
  return t.apply(null, [this].concat([].slice.call(r)));
1218
1240
  },
1219
1241
  analogous: function() {
1220
- return this._applyCombination(Zr, arguments);
1242
+ return this._applyCombination(tn, arguments);
1221
1243
  },
1222
1244
  complement: function() {
1223
- return this._applyCombination(Jr, arguments);
1245
+ return this._applyCombination(Qr, arguments);
1224
1246
  },
1225
1247
  monochromatic: function() {
1226
- return this._applyCombination(Qr, arguments);
1248
+ return this._applyCombination(rn, arguments);
1227
1249
  },
1228
1250
  splitcomplement: function() {
1229
- return this._applyCombination(Kr, arguments);
1251
+ return this._applyCombination(en, arguments);
1230
1252
  },
1231
1253
  // Disabled until https://github.com/bgrins/TinyColor/issues/254
1232
1254
  // polyad: function (number) {
1233
1255
  // return this._applyCombination(polyad, [number]);
1234
1256
  // },
1235
1257
  triad: function() {
1236
- return this._applyCombination(dt, [3]);
1258
+ return this._applyCombination(mt, [3]);
1237
1259
  },
1238
1260
  tetrad: function() {
1239
- return this._applyCombination(dt, [4]);
1261
+ return this._applyCombination(mt, [4]);
1240
1262
  }
1241
1263
  };
1242
- y.fromRatio = function(e, t) {
1264
+ w.fromRatio = function(e, t) {
1243
1265
  if (Ve(e) == "object") {
1244
1266
  var r = {};
1245
1267
  for (var n in e)
1246
- e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = Ae(e[n]));
1268
+ e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = Te(e[n]));
1247
1269
  e = r;
1248
1270
  }
1249
- return y(e, t);
1271
+ return w(e, t);
1250
1272
  };
1251
- function Ir(e) {
1273
+ function Dr(e) {
1252
1274
  var t = {
1253
1275
  r: 0,
1254
1276
  g: 0,
1255
1277
  b: 0
1256
1278
  }, r = 1, n = null, o = null, a = null, s = !1, i = !1;
1257
- return typeof e == "string" && (e = an(e)), Ve(e) == "object" && (ne(e.r) && ne(e.g) && ne(e.b) ? (t = Pr(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : ne(e.h) && ne(e.s) && ne(e.v) ? (n = Ae(e.s), o = Ae(e.v), t = Dr(e.h, n, o), s = !0, i = "hsv") : ne(e.h) && ne(e.s) && ne(e.l) && (n = Ae(e.s), a = Ae(e.l), t = Fr(e.h, n, a), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = kt(r), {
1279
+ return typeof e == "string" && (e = ln(e)), Ve(e) == "object" && (oe(e.r) && oe(e.g) && oe(e.b) ? (t = Lr(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : oe(e.h) && oe(e.s) && oe(e.v) ? (n = Te(e.s), o = Te(e.v), t = jr(e.h, n, o), s = !0, i = "hsv") : oe(e.h) && oe(e.s) && oe(e.l) && (n = Te(e.s), a = Te(e.l), t = Wr(e.h, n, a), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = Tt(r), {
1258
1280
  ok: s,
1259
1281
  format: e.format || i,
1260
1282
  r: Math.min(255, Math.max(t.r, 0)),
@@ -1263,15 +1285,15 @@ function Ir(e) {
1263
1285
  a: r
1264
1286
  };
1265
1287
  }
1266
- function Pr(e, t, r) {
1288
+ function Lr(e, t, r) {
1267
1289
  return {
1268
- r: O(e, 255) * 255,
1269
- g: O(t, 255) * 255,
1270
- b: O(r, 255) * 255
1290
+ r: I(e, 255) * 255,
1291
+ g: I(t, 255) * 255,
1292
+ b: I(r, 255) * 255
1271
1293
  };
1272
1294
  }
1273
- function lt(e, t, r) {
1274
- e = O(e, 255), t = O(t, 255), r = O(r, 255);
1295
+ function dt(e, t, r) {
1296
+ e = I(e, 255), t = I(t, 255), r = I(r, 255);
1275
1297
  var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = (n + o) / 2;
1276
1298
  if (n == o)
1277
1299
  a = s = 0;
@@ -1296,11 +1318,11 @@ function lt(e, t, r) {
1296
1318
  l: i
1297
1319
  };
1298
1320
  }
1299
- function Fr(e, t, r) {
1321
+ function Wr(e, t, r) {
1300
1322
  var n, o, a;
1301
- e = O(e, 360), t = O(t, 100), r = O(r, 100);
1302
- function s(u, d, f) {
1303
- return f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? u + (d - u) * 6 * f : f < 1 / 2 ? d : f < 2 / 3 ? u + (d - u) * (2 / 3 - f) * 6 : u;
1323
+ e = I(e, 360), t = I(t, 100), r = I(r, 100);
1324
+ function s(u, d, p) {
1325
+ return p < 0 && (p += 1), p > 1 && (p -= 1), p < 1 / 6 ? u + (d - u) * 6 * p : p < 1 / 2 ? d : p < 2 / 3 ? u + (d - u) * (2 / 3 - p) * 6 : u;
1304
1326
  }
1305
1327
  if (t === 0)
1306
1328
  n = o = a = r;
@@ -1314,8 +1336,8 @@ function Fr(e, t, r) {
1314
1336
  b: a * 255
1315
1337
  };
1316
1338
  }
1317
- function it(e, t, r) {
1318
- e = O(e, 255), t = O(t, 255), r = O(r, 255);
1339
+ function ft(e, t, r) {
1340
+ e = I(e, 255), t = I(t, 255), r = I(r, 255);
1319
1341
  var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = n, l = n - o;
1320
1342
  if (s = n === 0 ? 0 : l / n, n == o)
1321
1343
  a = 0;
@@ -1339,130 +1361,130 @@ function it(e, t, r) {
1339
1361
  v: i
1340
1362
  };
1341
1363
  }
1342
- function Dr(e, t, r) {
1343
- e = O(e, 360) * 6, t = O(t, 100), r = O(r, 100);
1344
- var n = Math.floor(e), o = e - n, a = r * (1 - t), s = r * (1 - o * t), i = r * (1 - (1 - o) * t), l = n % 6, u = [r, s, a, a, i, r][l], d = [i, r, r, s, a, a][l], f = [a, a, i, r, r, s][l];
1364
+ function jr(e, t, r) {
1365
+ e = I(e, 360) * 6, t = I(t, 100), r = I(r, 100);
1366
+ var n = Math.floor(e), o = e - n, a = r * (1 - t), s = r * (1 - o * t), i = r * (1 - (1 - o) * t), l = n % 6, u = [r, s, a, a, i, r][l], d = [i, r, r, s, a, a][l], p = [a, a, i, r, r, s][l];
1345
1367
  return {
1346
1368
  r: u * 255,
1347
1369
  g: d * 255,
1348
- b: f * 255
1370
+ b: p * 255
1349
1371
  };
1350
1372
  }
1351
- function ut(e, t, r, n) {
1352
- var o = [G(Math.round(e).toString(16)), G(Math.round(t).toString(16)), G(Math.round(r).toString(16))];
1373
+ function pt(e, t, r, n) {
1374
+ var o = [J(Math.round(e).toString(16)), J(Math.round(t).toString(16)), J(Math.round(r).toString(16))];
1353
1375
  return n && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
1354
1376
  }
1355
- function Lr(e, t, r, n, o) {
1356
- var a = [G(Math.round(e).toString(16)), G(Math.round(t).toString(16)), G(Math.round(r).toString(16)), G(St(n))];
1377
+ function Xr(e, t, r, n, o) {
1378
+ var a = [J(Math.round(e).toString(16)), J(Math.round(t).toString(16)), J(Math.round(r).toString(16)), J(Et(n))];
1357
1379
  return o && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) && a[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
1358
1380
  }
1359
- function ct(e, t, r, n) {
1360
- var o = [G(St(n)), G(Math.round(e).toString(16)), G(Math.round(t).toString(16)), G(Math.round(r).toString(16))];
1381
+ function ht(e, t, r, n) {
1382
+ var o = [J(Et(n)), J(Math.round(e).toString(16)), J(Math.round(t).toString(16)), J(Math.round(r).toString(16))];
1361
1383
  return o.join("");
1362
1384
  }
1363
- y.equals = function(e, t) {
1364
- return !e || !t ? !1 : y(e).toRgbString() == y(t).toRgbString();
1385
+ w.equals = function(e, t) {
1386
+ return !e || !t ? !1 : w(e).toRgbString() == w(t).toRgbString();
1365
1387
  };
1366
- y.random = function() {
1367
- return y.fromRatio({
1388
+ w.random = function() {
1389
+ return w.fromRatio({
1368
1390
  r: Math.random(),
1369
1391
  g: Math.random(),
1370
1392
  b: Math.random()
1371
1393
  });
1372
1394
  };
1373
- function Wr(e, t) {
1395
+ function Yr(e, t) {
1374
1396
  t = t === 0 ? 0 : t || 10;
1375
- var r = y(e).toHsl();
1376
- return r.s -= t / 100, r.s = We(r.s), y(r);
1397
+ var r = w(e).toHsl();
1398
+ return r.s -= t / 100, r.s = Xe(r.s), w(r);
1377
1399
  }
1378
- function jr(e, t) {
1400
+ function qr(e, t) {
1379
1401
  t = t === 0 ? 0 : t || 10;
1380
- var r = y(e).toHsl();
1381
- return r.s += t / 100, r.s = We(r.s), y(r);
1402
+ var r = w(e).toHsl();
1403
+ return r.s += t / 100, r.s = Xe(r.s), w(r);
1382
1404
  }
1383
- function Xr(e) {
1384
- return y(e).desaturate(100);
1405
+ function Ur(e) {
1406
+ return w(e).desaturate(100);
1385
1407
  }
1386
- function Ur(e, t) {
1408
+ function Gr(e, t) {
1387
1409
  t = t === 0 ? 0 : t || 10;
1388
- var r = y(e).toHsl();
1389
- return r.l += t / 100, r.l = We(r.l), y(r);
1410
+ var r = w(e).toHsl();
1411
+ return r.l += t / 100, r.l = Xe(r.l), w(r);
1390
1412
  }
1391
- function Yr(e, t) {
1413
+ function Jr(e, t) {
1392
1414
  t = t === 0 ? 0 : t || 10;
1393
- var r = y(e).toRgb();
1394
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), y(r);
1415
+ var r = w(e).toRgb();
1416
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), w(r);
1395
1417
  }
1396
- function qr(e, t) {
1418
+ function Kr(e, t) {
1397
1419
  t = t === 0 ? 0 : t || 10;
1398
- var r = y(e).toHsl();
1399
- return r.l -= t / 100, r.l = We(r.l), y(r);
1420
+ var r = w(e).toHsl();
1421
+ return r.l -= t / 100, r.l = Xe(r.l), w(r);
1400
1422
  }
1401
- function Gr(e, t) {
1402
- var r = y(e).toHsl(), n = (r.h + t) % 360;
1403
- return r.h = n < 0 ? 360 + n : n, y(r);
1423
+ function Zr(e, t) {
1424
+ var r = w(e).toHsl(), n = (r.h + t) % 360;
1425
+ return r.h = n < 0 ? 360 + n : n, w(r);
1404
1426
  }
1405
- function Jr(e) {
1406
- var t = y(e).toHsl();
1407
- return t.h = (t.h + 180) % 360, y(t);
1427
+ function Qr(e) {
1428
+ var t = w(e).toHsl();
1429
+ return t.h = (t.h + 180) % 360, w(t);
1408
1430
  }
1409
- function dt(e, t) {
1431
+ function mt(e, t) {
1410
1432
  if (isNaN(t) || t <= 0)
1411
1433
  throw new Error("Argument to polyad must be a positive number");
1412
- for (var r = y(e).toHsl(), n = [y(e)], o = 360 / t, a = 1; a < t; a++)
1413
- n.push(y({
1434
+ for (var r = w(e).toHsl(), n = [w(e)], o = 360 / t, a = 1; a < t; a++)
1435
+ n.push(w({
1414
1436
  h: (r.h + a * o) % 360,
1415
1437
  s: r.s,
1416
1438
  l: r.l
1417
1439
  }));
1418
1440
  return n;
1419
1441
  }
1420
- function Kr(e) {
1421
- var t = y(e).toHsl(), r = t.h;
1422
- return [y(e), y({
1442
+ function en(e) {
1443
+ var t = w(e).toHsl(), r = t.h;
1444
+ return [w(e), w({
1423
1445
  h: (r + 72) % 360,
1424
1446
  s: t.s,
1425
1447
  l: t.l
1426
- }), y({
1448
+ }), w({
1427
1449
  h: (r + 216) % 360,
1428
1450
  s: t.s,
1429
1451
  l: t.l
1430
1452
  })];
1431
1453
  }
1432
- function Zr(e, t, r) {
1454
+ function tn(e, t, r) {
1433
1455
  t = t || 6, r = r || 30;
1434
- var n = y(e).toHsl(), o = 360 / r, a = [y(e)];
1456
+ var n = w(e).toHsl(), o = 360 / r, a = [w(e)];
1435
1457
  for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
1436
- n.h = (n.h + o) % 360, a.push(y(n));
1458
+ n.h = (n.h + o) % 360, a.push(w(n));
1437
1459
  return a;
1438
1460
  }
1439
- function Qr(e, t) {
1461
+ function rn(e, t) {
1440
1462
  t = t || 6;
1441
- for (var r = y(e).toHsv(), n = r.h, o = r.s, a = r.v, s = [], i = 1 / t; t--; )
1442
- s.push(y({
1463
+ for (var r = w(e).toHsv(), n = r.h, o = r.s, a = r.v, s = [], i = 1 / t; t--; )
1464
+ s.push(w({
1443
1465
  h: n,
1444
1466
  s: o,
1445
1467
  v: a
1446
1468
  })), a = (a + i) % 1;
1447
1469
  return s;
1448
1470
  }
1449
- y.mix = function(e, t, r) {
1471
+ w.mix = function(e, t, r) {
1450
1472
  r = r === 0 ? 0 : r || 50;
1451
- var n = y(e).toRgb(), o = y(t).toRgb(), a = r / 100, s = {
1473
+ var n = w(e).toRgb(), o = w(t).toRgb(), a = r / 100, s = {
1452
1474
  r: (o.r - n.r) * a + n.r,
1453
1475
  g: (o.g - n.g) * a + n.g,
1454
1476
  b: (o.b - n.b) * a + n.b,
1455
1477
  a: (o.a - n.a) * a + n.a
1456
1478
  };
1457
- return y(s);
1479
+ return w(s);
1458
1480
  };
1459
- y.readability = function(e, t) {
1460
- var r = y(e), n = y(t);
1481
+ w.readability = function(e, t) {
1482
+ var r = w(e), n = w(t);
1461
1483
  return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
1462
1484
  };
1463
- y.isReadable = function(e, t, r) {
1464
- var n = y.readability(e, t), o, a;
1465
- switch (a = !1, o = on(r), o.level + o.size) {
1485
+ w.isReadable = function(e, t, r) {
1486
+ var n = w.readability(e, t), o, a;
1487
+ switch (a = !1, o = un(r), o.level + o.size) {
1466
1488
  case "AAsmall":
1467
1489
  case "AAAlarge":
1468
1490
  a = n >= 4.5;
@@ -1476,17 +1498,17 @@ y.isReadable = function(e, t, r) {
1476
1498
  }
1477
1499
  return a;
1478
1500
  };
1479
- y.mostReadable = function(e, t, r) {
1501
+ w.mostReadable = function(e, t, r) {
1480
1502
  var n = null, o = 0, a, s, i, l;
1481
1503
  r = r || {}, s = r.includeFallbackColors, i = r.level, l = r.size;
1482
1504
  for (var u = 0; u < t.length; u++)
1483
- a = y.readability(e, t[u]), a > o && (o = a, n = y(t[u]));
1484
- return y.isReadable(e, n, {
1505
+ a = w.readability(e, t[u]), a > o && (o = a, n = w(t[u]));
1506
+ return w.isReadable(e, n, {
1485
1507
  level: i,
1486
1508
  size: l
1487
- }) || !s ? n : (r.includeFallbackColors = !1, y.mostReadable(e, ["#fff", "#000"], r));
1509
+ }) || !s ? n : (r.includeFallbackColors = !1, w.mostReadable(e, ["#fff", "#000"], r));
1488
1510
  };
1489
- var Ue = y.names = {
1511
+ var Ge = w.names = {
1490
1512
  aliceblue: "f0f8ff",
1491
1513
  antiquewhite: "faebd7",
1492
1514
  aqua: "0ff",
@@ -1636,46 +1658,46 @@ var Ue = y.names = {
1636
1658
  whitesmoke: "f5f5f5",
1637
1659
  yellow: "ff0",
1638
1660
  yellowgreen: "9acd32"
1639
- }, en = y.hexNames = tn(Ue);
1640
- function tn(e) {
1661
+ }, nn = w.hexNames = an(Ge);
1662
+ function an(e) {
1641
1663
  var t = {};
1642
1664
  for (var r in e)
1643
1665
  e.hasOwnProperty(r) && (t[e[r]] = r);
1644
1666
  return t;
1645
1667
  }
1646
- function kt(e) {
1668
+ function Tt(e) {
1647
1669
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1648
1670
  }
1649
- function O(e, t) {
1650
- rn(e) && (e = "100%");
1651
- var r = nn(e);
1671
+ function I(e, t) {
1672
+ on(e) && (e = "100%");
1673
+ var r = sn(e);
1652
1674
  return e = Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(e * t, 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t);
1653
1675
  }
1654
- function We(e) {
1676
+ function Xe(e) {
1655
1677
  return Math.min(1, Math.max(0, e));
1656
1678
  }
1657
- function j(e) {
1679
+ function Y(e) {
1658
1680
  return parseInt(e, 16);
1659
1681
  }
1660
- function rn(e) {
1682
+ function on(e) {
1661
1683
  return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
1662
1684
  }
1663
- function nn(e) {
1685
+ function sn(e) {
1664
1686
  return typeof e == "string" && e.indexOf("%") != -1;
1665
1687
  }
1666
- function G(e) {
1688
+ function J(e) {
1667
1689
  return e.length == 1 ? "0" + e : "" + e;
1668
1690
  }
1669
- function Ae(e) {
1691
+ function Te(e) {
1670
1692
  return e <= 1 && (e = e * 100 + "%"), e;
1671
1693
  }
1672
- function St(e) {
1694
+ function Et(e) {
1673
1695
  return Math.round(parseFloat(e) * 255).toString(16);
1674
1696
  }
1675
- function ft(e) {
1676
- return j(e) / 255;
1697
+ function vt(e) {
1698
+ return Y(e) / 255;
1677
1699
  }
1678
- var Y = function() {
1700
+ var G = function() {
1679
1701
  var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", o = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1680
1702
  return {
1681
1703
  CSS_UNIT: new RegExp(r),
@@ -1691,14 +1713,14 @@ var Y = function() {
1691
1713
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1692
1714
  };
1693
1715
  }();
1694
- function ne(e) {
1695
- return !!Y.CSS_UNIT.exec(e);
1716
+ function oe(e) {
1717
+ return !!G.CSS_UNIT.exec(e);
1696
1718
  }
1697
- function an(e) {
1698
- e = e.replace(Hr, "").replace(Vr, "").toLowerCase();
1719
+ function ln(e) {
1720
+ e = e.replace(Vr, "").replace(Fr, "").toLowerCase();
1699
1721
  var t = !1;
1700
- if (Ue[e])
1701
- e = Ue[e], t = !0;
1722
+ if (Ge[e])
1723
+ e = Ge[e], t = !0;
1702
1724
  else if (e == "transparent")
1703
1725
  return {
1704
1726
  r: 0,
@@ -1708,58 +1730,58 @@ function an(e) {
1708
1730
  format: "name"
1709
1731
  };
1710
1732
  var r;
1711
- return (r = Y.rgb.exec(e)) ? {
1733
+ return (r = G.rgb.exec(e)) ? {
1712
1734
  r: r[1],
1713
1735
  g: r[2],
1714
1736
  b: r[3]
1715
- } : (r = Y.rgba.exec(e)) ? {
1737
+ } : (r = G.rgba.exec(e)) ? {
1716
1738
  r: r[1],
1717
1739
  g: r[2],
1718
1740
  b: r[3],
1719
1741
  a: r[4]
1720
- } : (r = Y.hsl.exec(e)) ? {
1742
+ } : (r = G.hsl.exec(e)) ? {
1721
1743
  h: r[1],
1722
1744
  s: r[2],
1723
1745
  l: r[3]
1724
- } : (r = Y.hsla.exec(e)) ? {
1746
+ } : (r = G.hsla.exec(e)) ? {
1725
1747
  h: r[1],
1726
1748
  s: r[2],
1727
1749
  l: r[3],
1728
1750
  a: r[4]
1729
- } : (r = Y.hsv.exec(e)) ? {
1751
+ } : (r = G.hsv.exec(e)) ? {
1730
1752
  h: r[1],
1731
1753
  s: r[2],
1732
1754
  v: r[3]
1733
- } : (r = Y.hsva.exec(e)) ? {
1755
+ } : (r = G.hsva.exec(e)) ? {
1734
1756
  h: r[1],
1735
1757
  s: r[2],
1736
1758
  v: r[3],
1737
1759
  a: r[4]
1738
- } : (r = Y.hex8.exec(e)) ? {
1739
- r: j(r[1]),
1740
- g: j(r[2]),
1741
- b: j(r[3]),
1742
- a: ft(r[4]),
1760
+ } : (r = G.hex8.exec(e)) ? {
1761
+ r: Y(r[1]),
1762
+ g: Y(r[2]),
1763
+ b: Y(r[3]),
1764
+ a: vt(r[4]),
1743
1765
  format: t ? "name" : "hex8"
1744
- } : (r = Y.hex6.exec(e)) ? {
1745
- r: j(r[1]),
1746
- g: j(r[2]),
1747
- b: j(r[3]),
1766
+ } : (r = G.hex6.exec(e)) ? {
1767
+ r: Y(r[1]),
1768
+ g: Y(r[2]),
1769
+ b: Y(r[3]),
1748
1770
  format: t ? "name" : "hex"
1749
- } : (r = Y.hex4.exec(e)) ? {
1750
- r: j(r[1] + "" + r[1]),
1751
- g: j(r[2] + "" + r[2]),
1752
- b: j(r[3] + "" + r[3]),
1753
- a: ft(r[4] + "" + r[4]),
1771
+ } : (r = G.hex4.exec(e)) ? {
1772
+ r: Y(r[1] + "" + r[1]),
1773
+ g: Y(r[2] + "" + r[2]),
1774
+ b: Y(r[3] + "" + r[3]),
1775
+ a: vt(r[4] + "" + r[4]),
1754
1776
  format: t ? "name" : "hex8"
1755
- } : (r = Y.hex3.exec(e)) ? {
1756
- r: j(r[1] + "" + r[1]),
1757
- g: j(r[2] + "" + r[2]),
1758
- b: j(r[3] + "" + r[3]),
1777
+ } : (r = G.hex3.exec(e)) ? {
1778
+ r: Y(r[1] + "" + r[1]),
1779
+ g: Y(r[2] + "" + r[2]),
1780
+ b: Y(r[3] + "" + r[3]),
1759
1781
  format: t ? "name" : "hex"
1760
1782
  } : !1;
1761
1783
  }
1762
- function on(e) {
1784
+ function un(e) {
1763
1785
  var t, r;
1764
1786
  return e = e || {
1765
1787
  level: "AA",
@@ -1769,10 +1791,10 @@ function on(e) {
1769
1791
  size: r
1770
1792
  };
1771
1793
  }
1772
- function ka() {
1773
- if (!se)
1774
- return g("dark");
1775
- const e = g(document.documentElement.dataset.scheme);
1794
+ function Aa() {
1795
+ if (!re)
1796
+ return y("dark");
1797
+ const e = y(document.documentElement.dataset.scheme);
1776
1798
  return new MutationObserver((r) => {
1777
1799
  r.forEach((n) => {
1778
1800
  n.type === "attributes" && n.attributeName === "data-scheme" && (e.value = document.documentElement.dataset.scheme);
@@ -1782,37 +1804,37 @@ function ka() {
1782
1804
  attributeFilter: ["data-scheme"]
1783
1805
  }), e;
1784
1806
  }
1785
- function Sa() {
1786
- return we("currentThemeScheme", null);
1807
+ function Ca() {
1808
+ return _e("currentThemeScheme", null);
1787
1809
  }
1788
- function $t() {
1789
- return we("currentThemeData", g(Ot));
1810
+ function Rt() {
1811
+ return _e("currentThemeData", y(Vt));
1790
1812
  }
1791
- function $a() {
1792
- return we("currentThemeName", g("default"));
1813
+ function Ta() {
1814
+ return _e("currentThemeName", y("default"));
1793
1815
  }
1794
- function sn(e, t, r = {}) {
1816
+ function cn(e, t, r = {}) {
1795
1817
  const n = [0.98, 0.96, 0.9, 0.8, 0.7, 0.6, 0.55, 0.4, 0.36, 0.3, 0.2], o = [1, 0.99, 0.98, 0.9, 0.8, 0.5, 0.2, 0.12, 0.1, 0.08, 0.06];
1796
1818
  return r.primary === void 0 && (r.primary = n), r.secondary === void 0 && (r.secondary = n), r.tertiary === void 0 && (r.tertiary = n), r.error === void 0 && (r.error = n), r.surface === void 0 && (r.surface = o), m(() => ({
1797
1819
  name: e,
1798
1820
  colors: {
1799
- primary: Me(c(t.primary), r.primary),
1800
- secondary: Me(c(t.secondary), r.secondary),
1801
- tertiary: Me(c(t.tertiary), r.tertiary),
1802
- error: Me(c(t.error), r.error),
1803
- surface: Me(c(t.surface), r.surface)
1821
+ primary: Ce(c(t.primary), r.primary),
1822
+ secondary: Ce(c(t.secondary), r.secondary),
1823
+ tertiary: Ce(c(t.tertiary), r.tertiary),
1824
+ error: Ce(c(t.error), r.error),
1825
+ surface: Ce(c(t.surface), r.surface)
1804
1826
  }
1805
1827
  }));
1806
1828
  }
1807
- function Mt(e) {
1808
- const t = g(e);
1829
+ function zt(e) {
1830
+ const t = y(e);
1809
1831
  return {
1810
1832
  ...{
1811
1833
  ...Object.keys(t.value.colors).map((a) => {
1812
1834
  const s = a;
1813
1835
  return t.value.colors[s].reduce((l, u, d) => {
1814
- const f = y(u).toRgb();
1815
- return l[`--r-color-${s}-${d}`] = `${f.r} ${f.g} ${f.b}`, l;
1836
+ const p = w(u).toRgb();
1837
+ return l[`--r-color-${s}-${d}`] = `${p.r} ${p.g} ${p.b}`, l;
1816
1838
  }, {});
1817
1839
  }).reduce((a, s) => ({
1818
1840
  ...a,
@@ -1826,25 +1848,25 @@ function Mt(e) {
1826
1848
  // ...schemeStyles.value,
1827
1849
  };
1828
1850
  }
1829
- function Qe(e) {
1830
- const t = g("");
1831
- return le(() => {
1851
+ function rt(e) {
1852
+ const t = y("");
1853
+ return ce(() => {
1832
1854
  e.id ? t.value = e.id : t.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
1833
1855
  }), t;
1834
1856
  }
1835
- const ln = Symbol("scheme");
1836
- function un() {
1837
- const e = _t("scheme", "light");
1838
- return se && new MutationObserver(() => {
1857
+ const dn = Symbol("scheme");
1858
+ function fn() {
1859
+ const e = Mt("scheme", "light");
1860
+ return re && new MutationObserver(() => {
1839
1861
  e.value !== document.documentElement.dataset.scheme && (e.value = document.documentElement.dataset.scheme);
1840
1862
  }).observe(document.documentElement, {
1841
1863
  attributes: !0,
1842
1864
  attributeFilter: ["data-scheme"]
1843
1865
  }), e;
1844
1866
  }
1845
- const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R({
1867
+ const pn = ["id", "alt"], hn = ["for"], mn = { key: 0 }, Ea = /* @__PURE__ */ E({
1846
1868
  __name: "ColorInput",
1847
- props: /* @__PURE__ */ K({
1869
+ props: /* @__PURE__ */ Q({
1848
1870
  label: {}
1849
1871
  }, {
1850
1872
  modelValue: {},
@@ -1852,11 +1874,11 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1852
1874
  }),
1853
1875
  emits: ["update:modelValue"],
1854
1876
  setup(e) {
1855
- const t = te(e, "modelValue"), r = vt(), n = Qe(r), o = g(null);
1877
+ const t = ne(e, "modelValue"), r = wt(), n = rt(r), o = y(null);
1856
1878
  return (a, s) => {
1857
- const i = Br;
1858
- return b(), w("div", null, [
1859
- De($("input", {
1879
+ const i = Hr;
1880
+ return v(), _("div", null, [
1881
+ We(M("input", {
1860
1882
  id: c(n),
1861
1883
  ref_key: "input",
1862
1884
  ref: o,
@@ -1864,41 +1886,41 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1864
1886
  alt: t.value,
1865
1887
  type: "color",
1866
1888
  class: "pointer-events-none absolute opacity-0"
1867
- }, null, 8, cn), [
1868
- [Lt, t.value]
1889
+ }, null, 8, pn), [
1890
+ [qt, t.value]
1869
1891
  ]),
1870
- $("label", {
1892
+ M("label", {
1871
1893
  class: "flex items-center gap-2",
1872
1894
  for: c(n)
1873
1895
  }, [
1874
- oe(i, {
1896
+ le(i, {
1875
1897
  class: "cursor-pointer",
1876
1898
  color: t.value ?? "#222"
1877
1899
  }, null, 8, ["color"]),
1878
- a.label ? (b(), w("span", fn, ue(a.label), 1)) : B("", !0)
1879
- ], 8, dn)
1900
+ a.label ? (v(), _("span", mn, ie(a.label), 1)) : N("", !0)
1901
+ ], 8, hn)
1880
1902
  ]);
1881
1903
  };
1882
1904
  }
1883
- }), pn = ["data-scheme", "data-theme"], hn = /* @__PURE__ */ R({
1905
+ }), vn = ["data-scheme", "data-theme"], bn = /* @__PURE__ */ E({
1884
1906
  __name: "ThemeProvider",
1885
1907
  props: {
1886
1908
  theme: {},
1887
1909
  scheme: {}
1888
1910
  },
1889
1911
  setup(e) {
1890
- const t = e, r = $t(), n = m(() => Mt(t.theme ? t.theme : r.value)), o = _t("scheme", "light"), a = m(() => t.scheme ? t.scheme : o.value);
1891
- return (s, i) => (b(), w("div", {
1892
- style: V([c(n)]),
1912
+ const t = e, r = Rt(), n = m(() => zt(t.theme ? t.theme : r.value)), o = Mt("scheme", "light"), a = m(() => t.scheme ? t.scheme : o.value);
1913
+ return (s, i) => (v(), _("div", {
1914
+ style: P([c(n)]),
1893
1915
  "data-scheme": c(a),
1894
1916
  "data-theme": c(r).name
1895
1917
  }, [
1896
- z(s.$slots, "default")
1897
- ], 12, pn));
1918
+ C(s.$slots, "default")
1919
+ ], 12, vn));
1898
1920
  }
1899
- }), At = /* @__PURE__ */ R({
1921
+ }), Ot = /* @__PURE__ */ E({
1900
1922
  __name: "FullscreenOverlay",
1901
- props: /* @__PURE__ */ K({
1923
+ props: /* @__PURE__ */ Q({
1902
1924
  persistent: { type: Boolean, default: !1 },
1903
1925
  blur: { type: [String, Boolean], default: !1 },
1904
1926
  wrapperClass: {}
@@ -1908,7 +1930,7 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1908
1930
  }),
1909
1931
  emits: ["update:modelValue"],
1910
1932
  setup(e) {
1911
- const t = e, r = te(e, "modelValue"), n = g(null);
1933
+ const t = e, r = ne(e, "modelValue"), n = y(null);
1912
1934
  function o(l) {
1913
1935
  t.persistent || l.target === n.value && (r.value = !1);
1914
1936
  }
@@ -1924,7 +1946,7 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1924
1946
  default:
1925
1947
  return "";
1926
1948
  }
1927
- }), s = g(0);
1949
+ }), s = y(0);
1928
1950
  pe(() => {
1929
1951
  r.value ? (document.body.style.overflow = "hidden", document.body.style.marginRight = `${s.value}px`) : setTimeout(() => {
1930
1952
  document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
@@ -1933,22 +1955,22 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1933
1955
  const u = window.innerWidth - document.body.clientWidth;
1934
1956
  u !== 0 && (s.value = u);
1935
1957
  }).observe(document.body);
1936
- const i = $t();
1958
+ const i = Rt();
1937
1959
  return (l, u) => {
1938
- const d = hn;
1939
- return b(), X(Wt, { to: "body" }, [
1940
- oe(d, { theme: c(i) }, {
1941
- default: J(() => [
1942
- $("div", {
1960
+ const d = bn;
1961
+ return v(), U(Ut, { to: "body" }, [
1962
+ le(d, { theme: c(i) }, {
1963
+ default: K(() => [
1964
+ M("div", {
1943
1965
  ref_key: "wrapperRef",
1944
1966
  ref: n,
1945
- class: k(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/50 transition-all duration-300 md:items-center", [a.value, l.wrapperClass, {
1967
+ class: S(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-10/50 transition-all duration-300 md:items-center", [a.value, l.wrapperClass, {
1946
1968
  "op0 pointer-events-none": !r.value,
1947
1969
  op100: r.value
1948
1970
  }]]),
1949
1971
  onClick: o
1950
1972
  }, [
1951
- z(l.$slots, "default")
1973
+ C(l.$slots, "default")
1952
1974
  ], 2)
1953
1975
  ]),
1954
1976
  _: 3
@@ -1956,9 +1978,9 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1956
1978
  ]);
1957
1979
  };
1958
1980
  }
1959
- }), mn = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, vn = /* @__PURE__ */ $("i", { class: "i-tabler-x" }, null, -1), bn = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, Aa = /* @__PURE__ */ R({
1981
+ }), gn = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, yn = /* @__PURE__ */ M("i", { class: "i-tabler-x" }, null, -1), wn = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, Ra = /* @__PURE__ */ E({
1960
1982
  __name: "Drawer",
1961
- props: /* @__PURE__ */ K({
1983
+ props: /* @__PURE__ */ Q({
1962
1984
  persistent: { type: Boolean, default: !1 },
1963
1985
  blur: { type: [String, Boolean], default: !1 },
1964
1986
  position: { default: "left" }
@@ -1968,17 +1990,17 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1968
1990
  }),
1969
1991
  emits: ["update:modelValue"],
1970
1992
  setup(e) {
1971
- const t = e, r = te(e, "modelValue");
1993
+ const t = e, r = ne(e, "modelValue");
1972
1994
  return (n, o) => {
1973
- const a = xt, s = At;
1974
- return b(), X(s, {
1995
+ const a = Ct, s = Ot;
1996
+ return v(), U(s, {
1975
1997
  modelValue: r.value,
1976
1998
  "onUpdate:modelValue": o[1] || (o[1] = (i) => r.value = i),
1977
1999
  blur: t.blur,
1978
2000
  persistent: t.persistent
1979
2001
  }, {
1980
- default: J(() => [
1981
- oe(Ke, {
2002
+ default: K(() => [
2003
+ le(et, {
1982
2004
  "enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
1983
2005
  "enter-to-class": (n.position === "left", "translate-x-0"),
1984
2006
  "leave-from-class": (n.position === "left", "translate-x-0"),
@@ -1986,28 +2008,28 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
1986
2008
  "enter-active-class": "transition ease-out duration-300",
1987
2009
  "leave-active-class": "transition ease-in duration-200"
1988
2010
  }, {
1989
- default: J(() => [
1990
- r.value ? (b(), w("div", {
2011
+ default: K(() => [
2012
+ r.value ? (v(), _("div", {
1991
2013
  key: 0,
1992
- class: k(["fixed h-full w-full bg-surface-low md:w-md", n.position === "left" ? "left-0" : "right-0"])
2014
+ class: S(["fixed h-full w-full bg-surface-low md:w-md", n.position === "left" ? "left-0" : "right-0"])
1993
2015
  }, [
1994
- $("div", mn, [
1995
- oe(a, {
2016
+ M("div", gn, [
2017
+ le(a, {
1996
2018
  icon: "",
1997
2019
  variant: "transparent",
1998
2020
  class: "text-surface-on hover:text-surface-on",
1999
2021
  onPointerup: o[0] || (o[0] = (i) => r.value = !1)
2000
2022
  }, {
2001
- default: J(() => [
2002
- vn
2023
+ default: K(() => [
2024
+ yn
2003
2025
  ]),
2004
2026
  _: 1
2005
2027
  })
2006
2028
  ]),
2007
- $("div", bn, [
2008
- z(n.$slots, "default")
2029
+ M("div", wn, [
2030
+ C(n.$slots, "default")
2009
2031
  ])
2010
- ], 2)) : B("", !0)
2032
+ ], 2)) : N("", !0)
2011
2033
  ]),
2012
2034
  _: 3
2013
2035
  }, 8, ["enter-from-class", "enter-to-class", "leave-from-class", "leave-to-class"])
@@ -2016,7 +2038,7 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2016
2038
  }, 8, ["modelValue", "blur", "persistent"]);
2017
2039
  };
2018
2040
  }
2019
- }), Ca = /* @__PURE__ */ R({
2041
+ }), za = /* @__PURE__ */ E({
2020
2042
  __name: "Dropzone",
2021
2043
  props: {
2022
2044
  dashed: { type: Boolean, default: !0 },
@@ -2024,31 +2046,31 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2024
2046
  },
2025
2047
  emits: ["drop"],
2026
2048
  setup(e, { emit: t }) {
2027
- const r = e, n = t, o = g(), { onChange: a, open: s } = $r({
2049
+ const r = e, n = t, o = y(), { onChange: a, open: s } = Er({
2028
2050
  accept: r.accept
2029
2051
  });
2030
2052
  a((l) => {
2031
2053
  l ? n("drop", Array.from(l)) : n("drop", null);
2032
2054
  });
2033
- const { isOverDropZone: i } = _r(o, {
2055
+ const { isOverDropZone: i } = Ar(o, {
2034
2056
  onDrop: (l) => {
2035
2057
  n("drop", l);
2036
2058
  }
2037
2059
  });
2038
- return (l, u) => (b(), w("div", {
2060
+ return (l, u) => (v(), _("div", {
2039
2061
  ref_key: "dropZoneRef",
2040
2062
  ref: o,
2041
- class: k([{
2063
+ class: S([{
2042
2064
  "": c(i),
2043
2065
  " bg-surface-low": !c(i),
2044
2066
  "border-dashed": l.dashed
2045
2067
  }, "h-full w-full flex cursor-pointer items-center justify-center rounded transition-background-color,border-color"]),
2046
2068
  onPointerup: u[0] || (u[0] = () => c(s)())
2047
2069
  }, [
2048
- z(l.$slots, "default")
2070
+ C(l.$slots, "default")
2049
2071
  ], 34));
2050
2072
  }
2051
- }), Ta = /* @__PURE__ */ R({
2073
+ }), Oa = /* @__PURE__ */ E({
2052
2074
  __name: "Image",
2053
2075
  props: {
2054
2076
  is: { default: "img" },
@@ -2062,24 +2084,24 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2062
2084
  rounded: { default: "md" }
2063
2085
  },
2064
2086
  setup(e) {
2065
- const t = e, r = g(!1), n = g(null);
2087
+ const t = e, r = y(!1), n = y(null);
2066
2088
  function o() {
2067
2089
  r.value = !0;
2068
2090
  }
2069
- le(() => {
2091
+ ce(() => {
2070
2092
  var s;
2071
2093
  (s = n.value) != null && s.complete && o();
2072
2094
  });
2073
- const a = re(t);
2074
- return (s, i) => (b(), w("div", {
2075
- style: V({
2095
+ const a = ae(t);
2096
+ return (s, i) => (v(), _("div", {
2097
+ style: P({
2076
2098
  height: s.height,
2077
2099
  width: s.width,
2078
2100
  maxHeight: s.maxHeight,
2079
2101
  maxWidth: s.maxWidth
2080
2102
  })
2081
2103
  }, [
2082
- s.src ? (b(), X(Se(s.is), $e({
2104
+ s.src ? (v(), U($e(s.is), Me({
2083
2105
  key: 0,
2084
2106
  ref_key: "img",
2085
2107
  ref: n,
@@ -2095,21 +2117,21 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2095
2117
  hidden: !c(r)
2096
2118
  }
2097
2119
  ]]
2098
- }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : B("", !0),
2099
- c(r) ? B("", !0) : (b(), w("div", {
2120
+ }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : N("", !0),
2121
+ c(r) ? N("", !0) : (v(), _("div", {
2100
2122
  key: 1,
2101
- class: k(["h-full w-full animate-pulse border-transparent bg-surface-high object-cover", [
2123
+ class: S(["h-full w-full animate-pulse border-transparent bg-surface-high object-cover", [
2102
2124
  t.class,
2103
2125
  c(a).class
2104
2126
  ]]),
2105
- style: V([
2127
+ style: P([
2106
2128
  s.style,
2107
2129
  c(a).style
2108
2130
  ])
2109
2131
  }, null, 6))
2110
2132
  ], 4));
2111
2133
  }
2112
- }), gn = { class: "relative" }, Ra = /* @__PURE__ */ R({
2134
+ }), _n = { class: "relative" }, Na = /* @__PURE__ */ E({
2113
2135
  __name: "Indicator",
2114
2136
  props: {
2115
2137
  color: { default: "primary" },
@@ -2129,7 +2151,7 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2129
2151
  default:
2130
2152
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
2131
2153
  }
2132
- }), n = bt(), o = m(() => {
2154
+ }), n = _t(), o = m(() => {
2133
2155
  if (!n.label)
2134
2156
  return "";
2135
2157
  switch (t.size) {
@@ -2163,38 +2185,38 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2163
2185
  return "bg-error-container text-white";
2164
2186
  }
2165
2187
  });
2166
- return (i, l) => (b(), w("div", gn, [
2167
- $("div", {
2168
- class: k([[c(a), c(o)], "absolute z-1"])
2188
+ return (i, l) => (v(), _("div", _n, [
2189
+ M("div", {
2190
+ class: S([[c(a), c(o)], "absolute z-1"])
2169
2191
  }, [
2170
- t.ping ? (b(), w("div", {
2192
+ t.ping ? (v(), _("div", {
2171
2193
  key: 0,
2172
- class: k(["absolute box-content animate-ping border-2 border-transparent rounded-full", [
2194
+ class: S(["absolute box-content animate-ping border-2 border-transparent rounded-full", [
2173
2195
  {
2174
2196
  [c(r)]: !i.$slots.label
2175
2197
  },
2176
2198
  c(s)
2177
2199
  ]])
2178
2200
  }, [
2179
- i.$slots.label ? z(i.$slots, "label", { key: 0 }) : B("", !0)
2180
- ], 2)) : B("", !0),
2181
- $("div", {
2182
- class: k(["top-0 box-content border-2 border-surface-low rounded-full", [
2201
+ i.$slots.label ? C(i.$slots, "label", { key: 0 }) : N("", !0)
2202
+ ], 2)) : N("", !0),
2203
+ M("div", {
2204
+ class: S(["top-0 box-content border-2 border-surface-low rounded-full", [
2183
2205
  {
2184
2206
  [c(r)]: !i.$slots.label
2185
2207
  },
2186
2208
  c(s)
2187
2209
  ]])
2188
2210
  }, [
2189
- i.$slots.label ? z(i.$slots, "label", { key: 0 }) : B("", !0)
2211
+ i.$slots.label ? C(i.$slots, "label", { key: 0 }) : N("", !0)
2190
2212
  ], 2)
2191
2213
  ], 2),
2192
- z(i.$slots, "default")
2214
+ C(i.$slots, "default")
2193
2215
  ]));
2194
2216
  }
2195
- }), Ea = /* @__PURE__ */ R({
2217
+ }), Ia = /* @__PURE__ */ E({
2196
2218
  __name: "Modal",
2197
- props: /* @__PURE__ */ K({
2219
+ props: /* @__PURE__ */ Q({
2198
2220
  persistent: { type: Boolean, default: !1 },
2199
2221
  blur: { type: [String, Boolean], default: !1 }
2200
2222
  }, {
@@ -2203,18 +2225,18 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2203
2225
  }),
2204
2226
  emits: ["update:modelValue"],
2205
2227
  setup(e) {
2206
- const t = e, r = te(e, "modelValue");
2228
+ const t = e, r = ne(e, "modelValue");
2207
2229
  return (n, o) => {
2208
- const a = At;
2209
- return b(), X(a, {
2230
+ const a = Ot;
2231
+ return v(), U(a, {
2210
2232
  modelValue: r.value,
2211
2233
  "onUpdate:modelValue": o[0] || (o[0] = (s) => r.value = s),
2212
2234
  blur: t.blur,
2213
2235
  persistent: t.persistent,
2214
2236
  "wrapper-class": "flex items-end justify-center"
2215
2237
  }, {
2216
- default: J(() => [
2217
- oe(Ke, {
2238
+ default: K(() => [
2239
+ le(et, {
2218
2240
  "enter-from-class": "translate-y-1/2",
2219
2241
  "enter-to-class": "translate-y-0",
2220
2242
  "leave-from-class": "translate-y-0",
@@ -2222,8 +2244,8 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2222
2244
  "enter-active-class": "transition ease-out duration-300",
2223
2245
  "leave-active-class": "transition ease-in duration-200"
2224
2246
  }, {
2225
- default: J(() => [
2226
- r.value ? z(n.$slots, "default", { key: 0 }) : B("", !0)
2247
+ default: K(() => [
2248
+ r.value ? C(n.$slots, "default", { key: 0 }) : N("", !0)
2227
2249
  ]),
2228
2250
  _: 3
2229
2251
  })
@@ -2232,13 +2254,13 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2232
2254
  }, 8, ["modelValue", "blur", "persistent"]);
2233
2255
  };
2234
2256
  }
2235
- }), yn = {
2257
+ }), xn = {
2236
2258
  key: 0,
2237
2259
  class: "h-container w-container i-tabler-loader-2 shrink-0 animate-spin"
2238
- }, wn = { key: 1 }, _n = { class: "grow-1" }, xn = {
2260
+ }, kn = { key: 1 }, Sn = { class: "grow-1" }, $n = {
2239
2261
  key: 2,
2240
2262
  class: "text-sm text-surface-on-low"
2241
- }, kn = /* @__PURE__ */ $("i", { class: "i-tabler-x" }, null, -1), Sn = /* @__PURE__ */ R({
2263
+ }, Mn = /* @__PURE__ */ M("i", { class: "i-tabler-x" }, null, -1), An = /* @__PURE__ */ E({
2242
2264
  __name: "Notification",
2243
2265
  props: {
2244
2266
  title: {},
@@ -2253,7 +2275,7 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2253
2275
  },
2254
2276
  emits: ["close"],
2255
2277
  setup(e) {
2256
- const t = e, r = re(t), n = m(() => {
2278
+ const t = e, r = ae(t), n = m(() => {
2257
2279
  switch (t.color) {
2258
2280
  case "secondary":
2259
2281
  return "bg-secondary-container";
@@ -2277,9 +2299,9 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2277
2299
  }
2278
2300
  });
2279
2301
  return (a, s) => {
2280
- const i = xt;
2281
- return b(), w("div", {
2282
- class: k(["relative min-h-16 min-w-80 w-full flex items-center gap-2 container-low p-3", [
2302
+ const i = Ct;
2303
+ return v(), _("div", {
2304
+ class: S(["relative min-h-16 min-w-80 w-full flex items-center gap-2 container-low p-3", [
2283
2305
  { "border-0": !a.withBorder },
2284
2306
  c(r).class,
2285
2307
  {
@@ -2287,62 +2309,62 @@ const cn = ["id", "alt"], dn = ["for"], fn = { key: 0 }, Ma = /* @__PURE__ */ R(
2287
2309
  "w-full": a.block
2288
2310
  }
2289
2311
  ]]),
2290
- style: V(c(r).style)
2312
+ style: P(c(r).style)
2291
2313
  }, [
2292
- a.icon ? (b(), w("div", {
2314
+ a.icon ? (v(), _("div", {
2293
2315
  key: 0,
2294
- class: k(["leading-0", c(o)])
2316
+ class: S(["leading-0", c(o)])
2295
2317
  }, [
2296
- a.loading ? (b(), w("i", yn)) : (b(), w("i", {
2318
+ a.loading ? (v(), _("i", xn)) : (v(), _("i", {
2297
2319
  key: 1,
2298
- class: k(["h-container w-container shrink-0", a.icon])
2320
+ class: S(["h-container w-container shrink-0", a.icon])
2299
2321
  }, null, 2))
2300
- ], 2)) : (b(), w("div", wn, [
2301
- $("div", {
2302
- class: k(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
2322
+ ], 2)) : (v(), _("div", kn, [
2323
+ M("div", {
2324
+ class: S(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
2303
2325
  "animate-pulse": a.loading
2304
2326
  }, c(n)]])
2305
2327
  }, null, 2)
2306
2328
  ])),
2307
- $("div", _n, [
2308
- a.title ? (b(), w("div", {
2329
+ M("div", Sn, [
2330
+ a.title ? (v(), _("div", {
2309
2331
  key: 0,
2310
- class: k([c(o), "text-base"])
2311
- }, ue(a.title), 3)) : B("", !0),
2312
- a.$slots.message ? z(a.$slots, "message", { key: 1 }) : a.message ? (b(), w("div", xn, ue(a.message), 1)) : B("", !0)
2332
+ class: S([c(o), "text-base"])
2333
+ }, ie(a.title), 3)) : N("", !0),
2334
+ a.$slots.message ? C(a.$slots, "message", { key: 1 }) : a.message ? (v(), _("div", $n, ie(a.message), 1)) : N("", !0)
2313
2335
  ]),
2314
- a.closeable ? (b(), X(i, {
2336
+ a.closeable ? (v(), U(i, {
2315
2337
  key: 2,
2316
2338
  icon: "",
2317
2339
  variant: "transparent",
2318
2340
  class: "text-surface-on hover:text-surface-on",
2319
2341
  onClick: s[0] || (s[0] = (l) => a.$emit("close"))
2320
2342
  }, {
2321
- default: J(() => [
2322
- kn
2343
+ default: K(() => [
2344
+ Mn
2323
2345
  ]),
2324
2346
  _: 1
2325
- })) : B("", !0)
2347
+ })) : N("", !0)
2326
2348
  ], 6);
2327
2349
  };
2328
2350
  }
2329
- }), Ct = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakSet();
2330
- let ce, et = 0, tt = 0;
2331
- const ae = "__aa_tgt", Ee = "__aa_del", Pe = "__aa_new", Mn = (e) => {
2332
- const t = En(e);
2333
- t && t.forEach((r) => zn(r));
2334
- }, An = (e) => {
2351
+ }), Nt = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakSet();
2352
+ let de, nt = 0, at = 0;
2353
+ const se = "__aa_tgt", Oe = "__aa_del", De = "__aa_new", Tn = (e) => {
2354
+ const t = Nn(e);
2355
+ t && t.forEach((r) => In(r));
2356
+ }, En = (e) => {
2335
2357
  e.forEach((t) => {
2336
- t.target === ce && Tn(), W.has(t.target) && be(t.target);
2358
+ t.target === de && zn(), j.has(t.target) && be(t.target);
2337
2359
  });
2338
2360
  };
2339
- function Cn(e) {
2340
- const t = Ye.get(e);
2361
+ function Rn(e) {
2362
+ const t = Je.get(e);
2341
2363
  t == null || t.disconnect();
2342
- let r = W.get(e), n = 0;
2364
+ let r = j.get(e), n = 0;
2343
2365
  const o = 5;
2344
- r || (r = ke(e), W.set(e, r));
2345
- const { offsetWidth: a, offsetHeight: s } = ce, l = [
2366
+ r || (r = Se(e), j.set(e, r));
2367
+ const { offsetWidth: a, offsetHeight: s } = de, l = [
2346
2368
  r.top - o,
2347
2369
  a - (r.left + o + r.width),
2348
2370
  s - (r.top + o + r.height),
@@ -2350,41 +2372,41 @@ function Cn(e) {
2350
2372
  ].map((d) => `${-1 * Math.floor(d)}px`).join(" "), u = new IntersectionObserver(() => {
2351
2373
  ++n > 1 && be(e);
2352
2374
  }, {
2353
- root: ce,
2375
+ root: de,
2354
2376
  threshold: 1,
2355
2377
  rootMargin: l
2356
2378
  });
2357
- u.observe(e), Ye.set(e, u);
2379
+ u.observe(e), Je.set(e, u);
2358
2380
  }
2359
2381
  function be(e) {
2360
- clearTimeout(Ie.get(e));
2361
- const t = je(e), r = ze(t) ? 500 : t.duration;
2362
- Ie.set(e, setTimeout(async () => {
2382
+ clearTimeout(Fe.get(e));
2383
+ const t = Ye(e), r = Ne(t) ? 500 : t.duration;
2384
+ Fe.set(e, setTimeout(async () => {
2363
2385
  const n = me.get(e);
2364
2386
  try {
2365
- await (n == null ? void 0 : n.finished), W.set(e, ke(e)), Cn(e);
2387
+ await (n == null ? void 0 : n.finished), j.set(e, Se(e)), Rn(e);
2366
2388
  } catch {
2367
2389
  }
2368
2390
  }, r));
2369
2391
  }
2370
- function Tn() {
2371
- clearTimeout(Ie.get(ce)), Ie.set(ce, setTimeout(() => {
2372
- Ct.forEach((e) => zt(e, (t) => Tt(() => be(t))));
2392
+ function zn() {
2393
+ clearTimeout(Fe.get(de)), Fe.set(de, setTimeout(() => {
2394
+ Nt.forEach((e) => Ht(e, (t) => It(() => be(t))));
2373
2395
  }, 100));
2374
2396
  }
2375
- function Rn(e) {
2397
+ function On(e) {
2376
2398
  setTimeout(() => {
2377
- $n.set(e, setInterval(() => Tt(be.bind(null, e)), 2e3));
2399
+ Cn.set(e, setInterval(() => It(be.bind(null, e)), 2e3));
2378
2400
  }, Math.round(2e3 * Math.random()));
2379
2401
  }
2380
- function Tt(e) {
2402
+ function It(e) {
2381
2403
  typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
2382
2404
  }
2383
- let qe, ye;
2384
- typeof window < "u" && (ce = document.documentElement, qe = new MutationObserver(Mn), ye = new ResizeObserver(An), window.addEventListener("scroll", () => {
2385
- tt = window.scrollY, et = window.scrollX;
2386
- }), ye.observe(ce));
2387
- function En(e) {
2405
+ let Ke, we;
2406
+ typeof window < "u" && (de = document.documentElement, Ke = new MutationObserver(Tn), we = new ResizeObserver(En), window.addEventListener("scroll", () => {
2407
+ at = window.scrollY, nt = window.scrollX;
2408
+ }), we.observe(de));
2409
+ function Nn(e) {
2388
2410
  return e.reduce((n, o) => [
2389
2411
  ...n,
2390
2412
  ...Array.from(o.addedNodes),
@@ -2393,23 +2415,23 @@ function En(e) {
2393
2415
  if (n === !1)
2394
2416
  return !1;
2395
2417
  if (o.target instanceof Element) {
2396
- if (Xe(o.target), !n.has(o.target)) {
2418
+ if (Ue(o.target), !n.has(o.target)) {
2397
2419
  n.add(o.target);
2398
2420
  for (let a = 0; a < o.target.children.length; a++) {
2399
2421
  const s = o.target.children.item(a);
2400
2422
  if (s) {
2401
- if (Ee in s)
2423
+ if (Oe in s)
2402
2424
  return !1;
2403
- Xe(o.target, s), n.add(s);
2425
+ Ue(o.target, s), n.add(s);
2404
2426
  }
2405
2427
  }
2406
2428
  }
2407
2429
  if (o.removedNodes.length)
2408
2430
  for (let a = 0; a < o.removedNodes.length; a++) {
2409
2431
  const s = o.removedNodes[a];
2410
- if (Ee in s)
2432
+ if (Oe in s)
2411
2433
  return !1;
2412
- s instanceof Element && (n.add(s), Xe(o.target, s), _e.set(s, [
2434
+ s instanceof Element && (n.add(s), Ue(o.target, s), xe.set(s, [
2413
2435
  o.previousSibling,
2414
2436
  o.nextSibling
2415
2437
  ]));
@@ -2418,18 +2440,18 @@ function En(e) {
2418
2440
  return n;
2419
2441
  }, /* @__PURE__ */ new Set());
2420
2442
  }
2421
- function Xe(e, t) {
2422
- !t && !(ae in e) ? Object.defineProperty(e, ae, { value: e }) : t && !(ae in t) && Object.defineProperty(t, ae, { value: e });
2443
+ function Ue(e, t) {
2444
+ !t && !(se in e) ? Object.defineProperty(e, se, { value: e }) : t && !(se in t) && Object.defineProperty(t, se, { value: e });
2423
2445
  }
2424
- function zn(e) {
2446
+ function In(e) {
2425
2447
  var t;
2426
- const r = e.isConnected, n = W.has(e);
2427
- r && _e.has(e) && _e.delete(e), me.has(e) && ((t = me.get(e)) === null || t === void 0 || t.cancel()), Pe in e ? pt(e) : n && r ? Nn(e) : n && !r ? Bn(e) : pt(e);
2448
+ const r = e.isConnected, n = j.has(e);
2449
+ r && xe.has(e) && xe.delete(e), me.has(e) && ((t = me.get(e)) === null || t === void 0 || t.cancel()), De in e ? bt(e) : n && r ? Pn(e) : n && !r ? Hn(e) : bt(e);
2428
2450
  }
2429
- function Q(e) {
2451
+ function te(e) {
2430
2452
  return Number(e.replace(/[^0-9.\-]/g, ""));
2431
2453
  }
2432
- function On(e) {
2454
+ function Bn(e) {
2433
2455
  let t = e.parentElement;
2434
2456
  for (; t; ) {
2435
2457
  if (t.scrollLeft || t.scrollTop)
@@ -2438,8 +2460,8 @@ function On(e) {
2438
2460
  }
2439
2461
  return { x: 0, y: 0 };
2440
2462
  }
2441
- function ke(e) {
2442
- const t = e.getBoundingClientRect(), { x: r, y: n } = On(e);
2463
+ function Se(e) {
2464
+ const t = e.getBoundingClientRect(), { x: r, y: n } = Bn(e);
2443
2465
  return {
2444
2466
  top: t.top + n,
2445
2467
  left: t.left + r,
@@ -2447,69 +2469,69 @@ function ke(e) {
2447
2469
  height: t.height
2448
2470
  };
2449
2471
  }
2450
- function Rt(e, t, r) {
2472
+ function Bt(e, t, r) {
2451
2473
  let n = t.width, o = t.height, a = r.width, s = r.height;
2452
2474
  const i = getComputedStyle(e);
2453
2475
  if (i.getPropertyValue("box-sizing") === "content-box") {
2454
- const u = Q(i.paddingTop) + Q(i.paddingBottom) + Q(i.borderTopWidth) + Q(i.borderBottomWidth), d = Q(i.paddingLeft) + Q(i.paddingRight) + Q(i.borderRightWidth) + Q(i.borderLeftWidth);
2476
+ const u = te(i.paddingTop) + te(i.paddingBottom) + te(i.borderTopWidth) + te(i.borderBottomWidth), d = te(i.paddingLeft) + te(i.paddingRight) + te(i.borderRightWidth) + te(i.borderLeftWidth);
2455
2477
  n -= d, a -= d, o -= u, s -= u;
2456
2478
  }
2457
2479
  return [n, a, o, s].map(Math.round);
2458
2480
  }
2459
- function je(e) {
2460
- return ae in e && xe.has(e[ae]) ? xe.get(e[ae]) : { duration: 250, easing: "ease-in-out" };
2481
+ function Ye(e) {
2482
+ return se in e && ke.has(e[se]) ? ke.get(e[se]) : { duration: 250, easing: "ease-in-out" };
2461
2483
  }
2462
- function Et(e) {
2463
- if (ae in e)
2464
- return e[ae];
2484
+ function Pt(e) {
2485
+ if (se in e)
2486
+ return e[se];
2465
2487
  }
2466
- function rt(e) {
2467
- const t = Et(e);
2468
- return t ? Ce.has(t) : !1;
2488
+ function ot(e) {
2489
+ const t = Pt(e);
2490
+ return t ? Ee.has(t) : !1;
2469
2491
  }
2470
- function zt(e, ...t) {
2471
- t.forEach((r) => r(e, xe.has(e)));
2492
+ function Ht(e, ...t) {
2493
+ t.forEach((r) => r(e, ke.has(e)));
2472
2494
  for (let r = 0; r < e.children.length; r++) {
2473
2495
  const n = e.children.item(r);
2474
- n && t.forEach((o) => o(n, xe.has(n)));
2496
+ n && t.forEach((o) => o(n, ke.has(n)));
2475
2497
  }
2476
2498
  }
2477
- function nt(e) {
2499
+ function st(e) {
2478
2500
  return Array.isArray(e) ? e : [e];
2479
2501
  }
2480
- function ze(e) {
2502
+ function Ne(e) {
2481
2503
  return typeof e == "function";
2482
2504
  }
2483
- function Nn(e) {
2484
- const t = W.get(e), r = ke(e);
2485
- if (!rt(e))
2486
- return W.set(e, r);
2505
+ function Pn(e) {
2506
+ const t = j.get(e), r = Se(e);
2507
+ if (!ot(e))
2508
+ return j.set(e, r);
2487
2509
  let n;
2488
2510
  if (!t)
2489
2511
  return;
2490
- const o = je(e);
2512
+ const o = Ye(e);
2491
2513
  if (typeof o != "function") {
2492
- const a = t.left - r.left, s = t.top - r.top, [i, l, u, d] = Rt(e, t, r), f = {
2514
+ const a = t.left - r.left, s = t.top - r.top, [i, l, u, d] = Bt(e, t, r), p = {
2493
2515
  transform: `translate(${a}px, ${s}px)`
2494
- }, p = {
2516
+ }, f = {
2495
2517
  transform: "translate(0, 0)"
2496
2518
  };
2497
- i !== l && (f.width = `${i}px`, p.width = `${l}px`), u !== d && (f.height = `${u}px`, p.height = `${d}px`), n = e.animate([f, p], {
2519
+ i !== l && (p.width = `${i}px`, f.width = `${l}px`), u !== d && (p.height = `${u}px`, f.height = `${d}px`), n = e.animate([p, f], {
2498
2520
  duration: o.duration,
2499
2521
  easing: o.easing
2500
2522
  });
2501
2523
  } else {
2502
- const [a] = nt(o(e, "remain", t, r));
2524
+ const [a] = st(o(e, "remain", t, r));
2503
2525
  n = new Animation(a), n.play();
2504
2526
  }
2505
- me.set(e, n), W.set(e, r), n.addEventListener("finish", be.bind(null, e));
2506
- }
2507
- function pt(e) {
2508
- Pe in e && delete e[Pe];
2509
- const t = ke(e);
2510
- W.set(e, t);
2511
- const r = je(e);
2512
- if (!rt(e))
2527
+ me.set(e, n), j.set(e, r), n.addEventListener("finish", be.bind(null, e));
2528
+ }
2529
+ function bt(e) {
2530
+ De in e && delete e[De];
2531
+ const t = Se(e);
2532
+ j.set(e, t);
2533
+ const r = Ye(e);
2534
+ if (!ot(e))
2513
2535
  return;
2514
2536
  let n;
2515
2537
  if (typeof r != "function")
@@ -2522,31 +2544,31 @@ function pt(e) {
2522
2544
  easing: "ease-in"
2523
2545
  });
2524
2546
  else {
2525
- const [o] = nt(r(e, "add", t));
2547
+ const [o] = st(r(e, "add", t));
2526
2548
  n = new Animation(o), n.play();
2527
2549
  }
2528
2550
  me.set(e, n), n.addEventListener("finish", be.bind(null, e));
2529
2551
  }
2530
- function ht(e, t) {
2552
+ function gt(e, t) {
2531
2553
  var r;
2532
- e.remove(), W.delete(e), _e.delete(e), me.delete(e), (r = Ye.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2533
- if (Ee in e && delete e[Ee], Object.defineProperty(e, Pe, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2554
+ e.remove(), j.delete(e), xe.delete(e), me.delete(e), (r = Je.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2555
+ if (Oe in e && delete e[Oe], Object.defineProperty(e, De, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2534
2556
  for (const n in t)
2535
2557
  e.style[n] = "";
2536
2558
  }, 0);
2537
2559
  }
2538
- function Bn(e) {
2560
+ function Hn(e) {
2539
2561
  var t;
2540
- if (!_e.has(e) || !W.has(e))
2562
+ if (!xe.has(e) || !j.has(e))
2541
2563
  return;
2542
- const [r, n] = _e.get(e);
2543
- Object.defineProperty(e, Ee, { value: !0, configurable: !0 });
2564
+ const [r, n] = xe.get(e);
2565
+ Object.defineProperty(e, Oe, { value: !0, configurable: !0 });
2544
2566
  const o = window.scrollX, a = window.scrollY;
2545
- if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = Et(e)) === null || t === void 0 || t.appendChild(e), !rt(e))
2546
- return ht(e);
2547
- const [s, i, l, u] = Vn(e), d = je(e), f = W.get(e);
2548
- (o !== et || a !== tt) && Hn(e, o, a, d);
2549
- let p, h = {
2567
+ if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = Pt(e)) === null || t === void 0 || t.appendChild(e), !ot(e))
2568
+ return gt(e);
2569
+ const [s, i, l, u] = Fn(e), d = Ye(e), p = j.get(e);
2570
+ (o !== nt || a !== at) && Vn(e, o, a, d);
2571
+ let f, h = {
2550
2572
  position: "absolute",
2551
2573
  top: `${s}px`,
2552
2574
  left: `${i}px`,
@@ -2557,8 +2579,8 @@ function Bn(e) {
2557
2579
  transformOrigin: "center",
2558
2580
  zIndex: "100"
2559
2581
  };
2560
- if (!ze(d))
2561
- Object.assign(e.style, h), p = e.animate([
2582
+ if (!Ne(d))
2583
+ Object.assign(e.style, h), f = e.animate([
2562
2584
  {
2563
2585
  transform: "scale(1)",
2564
2586
  opacity: 1
@@ -2569,66 +2591,66 @@ function Bn(e) {
2569
2591
  }
2570
2592
  ], { duration: d.duration, easing: "ease-out" });
2571
2593
  else {
2572
- const [v, M] = nt(d(e, "remove", f));
2573
- (M == null ? void 0 : M.styleReset) !== !1 && (h = (M == null ? void 0 : M.styleReset) || h, Object.assign(e.style, h)), p = new Animation(v), p.play();
2594
+ const [b, x] = st(d(e, "remove", p));
2595
+ (x == null ? void 0 : x.styleReset) !== !1 && (h = (x == null ? void 0 : x.styleReset) || h, Object.assign(e.style, h)), f = new Animation(b), f.play();
2574
2596
  }
2575
- me.set(e, p), p.addEventListener("finish", ht.bind(null, e, h));
2597
+ me.set(e, f), f.addEventListener("finish", gt.bind(null, e, h));
2576
2598
  }
2577
- function Hn(e, t, r, n) {
2578
- const o = et - t, a = tt - r, s = document.documentElement.style.scrollBehavior;
2579
- if (getComputedStyle(ce).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement)
2599
+ function Vn(e, t, r, n) {
2600
+ const o = nt - t, a = at - r, s = document.documentElement.style.scrollBehavior;
2601
+ if (getComputedStyle(de).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement)
2580
2602
  return;
2581
2603
  const l = e.parentElement;
2582
2604
  let u = l.clientHeight, d = l.clientWidth;
2583
- const f = performance.now();
2584
- function p() {
2605
+ const p = performance.now();
2606
+ function f() {
2585
2607
  requestAnimationFrame(() => {
2586
- if (!ze(n)) {
2587
- const h = u - l.clientHeight, v = d - l.clientWidth;
2588
- f + n.duration > performance.now() ? (window.scrollTo({
2589
- left: window.scrollX - v,
2608
+ if (!Ne(n)) {
2609
+ const h = u - l.clientHeight, b = d - l.clientWidth;
2610
+ p + n.duration > performance.now() ? (window.scrollTo({
2611
+ left: window.scrollX - b,
2590
2612
  top: window.scrollY - h
2591
- }), u = l.clientHeight, d = l.clientWidth, p()) : document.documentElement.style.scrollBehavior = s;
2613
+ }), u = l.clientHeight, d = l.clientWidth, f()) : document.documentElement.style.scrollBehavior = s;
2592
2614
  }
2593
2615
  });
2594
2616
  }
2595
- p();
2617
+ f();
2596
2618
  }
2597
- function Vn(e) {
2598
- const t = W.get(e), [r, , n] = Rt(e, t, ke(e));
2619
+ function Fn(e) {
2620
+ const t = j.get(e), [r, , n] = Bt(e, t, Se(e));
2599
2621
  let o = e.parentElement;
2600
2622
  for (; o && (getComputedStyle(o).position === "static" || o instanceof HTMLBodyElement); )
2601
2623
  o = o.parentElement;
2602
2624
  o || (o = document.body);
2603
- const a = getComputedStyle(o), s = W.get(o) || ke(o), i = Math.round(t.top - s.top) - Q(a.borderTopWidth), l = Math.round(t.left - s.left) - Q(a.borderLeftWidth);
2625
+ const a = getComputedStyle(o), s = j.get(o) || Se(o), i = Math.round(t.top - s.top) - te(a.borderTopWidth), l = Math.round(t.left - s.left) - te(a.borderLeftWidth);
2604
2626
  return [i, l, r, n];
2605
2627
  }
2606
- function In(e, t = {}) {
2607
- return qe && ye && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !ze(t) && !t.disrespectUserMotionPreference || (Ce.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), zt(e, be, Rn, (o) => ye == null ? void 0 : ye.observe(o)), ze(t) ? xe.set(e, t) : xe.set(e, { duration: 250, easing: "ease-in-out", ...t }), qe.observe(e, { childList: !0 }), Ct.add(e))), Object.freeze({
2628
+ function Dn(e, t = {}) {
2629
+ return Ke && we && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !Ne(t) && !t.disrespectUserMotionPreference || (Ee.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), Ht(e, be, On, (o) => we == null ? void 0 : we.observe(o)), Ne(t) ? ke.set(e, t) : ke.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ke.observe(e, { childList: !0 }), Nt.add(e))), Object.freeze({
2608
2630
  parent: e,
2609
2631
  enable: () => {
2610
- Ce.add(e);
2632
+ Ee.add(e);
2611
2633
  },
2612
2634
  disable: () => {
2613
- Ce.delete(e);
2635
+ Ee.delete(e);
2614
2636
  },
2615
- isEnabled: () => Ce.has(e)
2637
+ isEnabled: () => Ee.has(e)
2616
2638
  });
2617
2639
  }
2618
- const Pn = {
2640
+ const Ln = {
2619
2641
  mounted: (e, t) => {
2620
- In(e, t.value || {});
2642
+ Dn(e, t.value || {});
2621
2643
  },
2622
2644
  // ignore ssr see #96:
2623
2645
  getSSRProps: () => ({})
2624
- }, Fn = { class: "fixed z-20 flex flex-col gap-2 p-2" }, za = /* @__PURE__ */ R({
2646
+ }, Wn = { class: "fixed z-20 flex flex-col gap-2 p-2" }, Ba = /* @__PURE__ */ E({
2625
2647
  __name: "NotificationSystem",
2626
2648
  setup(e) {
2627
- const t = Zn();
2649
+ const t = ta();
2628
2650
  return (r, n) => {
2629
- const o = Sn;
2630
- return De((b(), w("div", Fn, [
2631
- (b(!0), w(ie, null, Re(c(t), (a) => (b(), X(o, {
2651
+ const o = An;
2652
+ return We((v(), _("div", Wn, [
2653
+ (v(!0), _(ue, null, ze(c(t), (a) => (v(), U(o, {
2632
2654
  key: a.hash,
2633
2655
  "with-border": "",
2634
2656
  closeable: "",
@@ -2640,11 +2662,11 @@ const Pn = {
2640
2662
  onClose: (s) => c(t).splice(c(t).indexOf(a), 1)
2641
2663
  }, null, 8, ["title", "message", "icon", "loading", "color", "onClose"]))), 128))
2642
2664
  ])), [
2643
- [c(Pn)]
2665
+ [c(Ln)]
2644
2666
  ]);
2645
2667
  };
2646
2668
  }
2647
- }), Dn = { class: "relative" }, Oa = /* @__PURE__ */ R({
2669
+ }), jn = { class: "relative" }, Pa = /* @__PURE__ */ E({
2648
2670
  __name: "Overlay",
2649
2671
  props: {
2650
2672
  blur: { type: [Boolean, String], default: !1 },
@@ -2665,22 +2687,22 @@ const Pn = {
2665
2687
  default:
2666
2688
  return "";
2667
2689
  }
2668
- }), n = re(t), o = g(null), a = y(t.color).toRgb(), s = m(() => ({
2690
+ }), n = ae(t), o = y(null), a = w(t.color).toRgb(), s = m(() => ({
2669
2691
  backgroundColor: `rgba(${a.r}, ${a.g}, ${a.b}, ${t.opacity / 100})`
2670
2692
  }));
2671
- return (i, l) => (b(), w("div", Dn, [
2672
- z(i.$slots, "default"),
2673
- $("div", $e(i.$attrs, {
2693
+ return (i, l) => (v(), _("div", jn, [
2694
+ C(i.$slots, "default"),
2695
+ M("div", Me(i.$attrs, {
2674
2696
  ref_key: "wrapperRef",
2675
2697
  ref: o,
2676
2698
  class: [[c(r), c(n).class], "absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],
2677
2699
  style: [c(n).style, c(s)]
2678
2700
  }), [
2679
- z(i.$slots, "content")
2701
+ C(i.$slots, "content")
2680
2702
  ], 16)
2681
2703
  ]));
2682
2704
  }
2683
- }), Na = /* @__PURE__ */ R({
2705
+ }), Ha = /* @__PURE__ */ E({
2684
2706
  __name: "Paper",
2685
2707
  props: {
2686
2708
  size: { default: "md" },
@@ -2693,51 +2715,51 @@ const Pn = {
2693
2715
  },
2694
2716
  setup(e) {
2695
2717
  const t = e;
2696
- function r(v) {
2697
- return ["primary", "secondary", "tertiary", "error"].includes(v) ? `rgb(var(--r-color-${v}-container))` : v;
2718
+ function r(x) {
2719
+ return ["primary", "secondary", "tertiary", "error"].includes(x) ? `rgb(var(--r-color-${x}-container))` : x;
2698
2720
  }
2699
- const n = re(t), o = m(() => t.loading ? {
2721
+ const n = ae(t), { x: o, y: a } = At(), s = y(null), { width: i, height: l, top: u, left: d } = He(s), p = m(() => Math.min(i.value, l.value)), f = m(() => t.loading ? {
2700
2722
  background: "linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box",
2701
2723
  "background-color": "var(--bg)",
2702
2724
  "--bg": "rgba(var(--r-color-surface-low) / 1)",
2703
- "--gradient": `radial-gradient(circle at center, ${r(t.color)} 25%, var(--bg) 25%)`,
2725
+ "--gradient": `radial-gradient(circle at center, ${r(t.color)} ${p.value * 0.5}px, var(--bg) ${p.value * 0.5}px)`,
2704
2726
  "background-size": "200% 200%"
2705
- } : {}), { x: a, y: s } = Cr(), i = g(null), { width: l, height: u, top: d, left: f } = He(i), p = m(() => {
2727
+ } : {}), h = m(() => {
2706
2728
  if (t.traceAnimate) {
2707
- const v = m(() => ({
2708
- x: f.value + l.value / 2,
2709
- y: d.value + u.value / 2
2710
- })), M = m(() => {
2711
- if (a.value < f.value || a.value > f.value + l.value || s.value < d.value || s.value > d.value + u.value)
2729
+ const x = m(() => ({
2730
+ x: d.value + i.value / 2,
2731
+ y: u.value + l.value / 2
2732
+ })), T = m(() => {
2733
+ if (o.value < d.value || o.value > d.value + i.value || a.value < u.value || a.value > u.value + l.value)
2712
2734
  return {
2713
- x: a.value,
2714
- y: s.value
2735
+ x: o.value,
2736
+ y: a.value
2715
2737
  };
2716
- const S = v.value.x, L = v.value.y;
2717
- let H, I;
2718
- const N = (s.value - L) / (a.value - S);
2719
- return a.value < S ? (H = f.value, I = L + N * (f.value - S)) : (H = f.value + l.value, I = L + N * (H - S)), I < d.value ? (I = d.value, H = S + (I - L) / N) : I > d.value + u.value && (I = d.value + u.value, H = S + (I - L) / N), {
2720
- x: H,
2721
- y: I
2738
+ const H = x.value.x, F = x.value.y;
2739
+ let L, z;
2740
+ const $ = (a.value - F) / (o.value - H);
2741
+ return o.value < H ? (L = d.value, z = F + $ * (d.value - H)) : (L = d.value + i.value, z = F + $ * (L - H)), z < u.value ? (z = u.value, L = H + (z - F) / $) : z > u.value + l.value && (z = u.value + l.value, L = H + (z - F) / $), {
2742
+ x: L,
2743
+ y: z
2722
2744
  };
2723
2745
  });
2724
2746
  return {
2725
2747
  "--bg": "rgba(var(--r-color-surface-low) / 1)",
2726
- "--gradient": `radial-gradient(circle at ${M.value.x - f.value}px ${M.value.y - d.value}px, ${r(t.color)} 50px, var(--bg) 50px)`,
2748
+ "--gradient": `radial-gradient(circle at ${T.value.x - d.value}px ${T.value.y - u.value}px, ${r(t.color)} ${p.value * 0.5}px, var(--bg) ${p.value * 0.5}px)`,
2727
2749
  background: "linear-gradient(var(--bg), var(--bg)) padding-box, var(--gradient) border-box",
2728
2750
  "background-size": "200% 200%",
2729
2751
  "background-color": "var(--bg)"
2730
2752
  };
2731
2753
  } else
2732
2754
  return {};
2733
- }), h = m(() => !l.value || !u.value ? [] : t.loading ? [
2755
+ }), b = m(() => !i.value || !l.value ? [] : t.loading ? [
2734
2756
  {
2735
2757
  backgroundPosition: "0% 0%",
2736
2758
  offset: 0
2737
2759
  },
2738
2760
  {
2739
2761
  backgroundPosition: "0% 100%",
2740
- offset: 0.5 * (u.value / l.value)
2762
+ offset: 0.25
2741
2763
  },
2742
2764
  {
2743
2765
  backgroundPosition: "100% 100%",
@@ -2745,32 +2767,32 @@ const Pn = {
2745
2767
  },
2746
2768
  {
2747
2769
  backgroundPosition: "100% 0%",
2748
- offset: 1 - 0.5 * (u.value / l.value)
2770
+ offset: 0.75
2749
2771
  }
2750
2772
  ] : []);
2751
- return pr(i, h, {
2773
+ return yr(s, b, {
2752
2774
  duration: 1e3,
2753
2775
  iterations: Number.POSITIVE_INFINITY
2754
- }), (v, M) => (b(), X(Se(v.is), {
2776
+ }), (x, T) => (v(), U($e(x.is), {
2755
2777
  ref_key: "paperRef",
2756
- ref: i,
2757
- class: k(["relative container-low rounded-lg p-4", [
2778
+ ref: s,
2779
+ class: S(["relative container-low rounded-lg p-4", [
2758
2780
  {
2759
- "border-transparent": !v.withBorder
2781
+ "border-transparent": !x.withBorder
2760
2782
  },
2761
2783
  c(n).class
2762
2784
  ]]),
2763
- style: V([c(n).style, c(o), c(p)])
2785
+ style: P([c(n).style, c(f), c(h)])
2764
2786
  }, {
2765
- default: J(() => [
2766
- z(v.$slots, "default")
2787
+ default: K(() => [
2788
+ C(x.$slots, "default")
2767
2789
  ]),
2768
2790
  _: 3
2769
2791
  }, 8, ["class", "style"]));
2770
2792
  }
2771
- }), Ln = ["for"], Wn = { key: 1 }, jn = ["id", "placeholder", "type"], Xn = /* @__PURE__ */ R({
2793
+ }), Xn = ["for"], Yn = { key: 1 }, qn = ["id", "placeholder", "type"], Un = /* @__PURE__ */ E({
2772
2794
  __name: "TextField",
2773
- props: /* @__PURE__ */ K({
2795
+ props: /* @__PURE__ */ Q({
2774
2796
  onChange: {},
2775
2797
  color: { default: "primary" },
2776
2798
  error: { type: Boolean },
@@ -2786,7 +2808,7 @@ const Pn = {
2786
2808
  }),
2787
2809
  emits: ["update:modelValue"],
2788
2810
  setup(e, { expose: t }) {
2789
- const r = e, n = te(e, "modelValue"), o = m(() => {
2811
+ const r = e, n = ne(e, "modelValue"), o = m(() => {
2790
2812
  switch (r.size) {
2791
2813
  case "sm":
2792
2814
  return {
@@ -2824,33 +2846,33 @@ const Pn = {
2824
2846
  default:
2825
2847
  return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
2826
2848
  }
2827
- }), i = m(() => r.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = re(r), u = g(null);
2849
+ }), i = m(() => r.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = ae(r), u = y(null);
2828
2850
  t({
2829
2851
  el: u
2830
2852
  });
2831
- const d = vt(), f = Qe(d);
2832
- return (p, h) => (b(), w("div", null, [
2833
- p.$slots.label || p.label ? (b(), w("label", {
2853
+ const d = wt(), p = rt(d);
2854
+ return (f, h) => (v(), _("div", null, [
2855
+ f.$slots.label || f.label ? (v(), _("label", {
2834
2856
  key: 0,
2835
- for: c(f),
2836
- class: k(["mb-1 block text-surface-on", [c(a)]])
2857
+ for: c(p),
2858
+ class: S(["mb-1 block text-surface-on", [c(a)]])
2837
2859
  }, [
2838
- p.$slots.label ? z(p.$slots, "label", { key: 0 }) : (b(), w("span", Wn, ue(p.label), 1))
2839
- ], 10, Ln)) : B("", !0),
2840
- De($("input", $e({ id: c(f) }, p.$attrs, {
2860
+ f.$slots.label ? C(f.$slots, "label", { key: 0 }) : (v(), _("span", Yn, ie(f.label), 1))
2861
+ ], 10, Xn)) : N("", !0),
2862
+ We(M("input", Me({ id: c(p) }, f.$attrs, {
2841
2863
  ref_key: "input",
2842
2864
  ref: u,
2843
- "onUpdate:modelValue": h[0] || (h[0] = (v) => n.value = v),
2865
+ "onUpdate:modelValue": h[0] || (h[0] = (b) => n.value = b),
2844
2866
  class: ["w-full border px-2 py-1 outline-none transition-background-color,border-color,color", [c(s), c(i), c(l).class, c(o).base]],
2845
2867
  style: [c(l).style],
2846
- placeholder: p.placeholder,
2868
+ placeholder: f.placeholder,
2847
2869
  type: r.password ? "password" : "text"
2848
- }), null, 16, jn), [
2849
- [jt, n.value]
2870
+ }), null, 16, qn), [
2871
+ [Gt, n.value]
2850
2872
  ])
2851
2873
  ]));
2852
2874
  }
2853
- }), Un = { class: "flex gap-2" }, Ba = /* @__PURE__ */ R({
2875
+ }), Gn = { class: "flex gap-2" }, Va = /* @__PURE__ */ E({
2854
2876
  __name: "PinInput",
2855
2877
  props: {
2856
2878
  modelValue: {},
@@ -2859,7 +2881,7 @@ const Pn = {
2859
2881
  password: { type: Boolean }
2860
2882
  },
2861
2883
  setup(e) {
2862
- const t = e, r = g([]);
2884
+ const t = e, r = y([]);
2863
2885
  function n(a) {
2864
2886
  a.preventDefault(), a.stopPropagation();
2865
2887
  const s = r.value.findIndex((l) => l.el === a.target), i = a.target.value ?? "";
@@ -2874,8 +2896,8 @@ const Pn = {
2874
2896
  const i = r.value.findIndex((l) => l.el === a.target);
2875
2897
  i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
2876
2898
  }
2877
- return (a, s) => (b(), w("div", Un, [
2878
- (b(!0), w(ie, null, Re(t.length, (i) => (b(), X(Xn, {
2899
+ return (a, s) => (v(), _("div", Gn, [
2900
+ (v(!0), _(ue, null, ze(t.length, (i) => (v(), U(Un, {
2879
2901
  ref_for: !0,
2880
2902
  ref_key: "inputs",
2881
2903
  ref: r,
@@ -2884,12 +2906,12 @@ const Pn = {
2884
2906
  style: { padding: "0" },
2885
2907
  password: t.password,
2886
2908
  onPointerup: s[0] || (s[0] = (l) => l.target.select()),
2887
- onInput: gt(n, ["stop", "prevent"]),
2888
- onKeydown: Xt(o, ["backspace"])
2909
+ onInput: xt(n, ["stop", "prevent"]),
2910
+ onKeydown: Jt(o, ["backspace"])
2889
2911
  }, null, 8, ["password"]))), 128))
2890
2912
  ]));
2891
2913
  }
2892
- }), Ha = /* @__PURE__ */ R({
2914
+ }), Fa = /* @__PURE__ */ E({
2893
2915
  __name: "Progress",
2894
2916
  props: {
2895
2917
  value: { default: 0 },
@@ -2921,94 +2943,94 @@ const Pn = {
2921
2943
  case "error":
2922
2944
  return "bg-error-containerl";
2923
2945
  }
2924
- }), o = re(t);
2925
- return (a, s) => (b(), w("div", {
2926
- class: k(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [c(r), c(o).class]]),
2927
- style: V([c(o).style])
2946
+ }), o = ae(t);
2947
+ return (a, s) => (v(), _("div", {
2948
+ class: S(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [c(r), c(o).class]]),
2949
+ style: P([c(o).style])
2928
2950
  }, [
2929
- a.loading ? (b(), w("div", {
2951
+ a.loading ? (v(), _("div", {
2930
2952
  key: 1,
2931
- class: k(["loading-progress h-full", [c(n)]])
2932
- }, null, 2)) : (b(), w("div", {
2953
+ class: S(["loading-progress h-full", [c(n)]])
2954
+ }, null, 2)) : (v(), _("div", {
2933
2955
  key: 0,
2934
- class: k(["h-full", [c(n)]]),
2935
- style: V([{
2956
+ class: S(["h-full", [c(n)]]),
2957
+ style: P([{
2936
2958
  width: `${(Number(a.value) - Number(a.min)) / (Number(a.max) - Number(a.min)) * 100}%`
2937
2959
  }])
2938
2960
  }, null, 6))
2939
2961
  ], 6));
2940
2962
  }
2941
- }), Va = {
2963
+ }), Da = {
2942
2964
  primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
2943
2965
  secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
2944
2966
  tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
2945
2967
  error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
2946
2968
  surface: ["#fefefe", "#fafafa", "#f2f2f2", "#e8e8e8", "#c6c6c6", "#737373", "#525252", "#343434", "#262626", "#171717", "#121212"]
2947
- }, Yn = g("#3F9CDC"), qn = g("#5999A6"), Gn = g("#F76C22"), Jn = g("#F95858"), Kn = g("#121212"), Ot = sn("default", {
2948
- primary: Yn,
2949
- secondary: qn,
2950
- tertiary: Gn,
2951
- error: Jn,
2952
- surface: Kn
2953
- }), Ia = Symbol("Notifications"), Nt = Ut([]);
2954
- function Zn() {
2955
- return Nt;
2956
- }
2957
- class Pa {
2969
+ }, Jn = y("#3F9CDC"), Kn = y("#5999A6"), Zn = y("#F76C22"), Qn = y("#F95858"), ea = y("#121212"), Vt = cn("default", {
2970
+ primary: Jn,
2971
+ secondary: Kn,
2972
+ tertiary: Zn,
2973
+ error: Qn,
2974
+ surface: ea
2975
+ }), La = Symbol("Notifications"), Ft = Kt([]);
2976
+ function ta() {
2977
+ return Ft;
2978
+ }
2979
+ class Wa {
2958
2980
  static show(t) {
2959
- t.hash = Math.random().toString(36), Nt.push(t);
2981
+ t.hash = Math.random().toString(36), Ft.push(t);
2960
2982
  }
2961
2983
  }
2962
- const Bt = Symbol("tabCurrent"), Ht = Symbol("direction"), Fa = Symbol("tabValueList"), Vt = Symbol("childrenElementMapSymbol"), at = [0.98, 0.96, 0.9, 0.8, 0.6, 0.55, 0.5, 0.3, 0.28, 0.2, 0.08];
2963
- function Qn(e) {
2964
- const t = y(e).toHsl().l;
2965
- return at.reduce(
2984
+ const Dt = Symbol("tabCurrent"), Lt = Symbol("direction"), ja = Symbol("tabValueList"), Wt = Symbol("childrenElementMapSymbol"), lt = [0.98, 0.96, 0.9, 0.8, 0.6, 0.55, 0.5, 0.3, 0.28, 0.2, 0.08];
2985
+ function ra(e) {
2986
+ const t = w(e).toHsl().l;
2987
+ return lt.reduce(
2966
2988
  (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
2967
2989
  );
2968
2990
  }
2969
- function ea(e, t = at) {
2970
- const r = y(e), n = Qn(r), o = t.findIndex((s) => s === n), a = t.map((s) => {
2971
- const i = y({ h: r.toHsl().h, s: r.toHsl().s, l: s });
2991
+ function na(e, t = lt) {
2992
+ const r = w(e), n = ra(r), o = t.findIndex((s) => s === n), a = t.map((s) => {
2993
+ const i = w({ h: r.toHsl().h, s: r.toHsl().s, l: s });
2972
2994
  return i.saturate(0 * 100), i;
2973
2995
  });
2974
2996
  return { baseColorIndex: o, colors: a.map((s) => s.toHexString()) };
2975
2997
  }
2976
- function Me(e, t = at) {
2977
- return ea(e, t).colors;
2998
+ function Ce(e, t = lt) {
2999
+ return na(e, t).colors;
2978
3000
  }
2979
- const Da = /* @__PURE__ */ R({
3001
+ const Xa = /* @__PURE__ */ E({
2980
3002
  __name: "RokuProvider",
2981
3003
  props: {
2982
3004
  is: { default: "div" },
2983
3005
  theme: { default: "default" },
2984
3006
  themes: { default: () => ({
2985
- default: Ot.value
3007
+ default: Vt.value
2986
3008
  }) }
2987
3009
  },
2988
3010
  setup(e) {
2989
- const t = e, r = m(() => t.themes[t.theme]), n = un(), o = Tr();
3011
+ const t = e, r = m(() => t.themes[t.theme]), n = fn(), o = zr();
2990
3012
  pe(() => {
2991
- if (!se)
3013
+ if (!re)
2992
3014
  return "dark";
2993
3015
  n.value === "dark" ? document.documentElement.dataset.scheme = "dark" : n.value === "light" ? document.documentElement.dataset.scheme = "light" : o.value === "dark" ? document.documentElement.dataset.scheme = "dark" : document.documentElement.dataset.scheme = "light", localStorage.setItem("scheme", document.documentElement.dataset.scheme);
2994
- }), Te(ln, n);
2995
- const a = m(() => Mt(r.value));
2996
- return Te("currentThemeData", m(() => r.value)), (s, i) => (b(), X(Se(s.is), {
2997
- style: V([
3016
+ }), Re(dn, n);
3017
+ const a = m(() => zt(r.value));
3018
+ return Re("currentThemeData", m(() => r.value)), (s, i) => (v(), U($e(s.is), {
3019
+ style: P([
2998
3020
  c(a)
2999
3021
  ]),
3000
3022
  class: "text-surface-on transition-background-color,border-color,color"
3001
3023
  }, {
3002
- default: J(() => [
3003
- z(s.$slots, "default")
3024
+ default: K(() => [
3025
+ C(s.$slots, "default")
3004
3026
  ]),
3005
3027
  _: 3
3006
3028
  }, 8, ["style"]));
3007
3029
  }
3008
- }), ta = ["id"], ra = ["for"], na = ["for"], aa = /* @__PURE__ */ R({
3030
+ }), aa = ["id"], oa = ["for"], sa = ["for"], la = /* @__PURE__ */ E({
3009
3031
  inheritAttrs: !1,
3010
3032
  __name: "Switch",
3011
- props: /* @__PURE__ */ K({
3033
+ props: /* @__PURE__ */ Q({
3012
3034
  size: { default: "md" },
3013
3035
  animate: { type: Boolean, default: !0 },
3014
3036
  options: {},
@@ -3026,9 +3048,9 @@ const Da = /* @__PURE__ */ R({
3026
3048
  }),
3027
3049
  emits: ["update:modelValue"],
3028
3050
  setup(e) {
3029
- const t = e, r = te(e, "modelValue");
3051
+ const t = e, r = ne(e, "modelValue");
3030
3052
  t.value && (r.value = t.value);
3031
- const n = g(null), o = g(!1), a = m(() => {
3053
+ const n = y(null), o = y(!1), a = m(() => {
3032
3054
  switch (t.size) {
3033
3055
  case "sm":
3034
3056
  return {
@@ -3061,7 +3083,7 @@ const Da = /* @__PURE__ */ R({
3061
3083
  } : {
3062
3084
  indicator: "",
3063
3085
  progress: ""
3064
- }), i = Qe(t), l = m(() => {
3086
+ }), i = rt(t), l = m(() => {
3065
3087
  let d = "bg-primary-container";
3066
3088
  switch (t.color) {
3067
3089
  case "secondary":
@@ -3078,41 +3100,41 @@ const Da = /* @__PURE__ */ R({
3078
3100
  wrapper: r.value ? `border border-transparent ${d}` : "bg-surface-border-low border border-surface-border-low",
3079
3101
  indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
3080
3102
  };
3081
- }), u = re(t);
3082
- return (d, f) => (b(), w("div", {
3103
+ }), u = ae(t);
3104
+ return (d, p) => (v(), _("div", {
3083
3105
  role: "switch",
3084
- class: k(["relative flex items-center gap-2", {
3106
+ class: S(["relative flex items-center gap-2", {
3085
3107
  "pointer-events-none filter-grayscale op-60": t.disabled
3086
3108
  }])
3087
3109
  }, [
3088
- De($("input", $e({
3110
+ We(M("input", Me({
3089
3111
  id: c(i),
3090
- "onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p)
3112
+ "onUpdate:modelValue": p[0] || (p[0] = (f) => r.value = f)
3091
3113
  }, d.$attrs, {
3092
3114
  class: "hidden",
3093
3115
  type: "checkbox"
3094
- }), null, 16, ta), [
3095
- [Yt, r.value]
3116
+ }), null, 16, aa), [
3117
+ [Zt, r.value]
3096
3118
  ]),
3097
- $("label", {
3119
+ M("label", {
3098
3120
  class: "leading-0 cursor-pointer!",
3099
3121
  for: c(i)
3100
3122
  }, [
3101
- $("div", {
3123
+ M("div", {
3102
3124
  ref_key: "wrapper",
3103
3125
  ref: n,
3104
- class: k([[c(a).wrapper, c(l).wrapper, c(u).class], "relative inline-block transition-all"]),
3105
- style: V([c(u).style]),
3106
- onPointerdown: f[1] || (f[1] = (p) => o.value = !0),
3107
- onPointerup: f[2] || (f[2] = (p) => o.value = !1),
3108
- onPointerleave: f[3] || (f[3] = (p) => o.value = !1),
3109
- onPointerenter: f[4] || (f[4] = (p) => p.buttons === 1 && (o.value = !0))
3126
+ class: S([[c(a).wrapper, c(l).wrapper, c(u).class], "relative inline-block transition-all"]),
3127
+ style: P([c(u).style]),
3128
+ onPointerdown: p[1] || (p[1] = (f) => o.value = !0),
3129
+ onPointerup: p[2] || (p[2] = (f) => o.value = !1),
3130
+ onPointerleave: p[3] || (p[3] = (f) => o.value = !1),
3131
+ onPointerenter: p[4] || (p[4] = (f) => f.buttons === 1 && (o.value = !0))
3110
3132
  }, [
3111
- $("div", {
3112
- class: k(["absolute top-50% -translate-y-50%", [c(a).indicator, c(l).indicator, c(s).indicator, r.value ? c(a).active : c(a).inactive, c(u).class]]),
3113
- style: V([c(u).style])
3133
+ M("div", {
3134
+ class: S(["absolute top-50% -translate-y-50%", [c(a).indicator, c(l).indicator, c(s).indicator, r.value ? c(a).active : c(a).inactive, c(u).class]]),
3135
+ style: P([c(u).style])
3114
3136
  }, null, 6),
3115
- oe(Ke, {
3137
+ le(et, {
3116
3138
  "enter-active-class": "transition-all",
3117
3139
  "enter-from-class": "opacity-0",
3118
3140
  "enter-to-class": "opacity-100",
@@ -3121,17 +3143,17 @@ const Da = /* @__PURE__ */ R({
3121
3143
  "leave-to-class": "opacity-0",
3122
3144
  mode: "out-in"
3123
3145
  }, {
3124
- default: J(() => [
3125
- r.value ? (b(), w("i", {
3146
+ default: K(() => [
3147
+ r.value ? (v(), _("i", {
3126
3148
  key: "on",
3127
- class: k(["absolute top-1/2 -translate-y-50%", [c(a).icon, {
3149
+ class: S(["absolute top-1/2 -translate-y-50%", [c(a).icon, {
3128
3150
  [`left-0 text-${d.color}-on-container-low`]: r.value,
3129
3151
  [d.onIcon ?? ""]: r.value && d.onIcon,
3130
3152
  [d.offIcon ?? ""]: !r.value && d.offIcon
3131
3153
  }]])
3132
- }, null, 2)) : (b(), w("i", {
3154
+ }, null, 2)) : (v(), _("i", {
3133
3155
  key: "off",
3134
- class: k(["absolute top-1/2 -translate-y-50%", [c(a).icon, {
3156
+ class: S(["absolute top-1/2 -translate-y-50%", [c(a).icon, {
3135
3157
  "right-0 text-surface-on-low ": !r.value,
3136
3158
  [d.onIcon ?? ""]: r.value && d.onIcon,
3137
3159
  [d.offIcon ?? ""]: !r.value && d.offIcon
@@ -3141,40 +3163,40 @@ const Da = /* @__PURE__ */ R({
3141
3163
  _: 1
3142
3164
  })
3143
3165
  ], 38)
3144
- ], 8, ra),
3145
- d.label ? (b(), w("label", {
3166
+ ], 8, oa),
3167
+ d.label ? (v(), _("label", {
3146
3168
  key: 0,
3147
3169
  for: c(i)
3148
- }, ue(d.label), 9, na)) : B("", !0)
3170
+ }, ie(d.label), 9, sa)) : N("", !0)
3149
3171
  ], 2));
3150
3172
  }
3151
- }), oa = { class: "dark:hidden" }, sa = { class: "light:hidden" }, La = /* @__PURE__ */ R({
3173
+ }), ia = { class: "dark:hidden" }, ua = { class: "light:hidden" }, Ya = /* @__PURE__ */ E({
3152
3174
  __name: "SchemeSwitch",
3153
3175
  setup(e) {
3154
- const t = g(!1);
3155
- ee([t], () => {
3156
- se && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
3176
+ const t = y(!1);
3177
+ Z([t], () => {
3178
+ re && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
3157
3179
  });
3158
- const r = g(!0), n = g(!1);
3159
- return le(() => {
3160
- se && (t.value = localStorage.getItem("scheme") === "dark"), r.value = !1;
3161
- }), Fe(() => {
3180
+ const r = y(!0), n = y(!1);
3181
+ return ce(() => {
3182
+ re && (t.value = localStorage.getItem("scheme") === "dark"), r.value = !1;
3183
+ }), Le(() => {
3162
3184
  n.value = !0;
3163
3185
  }), (o, a) => {
3164
- const s = aa;
3165
- return b(), w(ie, null, [
3166
- $("div", {
3167
- class: k({ hidden: !c(r) })
3186
+ const s = la;
3187
+ return v(), _(ue, null, [
3188
+ M("div", {
3189
+ class: S({ hidden: !c(r) })
3168
3190
  }, [
3169
- $("div", oa, [
3170
- oe(s, {
3191
+ M("div", ia, [
3192
+ le(s, {
3171
3193
  value: !1,
3172
3194
  "on-icon": "i-line-md-moon-twotone-alt-loop",
3173
3195
  "off-icon": "i-line-md-sunny-outline-twotone-loop"
3174
3196
  })
3175
3197
  ]),
3176
- $("div", sa, [
3177
- oe(s, {
3198
+ M("div", ua, [
3199
+ le(s, {
3178
3200
  value: !0,
3179
3201
  color: "secondary",
3180
3202
  "on-icon": "i-line-md-moon-twotone-alt-loop",
@@ -3182,12 +3204,12 @@ const Da = /* @__PURE__ */ R({
3182
3204
  })
3183
3205
  ])
3184
3206
  ], 2),
3185
- $("div", {
3186
- class: k({ hidden: c(r) })
3207
+ M("div", {
3208
+ class: S({ hidden: c(r) })
3187
3209
  }, [
3188
- oe(s, {
3210
+ le(s, {
3189
3211
  modelValue: c(t),
3190
- "onUpdate:modelValue": a[0] || (a[0] = (i) => qt(t) ? t.value = i : null),
3212
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => Qt(t) ? t.value = i : null),
3191
3213
  animate: c(n),
3192
3214
  color: "secondary",
3193
3215
  "on-icon": "i-line-md-moon-twotone-alt-loop",
@@ -3197,62 +3219,81 @@ const Da = /* @__PURE__ */ R({
3197
3219
  ], 64);
3198
3220
  };
3199
3221
  }
3200
- }), la = { class: "w-full flex items-center" }, ia = ["placeholder", "value", "aria-label"], ua = /* @__PURE__ */ $("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), ca = {
3222
+ }), ca = { class: "w-full flex items-center" }, da = ["placeholder", "readonly", "value", "aria-label"], fa = /* @__PURE__ */ M("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), pa = {
3201
3223
  key: 0,
3202
3224
  class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
3203
- }, da = ["onPointerdown", "onHover"], fa = { key: 0 }, pa = /* @__PURE__ */ $("i", { class: "i-tabler-check h-3 w-3" }, null, -1), ha = [
3204
- pa
3205
- ], Wa = /* @__PURE__ */ R({
3225
+ }, ha = ["onPointerdown", "onHover"], ma = { key: 0 }, va = /* @__PURE__ */ M("i", { class: "i-tabler-check h-3 w-3" }, null, -1), ba = [
3226
+ va
3227
+ ], ga = {
3228
+ key: 0,
3229
+ class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
3230
+ }, qa = /* @__PURE__ */ E({
3206
3231
  __name: "Select",
3207
- props: /* @__PURE__ */ K({
3232
+ props: /* @__PURE__ */ Q({
3208
3233
  ariaLabel: {},
3209
3234
  options: { default() {
3210
3235
  return [];
3211
3236
  } },
3212
3237
  size: { default: "md" },
3213
3238
  noneText: { default: "No options" },
3239
+ notFoundText: { default: "Not found" },
3214
3240
  rounded: { default: "md" },
3215
- placeholder: { default: "" }
3241
+ placeholder: { default: "" },
3242
+ searchable: { type: Boolean, default: !1 },
3243
+ filter: { type: Function, default: (e, t) => e.includes(t) }
3216
3244
  }, {
3217
3245
  modelValue: { default: void 0 },
3218
3246
  modelModifiers: {}
3219
3247
  }),
3220
- emits: /* @__PURE__ */ K(["change"], ["update:modelValue"]),
3248
+ emits: /* @__PURE__ */ Q(["change", "input"], ["update:modelValue"]),
3221
3249
  setup(e, { emit: t }) {
3222
- const r = e, n = t, o = re(r), a = te(e, "modelValue"), s = g(null), i = g(null), { focused: l } = Mr(s), u = m(() => r.options.map((_) => S(_)).indexOf(a.value)), d = g(-1), f = g(-1);
3250
+ const r = e, n = t, o = ae(r), a = ne(e, "modelValue"), s = y(null), i = y(null), l = y(!1);
3251
+ mr(i, () => {
3252
+ l.value = !1;
3253
+ });
3254
+ const u = y(-1), d = y(-1);
3223
3255
  pe(() => {
3224
- l.value || (f.value = -1);
3225
- }), pe(() => {
3226
- a.value = S(r.options[u.value]);
3227
- }), ee(a, () => {
3256
+ l.value || (d.value = -1);
3257
+ }), Z(a, () => {
3228
3258
  n("change", a.value);
3229
3259
  });
3230
- const p = r.options, h = m(() => p[u.value]), v = m(() => M(h.value));
3231
- function M(_) {
3232
- if (_)
3233
- return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.label;
3260
+ const p = m(() => a.value), f = m(() => h(p.value));
3261
+ function h(g) {
3262
+ return g ? typeof g == "string" || typeof g == "symbol" || typeof g == "number" ? String(g) : g.label ? g.label : g.id : "";
3263
+ }
3264
+ function b(g) {
3265
+ if (g)
3266
+ return typeof g == "string" || typeof g == "symbol" || typeof g == "number" ? g : g.id;
3234
3267
  }
3235
- function S(_) {
3236
- if (_)
3237
- return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.id;
3268
+ const x = y("");
3269
+ Z(f, () => {
3270
+ x.value = f.value;
3271
+ }), pe(() => {
3272
+ l.value || (x.value = f.value);
3273
+ });
3274
+ function T(g) {
3275
+ l.value = !0;
3276
+ const O = g.target;
3277
+ x.value = O.value, n("input", x.value);
3238
3278
  }
3239
- fe("ArrowDown", (_) => {
3240
- l.value && (_.preventDefault(), f.value = (f.value + 1) % p.length);
3241
- }), fe("ArrowUp", (_) => {
3242
- l.value && (_.preventDefault(), f.value = (f.value - 1 + p.length) % p.length);
3279
+ const H = m(() => r.searchable && x.value !== f.value ? r.options.filter((g) => r.filter(h(g), x.value)) : r.options);
3280
+ fe("ArrowDown", (g) => {
3281
+ l.value && (g.preventDefault(), d.value = (d.value + 1) % r.options.length);
3282
+ }), fe("ArrowUp", (g) => {
3283
+ l.value && (g.preventDefault(), d.value = (d.value - 1 + r.options.length) % r.options.length);
3243
3284
  }), fe("Enter", () => {
3244
- l.value && f.value !== -1 && (a.value = S(p[f.value]), l.value = !1);
3285
+ l.value && d.value !== -1 && (a.value = H.value[d.value], s.value.focus(), l.value = !1);
3245
3286
  });
3246
- function L(_) {
3247
- if (!l.value) {
3287
+ function F(g) {
3288
+ if (s.value.focus(), !l.value) {
3248
3289
  l.value = !0;
3249
3290
  return;
3250
3291
  }
3251
- a.value = S(_), l.value = !1;
3292
+ a.value = g, l.value = !1;
3252
3293
  }
3253
- const H = m(() => ({
3294
+ const L = m(() => ({
3254
3295
  input: "container-base focus:border-primary-container"
3255
- })), I = m(() => {
3296
+ })), z = m(() => {
3256
3297
  switch (r.size) {
3257
3298
  case "sm":
3258
3299
  return {
@@ -3270,54 +3311,74 @@ const Da = /* @__PURE__ */ R({
3270
3311
  dropdown: "text-base children:py-1"
3271
3312
  };
3272
3313
  }
3273
- }), N = g(null), { height: C } = He(N), { bottom: E } = He(s), F = m(() => l.value && se ? C.value === 0 ? !1 : document.documentElement.clientHeight - E.value > C.value : !1);
3274
- return (_, x) => (b(), w("div", {
3314
+ }), $ = y(null), { height: R } = He($), { bottom: D } = He(s), B = m(() => l.value && re ? R.value === 0 ? !1 : document.documentElement.clientHeight - D.value > R.value : !1);
3315
+ function k(g, O) {
3316
+ return O ? typeof g == "string" || typeof g == "symbol" || typeof g == "number" ? g === O : typeof O == "string" || typeof O == "symbol" || typeof O == "number" ? !1 : g.id === O.id : !1;
3317
+ }
3318
+ return (g, O) => (v(), _("div", {
3275
3319
  ref_key: "wrapperRef",
3276
3320
  ref: i,
3277
3321
  class: "r-select-wrapper relative"
3278
3322
  }, [
3279
- $("div", la, [
3280
- $("input", {
3323
+ M("div", ca, [
3324
+ M("input", {
3281
3325
  ref_key: "inputRef",
3282
3326
  ref: s,
3283
- class: k([[c(H).input, c(I).wrapper, c(o).class], "r-select-input cursor-pointer border outline-none outline-none focus-visible:outline-2"]),
3284
- placeholder: _.placeholder,
3285
- style: V([c(o).style]),
3286
- readonly: "",
3287
- value: c(v),
3288
- "aria-label": _.ariaLabel,
3327
+ class: S([[c(L).input, c(z).wrapper, c(o).class], "r-select-input cursor-pointer border outline-none outline-none focus-visible:outline-2"]),
3328
+ placeholder: g.placeholder,
3329
+ style: P([c(o).style]),
3330
+ readonly: !g.searchable,
3331
+ value: c(x),
3332
+ "aria-label": g.ariaLabel,
3289
3333
  "aria-haspopup": "listbox",
3290
3334
  autocomplete: "off",
3291
- onFocus: x[0] || (x[0] = (T) => l.value = !0)
3292
- }, null, 46, ia),
3293
- ua
3335
+ onInput: T,
3336
+ onClick: O[0] || (O[0] = (X) => l.value = !0)
3337
+ }, null, 46, da),
3338
+ fa
3294
3339
  ]),
3295
- c(l) ? (b(), w("div", {
3340
+ c(l) ? (v(), _("div", {
3296
3341
  key: 0,
3297
3342
  ref_key: "dropdownRef",
3298
- ref: N,
3299
- class: k(["absolute z-10 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1", [c(I).dropdown, {
3300
- "bottom-10": !c(F)
3343
+ ref: $,
3344
+ class: S(["absolute z-10 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1", [c(z).dropdown, {
3345
+ "bottom-10": !c(B)
3301
3346
  }]])
3302
3347
  }, [
3303
- c(p).length === 0 ? (b(), w("div", ca, ue(_.noneText), 1)) : (b(!0), w(ie, { key: 1 }, Re(c(p), (T, D) => (b(), w("div", {
3304
- key: S(T),
3305
- class: k([{
3306
- "hover:bg-surface-high border-transparent": c(f) !== D,
3307
- "container-filled-primary": c(f) === D
3308
- }, "flex cursor-pointer items-center justify-between gap-2 border rounded p-1 px-2"]),
3309
- onPointerdown: (de) => L(T),
3310
- onHover: (de) => d.value = D
3311
- }, [
3312
- Gt(ue(M(T)) + " ", 1),
3313
- T === c(h) ? (b(), w("div", fa, ha)) : B("", !0)
3314
- ], 42, da))), 128))
3315
- ], 2)) : B("", !0)
3348
+ g.options.length === 0 ? (v(), _("div", pa, [
3349
+ C(g.$slots, "none", {}, () => [
3350
+ qe(ie(g.noneText), 1)
3351
+ ])
3352
+ ])) : (v(), _(ue, { key: 1 }, [
3353
+ (v(!0), _(ue, null, ze(c(H), (X, Ae) => (v(), _("div", {
3354
+ key: b(X),
3355
+ class: S([{
3356
+ "hover:bg-surface-high border-transparent": c(d) !== Ae,
3357
+ "container-filled-primary": c(d) === Ae
3358
+ }, "flex cursor-pointer items-center justify-between gap-2 border rounded p-1 px-2"]),
3359
+ onPointerdown: (ge) => F(X),
3360
+ onHover: (ge) => u.value = Ae
3361
+ }, [
3362
+ C(g.$slots, "item", {
3363
+ data: X,
3364
+ selected: k(X, c(p))
3365
+ }, () => [
3366
+ qe(ie(h(X)), 1)
3367
+ ]),
3368
+ k(X, c(p)) ? (v(), _("div", ma, ba)) : N("", !0)
3369
+ ], 42, ha))), 128)),
3370
+ g.searchable && c(H).length === 0 ? (v(), _("div", ga, [
3371
+ C(g.$slots, "not-found", {}, () => [
3372
+ qe(ie(g.notFoundText), 1)
3373
+ ])
3374
+ ])) : N("", !0)
3375
+ ], 64))
3376
+ ], 2)) : N("", !0)
3316
3377
  ], 512));
3317
3378
  }
3318
- }), ma = { class: "relative inline-block w-full" }, ja = /* @__PURE__ */ R({
3379
+ }), ya = { class: "relative inline-block w-full" }, Ua = /* @__PURE__ */ E({
3319
3380
  __name: "Slider",
3320
- props: /* @__PURE__ */ K({
3381
+ props: /* @__PURE__ */ Q({
3321
3382
  size: { default: "md" },
3322
3383
  animate: { type: Boolean, default: !1 },
3323
3384
  width: {},
@@ -3337,25 +3398,25 @@ const Da = /* @__PURE__ */ R({
3337
3398
  emits: ["update:modelValue"],
3338
3399
  setup(e) {
3339
3400
  const t = e;
3340
- function r(E, F, _) {
3341
- const x = [];
3342
- for (let T = E; T <= F; T += _)
3343
- x.push(T);
3344
- return x[x.length - 1] !== F && x.push(F), x;
3401
+ function r(R, D, B) {
3402
+ const k = [];
3403
+ for (let g = R; g <= D; g += B)
3404
+ k.push(g);
3405
+ return k[k.length - 1] !== D && k.push(D), k;
3345
3406
  }
3346
- function n(E, F) {
3347
- const _ = [];
3348
- _.push(F[0]);
3349
- const x = (F.length - 1) / (E - 1);
3350
- for (let T = 1; T < E - 1; T++)
3351
- _.push(F[Math.round(T * x)]);
3352
- return _.push(F[F.length - 1]), _;
3407
+ function n(R, D) {
3408
+ const B = [];
3409
+ B.push(D[0]);
3410
+ const k = (D.length - 1) / (R - 1);
3411
+ for (let g = 1; g < R - 1; g++)
3412
+ B.push(D[Math.round(g * k)]);
3413
+ return B.push(D[D.length - 1]), B;
3353
3414
  }
3354
- const o = m(() => t.options ? t.options.length : t.tickNum ?? 0), a = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(o.value, a.value)), i = te(e, "modelValue"), l = m(() => a.value.length ?? 0), u = g(a.value.includes(i.value) ? a.value.indexOf(i.value) : 0);
3355
- function d(E) {
3356
- return a.value.indexOf(E);
3415
+ const o = m(() => t.options ? t.options.length : t.tickNum ?? 0), a = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(o.value, a.value)), i = ne(e, "modelValue"), l = m(() => a.value.length ?? 0), u = y(a.value.includes(i.value) ? a.value.indexOf(i.value) : 0);
3416
+ function d(R) {
3417
+ return a.value.indexOf(R);
3357
3418
  }
3358
- const f = m(() => {
3419
+ const p = m(() => {
3359
3420
  switch (t.color) {
3360
3421
  case "primary":
3361
3422
  return "bg-primary-containerl";
@@ -3366,7 +3427,7 @@ const Da = /* @__PURE__ */ R({
3366
3427
  case "error":
3367
3428
  return "bg-error-containerl";
3368
3429
  }
3369
- }), p = m(() => `dark:bg-white bg-${t.color}-containerl`), h = m(() => {
3430
+ }), f = m(() => `dark:bg-white bg-${t.color}-containerl`), h = m(() => {
3370
3431
  switch (t.color) {
3371
3432
  case "primary":
3372
3433
  return "dark:bg-primary-containerl bg-white";
@@ -3381,36 +3442,36 @@ const Da = /* @__PURE__ */ R({
3381
3442
  pe(() => {
3382
3443
  i.value = a.value[u.value];
3383
3444
  });
3384
- const v = g(), M = g(), S = He(v), L = g(!1);
3385
- function H(E) {
3386
- if (!L.value)
3445
+ const b = y(), x = y(), T = He(b), H = y(!1);
3446
+ function F(R) {
3447
+ if (!H.value)
3387
3448
  return;
3388
- if (!(E.buttons === 1)) {
3389
- L.value = !1;
3449
+ if (!(R.buttons === 1)) {
3450
+ H.value = !1;
3390
3451
  return;
3391
3452
  }
3392
- E.preventDefault(), E.stopPropagation();
3393
- const { clientX: _ } = E, x = S.left.value, D = S.right.value - x, de = Math.round((_ - x) / D * (l.value - 1));
3394
- if (de < 0) {
3453
+ R.preventDefault(), R.stopPropagation();
3454
+ const { clientX: B } = R, k = T.left.value, O = T.right.value - k, X = Math.round((B - k) / O * (l.value - 1));
3455
+ if (X < 0) {
3395
3456
  u.value = 0;
3396
3457
  return;
3397
3458
  }
3398
- if (de > l.value - 1) {
3459
+ if (X > l.value - 1) {
3399
3460
  u.value = l.value - 1;
3400
3461
  return;
3401
3462
  }
3402
- u.value = de;
3463
+ u.value = X;
3403
3464
  }
3404
3465
  pe(() => {
3405
3466
  u.value = d(i.value);
3406
3467
  });
3407
- function I(E) {
3408
- E.preventDefault(), E.stopPropagation(), L.value = !0, H(E);
3468
+ function L(R) {
3469
+ R.preventDefault(), R.stopPropagation(), H.value = !0, F(R);
3409
3470
  }
3410
- P(v, "pointerdown", I), le(() => {
3411
- P(document, "pointermove", H), u.value = Math.max(0, d(i.value));
3471
+ V(b, "pointerdown", L), ce(() => {
3472
+ V(document, "pointermove", F), u.value = Math.max(0, d(i.value));
3412
3473
  });
3413
- const N = m(() => {
3474
+ const z = m(() => {
3414
3475
  switch (t.size) {
3415
3476
  case "sm":
3416
3477
  return {
@@ -3443,93 +3504,93 @@ const Da = /* @__PURE__ */ R({
3443
3504
  progress: "-mx-1.5"
3444
3505
  };
3445
3506
  }
3446
- }), C = m(() => t.animate ? {
3507
+ }), $ = m(() => t.animate ? {
3447
3508
  indicator: "transition-left",
3448
3509
  progress: "transition-width"
3449
3510
  } : {
3450
3511
  indicator: "",
3451
3512
  progress: ""
3452
3513
  });
3453
- return (E, F) => (b(), w("div", ma, [
3454
- $("div", {
3514
+ return (R, D) => (v(), _("div", ya, [
3515
+ M("div", {
3455
3516
  ref_key: "wrapper",
3456
- ref: v,
3517
+ ref: b,
3457
3518
  type: "size",
3458
- class: k(["w-full flex cursor-pointer items-center", c(N).wrapper]),
3459
- onTouchmove: F[0] || (F[0] = gt(() => {
3519
+ class: S(["w-full flex cursor-pointer items-center", c(z).wrapper]),
3520
+ onTouchmove: D[0] || (D[0] = xt(() => {
3460
3521
  }, ["prevent"]))
3461
3522
  }, [
3462
- $("div", {
3463
- class: k(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7", c(N).innerWrapper])
3523
+ M("div", {
3524
+ class: S(["w-full rounded-full bg-surface-3 transition-background-color,border-color,color dark:bg-surface-7", c(z).innerWrapper])
3464
3525
  }, [
3465
- $("div", {
3466
- class: k(["relative flex", c(N).content]),
3467
- style: V({
3526
+ M("div", {
3527
+ class: S(["relative flex", c(z).content]),
3528
+ style: P({
3468
3529
  width: `${t.width}rem`,
3469
3530
  minWidth: `${t.minWidth}rem`
3470
3531
  })
3471
3532
  }, [
3472
- (b(!0), w(ie, null, Re(c(s), (_) => (b(), w("div", {
3473
- key: _,
3474
- style: V({
3475
- left: `${d(_) / (c(l) - 1) * 100}%`
3533
+ (v(!0), _(ue, null, ze(c(s), (B) => (v(), _("div", {
3534
+ key: B,
3535
+ style: P({
3536
+ left: `${d(B) / (c(l) - 1) * 100}%`
3476
3537
  }),
3477
- class: k(["absolute top-50% rounded-full bg-surface-0", c(N).tick])
3538
+ class: S(["absolute top-50% rounded-full bg-surface-0", c(z).tick])
3478
3539
  }, null, 6))), 128)),
3479
- c(u) !== -1 ? (b(), w("div", {
3540
+ c(u) !== -1 ? (v(), _("div", {
3480
3541
  key: 0,
3481
3542
  ref_key: "indicator",
3482
- ref: M,
3483
- class: k(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [c(N).indicator, c(C).indicator, c(p)]]),
3484
- style: V({
3543
+ ref: x,
3544
+ class: S(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [c(z).indicator, c($).indicator, c(f)]]),
3545
+ style: P({
3485
3546
  left: `${c(u) / (c(l) - 1) * 100}%`
3486
3547
  })
3487
3548
  }, [
3488
- $("div", {
3489
- class: k(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [c(N).indicatorInner, c(h)]])
3549
+ M("div", {
3550
+ class: S(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [c(z).indicatorInner, c(h)]])
3490
3551
  }, null, 2)
3491
- ], 6)) : B("", !0),
3492
- $("div", {
3493
- class: k(["pointer-events-none h-full rounded-full", [c(N).progress, c(C).progress, c(f)]]),
3494
- style: V({
3552
+ ], 6)) : N("", !0),
3553
+ M("div", {
3554
+ class: S(["pointer-events-none h-full rounded-full", [c(z).progress, c($).progress, c(p)]]),
3555
+ style: P({
3495
3556
  width: `${c(u) / (c(l) - 1) * 100}%`
3496
3557
  })
3497
3558
  }, null, 6)
3498
3559
  ], 6)
3499
3560
  ], 2)
3500
3561
  ], 34),
3501
- $("div", {
3562
+ M("div", {
3502
3563
  class: "relative mx-1 h-1em text-xs text-surface-on-low",
3503
- style: V({
3564
+ style: P({
3504
3565
  width: `${t.width}rem`
3505
3566
  })
3506
3567
  }, [
3507
- (b(!0), w(ie, null, Re(c(s), (_, x) => (b(), w("div", {
3508
- key: x,
3509
- style: V({
3510
- left: `${d(_) / (c(l) - 1) * 100}%`
3568
+ (v(!0), _(ue, null, ze(c(s), (B, k) => (v(), _("div", {
3569
+ key: k,
3570
+ style: P({
3571
+ left: `${d(B) / (c(l) - 1) * 100}%`
3511
3572
  }),
3512
- class: k(["absolute w-auto flex rounded-full -translate-x-50%", c(N).tick])
3513
- }, ue(_), 7))), 128))
3573
+ class: S(["absolute w-auto flex rounded-full -translate-x-50%", c(z).tick])
3574
+ }, ie(B), 7))), 128))
3514
3575
  ], 4)
3515
3576
  ]));
3516
3577
  }
3517
- }), va = { class: "h-full py-2" }, Xa = /* @__PURE__ */ R({
3578
+ }), wa = { class: "h-full py-2" }, Ga = /* @__PURE__ */ E({
3518
3579
  __name: "TabItem",
3519
3580
  props: {
3520
3581
  value: {},
3521
3582
  color: { default: "primary" }
3522
3583
  },
3523
3584
  setup(e) {
3524
- const t = e, r = we(Bt, g("")), n = g(null), o = m(() => r.value === t.value);
3585
+ const t = e, r = _e(Dt, y("")), n = y(null), o = m(() => r.value === t.value);
3525
3586
  function a() {
3526
3587
  r.value = t.value;
3527
3588
  }
3528
- const s = we(Vt, /* @__PURE__ */ new Map());
3529
- le(() => {
3589
+ const s = _e(Wt, /* @__PURE__ */ new Map());
3590
+ ce(() => {
3530
3591
  s.set(t.value, n);
3531
3592
  });
3532
- const i = we(Ht, m(() => "horizontal")), l = m(() => {
3593
+ const i = _e(Lt, m(() => "horizontal")), l = m(() => {
3533
3594
  switch (i.value) {
3534
3595
  case "horizontal":
3535
3596
  return "flex-col rounded-tr-lg rounded-tl-lg";
@@ -3544,28 +3605,28 @@ const Da = /* @__PURE__ */ R({
3544
3605
  return "absolute inset-0 right-100% h-full w-2px transition-background-color,border-color,color";
3545
3606
  }
3546
3607
  }), d = m(() => o.value ? "bg-primary-containerl" : "bg-surface-lowest");
3547
- return (f, p) => (b(), w("button", {
3608
+ return (p, f) => (v(), _("button", {
3548
3609
  ref_key: "tabRef",
3549
3610
  ref: n,
3550
3611
  type: "button",
3551
- class: k(["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 focus-visible:outline-primary-container outline-offset-0!", [c(l)]]),
3612
+ class: S(["rutline-none relative min-w-20 flex items-center justify-center outline-none focus-visible:outline-2 focus-visible:outline-primary-container outline-offset-0!", [c(l)]]),
3552
3613
  onClick: a
3553
3614
  }, [
3554
- c(o) ? (b(), w("div", {
3615
+ c(o) ? (v(), _("div", {
3555
3616
  key: 0,
3556
- class: k([c(u), c(d)])
3557
- }, null, 2)) : (b(), w("div", {
3617
+ class: S([c(u), c(d)])
3618
+ }, null, 2)) : (v(), _("div", {
3558
3619
  key: 1,
3559
- class: k([c(u), c(d)])
3620
+ class: S([c(u), c(d)])
3560
3621
  }, null, 2)),
3561
- $("div", va, [
3562
- z(f.$slots, "default")
3622
+ M("div", wa, [
3623
+ C(p.$slots, "default")
3563
3624
  ])
3564
3625
  ], 2));
3565
3626
  }
3566
- }), Ua = /* @__PURE__ */ R({
3627
+ }), Ja = /* @__PURE__ */ E({
3567
3628
  __name: "Tabs",
3568
- props: /* @__PURE__ */ K({
3629
+ props: /* @__PURE__ */ Q({
3569
3630
  defaultValue: {},
3570
3631
  direction: { default: "horizontal" }
3571
3632
  }, {
@@ -3574,65 +3635,65 @@ const Da = /* @__PURE__ */ R({
3574
3635
  }),
3575
3636
  emits: ["update:modelValue"],
3576
3637
  setup(e) {
3577
- const t = e, r = bt(), n = m(() => {
3578
- var f;
3579
- const u = (f = r.default) == null ? void 0 : f.call(r);
3580
- return (u == null ? void 0 : u.flatMap((p) => p.type === ie ? p.children : p).filter((p) => {
3638
+ const t = e, r = _t(), n = m(() => {
3639
+ var p;
3640
+ const u = (p = r.default) == null ? void 0 : p.call(r);
3641
+ return (u == null ? void 0 : u.flatMap((f) => f.type === ue ? f.children : f).filter((f) => {
3581
3642
  var h;
3582
- return ((h = p == null ? void 0 : p.props) == null ? void 0 : h.value) !== void 0;
3583
- }).map((p) => p.props.value)) ?? [];
3584
- }), o = te(e, "modelValue");
3643
+ return ((h = f == null ? void 0 : f.props) == null ? void 0 : h.value) !== void 0;
3644
+ }).map((f) => f.props.value)) ?? [];
3645
+ }), o = ne(e, "modelValue");
3585
3646
  !o.value && n.value.length > 0 && (o.value = n.value[0]);
3586
- const a = g(null);
3587
- le(() => {
3647
+ const a = y(null);
3648
+ ce(() => {
3588
3649
  t.defaultValue && (o.value = t.defaultValue);
3589
- }), Te(Bt, o);
3650
+ }), Re(Dt, o);
3590
3651
  const s = m(() => t.direction);
3591
- Te(Ht, s);
3652
+ Re(Lt, s);
3592
3653
  const i = /* @__PURE__ */ new Map();
3593
- Te(Vt, i), fe("ArrowLeft", (u) => {
3654
+ Re(Wt, i), fe("ArrowLeft", (u) => {
3594
3655
  var h;
3595
3656
  if (!((h = a.value) != null && h.contains(document.activeElement)) || (u.preventDefault(), t.direction !== "horizontal"))
3596
3657
  return;
3597
- const d = o.value ? n.value.indexOf(o.value) : 0, f = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
3598
- o.value = f;
3599
- const p = i.get(f);
3600
- if (p) {
3601
- const v = p.value;
3602
- v && v.focus();
3658
+ const d = o.value ? n.value.indexOf(o.value) : 0, p = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
3659
+ o.value = p;
3660
+ const f = i.get(p);
3661
+ if (f) {
3662
+ const b = f.value;
3663
+ b && b.focus();
3603
3664
  }
3604
3665
  }), fe("ArrowRight", (u) => {
3605
3666
  var h;
3606
3667
  if (!((h = a.value) != null && h.contains(document.activeElement)) || (u.preventDefault(), t.direction !== "horizontal"))
3607
3668
  return;
3608
- const d = o.value ? n.value.indexOf(o.value) : 0, f = d < n.value.length - 1 ? o.value = n.value[d + 1] : o.value = n.value[0];
3609
- o.value = f;
3610
- const p = i.get(f);
3611
- if (p) {
3612
- const v = p.value;
3613
- v && v.focus();
3669
+ const d = o.value ? n.value.indexOf(o.value) : 0, p = d < n.value.length - 1 ? o.value = n.value[d + 1] : o.value = n.value[0];
3670
+ o.value = p;
3671
+ const f = i.get(p);
3672
+ if (f) {
3673
+ const b = f.value;
3674
+ b && b.focus();
3614
3675
  }
3615
3676
  }), fe("ArrowUp", (u) => {
3616
3677
  var h;
3617
3678
  if (!((h = a.value) != null && h.contains(document.activeElement)) || (u.preventDefault(), t.direction !== "vertical"))
3618
3679
  return;
3619
- const d = o.value ? n.value.indexOf(o.value) : 0, f = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
3620
- o.value = f;
3621
- const p = i.get(f);
3622
- if (p) {
3623
- const v = p.value;
3624
- v && v.focus();
3680
+ const d = o.value ? n.value.indexOf(o.value) : 0, p = d > 0 ? n.value[d - 1] : n.value[n.value.length - 1];
3681
+ o.value = p;
3682
+ const f = i.get(p);
3683
+ if (f) {
3684
+ const b = f.value;
3685
+ b && b.focus();
3625
3686
  }
3626
3687
  }), fe("ArrowDown", (u) => {
3627
3688
  var h;
3628
3689
  if (!((h = a.value) != null && h.contains(document.activeElement)) || (u.preventDefault(), t.direction !== "vertical"))
3629
3690
  return;
3630
- const d = o.value ? n.value.indexOf(o.value) : 0, f = d < n.value.length - 1 ? n.value[d + 1] : n.value[0];
3631
- o.value = f;
3632
- const p = i.get(f);
3633
- if (p) {
3634
- const v = p.value;
3635
- v && v.focus();
3691
+ const d = o.value ? n.value.indexOf(o.value) : 0, p = d < n.value.length - 1 ? n.value[d + 1] : n.value[0];
3692
+ o.value = p;
3693
+ const f = i.get(p);
3694
+ if (f) {
3695
+ const b = f.value;
3696
+ b && b.focus();
3636
3697
  }
3637
3698
  });
3638
3699
  const l = m(() => {
@@ -3643,64 +3704,90 @@ const Da = /* @__PURE__ */ R({
3643
3704
  return "flex-col";
3644
3705
  }
3645
3706
  });
3646
- return (u, d) => (b(), w("div", {
3707
+ return (u, d) => (v(), _("div", {
3647
3708
  ref_key: "tabRef",
3648
3709
  ref: a,
3649
- class: k(["flex", [c(l)]])
3710
+ class: S(["flex", [c(l)]])
3650
3711
  }, [
3651
- z(u.$slots, "default")
3712
+ C(u.$slots, "default")
3652
3713
  ], 2));
3653
3714
  }
3715
+ }), Ka = /* @__PURE__ */ E({
3716
+ __name: "Tooltip",
3717
+ setup(e) {
3718
+ const t = At(), r = y(null), n = $t(r), o = y(0), a = y(0);
3719
+ return Z(n, (s, i) => {
3720
+ n.value && s !== i && (o.value = t.x.value, a.value = t.y.value);
3721
+ }), (s, i) => (v(), _("div", null, [
3722
+ M("div", {
3723
+ ref_key: "hoverableRef",
3724
+ ref: r
3725
+ }, [
3726
+ C(s.$slots, "default")
3727
+ ], 512),
3728
+ c(o) && c(a) && c(n) ? (v(), _("div", {
3729
+ key: 0,
3730
+ class: "absolute z-10",
3731
+ style: P({
3732
+ left: `${c(o) + 20}px`,
3733
+ top: `${c(a) + 20}px`
3734
+ })
3735
+ }, [
3736
+ C(s.$slots, "content")
3737
+ ], 4)) : N("", !0)
3738
+ ]));
3739
+ }
3654
3740
  });
3655
3741
  export {
3656
- ga as AspectRatio,
3657
- Jt as Avatar,
3658
- xt as Btn,
3659
- ya as ChatContainer,
3660
- wa as ChatMessage,
3661
- _a as ChatSystem,
3662
- xa as Chip,
3663
- Ma as ColorInput,
3664
- Br as ColorSwatch,
3665
- Aa as Drawer,
3666
- Ca as Dropzone,
3667
- At as FullscreenOverlay,
3668
- Ta as Image,
3669
- Ra as Indicator,
3670
- Ea as Modal,
3671
- Sn as Notification,
3672
- za as NotificationSystem,
3673
- Pa as Notifications,
3674
- Oa as Overlay,
3675
- Na as Paper,
3676
- Ba as PinInput,
3677
- Ha as Progress,
3678
- Da as RokuProvider,
3679
- La as SchemeSwitch,
3680
- Wa as Select,
3681
- ja as Slider,
3682
- aa as Switch,
3683
- Xa as TabItem,
3684
- Ua as Tabs,
3685
- Xn as TextField,
3686
- hn as ThemeProvider,
3687
- Vt as childrenElementMapSymbol,
3688
- Ot as defaultTheme,
3689
- Ht as directionSymbol,
3690
- Me as generateColors,
3691
- ea as generateColorsMap,
3692
- Ia as notificationsSymbol,
3693
- ln as schemeSymbol,
3694
- Bt as tabCurrentSymbol,
3695
- Fa as tabValueListSymbol,
3696
- Va as themeColors,
3697
- $t as useCurrentThemeData,
3698
- $a as useCurrentThemeName,
3699
- Sa as useCurrentThemeScheme,
3700
- Qe as useId,
3701
- Zn as useNotifications,
3702
- ka as useRootTheme,
3703
- un as useSchemeString,
3704
- sn as useThemeData,
3705
- Mt as useThemeStyles
3742
+ xa as AspectRatio,
3743
+ er as Avatar,
3744
+ Ct as Btn,
3745
+ ka as ChatContainer,
3746
+ Sa as ChatMessage,
3747
+ $a as ChatSystem,
3748
+ Ma as Chip,
3749
+ Ea as ColorInput,
3750
+ Hr as ColorSwatch,
3751
+ Ra as Drawer,
3752
+ za as Dropzone,
3753
+ Ot as FullscreenOverlay,
3754
+ Oa as Image,
3755
+ Na as Indicator,
3756
+ Ia as Modal,
3757
+ An as Notification,
3758
+ Ba as NotificationSystem,
3759
+ Wa as Notifications,
3760
+ Pa as Overlay,
3761
+ Ha as Paper,
3762
+ Va as PinInput,
3763
+ Fa as Progress,
3764
+ Xa as RokuProvider,
3765
+ Ya as SchemeSwitch,
3766
+ qa as Select,
3767
+ Ua as Slider,
3768
+ la as Switch,
3769
+ Ga as TabItem,
3770
+ Ja as Tabs,
3771
+ Un as TextField,
3772
+ bn as ThemeProvider,
3773
+ Ka as Tooltip,
3774
+ Wt as childrenElementMapSymbol,
3775
+ Vt as defaultTheme,
3776
+ Lt as directionSymbol,
3777
+ Ce as generateColors,
3778
+ na as generateColorsMap,
3779
+ La as notificationsSymbol,
3780
+ dn as schemeSymbol,
3781
+ Dt as tabCurrentSymbol,
3782
+ ja as tabValueListSymbol,
3783
+ Da as themeColors,
3784
+ Rt as useCurrentThemeData,
3785
+ Ta as useCurrentThemeName,
3786
+ Ca as useCurrentThemeScheme,
3787
+ rt as useId,
3788
+ ta as useNotifications,
3789
+ Aa as useRootTheme,
3790
+ fn as useSchemeString,
3791
+ cn as useThemeData,
3792
+ zt as useThemeStyles
3706
3793
  };