@admin-core/design 0.1.0 → 0.2.1

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 (45) hide show
  1. package/README.en.md +698 -0
  2. package/README.md +588 -285
  3. package/dist/index.cjs +5 -1
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +2616 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.umd.js +5 -1
  10. package/dist/index.umd.js.map +1 -1
  11. package/dist/style.css +1 -1
  12. package/dist/theme/composables.d.ts +89 -0
  13. package/dist/theme/composables.d.ts.map +1 -0
  14. package/dist/theme/constants.d.ts +56 -0
  15. package/dist/theme/constants.d.ts.map +1 -0
  16. package/dist/theme/i18n/en-US.d.ts +3 -0
  17. package/dist/theme/i18n/en-US.d.ts.map +1 -0
  18. package/dist/theme/i18n/index.d.ts +34 -0
  19. package/dist/theme/i18n/index.d.ts.map +1 -0
  20. package/dist/theme/i18n/zh-CN.d.ts +69 -0
  21. package/dist/theme/i18n/zh-CN.d.ts.map +1 -0
  22. package/dist/theme/index.d.ts +52 -0
  23. package/dist/theme/index.d.ts.map +1 -0
  24. package/dist/theme/integration.d.ts +124 -0
  25. package/dist/theme/integration.d.ts.map +1 -0
  26. package/dist/theme/types.d.ts +135 -0
  27. package/dist/theme/types.d.ts.map +1 -0
  28. package/dist/theme/utils.d.ts +230 -0
  29. package/dist/theme/utils.d.ts.map +1 -0
  30. package/package.json +32 -4
  31. package/src/css/base.css +145 -0
  32. package/src/css/components.css +96 -0
  33. package/src/css/index.css +21 -0
  34. package/src/css/integrations/ant-design-vue.css +64 -0
  35. package/src/css/integrations/arco-design.css +62 -0
  36. package/src/css/integrations/element-plus.css +157 -0
  37. package/src/css/integrations/index.css +17 -0
  38. package/src/css/integrations/naive-ui.css +60 -0
  39. package/src/css/nprogress.css +74 -0
  40. package/src/css/transition.css +256 -0
  41. package/src/css/ui.css +117 -0
  42. package/src/css/utilities.css +138 -0
  43. package/src/tokens/dark.css +406 -0
  44. package/src/tokens/index.ts +6 -0
  45. package/src/tokens/light.css +297 -0
