@vue/devtools-ui 7.3.4 → 7.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/ic-icons-data-DOuTCdZE.cjs +1 -0
  2. package/dist/ic-icons-data-stfsGcEC.js +2196 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.js +429 -1000
  5. package/dist/style.css +1 -1
  6. package/dist/theme.cjs +2 -2
  7. package/dist/theme.js +17 -146
  8. package/dist/types/src/components/Badge.d.ts +11 -0
  9. package/dist/types/src/components/Button.d.ts +70 -0
  10. package/dist/types/src/components/Card.d.ts +11 -0
  11. package/dist/types/src/components/Checkbox.d.ts +35 -0
  12. package/dist/types/src/components/Confirm.d.ts +84 -0
  13. package/dist/types/src/components/DarkToggle.d.ts +57 -0
  14. package/dist/types/src/components/Dialog.d.ts +78 -0
  15. package/dist/types/src/components/Drawer.d.ts +77 -0
  16. package/dist/types/src/components/Dropdown.d.ts +40 -0
  17. package/dist/types/src/components/DropdownButton.d.ts +41 -0
  18. package/dist/types/src/components/FormField.d.ts +47 -0
  19. package/dist/types/src/components/IcIcon.d.ts +15 -0
  20. package/dist/types/src/components/Icon.d.ts +33 -0
  21. package/dist/types/src/components/Input.d.ts +84 -0
  22. package/dist/types/src/components/LoadingIndicator.d.ts +2 -0
  23. package/dist/types/src/components/Notification.d.ts +33 -0
  24. package/dist/types/src/components/Overlay.d.ts +42 -0
  25. package/dist/types/src/components/Select.d.ts +53 -0
  26. package/dist/types/src/components/Switch.d.ts +30 -0
  27. package/dist/types/src/components/Tooltip.d.ts +23 -0
  28. package/dist/types/src/components/index.d.ts +41 -0
  29. package/dist/types/src/composables/index.d.ts +3 -0
  30. package/dist/types/src/composables/notification.d.ts +10 -0
  31. package/dist/types/src/composables/theme.d.ts +7 -0
  32. package/dist/types/src/constants/ic-icons.d.ts +1 -0
  33. package/dist/types/src/index.d.ts +6 -0
  34. package/dist/types/src/types/floating-vue.d.ts +10 -0
  35. package/dist/types/src/types/index.d.ts +1 -0
  36. package/dist/types/theme/index.d.ts +2 -0
  37. package/dist/types/{theme.d.ts → theme/theme.d.ts} +66 -73
  38. package/dist/types/theme/uno.config.d.ts +3 -0
  39. package/dist/vendor-BtJ-3rRj.cjs +1 -0
  40. package/dist/vendor-XKDuzWDy.js +731 -0
  41. package/package.json +10 -9
  42. package/dist/types/index.d.ts +0 -1062
