@roku-ui/vue 0.7.5 → 0.8.0

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