@phila/phila-ui-core 2.1.1 → 2.2.0-beta.2

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 (49) hide show
  1. package/dist/BaseLink.css +1 -0
  2. package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CXQJyB5W.js +225 -0
  3. package/dist/BaseLink.vue_vue_type_script_setup_true_lang-CexJ6lNf.cjs +1 -0
  4. package/dist/classNames-CcykAxZN.js +6 -0
  5. package/dist/classNames-GLLmlfI4.cjs +1 -0
  6. package/dist/collapse-ApWEJVnD.cjs +1 -0
  7. package/dist/collapse-BvsHwQBu.js +74 -0
  8. package/dist/components.d.ts +162 -1
  9. package/dist/components.js +1 -1
  10. package/dist/components.mjs +7 -109
  11. package/dist/composables.d.ts +100 -0
  12. package/dist/composables.js +1 -1
  13. package/dist/composables.mjs +6 -2
  14. package/dist/index.d.ts +356 -0
  15. package/dist/index.js +1 -1
  16. package/dist/index.mjs +19 -2
  17. package/dist/styles/elements/buttons.css +230 -0
  18. package/dist/styles/elements/icons.css +53 -0
  19. package/dist/styles/elements/index.css +3 -0
  20. package/dist/styles/elements/links.css +87 -0
  21. package/dist/styles/generated/extended-colors.css +11 -0
  22. package/dist/styles/generated/other.css +111 -0
  23. package/dist/styles/generated/palettes.css +140 -0
  24. package/dist/styles/generated/primitives.css +293 -0
  25. package/dist/styles/generated/schemes.css +58 -0
  26. package/dist/styles/generated/sizes.css +44 -0
  27. package/dist/styles/generated/typography.css +281 -0
  28. package/dist/styles/legacy.css +39 -0
  29. package/dist/styles/raw/PhilaUI 4.0-variables.css +3543 -0
  30. package/dist/styles/template-light.css +6 -2
  31. package/dist/styles/template-orange.css +4 -2
  32. package/dist/styles/tokens.css +39 -0
  33. package/dist/styles/typography.css +45 -0
  34. package/dist/styles/utilities/color.css +26 -0
  35. package/dist/styles/utilities/containers.css +158 -0
  36. package/dist/styles/utilities/index.css +4 -0
  37. package/dist/styles/utilities/spacing.css +433 -0
  38. package/dist/styles/utilities/text.css +177 -0
  39. package/dist/useRouter-BVKwor6C.js +50 -0
  40. package/dist/useRouter-C4oT8vFk.cjs +1 -0
  41. package/dist/utils.d.ts +71 -0
  42. package/dist/utils.js +1 -1
  43. package/dist/utils.mjs +17 -3
  44. package/package.json +25 -13
  45. package/dist/components.css +0 -1
  46. package/dist/index-DkaNsoLU.cjs +0 -5
  47. package/dist/index-dajx1Lu4.js +0 -1718
  48. package/dist/styles/light-mode.css +0 -106
  49. package/dist/styles/variables.css +0 -92