@@ -0,0 +1,731 @@
1
+ import { ref as M, watch as D, customRef as ce, isRef as fe, getCurrentScope as xe, onScopeDispose as Ae, unref as Me, toRef as Ce, readonly as de, onMounted as he, nextTick as U, getCurrentInstance as X, computed as L, shallowRef as Ee, watchEffect as _e } from "vue";
2
+ function J(e) {
3
+ return xe() ? (Ae(e), !0) : !1;
4
+ }
5
+ function je(e, t, { enumerable: n = !1, unwrap: r = !0 } = {}) {
6
+ for (const [o, i] of Object.entries(t))
7
+ o !== "value" && (fe(i) && r ? Object.defineProperty(e, o, {
8
+ get() {
9
+ return i.value;
10
+ },
11
+ set(s) {
12
+ i.value = s;
13
+ },
14
+ enumerable: n
15
+ }) : Object.defineProperty(e, o, { value: i, enumerable: n }));
16
+ return e;
17
+ }
18
+ function x(e) {
19
+ return typeof e == "function" ? e() : Me(e);
20
+ }
21
+ const ve = typeof window < "u" && typeof document < "u";
22
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
23
+ const De = (e) => typeof e < "u", Re = Object.prototype.toString, Te = (e) => Re.call(e) === "[object Object]", z = () => {
24
+ }, ee = /* @__PURE__ */ We();
25
+ function We() {
26
+ var e, t;
27
+ return ve && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
28
+ }
29
+ function pe(e, t) {
30
+ function n(...r) {
31
+ return new Promise((o, i) => {
32
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(o).catch(i);
33
+ });
34
+ }
35
+ return n;
36
+ }
37
+ const ge = (e) => e();
38
+ function Le(e, t = {}) {
39
+ let n, r, o = z;
40
+ const i = (u) => {
41
+ clearTimeout(u), o(), o = z;
42
+ };
43
+ return (u) => {
44
+ const d = x(e), l = x(t.maxWait);
45
+ return n && i(n), d <= 0 || l !== void 0 && l <= 0 ? (r && (i(r), r = null), Promise.resolve(u())) : new Promise((v, a) => {
46
+ o = t.rejectOnCancel ? a : v, l && !r && (r = setTimeout(() => {
47
+ n && i(n), r = null, v(u());
48
+ }, l)), n = setTimeout(() => {
49
+ r && i(r), r = null, v(u());
50
+ }, d);
51
+ });
52
+ };
53
+ }
54
+ function Ie(e = ge) {
55
+ const t = M(!0);
56
+ function n() {
57
+ t.value = !1;
58
+ }
59
+ function r() {
60
+ t.value = !0;
61
+ }
62
+ const o = (...i) => {
63
+ t.value && e(...i);
64
+ };
65
+ return { isActive: de(t), pause: n, resume: r, eventFilter: o };
66
+ }
67
+ function He(e) {
68
+ return e || X();
69
+ }
70
+ function be(...e) {
71
+ if (e.length !== 1)
72
+ return Ce(...e);
73
+ const t = e[0];
74
+ return typeof t == "function" ? de(ce(() => ({ get: t, set: z }))) : M(t);
75
+ }
76
+ function Pe(e, t = 200, n = {}) {
77
+ return pe(
78
+ Le(t, n),
79
+ e
80
+ );
81
+ }
82
+ function st(e, t = 200, n = {}) {
83
+ const r = M(e.value), o = Pe(() => {
84
+ r.value = e.value;
85
+ }, t, n);
86
+ return D(e, () => o()), r;
87
+ }
88
+ function at(e, t = {}) {
89
+ let n = e, r, o;
90
+ const i = ce((c, h) => (r = c, o = h, {
91
+ get() {
92
+ return s();
93
+ },
94
+ set(p) {
95
+ u(p);
96
+ }
97
+ }));
98
+ function s(c = !0) {
99
+ return c && r(), n;
100
+ }
101
+ function u(c, h = !0) {
102
+ var p, g;
103
+ if (c === n)
104
+ return;
105
+ const w = n;
106
+ ((p = t.onBeforeChange) == null ? void 0 : p.call(t, c, w)) !== !1 && (n = c, (g = t.onChanged) == null || g.call(t, c, w), h && o());
107
+ }
108
+ return je(
109
+ i,
110
+ {
111
+ get: s,
112
+ set: u,
113
+ untrackedGet: () => s(!1),
114
+ silentSet: (c) => u(c, !1),
115
+ peek: () => s(!1),
116
+ lay: (c) => u(c, !1)
117
+ },
118
+ { enumerable: !0 }
119
+ );
120
+ }
121
+ function Ve(e, t, n = {}) {
122
+ const {
123
+ eventFilter: r = ge,
124
+ ...o
125
+ } = n;
126
+ return D(
127
+ e,
128
+ pe(
129
+ r,
130
+ t
131
+ ),
132
+ o
133
+ );
134
+ }
135
+ function ke(e, t, n = {}) {
136
+ const {
137
+ eventFilter: r,
138
+ ...o
139
+ } = n, { eventFilter: i, pause: s, resume: u, isActive: d } = Ie(r);
140
+ return { stop: Ve(
141
+ e,
142
+ t,
143
+ {
144
+ ...o,
145
+ eventFilter: i
146
+ }
147
+ ), pause: s, resume: u, isActive: d };
148
+ }
149
+ function Z(e, t = !0, n) {
150
+ He() ? he(e, n) : t ? e() : U(e);
151
+ }
152
+ function lt(e = !1, t = {}) {
153
+ const {
154
+ truthyValue: n = !0,
155
+ falsyValue: r = !1
156
+ } = t, o = fe(e), i = M(e);
157
+ function s(u) {
158
+ if (arguments.length)
159
+ return i.value = u, i.value;
160
+ {
161
+ const d = x(n);
162
+ return i.value = i.value === d ? x(r) : d, i.value;
163
+ }
164
+ }
165
+ return o ? s : [i, s];
166
+ }
167
+ function W(e) {
168
+ var t;
169
+ const n = x(e);
170
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
171
+ }
172
+ const I = ve ? window : void 0;
173
+ function B(...e) {
174
+ let t, n, r, o;
175
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, o] = e, t = I) : [t, n, r, o] = e, !t)
176
+ return z;
177
+ Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
178
+ const i = [], s = () => {
179
+ i.forEach((v) => v()), i.length = 0;
180
+ }, u = (v, a, c, h) => (v.addEventListener(a, c, h), () => v.removeEventListener(a, c, h)), d = D(
181
+ () => [W(t), x(o)],
182
+ ([v, a]) => {
183
+ if (s(), !v)
184
+ return;
185
+ const c = Te(a) ? { ...a } : a;
186
+ i.push(
187
+ ...n.flatMap((h) => r.map((p) => u(v, h, p, c)))
188
+ );
189
+ },
190
+ { immediate: !0, flush: "post" }
191
+ ), l = () => {
192
+ d(), s();
193
+ };
194
+ return J(l), l;
195
+ }
196
+ function $e(e) {
197
+ return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
198
+ }
199
+ function ct(...e) {
200
+ let t, n, r = {};
201
+ e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
202
+ const {
203
+ target: o = I,
204
+ eventName: i = "keydown",
205
+ passive: s = !1,
206
+ dedupe: u = !1
207
+ } = r, d = $e(t);
208
+ return B(o, i, (v) => {
209
+ v.repeat && x(u) || d(v) && n(v);
210
+ }, s);
211
+ }
212
+ function Fe() {
213
+ const e = M(!1), t = X();
214
+ return t && he(() => {
215
+ e.value = !0;
216
+ }, t), e;
217
+ }
218
+ function me(e) {
219
+ const t = Fe();
220
+ return L(() => (t.value, !!e()));
221
+ }
222
+ function ze(e, t = {}) {
223
+ const { window: n = I } = t, r = me(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
224
+ let o;
225
+ const i = M(!1), s = (l) => {
226
+ i.value = l.matches;
227
+ }, u = () => {
228
+ o && ("removeEventListener" in o ? o.removeEventListener("change", s) : o.removeListener(s));
229
+ }, d = _e(() => {
230
+ r.value && (u(), o = n.matchMedia(x(e)), "addEventListener" in o ? o.addEventListener("change", s) : o.addListener(s), i.value = o.matches);
231
+ });
232
+ return J(() => {
233
+ d(), u(), o = void 0;
234
+ }), i;
235
+ }
236
+ function Be(e) {
237
+ return JSON.parse(JSON.stringify(e));
238
+ }
239
+ const k = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $ = "__vueuse_ssr_handlers__", Je = /* @__PURE__ */ Ge();
240
+ function Ge() {
241
+ return $ in k || (k[$] = k[$] || {}), k[$];
242
+ }
243
+ function ye(e, t) {
244
+ return Je[e] || t;
245
+ }
246
+ function Ke(e) {
247
+ 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";
248
+ }
249
+ const Ye = {
250
+ boolean: {
251
+ read: (e) => e === "true",
252
+ write: (e) => String(e)
253
+ },
254
+ object: {
255
+ read: (e) => JSON.parse(e),
256
+ write: (e) => JSON.stringify(e)
257
+ },
258
+ number: {
259
+ read: (e) => Number.parseFloat(e),
260
+ write: (e) => String(e)
261
+ },
262
+ any: {
263
+ read: (e) => e,
264
+ write: (e) => String(e)
265
+ },
266
+ string: {
267
+ read: (e) => e,
268
+ write: (e) => String(e)
269
+ },
270
+ map: {
271
+ read: (e) => new Map(JSON.parse(e)),
272
+ write: (e) => JSON.stringify(Array.from(e.entries()))
273
+ },
274
+ set: {
275
+ read: (e) => new Set(JSON.parse(e)),
276
+ write: (e) => JSON.stringify(Array.from(e))
277
+ },
278
+ date: {
279
+ read: (e) => new Date(e),
280
+ write: (e) => e.toISOString()
281
+ }
282
+ }, te = "vueuse-storage";
283
+ function qe(e, t, n, r = {}) {
284
+ var o;
285
+ const {
286
+ flush: i = "pre",
287
+ deep: s = !0,
288
+ listenToStorageChanges: u = !0,
289
+ writeDefaults: d = !0,
290
+ mergeDefaults: l = !1,
291
+ shallow: v,
292
+ window: a = I,
293
+ eventFilter: c,
294
+ onError: h = (f) => {
295
+ console.error(f);
296
+ },
297
+ initOnMounted: p
298
+ } = r, g = (v ? Ee : M)(typeof t == "function" ? t() : t);
299
+ if (!n)
300
+ try {
301
+ n = ye("getDefaultStorage", () => {
302
+ var f;
303
+ return (f = I) == null ? void 0 : f.localStorage;
304
+ })();
305
+ } catch (f) {
306
+ h(f);
307
+ }
308
+ if (!n)
309
+ return g;
310
+ const w = x(t), R = Ke(w), A = (o = r.serializer) != null ? o : Ye[R], { pause: y, resume: b } = ke(
311
+ g,
312
+ () => E(g.value),
313
+ { flush: i, deep: s, eventFilter: c }
314
+ );
315
+ a && u && Z(() => {
316
+ B(a, "storage", C), B(a, te, V), p && C();
317
+ }), p || C();
318
+ function N(f, S) {
319
+ a && a.dispatchEvent(new CustomEvent(te, {
320
+ detail: {
321
+ key: e,
322
+ oldValue: f,
323
+ newValue: S,
324
+ storageArea: n
325
+ }
326
+ }));
327
+ }
328
+ function E(f) {
329
+ try {
330
+ const S = n.getItem(e);
331
+ if (f == null)
332
+ N(S, null), n.removeItem(e);
333
+ else {
334
+ const T = A.write(f);
335
+ S !== T && (n.setItem(e, T), N(S, T));
336
+ }
337
+ } catch (S) {
338
+ h(S);
339
+ }
340
+ }
341
+ function H(f) {
342
+ const S = f ? f.newValue : n.getItem(e);
343
+ if (S == null)
344
+ return d && w != null && n.setItem(e, A.write(w)), w;
345
+ if (!f && l) {
346
+ const T = A.read(S);
347
+ return typeof l == "function" ? l(T, w) : R === "object" && !Array.isArray(T) ? { ...w, ...T } : T;
348
+ } else return typeof S != "string" ? S : A.read(S);
349
+ }
350
+ function C(f) {
351
+ if (!(f && f.storageArea !== n)) {
352
+ if (f && f.key == null) {
353
+ g.value = w;
354
+ return;
355
+ }
356
+ if (!(f && f.key !== e)) {
357
+ y();
358
+ try {
359
+ (f == null ? void 0 : f.newValue) !== A.write(g.value) && (g.value = H(f));
360
+ } catch (S) {
361
+ h(S);
362
+ } finally {
363
+ f ? U(b) : b();
364
+ }
365
+ }
366
+ }
367
+ }
368
+ function V(f) {
369
+ C(f.detail);
370
+ }
371
+ return g;
372
+ }
373
+ function Qe(e) {
374
+ return ze("(prefers-color-scheme: dark)", e);
375
+ }
376
+ function ft(e = {}) {
377
+ const {
378
+ selector: t = "html",
379
+ attribute: n = "class",
380
+ initialValue: r = "auto",
381
+ window: o = I,
382
+ storage: i,
383
+ storageKey: s = "vueuse-color-scheme",
384
+ listenToStorageChanges: u = !0,
385
+ storageRef: d,
386
+ emitAuto: l,
387
+ disableTransition: v = !0
388
+ } = e, a = {
389
+ auto: "",
390
+ light: "light",
391
+ dark: "dark",
392
+ ...e.modes || {}
393
+ }, c = Qe({ window: o }), h = L(() => c.value ? "dark" : "light"), p = d || (s == null ? be(r) : qe(s, r, i, { window: o, listenToStorageChanges: u })), g = L(() => p.value === "auto" ? h.value : p.value), w = ye(
394
+ "updateHTMLAttrs",
395
+ (b, N, E) => {
396
+ const H = typeof b == "string" ? o == null ? void 0 : o.document.querySelector(b) : W(b);
397
+ if (!H)
398
+ return;
399
+ let C;
400
+ if (v && (C = o.document.createElement("style"), C.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), o.document.head.appendChild(C)), N === "class") {
401
+ const V = E.split(/\s/g);
402
+ Object.values(a).flatMap((f) => (f || "").split(/\s/g)).filter(Boolean).forEach((f) => {
403
+ V.includes(f) ? H.classList.add(f) : H.classList.remove(f);
404
+ });
405
+ } else
406
+ H.setAttribute(N, E);
407
+ v && (o.getComputedStyle(C).opacity, document.head.removeChild(C));
408
+ }
409
+ );
410
+ function R(b) {
411
+ var N;
412
+ w(t, n, (N = a[b]) != null ? N : b);
413
+ }
414
+ function A(b) {
415
+ e.onChanged ? e.onChanged(b, R) : R(b);
416
+ }
417
+ D(g, A, { flush: "post", immediate: !0 }), Z(() => A(g.value));
418
+ const y = L({
419
+ get() {
420
+ return l ? p.value : g.value;
421
+ },
422
+ set(b) {
423
+ p.value = b;
424
+ }
425
+ });
426
+ try {
427
+ return Object.assign(y, { store: p, system: h, state: g });
428
+ } catch {
429
+ return y;
430
+ }
431
+ }
432
+ function Ue(e, t, n = {}) {
433
+ const { window: r = I, ...o } = n;
434
+ let i;
435
+ const s = me(() => r && "ResizeObserver" in r), u = () => {
436
+ i && (i.disconnect(), i = void 0);
437
+ }, d = L(() => Array.isArray(e) ? e.map((a) => W(a)) : [W(e)]), l = D(
438
+ d,
439
+ (a) => {
440
+ if (u(), s.value && r) {
441
+ i = new ResizeObserver(t);
442
+ for (const c of a)
443
+ c && i.observe(c, o);
444
+ }
445
+ },
446
+ { immediate: !0, flush: "post" }
447
+ ), v = () => {
448
+ u(), l();
449
+ };
450
+ return J(v), {
451
+ isSupported: s,
452
+ stop: v
453
+ };
454
+ }
455
+ function dt(e, t = { width: 0, height: 0 }, n = {}) {
456
+ const { window: r = I, box: o = "content-box" } = n, i = L(() => {
457
+ var a, c;
458
+ return (c = (a = W(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : c.includes("svg");
459
+ }), s = M(t.width), u = M(t.height), { stop: d } = Ue(
460
+ e,
461
+ ([a]) => {
462
+ const c = o === "border-box" ? a.borderBoxSize : o === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
463
+ if (r && i.value) {
464
+ const h = W(e);
465
+ if (h) {
466
+ const p = h.getBoundingClientRect();
467
+ s.value = p.width, u.value = p.height;
468
+ }
469
+ } else if (c) {
470
+ const h = Array.isArray(c) ? c : [c];
471
+ s.value = h.reduce((p, { inlineSize: g }) => p + g, 0), u.value = h.reduce((p, { blockSize: g }) => p + g, 0);
472
+ } else
473
+ s.value = a.contentRect.width, u.value = a.contentRect.height;
474
+ },
475
+ n
476
+ );
477
+ Z(() => {
478
+ const a = W(e);
479
+ a && (s.value = "offsetWidth" in a ? a.offsetWidth : t.width, u.value = "offsetHeight" in a ? a.offsetHeight : t.height);
480
+ });
481
+ const l = D(
482
+ () => W(e),
483
+ (a) => {
484
+ s.value = a ? t.width : 0, u.value = a ? t.height : 0;
485
+ }
486
+ );
487
+ function v() {
488
+ d(), l();
489
+ }
490
+ return {
491
+ width: s,
492
+ height: u,
493
+ stop: v
494
+ };
495
+ }
496
+ function G(e) {
497
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
498
+ }
499
+ function we(e) {
500
+ const t = window.getComputedStyle(e);
501
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
502
+ return !0;
503
+ {
504
+ const n = e.parentNode;
505
+ return !n || n.tagName === "BODY" ? !1 : we(n);
506
+ }
507
+ }
508
+ function Xe(e) {
509
+ const t = e || window.event, n = t.target;
510
+ return we(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
511
+ }
512
+ const K = /* @__PURE__ */ new WeakMap();
513
+ function ht(e, t = !1) {
514
+ const n = M(t);
515
+ let r = null, o = "";
516
+ D(be(e), (u) => {
517
+ const d = G(x(u));
518
+ if (d) {
519
+ const l = d;
520
+ if (K.get(l) || K.set(l, l.style.overflow), l.style.overflow !== "hidden" && (o = l.style.overflow), l.style.overflow === "hidden")
521
+ return n.value = !0;
522
+ if (n.value)
523
+ return l.style.overflow = "hidden";
524
+ }
525
+ }, {
526
+ immediate: !0
527
+ });
528
+ const i = () => {
529
+ const u = G(x(e));
530
+ !u || n.value || (ee && (r = B(
531
+ u,
532
+ "touchmove",
533
+ (d) => {
534
+ Xe(d);
535
+ },
536
+ { passive: !1 }
537
+ )), u.style.overflow = "hidden", n.value = !0);
538
+ }, s = () => {
539
+ const u = G(x(e));
540
+ !u || !n.value || (ee && (r == null || r()), u.style.overflow = o, K.delete(u), n.value = !1);
541
+ };
542
+ return J(s), L({
543
+ get() {
544
+ return n.value;
545
+ },
546
+ set(u) {
547
+ u ? i() : s();
548
+ }
549
+ });
550
+ }
551
+ function vt(e, t, n, r = {}) {
552
+ var o, i, s;
553
+ const {
554
+ clone: u = !1,
555
+ passive: d = !1,
556
+ eventName: l,
557
+ deep: v = !1,
558
+ defaultValue: a,
559
+ shouldEmit: c
560
+ } = r, h = X(), p = n || (h == null ? void 0 : h.emit) || ((o = h == null ? void 0 : h.$emit) == null ? void 0 : o.bind(h)) || ((s = (i = h == null ? void 0 : h.proxy) == null ? void 0 : i.$emit) == null ? void 0 : s.bind(h == null ? void 0 : h.proxy));
561
+ let g = l;
562
+ t || (t = "modelValue"), g = g || `update:${t.toString()}`;
563
+ const w = (y) => u ? typeof u == "function" ? u(y) : Be(y) : y, R = () => De(e[t]) ? w(e[t]) : a, A = (y) => {
564
+ c ? c(y) && p(g, y) : p(g, y);
565
+ };
566
+ if (d) {
567
+ const y = R(), b = M(y);
568
+ let N = !1;
569
+ return D(
570
+ () => e[t],
571
+ (E) => {
572
+ N || (N = !0, b.value = w(E), U(() => N = !1));
573
+ }
574
+ ), D(
575
+ b,
576
+ (E) => {
577
+ !N && (E !== e[t] || v) && A(E);
578
+ },
579
+ { deep: v }
580
+ ), b;
581
+ } else
582
+ return L({
583
+ get() {
584
+ return R();
585
+ },
586
+ set(y) {
587
+ A(y);
588
+ }
589
+ });
590
+ }
591
+ var Ze = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, _ = function(e) {
592
+ return typeof e == "string" ? e.length > 0 : typeof e == "number";
593
+ }, m = function(e, t, n) {
594
+ return t === void 0 && (t = 0), n === void 0 && (n = Math.pow(10, t)), Math.round(n * e) / n + 0;
595
+ }, O = function(e, t, n) {
596
+ return t === void 0 && (t = 0), n === void 0 && (n = 1), e > n ? n : e > t ? e : t;
597
+ }, Se = function(e) {
598
+ return (e = isFinite(e) ? e % 360 : 0) > 0 ? e : e + 360;
599
+ }, ne = function(e) {
600
+ return { r: O(e.r, 0, 255), g: O(e.g, 0, 255), b: O(e.b, 0, 255), a: O(e.a) };
601
+ }, Y = function(e) {
602
+ return { r: m(e.r), g: m(e.g), b: m(e.b), a: m(e.a, 3) };
603
+ }, et = /^#([0-9a-f]{3,8})$/i, F = function(e) {
604
+ var t = e.toString(16);
605
+ return t.length < 2 ? "0" + t : t;
606
+ }, Ne = function(e) {
607
+ var t = e.r, n = e.g, r = e.b, o = e.a, i = Math.max(t, n, r), s = i - Math.min(t, n, r), u = s ? i === t ? (n - r) / s : i === n ? 2 + (r - t) / s : 4 + (t - n) / s : 0;
608
+ return { h: 60 * (u < 0 ? u + 6 : u), s: i ? s / i * 100 : 0, v: i / 255 * 100, a: o };
609
+ }, Oe = function(e) {
610
+ var t = e.h, n = e.s, r = e.v, o = e.a;
611
+ t = t / 360 * 6, n /= 100, r /= 100;
612
+ var i = Math.floor(t), s = r * (1 - n), u = r * (1 - (t - i) * n), d = r * (1 - (1 - t + i) * n), l = i % 6;
613
+ return { r: 255 * [r, u, s, s, d, r][l], g: 255 * [d, r, r, u, s, s][l], b: 255 * [s, s, d, r, r, u][l], a: o };
614
+ }, re = function(e) {
615
+ return { h: Se(e.h), s: O(e.s, 0, 100), l: O(e.l, 0, 100), a: O(e.a) };
616
+ }, oe = function(e) {
617
+ return { h: m(e.h), s: m(e.s), l: m(e.l), a: m(e.a, 3) };
618
+ }, ie = function(e) {
619
+ return Oe((n = (t = e).s, { h: t.h, s: (n *= ((r = t.l) < 50 ? r : 100 - r) / 100) > 0 ? 2 * n / (r + n) * 100 : 0, v: r + n, a: t.a }));
620
+ var t, n, r;
621
+ }, P = function(e) {
622
+ return { h: (t = Ne(e)).h, s: (o = (200 - (n = t.s)) * (r = t.v) / 100) > 0 && o < 200 ? n * r / 100 / (o <= 100 ? o : 200 - o) * 100 : 0, l: o / 2, a: t.a };
623
+ var t, n, r, o;
624
+ }, tt = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, nt = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, rt = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ot = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, ue = { string: [[function(e) {
625
+ var t = et.exec(e);
626
+ return t ? (e = t[1]).length <= 4 ? { r: parseInt(e[0] + e[0], 16), g: parseInt(e[1] + e[1], 16), b: parseInt(e[2] + e[2], 16), a: e.length === 4 ? m(parseInt(e[3] + e[3], 16) / 255, 2) : 1 } : e.length === 6 || e.length === 8 ? { r: parseInt(e.substr(0, 2), 16), g: parseInt(e.substr(2, 2), 16), b: parseInt(e.substr(4, 2), 16), a: e.length === 8 ? m(parseInt(e.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
627
+ }, "hex"], [function(e) {
628
+ var t = rt.exec(e) || ot.exec(e);
629
+ return t ? t[2] !== t[4] || t[4] !== t[6] ? null : ne({ r: Number(t[1]) / (t[2] ? 100 / 255 : 1), g: Number(t[3]) / (t[4] ? 100 / 255 : 1), b: Number(t[5]) / (t[6] ? 100 / 255 : 1), a: t[7] === void 0 ? 1 : Number(t[7]) / (t[8] ? 100 : 1) }) : null;
630
+ }, "rgb"], [function(e) {
631
+ var t = tt.exec(e) || nt.exec(e);
632
+ if (!t) return null;
633
+ var n, r, o = re({ h: (n = t[1], r = t[2], r === void 0 && (r = "deg"), Number(n) * (Ze[r] || 1)), s: Number(t[3]), l: Number(t[4]), a: t[5] === void 0 ? 1 : Number(t[5]) / (t[6] ? 100 : 1) });
634
+ return ie(o);
635
+ }, "hsl"]], object: [[function(e) {
636
+ var t = e.r, n = e.g, r = e.b, o = e.a, i = o === void 0 ? 1 : o;
637
+ return _(t) && _(n) && _(r) ? ne({ r: Number(t), g: Number(n), b: Number(r), a: Number(i) }) : null;
638
+ }, "rgb"], [function(e) {
639
+ var t = e.h, n = e.s, r = e.l, o = e.a, i = o === void 0 ? 1 : o;
640
+ if (!_(t) || !_(n) || !_(r)) return null;
641
+ var s = re({ h: Number(t), s: Number(n), l: Number(r), a: Number(i) });
642
+ return ie(s);
643
+ }, "hsl"], [function(e) {
644
+ var t = e.h, n = e.s, r = e.v, o = e.a, i = o === void 0 ? 1 : o;
645
+ if (!_(t) || !_(n) || !_(r)) return null;
646
+ var s = function(u) {
647
+ return { h: Se(u.h), s: O(u.s, 0, 100), v: O(u.v, 0, 100), a: O(u.a) };
648
+ }({ h: Number(t), s: Number(n), v: Number(r), a: Number(i) });
649
+ return Oe(s);
650
+ }, "hsv"]] }, se = function(e, t) {
651
+ for (var n = 0; n < t.length; n++) {
652
+ var r = t[n][0](e);
653
+ if (r) return [r, t[n][1]];
654
+ }
655
+ return [null, void 0];
656
+ }, it = function(e) {
657
+ return typeof e == "string" ? se(e.trim(), ue.string) : typeof e == "object" && e !== null ? se(e, ue.object) : [null, void 0];
658
+ }, q = function(e, t) {
659
+ var n = P(e);
660
+ return { h: n.h, s: O(n.s + 100 * t, 0, 100), l: n.l, a: n.a };
661
+ }, Q = function(e) {
662
+ return (299 * e.r + 587 * e.g + 114 * e.b) / 1e3 / 255;
663
+ }, ae = function(e, t) {
664
+ var n = P(e);
665
+ return { h: n.h, s: n.s, l: O(n.l + 100 * t, 0, 100), a: n.a };
666
+ }, le = function() {
667
+ function e(t) {
668
+ this.parsed = it(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
669
+ }
670
+ return e.prototype.isValid = function() {
671
+ return this.parsed !== null;
672
+ }, e.prototype.brightness = function() {
673
+ return m(Q(this.rgba), 2);
674
+ }, e.prototype.isDark = function() {
675
+ return Q(this.rgba) < 0.5;
676
+ }, e.prototype.isLight = function() {
677
+ return Q(this.rgba) >= 0.5;
678
+ }, e.prototype.toHex = function() {
679
+ return t = Y(this.rgba), n = t.r, r = t.g, o = t.b, s = (i = t.a) < 1 ? F(m(255 * i)) : "", "#" + F(n) + F(r) + F(o) + s;
680
+ var t, n, r, o, i, s;
681
+ }, e.prototype.toRgb = function() {
682
+ return Y(this.rgba);
683
+ }, e.prototype.toRgbString = function() {
684
+ return t = Y(this.rgba), n = t.r, r = t.g, o = t.b, (i = t.a) < 1 ? "rgba(" + n + ", " + r + ", " + o + ", " + i + ")" : "rgb(" + n + ", " + r + ", " + o + ")";
685
+ var t, n, r, o, i;
686
+ }, e.prototype.toHsl = function() {
687
+ return oe(P(this.rgba));
688
+ }, e.prototype.toHslString = function() {
689
+ return t = oe(P(this.rgba)), n = t.h, r = t.s, o = t.l, (i = t.a) < 1 ? "hsla(" + n + ", " + r + "%, " + o + "%, " + i + ")" : "hsl(" + n + ", " + r + "%, " + o + "%)";
690
+ var t, n, r, o, i;
691
+ }, e.prototype.toHsv = function() {
692
+ return t = Ne(this.rgba), { h: m(t.h), s: m(t.s), v: m(t.v), a: m(t.a, 3) };
693
+ var t;
694
+ }, e.prototype.invert = function() {
695
+ return j({ r: 255 - (t = this.rgba).r, g: 255 - t.g, b: 255 - t.b, a: t.a });
696
+ var t;
697
+ }, e.prototype.saturate = function(t) {
698
+ return t === void 0 && (t = 0.1), j(q(this.rgba, t));
699
+ }, e.prototype.desaturate = function(t) {
700
+ return t === void 0 && (t = 0.1), j(q(this.rgba, -t));
701
+ }, e.prototype.grayscale = function() {
702
+ return j(q(this.rgba, -1));
703
+ }, e.prototype.lighten = function(t) {
704
+ return t === void 0 && (t = 0.1), j(ae(this.rgba, t));
705
+ }, e.prototype.darken = function(t) {
706
+ return t === void 0 && (t = 0.1), j(ae(this.rgba, -t));
707
+ }, e.prototype.rotate = function(t) {
708
+ return t === void 0 && (t = 15), this.hue(this.hue() + t);
709
+ }, e.prototype.alpha = function(t) {
710
+ return typeof t == "number" ? j({ r: (n = this.rgba).r, g: n.g, b: n.b, a: t }) : m(this.rgba.a, 3);
711
+ var n;
712
+ }, e.prototype.hue = function(t) {
713
+ var n = P(this.rgba);
714
+ return typeof t == "number" ? j({ h: t, s: n.s, l: n.l, a: n.a }) : m(n.h);
715
+ }, e.prototype.isEqual = function(t) {
716
+ return this.toHex() === j(t).toHex();
717
+ }, e;
718
+ }(), j = function(e) {
719
+ return e instanceof le ? e : new le(e);
720
+ };
721
+ export {
722
+ vt as a,
723
+ ht as b,
724
+ at as c,
725
+ lt as d,
726
+ dt as e,
727
+ ct as o,
728
+ st as r,
729
+ ft as u,
730
+ j as w
731
+ };