package/dist/index.js CHANGED
@@ -1,2 +1,2617 @@
1
-
1
+ const vn = {
2
+ themes: {
3
+ default: {
4
+ name: "经典蓝",
5
+ description: "经典的蓝色主题,适合大多数场景"
6
+ },
7
+ slate: {
8
+ name: "石板灰",
9
+ description: "石板色主题,沉稳内敛"
10
+ },
11
+ "burnished-lilac": {
12
+ name: "烟熏薰衣草",
13
+ description: "2026流行色 - 优雅的薰衣草紫,展现高贵气质"
14
+ },
15
+ teaberry: {
16
+ name: "茶莓红",
17
+ description: "2026流行色 - 浪漫的茶莓色,充满活力"
18
+ },
19
+ amaranth: {
20
+ name: "苋菜紫",
21
+ description: "2026流行色 - 神秘的苋菜紫,时尚前卫"
22
+ },
23
+ "pulse-blue": {
24
+ name: "脉冲蓝",
25
+ description: "2026流行色 - 充满活力的脉冲蓝,现代时尚"
26
+ },
27
+ "deep-teal": {
28
+ name: "深邃青",
29
+ description: "2026流行色 - 深邃的青色,沉稳大气"
30
+ },
31
+ "mermaid-aqua": {
32
+ name: "美人鱼蓝",
33
+ description: "2026流行色 - 梦幻的美人鱼蓝,清新可爱"
34
+ },
35
+ "pearl-purple": {
36
+ name: "珍珠紫",
37
+ description: "2026流行色 - 柔和的珍珠紫,优雅迷人"
38
+ },
39
+ burgundy: {
40
+ name: "勃艮第",
41
+ description: "2026流行色 - 高端奢华的勃艮第红,尊贵典雅"
42
+ },
43
+ "burnt-sienna": {
44
+ name: "焦赭石",
45
+ description: "2026流行色 - 温暖的焦赭石色,自然大地"
46
+ },
47
+ "olive-sage": {
48
+ name: "橄榄绿",
49
+ description: "2026流行色 - 沉稳的橄榄绿,自然和谐"
50
+ },
51
+ "champagne-gold": {
52
+ name: "香槟金",
53
+ description: "2026流行色 - 奢华的香槟金,高贵优雅"
54
+ },
55
+ "dusty-rose": {
56
+ name: "灰玫瑰",
57
+ description: "2026流行色 - 柔和的灰玫瑰色,温柔可爱"
58
+ },
59
+ "citrus-green": {
60
+ name: "柑橘绿",
61
+ description: "2026流行色 - 清新的柑橘绿,充满生机"
62
+ }
63
+ }
64
+ }, bn = {
65
+ themes: {
66
+ default: {
67
+ name: "Classic Blue",
68
+ description: "Classic blue theme, suitable for most scenarios"
69
+ },
70
+ slate: {
71
+ name: "Slate Gray",
72
+ description: "Slate color theme, calm and restrained"
73
+ },
74
+ "burnished-lilac": {
75
+ name: "Burnished Lilac",
76
+ description: "2026 Trending Color - Elegant lavender purple, showcasing noble temperament"
77
+ },
78
+ teaberry: {
79
+ name: "Teaberry",
80
+ description: "2026 Trending Color - Romantic teaberry color, full of vitality"
81
+ },
82
+ amaranth: {
83
+ name: "Amaranth Purple",
84
+ description: "2026 Trending Color - Mysterious amaranth purple, fashionable and avant-garde"
85
+ },
86
+ "pulse-blue": {
87
+ name: "Pulse Blue",
88
+ description: "2026 Trending Color - Vibrant pulse blue, modern and stylish"
89
+ },
90
+ "deep-teal": {
91
+ name: "Deep Teal",
92
+ description: "2026 Trending Color - Deep teal, calm and atmospheric"
93
+ },
94
+ "mermaid-aqua": {
95
+ name: "Mermaid Aqua",
96
+ description: "2026 Trending Color - Dreamy mermaid aqua, fresh and cute"
97
+ },
98
+ "pearl-purple": {
99
+ name: "Pearl Purple",
100
+ description: "2026 Trending Color - Soft pearl purple, elegant and charming"
101
+ },
102
+ burgundy: {
103
+ name: "Burgundy",
104
+ description: "2026 Trending Color - High-end luxurious burgundy, noble and elegant"
105
+ },
106
+ "burnt-sienna": {
107
+ name: "Burnt Sienna",
108
+ description: "2026 Trending Color - Warm burnt sienna, natural and earthy"
109
+ },
110
+ "olive-sage": {
111
+ name: "Olive Sage",
112
+ description: "2026 Trending Color - Calm olive green, natural and harmonious"
113
+ },
114
+ "champagne-gold": {
115
+ name: "Champagne Gold",
116
+ description: "2026 Trending Color - Luxurious champagne gold, noble and elegant"
117
+ },
118
+ "dusty-rose": {
119
+ name: "Dusty Rose",
120
+ description: "2026 Trending Color - Soft dusty rose, gentle and lovely"
121
+ },
122
+ "citrus-green": {
123
+ name: "Citrus Green",
124
+ description: "2026 Trending Color - Fresh citrus green, full of vitality"
125
+ }
126
+ }
127
+ }, Mt = {
128
+ "zh-CN": vn,
129
+ "en-US": bn
130
+ }, Ze = "zh-CN";
131
+ let Ve = Ze;
132
+ function ho(e) {
133
+ Mt[e] ? Ve = e : (console.warn(`Locale "${e}" is not supported, falling back to "${Ze}"`), Ve = Ze);
134
+ }
135
+ function go() {
136
+ return Ve;
137
+ }
138
+ function xt() {
139
+ return Mt[Ve];
140
+ }
141
+ function En(e) {
142
+ return xt().themes[e]?.name || e;
143
+ }
144
+ function wn(e) {
145
+ return xt().themes[e]?.description || "";
146
+ }
147
+ const at = "light", Ie = "default", ae = {
148
+ MODE: "theme-mode",
149
+ VARIANT: "theme-variant"
150
+ }, pe = {
151
+ DARK: "dark",
152
+ LIGHT: "light"
153
+ }, Re = {
154
+ THEME: "data-theme",
155
+ MODE: "data-mode"
156
+ }, Xe = 300, Sn = [
157
+ {
158
+ id: "default",
159
+ icon: "🔵",
160
+ primaryColor: "hsl(212, 100%, 48%)",
161
+ category: "colorful",
162
+ isDefault: !0
163
+ },
164
+ {
165
+ id: "slate",
166
+ icon: "🔘",
167
+ primaryColor: "hsl(215, 20%, 40%)",
168
+ category: "neutral"
169
+ },
170
+ {
171
+ id: "burnished-lilac",
172
+ icon: "🪻",
173
+ primaryColor: "hsl(280, 35%, 65%)",
174
+ category: "colorful"
175
+ },
176
+ {
177
+ id: "teaberry",
178
+ icon: "🌹",
179
+ primaryColor: "hsl(345, 75%, 55%)",
180
+ category: "colorful"
181
+ },
182
+ {
183
+ id: "amaranth",
184
+ icon: "💜",
185
+ primaryColor: "hsl(310, 60%, 45%)",
186
+ category: "colorful"
187
+ },
188
+ {
189
+ id: "pulse-blue",
190
+ icon: "💙",
191
+ primaryColor: "hsl(200, 85%, 50%)",
192
+ category: "colorful"
193
+ },
194
+ {
195
+ id: "deep-teal",
196
+ icon: "🩵",
197
+ primaryColor: "hsl(180, 65%, 35%)",
198
+ category: "colorful"
199
+ },
200
+ {
201
+ id: "mermaid-aqua",
202
+ icon: "🧜‍♀️",
203
+ primaryColor: "hsl(185, 70%, 55%)",
204
+ category: "colorful"
205
+ },
206
+ {
207
+ id: "pearl-purple",
208
+ icon: "🔮",
209
+ primaryColor: "hsl(270, 45%, 70%)",
210
+ category: "colorful"
211
+ },
212
+ {
213
+ id: "burgundy",
214
+ icon: "🍷",
215
+ primaryColor: "hsl(345, 65%, 40%)",
216
+ category: "colorful"
217
+ },
218
+ {
219
+ id: "burnt-sienna",
220
+ icon: "🍂",
221
+ primaryColor: "hsl(15, 60%, 50%)",
222
+ category: "colorful"
223
+ },
224
+ {
225
+ id: "olive-sage",
226
+ icon: "🫒",
227
+ primaryColor: "hsl(80, 30%, 45%)",
228
+ category: "colorful"
229
+ },
230
+ {
231
+ id: "champagne-gold",
232
+ icon: "🥂",
233
+ primaryColor: "hsl(45, 55%, 60%)",
234
+ category: "colorful"
235
+ },
236
+ {
237
+ id: "dusty-rose",
238
+ icon: "🌸",
239
+ primaryColor: "hsl(350, 40%, 65%)",
240
+ category: "colorful"
241
+ },
242
+ {
243
+ id: "citrus-green",
244
+ icon: "🍋",
245
+ primaryColor: "hsl(75, 70%, 50%)",
246
+ category: "colorful"
247
+ }
248
+ ];
249
+ function ne() {
250
+ return Sn.map((e) => ({
251
+ ...e,
252
+ name: En(e.id),
253
+ description: wn(e.id)
254
+ }));
255
+ }
256
+ const mo = ne(), _o = {
257
+ get colorful() {
258
+ return ne().filter((e) => e.category === "colorful");
259
+ },
260
+ get neutral() {
261
+ return ne().filter((e) => e.category === "neutral");
262
+ },
263
+ get monochrome() {
264
+ return ne().filter((e) => e.category === "monochrome");
265
+ }
266
+ }, ct = new Map(
267
+ ne().map((e) => [e.id, e])
268
+ );
269
+ function F() {
270
+ return document.documentElement;
271
+ }
272
+ function Nn() {
273
+ if (typeof window > "u") return null;
274
+ const e = localStorage.getItem(ae.MODE);
275
+ return e === "dark" || e === "light" ? e : null;
276
+ }
277
+ function Tn() {
278
+ if (typeof window > "u") return null;
279
+ const e = localStorage.getItem(ae.VARIANT);
280
+ return ct.has(e) ? e : null;
281
+ }
282
+ function Dn(e) {
283
+ typeof window > "u" || localStorage.setItem(ae.MODE, e);
284
+ }
285
+ function Cn(e) {
286
+ typeof window > "u" || localStorage.setItem(ae.VARIANT, e);
287
+ }
288
+ function yo() {
289
+ typeof window > "u" || (localStorage.removeItem(ae.MODE), localStorage.removeItem(ae.VARIANT));
290
+ }
291
+ function On(e) {
292
+ const t = F();
293
+ e === "dark" ? (t.classList.add(pe.DARK), t.classList.remove(pe.LIGHT)) : (t.classList.remove(pe.DARK), t.classList.add(pe.LIGHT)), t.setAttribute(Re.MODE, e);
294
+ const n = localStorage.getItem("custom-theme-primary"), r = localStorage.getItem("custom-theme-active") === "true";
295
+ n && r && setTimeout(() => {
296
+ const o = It(n, e);
297
+ lt(o, !1);
298
+ }, 0);
299
+ }
300
+ function $n(e) {
301
+ const t = F();
302
+ e === "default" || e === Ie ? t.removeAttribute(Re.THEME) : t.setAttribute(Re.THEME, e), localStorage.getItem("custom-theme-primary") && (localStorage.setItem("custom-theme-active", "false"), [
303
+ "primary",
304
+ "primary-foreground",
305
+ "secondary",
306
+ "secondary-foreground",
307
+ "accent",
308
+ "accent-foreground",
309
+ "muted",
310
+ "muted-foreground",
311
+ "background",
312
+ "background-deep",
313
+ "foreground",
314
+ "card",
315
+ "card-foreground",
316
+ "border",
317
+ "input",
318
+ "ring",
319
+ "sidebar",
320
+ "sidebar-deep",
321
+ "header",
322
+ "menu"
323
+ ].forEach((o) => {
324
+ t.style.removeProperty(`--${o}`);
325
+ }));
326
+ }
327
+ function Vt() {
328
+ return typeof window > "u" ? at : F().classList.contains(pe.DARK) ? "dark" : "light";
329
+ }
330
+ function vo() {
331
+ return typeof window > "u" ? Ie : F().getAttribute(Re.THEME) || Ie;
332
+ }
333
+ function he(e, t = {}) {
334
+ const { mode: n, variant: r, persist: o = !0 } = e, { transition: s = !0 } = t;
335
+ s && Mn(), n && (On(n), o && Dn(n)), r && ($n(r), o && Cn(r)), s && setTimeout(() => {
336
+ xn();
337
+ }, Xe);
338
+ }
339
+ function Mn() {
340
+ F().style.setProperty("transition", `background-color ${Xe}ms ease, color ${Xe}ms ease`);
341
+ }
342
+ function xn() {
343
+ F().style.removeProperty("transition");
344
+ }
345
+ function Vn(e = {}) {
346
+ const n = Vt() === "dark" ? "light" : "dark";
347
+ return he({ mode: n }, e), n;
348
+ }
349
+ function In() {
350
+ const e = Nn(), t = Tn(), n = {
351
+ mode: e || at,
352
+ variant: t || Ie,
353
+ persist: !0,
354
+ enableTransition: !1
355
+ // 初始化时不启用过渡
356
+ };
357
+ return he(n, { transition: !1 }), n;
358
+ }
359
+ function bo() {
360
+ return typeof window > "u" ? at : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
361
+ }
362
+ function Rn(e) {
363
+ if (typeof window > "u") return () => {
364
+ };
365
+ const t = window.matchMedia("(prefers-color-scheme: dark)"), n = (r) => {
366
+ e(r.matches ? "dark" : "light");
367
+ };
368
+ return t.addEventListener("change", n), () => {
369
+ t.removeEventListener("change", n);
370
+ };
371
+ }
372
+ function An() {
373
+ return ne();
374
+ }
375
+ function Fn(e) {
376
+ return ct.get(e);
377
+ }
378
+ function St(e) {
379
+ const n = e.replace(/hsl\(|\)|%/g, "").trim().split(/[\s,]+/).map(Number);
380
+ if (n.length < 3 || n[0] === void 0 || n[1] === void 0 || n[2] === void 0)
381
+ return null;
382
+ const r = {
383
+ h: n[0],
384
+ s: n[1],
385
+ l: n[2]
386
+ };
387
+ return n[3] !== void 0 && (r.a = n[3]), r;
388
+ }
389
+ function Eo(e) {
390
+ const { h: t, s: n, l: r, a: o } = e;
391
+ return o !== void 0 && o !== 1 ? `hsla(${t}, ${n}%, ${r}%, ${o})` : `hsl(${t}, ${n}%, ${r}%)`;
392
+ }
393
+ function We(e) {
394
+ if (typeof window > "u") return "";
395
+ const t = F();
396
+ return getComputedStyle(t).getPropertyValue(`--${e}`).trim();
397
+ }
398
+ function wo(e, t) {
399
+ if (typeof window > "u") return;
400
+ F().style.setProperty(`--${e}`, t);
401
+ }
402
+ function So(e) {
403
+ const t = We(e);
404
+ return t && !t.startsWith("hsl") ? `hsl(${t})` : t;
405
+ }
406
+ function No(e) {
407
+ return ct.has(e);
408
+ }
409
+ function To(e) {
410
+ return e === "light" || e === "dark";
411
+ }
412
+ function lt(e, t = !1) {
413
+ if (typeof window > "u") return;
414
+ const n = F(), r = (o) => o.replace(/hsl\(|\)|%/g, "").trim();
415
+ Object.entries(e).forEach(([o, s]) => {
416
+ if (s) {
417
+ const i = o.replace(/([A-Z])/g, "-$1").toLowerCase(), a = r(s);
418
+ n.style.setProperty(`--${i}`, a);
419
+ }
420
+ }), t && localStorage.setItem("custom-theme-colors", JSON.stringify(e));
421
+ }
422
+ function kn() {
423
+ if (typeof window > "u") return null;
424
+ const e = localStorage.getItem("custom-theme-colors");
425
+ if (!e) return null;
426
+ try {
427
+ return JSON.parse(e);
428
+ } catch {
429
+ return null;
430
+ }
431
+ }
432
+ function Do() {
433
+ if (typeof window > "u") return;
434
+ const e = F();
435
+ [
436
+ "primary",
437
+ "primaryForeground",
438
+ "secondary",
439
+ "secondaryForeground",
440
+ "accent",
441
+ "accentForeground",
442
+ "muted",
443
+ "mutedForeground",
444
+ "background",
445
+ "backgroundDeep",
446
+ "foreground",
447
+ "card",
448
+ "cardForeground",
449
+ "border",
450
+ "input",
451
+ "ring",
452
+ "sidebar",
453
+ "sidebarDeep",
454
+ "header",
455
+ "menu"
456
+ ].forEach((n) => {
457
+ const r = n.replace(/([A-Z])/g, "-$1").toLowerCase();
458
+ e.style.removeProperty(`--${r}`);
459
+ }), localStorage.removeItem("custom-theme-colors"), localStorage.removeItem("custom-theme-primary"), localStorage.removeItem("custom-theme-active");
460
+ }
461
+ function Co() {
462
+ const e = kn();
463
+ return e ? (lt(e, !1), !0) : !1;
464
+ }
465
+ function Hn(e) {
466
+ e = e.replace("#", "");
467
+ const t = Number.parseInt(e.substring(0, 2), 16) / 255, n = Number.parseInt(e.substring(2, 4), 16) / 255, r = Number.parseInt(e.substring(4, 6), 16) / 255, o = Math.max(t, n, r), s = Math.min(t, n, r);
468
+ let i = 0, a = 0;
469
+ const l = (o + s) / 2;
470
+ if (o !== s) {
471
+ const d = o - s;
472
+ switch (a = l > 0.5 ? d / (2 - o - s) : d / (o + s), o) {
473
+ case t:
474
+ i = ((n - r) / d + (n < r ? 6 : 0)) / 6;
475
+ break;
476
+ case n:
477
+ i = ((r - t) / d + 2) / 6;
478
+ break;
479
+ case r:
480
+ i = ((t - n) / d + 4) / 6;
481
+ break;
482
+ }
483
+ }
484
+ i = Math.round(i * 360), a = Math.round(a * 100);
485
+ const u = Math.round(l * 100);
486
+ return `${i} ${a}% ${u}%`;
487
+ }
488
+ function Oo(e, t, n) {
489
+ e /= 255, t /= 255, n /= 255;
490
+ const r = Math.max(e, t, n), o = Math.min(e, t, n);
491
+ let s = 0, i = 0;
492
+ const a = (r + o) / 2;
493
+ if (r !== o) {
494
+ const u = r - o;
495
+ switch (i = a > 0.5 ? u / (2 - r - o) : u / (r + o), r) {
496
+ case e:
497
+ s = ((t - n) / u + (t < n ? 6 : 0)) / 6;
498
+ break;
499
+ case t:
500
+ s = ((n - e) / u + 2) / 6;
501
+ break;
502
+ case n:
503
+ s = ((e - t) / u + 4) / 6;
504
+ break;
505
+ }
506
+ }
507
+ s = Math.round(s * 360), i = Math.round(i * 100);
508
+ const l = Math.round(a * 100);
509
+ return `${s} ${i}% ${l}%`;
510
+ }
511
+ function It(e, t = "light") {
512
+ let n;
513
+ if (e.startsWith("#"))
514
+ n = Hn(e);
515
+ else if (e.startsWith("hsl")) {
516
+ const o = St(e);
517
+ n = o ? `${o.h} ${o.s}% ${o.l}%` : e;
518
+ } else
519
+ n = e;
520
+ const r = St(n);
521
+ if (!r)
522
+ throw new Error("Invalid color format");
523
+ return t === "light" ? {
524
+ // 主色
525
+ primary: n,
526
+ primaryForeground: r.l > 50 ? "0 0% 10%" : "0 0% 98%",
527
+ // 次要色(降低饱和度,提高亮度)
528
+ secondary: `${r.h} ${Math.max(5, r.s - 30)}% ${Math.min(96, r.l + 40)}%`,
529
+ secondaryForeground: `${r.h} ${Math.min(100, r.s + 20)}% ${Math.max(10, r.l - 40)}%`,
530
+ // 强调色(稍微调整色相,保持饱和度)
531
+ accent: `${r.h} ${Math.max(5, r.s - 25)}% ${Math.min(96, r.l + 35)}%`,
532
+ accentForeground: `${r.h} ${Math.min(100, r.s + 15)}% ${Math.max(10, r.l - 35)}%`,
533
+ // 柔和色(大幅降低饱和度)
534
+ muted: `${r.h} ${Math.max(5, r.s - 40)}% 96%`,
535
+ mutedForeground: `${r.h} ${Math.max(5, r.s - 35)}% 46%`,
536
+ // 背景和前景
537
+ background: "0 0% 100%",
538
+ backgroundDeep: `${r.h} ${Math.max(5, r.s - 45)}% 95%`,
539
+ foreground: `${r.h} ${Math.max(5, r.s - 40)}% 15%`,
540
+ // 卡片
541
+ card: "0 0% 100%",
542
+ cardForeground: `${r.h} ${Math.max(5, r.s - 40)}% 15%`,
543
+ // 边框和输入
544
+ border: `${r.h} ${Math.max(5, r.s - 40)}% 90%`,
545
+ input: `${r.h} ${Math.max(5, r.s - 40)}% 90%`,
546
+ ring: n,
547
+ // 侧边栏和头部
548
+ sidebar: "0 0% 100%",
549
+ sidebarDeep: "0 0% 100%",
550
+ header: "0 0% 100%",
551
+ menu: "0 0% 100%"
552
+ } : {
553
+ // 主色(暗色模式下稍微提高亮度)
554
+ primary: `${r.h} ${r.s}% ${Math.min(65, r.l + 10)}%`,
555
+ primaryForeground: "0 0% 98%",
556
+ // 次要色
557
+ secondary: `${r.h} ${Math.max(5, r.s - 30)}% 17%`,
558
+ secondaryForeground: "0 0% 98%",
559
+ // 强调色
560
+ accent: `${r.h} ${Math.max(5, r.s - 25)}% 19%`,
561
+ accentForeground: "0 0% 98%",
562
+ // 柔和色
563
+ muted: `${r.h} ${Math.max(5, r.s - 35)}% 16%`,
564
+ mutedForeground: `${r.h} ${Math.max(5, r.s - 30)}% 65%`,
565
+ // 背景和前景
566
+ background: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
567
+ backgroundDeep: `${r.h} ${Math.max(5, r.s - 35)}% 9%`,
568
+ foreground: "0 0% 95%",
569
+ // 卡片
570
+ card: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
571
+ cardForeground: "0 0% 95%",
572
+ // 边框和输入
573
+ border: `${r.h} ${Math.max(5, r.s - 35)}% 22%`,
574
+ input: `${r.h} ${Math.max(5, r.s - 35)}% 22%`,
575
+ ring: `${r.h} ${r.s}% ${Math.min(65, r.l + 10)}%`,
576
+ // 侧边栏和头部
577
+ sidebar: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
578
+ sidebarDeep: `${r.h} ${Math.max(5, r.s - 35)}% 9%`,
579
+ header: `${r.h} ${Math.max(5, r.s - 30)}% 12%`,
580
+ menu: `${r.h} ${Math.max(5, r.s - 30)}% 12%`
581
+ };
582
+ }
583
+ function $o(e, t, n = !1) {
584
+ const r = t || Vt(), o = It(e, r);
585
+ lt(o, n), localStorage.setItem("custom-theme-primary", e), localStorage.setItem("custom-theme-active", "true");
586
+ }
587
+ function y(e) {
588
+ const t = We(e);
589
+ return t ? `hsl(${t})` : "";
590
+ }
591
+ function Rt(e) {
592
+ const t = e.replace(/hsl\(|\)|%/g, "").trim(), [n, r, o] = t.split(/[\s,]+/).map(Number);
593
+ if (n === void 0 || r === void 0 || o === void 0)
594
+ return "rgb(0, 0, 0)";
595
+ const s = n / 360, i = r / 100, a = o / 100;
596
+ let l, u, d;
597
+ if (i === 0)
598
+ l = u = d = a;
599
+ else {
600
+ const c = (_, S, D) => (D < 0 && (D += 1), D > 1 && (D -= 1), D < 0.16666666666666666 ? _ + (S - _) * 6 * D : D < 0.5 ? S : D < 0.6666666666666666 ? _ + (S - _) * (0.6666666666666666 - D) * 6 : _), f = a < 0.5 ? a * (1 + i) : a + i - a * i, p = 2 * a - f;
601
+ l = c(p, f, s + 1 / 3), u = c(p, f, s), d = c(p, f, s - 1 / 3);
602
+ }
603
+ return `rgb(${Math.round(l * 255)}, ${Math.round(u * 255)}, ${Math.round(d * 255)})`;
604
+ }
605
+ function Pn(e) {
606
+ const n = Rt(e).match(/\d+/g);
607
+ if (!n || n.length < 3)
608
+ return "#000000";
609
+ const [r, o, s] = n.map(Number);
610
+ return "#" + [r, o, s].filter((i) => i !== void 0).map((i) => i.toString(16).padStart(2, "0")).join("");
611
+ }
612
+ function v(e) {
613
+ const t = We(e);
614
+ return t ? Rt(t) : "rgb(0, 0, 0)";
615
+ }
616
+ function b(e) {
617
+ const t = We(e);
618
+ return t ? Pn(t) : "#000000";
619
+ }
620
+ function Mo() {
621
+ return {
622
+ primary: y("primary"),
623
+ primaryForeground: y("primary-foreground"),
624
+ secondary: y("secondary"),
625
+ secondaryForeground: y("secondary-foreground"),
626
+ accent: y("accent"),
627
+ accentForeground: y("accent-foreground"),
628
+ muted: y("muted"),
629
+ mutedForeground: y("muted-foreground"),
630
+ destructive: y("destructive"),
631
+ destructiveForeground: y("destructive-foreground"),
632
+ success: y("success"),
633
+ successForeground: y("success-foreground"),
634
+ warning: y("warning"),
635
+ warningForeground: y("warning-foreground"),
636
+ info: y("info"),
637
+ infoForeground: y("info-foreground"),
638
+ background: y("background"),
639
+ backgroundDeep: y("background-deep"),
640
+ foreground: y("foreground"),
641
+ card: y("card"),
642
+ cardForeground: y("card-foreground"),
643
+ border: y("border"),
644
+ input: y("input"),
645
+ ring: y("ring")
646
+ };
647
+ }
648
+ function xo() {
649
+ return {
650
+ primary: v("primary"),
651
+ primaryForeground: v("primary-foreground"),
652
+ secondary: v("secondary"),
653
+ secondaryForeground: v("secondary-foreground"),
654
+ accent: v("accent"),
655
+ accentForeground: v("accent-foreground"),
656
+ muted: v("muted"),
657
+ mutedForeground: v("muted-foreground"),
658
+ destructive: v("destructive"),
659
+ destructiveForeground: v("destructive-foreground"),
660
+ success: v("success"),
661
+ successForeground: v("success-foreground"),
662
+ warning: v("warning"),
663
+ warningForeground: v("warning-foreground"),
664
+ info: v("info"),
665
+ infoForeground: v("info-foreground"),
666
+ background: v("background"),
667
+ backgroundDeep: v("background-deep"),
668
+ foreground: v("foreground"),
669
+ card: v("card"),
670
+ cardForeground: v("card-foreground"),
671
+ border: v("border"),
672
+ input: v("input"),
673
+ ring: v("ring")
674
+ };
675
+ }
676
+ function Vo() {
677
+ return {
678
+ primary: b("primary"),
679
+ primaryForeground: b("primary-foreground"),
680
+ secondary: b("secondary"),
681
+ secondaryForeground: b("secondary-foreground"),
682
+ accent: b("accent"),
683
+ accentForeground: b("accent-foreground"),
684
+ muted: b("muted"),
685
+ mutedForeground: b("muted-foreground"),
686
+ destructive: b("destructive"),
687
+ destructiveForeground: b("destructive-foreground"),
688
+ success: b("success"),
689
+ successForeground: b("success-foreground"),
690
+ warning: b("warning"),
691
+ warningForeground: b("warning-foreground"),
692
+ info: b("info"),
693
+ infoForeground: b("info-foreground"),
694
+ background: b("background"),
695
+ backgroundDeep: b("background-deep"),
696
+ foreground: b("foreground"),
697
+ card: b("card"),
698
+ cardForeground: b("card-foreground"),
699
+ border: b("border"),
700
+ input: b("input"),
701
+ ring: b("ring")
702
+ };
703
+ }
704
+ // @__NO_SIDE_EFFECTS__
705
+ function Ln(e) {
706
+ const t = /* @__PURE__ */ Object.create(null);
707
+ for (const n of e.split(",")) t[n] = 1;
708
+ return (n) => n in t;
709
+ }
710
+ const _e = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
711
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
712
+ const re = () => {
713
+ }, Wn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
714
+ (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), B = Object.assign, Kn = Object.prototype.hasOwnProperty, et = (e, t) => Kn.call(e, t), E = Array.isArray, oe = (e) => Ke(e) === "[object Map]", jn = (e) => Ke(e) === "[object Set]", T = (e) => typeof e == "function", P = (e) => typeof e == "string", Ne = (e) => typeof e == "symbol", O = (e) => e !== null && typeof e == "object", Un = (e) => (O(e) || T(e)) && T(e.then) && T(e.catch), zn = Object.prototype.toString, Ke = (e) => zn.call(e), At = (e) => Ke(e).slice(8, -1), Bn = (e) => Ke(e) === "[object Object]", ut = (e) => P(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Ft = (e) => {
715
+ const t = /* @__PURE__ */ Object.create(null);
716
+ return ((n) => t[n] || (t[n] = e(n)));
717
+ }, kt = Ft((e) => e.charAt(0).toUpperCase() + e.slice(1)), Gn = Ft(
718
+ (e) => e ? `on${kt(e)}` : ""
719
+ ), z = (e, t) => !Object.is(e, t);
720
+ let Nt;
721
+ const je = () => Nt || (Nt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
722
+ function ft(e) {
723
+ if (E(e)) {
724
+ const t = {};
725
+ for (let n = 0; n < e.length; n++) {
726
+ const r = e[n], o = P(r) ? Qn(r) : ft(r);
727
+ if (o)
728
+ for (const s in o)
729
+ t[s] = o[s];
730
+ }
731
+ return t;
732
+ } else if (P(e) || O(e))
733
+ return e;
734
+ }
735
+ const qn = /;(?![^(]*\))/g, Jn = /:([^]+)/, Yn = /\/\*[^]*?\*\//g;
736
+ function Qn(e) {
737
+ const t = {};
738
+ return e.replace(Yn, "").split(qn).forEach((n) => {
739
+ if (n) {
740
+ const r = n.split(Jn);
741
+ r.length > 1 && (t[r[0].trim()] = r[1].trim());
742
+ }
743
+ }), t;
744
+ }
745
+ function dt(e) {
746
+ let t = "";
747
+ if (P(e))
748
+ t = e;
749
+ else if (E(e))
750
+ for (let n = 0; n < e.length; n++) {
751
+ const r = dt(e[n]);
752
+ r && (t += r + " ");
753
+ }
754
+ else if (O(e))
755
+ for (const n in e)
756
+ e[n] && (t += n + " ");
757
+ return t.trim();
758
+ }
759
+ function R(e, ...t) {
760
+ console.warn(`[Vue warn] ${e}`, ...t);
761
+ }
762
+ let m;
763
+ const Be = /* @__PURE__ */ new WeakSet();
764
+ class Zn {
765
+ constructor(t) {
766
+ this.fn = t, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0;
767
+ }
768
+ pause() {
769
+ this.flags |= 64;
770
+ }
771
+ resume() {
772
+ this.flags & 64 && (this.flags &= -65, Be.has(this) && (Be.delete(this), this.trigger()));
773
+ }
774
+ /**
775
+ * @internal
776
+ */
777
+ notify() {
778
+ this.flags & 2 && !(this.flags & 32) || this.flags & 8 || Pt(this);
779
+ }
780
+ run() {
781
+ if (!(this.flags & 1))
782
+ return this.fn();
783
+ this.flags |= 2, Tt(this), Lt(this);
784
+ const t = m, n = V;
785
+ m = this, V = !0;
786
+ try {
787
+ return this.fn();
788
+ } finally {
789
+ process.env.NODE_ENV !== "production" && m !== this && R(
790
+ "Active effect was not restored correctly - this is likely a Vue internal bug."
791
+ ), Wt(this), m = t, V = n, this.flags &= -3;
792
+ }
793
+ }
794
+ stop() {
795
+ if (this.flags & 1) {
796
+ for (let t = this.deps; t; t = t.nextDep)
797
+ gt(t);
798
+ this.deps = this.depsTail = void 0, Tt(this), this.onStop && this.onStop(), this.flags &= -2;
799
+ }
800
+ }
801
+ trigger() {
802
+ this.flags & 64 ? Be.add(this) : this.scheduler ? this.scheduler() : this.runIfDirty();
803
+ }
804
+ /**
805
+ * @internal
806
+ */
807
+ runIfDirty() {
808
+ tt(this) && this.run();
809
+ }
810
+ get dirty() {
811
+ return tt(this);
812
+ }
813
+ }
814
+ let Ht = 0, ge, me;
815
+ function Pt(e, t = !1) {
816
+ if (e.flags |= 8, t) {
817
+ e.next = me, me = e;
818
+ return;
819
+ }
820
+ e.next = ge, ge = e;
821
+ }
822
+ function pt() {
823
+ Ht++;
824
+ }
825
+ function ht() {
826
+ if (--Ht > 0)
827
+ return;
828
+ if (me) {
829
+ let t = me;
830
+ for (me = void 0; t; ) {
831
+ const n = t.next;
832
+ t.next = void 0, t.flags &= -9, t = n;
833
+ }
834
+ }
835
+ let e;
836
+ for (; ge; ) {
837
+ let t = ge;
838
+ for (ge = void 0; t; ) {
839
+ const n = t.next;
840
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
841
+ try {
842
+ t.trigger();
843
+ } catch (r) {
844
+ e || (e = r);
845
+ }
846
+ t = n;
847
+ }
848
+ }
849
+ if (e) throw e;
850
+ }
851
+ function Lt(e) {
852
+ for (let t = e.deps; t; t = t.nextDep)
853
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
854
+ }
855
+ function Wt(e) {
856
+ let t, n = e.depsTail, r = n;
857
+ for (; r; ) {
858
+ const o = r.prevDep;
859
+ r.version === -1 ? (r === n && (n = o), gt(r), Xn(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o;
860
+ }
861
+ e.deps = t, e.depsTail = n;
862
+ }
863
+ function tt(e) {
864
+ for (let t = e.deps; t; t = t.nextDep)
865
+ if (t.dep.version !== t.version || t.dep.computed && (Kt(t.dep.computed) || t.dep.version !== t.version))
866
+ return !0;
867
+ return !!e._dirty;
868
+ }
869
+ function Kt(e) {
870
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === ye) || (e.globalVersion = ye, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !tt(e))))
871
+ return;
872
+ e.flags |= 2;
873
+ const t = e.dep, n = m, r = V;
874
+ m = e, V = !0;
875
+ try {
876
+ Lt(e);
877
+ const o = e.fn(e._value);
878
+ (t.version === 0 || z(o, e._value)) && (e.flags |= 128, e._value = o, t.version++);
879
+ } catch (o) {
880
+ throw t.version++, o;
881
+ } finally {
882
+ m = n, V = r, Wt(e), e.flags &= -3;
883
+ }
884
+ }
885
+ function gt(e, t = !1) {
886
+ const { dep: n, prevSub: r, nextSub: o } = e;
887
+ if (r && (r.nextSub = o, e.prevSub = void 0), o && (o.prevSub = r, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = o), n.subs === e && (n.subs = r, !r && n.computed)) {
888
+ n.computed.flags &= -5;
889
+ for (let s = n.computed.deps; s; s = s.nextDep)
890
+ gt(s, !0);
891
+ }
892
+ !t && !--n.sc && n.map && n.map.delete(n.key);
893
+ }
894
+ function Xn(e) {
895
+ const { prevDep: t, nextDep: n } = e;
896
+ t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
897
+ }
898
+ let V = !0;
899
+ const jt = [];
900
+ function ce() {
901
+ jt.push(V), V = !1;
902
+ }
903
+ function le() {
904
+ const e = jt.pop();
905
+ V = e === void 0 ? !0 : e;
906
+ }
907
+ function Tt(e) {
908
+ const { cleanup: t } = e;
909
+ if (e.cleanup = void 0, t) {
910
+ const n = m;
911
+ m = void 0;
912
+ try {
913
+ t();
914
+ } finally {
915
+ m = n;
916
+ }
917
+ }
918
+ }
919
+ let ye = 0;
920
+ class er {
921
+ constructor(t, n) {
922
+ this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
923
+ }
924
+ }
925
+ class mt {
926
+ // TODO isolatedDeclarations "__v_skip"
927
+ constructor(t) {
928
+ this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0, this.__v_skip = !0, process.env.NODE_ENV !== "production" && (this.subsHead = void 0);
929
+ }
930
+ track(t) {
931
+ if (!m || !V || m === this.computed)
932
+ return;
933
+ let n = this.activeLink;
934
+ if (n === void 0 || n.sub !== m)
935
+ n = this.activeLink = new er(m, this), m.deps ? (n.prevDep = m.depsTail, m.depsTail.nextDep = n, m.depsTail = n) : m.deps = m.depsTail = n, Ut(n);
936
+ else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
937
+ const r = n.nextDep;
938
+ r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = m.depsTail, n.nextDep = void 0, m.depsTail.nextDep = n, m.depsTail = n, m.deps === n && (m.deps = r);
939
+ }
940
+ return process.env.NODE_ENV !== "production" && m.onTrack && m.onTrack(
941
+ B(
942
+ {
943
+ effect: m
944
+ },
945
+ t
946
+ )
947
+ ), n;
948
+ }
949
+ trigger(t) {
950
+ this.version++, ye++, this.notify(t);
951
+ }
952
+ notify(t) {
953
+ pt();
954
+ try {
955
+ if (process.env.NODE_ENV !== "production")
956
+ for (let n = this.subsHead; n; n = n.nextSub)
957
+ n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
958
+ B(
959
+ {
960
+ effect: n.sub
961
+ },
962
+ t
963
+ )
964
+ );
965
+ for (let n = this.subs; n; n = n.prevSub)
966
+ n.sub.notify() && n.sub.dep.notify();
967
+ } finally {
968
+ ht();
969
+ }
970
+ }
971
+ }
972
+ function Ut(e) {
973
+ if (e.dep.sc++, e.sub.flags & 4) {
974
+ const t = e.dep.computed;
975
+ if (t && !e.dep.subs) {
976
+ t.flags |= 20;
977
+ for (let r = t.deps; r; r = r.nextDep)
978
+ Ut(r);
979
+ }
980
+ const n = e.dep.subs;
981
+ n !== e && (e.prevSub = n, n && (n.nextSub = e)), process.env.NODE_ENV !== "production" && e.dep.subsHead === void 0 && (e.dep.subsHead = e), e.dep.subs = e;
982
+ }
983
+ }
984
+ const nt = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ Symbol(
985
+ process.env.NODE_ENV !== "production" ? "Object iterate" : ""
986
+ ), rt = /* @__PURE__ */ Symbol(
987
+ process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
988
+ ), ve = /* @__PURE__ */ Symbol(
989
+ process.env.NODE_ENV !== "production" ? "Array iterate" : ""
990
+ );
991
+ function C(e, t, n) {
992
+ if (V && m) {
993
+ let r = nt.get(e);
994
+ r || nt.set(e, r = /* @__PURE__ */ new Map());
995
+ let o = r.get(n);
996
+ o || (r.set(n, o = new mt()), o.map = r, o.key = n), process.env.NODE_ENV !== "production" ? o.track({
997
+ target: e,
998
+ type: t,
999
+ key: n
1000
+ }) : o.track();
1001
+ }
1002
+ }
1003
+ function j(e, t, n, r, o, s) {
1004
+ const i = nt.get(e);
1005
+ if (!i) {
1006
+ ye++;
1007
+ return;
1008
+ }
1009
+ const a = (l) => {
1010
+ l && (process.env.NODE_ENV !== "production" ? l.trigger({
1011
+ target: e,
1012
+ type: t,
1013
+ key: n,
1014
+ newValue: r,
1015
+ oldValue: o,
1016
+ oldTarget: s
1017
+ }) : l.trigger());
1018
+ };
1019
+ if (pt(), t === "clear")
1020
+ i.forEach(a);
1021
+ else {
1022
+ const l = E(e), u = l && ut(n);
1023
+ if (l && n === "length") {
1024
+ const d = Number(r);
1025
+ i.forEach((c, f) => {
1026
+ (f === "length" || f === ve || !Ne(f) && f >= d) && a(c);
1027
+ });
1028
+ } else
1029
+ switch ((n !== void 0 || i.has(void 0)) && a(i.get(n)), u && a(i.get(ve)), t) {
1030
+ case "add":
1031
+ l ? u && a(i.get("length")) : (a(i.get(J)), oe(e) && a(i.get(rt)));
1032
+ break;
1033
+ case "delete":
1034
+ l || (a(i.get(J)), oe(e) && a(i.get(rt)));
1035
+ break;
1036
+ case "set":
1037
+ oe(e) && a(i.get(J));
1038
+ break;
1039
+ }
1040
+ }
1041
+ ht();
1042
+ }
1043
+ function Z(e) {
1044
+ const t = h(e);
1045
+ return t === e ? t : (C(t, "iterate", ve), $(e) ? t : t.map(L));
1046
+ }
1047
+ function _t(e) {
1048
+ return C(e = h(e), "iterate", ve), e;
1049
+ }
1050
+ function W(e, t) {
1051
+ return A(e) ? se(e) ? be(L(t)) : be(t) : L(t);
1052
+ }
1053
+ const tr = {
1054
+ __proto__: null,
1055
+ [Symbol.iterator]() {
1056
+ return Ge(this, Symbol.iterator, (e) => W(this, e));
1057
+ },
1058
+ concat(...e) {
1059
+ return Z(this).concat(
1060
+ ...e.map((t) => E(t) ? Z(t) : t)
1061
+ );
1062
+ },
1063
+ entries() {
1064
+ return Ge(this, "entries", (e) => (e[1] = W(this, e[1]), e));
1065
+ },
1066
+ every(e, t) {
1067
+ return k(this, "every", e, t, void 0, arguments);
1068
+ },
1069
+ filter(e, t) {
1070
+ return k(
1071
+ this,
1072
+ "filter",
1073
+ e,
1074
+ t,
1075
+ (n) => n.map((r) => W(this, r)),
1076
+ arguments
1077
+ );
1078
+ },
1079
+ find(e, t) {
1080
+ return k(
1081
+ this,
1082
+ "find",
1083
+ e,
1084
+ t,
1085
+ (n) => W(this, n),
1086
+ arguments
1087
+ );
1088
+ },
1089
+ findIndex(e, t) {
1090
+ return k(this, "findIndex", e, t, void 0, arguments);
1091
+ },
1092
+ findLast(e, t) {
1093
+ return k(
1094
+ this,
1095
+ "findLast",
1096
+ e,
1097
+ t,
1098
+ (n) => W(this, n),
1099
+ arguments
1100
+ );
1101
+ },
1102
+ findLastIndex(e, t) {
1103
+ return k(this, "findLastIndex", e, t, void 0, arguments);
1104
+ },
1105
+ // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
1106
+ forEach(e, t) {
1107
+ return k(this, "forEach", e, t, void 0, arguments);
1108
+ },
1109
+ includes(...e) {
1110
+ return qe(this, "includes", e);
1111
+ },
1112
+ indexOf(...e) {
1113
+ return qe(this, "indexOf", e);
1114
+ },
1115
+ join(e) {
1116
+ return Z(this).join(e);
1117
+ },
1118
+ // keys() iterator only reads `length`, no optimization required
1119
+ lastIndexOf(...e) {
1120
+ return qe(this, "lastIndexOf", e);
1121
+ },
1122
+ map(e, t) {
1123
+ return k(this, "map", e, t, void 0, arguments);
1124
+ },
1125
+ pop() {
1126
+ return de(this, "pop");
1127
+ },
1128
+ push(...e) {
1129
+ return de(this, "push", e);
1130
+ },
1131
+ reduce(e, ...t) {
1132
+ return Dt(this, "reduce", e, t);
1133
+ },
1134
+ reduceRight(e, ...t) {
1135
+ return Dt(this, "reduceRight", e, t);
1136
+ },
1137
+ shift() {
1138
+ return de(this, "shift");
1139
+ },
1140
+ // slice could use ARRAY_ITERATE but also seems to beg for range tracking
1141
+ some(e, t) {
1142
+ return k(this, "some", e, t, void 0, arguments);
1143
+ },
1144
+ splice(...e) {
1145
+ return de(this, "splice", e);
1146
+ },
1147
+ toReversed() {
1148
+ return Z(this).toReversed();
1149
+ },
1150
+ toSorted(e) {
1151
+ return Z(this).toSorted(e);
1152
+ },
1153
+ toSpliced(...e) {
1154
+ return Z(this).toSpliced(...e);
1155
+ },
1156
+ unshift(...e) {
1157
+ return de(this, "unshift", e);
1158
+ },
1159
+ values() {
1160
+ return Ge(this, "values", (e) => W(this, e));
1161
+ }
1162
+ };
1163
+ function Ge(e, t, n) {
1164
+ const r = _t(e), o = r[t]();
1165
+ return r !== e && !$(e) && (o._next = o.next, o.next = () => {
1166
+ const s = o._next();
1167
+ return s.done || (s.value = n(s.value)), s;
1168
+ }), o;
1169
+ }
1170
+ const nr = Array.prototype;
1171
+ function k(e, t, n, r, o, s) {
1172
+ const i = _t(e), a = i !== e && !$(e), l = i[t];
1173
+ if (l !== nr[t]) {
1174
+ const c = l.apply(e, s);
1175
+ return a ? L(c) : c;
1176
+ }
1177
+ let u = n;
1178
+ i !== e && (a ? u = function(c, f) {
1179
+ return n.call(this, W(e, c), f, e);
1180
+ } : n.length > 2 && (u = function(c, f) {
1181
+ return n.call(this, c, f, e);
1182
+ }));
1183
+ const d = l.call(i, u, r);
1184
+ return a && o ? o(d) : d;
1185
+ }
1186
+ function Dt(e, t, n, r) {
1187
+ const o = _t(e);
1188
+ let s = n;
1189
+ return o !== e && ($(e) ? n.length > 3 && (s = function(i, a, l) {
1190
+ return n.call(this, i, a, l, e);
1191
+ }) : s = function(i, a, l) {
1192
+ return n.call(this, i, W(e, a), l, e);
1193
+ }), o[t](s, ...r);
1194
+ }
1195
+ function qe(e, t, n) {
1196
+ const r = h(e);
1197
+ C(r, "iterate", ve);
1198
+ const o = r[t](...n);
1199
+ return (o === -1 || o === !1) && Fe(n[0]) ? (n[0] = h(n[0]), r[t](...n)) : o;
1200
+ }
1201
+ function de(e, t, n = []) {
1202
+ ce(), pt();
1203
+ const r = h(e)[t].apply(e, n);
1204
+ return ht(), le(), r;
1205
+ }
1206
+ const rr = /* @__PURE__ */ Ln("__proto__,__v_isRef,__isVue"), zt = new Set(
1207
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ne)
1208
+ );
1209
+ function or(e) {
1210
+ Ne(e) || (e = String(e));
1211
+ const t = h(this);
1212
+ return C(t, "has", e), t.hasOwnProperty(e);
1213
+ }
1214
+ class Bt {
1215
+ constructor(t = !1, n = !1) {
1216
+ this._isReadonly = t, this._isShallow = n;
1217
+ }
1218
+ get(t, n, r) {
1219
+ if (n === "__v_skip") return t.__v_skip;
1220
+ const o = this._isReadonly, s = this._isShallow;
1221
+ if (n === "__v_isReactive")
1222
+ return !o;
1223
+ if (n === "__v_isReadonly")
1224
+ return o;
1225
+ if (n === "__v_isShallow")
1226
+ return s;
1227
+ if (n === "__v_raw")
1228
+ return r === (o ? s ? hr : Jt : s ? pr : qt).get(t) || // receiver is not the reactive proxy, but has the same prototype
1229
+ // this means the receiver is a user proxy of the reactive proxy
1230
+ Object.getPrototypeOf(t) === Object.getPrototypeOf(r) ? t : void 0;
1231
+ const i = E(t);
1232
+ if (!o) {
1233
+ let l;
1234
+ if (i && (l = tr[n]))
1235
+ return l;
1236
+ if (n === "hasOwnProperty")
1237
+ return or;
1238
+ }
1239
+ const a = Reflect.get(
1240
+ t,
1241
+ n,
1242
+ // if this is a proxy wrapping a ref, return methods using the raw ref
1243
+ // as receiver so that we don't have to call `toRaw` on the ref in all
1244
+ // its class methods
1245
+ x(t) ? t : r
1246
+ );
1247
+ if ((Ne(n) ? zt.has(n) : rr(n)) || (o || C(t, "get", n), s))
1248
+ return a;
1249
+ if (x(a)) {
1250
+ const l = i && ut(n) ? a : a.value;
1251
+ return o && O(l) ? Ae(l) : l;
1252
+ }
1253
+ return O(a) ? o ? Ae(a) : Yt(a) : a;
1254
+ }
1255
+ }
1256
+ class sr extends Bt {
1257
+ constructor(t = !1) {
1258
+ super(!1, t);
1259
+ }
1260
+ set(t, n, r, o) {
1261
+ let s = t[n];
1262
+ const i = E(t) && ut(n);
1263
+ if (!this._isShallow) {
1264
+ const u = A(s);
1265
+ if (!$(r) && !A(r) && (s = h(s), r = h(r)), !i && x(s) && !x(r))
1266
+ return u ? (process.env.NODE_ENV !== "production" && R(
1267
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
1268
+ t[n]
1269
+ ), !0) : (s.value = r, !0);
1270
+ }
1271
+ const a = i ? Number(n) < t.length : et(t, n), l = Reflect.set(
1272
+ t,
1273
+ n,
1274
+ r,
1275
+ x(t) ? t : o
1276
+ );
1277
+ return t === h(o) && (a ? z(r, s) && j(t, "set", n, r, s) : j(t, "add", n, r)), l;
1278
+ }
1279
+ deleteProperty(t, n) {
1280
+ const r = et(t, n), o = t[n], s = Reflect.deleteProperty(t, n);
1281
+ return s && r && j(t, "delete", n, void 0, o), s;
1282
+ }
1283
+ has(t, n) {
1284
+ const r = Reflect.has(t, n);
1285
+ return (!Ne(n) || !zt.has(n)) && C(t, "has", n), r;
1286
+ }
1287
+ ownKeys(t) {
1288
+ return C(
1289
+ t,
1290
+ "iterate",
1291
+ E(t) ? "length" : J
1292
+ ), Reflect.ownKeys(t);
1293
+ }
1294
+ }
1295
+ class ir extends Bt {
1296
+ constructor(t = !1) {
1297
+ super(!0, t);
1298
+ }
1299
+ set(t, n) {
1300
+ return process.env.NODE_ENV !== "production" && R(
1301
+ `Set operation on key "${String(n)}" failed: target is readonly.`,
1302
+ t
1303
+ ), !0;
1304
+ }
1305
+ deleteProperty(t, n) {
1306
+ return process.env.NODE_ENV !== "production" && R(
1307
+ `Delete operation on key "${String(n)}" failed: target is readonly.`,
1308
+ t
1309
+ ), !0;
1310
+ }
1311
+ }
1312
+ const ar = /* @__PURE__ */ new sr(), cr = /* @__PURE__ */ new ir(), ot = (e) => e, De = (e) => Reflect.getPrototypeOf(e);
1313
+ function lr(e, t, n) {
1314
+ return function(...r) {
1315
+ const o = this.__v_raw, s = h(o), i = oe(s), a = e === "entries" || e === Symbol.iterator && i, l = e === "keys" && i, u = o[e](...r), d = n ? ot : t ? be : L;
1316
+ return !t && C(
1317
+ s,
1318
+ "iterate",
1319
+ l ? rt : J
1320
+ ), {
1321
+ // iterator protocol
1322
+ next() {
1323
+ const { value: c, done: f } = u.next();
1324
+ return f ? { value: c, done: f } : {
1325
+ value: a ? [d(c[0]), d(c[1])] : d(c),
1326
+ done: f
1327
+ };
1328
+ },
1329
+ // iterable protocol
1330
+ [Symbol.iterator]() {
1331
+ return this;
1332
+ }
1333
+ };
1334
+ };
1335
+ }
1336
+ function Ce(e) {
1337
+ return function(...t) {
1338
+ if (process.env.NODE_ENV !== "production") {
1339
+ const n = t[0] ? `on key "${t[0]}" ` : "";
1340
+ R(
1341
+ `${kt(e)} operation ${n}failed: target is readonly.`,
1342
+ h(this)
1343
+ );
1344
+ }
1345
+ return e === "delete" ? !1 : e === "clear" ? void 0 : this;
1346
+ };
1347
+ }
1348
+ function ur(e, t) {
1349
+ const n = {
1350
+ get(o) {
1351
+ const s = this.__v_raw, i = h(s), a = h(o);
1352
+ e || (z(o, a) && C(i, "get", o), C(i, "get", a));
1353
+ const { has: l } = De(i), u = t ? ot : e ? be : L;
1354
+ if (l.call(i, o))
1355
+ return u(s.get(o));
1356
+ if (l.call(i, a))
1357
+ return u(s.get(a));
1358
+ s !== i && s.get(o);
1359
+ },
1360
+ get size() {
1361
+ const o = this.__v_raw;
1362
+ return !e && C(h(o), "iterate", J), o.size;
1363
+ },
1364
+ has(o) {
1365
+ const s = this.__v_raw, i = h(s), a = h(o);
1366
+ return e || (z(o, a) && C(i, "has", o), C(i, "has", a)), o === a ? s.has(o) : s.has(o) || s.has(a);
1367
+ },
1368
+ forEach(o, s) {
1369
+ const i = this, a = i.__v_raw, l = h(a), u = t ? ot : e ? be : L;
1370
+ return !e && C(l, "iterate", J), a.forEach((d, c) => o.call(s, u(d), u(c), i));
1371
+ }
1372
+ };
1373
+ return B(
1374
+ n,
1375
+ e ? {
1376
+ add: Ce("add"),
1377
+ set: Ce("set"),
1378
+ delete: Ce("delete"),
1379
+ clear: Ce("clear")
1380
+ } : {
1381
+ add(o) {
1382
+ !t && !$(o) && !A(o) && (o = h(o));
1383
+ const s = h(this);
1384
+ return De(s).has.call(s, o) || (s.add(o), j(s, "add", o, o)), this;
1385
+ },
1386
+ set(o, s) {
1387
+ !t && !$(s) && !A(s) && (s = h(s));
1388
+ const i = h(this), { has: a, get: l } = De(i);
1389
+ let u = a.call(i, o);
1390
+ u ? process.env.NODE_ENV !== "production" && Ct(i, a, o) : (o = h(o), u = a.call(i, o));
1391
+ const d = l.call(i, o);
1392
+ return i.set(o, s), u ? z(s, d) && j(i, "set", o, s, d) : j(i, "add", o, s), this;
1393
+ },
1394
+ delete(o) {
1395
+ const s = h(this), { has: i, get: a } = De(s);
1396
+ let l = i.call(s, o);
1397
+ l ? process.env.NODE_ENV !== "production" && Ct(s, i, o) : (o = h(o), l = i.call(s, o));
1398
+ const u = a ? a.call(s, o) : void 0, d = s.delete(o);
1399
+ return l && j(s, "delete", o, void 0, u), d;
1400
+ },
1401
+ clear() {
1402
+ const o = h(this), s = o.size !== 0, i = process.env.NODE_ENV !== "production" ? oe(o) ? new Map(o) : new Set(o) : void 0, a = o.clear();
1403
+ return s && j(
1404
+ o,
1405
+ "clear",
1406
+ void 0,
1407
+ void 0,
1408
+ i
1409
+ ), a;
1410
+ }
1411
+ }
1412
+ ), [
1413
+ "keys",
1414
+ "values",
1415
+ "entries",
1416
+ Symbol.iterator
1417
+ ].forEach((o) => {
1418
+ n[o] = lr(o, e, t);
1419
+ }), n;
1420
+ }
1421
+ function Gt(e, t) {
1422
+ const n = ur(e, t);
1423
+ return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(
1424
+ et(n, o) && o in r ? n : r,
1425
+ o,
1426
+ s
1427
+ );
1428
+ }
1429
+ const fr = {
1430
+ get: /* @__PURE__ */ Gt(!1, !1)
1431
+ }, dr = {
1432
+ get: /* @__PURE__ */ Gt(!0, !1)
1433
+ };
1434
+ function Ct(e, t, n) {
1435
+ const r = h(n);
1436
+ if (r !== n && t.call(e, r)) {
1437
+ const o = At(e);
1438
+ R(
1439
+ `Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
1440
+ );
1441
+ }
1442
+ }
1443
+ const qt = /* @__PURE__ */ new WeakMap(), pr = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap();
1444
+ function gr(e) {
1445
+ switch (e) {
1446
+ case "Object":
1447
+ case "Array":
1448
+ return 1;
1449
+ case "Map":
1450
+ case "Set":
1451
+ case "WeakMap":
1452
+ case "WeakSet":
1453
+ return 2;
1454
+ default:
1455
+ return 0;
1456
+ }
1457
+ }
1458
+ function mr(e) {
1459
+ return e.__v_skip || !Object.isExtensible(e) ? 0 : gr(At(e));
1460
+ }
1461
+ function Yt(e) {
1462
+ return A(e) ? e : Qt(
1463
+ e,
1464
+ !1,
1465
+ ar,
1466
+ fr,
1467
+ qt
1468
+ );
1469
+ }
1470
+ function Ae(e) {
1471
+ return Qt(
1472
+ e,
1473
+ !0,
1474
+ cr,
1475
+ dr,
1476
+ Jt
1477
+ );
1478
+ }
1479
+ function Qt(e, t, n, r, o) {
1480
+ if (!O(e))
1481
+ return process.env.NODE_ENV !== "production" && R(
1482
+ `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
1483
+ e
1484
+ )}`
1485
+ ), e;
1486
+ if (e.__v_raw && !(t && e.__v_isReactive))
1487
+ return e;
1488
+ const s = mr(e);
1489
+ if (s === 0)
1490
+ return e;
1491
+ const i = o.get(e);
1492
+ if (i)
1493
+ return i;
1494
+ const a = new Proxy(
1495
+ e,
1496
+ s === 2 ? r : n
1497
+ );
1498
+ return o.set(e, a), a;
1499
+ }
1500
+ function se(e) {
1501
+ return A(e) ? se(e.__v_raw) : !!(e && e.__v_isReactive);
1502
+ }
1503
+ function A(e) {
1504
+ return !!(e && e.__v_isReadonly);
1505
+ }
1506
+ function $(e) {
1507
+ return !!(e && e.__v_isShallow);
1508
+ }
1509
+ function Fe(e) {
1510
+ return e ? !!e.__v_raw : !1;
1511
+ }
1512
+ function h(e) {
1513
+ const t = e && e.__v_raw;
1514
+ return t ? h(t) : e;
1515
+ }
1516
+ const L = (e) => O(e) ? Yt(e) : e, be = (e) => O(e) ? Ae(e) : e;
1517
+ function x(e) {
1518
+ return e ? e.__v_isRef === !0 : !1;
1519
+ }
1520
+ function yt(e) {
1521
+ return _r(e, !1);
1522
+ }
1523
+ function _r(e, t) {
1524
+ return x(e) ? e : new yr(e, t);
1525
+ }
1526
+ class yr {
1527
+ constructor(t, n) {
1528
+ this.dep = new mt(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : h(t), this._value = n ? t : L(t), this.__v_isShallow = n;
1529
+ }
1530
+ get value() {
1531
+ return process.env.NODE_ENV !== "production" ? this.dep.track({
1532
+ target: this,
1533
+ type: "get",
1534
+ key: "value"
1535
+ }) : this.dep.track(), this._value;
1536
+ }
1537
+ set value(t) {
1538
+ const n = this._rawValue, r = this.__v_isShallow || $(t) || A(t);
1539
+ t = r ? t : h(t), z(t, n) && (this._rawValue = t, this._value = r ? t : L(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
1540
+ target: this,
1541
+ type: "set",
1542
+ key: "value",
1543
+ newValue: t,
1544
+ oldValue: n
1545
+ }) : this.dep.trigger());
1546
+ }
1547
+ }
1548
+ class vr {
1549
+ constructor(t, n, r) {
1550
+ this.fn = t, this.setter = n, this._value = void 0, this.dep = new mt(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = ye - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = r;
1551
+ }
1552
+ /**
1553
+ * @internal
1554
+ */
1555
+ notify() {
1556
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
1557
+ m !== this)
1558
+ return Pt(this, !0), !0;
1559
+ process.env.NODE_ENV;
1560
+ }
1561
+ get value() {
1562
+ const t = process.env.NODE_ENV !== "production" ? this.dep.track({
1563
+ target: this,
1564
+ type: "get",
1565
+ key: "value"
1566
+ }) : this.dep.track();
1567
+ return Kt(this), t && (t.version = this.dep.version), this._value;
1568
+ }
1569
+ set value(t) {
1570
+ this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && R("Write operation failed: computed value is readonly");
1571
+ }
1572
+ }
1573
+ function br(e, t, n = !1) {
1574
+ let r, o;
1575
+ T(e) ? r = e : (r = e.get, o = e.set);
1576
+ const s = new vr(r, o, n);
1577
+ return process.env.NODE_ENV, s;
1578
+ }
1579
+ const Oe = {}, ke = /* @__PURE__ */ new WeakMap();
1580
+ let q;
1581
+ function Er(e, t = !1, n = q) {
1582
+ if (n) {
1583
+ let r = ke.get(n);
1584
+ r || ke.set(n, r = []), r.push(e);
1585
+ } else process.env.NODE_ENV !== "production" && !t && R(
1586
+ "onWatcherCleanup() was called when there was no active watcher to associate with."
1587
+ );
1588
+ }
1589
+ function wr(e, t, n = _e) {
1590
+ const { immediate: r, deep: o, once: s, scheduler: i, augmentJob: a, call: l } = n, u = (g) => {
1591
+ (n.onWarn || R)(
1592
+ "Invalid watch source: ",
1593
+ g,
1594
+ "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types."
1595
+ );
1596
+ }, d = (g) => o ? g : $(g) || o === !1 || o === 0 ? U(g, 1) : U(g);
1597
+ let c, f, p, _, S = !1, D = !1;
1598
+ if (x(e) ? (f = () => e.value, S = $(e)) : se(e) ? (f = () => d(e), S = !0) : E(e) ? (D = !0, S = e.some((g) => se(g) || $(g)), f = () => e.map((g) => {
1599
+ if (x(g))
1600
+ return g.value;
1601
+ if (se(g))
1602
+ return d(g);
1603
+ if (T(g))
1604
+ return l ? l(g, 2) : g();
1605
+ process.env.NODE_ENV !== "production" && u(g);
1606
+ })) : T(e) ? t ? f = l ? () => l(e, 2) : e : f = () => {
1607
+ if (p) {
1608
+ ce();
1609
+ try {
1610
+ p();
1611
+ } finally {
1612
+ le();
1613
+ }
1614
+ }
1615
+ const g = q;
1616
+ q = c;
1617
+ try {
1618
+ return l ? l(e, 3, [_]) : e(_);
1619
+ } finally {
1620
+ q = g;
1621
+ }
1622
+ } : (f = re, process.env.NODE_ENV !== "production" && u(e)), t && o) {
1623
+ const g = f, I = o === !0 ? 1 / 0 : o;
1624
+ f = () => U(g(), I);
1625
+ }
1626
+ const Q = () => {
1627
+ c.stop();
1628
+ };
1629
+ if (s && t) {
1630
+ const g = t;
1631
+ t = (...I) => {
1632
+ g(...I), Q();
1633
+ };
1634
+ }
1635
+ let G = D ? new Array(e.length).fill(Oe) : Oe;
1636
+ const fe = (g) => {
1637
+ if (!(!(c.flags & 1) || !c.dirty && !g))
1638
+ if (t) {
1639
+ const I = c.run();
1640
+ if (o || S || (D ? I.some((ze, Te) => z(ze, G[Te])) : z(I, G))) {
1641
+ p && p();
1642
+ const ze = q;
1643
+ q = c;
1644
+ try {
1645
+ const Te = [
1646
+ I,
1647
+ // pass undefined as the old value when it's changed for the first time
1648
+ G === Oe ? void 0 : D && G[0] === Oe ? [] : G,
1649
+ _
1650
+ ];
1651
+ G = I, l ? l(t, 3, Te) : (
1652
+ // @ts-expect-error
1653
+ t(...Te)
1654
+ );
1655
+ } finally {
1656
+ q = ze;
1657
+ }
1658
+ }
1659
+ } else
1660
+ c.run();
1661
+ };
1662
+ return a && a(fe), c = new Zn(f), c.scheduler = i ? () => i(fe, !1) : fe, _ = (g) => Er(g, !1, c), p = c.onStop = () => {
1663
+ const g = ke.get(c);
1664
+ if (g) {
1665
+ if (l)
1666
+ l(g, 4);
1667
+ else
1668
+ for (const I of g) I();
1669
+ ke.delete(c);
1670
+ }
1671
+ }, process.env.NODE_ENV !== "production" && (c.onTrack = n.onTrack, c.onTrigger = n.onTrigger), t ? r ? fe(!0) : G = c.run() : i ? i(fe.bind(null, !0), !0) : c.run(), Q.pause = c.pause.bind(c), Q.resume = c.resume.bind(c), Q.stop = Q, Q;
1672
+ }
1673
+ function U(e, t = 1 / 0, n) {
1674
+ if (t <= 0 || !O(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
1675
+ return e;
1676
+ if (n.set(e, t), t--, x(e))
1677
+ U(e.value, t, n);
1678
+ else if (E(e))
1679
+ for (let r = 0; r < e.length; r++)
1680
+ U(e[r], t, n);
1681
+ else if (jn(e) || oe(e))
1682
+ e.forEach((r) => {
1683
+ U(r, t, n);
1684
+ });
1685
+ else if (Bn(e)) {
1686
+ for (const r in e)
1687
+ U(e[r], t, n);
1688
+ for (const r of Object.getOwnPropertySymbols(e))
1689
+ Object.prototype.propertyIsEnumerable.call(e, r) && U(e[r], t, n);
1690
+ }
1691
+ return e;
1692
+ }
1693
+ const Y = [];
1694
+ function Sr(e) {
1695
+ Y.push(e);
1696
+ }
1697
+ function Nr() {
1698
+ Y.pop();
1699
+ }
1700
+ let Je = !1;
1701
+ function N(e, ...t) {
1702
+ if (Je) return;
1703
+ Je = !0, ce();
1704
+ const n = Y.length ? Y[Y.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = Tr();
1705
+ if (r)
1706
+ Ue(
1707
+ r,
1708
+ n,
1709
+ 11,
1710
+ [
1711
+ // eslint-disable-next-line no-restricted-syntax
1712
+ e + t.map((s) => {
1713
+ var i, a;
1714
+ return (a = (i = s.toString) == null ? void 0 : i.call(s)) != null ? a : JSON.stringify(s);
1715
+ }).join(""),
1716
+ n && n.proxy,
1717
+ o.map(
1718
+ ({ vnode: s }) => `at <${mn(n, s.type)}>`
1719
+ ).join(`
1720
+ `),
1721
+ o
1722
+ ]
1723
+ );
1724
+ else {
1725
+ const s = [`[Vue warn]: ${e}`, ...t];
1726
+ o.length && s.push(`
1727
+ `, ...Dr(o)), console.warn(...s);
1728
+ }
1729
+ le(), Je = !1;
1730
+ }
1731
+ function Tr() {
1732
+ let e = Y[Y.length - 1];
1733
+ if (!e)
1734
+ return [];
1735
+ const t = [];
1736
+ for (; e; ) {
1737
+ const n = t[0];
1738
+ n && n.vnode === e ? n.recurseCount++ : t.push({
1739
+ vnode: e,
1740
+ recurseCount: 0
1741
+ });
1742
+ const r = e.component && e.component.parent;
1743
+ e = r && r.vnode;
1744
+ }
1745
+ return t;
1746
+ }
1747
+ function Dr(e) {
1748
+ const t = [];
1749
+ return e.forEach((n, r) => {
1750
+ t.push(...r === 0 ? [] : [`
1751
+ `], ...Cr(n));
1752
+ }), t;
1753
+ }
1754
+ function Cr({ vnode: e, recurseCount: t }) {
1755
+ const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, o = ` at <${mn(
1756
+ e.component,
1757
+ e.type,
1758
+ r
1759
+ )}`, s = ">" + n;
1760
+ return e.props ? [o, ...Or(e.props), s] : [o + s];
1761
+ }
1762
+ function Or(e) {
1763
+ const t = [], n = Object.keys(e);
1764
+ return n.slice(0, 3).forEach((r) => {
1765
+ t.push(...Zt(r, e[r]));
1766
+ }), n.length > 3 && t.push(" ..."), t;
1767
+ }
1768
+ function Zt(e, t, n) {
1769
+ return P(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : x(t) ? (t = Zt(e, h(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : T(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = h(t), n ? t : [`${e}=`, t]);
1770
+ }
1771
+ const vt = {
1772
+ sp: "serverPrefetch hook",
1773
+ bc: "beforeCreate hook",
1774
+ c: "created hook",
1775
+ bm: "beforeMount hook",
1776
+ m: "mounted hook",
1777
+ bu: "beforeUpdate hook",
1778
+ u: "updated",
1779
+ bum: "beforeUnmount hook",
1780
+ um: "unmounted hook",
1781
+ a: "activated hook",
1782
+ da: "deactivated hook",
1783
+ ec: "errorCaptured hook",
1784
+ rtc: "renderTracked hook",
1785
+ rtg: "renderTriggered hook",
1786
+ 0: "setup function",
1787
+ 1: "render function",
1788
+ 2: "watcher getter",
1789
+ 3: "watcher callback",
1790
+ 4: "watcher cleanup function",
1791
+ 5: "native event handler",
1792
+ 6: "component event handler",
1793
+ 7: "vnode hook",
1794
+ 8: "directive hook",
1795
+ 9: "transition hook",
1796
+ 10: "app errorHandler",
1797
+ 11: "app warnHandler",
1798
+ 12: "ref function",
1799
+ 13: "async component loader",
1800
+ 14: "scheduler flush",
1801
+ 15: "component update",
1802
+ 16: "app unmount cleanup function"
1803
+ };
1804
+ function Ue(e, t, n, r) {
1805
+ try {
1806
+ return r ? e(...r) : e();
1807
+ } catch (o) {
1808
+ Et(o, t, n);
1809
+ }
1810
+ }
1811
+ function bt(e, t, n, r) {
1812
+ if (T(e)) {
1813
+ const o = Ue(e, t, n, r);
1814
+ return o && Un(o) && o.catch((s) => {
1815
+ Et(s, t, n);
1816
+ }), o;
1817
+ }
1818
+ if (E(e)) {
1819
+ const o = [];
1820
+ for (let s = 0; s < e.length; s++)
1821
+ o.push(bt(e[s], t, n, r));
1822
+ return o;
1823
+ } else process.env.NODE_ENV !== "production" && N(
1824
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
1825
+ );
1826
+ }
1827
+ function Et(e, t, n, r = !0) {
1828
+ const o = t ? t.vnode : null, { errorHandler: s, throwUnhandledErrorInProduction: i } = t && t.appContext.config || _e;
1829
+ if (t) {
1830
+ let a = t.parent;
1831
+ const l = t.proxy, u = process.env.NODE_ENV !== "production" ? vt[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
1832
+ for (; a; ) {
1833
+ const d = a.ec;
1834
+ if (d) {
1835
+ for (let c = 0; c < d.length; c++)
1836
+ if (d[c](e, l, u) === !1)
1837
+ return;
1838
+ }
1839
+ a = a.parent;
1840
+ }
1841
+ if (s) {
1842
+ ce(), Ue(s, null, 10, [
1843
+ e,
1844
+ l,
1845
+ u
1846
+ ]), le();
1847
+ return;
1848
+ }
1849
+ }
1850
+ $r(e, n, o, r, i);
1851
+ }
1852
+ function $r(e, t, n, r = !0, o = !1) {
1853
+ if (process.env.NODE_ENV !== "production") {
1854
+ const s = vt[t];
1855
+ if (n && Sr(n), N(`Unhandled error${s ? ` during execution of ${s}` : ""}`), n && Nr(), r)
1856
+ throw e;
1857
+ console.error(e);
1858
+ } else {
1859
+ if (o)
1860
+ throw e;
1861
+ console.error(e);
1862
+ }
1863
+ }
1864
+ const M = [];
1865
+ let H = -1;
1866
+ const ie = [];
1867
+ let K = null, ee = 0;
1868
+ const Mr = /* @__PURE__ */ Promise.resolve();
1869
+ let st = null;
1870
+ const xr = 100;
1871
+ function Vr(e) {
1872
+ let t = H + 1, n = M.length;
1873
+ for (; t < n; ) {
1874
+ const r = t + n >>> 1, o = M[r], s = Ee(o);
1875
+ s < e || s === e && o.flags & 2 ? t = r + 1 : n = r;
1876
+ }
1877
+ return t;
1878
+ }
1879
+ function Xt(e) {
1880
+ if (!(e.flags & 1)) {
1881
+ const t = Ee(e), n = M[M.length - 1];
1882
+ !n || // fast path when the job id is larger than the tail
1883
+ !(e.flags & 2) && t >= Ee(n) ? M.push(e) : M.splice(Vr(t), 0, e), e.flags |= 1, en();
1884
+ }
1885
+ }
1886
+ function en() {
1887
+ st || (st = Mr.then(nn));
1888
+ }
1889
+ function tn(e) {
1890
+ E(e) ? ie.push(...e) : K && e.id === -1 ? K.splice(ee + 1, 0, e) : e.flags & 1 || (ie.push(e), e.flags |= 1), en();
1891
+ }
1892
+ function Ir(e) {
1893
+ if (ie.length) {
1894
+ const t = [...new Set(ie)].sort(
1895
+ (n, r) => Ee(n) - Ee(r)
1896
+ );
1897
+ if (ie.length = 0, K) {
1898
+ K.push(...t);
1899
+ return;
1900
+ }
1901
+ for (K = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), ee = 0; ee < K.length; ee++) {
1902
+ const n = K[ee];
1903
+ process.env.NODE_ENV !== "production" && rn(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1904
+ }
1905
+ K = null, ee = 0;
1906
+ }
1907
+ }
1908
+ const Ee = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1909
+ function nn(e) {
1910
+ process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1911
+ const t = process.env.NODE_ENV !== "production" ? (n) => rn(e, n) : re;
1912
+ try {
1913
+ for (H = 0; H < M.length; H++) {
1914
+ const n = M[H];
1915
+ if (n && !(n.flags & 8)) {
1916
+ if (process.env.NODE_ENV !== "production" && t(n))
1917
+ continue;
1918
+ n.flags & 4 && (n.flags &= -2), Ue(
1919
+ n,
1920
+ n.i,
1921
+ n.i ? 15 : 14
1922
+ ), n.flags & 4 || (n.flags &= -2);
1923
+ }
1924
+ }
1925
+ } finally {
1926
+ for (; H < M.length; H++) {
1927
+ const n = M[H];
1928
+ n && (n.flags &= -2);
1929
+ }
1930
+ H = -1, M.length = 0, Ir(e), st = null, (M.length || ie.length) && nn(e);
1931
+ }
1932
+ }
1933
+ function rn(e, t) {
1934
+ const n = e.get(t) || 0;
1935
+ if (n > xr) {
1936
+ const r = t.i, o = r && gn(r.type);
1937
+ return Et(
1938
+ `Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
1939
+ null,
1940
+ 10
1941
+ ), !0;
1942
+ }
1943
+ return e.set(t, n + 1), !1;
1944
+ }
1945
+ const Ye = /* @__PURE__ */ new Map();
1946
+ process.env.NODE_ENV !== "production" && (je().__VUE_HMR_RUNTIME__ = {
1947
+ createRecord: Qe(Rr),
1948
+ rerender: Qe(Ar),
1949
+ reload: Qe(Fr)
1950
+ });
1951
+ const He = /* @__PURE__ */ new Map();
1952
+ function Rr(e, t) {
1953
+ return He.has(e) ? !1 : (He.set(e, {
1954
+ initialDef: Pe(t),
1955
+ instances: /* @__PURE__ */ new Set()
1956
+ }), !0);
1957
+ }
1958
+ function Pe(e) {
1959
+ return _n(e) ? e.__vccOpts : e;
1960
+ }
1961
+ function Ar(e, t) {
1962
+ const n = He.get(e);
1963
+ n && (n.initialDef.render = t, [...n.instances].forEach((r) => {
1964
+ t && (r.render = t, Pe(r.type).render = t), r.renderCache = [], r.job.flags & 8 || r.update();
1965
+ }));
1966
+ }
1967
+ function Fr(e, t) {
1968
+ const n = He.get(e);
1969
+ if (!n) return;
1970
+ t = Pe(t), Ot(n.initialDef, t);
1971
+ const r = [...n.instances];
1972
+ for (let o = 0; o < r.length; o++) {
1973
+ const s = r[o], i = Pe(s.type);
1974
+ let a = Ye.get(i);
1975
+ a || (i !== n.initialDef && Ot(i, t), Ye.set(i, a = /* @__PURE__ */ new Set())), a.add(s), s.appContext.propsCache.delete(s.type), s.appContext.emitsCache.delete(s.type), s.appContext.optionsCache.delete(s.type), s.ceReload ? (a.add(s), s.ceReload(t.styles), a.delete(s)) : s.parent ? Xt(() => {
1976
+ s.job.flags & 8 || (s.parent.update(), a.delete(s));
1977
+ }) : s.appContext.reload ? s.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
1978
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1979
+ ), s.root.ce && s !== s.root && s.root.ce._removeChildStyle(i);
1980
+ }
1981
+ tn(() => {
1982
+ Ye.clear();
1983
+ });
1984
+ }
1985
+ function Ot(e, t) {
1986
+ B(e, t);
1987
+ for (const n in e)
1988
+ n !== "__file" && !(n in t) && delete e[n];
1989
+ }
1990
+ function Qe(e) {
1991
+ return (t, n) => {
1992
+ try {
1993
+ return e(t, n);
1994
+ } catch (r) {
1995
+ console.error(r), console.warn(
1996
+ "[HMR] Something went wrong during Vue component hot-reload. Full reload required."
1997
+ );
1998
+ }
1999
+ };
2000
+ }
2001
+ let te, $e = [];
2002
+ function on(e, t) {
2003
+ var n, r;
2004
+ te = e, te ? (te.enabled = !0, $e.forEach(({ event: o, args: s }) => te.emit(o, ...s)), $e = []) : /* handle late devtools injection - only do this if we are in an actual */ /* browser environment to avoid the timer handle stalling test runner exit */ /* (#4815) */ typeof window < "u" && // some envs mock window but not fully
2005
+ window.HTMLElement && // also exclude jsdom
2006
+ // eslint-disable-next-line no-restricted-syntax
2007
+ !((r = (n = window.navigator) == null ? void 0 : n.userAgent) != null && r.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((s) => {
2008
+ on(s, t);
2009
+ }), setTimeout(() => {
2010
+ te || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, $e = []);
2011
+ }, 3e3)) : $e = [];
2012
+ }
2013
+ let we = null, kr = null;
2014
+ function Hr(e, t, n = !1) {
2015
+ const r = hn();
2016
+ if (r || qr) {
2017
+ let o = r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
2018
+ if (o && e in o)
2019
+ return o[e];
2020
+ if (arguments.length > 1)
2021
+ return n && T(t) ? t.call(r && r.proxy) : t;
2022
+ process.env.NODE_ENV !== "production" && N(`injection "${String(e)}" not found.`);
2023
+ } else process.env.NODE_ENV !== "production" && N("inject() can only be used inside setup() or functional components.");
2024
+ }
2025
+ const Pr = /* @__PURE__ */ Symbol.for("v-scx"), Lr = () => {
2026
+ {
2027
+ const e = Hr(Pr);
2028
+ return e || process.env.NODE_ENV !== "production" && N(
2029
+ "Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."
2030
+ ), e;
2031
+ }
2032
+ };
2033
+ function Wr(e, t, n) {
2034
+ return process.env.NODE_ENV !== "production" && !T(t) && N(
2035
+ "`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."
2036
+ ), Kr(e, t, n);
2037
+ }
2038
+ function Kr(e, t, n = _e) {
2039
+ const { immediate: r, deep: o, flush: s, once: i } = n;
2040
+ process.env.NODE_ENV !== "production" && !t && (r !== void 0 && N(
2041
+ 'watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'
2042
+ ), o !== void 0 && N(
2043
+ 'watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'
2044
+ ), i !== void 0 && N(
2045
+ 'watch() "once" option is only respected when using the watch(source, callback, options?) signature.'
2046
+ ));
2047
+ const a = B({}, n);
2048
+ process.env.NODE_ENV !== "production" && (a.onWarn = N);
2049
+ const l = t && r || !t && s !== "post";
2050
+ let u;
2051
+ if (Se) {
2052
+ if (s === "sync") {
2053
+ const p = Lr();
2054
+ u = p.__watcherHandles || (p.__watcherHandles = []);
2055
+ } else if (!l) {
2056
+ const p = () => {
2057
+ };
2058
+ return p.stop = re, p.resume = re, p.pause = re, p;
2059
+ }
2060
+ }
2061
+ const d = ue;
2062
+ a.call = (p, _, S) => bt(p, d, _, S);
2063
+ let c = !1;
2064
+ s === "post" ? a.scheduler = (p) => {
2065
+ Yr(p, d && d.suspense);
2066
+ } : s !== "sync" && (c = !0, a.scheduler = (p, _) => {
2067
+ _ ? p() : Xt(p);
2068
+ }), a.augmentJob = (p) => {
2069
+ t && (p.flags |= 4), c && (p.flags |= 2, d && (p.id = d.uid, p.i = d));
2070
+ };
2071
+ const f = wr(e, t, a);
2072
+ return Se && (u ? u.push(f) : l && f()), f;
2073
+ }
2074
+ const jr = (e) => e.__isTeleport;
2075
+ function sn(e, t) {
2076
+ e.shapeFlag & 6 && e.component ? (e.transition = t, sn(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
2077
+ }
2078
+ je().requestIdleCallback;
2079
+ je().cancelIdleCallback;
2080
+ function Ur(e, t, n = ue, r = !1) {
2081
+ if (n) {
2082
+ const o = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...i) => {
2083
+ ce();
2084
+ const a = co(n), l = bt(t, n, e, i);
2085
+ return a(), le(), l;
2086
+ });
2087
+ return r ? o.unshift(s) : o.push(s), s;
2088
+ } else if (process.env.NODE_ENV !== "production") {
2089
+ const o = Gn(vt[e].replace(/ hook$/, ""));
2090
+ N(
2091
+ `${o} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
2092
+ );
2093
+ }
2094
+ }
2095
+ const an = (e) => (t, n = ue) => {
2096
+ (!Se || e === "sp") && Ur(e, (...r) => t(...r), n);
2097
+ }, zr = an("m"), cn = an("um"), Br = /* @__PURE__ */ Symbol.for("v-ndc"), Gr = {};
2098
+ process.env.NODE_ENV !== "production" && (Gr.ownKeys = (e) => (N(
2099
+ "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
2100
+ ), Reflect.ownKeys(e)));
2101
+ let qr = null;
2102
+ const Jr = {}, ln = (e) => Object.getPrototypeOf(e) === Jr, Yr = Zr, Qr = (e) => e.__isSuspense;
2103
+ function Zr(e, t) {
2104
+ t && t.pendingBranch ? E(e) ? t.effects.push(...e) : t.effects.push(e) : tn(e);
2105
+ }
2106
+ const un = /* @__PURE__ */ Symbol.for("v-fgt"), Xr = /* @__PURE__ */ Symbol.for("v-txt"), eo = /* @__PURE__ */ Symbol.for("v-cmt");
2107
+ function to(e) {
2108
+ return e ? e.__v_isVNode === !0 : !1;
2109
+ }
2110
+ const no = (...e) => dn(
2111
+ ...e
2112
+ ), fn = ({ key: e }) => e ?? null, xe = ({
2113
+ ref: e,
2114
+ ref_key: t,
2115
+ ref_for: n
2116
+ }) => (typeof e == "number" && (e = "" + e), e != null ? P(e) || x(e) || T(e) ? { i: we, r: e, k: t, f: !!n } : e : null);
2117
+ function ro(e, t = null, n = null, r = 0, o = null, s = e === un ? 0 : 1, i = !1, a = !1) {
2118
+ const l = {
2119
+ __v_isVNode: !0,
2120
+ __v_skip: !0,
2121
+ type: e,
2122
+ props: t,
2123
+ key: t && fn(t),
2124
+ ref: t && xe(t),
2125
+ scopeId: kr,
2126
+ slotScopeIds: null,
2127
+ children: n,
2128
+ component: null,
2129
+ suspense: null,
2130
+ ssContent: null,
2131
+ ssFallback: null,
2132
+ dirs: null,
2133
+ transition: null,
2134
+ el: null,
2135
+ anchor: null,
2136
+ target: null,
2137
+ targetStart: null,
2138
+ targetAnchor: null,
2139
+ staticCount: 0,
2140
+ shapeFlag: s,
2141
+ patchFlag: r,
2142
+ dynamicProps: o,
2143
+ dynamicChildren: null,
2144
+ appContext: null,
2145
+ ctx: we
2146
+ };
2147
+ return a ? (wt(l, n), s & 128 && e.normalize(l)) : n && (l.shapeFlag |= P(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && N("VNode created with invalid key (NaN). VNode type:", l.type), l;
2148
+ }
2149
+ const oo = process.env.NODE_ENV !== "production" ? no : dn;
2150
+ function dn(e, t = null, n = null, r = 0, o = null, s = !1) {
2151
+ if ((!e || e === Br) && (process.env.NODE_ENV !== "production" && !e && N(`Invalid vnode type when creating vnode: ${e}.`), e = eo), to(e)) {
2152
+ const a = Le(
2153
+ e,
2154
+ t,
2155
+ !0
2156
+ /* mergeRef: true */
2157
+ );
2158
+ return n && wt(a, n), a.patchFlag = -2, a;
2159
+ }
2160
+ if (_n(e) && (e = e.__vccOpts), t) {
2161
+ t = so(t);
2162
+ let { class: a, style: l } = t;
2163
+ a && !P(a) && (t.class = dt(a)), O(l) && (Fe(l) && !E(l) && (l = B({}, l)), t.style = ft(l));
2164
+ }
2165
+ const i = P(e) ? 1 : Qr(e) ? 128 : jr(e) ? 64 : O(e) ? 4 : T(e) ? 2 : 0;
2166
+ return process.env.NODE_ENV !== "production" && i & 4 && Fe(e) && (e = h(e), N(
2167
+ "Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
2168
+ `
2169
+ Component that was made reactive: `,
2170
+ e
2171
+ )), ro(
2172
+ e,
2173
+ t,
2174
+ n,
2175
+ r,
2176
+ o,
2177
+ i,
2178
+ s,
2179
+ !0
2180
+ );
2181
+ }
2182
+ function so(e) {
2183
+ return e ? Fe(e) || ln(e) ? B({}, e) : e : null;
2184
+ }
2185
+ function Le(e, t, n = !1, r = !1) {
2186
+ const { props: o, ref: s, patchFlag: i, children: a, transition: l } = e, u = t ? ao(o || {}, t) : o, d = {
2187
+ __v_isVNode: !0,
2188
+ __v_skip: !0,
2189
+ type: e.type,
2190
+ props: u,
2191
+ key: u && fn(u),
2192
+ ref: t && t.ref ? (
2193
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
2194
+ // if the vnode itself already has a ref, cloneVNode will need to merge
2195
+ // the refs so the single vnode can be set on multiple refs
2196
+ n && s ? E(s) ? s.concat(xe(t)) : [s, xe(t)] : xe(t)
2197
+ ) : s,
2198
+ scopeId: e.scopeId,
2199
+ slotScopeIds: e.slotScopeIds,
2200
+ children: process.env.NODE_ENV !== "production" && i === -1 && E(a) ? a.map(pn) : a,
2201
+ target: e.target,
2202
+ targetStart: e.targetStart,
2203
+ targetAnchor: e.targetAnchor,
2204
+ staticCount: e.staticCount,
2205
+ shapeFlag: e.shapeFlag,
2206
+ // if the vnode is cloned with extra props, we can no longer assume its
2207
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2208
+ // note: preserve flag for fragments since they use the flag for children
2209
+ // fast paths only.
2210
+ patchFlag: t && e.type !== un ? i === -1 ? 16 : i | 16 : i,
2211
+ dynamicProps: e.dynamicProps,
2212
+ dynamicChildren: e.dynamicChildren,
2213
+ appContext: e.appContext,
2214
+ dirs: e.dirs,
2215
+ transition: l,
2216
+ // These should technically only be non-null on mounted VNodes. However,
2217
+ // they *should* be copied for kept-alive vnodes. So we just always copy
2218
+ // them since them being non-null during a mount doesn't affect the logic as
2219
+ // they will simply be overwritten.
2220
+ component: e.component,
2221
+ suspense: e.suspense,
2222
+ ssContent: e.ssContent && Le(e.ssContent),
2223
+ ssFallback: e.ssFallback && Le(e.ssFallback),
2224
+ placeholder: e.placeholder,
2225
+ el: e.el,
2226
+ anchor: e.anchor,
2227
+ ctx: e.ctx,
2228
+ ce: e.ce
2229
+ };
2230
+ return l && r && sn(
2231
+ d,
2232
+ l.clone(d)
2233
+ ), d;
2234
+ }
2235
+ function pn(e) {
2236
+ const t = Le(e);
2237
+ return E(e.children) && (t.children = e.children.map(pn)), t;
2238
+ }
2239
+ function io(e = " ", t = 0) {
2240
+ return oo(Xr, null, e, t);
2241
+ }
2242
+ function wt(e, t) {
2243
+ let n = 0;
2244
+ const { shapeFlag: r } = e;
2245
+ if (t == null)
2246
+ t = null;
2247
+ else if (E(t))
2248
+ n = 16;
2249
+ else if (typeof t == "object")
2250
+ if (r & 65) {
2251
+ const o = t.default;
2252
+ o && (o._c && (o._d = !1), wt(e, o()), o._c && (o._d = !0));
2253
+ return;
2254
+ } else
2255
+ n = 32, !t._ && !ln(t) && (t._ctx = we);
2256
+ else T(t) ? (t = { default: t, _ctx: we }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [io(t)]) : n = 8);
2257
+ e.children = t, e.shapeFlag |= n;
2258
+ }
2259
+ function ao(...e) {
2260
+ const t = {};
2261
+ for (let n = 0; n < e.length; n++) {
2262
+ const r = e[n];
2263
+ for (const o in r)
2264
+ if (o === "class")
2265
+ t.class !== r.class && (t.class = dt([t.class, r.class]));
2266
+ else if (o === "style")
2267
+ t.style = ft([t.style, r.style]);
2268
+ else if (Wn(o)) {
2269
+ const s = t[o], i = r[o];
2270
+ i && s !== i && !(E(s) && s.includes(i)) && (t[o] = s ? [].concat(s, i) : i);
2271
+ } else o !== "" && (t[o] = r[o]);
2272
+ }
2273
+ return t;
2274
+ }
2275
+ let ue = null;
2276
+ const hn = () => ue || we;
2277
+ let it;
2278
+ {
2279
+ const e = je(), t = (n, r) => {
2280
+ let o;
2281
+ return (o = e[n]) || (o = e[n] = []), o.push(r), (s) => {
2282
+ o.length > 1 ? o.forEach((i) => i(s)) : o[0](s);
2283
+ };
2284
+ };
2285
+ it = t(
2286
+ "__VUE_INSTANCE_SETTERS__",
2287
+ (n) => ue = n
2288
+ ), t(
2289
+ "__VUE_SSR_SETTERS__",
2290
+ (n) => Se = n
2291
+ );
2292
+ }
2293
+ const co = (e) => {
2294
+ const t = ue;
2295
+ return it(e), e.scope.on(), () => {
2296
+ e.scope.off(), it(t);
2297
+ };
2298
+ };
2299
+ let Se = !1;
2300
+ process.env.NODE_ENV;
2301
+ const lo = /(?:^|[-_])\w/g, uo = (e) => e.replace(lo, (t) => t.toUpperCase()).replace(/[-_]/g, "");
2302
+ function gn(e, t = !0) {
2303
+ return T(e) ? e.displayName || e.name : e.name || t && e.__name;
2304
+ }
2305
+ function mn(e, t, n = !1) {
2306
+ let r = gn(t);
2307
+ if (!r && t.__file) {
2308
+ const o = t.__file.match(/([^/\\]+)\.\w+$/);
2309
+ o && (r = o[1]);
2310
+ }
2311
+ if (!r && e) {
2312
+ const o = (s) => {
2313
+ for (const i in s)
2314
+ if (s[i] === t)
2315
+ return i;
2316
+ };
2317
+ r = o(e.components) || e.parent && o(
2318
+ e.parent.type.components
2319
+ ) || o(e.appContext.components);
2320
+ }
2321
+ return r ? uo(r) : n ? "App" : "Anonymous";
2322
+ }
2323
+ function _n(e) {
2324
+ return T(e) && "__vccOpts" in e;
2325
+ }
2326
+ const Me = (e, t) => {
2327
+ const n = br(e, t, Se);
2328
+ if (process.env.NODE_ENV !== "production") {
2329
+ const r = hn();
2330
+ r && r.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
2331
+ }
2332
+ return n;
2333
+ };
2334
+ function fo() {
2335
+ if (process.env.NODE_ENV === "production" || typeof window > "u")
2336
+ return;
2337
+ const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, r = { style: "color:#eb2f96" }, o = {
2338
+ __vue_custom_formatter: !0,
2339
+ header(c) {
2340
+ if (!O(c))
2341
+ return null;
2342
+ if (c.__isVue)
2343
+ return ["div", e, "VueInstance"];
2344
+ if (x(c)) {
2345
+ ce();
2346
+ const f = c.value;
2347
+ return le(), [
2348
+ "div",
2349
+ {},
2350
+ ["span", e, d(c)],
2351
+ "<",
2352
+ a(f),
2353
+ ">"
2354
+ ];
2355
+ } else {
2356
+ if (se(c))
2357
+ return [
2358
+ "div",
2359
+ {},
2360
+ ["span", e, $(c) ? "ShallowReactive" : "Reactive"],
2361
+ "<",
2362
+ a(c),
2363
+ `>${A(c) ? " (readonly)" : ""}`
2364
+ ];
2365
+ if (A(c))
2366
+ return [
2367
+ "div",
2368
+ {},
2369
+ ["span", e, $(c) ? "ShallowReadonly" : "Readonly"],
2370
+ "<",
2371
+ a(c),
2372
+ ">"
2373
+ ];
2374
+ }
2375
+ return null;
2376
+ },
2377
+ hasBody(c) {
2378
+ return c && c.__isVue;
2379
+ },
2380
+ body(c) {
2381
+ if (c && c.__isVue)
2382
+ return [
2383
+ "div",
2384
+ {},
2385
+ ...s(c.$)
2386
+ ];
2387
+ }
2388
+ };
2389
+ function s(c) {
2390
+ const f = [];
2391
+ c.type.props && c.props && f.push(i("props", h(c.props))), c.setupState !== _e && f.push(i("setup", c.setupState)), c.data !== _e && f.push(i("data", h(c.data)));
2392
+ const p = l(c, "computed");
2393
+ p && f.push(i("computed", p));
2394
+ const _ = l(c, "inject");
2395
+ return _ && f.push(i("injected", _)), f.push([
2396
+ "div",
2397
+ {},
2398
+ [
2399
+ "span",
2400
+ {
2401
+ style: r.style + ";opacity:0.66"
2402
+ },
2403
+ "$ (internal): "
2404
+ ],
2405
+ ["object", { object: c }]
2406
+ ]), f;
2407
+ }
2408
+ function i(c, f) {
2409
+ return f = B({}, f), Object.keys(f).length ? [
2410
+ "div",
2411
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
2412
+ [
2413
+ "div",
2414
+ {
2415
+ style: "color:#476582"
2416
+ },
2417
+ c
2418
+ ],
2419
+ [
2420
+ "div",
2421
+ {
2422
+ style: "padding-left:1.25em"
2423
+ },
2424
+ ...Object.keys(f).map((p) => [
2425
+ "div",
2426
+ {},
2427
+ ["span", r, p + ": "],
2428
+ a(f[p], !1)
2429
+ ])
2430
+ ]
2431
+ ] : ["span", {}];
2432
+ }
2433
+ function a(c, f = !0) {
2434
+ return typeof c == "number" ? ["span", t, c] : typeof c == "string" ? ["span", n, JSON.stringify(c)] : typeof c == "boolean" ? ["span", r, c] : O(c) ? ["object", { object: f ? h(c) : c }] : ["span", n, String(c)];
2435
+ }
2436
+ function l(c, f) {
2437
+ const p = c.type;
2438
+ if (T(p))
2439
+ return;
2440
+ const _ = {};
2441
+ for (const S in c.ctx)
2442
+ u(p, S, f) && (_[S] = c.ctx[S]);
2443
+ return _;
2444
+ }
2445
+ function u(c, f, p) {
2446
+ const _ = c[p];
2447
+ if (E(_) && _.includes(f) || O(_) && f in _ || c.extends && u(c.extends, f, p) || c.mixins && c.mixins.some((S) => u(S, f, p)))
2448
+ return !0;
2449
+ }
2450
+ function d(c) {
2451
+ return $(c) ? "ShallowRef" : c.effect ? "ComputedRef" : "Ref";
2452
+ }
2453
+ window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
2454
+ }
2455
+ process.env.NODE_ENV;
2456
+ process.env.NODE_ENV;
2457
+ process.env.NODE_ENV;
2458
+ function po() {
2459
+ fo();
2460
+ }
2461
+ process.env.NODE_ENV !== "production" && po();
2462
+ const w = yt({
2463
+ mode: "light",
2464
+ variant: "default",
2465
+ isChanging: !1
2466
+ });
2467
+ let $t = !1, X = null;
2468
+ function yn() {
2469
+ if (!$t && typeof window < "u") {
2470
+ const u = In();
2471
+ w.value = {
2472
+ mode: u.mode,
2473
+ variant: u.variant,
2474
+ isChanging: !1
2475
+ }, $t = !0;
2476
+ }
2477
+ const e = Me(() => w.value.mode), t = Me(() => w.value.variant), n = Me(() => w.value.mode === "dark"), r = Me(() => w.value.isChanging), o = (u, d = {}) => {
2478
+ w.value.isChanging = !0, he({ mode: u }, d), w.value.mode = u, setTimeout(() => {
2479
+ w.value.isChanging = !1;
2480
+ }, 300);
2481
+ }, s = (u, d = {}) => {
2482
+ w.value.isChanging = !0, he({ variant: u }, d), w.value.variant = u, setTimeout(() => {
2483
+ w.value.isChanging = !1;
2484
+ }, 300);
2485
+ }, i = (u = {}) => {
2486
+ const d = Vn(u);
2487
+ w.value.mode = d;
2488
+ }, a = (u, d = {}) => {
2489
+ w.value.isChanging = !0, he(u, d), u.mode && (w.value.mode = u.mode), u.variant && (w.value.variant = u.variant), setTimeout(() => {
2490
+ w.value.isChanging = !1;
2491
+ }, 300);
2492
+ }, l = () => Fn(w.value.variant);
2493
+ return {
2494
+ theme: w.value,
2495
+ mode: e.value,
2496
+ variant: t.value,
2497
+ isDark: n.value,
2498
+ isChanging: r.value,
2499
+ setMode: o,
2500
+ setVariant: s,
2501
+ toggleDarkMode: i,
2502
+ setTheme: a,
2503
+ getAvailableThemes: An,
2504
+ getCurrentThemeMetadata: l
2505
+ };
2506
+ }
2507
+ function Io(e = yt(!0)) {
2508
+ const { setMode: t } = yn(), n = () => {
2509
+ X && X(), X = Rn((o) => {
2510
+ e.value && t(o, { transition: !0, persist: !1 });
2511
+ });
2512
+ }, r = () => {
2513
+ X && (X(), X = null);
2514
+ };
2515
+ Wr(
2516
+ e,
2517
+ (o) => {
2518
+ o ? n() : r();
2519
+ },
2520
+ { immediate: !0 }
2521
+ ), cn(() => {
2522
+ r();
2523
+ });
2524
+ }
2525
+ function Ro(e) {
2526
+ const t = yt(""), n = () => {
2527
+ if (typeof window > "u") return;
2528
+ const r = document.documentElement, o = getComputedStyle(r).getPropertyValue(`--${e}`).trim();
2529
+ o && !o.startsWith("hsl") ? t.value = `hsl(${o})` : t.value = o;
2530
+ };
2531
+ return zr(() => {
2532
+ n();
2533
+ const r = new MutationObserver(() => {
2534
+ n();
2535
+ });
2536
+ r.observe(document.documentElement, {
2537
+ attributes: !0,
2538
+ attributeFilter: ["class", "data-theme"]
2539
+ }), cn(() => {
2540
+ r.disconnect();
2541
+ });
2542
+ }), Ae(t);
2543
+ }
2544
+ function Ao() {
2545
+ const { isChanging: e } = yn();
2546
+ return {
2547
+ isTransitioning: e
2548
+ };
2549
+ }
2550
+ export {
2551
+ pe as CSS_CLASSES,
2552
+ Ze as DEFAULT_LOCALE,
2553
+ at as DEFAULT_THEME_MODE,
2554
+ Ie as DEFAULT_THEME_VARIANT,
2555
+ Re as HTML_ATTRIBUTES,
2556
+ ae as STORAGE_KEYS,
2557
+ _o as THEMES_BY_CATEGORY,
2558
+ ct as THEME_MAP,
2559
+ mo as THEME_METADATA,
2560
+ Xe as THEME_TRANSITION_DURATION,
2561
+ lt as applyCustomTheme,
2562
+ On as applyMode,
2563
+ he as applyTheme,
2564
+ $o as applyThemeFromPrimary,
2565
+ $n as applyVariant,
2566
+ Do as clearCustomTheme,
2567
+ yo as clearStoredTheme,
2568
+ bo as detectSystemTheme,
2569
+ xn as disableTransition,
2570
+ bn as enUS,
2571
+ Mn as enableTransition,
2572
+ It as generateThemeFromPrimary,
2573
+ An as getAvailableThemes,
2574
+ We as getCSSVariable,
2575
+ Vt as getCurrentMode,
2576
+ vo as getCurrentVariant,
2577
+ y as getHSLColor,
2578
+ b as getHexColor,
2579
+ F as getHtmlElement,
2580
+ go as getLocale,
2581
+ v as getRGBColor,
2582
+ kn as getStoredCustomTheme,
2583
+ Nn as getStoredMode,
2584
+ Tn as getStoredVariant,
2585
+ So as getThemeColor,
2586
+ Mo as getThemeColors,
2587
+ Vo as getThemeColorsHex,
2588
+ xo as getThemeColorsRGB,
2589
+ wn as getThemeDescription,
2590
+ ne as getThemeMetadata,
2591
+ Fn as getThemeMetadataById,
2592
+ En as getThemeName,
2593
+ xt as getTranslations,
2594
+ Hn as hexToHSL,
2595
+ Pn as hslToHex,
2596
+ Rt as hslToRgb,
2597
+ In as initTheme,
2598
+ To as isValidMode,
2599
+ No as isValidVariant,
2600
+ Mt as locales,
2601
+ St as parseHSL,
2602
+ Co as restoreCustomTheme,
2603
+ Oo as rgbToHSL,
2604
+ wo as setCSSVariable,
2605
+ ho as setLocale,
2606
+ Dn as storeMode,
2607
+ Cn as storeVariant,
2608
+ Eo as toHSLString,
2609
+ Vn as toggleDarkMode,
2610
+ Io as useSystemTheme,
2611
+ yn as useTheme,
2612
+ Ro as useThemeColor,
2613
+ Ao as useThemeTransition,
2614
+ Rn as watchSystemTheme,
2615
+ vn as zhCN
2616
+ };
2
2617
  //# sourceMappingURL=index.js.map