@@ -1,1718 +0,0 @@
1
- // @__NO_SIDE_EFFECTS__
2
- function zt(e) {
3
- const t = /* @__PURE__ */ Object.create(null);
4
- for (const n of e.split(",")) t[n] = 1;
5
- return (n) => n in t;
6
- }
7
- const xe = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Wt = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], st = () => {
8
- }, Bt = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
9
- (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), F = Object.assign, Ut = Object.prototype.hasOwnProperty, Te = (e, t) => Ut.call(e, t), _ = Array.isArray, z = (e) => ge(e) === "[object Map]", qt = (e) => ge(e) === "[object Set]", b = (e) => typeof e == "function", V = (e) => typeof e == "string", k = (e) => typeof e == "symbol", v = (e) => e !== null && typeof e == "object", Yt = (e) => (v(e) || b(e)) && b(e.then) && b(e.catch), ot = Object.prototype.toString, ge = (e) => ot.call(e), it = (e) => ge(e).slice(8, -1), Jt = (e) => ge(e) === "[object Object]", He = (e) => V(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, ct = (e) => {
10
- const t = /* @__PURE__ */ Object.create(null);
11
- return (n) => t[n] || (t[n] = e(n));
12
- }, at = ct((e) => e.charAt(0).toUpperCase() + e.slice(1)), Gt = ct(
13
- (e) => e ? `on${at(e)}` : ""
14
- ), W = (e, t) => !Object.is(e, t);
15
- let Je;
16
- const me = () => Je || (Je = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
17
- function ve(e) {
18
- if (_(e)) {
19
- const t = {};
20
- for (let n = 0; n < e.length; n++) {
21
- const s = e[n], r = V(s) ? en(s) : ve(s);
22
- if (r)
23
- for (const o in r)
24
- t[o] = r[o];
25
- }
26
- return t;
27
- } else if (V(e) || v(e))
28
- return e;
29
- }
30
- const Qt = /;(?![^(]*\))/g, Xt = /:([^]+)/, Zt = /\/\*[^]*?\*\//g;
31
- function en(e) {
32
- const t = {};
33
- return e.replace(Zt, "").split(Qt).forEach((n) => {
34
- if (n) {
35
- const s = n.split(Xt);
36
- s.length > 1 && (t[s[0].trim()] = s[1].trim());
37
- }
38
- }), t;
39
- }
40
- function ye(e) {
41
- let t = "";
42
- if (V(e))
43
- t = e;
44
- else if (_(e))
45
- for (let n = 0; n < e.length; n++) {
46
- const s = ye(e[n]);
47
- s && (t += s + " ");
48
- }
49
- else if (v(e))
50
- for (const n in e)
51
- e[n] && (t += n + " ");
52
- return t.trim();
53
- }
54
- function _r(e) {
55
- if (!e) return null;
56
- let { class: t, style: n } = e;
57
- return t && !V(t) && (e.class = ye(t)), n && (e.style = ve(n)), e;
58
- }
59
- const lt = (e) => !!(e && e.__v_isRef === !0), tn = (e) => V(e) ? e : e == null ? "" : _(e) || v(e) && (e.toString === ot || !b(e.toString)) ? lt(e) ? tn(e.value) : JSON.stringify(e, ut, 2) : String(e), ut = (e, t) => lt(t) ? ut(e, t.value) : z(t) ? {
60
- [`Map(${t.size})`]: [...t.entries()].reduce(
61
- (n, [s, r], o) => (n[Se(s, o) + " =>"] = r, n),
62
- {}
63
- )
64
- } : qt(t) ? {
65
- [`Set(${t.size})`]: [...t.values()].map((n) => Se(n))
66
- } : k(t) ? Se(t) : v(t) && !_(t) && !Jt(t) ? String(t) : t, Se = (e, t = "") => {
67
- var n;
68
- return (
69
- // Symbol.description in es2019+ so we need to cast here to pass
70
- // the lib: es2016 check
71
- k(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
72
- );
73
- };
74
- function U(e, ...t) {
75
- }
76
- let h, ft = 0, G, Q;
77
- function nn(e, t = !1) {
78
- if (e.flags |= 8, t) {
79
- e.next = Q, Q = e;
80
- return;
81
- }
82
- e.next = G, G = e;
83
- }
84
- function je() {
85
- ft++;
86
- }
87
- function Ke() {
88
- if (--ft > 0)
89
- return;
90
- if (Q) {
91
- let t = Q;
92
- for (Q = void 0; t; ) {
93
- const n = t.next;
94
- t.next = void 0, t.flags &= -9, t = n;
95
- }
96
- }
97
- let e;
98
- for (; G; ) {
99
- let t = G;
100
- for (G = void 0; t; ) {
101
- const n = t.next;
102
- if (t.next = void 0, t.flags &= -9, t.flags & 1)
103
- try {
104
- t.trigger();
105
- } catch (s) {
106
- e || (e = s);
107
- }
108
- t = n;
109
- }
110
- }
111
- if (e) throw e;
112
- }
113
- function rn(e) {
114
- for (let t = e.deps; t; t = t.nextDep)
115
- t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
116
- }
117
- function sn(e) {
118
- let t, n = e.depsTail, s = n;
119
- for (; s; ) {
120
- const r = s.prevDep;
121
- s.version === -1 ? (s === n && (n = r), pt(s), cn(s)) : t = s, s.dep.activeLink = s.prevActiveLink, s.prevActiveLink = void 0, s = r;
122
- }
123
- e.deps = t, e.depsTail = n;
124
- }
125
- function on(e) {
126
- for (let t = e.deps; t; t = t.nextDep)
127
- if (t.dep.version !== t.version || t.dep.computed && (dt(t.dep.computed) || t.dep.version !== t.version))
128
- return !0;
129
- return !!e._dirty;
130
- }
131
- function dt(e) {
132
- if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === X) || (e.globalVersion = X, !e.isSSR && e.flags & 128 && (!e.deps && !e._dirty || !on(e))))
133
- return;
134
- e.flags |= 2;
135
- const t = e.dep, n = h, s = P;
136
- h = e, P = !0;
137
- try {
138
- rn(e);
139
- const r = e.fn(e._value);
140
- (t.version === 0 || W(r, e._value)) && (e.flags |= 128, e._value = r, t.version++);
141
- } catch (r) {
142
- throw t.version++, r;
143
- } finally {
144
- h = n, P = s, sn(e), e.flags &= -3;
145
- }
146
- }
147
- function pt(e, t = !1) {
148
- const { dep: n, prevSub: s, nextSub: r } = e;
149
- if (s && (s.nextSub = r, e.prevSub = void 0), r && (r.prevSub = s, e.nextSub = void 0), process.env.NODE_ENV !== "production" && n.subsHead === e && (n.subsHead = r), n.subs === e && (n.subs = s, !s && n.computed)) {
150
- n.computed.flags &= -5;
151
- for (let o = n.computed.deps; o; o = o.nextDep)
152
- pt(o, !0);
153
- }
154
- !t && !--n.sc && n.map && n.map.delete(n.key);
155
- }
156
- function cn(e) {
157
- const { prevDep: t, nextDep: n } = e;
158
- t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
159
- }
160
- let P = !0;
161
- const ht = [];
162
- function re() {
163
- ht.push(P), P = !1;
164
- }
165
- function se() {
166
- const e = ht.pop();
167
- P = e === void 0 ? !0 : e;
168
- }
169
- let X = 0;
170
- class an {
171
- constructor(t, n) {
172
- this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
173
- }
174
- }
175
- class Le {
176
- // TODO isolatedDeclarations "__v_skip"
177
- constructor(t) {
178
- 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);
179
- }
180
- track(t) {
181
- if (!h || !P || h === this.computed)
182
- return;
183
- let n = this.activeLink;
184
- if (n === void 0 || n.sub !== h)
185
- n = this.activeLink = new an(h, this), h.deps ? (n.prevDep = h.depsTail, h.depsTail.nextDep = n, h.depsTail = n) : h.deps = h.depsTail = n, _t(n);
186
- else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
187
- const s = n.nextDep;
188
- s.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = s), n.prevDep = h.depsTail, n.nextDep = void 0, h.depsTail.nextDep = n, h.depsTail = n, h.deps === n && (h.deps = s);
189
- }
190
- return process.env.NODE_ENV !== "production" && h.onTrack && h.onTrack(
191
- F(
192
- {
193
- effect: h
194
- },
195
- t
196
- )
197
- ), n;
198
- }
199
- trigger(t) {
200
- this.version++, X++, this.notify(t);
201
- }
202
- notify(t) {
203
- je();
204
- try {
205
- if (process.env.NODE_ENV !== "production")
206
- for (let n = this.subsHead; n; n = n.nextSub)
207
- n.sub.onTrigger && !(n.sub.flags & 8) && n.sub.onTrigger(
208
- F(
209
- {
210
- effect: n.sub
211
- },
212
- t
213
- )
214
- );
215
- for (let n = this.subs; n; n = n.prevSub)
216
- n.sub.notify() && n.sub.dep.notify();
217
- } finally {
218
- Ke();
219
- }
220
- }
221
- }
222
- function _t(e) {
223
- if (e.dep.sc++, e.sub.flags & 4) {
224
- const t = e.dep.computed;
225
- if (t && !e.dep.subs) {
226
- t.flags |= 20;
227
- for (let s = t.deps; s; s = s.nextDep)
228
- _t(s);
229
- }
230
- const n = e.dep.subs;
231
- 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;
232
- }
233
- }
234
- const Ie = /* @__PURE__ */ new WeakMap(), H = Symbol(
235
- process.env.NODE_ENV !== "production" ? "Object iterate" : ""
236
- ), Ce = Symbol(
237
- process.env.NODE_ENV !== "production" ? "Map keys iterate" : ""
238
- ), Z = Symbol(
239
- process.env.NODE_ENV !== "production" ? "Array iterate" : ""
240
- );
241
- function y(e, t, n) {
242
- if (P && h) {
243
- let s = Ie.get(e);
244
- s || Ie.set(e, s = /* @__PURE__ */ new Map());
245
- let r = s.get(n);
246
- r || (s.set(n, r = new Le()), r.map = s, r.key = n), process.env.NODE_ENV !== "production" ? r.track({
247
- target: e,
248
- type: t,
249
- key: n
250
- }) : r.track();
251
- }
252
- }
253
- function $(e, t, n, s, r, o) {
254
- const c = Ie.get(e);
255
- if (!c) {
256
- X++;
257
- return;
258
- }
259
- const i = (l) => {
260
- l && (process.env.NODE_ENV !== "production" ? l.trigger({
261
- target: e,
262
- type: t,
263
- key: n,
264
- newValue: s,
265
- oldValue: r,
266
- oldTarget: o
267
- }) : l.trigger());
268
- };
269
- if (je(), t === "clear")
270
- c.forEach(i);
271
- else {
272
- const l = _(e), f = l && He(n);
273
- if (l && n === "length") {
274
- const d = Number(s);
275
- c.forEach((a, u) => {
276
- (u === "length" || u === Z || !k(u) && u >= d) && i(a);
277
- });
278
- } else
279
- switch ((n !== void 0 || c.has(void 0)) && i(c.get(n)), f && i(c.get(Z)), t) {
280
- case "add":
281
- l ? f && i(c.get("length")) : (i(c.get(H)), z(e) && i(c.get(Ce)));
282
- break;
283
- case "delete":
284
- l || (i(c.get(H)), z(e) && i(c.get(Ce)));
285
- break;
286
- case "set":
287
- z(e) && i(c.get(H));
288
- break;
289
- }
290
- }
291
- Ke();
292
- }
293
- function K(e) {
294
- const t = p(e);
295
- return t === e ? t : (y(t, "iterate", Z), O(e) ? t : t.map(m));
296
- }
297
- function Ee(e) {
298
- return y(e = p(e), "iterate", Z), e;
299
- }
300
- const ln = {
301
- __proto__: null,
302
- [Symbol.iterator]() {
303
- return we(this, Symbol.iterator, m);
304
- },
305
- concat(...e) {
306
- return K(this).concat(
307
- ...e.map((t) => _(t) ? K(t) : t)
308
- );
309
- },
310
- entries() {
311
- return we(this, "entries", (e) => (e[1] = m(e[1]), e));
312
- },
313
- every(e, t) {
314
- return I(this, "every", e, t, void 0, arguments);
315
- },
316
- filter(e, t) {
317
- return I(this, "filter", e, t, (n) => n.map(m), arguments);
318
- },
319
- find(e, t) {
320
- return I(this, "find", e, t, m, arguments);
321
- },
322
- findIndex(e, t) {
323
- return I(this, "findIndex", e, t, void 0, arguments);
324
- },
325
- findLast(e, t) {
326
- return I(this, "findLast", e, t, m, arguments);
327
- },
328
- findLastIndex(e, t) {
329
- return I(this, "findLastIndex", e, t, void 0, arguments);
330
- },
331
- // flat, flatMap could benefit from ARRAY_ITERATE but are not straight-forward to implement
332
- forEach(e, t) {
333
- return I(this, "forEach", e, t, void 0, arguments);
334
- },
335
- includes(...e) {
336
- return Oe(this, "includes", e);
337
- },
338
- indexOf(...e) {
339
- return Oe(this, "indexOf", e);
340
- },
341
- join(e) {
342
- return K(this).join(e);
343
- },
344
- // keys() iterator only reads `length`, no optimisation required
345
- lastIndexOf(...e) {
346
- return Oe(this, "lastIndexOf", e);
347
- },
348
- map(e, t) {
349
- return I(this, "map", e, t, void 0, arguments);
350
- },
351
- pop() {
352
- return Y(this, "pop");
353
- },
354
- push(...e) {
355
- return Y(this, "push", e);
356
- },
357
- reduce(e, ...t) {
358
- return Ge(this, "reduce", e, t);
359
- },
360
- reduceRight(e, ...t) {
361
- return Ge(this, "reduceRight", e, t);
362
- },
363
- shift() {
364
- return Y(this, "shift");
365
- },
366
- // slice could use ARRAY_ITERATE but also seems to beg for range tracking
367
- some(e, t) {
368
- return I(this, "some", e, t, void 0, arguments);
369
- },
370
- splice(...e) {
371
- return Y(this, "splice", e);
372
- },
373
- toReversed() {
374
- return K(this).toReversed();
375
- },
376
- toSorted(e) {
377
- return K(this).toSorted(e);
378
- },
379
- toSpliced(...e) {
380
- return K(this).toSpliced(...e);
381
- },
382
- unshift(...e) {
383
- return Y(this, "unshift", e);
384
- },
385
- values() {
386
- return we(this, "values", m);
387
- }
388
- };
389
- function we(e, t, n) {
390
- const s = Ee(e), r = s[t]();
391
- return s !== e && !O(e) && (r._next = r.next, r.next = () => {
392
- const o = r._next();
393
- return o.value && (o.value = n(o.value)), o;
394
- }), r;
395
- }
396
- const un = Array.prototype;
397
- function I(e, t, n, s, r, o) {
398
- const c = Ee(e), i = c !== e && !O(e), l = c[t];
399
- if (l !== un[t]) {
400
- const a = l.apply(e, o);
401
- return i ? m(a) : a;
402
- }
403
- let f = n;
404
- c !== e && (i ? f = function(a, u) {
405
- return n.call(this, m(a), u, e);
406
- } : n.length > 2 && (f = function(a, u) {
407
- return n.call(this, a, u, e);
408
- }));
409
- const d = l.call(c, f, s);
410
- return i && r ? r(d) : d;
411
- }
412
- function Ge(e, t, n, s) {
413
- const r = Ee(e);
414
- let o = n;
415
- return r !== e && (O(e) ? n.length > 3 && (o = function(c, i, l) {
416
- return n.call(this, c, i, l, e);
417
- }) : o = function(c, i, l) {
418
- return n.call(this, c, m(i), l, e);
419
- }), r[t](o, ...s);
420
- }
421
- function Oe(e, t, n) {
422
- const s = p(e);
423
- y(s, "iterate", Z);
424
- const r = s[t](...n);
425
- return (r === -1 || r === !1) && ue(n[0]) ? (n[0] = p(n[0]), s[t](...n)) : r;
426
- }
427
- function Y(e, t, n = []) {
428
- re(), je();
429
- const s = p(e)[t].apply(e, n);
430
- return Ke(), se(), s;
431
- }
432
- const fn = /* @__PURE__ */ zt("__proto__,__v_isRef,__isVue"), gt = new Set(
433
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(k)
434
- );
435
- function dn(e) {
436
- k(e) || (e = String(e));
437
- const t = p(this);
438
- return y(t, "has", e), t.hasOwnProperty(e);
439
- }
440
- class mt {
441
- constructor(t = !1, n = !1) {
442
- this._isReadonly = t, this._isShallow = n;
443
- }
444
- get(t, n, s) {
445
- if (n === "__v_skip") return t.__v_skip;
446
- const r = this._isReadonly, o = this._isShallow;
447
- if (n === "__v_isReactive")
448
- return !r;
449
- if (n === "__v_isReadonly")
450
- return r;
451
- if (n === "__v_isShallow")
452
- return o;
453
- if (n === "__v_raw")
454
- return s === (r ? o ? Nn : Et : o ? bn : yt).get(t) || // receiver is not the reactive proxy, but has the same prototype
455
- // this means the receiver is a user proxy of the reactive proxy
456
- Object.getPrototypeOf(t) === Object.getPrototypeOf(s) ? t : void 0;
457
- const c = _(t);
458
- if (!r) {
459
- let l;
460
- if (c && (l = ln[n]))
461
- return l;
462
- if (n === "hasOwnProperty")
463
- return dn;
464
- }
465
- const i = Reflect.get(
466
- t,
467
- n,
468
- // if this is a proxy wrapping a ref, return methods using the raw ref
469
- // as receiver so that we don't have to call `toRaw` on the ref in all
470
- // its class methods
471
- D(t) ? t : s
472
- );
473
- return (k(n) ? gt.has(n) : fn(n)) || (r || y(t, "get", n), o) ? i : D(i) ? c && He(n) ? i : i.value : v(i) ? r ? bt(i) : ze(i) : i;
474
- }
475
- }
476
- class pn extends mt {
477
- constructor(t = !1) {
478
- super(!1, t);
479
- }
480
- set(t, n, s, r) {
481
- let o = t[n];
482
- if (!this._isShallow) {
483
- const l = x(o);
484
- if (!O(s) && !x(s) && (o = p(o), s = p(s)), !_(t) && D(o) && !D(s))
485
- return l ? !1 : (o.value = s, !0);
486
- }
487
- const c = _(t) && He(n) ? Number(n) < t.length : Te(t, n), i = Reflect.set(
488
- t,
489
- n,
490
- s,
491
- D(t) ? t : r
492
- );
493
- return t === p(r) && (c ? W(s, o) && $(t, "set", n, s, o) : $(t, "add", n, s)), i;
494
- }
495
- deleteProperty(t, n) {
496
- const s = Te(t, n), r = t[n], o = Reflect.deleteProperty(t, n);
497
- return o && s && $(t, "delete", n, void 0, r), o;
498
- }
499
- has(t, n) {
500
- const s = Reflect.has(t, n);
501
- return (!k(n) || !gt.has(n)) && y(t, "has", n), s;
502
- }
503
- ownKeys(t) {
504
- return y(
505
- t,
506
- "iterate",
507
- _(t) ? "length" : H
508
- ), Reflect.ownKeys(t);
509
- }
510
- }
511
- class hn extends mt {
512
- constructor(t = !1) {
513
- super(!0, t);
514
- }
515
- set(t, n) {
516
- return process.env.NODE_ENV !== "production" && U(
517
- `Set operation on key "${String(n)}" failed: target is readonly.`,
518
- t
519
- ), !0;
520
- }
521
- deleteProperty(t, n) {
522
- return process.env.NODE_ENV !== "production" && U(
523
- `Delete operation on key "${String(n)}" failed: target is readonly.`,
524
- t
525
- ), !0;
526
- }
527
- }
528
- const _n = /* @__PURE__ */ new pn(), gn = /* @__PURE__ */ new hn(), Ae = (e) => e, ie = (e) => Reflect.getPrototypeOf(e);
529
- function mn(e, t, n) {
530
- return function(...s) {
531
- const r = this.__v_raw, o = p(r), c = z(o), i = e === "entries" || e === Symbol.iterator && c, l = e === "keys" && c, f = r[e](...s), d = n ? Ae : t ? fe : m;
532
- return !t && y(
533
- o,
534
- "iterate",
535
- l ? Ce : H
536
- ), {
537
- // iterator protocol
538
- next() {
539
- const { value: a, done: u } = f.next();
540
- return u ? { value: a, done: u } : {
541
- value: i ? [d(a[0]), d(a[1])] : d(a),
542
- done: u
543
- };
544
- },
545
- // iterable protocol
546
- [Symbol.iterator]() {
547
- return this;
548
- }
549
- };
550
- };
551
- }
552
- function ce(e) {
553
- return function(...t) {
554
- if (process.env.NODE_ENV !== "production") {
555
- const n = t[0] ? `on key "${t[0]}" ` : "";
556
- U(
557
- `${at(e)} operation ${n}failed: target is readonly.`,
558
- p(this)
559
- );
560
- }
561
- return e === "delete" ? !1 : e === "clear" ? void 0 : this;
562
- };
563
- }
564
- function vn(e, t) {
565
- const n = {
566
- get(r) {
567
- const o = this.__v_raw, c = p(o), i = p(r);
568
- e || (W(r, i) && y(c, "get", r), y(c, "get", i));
569
- const { has: l } = ie(c), f = t ? Ae : e ? fe : m;
570
- if (l.call(c, r))
571
- return f(o.get(r));
572
- if (l.call(c, i))
573
- return f(o.get(i));
574
- o !== c && o.get(r);
575
- },
576
- get size() {
577
- const r = this.__v_raw;
578
- return !e && y(p(r), "iterate", H), Reflect.get(r, "size", r);
579
- },
580
- has(r) {
581
- const o = this.__v_raw, c = p(o), i = p(r);
582
- return e || (W(r, i) && y(c, "has", r), y(c, "has", i)), r === i ? o.has(r) : o.has(r) || o.has(i);
583
- },
584
- forEach(r, o) {
585
- const c = this, i = c.__v_raw, l = p(i), f = t ? Ae : e ? fe : m;
586
- return !e && y(l, "iterate", H), i.forEach((d, a) => r.call(o, f(d), f(a), c));
587
- }
588
- };
589
- return F(
590
- n,
591
- e ? {
592
- add: ce("add"),
593
- set: ce("set"),
594
- delete: ce("delete"),
595
- clear: ce("clear")
596
- } : {
597
- add(r) {
598
- !t && !O(r) && !x(r) && (r = p(r));
599
- const o = p(this);
600
- return ie(o).has.call(o, r) || (o.add(r), $(o, "add", r, r)), this;
601
- },
602
- set(r, o) {
603
- !t && !O(o) && !x(o) && (o = p(o));
604
- const c = p(this), { has: i, get: l } = ie(c);
605
- let f = i.call(c, r);
606
- f ? process.env.NODE_ENV !== "production" && Qe(c, i, r) : (r = p(r), f = i.call(c, r));
607
- const d = l.call(c, r);
608
- return c.set(r, o), f ? W(o, d) && $(c, "set", r, o, d) : $(c, "add", r, o), this;
609
- },
610
- delete(r) {
611
- const o = p(this), { has: c, get: i } = ie(o);
612
- let l = c.call(o, r);
613
- l ? process.env.NODE_ENV !== "production" && Qe(o, c, r) : (r = p(r), l = c.call(o, r));
614
- const f = i ? i.call(o, r) : void 0, d = o.delete(r);
615
- return l && $(o, "delete", r, void 0, f), d;
616
- },
617
- clear() {
618
- const r = p(this), o = r.size !== 0, c = process.env.NODE_ENV !== "production" ? z(r) ? new Map(r) : new Set(r) : void 0, i = r.clear();
619
- return o && $(
620
- r,
621
- "clear",
622
- void 0,
623
- void 0,
624
- c
625
- ), i;
626
- }
627
- }
628
- ), [
629
- "keys",
630
- "values",
631
- "entries",
632
- Symbol.iterator
633
- ].forEach((r) => {
634
- n[r] = mn(r, e, t);
635
- }), n;
636
- }
637
- function vt(e, t) {
638
- const n = vn(e, t);
639
- return (s, r, o) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(
640
- Te(n, r) && r in s ? n : s,
641
- r,
642
- o
643
- );
644
- }
645
- const yn = {
646
- get: /* @__PURE__ */ vt(!1, !1)
647
- }, En = {
648
- get: /* @__PURE__ */ vt(!0, !1)
649
- };
650
- function Qe(e, t, n) {
651
- const s = p(n);
652
- if (s !== n && t.call(e, s)) {
653
- const r = it(e);
654
- U(
655
- `Reactive ${r} contains both the raw and reactive versions of the same object${r === "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.`
656
- );
657
- }
658
- }
659
- const yt = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap();
660
- function Sn(e) {
661
- switch (e) {
662
- case "Object":
663
- case "Array":
664
- return 1;
665
- case "Map":
666
- case "Set":
667
- case "WeakMap":
668
- case "WeakSet":
669
- return 2;
670
- default:
671
- return 0;
672
- }
673
- }
674
- function wn(e) {
675
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Sn(it(e));
676
- }
677
- function ze(e) {
678
- return x(e) ? e : Nt(
679
- e,
680
- !1,
681
- _n,
682
- yn,
683
- yt
684
- );
685
- }
686
- function bt(e) {
687
- return Nt(
688
- e,
689
- !0,
690
- gn,
691
- En,
692
- Et
693
- );
694
- }
695
- function Nt(e, t, n, s, r) {
696
- if (!v(e))
697
- return process.env.NODE_ENV !== "production" && U(
698
- `value cannot be made ${t ? "readonly" : "reactive"}: ${String(
699
- e
700
- )}`
701
- ), e;
702
- if (e.__v_raw && !(t && e.__v_isReactive))
703
- return e;
704
- const o = wn(e);
705
- if (o === 0)
706
- return e;
707
- const c = r.get(e);
708
- if (c)
709
- return c;
710
- const i = new Proxy(
711
- e,
712
- o === 2 ? s : n
713
- );
714
- return r.set(e, i), i;
715
- }
716
- function We(e) {
717
- return x(e) ? We(e.__v_raw) : !!(e && e.__v_isReactive);
718
- }
719
- function x(e) {
720
- return !!(e && e.__v_isReadonly);
721
- }
722
- function O(e) {
723
- return !!(e && e.__v_isShallow);
724
- }
725
- function ue(e) {
726
- return e ? !!e.__v_raw : !1;
727
- }
728
- function p(e) {
729
- const t = e && e.__v_raw;
730
- return t ? p(t) : e;
731
- }
732
- const m = (e) => v(e) ? ze(e) : e, fe = (e) => v(e) ? bt(e) : e;
733
- function D(e) {
734
- return e ? e.__v_isRef === !0 : !1;
735
- }
736
- function On(e) {
737
- return Vn(e, !1);
738
- }
739
- function Vn(e, t) {
740
- return D(e) ? e : new Rn(e, t);
741
- }
742
- class Rn {
743
- constructor(t, n) {
744
- this.dep = new Le(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : p(t), this._value = n ? t : m(t), this.__v_isShallow = n;
745
- }
746
- get value() {
747
- return process.env.NODE_ENV !== "production" ? this.dep.track({
748
- target: this,
749
- type: "get",
750
- key: "value"
751
- }) : this.dep.track(), this._value;
752
- }
753
- set value(t) {
754
- const n = this._rawValue, s = this.__v_isShallow || O(t) || x(t);
755
- t = s ? t : p(t), W(t, n) && (this._rawValue = t, this._value = s ? t : m(t), process.env.NODE_ENV !== "production" ? this.dep.trigger({
756
- target: this,
757
- type: "set",
758
- key: "value",
759
- newValue: t,
760
- oldValue: n
761
- }) : this.dep.trigger());
762
- }
763
- }
764
- function gr(e) {
765
- return D(e) ? e.value : e;
766
- }
767
- class Dn {
768
- constructor(t, n, s) {
769
- this.fn = t, this.setter = n, this._value = void 0, this.dep = new Le(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = X - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !n, this.isSSR = s;
770
- }
771
- /**
772
- * @internal
773
- */
774
- notify() {
775
- if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
776
- h !== this)
777
- return nn(this, !0), !0;
778
- process.env.NODE_ENV;
779
- }
780
- get value() {
781
- const t = process.env.NODE_ENV !== "production" ? this.dep.track({
782
- target: this,
783
- type: "get",
784
- key: "value"
785
- }) : this.dep.track();
786
- return dt(this), t && (t.version = this.dep.version), this._value;
787
- }
788
- set value(t) {
789
- this.setter ? this.setter(t) : process.env.NODE_ENV !== "production" && U("Write operation failed: computed value is readonly");
790
- }
791
- }
792
- function xn(e, t, n = !1) {
793
- let s, r;
794
- b(e) ? s = e : (s = e.get, r = e.set);
795
- const o = new Dn(s, r, n);
796
- return process.env.NODE_ENV, o;
797
- }
798
- const j = [];
799
- function Tn(e) {
800
- j.push(e);
801
- }
802
- function In() {
803
- j.pop();
804
- }
805
- let Ve = !1;
806
- function T(e, ...t) {
807
- if (Ve) return;
808
- Ve = !0, re();
809
- const n = j.length ? j[j.length - 1].component : null, s = n && n.appContext.config.warnHandler, r = Cn();
810
- if (s)
811
- be(
812
- s,
813
- n,
814
- 11,
815
- [
816
- // eslint-disable-next-line no-restricted-syntax
817
- e + t.map((o) => {
818
- var c, i;
819
- return (i = (c = o.toString) == null ? void 0 : c.call(o)) != null ? i : JSON.stringify(o);
820
- }).join(""),
821
- n && n.proxy,
822
- r.map(
823
- ({ vnode: o }) => `at <${Kt(n, o.type)}>`
824
- ).join(`
825
- `),
826
- r
827
- ]
828
- );
829
- else {
830
- const o = [`[Vue warn]: ${e}`, ...t];
831
- r.length && o.push(`
832
- `, ...An(r));
833
- }
834
- se(), Ve = !1;
835
- }
836
- function Cn() {
837
- let e = j[j.length - 1];
838
- if (!e)
839
- return [];
840
- const t = [];
841
- for (; e; ) {
842
- const n = t[0];
843
- n && n.vnode === e ? n.recurseCount++ : t.push({
844
- vnode: e,
845
- recurseCount: 0
846
- });
847
- const s = e.component && e.component.parent;
848
- e = s && s.vnode;
849
- }
850
- return t;
851
- }
852
- function An(e) {
853
- const t = [];
854
- return e.forEach((n, s) => {
855
- t.push(...s === 0 ? [] : [`
856
- `], ...$n(n));
857
- }), t;
858
- }
859
- function $n({ vnode: e, recurseCount: t }) {
860
- const n = t > 0 ? `... (${t} recursive calls)` : "", s = e.component ? e.component.parent == null : !1, r = ` at <${Kt(
861
- e.component,
862
- e.type,
863
- s
864
- )}`, o = ">" + n;
865
- return e.props ? [r, ...Mn(e.props), o] : [r + o];
866
- }
867
- function Mn(e) {
868
- const t = [], n = Object.keys(e);
869
- return n.slice(0, 3).forEach((s) => {
870
- t.push(...St(s, e[s]));
871
- }), n.length > 3 && t.push(" ..."), t;
872
- }
873
- function St(e, t, n) {
874
- return V(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : D(t) ? (t = St(e, p(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : b(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = p(t), n ? t : [`${e}=`, t]);
875
- }
876
- const Be = {
877
- sp: "serverPrefetch hook",
878
- bc: "beforeCreate hook",
879
- c: "created hook",
880
- bm: "beforeMount hook",
881
- m: "mounted hook",
882
- bu: "beforeUpdate hook",
883
- u: "updated",
884
- bum: "beforeUnmount hook",
885
- um: "unmounted hook",
886
- a: "activated hook",
887
- da: "deactivated hook",
888
- ec: "errorCaptured hook",
889
- rtc: "renderTracked hook",
890
- rtg: "renderTriggered hook",
891
- 0: "setup function",
892
- 1: "render function",
893
- 2: "watcher getter",
894
- 3: "watcher callback",
895
- 4: "watcher cleanup function",
896
- 5: "native event handler",
897
- 6: "component event handler",
898
- 7: "vnode hook",
899
- 8: "directive hook",
900
- 9: "transition hook",
901
- 10: "app errorHandler",
902
- 11: "app warnHandler",
903
- 12: "ref function",
904
- 13: "async component loader",
905
- 14: "scheduler flush",
906
- 15: "component update",
907
- 16: "app unmount cleanup function"
908
- };
909
- function be(e, t, n, s) {
910
- try {
911
- return s ? e(...s) : e();
912
- } catch (r) {
913
- Ue(r, t, n);
914
- }
915
- }
916
- function wt(e, t, n, s) {
917
- if (b(e)) {
918
- const r = be(e, t, n, s);
919
- return r && Yt(r) && r.catch((o) => {
920
- Ue(o, t, n);
921
- }), r;
922
- }
923
- if (_(e)) {
924
- const r = [];
925
- for (let o = 0; o < e.length; o++)
926
- r.push(wt(e[o], t, n, s));
927
- return r;
928
- } else process.env.NODE_ENV !== "production" && T(
929
- `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof e}`
930
- );
931
- }
932
- function Ue(e, t, n, s = !0) {
933
- const r = t ? t.vnode : null, { errorHandler: o, throwUnhandledErrorInProduction: c } = t && t.appContext.config || xe;
934
- if (t) {
935
- let i = t.parent;
936
- const l = t.proxy, f = process.env.NODE_ENV !== "production" ? Be[n] : `https://vuejs.org/error-reference/#runtime-${n}`;
937
- for (; i; ) {
938
- const d = i.ec;
939
- if (d) {
940
- for (let a = 0; a < d.length; a++)
941
- if (d[a](e, l, f) === !1)
942
- return;
943
- }
944
- i = i.parent;
945
- }
946
- if (o) {
947
- re(), be(o, null, 10, [
948
- e,
949
- l,
950
- f
951
- ]), se();
952
- return;
953
- }
954
- }
955
- Pn(e, n, r, s, c);
956
- }
957
- function Pn(e, t, n, s = !0, r = !1) {
958
- if (process.env.NODE_ENV !== "production") {
959
- const o = Be[t];
960
- if (n && Tn(n), T(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && In(), s)
961
- throw e;
962
- } else if (r)
963
- throw e;
964
- }
965
- const w = [];
966
- let C = -1;
967
- const B = [];
968
- let A = null, L = 0;
969
- const Fn = /* @__PURE__ */ Promise.resolve();
970
- let $e = null;
971
- const kn = 100;
972
- function Hn(e) {
973
- let t = C + 1, n = w.length;
974
- for (; t < n; ) {
975
- const s = t + n >>> 1, r = w[s], o = ee(r);
976
- o < e || o === e && r.flags & 2 ? t = s + 1 : n = s;
977
- }
978
- return t;
979
- }
980
- function jn(e) {
981
- if (!(e.flags & 1)) {
982
- const t = ee(e), n = w[w.length - 1];
983
- !n || // fast path when the job id is larger than the tail
984
- !(e.flags & 2) && t >= ee(n) ? w.push(e) : w.splice(Hn(t), 0, e), e.flags |= 1, Ot();
985
- }
986
- }
987
- function Ot() {
988
- $e || ($e = Fn.then(Vt));
989
- }
990
- function Kn(e) {
991
- _(e) ? B.push(...e) : A && e.id === -1 ? A.splice(L + 1, 0, e) : e.flags & 1 || (B.push(e), e.flags |= 1), Ot();
992
- }
993
- function Ln(e) {
994
- if (B.length) {
995
- const t = [...new Set(B)].sort(
996
- (n, s) => ee(n) - ee(s)
997
- );
998
- if (B.length = 0, A) {
999
- A.push(...t);
1000
- return;
1001
- }
1002
- for (A = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), L = 0; L < A.length; L++) {
1003
- const n = A[L];
1004
- process.env.NODE_ENV !== "production" && Rt(e, n) || (n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2);
1005
- }
1006
- A = null, L = 0;
1007
- }
1008
- }
1009
- const ee = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1010
- function Vt(e) {
1011
- process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map());
1012
- const t = process.env.NODE_ENV !== "production" ? (n) => Rt(e, n) : st;
1013
- try {
1014
- for (C = 0; C < w.length; C++) {
1015
- const n = w[C];
1016
- if (n && !(n.flags & 8)) {
1017
- if (process.env.NODE_ENV !== "production" && t(n))
1018
- continue;
1019
- n.flags & 4 && (n.flags &= -2), be(
1020
- n,
1021
- n.i,
1022
- n.i ? 15 : 14
1023
- ), n.flags & 4 || (n.flags &= -2);
1024
- }
1025
- }
1026
- } finally {
1027
- for (; C < w.length; C++) {
1028
- const n = w[C];
1029
- n && (n.flags &= -2);
1030
- }
1031
- C = -1, w.length = 0, Ln(e), $e = null, (w.length || B.length) && Vt(e);
1032
- }
1033
- }
1034
- function Rt(e, t) {
1035
- const n = e.get(t) || 0;
1036
- if (n > kn) {
1037
- const s = t.i, r = s && jt(s.type);
1038
- return Ue(
1039
- `Maximum recursive updates exceeded${r ? ` in component <${r}>` : ""}. 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.`,
1040
- null,
1041
- 10
1042
- ), !0;
1043
- }
1044
- return e.set(t, n + 1), !1;
1045
- }
1046
- const Re = /* @__PURE__ */ new Map();
1047
- process.env.NODE_ENV !== "production" && (me().__VUE_HMR_RUNTIME__ = {
1048
- createRecord: De(zn),
1049
- rerender: De(Wn),
1050
- reload: De(Bn)
1051
- });
1052
- const de = /* @__PURE__ */ new Map();
1053
- function zn(e, t) {
1054
- return de.has(e) ? !1 : (de.set(e, {
1055
- initialDef: pe(t),
1056
- instances: /* @__PURE__ */ new Set()
1057
- }), !0);
1058
- }
1059
- function pe(e) {
1060
- return Lt(e) ? e.__vccOpts : e;
1061
- }
1062
- function Wn(e, t) {
1063
- const n = de.get(e);
1064
- n && (n.initialDef.render = t, [...n.instances].forEach((s) => {
1065
- t && (s.render = t, pe(s.type).render = t), s.renderCache = [], s.update();
1066
- }));
1067
- }
1068
- function Bn(e, t) {
1069
- const n = de.get(e);
1070
- if (!n) return;
1071
- t = pe(t), Xe(n.initialDef, t);
1072
- const s = [...n.instances];
1073
- for (let r = 0; r < s.length; r++) {
1074
- const o = s[r], c = pe(o.type);
1075
- let i = Re.get(c);
1076
- i || (c !== n.initialDef && Xe(c, t), Re.set(c, i = /* @__PURE__ */ new Set())), i.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (i.add(o), o.ceReload(t.styles), i.delete(o)) : o.parent ? jn(() => {
1077
- o.parent.update(), i.delete(o);
1078
- }) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" && window.location.reload(), o.root.ce && o !== o.root && o.root.ce._removeChildStyle(c);
1079
- }
1080
- Kn(() => {
1081
- Re.clear();
1082
- });
1083
- }
1084
- function Xe(e, t) {
1085
- F(e, t);
1086
- for (const n in e)
1087
- n !== "__file" && !(n in t) && delete e[n];
1088
- }
1089
- function De(e) {
1090
- return (t, n) => {
1091
- try {
1092
- return e(t, n);
1093
- } catch {
1094
- }
1095
- };
1096
- }
1097
- let M, J = [], Me = !1;
1098
- function Un(e, ...t) {
1099
- M ? M.emit(e, ...t) : Me || J.push({ event: e, args: t });
1100
- }
1101
- function Dt(e, t) {
1102
- var n, s;
1103
- M = e, M ? (M.enabled = !0, J.forEach(({ event: r, args: o }) => M.emit(r, ...o)), J = []) : /* 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
1104
- window.HTMLElement && // also exclude jsdom
1105
- // eslint-disable-next-line no-restricted-syntax
1106
- !((s = (n = window.navigator) == null ? void 0 : n.userAgent) != null && s.includes("jsdom")) ? ((t.__VUE_DEVTOOLS_HOOK_REPLAY__ = t.__VUE_DEVTOOLS_HOOK_REPLAY__ || []).push((o) => {
1107
- Dt(o, t);
1108
- }), setTimeout(() => {
1109
- M || (t.__VUE_DEVTOOLS_HOOK_REPLAY__ = null, Me = !0, J = []);
1110
- }, 3e3)) : (Me = !0, J = []);
1111
- }
1112
- const qn = /* @__PURE__ */ Yn(
1113
- "component:updated"
1114
- /* COMPONENT_UPDATED */
1115
- );
1116
- // @__NO_SIDE_EFFECTS__
1117
- function Yn(e) {
1118
- return (t) => {
1119
- Un(
1120
- e,
1121
- t.appContext.app,
1122
- t.uid,
1123
- t.parent ? t.parent.uid : void 0,
1124
- t
1125
- );
1126
- };
1127
- }
1128
- let E = null, xt = null;
1129
- function Ze(e) {
1130
- const t = E;
1131
- return E = e, xt = e && e.type.__scopeId || null, t;
1132
- }
1133
- function mr(e, t = E, n) {
1134
- if (!t || e._n)
1135
- return e;
1136
- const s = (...r) => {
1137
- s._d && et(-1);
1138
- const o = Ze(t);
1139
- let c;
1140
- try {
1141
- c = e(...r);
1142
- } finally {
1143
- Ze(o), s._d && et(1);
1144
- }
1145
- return process.env.NODE_ENV !== "production" && qn(t), c;
1146
- };
1147
- return s._n = !0, s._c = !0, s._d = !0, s;
1148
- }
1149
- const Jn = (e) => e.__isTeleport;
1150
- function Tt(e, t) {
1151
- e.shapeFlag & 6 && e.component ? (e.transition = t, Tt(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1152
- }
1153
- // @__NO_SIDE_EFFECTS__
1154
- function vr(e, t) {
1155
- return b(e) ? (
1156
- // #8236: extend call and options.name access are considered side-effects
1157
- // by Rollup, so we have to wrap it in a pure-annotated IIFE.
1158
- F({ name: e.name }, t, { setup: e })
1159
- ) : e;
1160
- }
1161
- me().requestIdleCallback;
1162
- me().cancelIdleCallback;
1163
- const Gn = (e) => !!e.type.__asyncLoader;
1164
- function Qn(e, t, n = oe, s = !1) {
1165
- if (n) {
1166
- const r = n[e] || (n[e] = []), o = t.__weh || (t.__weh = (...c) => {
1167
- re();
1168
- const i = lr(n), l = wt(t, n, e, c);
1169
- return i(), se(), l;
1170
- });
1171
- return s ? r.unshift(o) : r.push(o), o;
1172
- } else if (process.env.NODE_ENV !== "production") {
1173
- const r = Gt(Be[e].replace(/ hook$/, ""));
1174
- T(
1175
- `${r} 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.`
1176
- );
1177
- }
1178
- }
1179
- const It = (e) => (t, n = oe) => {
1180
- (!Ye || e === "sp") && Qn(e, (...s) => t(...s), n);
1181
- }, yr = It("bm"), Er = It("m"), Xn = Symbol.for("v-ndc");
1182
- function br(e, t, n, s) {
1183
- let r;
1184
- const o = n, c = _(e);
1185
- if (c || V(e)) {
1186
- const i = c && We(e);
1187
- let l = !1, f = !1;
1188
- i && (l = !O(e), f = x(e), e = Ee(e)), r = new Array(e.length);
1189
- for (let d = 0, a = e.length; d < a; d++)
1190
- r[d] = t(
1191
- l ? f ? fe(m(e[d])) : m(e[d]) : e[d],
1192
- d,
1193
- void 0,
1194
- o
1195
- );
1196
- } else if (typeof e == "number") {
1197
- process.env.NODE_ENV !== "production" && !Number.isInteger(e) && T(`The v-for range expect an integer value but got ${e}.`), r = new Array(e);
1198
- for (let i = 0; i < e; i++)
1199
- r[i] = t(i + 1, i, void 0, o);
1200
- } else if (v(e))
1201
- if (e[Symbol.iterator])
1202
- r = Array.from(
1203
- e,
1204
- (i, l) => t(i, l, void 0, o)
1205
- );
1206
- else {
1207
- const i = Object.keys(e);
1208
- r = new Array(i.length);
1209
- for (let l = 0, f = i.length; l < f; l++) {
1210
- const d = i[l];
1211
- r[l] = t(e[d], d, l, o);
1212
- }
1213
- }
1214
- else
1215
- r = [];
1216
- return r;
1217
- }
1218
- function Nr(e, t, n = {}, s, r) {
1219
- if (E.ce || E.parent && Gn(E.parent) && E.parent.ce)
1220
- return Pe(), Fe(
1221
- te,
1222
- null,
1223
- [Ne("slot", n, s)],
1224
- 64
1225
- );
1226
- let o = e[t];
1227
- process.env.NODE_ENV !== "production" && o && o.length > 1 && (T(
1228
- "SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."
1229
- ), o = () => []), o && o._c && (o._d = !1), Pe();
1230
- const c = o && Ct(o(n)), i = n.key || // slot content array of a dynamic conditional slot may have a branch
1231
- // key attached in the `createSlots` helper, respect that
1232
- c && c.key, l = Fe(
1233
- te,
1234
- {
1235
- key: (i && !k(i) ? i : `_${t}`) + // #7256 force differentiate fallback content from actual content
1236
- (!c && s ? "_fb" : "")
1237
- },
1238
- c || [],
1239
- c && e._ === 1 ? 64 : -2
1240
- );
1241
- return o && o._c && (o._d = !0), l;
1242
- }
1243
- function Ct(e) {
1244
- return e.some((t) => Mt(t) ? !(t.type === he || t.type === te && !Ct(t.children)) : !0) ? e : null;
1245
- }
1246
- const Zn = {};
1247
- process.env.NODE_ENV !== "production" && (Zn.ownKeys = (e) => (T(
1248
- "Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."
1249
- ), Reflect.ownKeys(e)));
1250
- const er = {}, At = (e) => Object.getPrototypeOf(e) === er, tr = (e) => e.__isSuspense, te = Symbol.for("v-fgt"), nr = Symbol.for("v-txt"), he = Symbol.for("v-cmt"), ae = [];
1251
- let N = null;
1252
- function Pe(e = !1) {
1253
- ae.push(N = e ? null : []);
1254
- }
1255
- function rr() {
1256
- ae.pop(), N = ae[ae.length - 1] || null;
1257
- }
1258
- let ne = 1;
1259
- function et(e, t = !1) {
1260
- ne += e, e < 0 && N && t && (N.hasOnce = !0);
1261
- }
1262
- function $t(e) {
1263
- return e.dynamicChildren = ne > 0 ? N || Wt : null, rr(), ne > 0 && N && N.push(e), e;
1264
- }
1265
- function Sr(e, t, n, s, r, o) {
1266
- return $t(
1267
- Ft(
1268
- e,
1269
- t,
1270
- n,
1271
- s,
1272
- r,
1273
- o,
1274
- !0
1275
- )
1276
- );
1277
- }
1278
- function Fe(e, t, n, s, r) {
1279
- return $t(
1280
- Ne(
1281
- e,
1282
- t,
1283
- n,
1284
- s,
1285
- r,
1286
- !0
1287
- )
1288
- );
1289
- }
1290
- function Mt(e) {
1291
- return e ? e.__v_isVNode === !0 : !1;
1292
- }
1293
- const sr = (...e) => kt(
1294
- ...e
1295
- ), Pt = ({ key: e }) => e ?? null, le = ({
1296
- ref: e,
1297
- ref_key: t,
1298
- ref_for: n
1299
- }) => (typeof e == "number" && (e = "" + e), e != null ? V(e) || D(e) || b(e) ? { i: E, r: e, k: t, f: !!n } : e : null);
1300
- function Ft(e, t = null, n = null, s = 0, r = null, o = e === te ? 0 : 1, c = !1, i = !1) {
1301
- const l = {
1302
- __v_isVNode: !0,
1303
- __v_skip: !0,
1304
- type: e,
1305
- props: t,
1306
- key: t && Pt(t),
1307
- ref: t && le(t),
1308
- scopeId: xt,
1309
- slotScopeIds: null,
1310
- children: n,
1311
- component: null,
1312
- suspense: null,
1313
- ssContent: null,
1314
- ssFallback: null,
1315
- dirs: null,
1316
- transition: null,
1317
- el: null,
1318
- anchor: null,
1319
- target: null,
1320
- targetStart: null,
1321
- targetAnchor: null,
1322
- staticCount: 0,
1323
- shapeFlag: o,
1324
- patchFlag: s,
1325
- dynamicProps: r,
1326
- dynamicChildren: null,
1327
- appContext: null,
1328
- ctx: E
1329
- };
1330
- return i ? (qe(l, n), o & 128 && e.normalize(l)) : n && (l.shapeFlag |= V(n) ? 8 : 16), process.env.NODE_ENV !== "production" && l.key !== l.key && T("VNode created with invalid key (NaN). VNode type:", l.type), ne > 0 && // avoid a block node from tracking itself
1331
- !c && // has current parent block
1332
- N && // presence of a patch flag indicates this node needs patching on updates.
1333
- // component nodes also should always be patched, because even if the
1334
- // component doesn't need to update, it needs to persist the instance on to
1335
- // the next vnode so that it can be properly unmounted later.
1336
- (l.patchFlag > 0 || o & 6) && // the EVENTS flag is only for hydration and if it is the only flag, the
1337
- // vnode should not be considered dynamic due to handler caching.
1338
- l.patchFlag !== 32 && N.push(l), l;
1339
- }
1340
- const Ne = process.env.NODE_ENV !== "production" ? sr : kt;
1341
- function kt(e, t = null, n = null, s = 0, r = null, o = !1) {
1342
- if ((!e || e === Xn) && (process.env.NODE_ENV !== "production" && !e && T(`Invalid vnode type when creating vnode: ${e}.`), e = he), Mt(e)) {
1343
- const i = _e(
1344
- e,
1345
- t,
1346
- !0
1347
- /* mergeRef: true */
1348
- );
1349
- return n && qe(i, n), ne > 0 && !o && N && (i.shapeFlag & 6 ? N[N.indexOf(e)] = i : N.push(i)), i.patchFlag = -2, i;
1350
- }
1351
- if (Lt(e) && (e = e.__vccOpts), t) {
1352
- t = or(t);
1353
- let { class: i, style: l } = t;
1354
- i && !V(i) && (t.class = ye(i)), v(l) && (ue(l) && !_(l) && (l = F({}, l)), t.style = ve(l));
1355
- }
1356
- const c = V(e) ? 1 : tr(e) ? 128 : Jn(e) ? 64 : v(e) ? 4 : b(e) ? 2 : 0;
1357
- return process.env.NODE_ENV !== "production" && c & 4 && ue(e) && (e = p(e), T(
1358
- "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`.",
1359
- `
1360
- Component that was made reactive: `,
1361
- e
1362
- )), Ft(
1363
- e,
1364
- t,
1365
- n,
1366
- s,
1367
- r,
1368
- c,
1369
- o,
1370
- !0
1371
- );
1372
- }
1373
- function or(e) {
1374
- return e ? ue(e) || At(e) ? F({}, e) : e : null;
1375
- }
1376
- function _e(e, t, n = !1, s = !1) {
1377
- const { props: r, ref: o, patchFlag: c, children: i, transition: l } = e, f = t ? cr(r || {}, t) : r, d = {
1378
- __v_isVNode: !0,
1379
- __v_skip: !0,
1380
- type: e.type,
1381
- props: f,
1382
- key: f && Pt(f),
1383
- ref: t && t.ref ? (
1384
- // #2078 in the case of <component :is="vnode" ref="extra"/>
1385
- // if the vnode itself already has a ref, cloneVNode will need to merge
1386
- // the refs so the single vnode can be set on multiple refs
1387
- n && o ? _(o) ? o.concat(le(t)) : [o, le(t)] : le(t)
1388
- ) : o,
1389
- scopeId: e.scopeId,
1390
- slotScopeIds: e.slotScopeIds,
1391
- children: process.env.NODE_ENV !== "production" && c === -1 && _(i) ? i.map(Ht) : i,
1392
- target: e.target,
1393
- targetStart: e.targetStart,
1394
- targetAnchor: e.targetAnchor,
1395
- staticCount: e.staticCount,
1396
- shapeFlag: e.shapeFlag,
1397
- // if the vnode is cloned with extra props, we can no longer assume its
1398
- // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1399
- // note: preserve flag for fragments since they use the flag for children
1400
- // fast paths only.
1401
- patchFlag: t && e.type !== te ? c === -1 ? 16 : c | 16 : c,
1402
- dynamicProps: e.dynamicProps,
1403
- dynamicChildren: e.dynamicChildren,
1404
- appContext: e.appContext,
1405
- dirs: e.dirs,
1406
- transition: l,
1407
- // These should technically only be non-null on mounted VNodes. However,
1408
- // they *should* be copied for kept-alive vnodes. So we just always copy
1409
- // them since them being non-null during a mount doesn't affect the logic as
1410
- // they will simply be overwritten.
1411
- component: e.component,
1412
- suspense: e.suspense,
1413
- ssContent: e.ssContent && _e(e.ssContent),
1414
- ssFallback: e.ssFallback && _e(e.ssFallback),
1415
- placeholder: e.placeholder,
1416
- el: e.el,
1417
- anchor: e.anchor,
1418
- ctx: e.ctx,
1419
- ce: e.ce
1420
- };
1421
- return l && s && Tt(
1422
- d,
1423
- l.clone(d)
1424
- ), d;
1425
- }
1426
- function Ht(e) {
1427
- const t = _e(e);
1428
- return _(e.children) && (t.children = e.children.map(Ht)), t;
1429
- }
1430
- function ir(e = " ", t = 0) {
1431
- return Ne(nr, null, e, t);
1432
- }
1433
- function wr(e = "", t = !1) {
1434
- return t ? (Pe(), Fe(he, null, e)) : Ne(he, null, e);
1435
- }
1436
- function qe(e, t) {
1437
- let n = 0;
1438
- const { shapeFlag: s } = e;
1439
- if (t == null)
1440
- t = null;
1441
- else if (_(t))
1442
- n = 16;
1443
- else if (typeof t == "object")
1444
- if (s & 65) {
1445
- const r = t.default;
1446
- r && (r._c && (r._d = !1), qe(e, r()), r._c && (r._d = !0));
1447
- return;
1448
- } else {
1449
- n = 32;
1450
- const r = t._;
1451
- !r && !At(t) ? t._ctx = E : r === 3 && E && (E.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1452
- }
1453
- else b(t) ? (t = { default: t, _ctx: E }, n = 32) : (t = String(t), s & 64 ? (n = 16, t = [ir(t)]) : n = 8);
1454
- e.children = t, e.shapeFlag |= n;
1455
- }
1456
- function cr(...e) {
1457
- const t = {};
1458
- for (let n = 0; n < e.length; n++) {
1459
- const s = e[n];
1460
- for (const r in s)
1461
- if (r === "class")
1462
- t.class !== s.class && (t.class = ye([t.class, s.class]));
1463
- else if (r === "style")
1464
- t.style = ve([t.style, s.style]);
1465
- else if (Bt(r)) {
1466
- const o = t[r], c = s[r];
1467
- c && o !== c && !(_(o) && o.includes(c)) && (t[r] = o ? [].concat(o, c) : c);
1468
- } else r !== "" && (t[r] = s[r]);
1469
- }
1470
- return t;
1471
- }
1472
- let oe = null;
1473
- const ar = () => oe || E;
1474
- let ke;
1475
- {
1476
- const e = me(), t = (n, s) => {
1477
- let r;
1478
- return (r = e[n]) || (r = e[n] = []), r.push(s), (o) => {
1479
- r.length > 1 ? r.forEach((c) => c(o)) : r[0](o);
1480
- };
1481
- };
1482
- ke = t(
1483
- "__VUE_INSTANCE_SETTERS__",
1484
- (n) => oe = n
1485
- ), t(
1486
- "__VUE_SSR_SETTERS__",
1487
- (n) => Ye = n
1488
- );
1489
- }
1490
- const lr = (e) => {
1491
- const t = oe;
1492
- return ke(e), e.scope.on(), () => {
1493
- e.scope.off(), ke(t);
1494
- };
1495
- };
1496
- let Ye = !1;
1497
- process.env.NODE_ENV;
1498
- const ur = /(?:^|[-_])(\w)/g, fr = (e) => e.replace(ur, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1499
- function jt(e, t = !0) {
1500
- return b(e) ? e.displayName || e.name : e.name || t && e.__name;
1501
- }
1502
- function Kt(e, t, n = !1) {
1503
- let s = jt(t);
1504
- if (!s && t.__file) {
1505
- const r = t.__file.match(/([^/\\]+)\.\w+$/);
1506
- r && (s = r[1]);
1507
- }
1508
- if (!s && e && e.parent) {
1509
- const r = (o) => {
1510
- for (const c in o)
1511
- if (o[c] === t)
1512
- return c;
1513
- };
1514
- s = r(
1515
- e.components || e.parent.type.components
1516
- ) || r(e.appContext.components);
1517
- }
1518
- return s ? fr(s) : n ? "App" : "Anonymous";
1519
- }
1520
- function Lt(e) {
1521
- return b(e) && "__vccOpts" in e;
1522
- }
1523
- const tt = (e, t) => {
1524
- const n = xn(e, t, Ye);
1525
- if (process.env.NODE_ENV !== "production") {
1526
- const s = ar();
1527
- s && s.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
1528
- }
1529
- return n;
1530
- };
1531
- function dr() {
1532
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1533
- return;
1534
- const e = { style: "color:#3ba776" }, t = { style: "color:#1677ff" }, n = { style: "color:#f5222d" }, s = { style: "color:#eb2f96" }, r = {
1535
- __vue_custom_formatter: !0,
1536
- header(a) {
1537
- if (!v(a))
1538
- return null;
1539
- if (a.__isVue)
1540
- return ["div", e, "VueInstance"];
1541
- if (D(a)) {
1542
- re();
1543
- const u = a.value;
1544
- return se(), [
1545
- "div",
1546
- {},
1547
- ["span", e, d(a)],
1548
- "<",
1549
- i(u),
1550
- ">"
1551
- ];
1552
- } else {
1553
- if (We(a))
1554
- return [
1555
- "div",
1556
- {},
1557
- ["span", e, O(a) ? "ShallowReactive" : "Reactive"],
1558
- "<",
1559
- i(a),
1560
- `>${x(a) ? " (readonly)" : ""}`
1561
- ];
1562
- if (x(a))
1563
- return [
1564
- "div",
1565
- {},
1566
- ["span", e, O(a) ? "ShallowReadonly" : "Readonly"],
1567
- "<",
1568
- i(a),
1569
- ">"
1570
- ];
1571
- }
1572
- return null;
1573
- },
1574
- hasBody(a) {
1575
- return a && a.__isVue;
1576
- },
1577
- body(a) {
1578
- if (a && a.__isVue)
1579
- return [
1580
- "div",
1581
- {},
1582
- ...o(a.$)
1583
- ];
1584
- }
1585
- };
1586
- function o(a) {
1587
- const u = [];
1588
- a.type.props && a.props && u.push(c("props", p(a.props))), a.setupState !== xe && u.push(c("setup", a.setupState)), a.data !== xe && u.push(c("data", p(a.data)));
1589
- const S = l(a, "computed");
1590
- S && u.push(c("computed", S));
1591
- const R = l(a, "inject");
1592
- return R && u.push(c("injected", R)), u.push([
1593
- "div",
1594
- {},
1595
- [
1596
- "span",
1597
- {
1598
- style: s.style + ";opacity:0.66"
1599
- },
1600
- "$ (internal): "
1601
- ],
1602
- ["object", { object: a }]
1603
- ]), u;
1604
- }
1605
- function c(a, u) {
1606
- return u = F({}, u), Object.keys(u).length ? [
1607
- "div",
1608
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1609
- [
1610
- "div",
1611
- {
1612
- style: "color:#476582"
1613
- },
1614
- a
1615
- ],
1616
- [
1617
- "div",
1618
- {
1619
- style: "padding-left:1.25em"
1620
- },
1621
- ...Object.keys(u).map((S) => [
1622
- "div",
1623
- {},
1624
- ["span", s, S + ": "],
1625
- i(u[S], !1)
1626
- ])
1627
- ]
1628
- ] : ["span", {}];
1629
- }
1630
- function i(a, u = !0) {
1631
- return typeof a == "number" ? ["span", t, a] : typeof a == "string" ? ["span", n, JSON.stringify(a)] : typeof a == "boolean" ? ["span", s, a] : v(a) ? ["object", { object: u ? p(a) : a }] : ["span", n, String(a)];
1632
- }
1633
- function l(a, u) {
1634
- const S = a.type;
1635
- if (b(S))
1636
- return;
1637
- const R = {};
1638
- for (const q in a.ctx)
1639
- f(S, q, u) && (R[q] = a.ctx[q]);
1640
- return R;
1641
- }
1642
- function f(a, u, S) {
1643
- const R = a[S];
1644
- if (_(R) && R.includes(u) || v(R) && u in R || a.extends && f(a.extends, u, S) || a.mixins && a.mixins.some((q) => f(q, u, S)))
1645
- return !0;
1646
- }
1647
- function d(a) {
1648
- return O(a) ? "ShallowRef" : a.effect ? "ComputedRef" : "Ref";
1649
- }
1650
- window.devtoolsFormatters ? window.devtoolsFormatters.push(r) : window.devtoolsFormatters = [r];
1651
- }
1652
- process.env.NODE_ENV;
1653
- process.env.NODE_ENV;
1654
- process.env.NODE_ENV;
1655
- function pr() {
1656
- dr();
1657
- }
1658
- process.env.NODE_ENV !== "production" && pr();
1659
- const nt = On("");
1660
- function hr() {
1661
- return {
1662
- inputValue: nt,
1663
- setInputValue: (t) => {
1664
- nt.value = t;
1665
- }
1666
- };
1667
- }
1668
- const g = ze({
1669
- validateOnBlur: !1,
1670
- validateOnInput: !1,
1671
- validateOnChange: !1,
1672
- validateOnMount: !1,
1673
- required: !1,
1674
- isValid: !0,
1675
- errors: []
1676
- }), { inputValue: rt } = hr();
1677
- function Or(e, t) {
1678
- return {
1679
- init: () => {
1680
- e && (g.validateOnBlur = e.validateOnBlur ?? !1, g.validateOnInput = e.validateOnInput ?? !1, g.validateOnChange = e.validateOnChange ?? !1, g.validateOnMount = e.validateOnMount ?? !1, g.validate = e.validate, g.required = e.required ?? !1, g.errors = e.errors || []);
1681
- },
1682
- validation: () => {
1683
- const r = Object.assign([], e?.errors || []);
1684
- if (g.required && !rt.value && (g.isValid = !1, r.push("This field is required")), g.validate) {
1685
- const o = g.validate(rt.value);
1686
- typeof o == "string" ? (g.isValid = !1, r.push(o)) : Array.isArray(o) ? (g.isValid = !1, r.push(...o)) : g.isValid = !0;
1687
- }
1688
- g.errors = r, r.length > 0 ? (g.isValid = !1, t?.("error", r)) : g.isValid = !0;
1689
- },
1690
- isValid: tt(() => g.isValid),
1691
- errors: tt(() => g.errors)
1692
- };
1693
- }
1694
- export {
1695
- te as F,
1696
- Sr as a,
1697
- wr as b,
1698
- tt as c,
1699
- vr as d,
1700
- gr as e,
1701
- Ft as f,
1702
- Nr as g,
1703
- hr as h,
1704
- On as i,
1705
- yr as j,
1706
- Er as k,
1707
- Fe as l,
1708
- Ne as m,
1709
- _r as n,
1710
- Pe as o,
1711
- or as p,
1712
- ye as q,
1713
- br as r,
1714
- ir as s,
1715
- tn as t,
1716
- Or as u,
1717
- mr as w
1718
- };