vite-plugin-aipanel 1.2.21 → 1.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -87
- package/lib/client.js +847 -854
- package/package.json +8 -8
package/lib/client.js
CHANGED
|
@@ -4,14 +4,14 @@ function pi(e) {
|
|
|
4
4
|
for (const i of e.split(",")) t[i] = 1;
|
|
5
5
|
return (i) => i in t;
|
|
6
6
|
}
|
|
7
|
-
var me = {},
|
|
7
|
+
var me = {}, on = [], jt = () => {
|
|
8
8
|
}, vr = () => !1, vi = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), gi = (e) => e.startsWith("onUpdate:"), rt = Object.assign, gr = (e, t) => {
|
|
9
9
|
const i = e.indexOf(t);
|
|
10
10
|
i > -1 && e.splice(i, 1);
|
|
11
|
-
},
|
|
11
|
+
}, bo = Object.prototype.hasOwnProperty, he = (e, t) => bo.call(e, t), J = Array.isArray, an = (e) => jn(e) === "[object Map]", mr = (e) => jn(e) === "[object Set]", xs = (e) => jn(e) === "[object Date]", de = (e) => typeof e == "function", Ie = (e) => typeof e == "string", lt = (e) => typeof e == "symbol", ge = (e) => e !== null && typeof e == "object", _r = (e) => (ge(e) || de(e)) && de(e.then) && de(e.catch), yr = Object.prototype.toString, jn = (e) => yr.call(e), So = (e) => jn(e).slice(8, -1), br = (e) => jn(e) === "[object Object]", mi = (e) => Ie(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Mn = /* @__PURE__ */ pi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), _i = (e) => {
|
|
12
12
|
const t = /* @__PURE__ */ Object.create(null);
|
|
13
13
|
return ((i) => t[i] || (t[i] = e(i)));
|
|
14
|
-
},
|
|
14
|
+
}, Eo = /-\w/g, ht = _i((e) => e.replace(Eo, (t) => t.slice(1).toUpperCase())), To = /\B([A-Z])/g, tn = _i((e) => e.replace(To, "-$1").toLowerCase()), Sr = _i((e) => e.charAt(0).toUpperCase() + e.slice(1)), Oi = _i((e) => e ? `on${Sr(e)}` : ""), wt = (e, t) => !Object.is(e, t), Pi = (e, ...t) => {
|
|
15
15
|
for (let i = 0; i < e.length; i++) e[i](...t);
|
|
16
16
|
}, Er = (e, t, i, n = !1) => {
|
|
17
17
|
Object.defineProperty(e, t, {
|
|
@@ -20,7 +20,7 @@ var me = {}, ln = [], jt = () => {
|
|
|
20
20
|
writable: n,
|
|
21
21
|
value: i
|
|
22
22
|
});
|
|
23
|
-
},
|
|
23
|
+
}, wo = (e) => {
|
|
24
24
|
const t = parseFloat(e);
|
|
25
25
|
return isNaN(t) ? e : t;
|
|
26
26
|
}, Is, yi = () => Is || (Is = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
|
|
@@ -28,18 +28,18 @@ function Lt(e) {
|
|
|
28
28
|
if (J(e)) {
|
|
29
29
|
const t = {};
|
|
30
30
|
for (let i = 0; i < e.length; i++) {
|
|
31
|
-
const n = e[i], s = Ie(n) ?
|
|
31
|
+
const n = e[i], s = Ie(n) ? Ao(n) : Lt(n);
|
|
32
32
|
if (s) for (const r in s) t[r] = s[r];
|
|
33
33
|
}
|
|
34
34
|
return t;
|
|
35
35
|
} else if (Ie(e) || ge(e)) return e;
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function
|
|
37
|
+
var Co = /;(?![^(]*\))/g, xo = /:([^]+)/, Io = /\/\*[^]*?\*\//g;
|
|
38
|
+
function Ao(e) {
|
|
39
39
|
const t = {};
|
|
40
|
-
return e.replace(
|
|
40
|
+
return e.replace(Io, "").split(Co).forEach((i) => {
|
|
41
41
|
if (i) {
|
|
42
|
-
const n = i.split(
|
|
42
|
+
const n = i.split(xo);
|
|
43
43
|
n.length > 1 && (t[n[0].trim()] = n[1].trim());
|
|
44
44
|
}
|
|
45
45
|
}), t;
|
|
@@ -55,11 +55,11 @@ function Me(e) {
|
|
|
55
55
|
for (const i in e) e[i] && (t += i + " ");
|
|
56
56
|
return t.trim();
|
|
57
57
|
}
|
|
58
|
-
var Tr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",
|
|
58
|
+
var Tr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", Mo = /* @__PURE__ */ pi(Tr), Qh = /* @__PURE__ */ pi(Tr + ",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");
|
|
59
59
|
function wr(e) {
|
|
60
60
|
return !!e || e === "";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Oo(e, t) {
|
|
63
63
|
if (e.length !== t.length) return !1;
|
|
64
64
|
let i = !0;
|
|
65
65
|
for (let n = 0; i && n < e.length; n++) i = as(e[n], t[n]);
|
|
@@ -69,25 +69,25 @@ function as(e, t) {
|
|
|
69
69
|
if (e === t) return !0;
|
|
70
70
|
let i = xs(e), n = xs(t);
|
|
71
71
|
if (i || n) return i && n ? e.getTime() === t.getTime() : !1;
|
|
72
|
-
if (i =
|
|
73
|
-
if (i = J(e), n = J(t), i || n) return i && n ?
|
|
72
|
+
if (i = lt(e), n = lt(t), i || n) return e === t;
|
|
73
|
+
if (i = J(e), n = J(t), i || n) return i && n ? Oo(e, t) : !1;
|
|
74
74
|
if (i = ge(e), n = ge(t), i || n) {
|
|
75
75
|
if (!i || !n || Object.keys(e).length !== Object.keys(t).length) return !1;
|
|
76
76
|
for (const s in e) {
|
|
77
|
-
const r = e.hasOwnProperty(s),
|
|
78
|
-
if (r && !
|
|
77
|
+
const r = e.hasOwnProperty(s), l = t.hasOwnProperty(s);
|
|
78
|
+
if (r && !l || !r && l || !as(e[s], t[s])) return !1;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
return String(e) === String(t);
|
|
82
82
|
}
|
|
83
|
-
var Cr = (e) => !!(e && e.__v_isRef === !0), Pe = (e) => Ie(e) ? e : e == null ? "" : J(e) || ge(e) && (e.toString === yr || !de(e.toString)) ? Cr(e) ? Pe(e.value) : JSON.stringify(e, xr, 2) : String(e), xr = (e, t) => Cr(t) ? xr(e, t.value) : an(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((i, [n, s], r) => (i[Ri(n, r) + " =>"] = s, i), {}) } : mr(t) ? { [`Set(${t.size})`]: [...t.values()].map((i) => Ri(i)) } :
|
|
83
|
+
var Cr = (e) => !!(e && e.__v_isRef === !0), Pe = (e) => Ie(e) ? e : e == null ? "" : J(e) || ge(e) && (e.toString === yr || !de(e.toString)) ? Cr(e) ? Pe(e.value) : JSON.stringify(e, xr, 2) : String(e), xr = (e, t) => Cr(t) ? xr(e, t.value) : an(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((i, [n, s], r) => (i[Ri(n, r) + " =>"] = s, i), {}) } : mr(t) ? { [`Set(${t.size})`]: [...t.values()].map((i) => Ri(i)) } : lt(t) ? Ri(t) : ge(t) && !J(t) && !br(t) ? String(t) : t, Ri = (e, t = "") => {
|
|
84
84
|
var i;
|
|
85
|
-
return
|
|
85
|
+
return lt(e) ? `Symbol(${(i = e.description) != null ? i : t})` : e;
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function Po(e) {
|
|
88
88
|
return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : (typeof e != "number" || Number.isFinite(e), String(e));
|
|
89
89
|
}
|
|
90
|
-
var De,
|
|
90
|
+
var De, Ro = class {
|
|
91
91
|
constructor(e = !1) {
|
|
92
92
|
this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && De && (De.active ? (this.parent = De, this.index = (De.scopes || (De.scopes = [])).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
|
|
93
93
|
}
|
|
@@ -242,7 +242,7 @@ function Rr(e) {
|
|
|
242
242
|
let t, i = e.depsTail, n = i;
|
|
243
243
|
for (; n; ) {
|
|
244
244
|
const s = n.prevDep;
|
|
245
|
-
n.version === -1 ? (n === i && (i = s), ds(n),
|
|
245
|
+
n.version === -1 ? (n === i && (i = s), ds(n), Lo(n)) : t = n, n.dep.activeLink = n.prevActiveLink, n.prevActiveLink = void 0, n = s;
|
|
246
246
|
}
|
|
247
247
|
e.deps = t, e.depsTail = i;
|
|
248
248
|
}
|
|
@@ -273,7 +273,7 @@ function ds(e, t = !1) {
|
|
|
273
273
|
}
|
|
274
274
|
!t && !--i.sc && i.map && i.map.delete(i.key);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Lo(e) {
|
|
277
277
|
const { prevDep: t, nextDep: i } = e;
|
|
278
278
|
t && (t.nextDep = i, e.prevDep = void 0), i && (i.prevDep = t, e.nextDep = void 0);
|
|
279
279
|
}
|
|
@@ -297,7 +297,7 @@ function As(e) {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
var Fn = 0,
|
|
300
|
+
var Fn = 0, No = class {
|
|
301
301
|
constructor(e, t) {
|
|
302
302
|
this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
303
303
|
}
|
|
@@ -309,7 +309,7 @@ var Fn = 0, Nl = class {
|
|
|
309
309
|
if (!pe || !pt || pe === this.computed) return;
|
|
310
310
|
let t = this.activeLink;
|
|
311
311
|
if (t === void 0 || t.sub !== pe)
|
|
312
|
-
t = this.activeLink = new
|
|
312
|
+
t = this.activeLink = new No(pe, this), pe.deps ? (t.prevDep = pe.depsTail, pe.depsTail.nextDep = t, pe.depsTail = t) : pe.deps = pe.depsTail = t, kr(t);
|
|
313
313
|
else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
|
|
314
314
|
const i = t.nextDep;
|
|
315
315
|
i.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = i), t.prevDep = pe.depsTail, t.nextDep = void 0, pe.depsTail.nextDep = t, pe.depsTail = t, pe.deps === t && (pe.deps = i);
|
|
@@ -349,37 +349,37 @@ function Ve(e, t, i) {
|
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
351
|
function Pt(e, t, i, n, s, r) {
|
|
352
|
-
const
|
|
353
|
-
if (!
|
|
352
|
+
const l = ni.get(e);
|
|
353
|
+
if (!l) {
|
|
354
354
|
Fn++;
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const o = (a) => {
|
|
358
358
|
a && a.trigger();
|
|
359
359
|
};
|
|
360
|
-
if (us(), t === "clear")
|
|
360
|
+
if (us(), t === "clear") l.forEach(o);
|
|
361
361
|
else {
|
|
362
362
|
const a = J(e), d = a && mi(i);
|
|
363
363
|
if (a && i === "length") {
|
|
364
364
|
const u = Number(n);
|
|
365
|
-
|
|
366
|
-
(p === "length" || p === Bn || !
|
|
365
|
+
l.forEach((f, p) => {
|
|
366
|
+
(p === "length" || p === Bn || !lt(p) && p >= u) && o(f);
|
|
367
367
|
});
|
|
368
368
|
} else
|
|
369
|
-
switch ((i !== void 0 ||
|
|
369
|
+
switch ((i !== void 0 || l.has(void 0)) && o(l.get(i)), d && o(l.get(Bn)), t) {
|
|
370
370
|
case "add":
|
|
371
|
-
a ? d && l
|
|
371
|
+
a ? d && o(l.get("length")) : (o(l.get(Qt)), an(e) && o(l.get(Gi)));
|
|
372
372
|
break;
|
|
373
373
|
case "delete":
|
|
374
|
-
a || (l
|
|
374
|
+
a || (o(l.get(Qt)), an(e) && o(l.get(Gi)));
|
|
375
375
|
break;
|
|
376
376
|
case "set":
|
|
377
|
-
an(e) && l
|
|
377
|
+
an(e) && o(l.get(Qt));
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
cs();
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function ko(e, t) {
|
|
383
383
|
const i = ni.get(e);
|
|
384
384
|
return i && i.get(t);
|
|
385
385
|
}
|
|
@@ -393,7 +393,7 @@ function bi(e) {
|
|
|
393
393
|
function Et(e, t) {
|
|
394
394
|
return /* @__PURE__ */ Dt(e) ? hn(/* @__PURE__ */ en(e) ? vt(t) : t) : vt(t);
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var Do = {
|
|
397
397
|
__proto__: null,
|
|
398
398
|
[Symbol.iterator]() {
|
|
399
399
|
return Ni(this, Symbol.iterator, (e) => Et(this, e));
|
|
@@ -484,32 +484,32 @@ function Ni(e, t, i) {
|
|
|
484
484
|
return r.done || (r.value = i(r.value)), r;
|
|
485
485
|
}), s;
|
|
486
486
|
}
|
|
487
|
-
var
|
|
487
|
+
var Fo = Array.prototype;
|
|
488
488
|
function At(e, t, i, n, s, r) {
|
|
489
|
-
const
|
|
490
|
-
if (a !==
|
|
489
|
+
const l = bi(e), o = l !== e && !/* @__PURE__ */ st(e), a = l[t];
|
|
490
|
+
if (a !== Fo[t]) {
|
|
491
491
|
const f = a.apply(e, r);
|
|
492
|
-
return
|
|
492
|
+
return o ? vt(f) : f;
|
|
493
493
|
}
|
|
494
494
|
let d = i;
|
|
495
|
-
|
|
495
|
+
l !== e && (o ? d = function(f, p) {
|
|
496
496
|
return i.call(this, Et(e, f), p, e);
|
|
497
497
|
} : i.length > 2 && (d = function(f, p) {
|
|
498
498
|
return i.call(this, f, p, e);
|
|
499
499
|
}));
|
|
500
|
-
const u = a.call(
|
|
501
|
-
return
|
|
500
|
+
const u = a.call(l, d, n);
|
|
501
|
+
return o && s ? s(u) : u;
|
|
502
502
|
}
|
|
503
503
|
function Ms(e, t, i, n) {
|
|
504
504
|
const s = bi(e), r = s !== e && !/* @__PURE__ */ st(e);
|
|
505
|
-
let
|
|
506
|
-
s !== e && (r ? (
|
|
507
|
-
return
|
|
508
|
-
}) : i.length > 3 && (
|
|
505
|
+
let l = i, o = !1;
|
|
506
|
+
s !== e && (r ? (o = n.length === 0, l = function(d, u, f) {
|
|
507
|
+
return o && (o = !1, d = Et(e, d)), i.call(this, d, Et(e, u), f, e);
|
|
508
|
+
}) : i.length > 3 && (l = function(d, u, f) {
|
|
509
509
|
return i.call(this, d, u, f, e);
|
|
510
510
|
}));
|
|
511
|
-
const a = s[t](
|
|
512
|
-
return
|
|
511
|
+
const a = s[t](l, ...n);
|
|
512
|
+
return o ? Et(e, a) : a;
|
|
513
513
|
}
|
|
514
514
|
function ki(e, t, i) {
|
|
515
515
|
const n = /* @__PURE__ */ re(e);
|
|
@@ -522,9 +522,9 @@ function En(e, t, i = []) {
|
|
|
522
522
|
const n = (/* @__PURE__ */ re(e))[t].apply(e, i);
|
|
523
523
|
return cs(), kt(), n;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
function $
|
|
527
|
-
|
|
525
|
+
var Bo = /* @__PURE__ */ pi("__proto__,__v_isRef,__isVue"), Dr = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(lt));
|
|
526
|
+
function $o(e) {
|
|
527
|
+
lt(e) || (e = String(e));
|
|
528
528
|
const t = /* @__PURE__ */ re(this);
|
|
529
529
|
return Ve(t, "has", e), t.hasOwnProperty(e);
|
|
530
530
|
}
|
|
@@ -539,20 +539,20 @@ var Fr = class {
|
|
|
539
539
|
if (t === "__v_isReadonly") return n;
|
|
540
540
|
if (t === "__v_isShallow") return s;
|
|
541
541
|
if (t === "__v_raw")
|
|
542
|
-
return i === (n ? s ?
|
|
542
|
+
return i === (n ? s ? Yo : Hr : s ? Wr : $r).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(i) ? e : void 0;
|
|
543
543
|
const r = J(e);
|
|
544
544
|
if (!n) {
|
|
545
|
-
let
|
|
546
|
-
if (r && (
|
|
547
|
-
if (t === "hasOwnProperty") return $
|
|
545
|
+
let o;
|
|
546
|
+
if (r && (o = Do[t])) return o;
|
|
547
|
+
if (t === "hasOwnProperty") return $o;
|
|
548
548
|
}
|
|
549
|
-
const
|
|
550
|
-
if ((
|
|
551
|
-
if (/* @__PURE__ */ Le(
|
|
552
|
-
const
|
|
553
|
-
return n && ge(
|
|
549
|
+
const l = Reflect.get(e, t, /* @__PURE__ */ Le(e) ? e : i);
|
|
550
|
+
if ((lt(t) ? Dr.has(t) : Bo(t)) || (n || Ve(e, "get", t), s)) return l;
|
|
551
|
+
if (/* @__PURE__ */ Le(l)) {
|
|
552
|
+
const o = r && mi(t) ? l : l.value;
|
|
553
|
+
return n && ge(o) ? /* @__PURE__ */ Xi(o) : o;
|
|
554
554
|
}
|
|
555
|
-
return ge(
|
|
555
|
+
return ge(l) ? n ? /* @__PURE__ */ Xi(l) : /* @__PURE__ */ Vr(l) : l;
|
|
556
556
|
}
|
|
557
557
|
}, Br = class extends Fr {
|
|
558
558
|
constructor(e = !1) {
|
|
@@ -566,8 +566,8 @@ var Fr = class {
|
|
|
566
566
|
if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Dt(i) && (s = /* @__PURE__ */ re(s), i = /* @__PURE__ */ re(i)), !r && /* @__PURE__ */ Le(s) && !/* @__PURE__ */ Le(i))
|
|
567
567
|
return a || (s.value = i), !0;
|
|
568
568
|
}
|
|
569
|
-
const
|
|
570
|
-
return e === /* @__PURE__ */ re(n) &&
|
|
569
|
+
const l = r ? Number(t) < e.length : he(e, t), o = Reflect.set(e, t, i, /* @__PURE__ */ Le(e) ? e : n);
|
|
570
|
+
return e === /* @__PURE__ */ re(n) && o && (l ? wt(i, s) && Pt(e, "set", t, i, s) : Pt(e, "add", t, i)), o;
|
|
571
571
|
}
|
|
572
572
|
deleteProperty(e, t) {
|
|
573
573
|
const i = he(e, t), n = e[t], s = Reflect.deleteProperty(e, t);
|
|
@@ -575,12 +575,12 @@ var Fr = class {
|
|
|
575
575
|
}
|
|
576
576
|
has(e, t) {
|
|
577
577
|
const i = Reflect.has(e, t);
|
|
578
|
-
return (!
|
|
578
|
+
return (!lt(t) || !Dr.has(t)) && Ve(e, "has", t), i;
|
|
579
579
|
}
|
|
580
580
|
ownKeys(e) {
|
|
581
581
|
return Ve(e, "iterate", J(e) ? "length" : Qt), Reflect.ownKeys(e);
|
|
582
582
|
}
|
|
583
|
-
},
|
|
583
|
+
}, Wo = class extends Fr {
|
|
584
584
|
constructor(e = !1) {
|
|
585
585
|
super(!0, e);
|
|
586
586
|
}
|
|
@@ -590,17 +590,17 @@ var Fr = class {
|
|
|
590
590
|
deleteProperty(e, t) {
|
|
591
591
|
return !0;
|
|
592
592
|
}
|
|
593
|
-
},
|
|
594
|
-
function
|
|
593
|
+
}, Ho = /* @__PURE__ */ new Br(), Vo = /* @__PURE__ */ new Wo(), jo = /* @__PURE__ */ new Br(!0), Yi = (e) => e, Gn = (e) => Reflect.getPrototypeOf(e);
|
|
594
|
+
function zo(e, t, i) {
|
|
595
595
|
return function(...n) {
|
|
596
|
-
const s = this.__v_raw, r = /* @__PURE__ */ re(s),
|
|
596
|
+
const s = this.__v_raw, r = /* @__PURE__ */ re(s), l = an(r), o = e === "entries" || e === Symbol.iterator && l, a = e === "keys" && l, d = s[e](...n), u = i ? Yi : t ? hn : vt;
|
|
597
597
|
return !t && Ve(r, "iterate", a ? Gi : Qt), rt(Object.create(d), { next() {
|
|
598
598
|
const { value: f, done: p } = d.next();
|
|
599
599
|
return p ? {
|
|
600
600
|
value: f,
|
|
601
601
|
done: p
|
|
602
602
|
} : {
|
|
603
|
-
value:
|
|
603
|
+
value: o ? [u(f[0]), u(f[1])] : u(f),
|
|
604
604
|
done: p
|
|
605
605
|
};
|
|
606
606
|
} });
|
|
@@ -611,14 +611,14 @@ function Yn(e) {
|
|
|
611
611
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function Uo(e, t) {
|
|
615
615
|
const i = {
|
|
616
616
|
get(n) {
|
|
617
|
-
const s = this.__v_raw, r = /* @__PURE__ */ re(s),
|
|
618
|
-
e || (wt(n,
|
|
619
|
-
const { has:
|
|
620
|
-
if (
|
|
621
|
-
if (
|
|
617
|
+
const s = this.__v_raw, r = /* @__PURE__ */ re(s), l = /* @__PURE__ */ re(n);
|
|
618
|
+
e || (wt(n, l) && Ve(r, "get", n), Ve(r, "get", l));
|
|
619
|
+
const { has: o } = Gn(r), a = t ? Yi : e ? hn : vt;
|
|
620
|
+
if (o.call(r, n)) return a(s.get(n));
|
|
621
|
+
if (o.call(r, l)) return a(s.get(l));
|
|
622
622
|
s !== r && s.get(n);
|
|
623
623
|
},
|
|
624
624
|
get size() {
|
|
@@ -626,12 +626,12 @@ function Ul(e, t) {
|
|
|
626
626
|
return !e && Ve(/* @__PURE__ */ re(n), "iterate", Qt), n.size;
|
|
627
627
|
},
|
|
628
628
|
has(n) {
|
|
629
|
-
const s = this.__v_raw, r = /* @__PURE__ */ re(s),
|
|
630
|
-
return e || (wt(n,
|
|
629
|
+
const s = this.__v_raw, r = /* @__PURE__ */ re(s), l = /* @__PURE__ */ re(n);
|
|
630
|
+
return e || (wt(n, l) && Ve(r, "has", n), Ve(r, "has", l)), n === l ? s.has(n) : s.has(n) || s.has(l);
|
|
631
631
|
},
|
|
632
632
|
forEach(n, s) {
|
|
633
|
-
const r = this,
|
|
634
|
-
return !e && Ve(
|
|
633
|
+
const r = this, l = r.__v_raw, o = /* @__PURE__ */ re(l), a = t ? Yi : e ? hn : vt;
|
|
634
|
+
return !e && Ve(o, "iterate", Qt), l.forEach((d, u) => n.call(s, a(d), a(u), r));
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
return rt(i, e ? {
|
|
@@ -641,27 +641,27 @@ function Ul(e, t) {
|
|
|
641
641
|
clear: Yn("clear")
|
|
642
642
|
} : {
|
|
643
643
|
add(n) {
|
|
644
|
-
const s = /* @__PURE__ */ re(this), r = Gn(s),
|
|
645
|
-
return r.has.call(s,
|
|
644
|
+
const s = /* @__PURE__ */ re(this), r = Gn(s), l = /* @__PURE__ */ re(n), o = !t && !/* @__PURE__ */ st(n) && !/* @__PURE__ */ Dt(n) ? l : n;
|
|
645
|
+
return r.has.call(s, o) || wt(n, o) && r.has.call(s, n) || wt(l, o) && r.has.call(s, l) || (s.add(o), Pt(s, "add", o, o)), this;
|
|
646
646
|
},
|
|
647
647
|
set(n, s) {
|
|
648
648
|
!t && !/* @__PURE__ */ st(s) && !/* @__PURE__ */ Dt(s) && (s = /* @__PURE__ */ re(s));
|
|
649
|
-
const r = /* @__PURE__ */ re(this), { has:
|
|
650
|
-
let a =
|
|
651
|
-
a || (n = /* @__PURE__ */ re(n), a =
|
|
652
|
-
const d =
|
|
649
|
+
const r = /* @__PURE__ */ re(this), { has: l, get: o } = Gn(r);
|
|
650
|
+
let a = l.call(r, n);
|
|
651
|
+
a || (n = /* @__PURE__ */ re(n), a = l.call(r, n));
|
|
652
|
+
const d = o.call(r, n);
|
|
653
653
|
return r.set(n, s), a ? wt(s, d) && Pt(r, "set", n, s, d) : Pt(r, "add", n, s), this;
|
|
654
654
|
},
|
|
655
655
|
delete(n) {
|
|
656
|
-
const s = /* @__PURE__ */ re(this), { has: r, get:
|
|
657
|
-
let
|
|
658
|
-
|
|
659
|
-
const a =
|
|
660
|
-
return
|
|
656
|
+
const s = /* @__PURE__ */ re(this), { has: r, get: l } = Gn(s);
|
|
657
|
+
let o = r.call(s, n);
|
|
658
|
+
o || (n = /* @__PURE__ */ re(n), o = r.call(s, n));
|
|
659
|
+
const a = l ? l.call(s, n) : void 0, d = s.delete(n);
|
|
660
|
+
return o && Pt(s, "delete", n, void 0, a), d;
|
|
661
661
|
},
|
|
662
662
|
clear() {
|
|
663
|
-
const n = /* @__PURE__ */ re(this), s = n.size !== 0, r = void 0,
|
|
664
|
-
return s && Pt(n, "clear", void 0, void 0, r),
|
|
663
|
+
const n = /* @__PURE__ */ re(this), s = n.size !== 0, r = void 0, l = n.clear();
|
|
664
|
+
return s && Pt(n, "clear", void 0, void 0, r), l;
|
|
665
665
|
}
|
|
666
666
|
}), [
|
|
667
667
|
"keys",
|
|
@@ -669,15 +669,15 @@ function Ul(e, t) {
|
|
|
669
669
|
"entries",
|
|
670
670
|
Symbol.iterator
|
|
671
671
|
].forEach((n) => {
|
|
672
|
-
i[n] =
|
|
672
|
+
i[n] = zo(n, e, t);
|
|
673
673
|
}), i;
|
|
674
674
|
}
|
|
675
675
|
function hs(e, t) {
|
|
676
|
-
const i =
|
|
676
|
+
const i = Uo(e, t);
|
|
677
677
|
return (n, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? n : Reflect.get(he(i, s) && s in n ? i : n, s, r);
|
|
678
678
|
}
|
|
679
|
-
var
|
|
680
|
-
function
|
|
679
|
+
var qo = { get: /* @__PURE__ */ hs(!1, !1) }, Ko = { get: /* @__PURE__ */ hs(!1, !0) }, Go = { get: /* @__PURE__ */ hs(!0, !1) }, $r = /* @__PURE__ */ new WeakMap(), Wr = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Yo = /* @__PURE__ */ new WeakMap();
|
|
680
|
+
function Xo(e) {
|
|
681
681
|
switch (e) {
|
|
682
682
|
case "Object":
|
|
683
683
|
case "Array":
|
|
@@ -693,24 +693,24 @@ function Xl(e) {
|
|
|
693
693
|
}
|
|
694
694
|
// @__NO_SIDE_EFFECTS__
|
|
695
695
|
function Vr(e) {
|
|
696
|
-
return /* @__PURE__ */ Dt(e) ? e : ps(e, !1,
|
|
696
|
+
return /* @__PURE__ */ Dt(e) ? e : ps(e, !1, Ho, qo, $r);
|
|
697
697
|
}
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
699
|
-
function
|
|
700
|
-
return ps(e, !1,
|
|
699
|
+
function Jo(e) {
|
|
700
|
+
return ps(e, !1, jo, Ko, Wr);
|
|
701
701
|
}
|
|
702
702
|
// @__NO_SIDE_EFFECTS__
|
|
703
703
|
function Xi(e) {
|
|
704
|
-
return ps(e, !0,
|
|
704
|
+
return ps(e, !0, Vo, Go, Hr);
|
|
705
705
|
}
|
|
706
706
|
function ps(e, t, i, n, s) {
|
|
707
707
|
if (!ge(e) || e.__v_raw && !(t && e.__v_isReactive) || e.__v_skip || !Object.isExtensible(e)) return e;
|
|
708
708
|
const r = s.get(e);
|
|
709
709
|
if (r) return r;
|
|
710
|
-
const
|
|
711
|
-
if (
|
|
712
|
-
const
|
|
713
|
-
return s.set(e,
|
|
710
|
+
const l = Xo(So(e));
|
|
711
|
+
if (l === 0) return e;
|
|
712
|
+
const o = new Proxy(e, l === 2 ? n : i);
|
|
713
|
+
return s.set(e, o), o;
|
|
714
714
|
}
|
|
715
715
|
// @__NO_SIDE_EFFECTS__
|
|
716
716
|
function en(e) {
|
|
@@ -733,7 +733,7 @@ function re(e) {
|
|
|
733
733
|
const t = e && e.__v_raw;
|
|
734
734
|
return t ? /* @__PURE__ */ re(t) : e;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Zo(e) {
|
|
737
737
|
return !he(e, "__v_skip") && Object.isExtensible(e) && Er(e, "__v_skip", !0), e;
|
|
738
738
|
}
|
|
739
739
|
var vt = (e) => ge(e) ? /* @__PURE__ */ Vr(e) : e, hn = (e) => ge(e) ? /* @__PURE__ */ Xi(e) : e;
|
|
@@ -743,9 +743,9 @@ function Le(e) {
|
|
|
743
743
|
}
|
|
744
744
|
// @__NO_SIDE_EFFECTS__
|
|
745
745
|
function P(e) {
|
|
746
|
-
return
|
|
746
|
+
return Qo(e, !1);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function Qo(e, t) {
|
|
749
749
|
return /* @__PURE__ */ Le(e) ? e : new ea(e, t);
|
|
750
750
|
}
|
|
751
751
|
var ea = class {
|
|
@@ -775,9 +775,9 @@ function jr(e) {
|
|
|
775
775
|
}
|
|
776
776
|
var na = class {
|
|
777
777
|
constructor(e, t, i) {
|
|
778
|
-
this._object = e, this._defaultValue = i, this.__v_isRef = !0, this._value = void 0, this._key =
|
|
778
|
+
this._object = e, this._defaultValue = i, this.__v_isRef = !0, this._value = void 0, this._key = lt(t) ? t : String(t), this._raw = /* @__PURE__ */ re(e);
|
|
779
779
|
let n = !0, s = e;
|
|
780
|
-
if (!J(e) ||
|
|
780
|
+
if (!J(e) || lt(this._key) || !mi(this._key)) do
|
|
781
781
|
n = !/* @__PURE__ */ Si(s) || /* @__PURE__ */ st(s);
|
|
782
782
|
while (n && (s = s.__v_raw));
|
|
783
783
|
this._shallow = n;
|
|
@@ -797,7 +797,7 @@ var na = class {
|
|
|
797
797
|
this._object[this._key] = e;
|
|
798
798
|
}
|
|
799
799
|
get dep() {
|
|
800
|
-
return
|
|
800
|
+
return ko(this._raw, this._key);
|
|
801
801
|
}
|
|
802
802
|
}, ia = class {
|
|
803
803
|
constructor(e) {
|
|
@@ -831,19 +831,19 @@ var ra = class {
|
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
833
|
// @__NO_SIDE_EFFECTS__
|
|
834
|
-
function
|
|
834
|
+
function la(e, t, i = !1) {
|
|
835
835
|
let n, s;
|
|
836
836
|
return de(e) ? n = e : (n = e.get, s = e.set), new ra(n, s, i);
|
|
837
837
|
}
|
|
838
838
|
var Xn = {}, ii = /* @__PURE__ */ new WeakMap(), Xt = void 0;
|
|
839
|
-
function
|
|
839
|
+
function oa(e, t = !1, i = Xt) {
|
|
840
840
|
if (i) {
|
|
841
841
|
let n = ii.get(i);
|
|
842
842
|
n || ii.set(i, n = []), n.push(e);
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
function aa(e, t, i = me) {
|
|
846
|
-
const { immediate: n, deep: s, once: r, scheduler:
|
|
846
|
+
const { immediate: n, deep: s, once: r, scheduler: l, augmentJob: o, call: a } = i, d = (O) => s ? O : /* @__PURE__ */ st(O) || s === !1 || s === 0 ? Rt(O, 1) : Rt(O);
|
|
847
847
|
let u, f, p, m, S = !1, _ = !1;
|
|
848
848
|
if (/* @__PURE__ */ Le(e) ? (f = () => e.value, S = /* @__PURE__ */ st(e)) : /* @__PURE__ */ en(e) ? (f = () => d(e), S = !0) : J(e) ? (_ = !0, S = e.some((O) => /* @__PURE__ */ en(O) || /* @__PURE__ */ st(O)), f = () => e.map((O) => {
|
|
849
849
|
if (/* @__PURE__ */ Le(O)) return O.value;
|
|
@@ -901,14 +901,14 @@ function aa(e, t, i = me) {
|
|
|
901
901
|
}
|
|
902
902
|
} else u.run();
|
|
903
903
|
};
|
|
904
|
-
return
|
|
904
|
+
return o && o(k), u = new Ar(f), u.scheduler = l ? () => l(k, !1) : k, m = (O) => oa(O, !1, u), p = u.onStop = () => {
|
|
905
905
|
const O = ii.get(u);
|
|
906
906
|
if (O) {
|
|
907
907
|
if (a) a(O, 4);
|
|
908
908
|
else for (const L of O) L();
|
|
909
909
|
ii.delete(u);
|
|
910
910
|
}
|
|
911
|
-
}, t ? n ? k(!0) : A = u.run() :
|
|
911
|
+
}, t ? n ? k(!0) : A = u.run() : l ? l(k.bind(null, !0), !0) : u.run(), b.pause = u.pause.bind(u), b.resume = u.resume.bind(u), b.stop = b, b;
|
|
912
912
|
}
|
|
913
913
|
function Rt(e, t = 1 / 0, i) {
|
|
914
914
|
if (t <= 0 || !ge(e) || e.__v_skip || (i = i || /* @__PURE__ */ new Map(), (i.get(e) || 0) >= t)) return e;
|
|
@@ -944,16 +944,16 @@ function xt(e, t, i, n) {
|
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
function Ei(e, t, i, n = !0) {
|
|
947
|
-
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction:
|
|
947
|
+
const s = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: l } = t && t.appContext.config || me;
|
|
948
948
|
if (t) {
|
|
949
|
-
let
|
|
949
|
+
let o = t.parent;
|
|
950
950
|
const a = t.proxy, d = `https://vuejs.org/error-reference/#runtime-${i}`;
|
|
951
|
-
for (;
|
|
952
|
-
const u =
|
|
951
|
+
for (; o; ) {
|
|
952
|
+
const u = o.ec;
|
|
953
953
|
if (u) {
|
|
954
954
|
for (let f = 0; f < u.length; f++) if (u[f](e, a, d) === !1) return;
|
|
955
955
|
}
|
|
956
|
-
|
|
956
|
+
o = o.parent;
|
|
957
957
|
}
|
|
958
958
|
if (r) {
|
|
959
959
|
Nt(), zn(r, null, 10, [
|
|
@@ -964,13 +964,13 @@ function Ei(e, t, i, n = !0) {
|
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
ua(e, i, s, n,
|
|
967
|
+
ua(e, i, s, n, l);
|
|
968
968
|
}
|
|
969
969
|
function ua(e, t, i, n = !0, s = !1) {
|
|
970
970
|
if (s) throw e;
|
|
971
971
|
console.error(e);
|
|
972
972
|
}
|
|
973
|
-
var Ge = [], bt = -1, un = [], Vt = null,
|
|
973
|
+
var Ge = [], bt = -1, un = [], Vt = null, ln = 0, zr = /* @__PURE__ */ Promise.resolve(), si = null;
|
|
974
974
|
function cn(e) {
|
|
975
975
|
const t = si || zr;
|
|
976
976
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
@@ -993,7 +993,7 @@ function Ur() {
|
|
|
993
993
|
si || (si = zr.then(Gr));
|
|
994
994
|
}
|
|
995
995
|
function qr(e) {
|
|
996
|
-
J(e) ? un.push(...e) : Vt && e.id === -1 ? Vt.splice(
|
|
996
|
+
J(e) ? un.push(...e) : Vt && e.id === -1 ? Vt.splice(ln + 1, 0, e) : e.flags & 1 || (un.push(e), e.flags |= 1), Ur();
|
|
997
997
|
}
|
|
998
998
|
function Os(e, t, i = bt + 1) {
|
|
999
999
|
for (; i < Ge.length; i++) {
|
|
@@ -1011,11 +1011,11 @@ function Kr(e) {
|
|
|
1011
1011
|
Vt.push(...t);
|
|
1012
1012
|
return;
|
|
1013
1013
|
}
|
|
1014
|
-
for (Vt = t,
|
|
1015
|
-
const i = Vt[
|
|
1014
|
+
for (Vt = t, ln = 0; ln < Vt.length; ln++) {
|
|
1015
|
+
const i = Vt[ln];
|
|
1016
1016
|
i.flags & 4 && (i.flags &= -2), i.flags & 8 || i(), i.flags &= -2;
|
|
1017
1017
|
}
|
|
1018
|
-
Vt = null,
|
|
1018
|
+
Vt = null, ln = 0;
|
|
1019
1019
|
}
|
|
1020
1020
|
}
|
|
1021
1021
|
var $n = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
@@ -1043,13 +1043,13 @@ function Ce(e, t = je, i) {
|
|
|
1043
1043
|
const n = (...s) => {
|
|
1044
1044
|
n._d && $s(-1);
|
|
1045
1045
|
const r = ri(t);
|
|
1046
|
-
let
|
|
1046
|
+
let l;
|
|
1047
1047
|
try {
|
|
1048
|
-
|
|
1048
|
+
l = e(...s);
|
|
1049
1049
|
} finally {
|
|
1050
1050
|
ri(r), n._d && $s(1);
|
|
1051
1051
|
}
|
|
1052
|
-
return
|
|
1052
|
+
return l;
|
|
1053
1053
|
};
|
|
1054
1054
|
return n._n = !0, n._c = !0, n._d = !0, n;
|
|
1055
1055
|
}
|
|
@@ -1057,16 +1057,16 @@ function Ps(e, t) {
|
|
|
1057
1057
|
if (je === null) return e;
|
|
1058
1058
|
const i = xi(je), n = e.dirs || (e.dirs = []);
|
|
1059
1059
|
for (let s = 0; s < t.length; s++) {
|
|
1060
|
-
let [r,
|
|
1060
|
+
let [r, l, o, a = me] = t[s];
|
|
1061
1061
|
r && (de(r) && (r = {
|
|
1062
1062
|
mounted: r,
|
|
1063
1063
|
updated: r
|
|
1064
|
-
}), r.deep && Rt(
|
|
1064
|
+
}), r.deep && Rt(l), n.push({
|
|
1065
1065
|
dir: r,
|
|
1066
1066
|
instance: i,
|
|
1067
|
-
value:
|
|
1067
|
+
value: l,
|
|
1068
1068
|
oldValue: void 0,
|
|
1069
|
-
arg:
|
|
1069
|
+
arg: o,
|
|
1070
1070
|
modifiers: a
|
|
1071
1071
|
}));
|
|
1072
1072
|
}
|
|
@@ -1074,13 +1074,13 @@ function Ps(e, t) {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
function Gt(e, t, i, n) {
|
|
1076
1076
|
const s = e.dirs, r = t && t.dirs;
|
|
1077
|
-
for (let
|
|
1078
|
-
const
|
|
1079
|
-
r && (
|
|
1080
|
-
let a =
|
|
1077
|
+
for (let l = 0; l < s.length; l++) {
|
|
1078
|
+
const o = s[l];
|
|
1079
|
+
r && (o.oldValue = r[l].value);
|
|
1080
|
+
let a = o.dir[n];
|
|
1081
1081
|
a && (Nt(), xt(a, i, 8, [
|
|
1082
1082
|
e.el,
|
|
1083
|
-
|
|
1083
|
+
o,
|
|
1084
1084
|
e,
|
|
1085
1085
|
t
|
|
1086
1086
|
]), kt());
|
|
@@ -1111,7 +1111,7 @@ function Re(e, t, i) {
|
|
|
1111
1111
|
return pa(e, t, i);
|
|
1112
1112
|
}
|
|
1113
1113
|
function pa(e, t, i = me) {
|
|
1114
|
-
const { immediate: n, deep: s, flush: r, once:
|
|
1114
|
+
const { immediate: n, deep: s, flush: r, once: l } = i, o = rt({}, i), a = t && n || !t && r !== "post";
|
|
1115
1115
|
let d;
|
|
1116
1116
|
if (Hn) {
|
|
1117
1117
|
if (r === "sync") {
|
|
@@ -1124,16 +1124,16 @@ function pa(e, t, i = me) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
const u = nt;
|
|
1127
|
-
|
|
1127
|
+
o.call = (m, S, _) => xt(m, u, S, _);
|
|
1128
1128
|
let f = !1;
|
|
1129
|
-
r === "post" ?
|
|
1129
|
+
r === "post" ? o.scheduler = (m) => {
|
|
1130
1130
|
Ke(m, u && u.suspense);
|
|
1131
|
-
} : r !== "sync" && (f = !0,
|
|
1131
|
+
} : r !== "sync" && (f = !0, o.scheduler = (m, S) => {
|
|
1132
1132
|
S ? m() : vs(m);
|
|
1133
|
-
}),
|
|
1133
|
+
}), o.augmentJob = (m) => {
|
|
1134
1134
|
t && (m.flags |= 4), f && (m.flags |= 2, u && (m.id = u.uid, m.i = u));
|
|
1135
1135
|
};
|
|
1136
|
-
const p = aa(e, t,
|
|
1136
|
+
const p = aa(e, t, o);
|
|
1137
1137
|
return Hn && (d ? d.push(p) : a && p()), p;
|
|
1138
1138
|
}
|
|
1139
1139
|
var Ht = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ Symbol("_vte"), va = (e) => e.__isTeleport, Jt = (e) => e && (e.disabled || e.disabled === ""), ga = (e) => e && (e.defer || e.defer === ""), Rs = (e) => typeof SVGElement < "u" && e instanceof SVGElement, Ls = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, Ji = (e, t) => {
|
|
@@ -1142,14 +1142,14 @@ var Ht = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ Symbol("_vte"), va
|
|
|
1142
1142
|
}, ma = {
|
|
1143
1143
|
name: "Teleport",
|
|
1144
1144
|
__isTeleport: !0,
|
|
1145
|
-
process(e, t, i, n, s, r,
|
|
1145
|
+
process(e, t, i, n, s, r, l, o, a, d) {
|
|
1146
1146
|
const { mc: u, pc: f, pbc: p, o: { insert: m, querySelector: S, createText: _, createComment: v, parentNode: b } } = d, A = Jt(t.props);
|
|
1147
1147
|
let { dynamicChildren: k } = t;
|
|
1148
1148
|
const O = (N, H, z) => {
|
|
1149
|
-
N.shapeFlag & 16 && u(N.children, H, z, s, r,
|
|
1149
|
+
N.shapeFlag & 16 && u(N.children, H, z, s, r, l, o, a);
|
|
1150
1150
|
}, L = (N = t) => {
|
|
1151
1151
|
const H = Jt(N.props), z = N.target = Ji(N.props, S), ce = Zi(z, N, _, m);
|
|
1152
|
-
z && (
|
|
1152
|
+
z && (l !== "svg" && Rs(z) ? l = "svg" : l !== "mathml" && Ls(z) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(z), H || (O(N, z, ce), In(N, !1)));
|
|
1153
1153
|
}, K = (N) => {
|
|
1154
1154
|
const H = () => {
|
|
1155
1155
|
if (Ht.get(N) === H) {
|
|
@@ -1177,20 +1177,20 @@ var Ht = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ Symbol("_vte"), va
|
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
1179
|
t.targetStart = e.targetStart;
|
|
1180
|
-
const z = t.target = e.target, ce = t.targetAnchor = e.targetAnchor,
|
|
1181
|
-
if (
|
|
1182
|
-
|
|
1180
|
+
const z = t.target = e.target, ce = t.targetAnchor = e.targetAnchor, oe = Jt(e.props), X = oe ? i : z, F = oe ? N : ce;
|
|
1181
|
+
if (l === "svg" || Rs(z) ? l = "svg" : (l === "mathml" || Ls(z)) && (l = "mathml"), k ? (p(e.dynamicChildren, k, X, s, r, l, o), ys(e, t, !0)) : a || f(e, t, X, F, s, r, l, o, !1), A)
|
|
1182
|
+
oe ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Jn(t, i, N, d, 1);
|
|
1183
1183
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1184
1184
|
const G = Ji(t.props, S);
|
|
1185
1185
|
G && (t.target = G, Jn(t, G, null, d, 0));
|
|
1186
|
-
} else
|
|
1186
|
+
} else oe && Jn(t, z, ce, d, 1);
|
|
1187
1187
|
In(t, A);
|
|
1188
1188
|
}
|
|
1189
1189
|
},
|
|
1190
1190
|
remove(e, t, i, { um: n, o: { remove: s } }, r) {
|
|
1191
|
-
const { shapeFlag:
|
|
1192
|
-
if (_ && (_.flags |= 8, Ht.delete(e)), f && (s(d), s(u)), r && s(a), !_ && (m || f) &&
|
|
1193
|
-
const b =
|
|
1191
|
+
const { shapeFlag: l, children: o, anchor: a, targetStart: d, targetAnchor: u, target: f, props: p } = e, m = Jt(p), S = r || !m, _ = Ht.get(e);
|
|
1192
|
+
if (_ && (_.flags |= 8, Ht.delete(e)), f && (s(d), s(u)), r && s(a), !_ && (m || f) && l & 16) for (let v = 0; v < o.length; v++) {
|
|
1193
|
+
const b = o[v];
|
|
1194
1194
|
n(b, t, i, S, !!b.dynamicChildren);
|
|
1195
1195
|
}
|
|
1196
1196
|
},
|
|
@@ -1199,34 +1199,34 @@ var Ht = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ Symbol("_vte"), va
|
|
|
1199
1199
|
};
|
|
1200
1200
|
function Jn(e, t, i, { o: { insert: n }, m: s }, r = 2) {
|
|
1201
1201
|
r === 0 && n(e.targetAnchor, t, i);
|
|
1202
|
-
const { el:
|
|
1203
|
-
if (f && n(
|
|
1202
|
+
const { el: l, anchor: o, shapeFlag: a, children: d, props: u } = e, f = r === 2;
|
|
1203
|
+
if (f && n(l, t, i), !Ht.has(e) && (!f || Jt(u)) && a & 16)
|
|
1204
1204
|
for (let p = 0; p < d.length; p++) s(d[p], t, i, 2);
|
|
1205
|
-
f && n(
|
|
1205
|
+
f && n(o, t, i);
|
|
1206
1206
|
}
|
|
1207
|
-
function _a(e, t, i, n, s, r, { o: { nextSibling:
|
|
1207
|
+
function _a(e, t, i, n, s, r, { o: { nextSibling: l, parentNode: o, querySelector: a, insert: d, createText: u } }, f) {
|
|
1208
1208
|
function p(v, b) {
|
|
1209
1209
|
let A = b;
|
|
1210
1210
|
for (; A; ) {
|
|
1211
1211
|
if (A && A.nodeType === 8) {
|
|
1212
1212
|
if (A.data === "teleport start anchor") t.targetStart = A;
|
|
1213
1213
|
else if (A.data === "teleport anchor") {
|
|
1214
|
-
t.targetAnchor = A, v._lpa = t.targetAnchor &&
|
|
1214
|
+
t.targetAnchor = A, v._lpa = t.targetAnchor && l(t.targetAnchor);
|
|
1215
1215
|
break;
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
A =
|
|
1218
|
+
A = l(A);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
function m(v, b) {
|
|
1222
|
-
b.anchor = f(
|
|
1222
|
+
b.anchor = f(l(v), b, o(v), i, n, s, r);
|
|
1223
1223
|
}
|
|
1224
1224
|
const S = t.target = Ji(t.props, a), _ = Jt(t.props);
|
|
1225
1225
|
if (S) {
|
|
1226
1226
|
const v = S._lpa || S.firstChild;
|
|
1227
|
-
t.shapeFlag & 16 && (_ ? (m(e, t), p(S, v), t.targetAnchor || Zi(S, t, u, d,
|
|
1228
|
-
} else _ && t.shapeFlag & 16 && (m(e, t), t.targetStart = e, t.targetAnchor =
|
|
1229
|
-
return t.anchor &&
|
|
1227
|
+
t.shapeFlag & 16 && (_ ? (m(e, t), p(S, v), t.targetAnchor || Zi(S, t, u, d, o(e) === S ? e : null)) : (t.anchor = l(e), p(S, v), t.targetAnchor || Zi(S, t, u, d), f(v && l(v), t, S, i, n, s, r))), In(t, _);
|
|
1228
|
+
} else _ && t.shapeFlag & 16 && (m(e, t), t.targetStart = e, t.targetAnchor = l(e));
|
|
1229
|
+
return t.anchor && l(t.anchor);
|
|
1230
1230
|
}
|
|
1231
1231
|
var Zr = ma;
|
|
1232
1232
|
function In(e, t) {
|
|
@@ -1239,8 +1239,8 @@ function In(e, t) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
1241
1241
|
function Zi(e, t, i, n, s = null) {
|
|
1242
|
-
const r = t.targetStart = i(""),
|
|
1243
|
-
return r[Jr] =
|
|
1242
|
+
const r = t.targetStart = i(""), l = t.targetAnchor = i("");
|
|
1243
|
+
return r[Jr] = l, e && (n(r, e, s), n(l, e, s)), l;
|
|
1244
1244
|
}
|
|
1245
1245
|
var Di = /* @__PURE__ */ Symbol("_leaveCb");
|
|
1246
1246
|
function gs(e, t) {
|
|
@@ -1265,7 +1265,7 @@ function Ns(e, t) {
|
|
|
1265
1265
|
let i;
|
|
1266
1266
|
return !!((i = Object.getOwnPropertyDescriptor(e, t)) && !i.configurable);
|
|
1267
1267
|
}
|
|
1268
|
-
var
|
|
1268
|
+
var li = /* @__PURE__ */ new WeakMap();
|
|
1269
1269
|
function Rn(e, t, i, n, s = !1) {
|
|
1270
1270
|
if (J(e)) {
|
|
1271
1271
|
e.forEach((_, v) => Rn(_, t && (J(t) ? t[v] : t), i, n, s));
|
|
@@ -1275,7 +1275,7 @@ function Rn(e, t, i, n, s = !1) {
|
|
|
1275
1275
|
n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && Rn(e, t, i, n.component.subTree);
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
|
-
const r = n.shapeFlag & 4 ? xi(n.component) : n.el,
|
|
1278
|
+
const r = n.shapeFlag & 4 ? xi(n.component) : n.el, l = s ? null : r, { i: o, r: a } = e, d = t && t.r, u = o.refs === me ? o.refs = {} : o.refs, f = o.setupState, p = /* @__PURE__ */ re(f), m = f === me ? vr : (_) => Ns(u, _) ? !1 : he(p, _), S = (_, v) => !(v && Ns(u, v));
|
|
1279
1279
|
if (d != null && d !== a) {
|
|
1280
1280
|
if (ks(t), Ie(d))
|
|
1281
1281
|
u[d] = null, m(d) && (f[d] = null);
|
|
@@ -1287,7 +1287,7 @@ function Rn(e, t, i, n, s = !1) {
|
|
|
1287
1287
|
if (de(a)) {
|
|
1288
1288
|
Nt();
|
|
1289
1289
|
try {
|
|
1290
|
-
zn(a,
|
|
1290
|
+
zn(a, o, 12, [l, u]);
|
|
1291
1291
|
} finally {
|
|
1292
1292
|
kt();
|
|
1293
1293
|
}
|
|
@@ -1306,61 +1306,61 @@ function Rn(e, t, i, n, s = !1) {
|
|
|
1306
1306
|
const k = [r];
|
|
1307
1307
|
S(a, e.k) && (a.value = k), e.k && (u[e.k] = k);
|
|
1308
1308
|
}
|
|
1309
|
-
} else _ ? (u[a] =
|
|
1309
|
+
} else _ ? (u[a] = l, m(a) && (f[a] = l)) : v && (S(a, e.k) && (a.value = l), e.k && (u[e.k] = l));
|
|
1310
1310
|
};
|
|
1311
|
-
if (
|
|
1311
|
+
if (l) {
|
|
1312
1312
|
const A = () => {
|
|
1313
|
-
b(),
|
|
1313
|
+
b(), li.delete(e);
|
|
1314
1314
|
};
|
|
1315
|
-
A.id = -1,
|
|
1315
|
+
A.id = -1, li.set(e, A), Ke(A, i);
|
|
1316
1316
|
} else
|
|
1317
1317
|
ks(e), b();
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
1321
|
function ks(e) {
|
|
1322
|
-
const t =
|
|
1323
|
-
t && (t.flags |= 8,
|
|
1322
|
+
const t = li.get(e);
|
|
1323
|
+
t && (t.flags |= 8, li.delete(e));
|
|
1324
1324
|
}
|
|
1325
1325
|
var ep = yi().requestIdleCallback || ((e) => setTimeout(e, 1)), tp = yi().cancelIdleCallback || ((e) => clearTimeout(e)), dn = (e) => !!e.type.__asyncLoader, Sa = (e) => e.type.__isKeepAlive;
|
|
1326
1326
|
function Ea(e, t, i = nt, n = !1) {
|
|
1327
1327
|
if (i) {
|
|
1328
|
-
const s = i[e] || (i[e] = []), r = t.__weh || (t.__weh = (...
|
|
1328
|
+
const s = i[e] || (i[e] = []), r = t.__weh || (t.__weh = (...l) => {
|
|
1329
1329
|
Nt();
|
|
1330
|
-
const
|
|
1331
|
-
return
|
|
1330
|
+
const o = Ss(i), a = xt(t, i, e, l);
|
|
1331
|
+
return o(), kt(), a;
|
|
1332
1332
|
});
|
|
1333
1333
|
return n ? s.unshift(r) : s.push(r), r;
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
var Bt = (e) => (t, i = nt) => {
|
|
1337
1337
|
(!Hn || e === "sp") && Ea(e, (...n) => t(...n), i);
|
|
1338
|
-
}, np = Bt("bm"), et = Bt("m"), Ta = Bt("bu"), ip = Bt("u"), sp = Bt("bum"), Xe = Bt("um"), rp = Bt("sp"),
|
|
1338
|
+
}, np = Bt("bm"), et = Bt("m"), Ta = Bt("bu"), ip = Bt("u"), sp = Bt("bum"), Xe = Bt("um"), rp = Bt("sp"), lp = Bt("rtg"), op = Bt("rtc"), wa = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1339
1339
|
function ei(e, t, i, n) {
|
|
1340
1340
|
let s;
|
|
1341
|
-
const r = i && i[n],
|
|
1342
|
-
if (
|
|
1343
|
-
const
|
|
1341
|
+
const r = i && i[n], l = J(e);
|
|
1342
|
+
if (l || Ie(e)) {
|
|
1343
|
+
const o = l && /* @__PURE__ */ en(e);
|
|
1344
1344
|
let a = !1, d = !1;
|
|
1345
|
-
|
|
1345
|
+
o && (a = !/* @__PURE__ */ st(e), d = /* @__PURE__ */ Dt(e), e = bi(e)), s = new Array(e.length);
|
|
1346
1346
|
for (let u = 0, f = e.length; u < f; u++) s[u] = t(a ? d ? hn(vt(e[u])) : vt(e[u]) : e[u], u, void 0, r && r[u]);
|
|
1347
1347
|
} else if (typeof e == "number") {
|
|
1348
1348
|
s = new Array(e);
|
|
1349
|
-
for (let
|
|
1349
|
+
for (let o = 0; o < e; o++) s[o] = t(o + 1, o, void 0, r && r[o]);
|
|
1350
1350
|
} else if (ge(e))
|
|
1351
|
-
if (e[Symbol.iterator]) s = Array.from(e, (
|
|
1351
|
+
if (e[Symbol.iterator]) s = Array.from(e, (o, a) => t(o, a, void 0, r && r[a]));
|
|
1352
1352
|
else {
|
|
1353
|
-
const
|
|
1354
|
-
s = new Array(
|
|
1355
|
-
for (let a = 0, d =
|
|
1356
|
-
const u =
|
|
1353
|
+
const o = Object.keys(e);
|
|
1354
|
+
s = new Array(o.length);
|
|
1355
|
+
for (let a = 0, d = o.length; a < d; a++) {
|
|
1356
|
+
const u = o[a];
|
|
1357
1357
|
s[a] = t(e[u], u, a, r && r[a]);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
else s = [];
|
|
1361
1361
|
return i && (i[n] = s), s;
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function oi(e, t) {
|
|
1364
1364
|
for (let i = 0; i < t.length; i++) {
|
|
1365
1365
|
const n = t[i];
|
|
1366
1366
|
if (J(n)) for (let s = 0; s < n.length; s++) e[n[s].name] = n[s].fn;
|
|
@@ -1378,13 +1378,13 @@ function ne(e, t, i = {}, n, s) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
let r = e[t];
|
|
1380
1380
|
r && r._c && (r._d = !1), $();
|
|
1381
|
-
const
|
|
1381
|
+
const l = r && Qr(r(i)), o = i.key || l && l.key, a = gt(ye, { key: (o && !lt(o) ? o : `_${t}`) + (!l && n ? "_fb" : "") }, l || (n ? n() : []), l && e._ === 1 ? 64 : -2);
|
|
1382
1382
|
return !s && a.scopeId && (a.slotScopeIds = [a.scopeId + "-s"]), r && r._c && (r._d = !0), a;
|
|
1383
1383
|
}
|
|
1384
1384
|
function Qr(e) {
|
|
1385
1385
|
return e.some((t) => bs(t) ? !(t.type === Ft || t.type === ye && !Qr(t.children)) : !0) ? e : null;
|
|
1386
1386
|
}
|
|
1387
|
-
var Qi = (e) => e ?
|
|
1387
|
+
var Qi = (e) => e ? gl(e) ? xi(e) : Qi(e.parent) : null, Ln = /* @__PURE__ */ rt(/* @__PURE__ */ Object.create(null), {
|
|
1388
1388
|
$: (e) => e,
|
|
1389
1389
|
$el: (e) => e.vnode.el,
|
|
1390
1390
|
$data: (e) => e.data,
|
|
@@ -1405,9 +1405,9 @@ var Qi = (e) => e ? mo(e) ? xi(e) : Qi(e.parent) : null, Ln = /* @__PURE__ */ rt
|
|
|
1405
1405
|
}), Fi = (e, t) => e !== me && !e.__isScriptSetup && he(e, t), Ca = {
|
|
1406
1406
|
get({ _: e }, t) {
|
|
1407
1407
|
if (t === "__v_skip") return !0;
|
|
1408
|
-
const { ctx: i, setupState: n, data: s, props: r, accessCache:
|
|
1408
|
+
const { ctx: i, setupState: n, data: s, props: r, accessCache: l, type: o, appContext: a } = e;
|
|
1409
1409
|
if (t[0] !== "$") {
|
|
1410
|
-
const p =
|
|
1410
|
+
const p = l[t];
|
|
1411
1411
|
if (p !== void 0) switch (p) {
|
|
1412
1412
|
case 1:
|
|
1413
1413
|
return n[t];
|
|
@@ -1420,43 +1420,43 @@ var Qi = (e) => e ? mo(e) ? xi(e) : Qi(e.parent) : null, Ln = /* @__PURE__ */ rt
|
|
|
1420
1420
|
}
|
|
1421
1421
|
else {
|
|
1422
1422
|
if (Fi(n, t))
|
|
1423
|
-
return
|
|
1423
|
+
return l[t] = 1, n[t];
|
|
1424
1424
|
if (he(r, t))
|
|
1425
|
-
return
|
|
1425
|
+
return l[t] = 3, r[t];
|
|
1426
1426
|
if (i !== me && he(i, t))
|
|
1427
|
-
return
|
|
1428
|
-
|
|
1427
|
+
return l[t] = 4, i[t];
|
|
1428
|
+
l[t] = 0;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
const d = Ln[t];
|
|
1432
1432
|
let u, f;
|
|
1433
1433
|
if (d)
|
|
1434
1434
|
return t === "$attrs" && Ve(e.attrs, "get", ""), d(e);
|
|
1435
|
-
if ((u =
|
|
1435
|
+
if ((u = o.__cssModules) && (u = u[t])) return u;
|
|
1436
1436
|
if (i !== me && he(i, t))
|
|
1437
|
-
return
|
|
1437
|
+
return l[t] = 4, i[t];
|
|
1438
1438
|
if (f = a.config.globalProperties, he(f, t)) return f[t];
|
|
1439
1439
|
},
|
|
1440
1440
|
set({ _: e }, t, i) {
|
|
1441
1441
|
const { data: n, setupState: s, ctx: r } = e;
|
|
1442
1442
|
return Fi(s, t) ? (s[t] = i, !0) : he(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = i, !0);
|
|
1443
1443
|
},
|
|
1444
|
-
has({ _: { data: e, setupState: t, accessCache: i, ctx: n, appContext: s, props: r, type:
|
|
1444
|
+
has({ _: { data: e, setupState: t, accessCache: i, ctx: n, appContext: s, props: r, type: l } }, o) {
|
|
1445
1445
|
let a;
|
|
1446
|
-
return !!(i[
|
|
1446
|
+
return !!(i[o] || Fi(t, o) || he(r, o) || he(n, o) || he(Ln, o) || he(s.config.globalProperties, o) || (a = l.__cssModules) && a[o]);
|
|
1447
1447
|
},
|
|
1448
1448
|
defineProperty(e, t, i) {
|
|
1449
1449
|
return i.get != null ? e._.accessCache[t] = 0 : he(i, "value") && this.set(e, t, i.value, null), Reflect.defineProperty(e, t, i);
|
|
1450
1450
|
}
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1452
|
+
function el() {
|
|
1453
1453
|
return xa("useSlots").slots;
|
|
1454
1454
|
}
|
|
1455
1455
|
function xa(e) {
|
|
1456
1456
|
const t = Ci();
|
|
1457
|
-
return t.setupContext || (t.setupContext =
|
|
1457
|
+
return t.setupContext || (t.setupContext = _l(t));
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function tl() {
|
|
1460
1460
|
return {
|
|
1461
1461
|
app: null,
|
|
1462
1462
|
config: {
|
|
@@ -1481,7 +1481,7 @@ var Ia = 0;
|
|
|
1481
1481
|
function Aa(e, t) {
|
|
1482
1482
|
return function(n, s = null) {
|
|
1483
1483
|
de(n) || (n = rt({}, n)), s != null && !ge(s) && (s = null);
|
|
1484
|
-
const r =
|
|
1484
|
+
const r = tl(), l = /* @__PURE__ */ new WeakSet(), o = [];
|
|
1485
1485
|
let a = !1;
|
|
1486
1486
|
const d = r.app = {
|
|
1487
1487
|
_uid: Ia++,
|
|
@@ -1497,7 +1497,7 @@ function Aa(e, t) {
|
|
|
1497
1497
|
set config(u) {
|
|
1498
1498
|
},
|
|
1499
1499
|
use(u, ...f) {
|
|
1500
|
-
return
|
|
1500
|
+
return l.has(u) || (u && de(u.install) ? (l.add(u), u.install(d, ...f)) : de(u) && (l.add(u), u(d, ...f))), d;
|
|
1501
1501
|
},
|
|
1502
1502
|
mixin(u) {
|
|
1503
1503
|
return d;
|
|
@@ -1515,10 +1515,10 @@ function Aa(e, t) {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
},
|
|
1517
1517
|
onUnmount(u) {
|
|
1518
|
-
|
|
1518
|
+
o.push(u);
|
|
1519
1519
|
},
|
|
1520
1520
|
unmount() {
|
|
1521
|
-
a && (xt(
|
|
1521
|
+
a && (xt(o, d._instance, 16), e(null, d._container), delete d._container.__vue_app__);
|
|
1522
1522
|
},
|
|
1523
1523
|
provide(u, f) {
|
|
1524
1524
|
return r.provides[u] = f, d;
|
|
@@ -1541,41 +1541,41 @@ function Oa(e, t, ...i) {
|
|
|
1541
1541
|
if (e.isUnmounted) return;
|
|
1542
1542
|
const n = e.vnode.props || me;
|
|
1543
1543
|
let s = i;
|
|
1544
|
-
const r = t.startsWith("update:"),
|
|
1545
|
-
|
|
1546
|
-
let
|
|
1547
|
-
!a && r && (a = n[
|
|
1548
|
-
const d = n[
|
|
1544
|
+
const r = t.startsWith("update:"), l = r && Ma(n, t.slice(7));
|
|
1545
|
+
l && (l.trim && (s = i.map((u) => Ie(u) ? u.trim() : u)), l.number && (s = i.map(wo)));
|
|
1546
|
+
let o, a = n[o = Oi(t)] || n[o = Oi(ht(t))];
|
|
1547
|
+
!a && r && (a = n[o = Oi(tn(t))]), a && xt(a, e, 6, s);
|
|
1548
|
+
const d = n[o + "Once"];
|
|
1549
1549
|
if (d) {
|
|
1550
1550
|
if (!e.emitted) e.emitted = {};
|
|
1551
|
-
else if (e.emitted[
|
|
1552
|
-
e.emitted[
|
|
1551
|
+
else if (e.emitted[o]) return;
|
|
1552
|
+
e.emitted[o] = !0, xt(d, e, 6, s);
|
|
1553
1553
|
}
|
|
1554
1554
|
}
|
|
1555
1555
|
function Pa(e, t, i = !1) {
|
|
1556
1556
|
const n = t.emitsCache, s = n.get(e);
|
|
1557
1557
|
if (s !== void 0) return s;
|
|
1558
1558
|
const r = e.emits;
|
|
1559
|
-
let
|
|
1560
|
-
return r ? (J(r) ? r.forEach((
|
|
1559
|
+
let l = {};
|
|
1560
|
+
return r ? (J(r) ? r.forEach((o) => l[o] = null) : rt(l, r), ge(e) && n.set(e, l), l) : (ge(e) && n.set(e, null), null);
|
|
1561
1561
|
}
|
|
1562
1562
|
function Ti(e, t) {
|
|
1563
1563
|
return !e || !vi(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), he(e, t[0].toLowerCase() + t.slice(1)) || he(e, tn(t)) || he(e, t));
|
|
1564
1564
|
}
|
|
1565
1565
|
function Bi(e) {
|
|
1566
|
-
const { type: t, vnode: i, proxy: n, withProxy: s, propsOptions: [r], slots:
|
|
1566
|
+
const { type: t, vnode: i, proxy: n, withProxy: s, propsOptions: [r], slots: l, attrs: o, emit: a, render: d, renderCache: u, props: f, data: p, setupState: m, ctx: S, inheritAttrs: _ } = e, v = ri(e);
|
|
1567
1567
|
let b, A;
|
|
1568
1568
|
try {
|
|
1569
1569
|
if (i.shapeFlag & 4) {
|
|
1570
1570
|
const O = s || n, L = O;
|
|
1571
|
-
b = Tt(d.call(L, O, u, f, m, p, S)), A =
|
|
1571
|
+
b = Tt(d.call(L, O, u, f, m, p, S)), A = o;
|
|
1572
1572
|
} else {
|
|
1573
1573
|
const O = t;
|
|
1574
1574
|
b = Tt(O.length > 1 ? O(f, {
|
|
1575
|
-
attrs:
|
|
1576
|
-
slots:
|
|
1575
|
+
attrs: o,
|
|
1576
|
+
slots: l,
|
|
1577
1577
|
emit: a
|
|
1578
|
-
}) : O(f, null)), A = t.props ?
|
|
1578
|
+
}) : O(f, null)), A = t.props ? o : Ra(o);
|
|
1579
1579
|
}
|
|
1580
1580
|
} catch (O) {
|
|
1581
1581
|
kn.length = 0, Ei(O, e, 1), b = Ne(Ft);
|
|
@@ -1597,21 +1597,21 @@ var Ra = (e) => {
|
|
|
1597
1597
|
return i;
|
|
1598
1598
|
};
|
|
1599
1599
|
function Na(e, t, i) {
|
|
1600
|
-
const { props: n, children: s, component: r } = e, { props:
|
|
1600
|
+
const { props: n, children: s, component: r } = e, { props: l, children: o, patchFlag: a } = t, d = r.emitsOptions;
|
|
1601
1601
|
if (t.dirs || t.transition) return !0;
|
|
1602
1602
|
if (i && a >= 0) {
|
|
1603
1603
|
if (a & 1024) return !0;
|
|
1604
1604
|
if (a & 16)
|
|
1605
|
-
return n ? Ds(n,
|
|
1605
|
+
return n ? Ds(n, l, d) : !!l;
|
|
1606
1606
|
if (a & 8) {
|
|
1607
1607
|
const u = t.dynamicProps;
|
|
1608
1608
|
for (let f = 0; f < u.length; f++) {
|
|
1609
1609
|
const p = u[f];
|
|
1610
|
-
if (
|
|
1610
|
+
if (nl(l, n, p) && !Ti(d, p)) return !0;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
} else
|
|
1614
|
-
return (s ||
|
|
1614
|
+
return (s || o) && (!o || !o.$stable) ? !0 : n === l ? !1 : n ? l ? Ds(n, l, d) : !0 : !!l;
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
}
|
|
1617
1617
|
function Ds(e, t, i) {
|
|
@@ -1619,11 +1619,11 @@ function Ds(e, t, i) {
|
|
|
1619
1619
|
if (n.length !== Object.keys(e).length) return !0;
|
|
1620
1620
|
for (let s = 0; s < n.length; s++) {
|
|
1621
1621
|
const r = n[s];
|
|
1622
|
-
if (
|
|
1622
|
+
if (nl(t, e, r) && !Ti(i, r)) return !0;
|
|
1623
1623
|
}
|
|
1624
1624
|
return !1;
|
|
1625
1625
|
}
|
|
1626
|
-
function
|
|
1626
|
+
function nl(e, t, i) {
|
|
1627
1627
|
const n = e[i], s = t[i];
|
|
1628
1628
|
return i === "style" && ge(n) && ge(s) ? !as(n, s) : n !== s;
|
|
1629
1629
|
}
|
|
@@ -1636,18 +1636,18 @@ function ka({ vnode: e, parent: t, suspense: i }, n) {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
i && i.activeBranch === e && (i.vnode.el = n);
|
|
1638
1638
|
}
|
|
1639
|
-
var
|
|
1639
|
+
var il = {}, sl = () => Object.create(il), rl = (e) => Object.getPrototypeOf(e) === il;
|
|
1640
1640
|
function Da(e, t, i, n = !1) {
|
|
1641
|
-
const s = {}, r =
|
|
1642
|
-
e.propsDefaults = /* @__PURE__ */ Object.create(null),
|
|
1643
|
-
for (const
|
|
1644
|
-
i ? e.props = n ? s : /* @__PURE__ */
|
|
1641
|
+
const s = {}, r = sl();
|
|
1642
|
+
e.propsDefaults = /* @__PURE__ */ Object.create(null), ll(e, t, s, r);
|
|
1643
|
+
for (const l in e.propsOptions[0]) l in s || (s[l] = void 0);
|
|
1644
|
+
i ? e.props = n ? s : /* @__PURE__ */ Jo(s) : e.type.props ? e.props = s : e.props = r, e.attrs = r;
|
|
1645
1645
|
}
|
|
1646
1646
|
function Fa(e, t, i, n) {
|
|
1647
|
-
const { props: s, attrs: r, vnode: { patchFlag:
|
|
1647
|
+
const { props: s, attrs: r, vnode: { patchFlag: l } } = e, o = /* @__PURE__ */ re(s), [a] = e.propsOptions;
|
|
1648
1648
|
let d = !1;
|
|
1649
|
-
if ((n ||
|
|
1650
|
-
if (
|
|
1649
|
+
if ((n || l > 0) && !(l & 16)) {
|
|
1650
|
+
if (l & 8) {
|
|
1651
1651
|
const u = e.vnode.dynamicProps;
|
|
1652
1652
|
for (let f = 0; f < u.length; f++) {
|
|
1653
1653
|
let p = u[f];
|
|
@@ -1658,45 +1658,45 @@ function Fa(e, t, i, n) {
|
|
|
1658
1658
|
m !== r[p] && (r[p] = m, d = !0);
|
|
1659
1659
|
else {
|
|
1660
1660
|
const S = ht(p);
|
|
1661
|
-
s[S] = es(a,
|
|
1661
|
+
s[S] = es(a, o, S, m, e, !1);
|
|
1662
1662
|
}
|
|
1663
1663
|
else m !== r[p] && (r[p] = m, d = !0);
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
} else {
|
|
1667
|
-
|
|
1667
|
+
ll(e, t, s, r) && (d = !0);
|
|
1668
1668
|
let u;
|
|
1669
|
-
for (const f in
|
|
1670
|
-
if (r !==
|
|
1669
|
+
for (const f in o) (!t || !he(t, f) && ((u = tn(f)) === f || !he(t, u))) && (a ? i && (i[f] !== void 0 || i[u] !== void 0) && (s[f] = es(a, o, f, void 0, e, !0)) : delete s[f]);
|
|
1670
|
+
if (r !== o)
|
|
1671
1671
|
for (const f in r) (!t || !he(t, f)) && (delete r[f], d = !0);
|
|
1672
1672
|
}
|
|
1673
1673
|
d && Pt(e.attrs, "set", "");
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function ll(e, t, i, n) {
|
|
1676
1676
|
const [s, r] = e.propsOptions;
|
|
1677
|
-
let
|
|
1677
|
+
let l = !1, o;
|
|
1678
1678
|
if (t) for (let a in t) {
|
|
1679
1679
|
if (Mn(a)) continue;
|
|
1680
1680
|
const d = t[a];
|
|
1681
1681
|
let u;
|
|
1682
|
-
s && he(s, u = ht(a)) ? !r || !r.includes(u) ? i[u] = d : (
|
|
1682
|
+
s && he(s, u = ht(a)) ? !r || !r.includes(u) ? i[u] = d : (o || (o = {}))[u] = d : Ti(e.emitsOptions, a) || (!(a in n) || d !== n[a]) && (n[a] = d, l = !0);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (r) {
|
|
1685
|
-
const a = /* @__PURE__ */ re(i), d =
|
|
1685
|
+
const a = /* @__PURE__ */ re(i), d = o || me;
|
|
1686
1686
|
for (let u = 0; u < r.length; u++) {
|
|
1687
1687
|
const f = r[u];
|
|
1688
1688
|
i[f] = es(s, a, f, d[f], e, !he(d, f));
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
|
-
return
|
|
1691
|
+
return l;
|
|
1692
1692
|
}
|
|
1693
1693
|
function es(e, t, i, n, s, r) {
|
|
1694
|
-
const
|
|
1695
|
-
if (
|
|
1696
|
-
const
|
|
1697
|
-
if (
|
|
1698
|
-
const a =
|
|
1699
|
-
if (
|
|
1694
|
+
const l = e[i];
|
|
1695
|
+
if (l != null) {
|
|
1696
|
+
const o = he(l, "default");
|
|
1697
|
+
if (o && n === void 0) {
|
|
1698
|
+
const a = l.default;
|
|
1699
|
+
if (l.type !== Function && !l.skipFactory && de(a)) {
|
|
1700
1700
|
const { propsDefaults: d } = s;
|
|
1701
1701
|
if (i in d) n = d[i];
|
|
1702
1702
|
else {
|
|
@@ -1706,24 +1706,24 @@ function es(e, t, i, n, s, r) {
|
|
|
1706
1706
|
} else n = a;
|
|
1707
1707
|
s.ce && s.ce._setProp(i, n);
|
|
1708
1708
|
}
|
|
1709
|
-
|
|
1709
|
+
l[0] && (r && !o ? n = !1 : l[1] && (n === "" || n === tn(i)) && (n = !0));
|
|
1710
1710
|
}
|
|
1711
1711
|
return n;
|
|
1712
1712
|
}
|
|
1713
1713
|
function Ba(e, t, i = !1) {
|
|
1714
1714
|
const n = t.propsCache, s = n.get(e);
|
|
1715
1715
|
if (s) return s;
|
|
1716
|
-
const r = e.props,
|
|
1716
|
+
const r = e.props, l = {}, o = [];
|
|
1717
1717
|
if (!r)
|
|
1718
|
-
return ge(e) && n.set(e,
|
|
1718
|
+
return ge(e) && n.set(e, on), on;
|
|
1719
1719
|
if (J(r)) for (let d = 0; d < r.length; d++) {
|
|
1720
1720
|
const u = ht(r[d]);
|
|
1721
|
-
Fs(u) && (
|
|
1721
|
+
Fs(u) && (l[u] = me);
|
|
1722
1722
|
}
|
|
1723
1723
|
else if (r) for (const d in r) {
|
|
1724
1724
|
const u = ht(d);
|
|
1725
1725
|
if (Fs(u)) {
|
|
1726
|
-
const f = r[d], p =
|
|
1726
|
+
const f = r[d], p = l[u] = J(f) || de(f) ? { type: f } : rt({}, f), m = p.type;
|
|
1727
1727
|
let S = !1, _ = !0;
|
|
1728
1728
|
if (J(m)) for (let v = 0; v < m.length; ++v) {
|
|
1729
1729
|
const b = m[v], A = de(b) && b.name;
|
|
@@ -1733,10 +1733,10 @@ function Ba(e, t, i = !1) {
|
|
|
1733
1733
|
} else A === "String" && (_ = !1);
|
|
1734
1734
|
}
|
|
1735
1735
|
else S = de(m) && m.name === "Boolean";
|
|
1736
|
-
p[0] = S, p[1] = _, (S || he(p, "default")) &&
|
|
1736
|
+
p[0] = S, p[1] = _, (S || he(p, "default")) && o.push(u);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
|
-
const a = [
|
|
1739
|
+
const a = [l, o];
|
|
1740
1740
|
return ge(e) && n.set(e, a), a;
|
|
1741
1741
|
}
|
|
1742
1742
|
function Fs(e) {
|
|
@@ -1746,37 +1746,37 @@ var ms = (e) => e === "_" || e === "_ctx" || e === "$stable", _s = (e) => J(e) ?
|
|
|
1746
1746
|
if (t._n) return t;
|
|
1747
1747
|
const n = Ce((...s) => _s(t(...s)), i);
|
|
1748
1748
|
return n._c = !1, n;
|
|
1749
|
-
},
|
|
1749
|
+
}, ol = (e, t, i) => {
|
|
1750
1750
|
const n = e._ctx;
|
|
1751
1751
|
for (const s in e) {
|
|
1752
1752
|
if (ms(s)) continue;
|
|
1753
1753
|
const r = e[s];
|
|
1754
1754
|
if (de(r)) t[s] = $a(s, r, n);
|
|
1755
1755
|
else if (r != null) {
|
|
1756
|
-
const
|
|
1757
|
-
t[s] = () =>
|
|
1756
|
+
const l = _s(r);
|
|
1757
|
+
t[s] = () => l;
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
},
|
|
1760
|
+
}, al = (e, t) => {
|
|
1761
1761
|
const i = _s(t);
|
|
1762
1762
|
e.slots.default = () => i;
|
|
1763
|
-
},
|
|
1763
|
+
}, ul = (e, t, i) => {
|
|
1764
1764
|
for (const n in t) (i || !ms(n)) && (e[n] = t[n]);
|
|
1765
1765
|
}, Wa = (e, t, i) => {
|
|
1766
|
-
const n = e.slots =
|
|
1766
|
+
const n = e.slots = sl();
|
|
1767
1767
|
if (e.vnode.shapeFlag & 32) {
|
|
1768
1768
|
const s = t._;
|
|
1769
|
-
s ? (
|
|
1770
|
-
} else t &&
|
|
1769
|
+
s ? (ul(n, t, i), i && Er(n, "_", s, !0)) : ol(t, n);
|
|
1770
|
+
} else t && al(e, t);
|
|
1771
1771
|
}, Ha = (e, t, i) => {
|
|
1772
1772
|
const { vnode: n, slots: s } = e;
|
|
1773
|
-
let r = !0,
|
|
1773
|
+
let r = !0, l = me;
|
|
1774
1774
|
if (n.shapeFlag & 32) {
|
|
1775
|
-
const
|
|
1776
|
-
|
|
1777
|
-
} else t && (
|
|
1775
|
+
const o = t._;
|
|
1776
|
+
o ? i && o === 1 ? r = !1 : ul(s, t, i) : (r = !t.$stable, ol(t, s)), l = t;
|
|
1777
|
+
} else t && (al(e, t), l = { default: 1 });
|
|
1778
1778
|
if (r)
|
|
1779
|
-
for (const
|
|
1779
|
+
for (const o in s) !ms(o) && l[o] == null && delete s[o];
|
|
1780
1780
|
}, Ke = qa;
|
|
1781
1781
|
function Va(e) {
|
|
1782
1782
|
return ja(e);
|
|
@@ -1784,9 +1784,9 @@ function Va(e) {
|
|
|
1784
1784
|
function ja(e, t) {
|
|
1785
1785
|
const i = yi();
|
|
1786
1786
|
i.__VUE__ = !0;
|
|
1787
|
-
const { insert: n, remove: s, patchProp: r, createElement:
|
|
1787
|
+
const { insert: n, remove: s, patchProp: r, createElement: l, createText: o, createComment: a, setText: d, setElementText: u, parentNode: f, nextSibling: p, setScopeId: m = jt, insertStaticContent: S } = e, _ = (c, h, g, x = null, T = null, C = null, D = void 0, R = null, M = !!h.dynamicChildren) => {
|
|
1788
1788
|
if (c === h) return;
|
|
1789
|
-
c && !Tn(c, h) && (x =
|
|
1789
|
+
c && !Tn(c, h) && (x = ot(c), $e(c, T, C, !0), c = null), h.patchFlag === -2 && (M = !1, h.dynamicChildren = null);
|
|
1790
1790
|
const { type: w, ref: W, shapeFlag: B } = h;
|
|
1791
1791
|
switch (w) {
|
|
1792
1792
|
case wi:
|
|
@@ -1806,7 +1806,7 @@ function ja(e, t) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
W != null && T ? Rn(W, c && c.ref, C, h || c, !h) : W == null && c && c.ref != null && Rn(c.ref, null, C, c, !0);
|
|
1808
1808
|
}, v = (c, h, g, x) => {
|
|
1809
|
-
if (c == null) n(h.el =
|
|
1809
|
+
if (c == null) n(h.el = o(h.children), g, x);
|
|
1810
1810
|
else {
|
|
1811
1811
|
const T = h.el = c.el;
|
|
1812
1812
|
h.children !== c.children && d(T, h.children);
|
|
@@ -1838,7 +1838,7 @@ function ja(e, t) {
|
|
|
1838
1838
|
}, K = (c, h, g, x, T, C, D, R) => {
|
|
1839
1839
|
let M, w;
|
|
1840
1840
|
const { props: W, shapeFlag: B, transition: V, dirs: q } = c;
|
|
1841
|
-
if (M = c.el =
|
|
1841
|
+
if (M = c.el = l(c.type, C, W && W.is, W), B & 8 ? u(M, c.children) : B & 16 && H(c.children, M, null, x, T, $i(c, C), D, R), q && Gt(c, null, x, "created"), N(M, c, c.scopeId, D, x), W) {
|
|
1842
1842
|
for (const ae in W) ae !== "value" && !Mn(ae) && r(M, ae, null, W[ae], C, x);
|
|
1843
1843
|
"value" in W && r(M, "value", null, W.value, C), (w = W.onVnodeBeforeMount) && yt(w, x, c);
|
|
1844
1844
|
}
|
|
@@ -1851,7 +1851,7 @@ function ja(e, t) {
|
|
|
1851
1851
|
if (g && m(c, g), x) for (let C = 0; C < x.length; C++) m(c, x[C]);
|
|
1852
1852
|
if (T) {
|
|
1853
1853
|
let C = T.subTree;
|
|
1854
|
-
if (h === C ||
|
|
1854
|
+
if (h === C || fl(C.type) && (C.ssContent === h || C.ssFallback === h)) {
|
|
1855
1855
|
const D = T.vnode;
|
|
1856
1856
|
N(c, D, D.scopeId, D.slotScopeIds, T.parent);
|
|
1857
1857
|
}
|
|
@@ -1868,7 +1868,7 @@ function ja(e, t) {
|
|
|
1868
1868
|
const B = c.props || me, V = h.props || me;
|
|
1869
1869
|
let q;
|
|
1870
1870
|
if (g && Yt(g, !1), (q = V.onVnodeBeforeUpdate) && yt(q, g, h, c), W && Gt(h, c, g, "beforeUpdate"), g && Yt(g, !0), w && (!c.dynamicChildren || c.dynamicChildren.length !== w.length) && (M = 0, D = !1, w = null), (B.innerHTML && V.innerHTML == null || B.textContent && V.textContent == null) && u(R, ""), w ? ce(c.dynamicChildren, w, R, g, x, $i(h, T), C) : D || Fe(c, h, R, null, g, x, $i(h, T), C, !1), M > 0) {
|
|
1871
|
-
if (M & 16)
|
|
1871
|
+
if (M & 16) oe(R, B, V, g, T);
|
|
1872
1872
|
else if (M & 2 && B.class !== V.class && r(R, "class", null, V.class, T), M & 4 && r(R, "style", B.style, V.style, T), M & 8) {
|
|
1873
1873
|
const Z = h.dynamicProps;
|
|
1874
1874
|
for (let ae = 0; ae < Z.length; ae++) {
|
|
@@ -1877,7 +1877,7 @@ function ja(e, t) {
|
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
M & 1 && c.children !== h.children && u(R, h.children);
|
|
1880
|
-
} else !D && w == null &&
|
|
1880
|
+
} else !D && w == null && oe(R, B, V, g, T);
|
|
1881
1881
|
((q = V.onVnodeUpdated) || W) && Ke(() => {
|
|
1882
1882
|
q && yt(q, g, h, c), W && Gt(h, c, g, "updated");
|
|
1883
1883
|
}, x);
|
|
@@ -1886,7 +1886,7 @@ function ja(e, t) {
|
|
|
1886
1886
|
const M = c[R], w = h[R], W = M.el && (M.type === ye || !Tn(M, w) || M.shapeFlag & 198) ? f(M.el) : g;
|
|
1887
1887
|
_(M, w, W, null, x, T, C, D, !0);
|
|
1888
1888
|
}
|
|
1889
|
-
},
|
|
1889
|
+
}, oe = (c, h, g, x, T) => {
|
|
1890
1890
|
if (h !== g) {
|
|
1891
1891
|
if (h !== me)
|
|
1892
1892
|
for (const C in h) !Mn(C) && !(C in g) && r(c, C, h[C], null, T, x);
|
|
@@ -1898,7 +1898,7 @@ function ja(e, t) {
|
|
|
1898
1898
|
"value" in g && r(c, "value", h.value, g.value, T);
|
|
1899
1899
|
}
|
|
1900
1900
|
}, X = (c, h, g, x, T, C, D, R, M) => {
|
|
1901
|
-
const w = h.el = c ? c.el :
|
|
1901
|
+
const w = h.el = c ? c.el : o(""), W = h.anchor = c ? c.anchor : o("");
|
|
1902
1902
|
let { patchFlag: B, dynamicChildren: V, slotScopeIds: q } = h;
|
|
1903
1903
|
q && (R = R ? R.concat(q) : q), c == null ? (n(w, g, x), n(W, g, x), H(h.children || [], g, W, T, C, D, R, M)) : B > 0 && B & 64 && V && c.dynamicChildren && c.dynamicChildren.length === V.length ? (ce(c.dynamicChildren, V, g, T, C, D, R), (h.key != null || T && h === T.subTree) && ys(c, h, !0)) : Fe(c, h, g, W, T, C, D, R, M);
|
|
1904
1904
|
}, F = (c, h, g, x, T, C, D, R, M) => {
|
|
@@ -1926,7 +1926,7 @@ function ja(e, t) {
|
|
|
1926
1926
|
if (c.isMounted) {
|
|
1927
1927
|
let { next: B, bu: V, u: q, parent: Z, vnode: ae } = c;
|
|
1928
1928
|
{
|
|
1929
|
-
const Oe =
|
|
1929
|
+
const Oe = cl(c);
|
|
1930
1930
|
if (Oe) {
|
|
1931
1931
|
B && (B.el = ae.el, ee(c, B, D)), Oe.asyncDep.then(() => {
|
|
1932
1932
|
Ke(() => {
|
|
@@ -1939,7 +1939,7 @@ function ja(e, t) {
|
|
|
1939
1939
|
let se = B, ve;
|
|
1940
1940
|
Yt(c, !1), B ? (B.el = ae.el, ee(c, B, D)) : B = ae, V && Pi(V), (ve = B.props && B.props.onVnodeBeforeUpdate) && yt(ve, Z, B, ae), Yt(c, !0);
|
|
1941
1941
|
const _e = Bi(c), He = c.subTree;
|
|
1942
|
-
c.subTree = _e, _(He, _e, f(He.el),
|
|
1942
|
+
c.subTree = _e, _(He, _e, f(He.el), ot(He), c, T, C), B.el = _e.el, se === null && ka(c, _e.el), q && Ke(q, T), (ve = B.props && B.props.onVnodeUpdated) && Ke(() => yt(ve, Z, B, ae), T);
|
|
1943
1943
|
} else {
|
|
1944
1944
|
let B;
|
|
1945
1945
|
const { el: V, props: q } = h, { bm: Z, m: ae, parent: se, root: ve, type: _e } = c, He = dn(h);
|
|
@@ -1982,7 +1982,7 @@ function ja(e, t) {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
q & 8 ? (W & 16 && ze(w, T, C), B !== w && u(g, B)) : W & 16 ? q & 16 ? Be(w, B, g, x, T, C, D, R, M) : ze(w, T, C, !0) : (W & 8 && u(g, ""), q & 16 && H(B, g, x, T, C, D, R, M));
|
|
1984
1984
|
}, Je = (c, h, g, x, T, C, D, R, M) => {
|
|
1985
|
-
c = c ||
|
|
1985
|
+
c = c || on, h = h || on;
|
|
1986
1986
|
const w = c.length, W = h.length, B = Math.min(w, W);
|
|
1987
1987
|
let V;
|
|
1988
1988
|
for (V = 0; V < B; V++) {
|
|
@@ -2039,9 +2039,9 @@ function ja(e, t) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
Ee === void 0 ? $e(Se, T, C, !0) : (Ae[Ee - Z] = w + 1, Ee >= Oe ? Oe = Ee : He = !0, _(Se, h[Ee], g, null, T, C, D, R, M), ve++);
|
|
2041
2041
|
}
|
|
2042
|
-
const $t = He ? Ua(Ae) :
|
|
2042
|
+
const $t = He ? Ua(Ae) : on;
|
|
2043
2043
|
for (se = $t.length - 1, w = _e - 1; w >= 0; w--) {
|
|
2044
|
-
const Se = Z + w, Ee = h[Se], qe = h[Se + 1], Wt = Se + 1 < W ? qe.el ||
|
|
2044
|
+
const Se = Z + w, Ee = h[Se], qe = h[Se + 1], Wt = Se + 1 < W ? qe.el || dl(qe) : x;
|
|
2045
2045
|
Ae[w] === 0 ? _(null, Ee, g, Wt, T, C, D, R, M) : He && (se < 0 || w !== $t[se] ? ke(Ee, g, Wt, 2) : se--);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
@@ -2133,8 +2133,8 @@ function ja(e, t) {
|
|
|
2133
2133
|
}, h);
|
|
2134
2134
|
}, ze = (c, h, g, x = !1, T = !1, C = 0) => {
|
|
2135
2135
|
for (let D = C; D < c.length; D++) $e(c[D], h, g, x, T);
|
|
2136
|
-
},
|
|
2137
|
-
if (c.shapeFlag & 6) return
|
|
2136
|
+
}, ot = (c) => {
|
|
2137
|
+
if (c.shapeFlag & 6) return ot(c.component.subTree);
|
|
2138
2138
|
if (c.shapeFlag & 128) return c.suspense.next();
|
|
2139
2139
|
const h = p(c.anchor || c.el), g = h && h[Jr];
|
|
2140
2140
|
return g ? p(g) : h;
|
|
@@ -2152,7 +2152,7 @@ function ja(e, t) {
|
|
|
2152
2152
|
mc: H,
|
|
2153
2153
|
pc: Fe,
|
|
2154
2154
|
pbc: ce,
|
|
2155
|
-
n:
|
|
2155
|
+
n: ot,
|
|
2156
2156
|
o: e
|
|
2157
2157
|
};
|
|
2158
2158
|
let Ue, at;
|
|
@@ -2174,14 +2174,14 @@ function za(e, t) {
|
|
|
2174
2174
|
function ys(e, t, i = !1) {
|
|
2175
2175
|
const n = e.children, s = t.children;
|
|
2176
2176
|
if (J(n) && J(s)) for (let r = 0; r < n.length; r++) {
|
|
2177
|
-
const
|
|
2178
|
-
let
|
|
2179
|
-
|
|
2177
|
+
const l = n[r];
|
|
2178
|
+
let o = s[r];
|
|
2179
|
+
o.shapeFlag & 1 && !o.dynamicChildren && ((o.patchFlag <= 0 || o.patchFlag === 32) && (o = s[r] = Ot(s[r]), o.el = l.el), !i && o.patchFlag !== -2 && ys(l, o)), o.type === wi && (o.patchFlag === -1 && (o = s[r] = Ot(o)), o.el = l.el), o.type === Ft && !o.el && (o.el = l.el);
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
2182
|
function Ua(e) {
|
|
2183
2183
|
const t = e.slice(), i = [0];
|
|
2184
|
-
let n, s, r,
|
|
2184
|
+
let n, s, r, l, o;
|
|
2185
2185
|
const a = e.length;
|
|
2186
2186
|
for (n = 0; n < a; n++) {
|
|
2187
2187
|
const d = e[n];
|
|
@@ -2190,29 +2190,29 @@ function Ua(e) {
|
|
|
2190
2190
|
t[n] = s, i.push(n);
|
|
2191
2191
|
continue;
|
|
2192
2192
|
}
|
|
2193
|
-
for (r = 0,
|
|
2194
|
-
|
|
2193
|
+
for (r = 0, l = i.length - 1; r < l; )
|
|
2194
|
+
o = r + l >> 1, e[i[o]] < d ? r = o + 1 : l = o;
|
|
2195
2195
|
d < e[i[r]] && (r > 0 && (t[n] = i[r - 1]), i[r] = n);
|
|
2196
2196
|
}
|
|
2197
2197
|
}
|
|
2198
|
-
for (r = i.length,
|
|
2199
|
-
i[r] =
|
|
2198
|
+
for (r = i.length, l = i[r - 1]; r-- > 0; )
|
|
2199
|
+
i[r] = l, l = t[l];
|
|
2200
2200
|
return i;
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function cl(e) {
|
|
2203
2203
|
const t = e.subTree.component;
|
|
2204
2204
|
if (t)
|
|
2205
|
-
return t.asyncDep && !t.asyncResolved ? t :
|
|
2205
|
+
return t.asyncDep && !t.asyncResolved ? t : cl(t);
|
|
2206
2206
|
}
|
|
2207
2207
|
function Bs(e) {
|
|
2208
2208
|
if (e) for (let t = 0; t < e.length; t++) e[t].flags |= 8;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function dl(e) {
|
|
2211
2211
|
if (e.placeholder) return e.placeholder;
|
|
2212
2212
|
const t = e.component;
|
|
2213
|
-
return t ?
|
|
2213
|
+
return t ? dl(t.subTree) : null;
|
|
2214
2214
|
}
|
|
2215
|
-
var
|
|
2215
|
+
var fl = (e) => e.__isSuspense;
|
|
2216
2216
|
function qa(e, t) {
|
|
2217
2217
|
t && t.pendingBranch ? J(e) ? t.effects.push(...e) : t.effects.push(e) : qr(e);
|
|
2218
2218
|
}
|
|
@@ -2227,14 +2227,14 @@ var Wn = 1;
|
|
|
2227
2227
|
function $s(e, t = !1) {
|
|
2228
2228
|
Wn += e, e < 0 && it && t && (it.hasOnce = !0);
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2231
|
-
return e.dynamicChildren = Wn > 0 ? it ||
|
|
2230
|
+
function hl(e) {
|
|
2231
|
+
return e.dynamicChildren = Wn > 0 ? it || on : null, Ka(), Wn > 0 && it && it.push(e), e;
|
|
2232
2232
|
}
|
|
2233
2233
|
function j(e, t, i, n, s, r) {
|
|
2234
|
-
return
|
|
2234
|
+
return hl(y(e, t, i, n, s, r, !0));
|
|
2235
2235
|
}
|
|
2236
2236
|
function gt(e, t, i, n, s) {
|
|
2237
|
-
return
|
|
2237
|
+
return hl(Ne(e, t, i, n, s, !0));
|
|
2238
2238
|
}
|
|
2239
2239
|
function bs(e) {
|
|
2240
2240
|
return e ? e.__v_isVNode === !0 : !1;
|
|
@@ -2242,19 +2242,19 @@ function bs(e) {
|
|
|
2242
2242
|
function Tn(e, t) {
|
|
2243
2243
|
return e.type === t.type && e.key === t.key;
|
|
2244
2244
|
}
|
|
2245
|
-
var
|
|
2245
|
+
var pl = ({ key: e }) => e ?? null, ti = ({ ref: e, ref_key: t, ref_for: i }) => (typeof e == "number" && (e = "" + e), e != null ? Ie(e) || /* @__PURE__ */ Le(e) || de(e) ? {
|
|
2246
2246
|
i: je,
|
|
2247
2247
|
r: e,
|
|
2248
2248
|
k: t,
|
|
2249
2249
|
f: !!i
|
|
2250
2250
|
} : e : null);
|
|
2251
|
-
function y(e, t = null, i = null, n = 0, s = null, r = e === ye ? 0 : 1,
|
|
2251
|
+
function y(e, t = null, i = null, n = 0, s = null, r = e === ye ? 0 : 1, l = !1, o = !1) {
|
|
2252
2252
|
const a = {
|
|
2253
2253
|
__v_isVNode: !0,
|
|
2254
2254
|
__v_skip: !0,
|
|
2255
2255
|
type: e,
|
|
2256
2256
|
props: t,
|
|
2257
|
-
key: t &&
|
|
2257
|
+
key: t && pl(t),
|
|
2258
2258
|
ref: t && ti(t),
|
|
2259
2259
|
scopeId: Yr,
|
|
2260
2260
|
slotScopeIds: null,
|
|
@@ -2278,42 +2278,42 @@ function y(e, t = null, i = null, n = 0, s = null, r = e === ye ? 0 : 1, o = !1,
|
|
|
2278
2278
|
appContext: null,
|
|
2279
2279
|
ctx: je
|
|
2280
2280
|
};
|
|
2281
|
-
return
|
|
2281
|
+
return o ? (ai(a, i), r & 128 && e.normalize(a)) : i && (a.shapeFlag |= Ie(i) ? 8 : 16), Wn > 0 && !l && it && (a.patchFlag > 0 || r & 6) && a.patchFlag !== 32 && it.push(a), a;
|
|
2282
2282
|
}
|
|
2283
2283
|
var Ne = Ga;
|
|
2284
2284
|
function Ga(e, t = null, i = null, n = 0, s = null, r = !1) {
|
|
2285
2285
|
if ((!e || e === wa) && (e = Ft), bs(e)) {
|
|
2286
|
-
const
|
|
2287
|
-
return i && ai(
|
|
2286
|
+
const o = pn(e, t, !0);
|
|
2287
|
+
return i && ai(o, i), Wn > 0 && !r && it && (o.shapeFlag & 6 ? it[it.indexOf(e)] = o : it.push(o)), o.patchFlag = -2, o;
|
|
2288
2288
|
}
|
|
2289
2289
|
if (iu(e) && (e = e.__vccOpts), t) {
|
|
2290
2290
|
t = Ya(t);
|
|
2291
|
-
let { class:
|
|
2292
|
-
|
|
2291
|
+
let { class: o, style: a } = t;
|
|
2292
|
+
o && !Ie(o) && (t.class = Me(o)), ge(a) && (/* @__PURE__ */ Si(a) && !J(a) && (a = rt({}, a)), t.style = Lt(a));
|
|
2293
2293
|
}
|
|
2294
|
-
const
|
|
2295
|
-
return y(e, t, i, n, s,
|
|
2294
|
+
const l = Ie(e) ? 1 : fl(e) ? 128 : va(e) ? 64 : ge(e) ? 4 : de(e) ? 2 : 0;
|
|
2295
|
+
return y(e, t, i, n, s, l, r, !0);
|
|
2296
2296
|
}
|
|
2297
2297
|
function Ya(e) {
|
|
2298
|
-
return e ? /* @__PURE__ */ Si(e) ||
|
|
2298
|
+
return e ? /* @__PURE__ */ Si(e) || rl(e) ? rt({}, e) : e : null;
|
|
2299
2299
|
}
|
|
2300
2300
|
function pn(e, t, i = !1, n = !1) {
|
|
2301
|
-
const { props: s, ref: r, patchFlag:
|
|
2301
|
+
const { props: s, ref: r, patchFlag: l, children: o, transition: a } = e, d = t ? Xa(s || {}, t) : s, u = {
|
|
2302
2302
|
__v_isVNode: !0,
|
|
2303
2303
|
__v_skip: !0,
|
|
2304
2304
|
type: e.type,
|
|
2305
2305
|
props: d,
|
|
2306
|
-
key: d &&
|
|
2306
|
+
key: d && pl(d),
|
|
2307
2307
|
ref: t && t.ref ? i && r ? J(r) ? r.concat(ti(t)) : [r, ti(t)] : ti(t) : r,
|
|
2308
2308
|
scopeId: e.scopeId,
|
|
2309
2309
|
slotScopeIds: e.slotScopeIds,
|
|
2310
|
-
children:
|
|
2310
|
+
children: o,
|
|
2311
2311
|
target: e.target,
|
|
2312
2312
|
targetStart: e.targetStart,
|
|
2313
2313
|
targetAnchor: e.targetAnchor,
|
|
2314
2314
|
staticCount: e.staticCount,
|
|
2315
2315
|
shapeFlag: e.shapeFlag,
|
|
2316
|
-
patchFlag: t && e.type !== ye ?
|
|
2316
|
+
patchFlag: t && e.type !== ye ? l === -1 ? 16 : l | 16 : l,
|
|
2317
2317
|
dynamicProps: e.dynamicProps,
|
|
2318
2318
|
dynamicChildren: e.dynamicChildren,
|
|
2319
2319
|
appContext: e.appContext,
|
|
@@ -2331,7 +2331,7 @@ function pn(e, t, i = !1, n = !1) {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
return a && n && gs(u, a.clone(u)), u;
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function vl(e = " ", t = 0) {
|
|
2335
2335
|
return Ne(wi, null, e, t);
|
|
2336
2336
|
}
|
|
2337
2337
|
function ts(e, t) {
|
|
@@ -2360,7 +2360,7 @@ function ai(e, t) {
|
|
|
2360
2360
|
} else {
|
|
2361
2361
|
i = 32;
|
|
2362
2362
|
const s = t._;
|
|
2363
|
-
!s && !
|
|
2363
|
+
!s && !rl(t) ? t._ctx = je : s === 3 && je && (je.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2364
2364
|
}
|
|
2365
2365
|
else if (de(t)) {
|
|
2366
2366
|
if (n & 65) {
|
|
@@ -2372,7 +2372,7 @@ function ai(e, t) {
|
|
|
2372
2372
|
_ctx: je
|
|
2373
2373
|
}, i = 32;
|
|
2374
2374
|
} else
|
|
2375
|
-
t = String(t), n & 64 ? (i = 16, t = [
|
|
2375
|
+
t = String(t), n & 64 ? (i = 16, t = [vl(t)]) : i = 8;
|
|
2376
2376
|
e.children = t, e.shapeFlag |= i;
|
|
2377
2377
|
}
|
|
2378
2378
|
function Xa(...e) {
|
|
@@ -2383,8 +2383,8 @@ function Xa(...e) {
|
|
|
2383
2383
|
t.class !== n.class && (t.class = Me([t.class, n.class]));
|
|
2384
2384
|
else if (s === "style") t.style = Lt([t.style, n.style]);
|
|
2385
2385
|
else if (vi(s)) {
|
|
2386
|
-
const r = t[s],
|
|
2387
|
-
|
|
2386
|
+
const r = t[s], l = n[s];
|
|
2387
|
+
l && r !== l && !(J(r) && r.includes(l)) ? t[s] = r ? [].concat(r, l) : l : l == null && r == null && !gi(s) && (t[s] = l);
|
|
2388
2388
|
} else s !== "" && (t[s] = n[s]);
|
|
2389
2389
|
}
|
|
2390
2390
|
return t;
|
|
@@ -2392,7 +2392,7 @@ function Xa(...e) {
|
|
|
2392
2392
|
function yt(e, t, i, n = null) {
|
|
2393
2393
|
xt(e, t, 7, [i, n]);
|
|
2394
2394
|
}
|
|
2395
|
-
var Ja =
|
|
2395
|
+
var Ja = tl(), Za = 0;
|
|
2396
2396
|
function Qa(e, t, i) {
|
|
2397
2397
|
const n = e.type, s = (t ? t.appContext : e.appContext) || Ja, r = {
|
|
2398
2398
|
uid: Za++,
|
|
@@ -2406,7 +2406,7 @@ function Qa(e, t, i) {
|
|
|
2406
2406
|
effect: null,
|
|
2407
2407
|
update: null,
|
|
2408
2408
|
job: null,
|
|
2409
|
-
scope: new
|
|
2409
|
+
scope: new Ro(!0),
|
|
2410
2410
|
render: null,
|
|
2411
2411
|
proxy: null,
|
|
2412
2412
|
exposed: null,
|
|
@@ -2465,7 +2465,7 @@ var nt = null, Ci = () => nt || je, ui, ns;
|
|
|
2465
2465
|
const e = yi(), t = (i, n) => {
|
|
2466
2466
|
let s;
|
|
2467
2467
|
return (s = e[i]) || (s = e[i] = []), s.push(n), (r) => {
|
|
2468
|
-
s.length > 1 ? s.forEach((
|
|
2468
|
+
s.length > 1 ? s.forEach((l) => l(r)) : s[0](r);
|
|
2469
2469
|
};
|
|
2470
2470
|
};
|
|
2471
2471
|
ui = t("__VUE_INSTANCE_SETTERS__", (i) => nt = i), ns = t("__VUE_SSR_SETTERS__", (i) => Hn = i);
|
|
@@ -2478,16 +2478,16 @@ var Ss = (e) => {
|
|
|
2478
2478
|
}, Ws = () => {
|
|
2479
2479
|
nt && nt.scope.off(), ui(null);
|
|
2480
2480
|
};
|
|
2481
|
-
function
|
|
2481
|
+
function gl(e) {
|
|
2482
2482
|
return e.vnode.shapeFlag & 4;
|
|
2483
2483
|
}
|
|
2484
2484
|
var Hn = !1;
|
|
2485
2485
|
function eu(e, t = !1, i = !1) {
|
|
2486
2486
|
t && ns(t);
|
|
2487
|
-
const { props: n, children: s } = e.vnode, r =
|
|
2487
|
+
const { props: n, children: s } = e.vnode, r = gl(e);
|
|
2488
2488
|
Da(e, n, r, t), Wa(e, s, i || t);
|
|
2489
|
-
const
|
|
2490
|
-
return t && ns(!1),
|
|
2489
|
+
const l = r ? tu(e, t) : void 0;
|
|
2490
|
+
return t && ns(!1), l;
|
|
2491
2491
|
}
|
|
2492
2492
|
function tu(e, t) {
|
|
2493
2493
|
const i = e.type;
|
|
@@ -2495,31 +2495,31 @@ function tu(e, t) {
|
|
|
2495
2495
|
const { setup: n } = i;
|
|
2496
2496
|
if (n) {
|
|
2497
2497
|
Nt();
|
|
2498
|
-
const s = e.setupContext = n.length > 1 ?
|
|
2499
|
-
if (kt(), r(), (
|
|
2500
|
-
if (
|
|
2498
|
+
const s = e.setupContext = n.length > 1 ? _l(e) : null, r = Ss(e), l = zn(n, e, 0, [e.props, s]), o = _r(l);
|
|
2499
|
+
if (kt(), r(), (o || e.sp) && !dn(e) && ba(e), o) {
|
|
2500
|
+
if (l.then(Ws, Ws), t) return l.then((a) => {
|
|
2501
2501
|
Hs(e, a, t);
|
|
2502
2502
|
}).catch((a) => {
|
|
2503
2503
|
Ei(a, e, 0);
|
|
2504
2504
|
});
|
|
2505
|
-
e.asyncDep =
|
|
2506
|
-
} else Hs(e,
|
|
2507
|
-
} else
|
|
2505
|
+
e.asyncDep = l;
|
|
2506
|
+
} else Hs(e, l, t);
|
|
2507
|
+
} else ml(e, t);
|
|
2508
2508
|
}
|
|
2509
2509
|
function Hs(e, t, i) {
|
|
2510
|
-
de(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : ge(t) && (e.setupState = jr(t)),
|
|
2510
|
+
de(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : ge(t) && (e.setupState = jr(t)), ml(e, i);
|
|
2511
2511
|
}
|
|
2512
2512
|
var Vs, js;
|
|
2513
|
-
function
|
|
2513
|
+
function ml(e, t, i) {
|
|
2514
2514
|
const n = e.type;
|
|
2515
2515
|
if (!e.render) {
|
|
2516
2516
|
if (!t && Vs && !n.render) {
|
|
2517
2517
|
const s = n.template || !1;
|
|
2518
2518
|
if (s) {
|
|
2519
|
-
const { isCustomElement: r, compilerOptions:
|
|
2519
|
+
const { isCustomElement: r, compilerOptions: l } = e.appContext.config, { delimiters: o, compilerOptions: a } = n, d = rt(rt({
|
|
2520
2520
|
isCustomElement: r,
|
|
2521
|
-
delimiters:
|
|
2522
|
-
},
|
|
2521
|
+
delimiters: o
|
|
2522
|
+
}, l), a);
|
|
2523
2523
|
n.render = Vs(s, d);
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
@@ -2529,7 +2529,7 @@ function _o(e, t, i) {
|
|
|
2529
2529
|
var nu = { get(e, t) {
|
|
2530
2530
|
return Ve(e, "get", ""), e[t];
|
|
2531
2531
|
} };
|
|
2532
|
-
function
|
|
2532
|
+
function _l(e) {
|
|
2533
2533
|
const t = (i) => {
|
|
2534
2534
|
e.exposed = i || {};
|
|
2535
2535
|
};
|
|
@@ -2541,7 +2541,7 @@ function yo(e) {
|
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
2543
|
function xi(e) {
|
|
2544
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(jr(
|
|
2544
|
+
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(jr(Zo(e.exposed)), {
|
|
2545
2545
|
get(t, i) {
|
|
2546
2546
|
if (i in t) return t[i];
|
|
2547
2547
|
if (i in Ln) return Ln[i](e);
|
|
@@ -2554,12 +2554,12 @@ function xi(e) {
|
|
|
2554
2554
|
function iu(e) {
|
|
2555
2555
|
return de(e) && "__vccOpts" in e;
|
|
2556
2556
|
}
|
|
2557
|
-
var U = (e, t) => /* @__PURE__ */
|
|
2557
|
+
var U = (e, t) => /* @__PURE__ */ la(e, t, Hn), su = "3.5.39", is = void 0, zs = typeof window < "u" && window.trustedTypes;
|
|
2558
2558
|
if (zs) try {
|
|
2559
2559
|
is = /* @__PURE__ */ zs.createPolicy("vue", { createHTML: (e) => e });
|
|
2560
2560
|
} catch {
|
|
2561
2561
|
}
|
|
2562
|
-
var
|
|
2562
|
+
var yl = is ? (e) => is.createHTML(e) : (e) => e, ru = "http://www.w3.org/2000/svg", lu = "http://www.w3.org/1998/Math/MathML", Mt = typeof document < "u" ? document : null, Us = Mt && /* @__PURE__ */ Mt.createElement("template"), ou = {
|
|
2563
2563
|
insert: (e, t, i) => {
|
|
2564
2564
|
t.insertBefore(e, i || null);
|
|
2565
2565
|
},
|
|
@@ -2568,7 +2568,7 @@ var bo = is ? (e) => is.createHTML(e) : (e) => e, ru = "http://www.w3.org/2000/s
|
|
|
2568
2568
|
t && t.removeChild(e);
|
|
2569
2569
|
},
|
|
2570
2570
|
createElement: (e, t, i, n) => {
|
|
2571
|
-
const s = t === "svg" ? Mt.createElementNS(ru, e) : t === "mathml" ? Mt.createElementNS(
|
|
2571
|
+
const s = t === "svg" ? Mt.createElementNS(ru, e) : t === "mathml" ? Mt.createElementNS(lu, e) : i ? Mt.createElement(e, { is: i }) : Mt.createElement(e);
|
|
2572
2572
|
return e === "select" && n && n.multiple != null && s.setAttribute("multiple", n.multiple), s;
|
|
2573
2573
|
},
|
|
2574
2574
|
createText: (e) => Mt.createTextNode(e),
|
|
@@ -2586,27 +2586,27 @@ var bo = is ? (e) => is.createHTML(e) : (e) => e, ru = "http://www.w3.org/2000/s
|
|
|
2586
2586
|
e.setAttribute(t, "");
|
|
2587
2587
|
},
|
|
2588
2588
|
insertStaticContent(e, t, i, n, s, r) {
|
|
2589
|
-
const
|
|
2589
|
+
const l = i ? i.previousSibling : t.lastChild;
|
|
2590
2590
|
if (s && (s === r || s.nextSibling)) for (; t.insertBefore(s.cloneNode(!0), i), !(s === r || !(s = s.nextSibling)); )
|
|
2591
2591
|
;
|
|
2592
2592
|
else {
|
|
2593
|
-
Us.innerHTML =
|
|
2594
|
-
const
|
|
2593
|
+
Us.innerHTML = yl(n === "svg" ? `<svg>${e}</svg>` : n === "mathml" ? `<math>${e}</math>` : e);
|
|
2594
|
+
const o = Us.content;
|
|
2595
2595
|
if (n === "svg" || n === "mathml") {
|
|
2596
|
-
const a =
|
|
2597
|
-
for (; a.firstChild; )
|
|
2598
|
-
|
|
2596
|
+
const a = o.firstChild;
|
|
2597
|
+
for (; a.firstChild; ) o.appendChild(a.firstChild);
|
|
2598
|
+
o.removeChild(a);
|
|
2599
2599
|
}
|
|
2600
|
-
t.insertBefore(
|
|
2600
|
+
t.insertBefore(o, i);
|
|
2601
2601
|
}
|
|
2602
|
-
return [
|
|
2602
|
+
return [l ? l.nextSibling : t.firstChild, i ? i.previousSibling : t.lastChild];
|
|
2603
2603
|
}
|
|
2604
2604
|
}, au = /* @__PURE__ */ Symbol("_vtc");
|
|
2605
2605
|
function uu(e, t, i) {
|
|
2606
2606
|
const n = e[au];
|
|
2607
2607
|
n && (t = (t ? [t, ...n] : [...n]).join(" ")), t == null ? e.removeAttribute("class") : i ? e.setAttribute("class", t) : e.className = t;
|
|
2608
2608
|
}
|
|
2609
|
-
var ci = /* @__PURE__ */ Symbol("_vod"),
|
|
2609
|
+
var ci = /* @__PURE__ */ Symbol("_vod"), bl = /* @__PURE__ */ Symbol("_vsh"), qs = {
|
|
2610
2610
|
name: "show",
|
|
2611
2611
|
beforeMount(e, { value: t }, { transition: i }) {
|
|
2612
2612
|
e[ci] = e.style.display === "none" ? "" : e.style.display, i && t ? i.beforeEnter(e) : wn(e, t);
|
|
@@ -2624,10 +2624,10 @@ var ci = /* @__PURE__ */ Symbol("_vod"), So = /* @__PURE__ */ Symbol("_vsh"), qs
|
|
|
2624
2624
|
}
|
|
2625
2625
|
};
|
|
2626
2626
|
function wn(e, t) {
|
|
2627
|
-
e.style.display = t ? e[ci] : "none", e[
|
|
2627
|
+
e.style.display = t ? e[ci] : "none", e[bl] = !t;
|
|
2628
2628
|
}
|
|
2629
|
-
var
|
|
2630
|
-
function
|
|
2629
|
+
var Sl = /* @__PURE__ */ Symbol("");
|
|
2630
|
+
function El(e) {
|
|
2631
2631
|
const t = Ci();
|
|
2632
2632
|
if (!t) return;
|
|
2633
2633
|
const i = t.ut = (s = e(t.proxy)) => {
|
|
@@ -2665,10 +2665,10 @@ function di(e, t) {
|
|
|
2665
2665
|
const i = e.style;
|
|
2666
2666
|
let n = "";
|
|
2667
2667
|
for (const s in t) {
|
|
2668
|
-
const r =
|
|
2668
|
+
const r = Po(t[s]);
|
|
2669
2669
|
i.setProperty(`--${s}`, r), n += `--${s}: ${r};`;
|
|
2670
2670
|
}
|
|
2671
|
-
i[
|
|
2671
|
+
i[Sl] = n;
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
2674
|
var cu = /(?:^|;)\s*display\s*:/;
|
|
@@ -2678,23 +2678,23 @@ function du(e, t, i) {
|
|
|
2678
2678
|
if (i && !s) {
|
|
2679
2679
|
if (t)
|
|
2680
2680
|
if (Ie(t))
|
|
2681
|
-
for (const
|
|
2682
|
-
const
|
|
2683
|
-
i[
|
|
2681
|
+
for (const l of t.split(";")) {
|
|
2682
|
+
const o = l.slice(0, l.indexOf(":")).trim();
|
|
2683
|
+
i[o] == null && An(n, o, "");
|
|
2684
2684
|
}
|
|
2685
|
-
else for (const
|
|
2686
|
-
for (const
|
|
2687
|
-
|
|
2688
|
-
const
|
|
2689
|
-
|
|
2685
|
+
else for (const l in t) i[l] == null && An(n, l, "");
|
|
2686
|
+
for (const l in i) {
|
|
2687
|
+
l === "display" && (r = !0);
|
|
2688
|
+
const o = i[l];
|
|
2689
|
+
o != null ? hu(e, l, !Ie(t) && t ? t[l] : void 0, o) || An(n, l, o) : An(n, l, "");
|
|
2690
2690
|
}
|
|
2691
2691
|
} else if (s) {
|
|
2692
2692
|
if (t !== i) {
|
|
2693
|
-
const
|
|
2694
|
-
|
|
2693
|
+
const l = n[Sl];
|
|
2694
|
+
l && (i += ";" + l), n.cssText = i, r = cu.test(i);
|
|
2695
2695
|
}
|
|
2696
2696
|
} else t && e.removeAttribute("style");
|
|
2697
|
-
ci in e && (e[ci] = r ? n.display : "", e[
|
|
2697
|
+
ci in e && (e[ci] = r ? n.display : "", e[bl] && (n.display = "none"));
|
|
2698
2698
|
}
|
|
2699
2699
|
var Ks = /\s*!important$/;
|
|
2700
2700
|
function An(e, t, i) {
|
|
@@ -2726,30 +2726,30 @@ function hu(e, t, i, n) {
|
|
|
2726
2726
|
return e.tagName === "TEXTAREA" && (t === "width" || t === "height") && Ie(n) && i === n;
|
|
2727
2727
|
}
|
|
2728
2728
|
var Ys = "http://www.w3.org/1999/xlink";
|
|
2729
|
-
function Xs(e, t, i, n, s, r =
|
|
2730
|
-
n && t.startsWith("xlink:") ? i == null ? e.removeAttributeNS(Ys, t.slice(6, t.length)) : e.setAttributeNS(Ys, t, i) : i == null || r && !wr(i) ? e.removeAttribute(t) : e.setAttribute(t, r ? "" :
|
|
2729
|
+
function Xs(e, t, i, n, s, r = Mo(t)) {
|
|
2730
|
+
n && t.startsWith("xlink:") ? i == null ? e.removeAttributeNS(Ys, t.slice(6, t.length)) : e.setAttributeNS(Ys, t, i) : i == null || r && !wr(i) ? e.removeAttribute(t) : e.setAttribute(t, r ? "" : lt(i) ? String(i) : i);
|
|
2731
2731
|
}
|
|
2732
2732
|
function Js(e, t, i, n, s) {
|
|
2733
2733
|
if (t === "innerHTML" || t === "textContent") {
|
|
2734
|
-
i != null && (e[t] = t === "innerHTML" ?
|
|
2734
|
+
i != null && (e[t] = t === "innerHTML" ? yl(i) : i);
|
|
2735
2735
|
return;
|
|
2736
2736
|
}
|
|
2737
2737
|
const r = e.tagName;
|
|
2738
2738
|
if (t === "value" && r !== "PROGRESS" && !r.includes("-")) {
|
|
2739
|
-
const
|
|
2740
|
-
(
|
|
2739
|
+
const o = r === "OPTION" ? e.getAttribute("value") || "" : e.value, a = i == null ? e.type === "checkbox" ? "on" : "" : String(i);
|
|
2740
|
+
(o !== a || !("_value" in e)) && (e.value = a), i == null && e.removeAttribute(t), e._value = i;
|
|
2741
2741
|
return;
|
|
2742
2742
|
}
|
|
2743
|
-
let
|
|
2743
|
+
let l = !1;
|
|
2744
2744
|
if (i === "" || i == null) {
|
|
2745
|
-
const
|
|
2746
|
-
|
|
2745
|
+
const o = typeof e[t];
|
|
2746
|
+
o === "boolean" ? i = wr(i) : i == null && o === "string" ? (i = "", l = !0) : o === "number" && (i = 0, l = !0);
|
|
2747
2747
|
}
|
|
2748
2748
|
try {
|
|
2749
2749
|
e[t] = i;
|
|
2750
2750
|
} catch {
|
|
2751
2751
|
}
|
|
2752
|
-
|
|
2752
|
+
l && e.removeAttribute(s || t);
|
|
2753
2753
|
}
|
|
2754
2754
|
function pu(e, t, i, n) {
|
|
2755
2755
|
e.addEventListener(t, i, n);
|
|
@@ -2759,11 +2759,11 @@ function vu(e, t, i, n) {
|
|
|
2759
2759
|
}
|
|
2760
2760
|
var Zs = /* @__PURE__ */ Symbol("_vei");
|
|
2761
2761
|
function gu(e, t, i, n, s = null) {
|
|
2762
|
-
const r = e[Zs] || (e[Zs] = {}),
|
|
2763
|
-
if (n &&
|
|
2762
|
+
const r = e[Zs] || (e[Zs] = {}), l = r[t];
|
|
2763
|
+
if (n && l) l.value = n;
|
|
2764
2764
|
else {
|
|
2765
|
-
const [
|
|
2766
|
-
n ? pu(e,
|
|
2765
|
+
const [o, a] = yu(t);
|
|
2766
|
+
n ? pu(e, o, r[t] = Eu(n, s), a) : l && (vu(e, o, l, a), r[t] = void 0);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
2769
|
var mu = /(Once|Passive|Capture)$/, _u = /^on:?(?:Once|Passive|Capture)$/;
|
|
@@ -2784,18 +2784,18 @@ function Eu(e, t) {
|
|
|
2784
2784
|
n.stopImmediatePropagation = () => {
|
|
2785
2785
|
r.call(n), n._stopped = !0;
|
|
2786
2786
|
};
|
|
2787
|
-
const
|
|
2788
|
-
for (let a = 0; a <
|
|
2789
|
-
const d =
|
|
2790
|
-
d && xt(d, t, 5,
|
|
2787
|
+
const l = s.slice(), o = [n];
|
|
2788
|
+
for (let a = 0; a < l.length && !n._stopped; a++) {
|
|
2789
|
+
const d = l[a];
|
|
2790
|
+
d && xt(d, t, 5, o);
|
|
2791
2791
|
}
|
|
2792
2792
|
} else xt(s, t, 5, [n]);
|
|
2793
2793
|
};
|
|
2794
2794
|
return i.value = e, i.attached = Su(), i;
|
|
2795
2795
|
}
|
|
2796
2796
|
var Qs = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Tu = (e, t, i, n, s, r) => {
|
|
2797
|
-
const
|
|
2798
|
-
t === "class" ? uu(e, n,
|
|
2797
|
+
const l = s === "svg";
|
|
2798
|
+
t === "class" ? uu(e, n, l) : t === "style" ? du(e, i, n) : vi(t) ? gi(t) || gu(e, t, i, n, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : wu(e, t, n, l)) ? (Js(e, t, n), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Xs(e, t, n, l, r, t !== "value")) : e._isVueCE && (Cu(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !Ie(n))) ? Js(e, ht(t), n, r, t) : (t === "true-value" ? e._trueValue = n : t === "false-value" && (e._falseValue = n), Xs(e, t, n, l));
|
|
2799
2799
|
};
|
|
2800
2800
|
function wu(e, t, i, n) {
|
|
2801
2801
|
if (n)
|
|
@@ -2830,17 +2830,17 @@ var xu = [
|
|
|
2830
2830
|
middle: (e) => "button" in e && e.button !== 1,
|
|
2831
2831
|
right: (e) => "button" in e && e.button !== 2,
|
|
2832
2832
|
exact: (e, t) => xu.some((i) => e[`${i}Key`] && !t.includes(i))
|
|
2833
|
-
},
|
|
2833
|
+
}, Tl = (e, t) => {
|
|
2834
2834
|
if (!e) return e;
|
|
2835
2835
|
const i = e._withMods || (e._withMods = {}), n = t.join(".");
|
|
2836
2836
|
return i[n] || (i[n] = ((s, ...r) => {
|
|
2837
|
-
for (let
|
|
2838
|
-
const
|
|
2839
|
-
if (
|
|
2837
|
+
for (let l = 0; l < t.length; l++) {
|
|
2838
|
+
const o = Iu[t[l]];
|
|
2839
|
+
if (o && o(s, t)) return;
|
|
2840
2840
|
}
|
|
2841
2841
|
return e(s, ...r);
|
|
2842
2842
|
}));
|
|
2843
|
-
}, Au = /* @__PURE__ */ rt({ patchProp: Tu },
|
|
2843
|
+
}, Au = /* @__PURE__ */ rt({ patchProp: Tu }, ou), er;
|
|
2844
2844
|
function Mu() {
|
|
2845
2845
|
return er || (er = Va(Au));
|
|
2846
2846
|
}
|
|
@@ -2851,8 +2851,8 @@ var Ou = ((...e) => {
|
|
|
2851
2851
|
if (!s) return;
|
|
2852
2852
|
const r = t._component;
|
|
2853
2853
|
!de(r) && !r.render && !r.template && (r.template = s.innerHTML), s.nodeType === 1 && (s.textContent = "");
|
|
2854
|
-
const
|
|
2855
|
-
return s instanceof Element && (s.removeAttribute("v-cloak"), s.setAttribute("data-v-app", "")),
|
|
2854
|
+
const l = i(s, !1, Pu(s));
|
|
2855
|
+
return s instanceof Element && (s.removeAttribute("v-cloak"), s.setAttribute("data-v-app", "")), l;
|
|
2856
2856
|
}, t;
|
|
2857
2857
|
});
|
|
2858
2858
|
function Pu(e) {
|
|
@@ -2862,7 +2862,7 @@ function Pu(e) {
|
|
|
2862
2862
|
function Ru(e) {
|
|
2863
2863
|
return Ie(e) ? document.querySelector(e) : e;
|
|
2864
2864
|
}
|
|
2865
|
-
var Lu = 6097,
|
|
2865
|
+
var Lu = 6097, wl = "[vite-plugin-aipanel]", Cl = "data-aipanel-config", xl = "/__aipanel_context__", Nu = "/__aipanel_start__", Vi = "/__aipanel_sessions__", tr = "/__aipanel_events__", ku = 1e3, Du = 3e3, nr = "__AIPANEL_INITIALIZED__", ir = "__aipanel_selected_elements__", Fu = {
|
|
2866
2866
|
PAGE_CONTEXT: "PAGE_CONTEXT",
|
|
2867
2867
|
THEME_CHANGE: "THEME_CHANGE",
|
|
2868
2868
|
SERVICE_APPEARED: "SERVICE_APPEARED",
|
|
@@ -2876,7 +2876,7 @@ var Lu = 6097, Co = "[vite-plugin-aipanel]", xo = "data-aipanel-config", Io = "/
|
|
|
2876
2876
|
SELECTION_STOP: "SELECTION_STOP",
|
|
2877
2877
|
CS_QUERY_WINDOW: "__CS_QUERY_WINDOW__",
|
|
2878
2878
|
FORCE_POLL: "FORCE_POLL"
|
|
2879
|
-
},
|
|
2879
|
+
}, le = {
|
|
2880
2880
|
READY: "AIPANEL_READY",
|
|
2881
2881
|
KEYDOWN: "AIPANEL_KEYDOWN",
|
|
2882
2882
|
SET_THEME: "AIPANEL_SET_THEME",
|
|
@@ -2905,11 +2905,11 @@ var Lu = 6097, Co = "[vite-plugin-aipanel]", xo = "data-aipanel-config", Io = "/
|
|
|
2905
2905
|
TASK_UPDATE: "TASK_UPDATE",
|
|
2906
2906
|
SESSION_EVENT: "SESSION_EVENT",
|
|
2907
2907
|
CLEAR_ELEMENTS: "CLEAR_ELEMENTS"
|
|
2908
|
-
},
|
|
2908
|
+
}, Il = {
|
|
2909
2909
|
vue: "vue",
|
|
2910
2910
|
react: "react"
|
|
2911
2911
|
};
|
|
2912
|
-
function
|
|
2912
|
+
function Al(e) {
|
|
2913
2913
|
const t = /^(.+):([\d]+):([\d]+)$/.exec(e);
|
|
2914
2914
|
return t ? {
|
|
2915
2915
|
file: t[1],
|
|
@@ -2917,9 +2917,9 @@ function Mo(e) {
|
|
|
2917
2917
|
column: Number.parseInt(t[3], 10)
|
|
2918
2918
|
} : null;
|
|
2919
2919
|
}
|
|
2920
|
-
var Wu = "data-insp-path", Hu = "data-inspector-relative-path", Vu = "data-inspector-line", ju = "data-inspector-column",
|
|
2920
|
+
var Wu = "data-insp-path", Hu = "data-inspector-relative-path", Vu = "data-inspector-line", ju = "data-inspector-column", Ml = "__reactFiber$", zu = "__reactContainer$", Uu = 50, qu = 200, Ol = null, sr = !1, Pl = !1;
|
|
2921
2921
|
function rr(e) {
|
|
2922
|
-
return Object.keys(e).some((t) => t.startsWith(
|
|
2922
|
+
return Object.keys(e).some((t) => t.startsWith(Ml) || t.startsWith(zu));
|
|
2923
2923
|
}
|
|
2924
2924
|
function Ku() {
|
|
2925
2925
|
if (typeof document > "u") return !1;
|
|
@@ -2932,7 +2932,7 @@ function Ku() {
|
|
|
2932
2932
|
function Gu(e) {
|
|
2933
2933
|
const t = e.getAttribute(Wu);
|
|
2934
2934
|
if (t) {
|
|
2935
|
-
const n =
|
|
2935
|
+
const n = Al(t.replace(/:[^:]*$/, ""));
|
|
2936
2936
|
if (n) return n;
|
|
2937
2937
|
}
|
|
2938
2938
|
const i = e.getAttribute(Hu);
|
|
@@ -2943,7 +2943,7 @@ function Gu(e) {
|
|
|
2943
2943
|
} : null;
|
|
2944
2944
|
}
|
|
2945
2945
|
function Yu(e) {
|
|
2946
|
-
const t = Object.keys(e).find((n) => n.startsWith(
|
|
2946
|
+
const t = Object.keys(e).find((n) => n.startsWith(Ml));
|
|
2947
2947
|
let i = t ? e[t] : null;
|
|
2948
2948
|
for (let n = 0; i && n < Uu; n += 1) {
|
|
2949
2949
|
const s = i._debugSource;
|
|
@@ -2957,12 +2957,12 @@ function Yu(e) {
|
|
|
2957
2957
|
return null;
|
|
2958
2958
|
}
|
|
2959
2959
|
function Xu(e) {
|
|
2960
|
-
if (!
|
|
2960
|
+
if (!Pl) return;
|
|
2961
2961
|
const t = e.target instanceof Element ? e.target : null;
|
|
2962
|
-
|
|
2962
|
+
Ol?.(t, e) && (e.preventDefault(), e.stopPropagation());
|
|
2963
2963
|
}
|
|
2964
2964
|
var Ju = {
|
|
2965
|
-
id:
|
|
2965
|
+
id: Il.react,
|
|
2966
2966
|
label: "React Inspector",
|
|
2967
2967
|
ignoreSelectors: [],
|
|
2968
2968
|
ignoreAttributes: [],
|
|
@@ -2979,17 +2979,17 @@ var Ju = {
|
|
|
2979
2979
|
return null;
|
|
2980
2980
|
},
|
|
2981
2981
|
onElementClick(e) {
|
|
2982
|
-
|
|
2982
|
+
Ol = e, !sr && (document.addEventListener("click", Xu, !0), sr = !0);
|
|
2983
2983
|
},
|
|
2984
2984
|
setEnabled(e) {
|
|
2985
|
-
|
|
2985
|
+
Pl = e;
|
|
2986
2986
|
}
|
|
2987
|
-
}, Zu = "data-v-inspector", ji = "__v_inspector",
|
|
2987
|
+
}, Zu = "data-v-inspector", ji = "__v_inspector", Rl = "data-v-inspector-ignore", Ll = "#vue-inspector-container";
|
|
2988
2988
|
function zi() {
|
|
2989
2989
|
return typeof window > "u" ? void 0 : window.__VUE_INSPECTOR__;
|
|
2990
2990
|
}
|
|
2991
2991
|
function Qu(e) {
|
|
2992
|
-
return e.hasAttribute(
|
|
2992
|
+
return e.hasAttribute(Rl) || !!e.closest(Ll);
|
|
2993
2993
|
}
|
|
2994
2994
|
function ec(e) {
|
|
2995
2995
|
const t = e.__vnode?.props?.[ji];
|
|
@@ -3011,7 +3011,7 @@ function ec(e) {
|
|
|
3011
3011
|
}
|
|
3012
3012
|
function tc(e) {
|
|
3013
3013
|
const t = ec(e);
|
|
3014
|
-
return t ?
|
|
3014
|
+
return t ? Al(t) : null;
|
|
3015
3015
|
}
|
|
3016
3016
|
function nc(e) {
|
|
3017
3017
|
const t = e.__vueParentComponent;
|
|
@@ -3050,11 +3050,11 @@ function ic(e, t) {
|
|
|
3050
3050
|
}
|
|
3051
3051
|
return e?.file ? e : t;
|
|
3052
3052
|
}
|
|
3053
|
-
var
|
|
3054
|
-
id:
|
|
3053
|
+
var lr = null, sc = {
|
|
3054
|
+
id: Il.vue,
|
|
3055
3055
|
label: "Vue Inspector",
|
|
3056
|
-
ignoreSelectors: [
|
|
3057
|
-
ignoreAttributes: [
|
|
3056
|
+
ignoreSelectors: [Ll],
|
|
3057
|
+
ignoreAttributes: [Rl],
|
|
3058
3058
|
isAvailable() {
|
|
3059
3059
|
return !!zi();
|
|
3060
3060
|
},
|
|
@@ -3065,13 +3065,13 @@ var or = null, sc = {
|
|
|
3065
3065
|
return ic(i, n);
|
|
3066
3066
|
},
|
|
3067
3067
|
onElementClick(e) {
|
|
3068
|
-
|
|
3068
|
+
lr = e;
|
|
3069
3069
|
const t = zi();
|
|
3070
3070
|
if (!t || t.__aipanel_hooked) return;
|
|
3071
3071
|
const i = t.handleClick.bind(t);
|
|
3072
3072
|
t.handleClick = (n) => {
|
|
3073
3073
|
const s = n.target instanceof Element ? n.target : null;
|
|
3074
|
-
if (
|
|
3074
|
+
if (lr?.(s, n)) {
|
|
3075
3075
|
n.preventDefault(), n.stopPropagation();
|
|
3076
3076
|
return;
|
|
3077
3077
|
}
|
|
@@ -3082,12 +3082,12 @@ var or = null, sc = {
|
|
|
3082
3082
|
const t = zi();
|
|
3083
3083
|
t && (e ? t.enable() : t.disable());
|
|
3084
3084
|
}
|
|
3085
|
-
},
|
|
3085
|
+
}, Nl = [sc, Ju];
|
|
3086
3086
|
function Ii() {
|
|
3087
|
-
return
|
|
3087
|
+
return Nl;
|
|
3088
3088
|
}
|
|
3089
3089
|
function rs() {
|
|
3090
|
-
return
|
|
3090
|
+
return Nl.find((e) => e.isAvailable()) ?? null;
|
|
3091
3091
|
}
|
|
3092
3092
|
var Ze = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(Ze || {}), rc = {
|
|
3093
3093
|
0: "DEBUG",
|
|
@@ -3095,7 +3095,7 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INF
|
|
|
3095
3095
|
2: "WARN",
|
|
3096
3096
|
3: "ERROR",
|
|
3097
3097
|
4: "NONE"
|
|
3098
|
-
},
|
|
3098
|
+
}, ls = {
|
|
3099
3099
|
verbose: !1,
|
|
3100
3100
|
level: 1,
|
|
3101
3101
|
showTimestamp: !0,
|
|
@@ -3104,12 +3104,12 @@ var Ze = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INF
|
|
|
3104
3104
|
indent: " "
|
|
3105
3105
|
};
|
|
3106
3106
|
function Dn() {
|
|
3107
|
-
return
|
|
3107
|
+
return ls;
|
|
3108
3108
|
}
|
|
3109
|
-
function
|
|
3110
|
-
|
|
3109
|
+
function lc(e) {
|
|
3110
|
+
ls.verbose = e, ls.level = e ? 0 : 1;
|
|
3111
3111
|
}
|
|
3112
|
-
function
|
|
3112
|
+
function oc() {
|
|
3113
3113
|
const e = /* @__PURE__ */ new Date();
|
|
3114
3114
|
return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}.${String(e.getMilliseconds()).padStart(3, "0")}`;
|
|
3115
3115
|
}
|
|
@@ -3161,11 +3161,11 @@ var uc = {
|
|
|
3161
3161
|
session_creation_failed: "会话创建失败",
|
|
3162
3162
|
chrome_mcp_failed: "Chrome DevTools 连接失败",
|
|
3163
3163
|
ready: "准备完成"
|
|
3164
|
-
},
|
|
3164
|
+
}, kl = /* @__PURE__ */ ((e) => (e.CHROME_NOT_CONNECTED = "CHROME_NOT_CONNECTED", e.AI_TIMEOUT = "AI_TIMEOUT", e.AI_RESPONSE_ERROR = "AI_RESPONSE_ERROR", e.SESSION_ERROR = "SESSION_ERROR", e.UNKNOWN = "UNKNOWN", e))(kl || {});
|
|
3165
3165
|
function cc(e) {
|
|
3166
3166
|
return e.id || (e.id = `n${typeof crypto < "u" && typeof crypto.randomUUID == "function" ? crypto.randomUUID().replace(/-/g, "").slice(0, 8) : Math.random().toString(36).slice(2, 10)}`), e.id;
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function Dl(e, t) {
|
|
3169
3169
|
return e.length <= t ? e : `${e.slice(0, t)}...`;
|
|
3170
3170
|
}
|
|
3171
3171
|
function dc(e, t) {
|
|
@@ -3194,11 +3194,11 @@ var Ye = {
|
|
|
3194
3194
|
function Zn(e, t, i, ...n) {
|
|
3195
3195
|
if (e < Dn().level) return;
|
|
3196
3196
|
const s = [], r = [];
|
|
3197
|
-
Dn().showTimestamp && (s.push("%c%s"), r.push(Ye.dim,
|
|
3198
|
-
const
|
|
3199
|
-
|
|
3200
|
-
const
|
|
3201
|
-
s.push(`%c${t}${
|
|
3197
|
+
Dn().showTimestamp && (s.push("%c%s"), r.push(Ye.dim, oc())), s.push(`%c${rc[e].padEnd(5)}`), r.push(fc[e]), s.push(`%c${wl}`), r.push(Ye.bright);
|
|
3198
|
+
const l = ac(i);
|
|
3199
|
+
l && (s.push(`%c${l}`), r.push(Ye.magenta));
|
|
3200
|
+
const o = n.length > 0 ? ` ${n.map((d) => Zt(d)).join(" ")}` : "";
|
|
3201
|
+
s.push(`%c${t}${o}`), r.push(Ye.reset);
|
|
3202
3202
|
const a = s.join(" ");
|
|
3203
3203
|
if (i?.error) {
|
|
3204
3204
|
const d = i.error;
|
|
@@ -3224,7 +3224,7 @@ var Qn = {
|
|
|
3224
3224
|
Zn(Ze.ERROR, e, t, ...i);
|
|
3225
3225
|
},
|
|
3226
3226
|
group(e, t) {
|
|
3227
|
-
Dn().verbose && console.group(`%c${
|
|
3227
|
+
Dn().verbose && console.group(`%c${wl}%c ${e}`, Ye.bright, t?.module ? `%c[${t.module}]%c ` : Ye.reset, ...t?.module ? [Ye.magenta, Ye.reset] : []);
|
|
3228
3228
|
},
|
|
3229
3229
|
groupEnd() {
|
|
3230
3230
|
Dn().verbose && console.groupEnd();
|
|
@@ -3258,46 +3258,46 @@ function zt(e) {
|
|
|
3258
3258
|
}
|
|
3259
3259
|
};
|
|
3260
3260
|
}
|
|
3261
|
-
function
|
|
3261
|
+
function Fl(e) {
|
|
3262
3262
|
try {
|
|
3263
3263
|
return typeof window > "u" ? void 0 : e === "local" ? window.localStorage : window.sessionStorage;
|
|
3264
3264
|
} catch {
|
|
3265
3265
|
return;
|
|
3266
3266
|
}
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3268
|
+
function Bl(e, t) {
|
|
3269
3269
|
try {
|
|
3270
|
-
const i =
|
|
3270
|
+
const i = Fl(e)?.getItem(t);
|
|
3271
3271
|
return i == null ? null : JSON.parse(i);
|
|
3272
3272
|
} catch {
|
|
3273
3273
|
return null;
|
|
3274
3274
|
}
|
|
3275
3275
|
}
|
|
3276
|
-
function
|
|
3276
|
+
function $l(e, t, i) {
|
|
3277
3277
|
try {
|
|
3278
|
-
|
|
3278
|
+
Fl(e)?.setItem(t, JSON.stringify(i));
|
|
3279
3279
|
} catch {
|
|
3280
3280
|
}
|
|
3281
3281
|
}
|
|
3282
|
-
function
|
|
3282
|
+
function Wl() {
|
|
3283
3283
|
return typeof window > "u" || typeof window.matchMedia != "function" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
3284
3284
|
}
|
|
3285
|
-
function
|
|
3285
|
+
function Hl(e, t = Wl()) {
|
|
3286
3286
|
return e === "auto" ? t : e;
|
|
3287
3287
|
}
|
|
3288
|
-
var
|
|
3288
|
+
var Vl = /* @__PURE__ */ Symbol("AIPanelWidgetContext");
|
|
3289
3289
|
function hc(e) {
|
|
3290
|
-
da(
|
|
3290
|
+
da(Vl, e);
|
|
3291
3291
|
}
|
|
3292
3292
|
function gn() {
|
|
3293
|
-
const e = Xr(
|
|
3293
|
+
const e = Xr(Vl);
|
|
3294
3294
|
if (!e) throw new Error("useAIPanelWidgetContext must be used within AIPanelWidget");
|
|
3295
3295
|
return e;
|
|
3296
3296
|
}
|
|
3297
|
-
var
|
|
3297
|
+
var jl = /* @__PURE__ */ Qe({
|
|
3298
3298
|
__name: "Frame",
|
|
3299
3299
|
setup(e, { expose: t }) {
|
|
3300
|
-
const i = /* @__PURE__ */ P(null), { frameLoading: n, showEmptyState: s, showError: r, iframeSource:
|
|
3300
|
+
const i = /* @__PURE__ */ P(null), { frameLoading: n, showEmptyState: s, showError: r, iframeSource: l, emptyStateText: o, emptyStateActionText: a, handleEmptyAction: d, handleFrameLoaded: u } = gn();
|
|
3301
3301
|
function f(m, S) {
|
|
3302
3302
|
i.value?.contentWindow && i.value.contentWindow.postMessage(dc(m, S), "*");
|
|
3303
3303
|
}
|
|
@@ -3307,8 +3307,8 @@ var zo = /* @__PURE__ */ Qe({
|
|
|
3307
3307
|
frameLoading: n,
|
|
3308
3308
|
showEmptyState: s,
|
|
3309
3309
|
showError: r,
|
|
3310
|
-
iframeSrc:
|
|
3311
|
-
emptyStateText:
|
|
3310
|
+
iframeSrc: l,
|
|
3311
|
+
emptyStateText: o,
|
|
3312
3312
|
emptyStateActionText: a,
|
|
3313
3313
|
handleEmptyAction: d,
|
|
3314
3314
|
handleFrameLoaded: u,
|
|
@@ -3340,7 +3340,7 @@ function mc(e, t, i, n, s, r) {
|
|
|
3340
3340
|
y("button", {
|
|
3341
3341
|
class: "aipanel-empty-state-btn",
|
|
3342
3342
|
type: "button",
|
|
3343
|
-
onClick: t[0] || (t[0] = (...
|
|
3343
|
+
onClick: t[0] || (t[0] = (...l) => n.handleEmptyAction && n.handleEmptyAction(...l))
|
|
3344
3344
|
}, Pe(n.emptyStateActionText), 1)
|
|
3345
3345
|
])], 2),
|
|
3346
3346
|
y("div", { class: Me(["aipanel-loading-overlay", { visible: n.frameLoading }]) }, [ne(e.$slots, "loading", {}, () => [t[3] || (t[3] = y("div", { class: "aipanel-loading-spinner" }, null, -1)), t[4] || (t[4] = y("div", { class: "aipanel-loading-text" }, "加载中...", -1))])], 2),
|
|
@@ -3351,16 +3351,16 @@ function mc(e, t, i, n, s, r) {
|
|
|
3351
3351
|
src: n.iframeSrc,
|
|
3352
3352
|
allow: "clipboard-write; clipboard-read",
|
|
3353
3353
|
referrerpolicy: "origin",
|
|
3354
|
-
onLoad: t[1] || (t[1] = (...
|
|
3354
|
+
onLoad: t[1] || (t[1] = (...l) => n.handleFrameLoaded && n.handleFrameLoaded(...l))
|
|
3355
3355
|
}, null, 42, gc)])
|
|
3356
3356
|
]);
|
|
3357
3357
|
}
|
|
3358
|
-
|
|
3359
|
-
var _c =
|
|
3358
|
+
jl.render = mc;
|
|
3359
|
+
var _c = jl, zl = /* @__PURE__ */ Qe({
|
|
3360
3360
|
__name: "Header",
|
|
3361
3361
|
setup(e, { expose: t }) {
|
|
3362
3362
|
t();
|
|
3363
|
-
const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled:
|
|
3363
|
+
const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled: l, theme: o, resolvedTheme: a, minimized: d, promptDockVisible: u, reviewPanelVisible: f, reviewPanelEnabled: p, providerSidebar: m, sidebarCollapseControl: S, mode: _, displayMode: v, splitPosition: b, handleToggleSessionList: A, handleToggleSelectMode: k, handleToggleTheme: O, handleToggleDisplayMode: L, handleToggleSplitPosition: K, handleClose: N, handleToggleMinimize: H, handleTogglePromptDock: z, handleToggleReviewPanel: ce, handleRefresh: oe, handleCreateSession: X } = gn(), F = {
|
|
3364
3364
|
bubble: "气泡模式",
|
|
3365
3365
|
split: "分屏模式",
|
|
3366
3366
|
auto: "自动模式",
|
|
@@ -3375,8 +3375,8 @@ var _c = zo, Uo = /* @__PURE__ */ Qe({
|
|
|
3375
3375
|
sessionListTitle: n,
|
|
3376
3376
|
sessionListCollapsed: s,
|
|
3377
3377
|
selectMode: r,
|
|
3378
|
-
selectEnabled:
|
|
3379
|
-
theme:
|
|
3378
|
+
selectEnabled: l,
|
|
3379
|
+
theme: o,
|
|
3380
3380
|
resolvedTheme: a,
|
|
3381
3381
|
minimized: d,
|
|
3382
3382
|
promptDockVisible: u,
|
|
@@ -3396,7 +3396,7 @@ var _c = zo, Uo = /* @__PURE__ */ Qe({
|
|
|
3396
3396
|
handleToggleMinimize: H,
|
|
3397
3397
|
handleTogglePromptDock: z,
|
|
3398
3398
|
handleToggleReviewPanel: ce,
|
|
3399
|
-
handleRefresh:
|
|
3399
|
+
handleRefresh: oe,
|
|
3400
3400
|
handleCreateSession: X,
|
|
3401
3401
|
DISPLAY_MODE_LABELS: F,
|
|
3402
3402
|
DISPLAY_CYCLE: G,
|
|
@@ -3407,12 +3407,12 @@ var _c = zo, Uo = /* @__PURE__ */ Qe({
|
|
|
3407
3407
|
auto: "自动",
|
|
3408
3408
|
light: "亮色",
|
|
3409
3409
|
dark: "暗色"
|
|
3410
|
-
}[
|
|
3410
|
+
}[o.value]} (${a.value})`),
|
|
3411
3411
|
themeIconLabel: U(() => `切换主题 - 当前: ${{
|
|
3412
3412
|
auto: "自动跟随系统",
|
|
3413
3413
|
light: "亮色主题",
|
|
3414
3414
|
dark: "暗色主题"
|
|
3415
|
-
}[
|
|
3415
|
+
}[o.value]}`),
|
|
3416
3416
|
displayModeIconTitle: U(() => `展示模式: ${F[v.value]}`),
|
|
3417
3417
|
displayModeIconLabel: U(() => {
|
|
3418
3418
|
const Y = G.indexOf(v.value), ee = G[(Y + 1) % G.length];
|
|
@@ -3546,7 +3546,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3546
3546
|
title: n.sessionListTitle,
|
|
3547
3547
|
"aria-label": n.sessionListTitle,
|
|
3548
3548
|
"aria-expanded": !n.sessionListCollapsed,
|
|
3549
|
-
onClick: t[0] || (t[0] = (...
|
|
3549
|
+
onClick: t[0] || (t[0] = (...l) => n.handleToggleSessionList && n.handleToggleSessionList(...l))
|
|
3550
3550
|
}, [ne(e.$slots, "session-toggle-icon", {}, () => [t[11] || (t[11] = y("svg", {
|
|
3551
3551
|
viewBox: "0 0 24 24",
|
|
3552
3552
|
width: "16",
|
|
@@ -3566,7 +3566,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3566
3566
|
"aria-label": "选择页面元素",
|
|
3567
3567
|
"aria-pressed": n.selectMode,
|
|
3568
3568
|
disabled: !n.selectEnabled,
|
|
3569
|
-
onClick: t[1] || (t[1] = (...
|
|
3569
|
+
onClick: t[1] || (t[1] = (...l) => n.handleToggleSelectMode && n.handleToggleSelectMode(...l))
|
|
3570
3570
|
}, [ne(e.$slots, "select-icon", {}, () => [t[12] || (t[12] = y("svg", {
|
|
3571
3571
|
viewBox: "0 0 1024 1024",
|
|
3572
3572
|
width: "16",
|
|
@@ -3584,7 +3584,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3584
3584
|
type: "button",
|
|
3585
3585
|
title: n.themeIconTitle,
|
|
3586
3586
|
"aria-label": n.themeIconLabel,
|
|
3587
|
-
onClick: t[2] || (t[2] = (...
|
|
3587
|
+
onClick: t[2] || (t[2] = (...l) => n.handleToggleTheme && n.handleToggleTheme(...l))
|
|
3588
3588
|
}, [ne(e.$slots, "theme-icon", {}, () => [n.theme === "light" ? ($(), j("svg", wc, [...t[13] || (t[13] = [ts('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : n.theme === "dark" ? ($(), j("svg", Cc, [...t[14] || (t[14] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), j("svg", xc, [...t[15] || (t[15] = [ts('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8, Tc),
|
|
3589
3589
|
n.displayMode !== "extension" ? ($(), j("button", {
|
|
3590
3590
|
key: 1,
|
|
@@ -3592,7 +3592,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3592
3592
|
type: "button",
|
|
3593
3593
|
title: n.displayModeIconTitle,
|
|
3594
3594
|
"aria-label": n.displayModeIconLabel,
|
|
3595
|
-
onClick: t[3] || (t[3] = (...
|
|
3595
|
+
onClick: t[3] || (t[3] = (...l) => n.handleToggleDisplayMode && n.handleToggleDisplayMode(...l))
|
|
3596
3596
|
}, [ne(e.$slots, "display-mode-icon", {}, () => [n.displayMode === "bubble" ? ($(), j("svg", Ac, [...t[16] || (t[16] = [
|
|
3597
3597
|
y("circle", {
|
|
3598
3598
|
cx: "12",
|
|
@@ -3666,7 +3666,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3666
3666
|
title: n.reviewPanelVisible ? "收起审查面板" : "展开审查面板",
|
|
3667
3667
|
"aria-label": n.reviewPanelVisible ? "收起审查面板" : "展开审查面板",
|
|
3668
3668
|
"aria-pressed": n.reviewPanelVisible,
|
|
3669
|
-
onClick: t[4] || (t[4] = (...
|
|
3669
|
+
onClick: t[4] || (t[4] = (...l) => n.handleToggleReviewPanel && n.handleToggleReviewPanel(...l))
|
|
3670
3670
|
}, [...t[19] || (t[19] = [y("svg", {
|
|
3671
3671
|
viewBox: "0 0 24 24",
|
|
3672
3672
|
width: "15",
|
|
@@ -3684,7 +3684,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3684
3684
|
type: "button",
|
|
3685
3685
|
title: "刷新面板",
|
|
3686
3686
|
"aria-label": "刷新面板",
|
|
3687
|
-
onClick: t[5] || (t[5] = (...
|
|
3687
|
+
onClick: t[5] || (t[5] = (...l) => n.handleRefresh && n.handleRefresh(...l))
|
|
3688
3688
|
}, [...t[20] || (t[20] = [y("svg", {
|
|
3689
3689
|
viewBox: "0 0 24 24",
|
|
3690
3690
|
width: "16",
|
|
@@ -3700,7 +3700,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3700
3700
|
type: "button",
|
|
3701
3701
|
title: "新建会话",
|
|
3702
3702
|
"aria-label": "新建会话",
|
|
3703
|
-
onClick: t[6] || (t[6] = (...
|
|
3703
|
+
onClick: t[6] || (t[6] = (...l) => n.handleCreateSession && n.handleCreateSession(...l))
|
|
3704
3704
|
}, [...t[21] || (t[21] = [y("svg", {
|
|
3705
3705
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3706
3706
|
width: "16",
|
|
@@ -3718,7 +3718,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3718
3718
|
type: "button",
|
|
3719
3719
|
title: n.splitPositionIconTitle,
|
|
3720
3720
|
"aria-label": n.splitPositionIconLabel,
|
|
3721
|
-
onClick: t[7] || (t[7] = (...
|
|
3721
|
+
onClick: t[7] || (t[7] = (...l) => n.handleToggleSplitPosition && n.handleToggleSplitPosition(...l))
|
|
3722
3722
|
}, [ne(e.$slots, "split-position-icon", {}, () => [n.splitPosition === "right" ? ($(), j("svg", kc, [...t[22] || (t[22] = [y("rect", {
|
|
3723
3723
|
x: "3",
|
|
3724
3724
|
y: "3",
|
|
@@ -3749,7 +3749,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3749
3749
|
title: n.promptDockVisible ? "隐藏对话框" : "显示对话框",
|
|
3750
3750
|
"aria-label": n.promptDockVisible ? "隐藏对话框" : "显示对话框",
|
|
3751
3751
|
"aria-pressed": n.promptDockVisible,
|
|
3752
|
-
onClick: t[8] || (t[8] = (...
|
|
3752
|
+
onClick: t[8] || (t[8] = (...l) => n.handleTogglePromptDock && n.handleTogglePromptDock(...l))
|
|
3753
3753
|
}, [ne(e.$slots, "prompt-dock-icon", {}, () => [t[24] || (t[24] = y("svg", {
|
|
3754
3754
|
viewBox: "0 0 24 24",
|
|
3755
3755
|
width: "14",
|
|
@@ -3766,7 +3766,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3766
3766
|
title: n.minimized ? "展开" : "最小化",
|
|
3767
3767
|
"aria-label": n.minimized ? "展开面板" : "最小化面板",
|
|
3768
3768
|
"aria-pressed": n.minimized,
|
|
3769
|
-
onClick: t[9] || (t[9] = (...
|
|
3769
|
+
onClick: t[9] || (t[9] = (...l) => n.handleToggleMinimize && n.handleToggleMinimize(...l))
|
|
3770
3770
|
}, [ne(e.$slots, "minimize-icon", {}, () => [n.minimized ? ($(), j("svg", $c, [...t[25] || (t[25] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])])) : ($(), j("svg", Wc, [...t[26] || (t[26] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])]))])], 8, Bc)),
|
|
3771
3771
|
n.isSplitMode ? ie("v-if", !0) : ($(), j("button", {
|
|
3772
3772
|
key: 6,
|
|
@@ -3774,7 +3774,7 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3774
3774
|
type: "button",
|
|
3775
3775
|
title: "关闭",
|
|
3776
3776
|
"aria-label": "关闭面板",
|
|
3777
|
-
onClick: t[10] || (t[10] = (...
|
|
3777
|
+
onClick: t[10] || (t[10] = (...l) => n.handleClose && n.handleClose(...l))
|
|
3778
3778
|
}, [ne(e.$slots, "close-icon", {}, () => [t[27] || (t[27] = y("svg", {
|
|
3779
3779
|
viewBox: "0 0 24 24",
|
|
3780
3780
|
width: "14",
|
|
@@ -3787,12 +3787,12 @@ function Hc(e, t, i, n, s, r) {
|
|
|
3787
3787
|
])
|
|
3788
3788
|
]);
|
|
3789
3789
|
}
|
|
3790
|
-
|
|
3791
|
-
var Vc =
|
|
3790
|
+
zl.render = Hc;
|
|
3791
|
+
var Vc = zl, Ul = /* @__PURE__ */ Qe({
|
|
3792
3792
|
__name: "SessionList",
|
|
3793
3793
|
setup(e, { expose: t }) {
|
|
3794
3794
|
t();
|
|
3795
|
-
const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession:
|
|
3795
|
+
const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession: l, handleSelectSession: o, handleDeleteSession: a, sessionKey: d, sessionStates: u } = gn(), f = /* @__PURE__ */ P(!1);
|
|
3796
3796
|
let p = null;
|
|
3797
3797
|
Re(i, () => {
|
|
3798
3798
|
f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
|
|
@@ -3872,8 +3872,8 @@ var Vc = Uo, qo = /* @__PURE__ */ Qe({
|
|
|
3872
3872
|
sessions: n,
|
|
3873
3873
|
loadingSessionList: s,
|
|
3874
3874
|
showSessionListSkeleton: r,
|
|
3875
|
-
handleCreateSession:
|
|
3876
|
-
handleSelectSession:
|
|
3875
|
+
handleCreateSession: l,
|
|
3876
|
+
handleSelectSession: o,
|
|
3877
3877
|
handleDeleteSession: a,
|
|
3878
3878
|
sessionKey: d,
|
|
3879
3879
|
sessionStates: u,
|
|
@@ -3928,7 +3928,7 @@ function ed(e, t, i, n, s, r) {
|
|
|
3928
3928
|
type: "button",
|
|
3929
3929
|
title: "新建会话",
|
|
3930
3930
|
"aria-label": "新建会话",
|
|
3931
|
-
onClick: t[0] || (t[0] = (...
|
|
3931
|
+
onClick: t[0] || (t[0] = (...l) => n.handleCreateSession && n.handleCreateSession(...l))
|
|
3932
3932
|
}, [...t[1] || (t[1] = [y("svg", {
|
|
3933
3933
|
viewBox: "0 0 16 16",
|
|
3934
3934
|
width: "12",
|
|
@@ -3940,107 +3940,107 @@ function ed(e, t, i, n, s, r) {
|
|
|
3940
3940
|
"aria-hidden": "true"
|
|
3941
3941
|
}, [y("path", { d: "M8 3v10M3 8h10" })], -1)])])])),
|
|
3942
3942
|
ie(" Content Skeleton "),
|
|
3943
|
-
n.showSkeleton ? ($(), j("div", zc, [($(), j(ye, null, ei(5, (
|
|
3944
|
-
key: `skeleton-${
|
|
3943
|
+
n.showSkeleton ? ($(), j("div", zc, [($(), j(ye, null, ei(5, (l) => y("div", {
|
|
3944
|
+
key: `skeleton-${l}`,
|
|
3945
3945
|
class: "aipanel-skeleton-item"
|
|
3946
|
-
}, [...t[4] || (t[4] = [y("div", { class: "aipanel-skeleton-title" }, null, -1), y("div", { class: "aipanel-skeleton-meta" }, null, -1)])])), 64))])) : ($(), j(ye, { key: 3 }, [ie(" Content "), y("div", Uc, [n.sessions.length > 0 ? ($(!0), j(ye, { key: 0 }, ei(n.sessions, (
|
|
3947
|
-
key:
|
|
3946
|
+
}, [...t[4] || (t[4] = [y("div", { class: "aipanel-skeleton-title" }, null, -1), y("div", { class: "aipanel-skeleton-meta" }, null, -1)])])), 64))])) : ($(), j(ye, { key: 3 }, [ie(" Content "), y("div", Uc, [n.sessions.length > 0 ? ($(!0), j(ye, { key: 0 }, ei(n.sessions, (l) => ($(), j("div", {
|
|
3947
|
+
key: l[n.sessionKey],
|
|
3948
3948
|
class: Me(["aipanel-session-item", {
|
|
3949
|
-
active:
|
|
3950
|
-
thinking: n.isSessionActive(
|
|
3949
|
+
active: l.active,
|
|
3950
|
+
thinking: n.isSessionActive(l.id)
|
|
3951
3951
|
}]),
|
|
3952
3952
|
role: "option",
|
|
3953
|
-
"aria-selected":
|
|
3954
|
-
onClick: (
|
|
3953
|
+
"aria-selected": l.active,
|
|
3954
|
+
onClick: (o) => n.handleSelectSession(l)
|
|
3955
3955
|
}, [
|
|
3956
3956
|
ie(" 状态指示:pending=琥珀点 > 活跃(thinking/running/子代理)=转圈 > completed=绿点 > idle "),
|
|
3957
|
-
n.isSessionPending(
|
|
3957
|
+
n.isSessionPending(l.id) ? ($(), j("span", {
|
|
3958
3958
|
key: 0,
|
|
3959
3959
|
class: "aipanel-session-state aipanel-session-state-pending",
|
|
3960
|
-
title: n.pendingLabel(
|
|
3961
|
-
}, null, 8, Kc)) : n.isSessionActive(
|
|
3960
|
+
title: n.pendingLabel(l.id)
|
|
3961
|
+
}, null, 8, Kc)) : n.isSessionActive(l.id) ? ($(), j("svg", {
|
|
3962
3962
|
key: 1,
|
|
3963
3963
|
class: "aipanel-session-state aipanel-session-state-ongoing",
|
|
3964
|
-
title: n.runningLabel(
|
|
3964
|
+
title: n.runningLabel(l.id),
|
|
3965
3965
|
viewBox: "0 0 10 10",
|
|
3966
3966
|
width: "10",
|
|
3967
3967
|
height: "10",
|
|
3968
3968
|
"aria-hidden": "true"
|
|
3969
|
-
}, [($(), j(ye, null, ei(n.ONGOING_CELLS, (
|
|
3970
|
-
key:
|
|
3971
|
-
x:
|
|
3972
|
-
y:
|
|
3969
|
+
}, [($(), j(ye, null, ei(n.ONGOING_CELLS, (o) => y("rect", {
|
|
3970
|
+
key: o.x + "-" + o.y,
|
|
3971
|
+
x: o.x,
|
|
3972
|
+
y: o.y,
|
|
3973
3973
|
width: "2",
|
|
3974
3974
|
height: "2",
|
|
3975
|
-
style: Lt({ animationDelay:
|
|
3975
|
+
style: Lt({ animationDelay: o.delay }),
|
|
3976
3976
|
class: "aipanel-session-ongoing-cell"
|
|
3977
|
-
}, null, 12, Yc)), 64))], 8, Gc)) : n.isSessionCompleted(
|
|
3977
|
+
}, null, 12, Yc)), 64))], 8, Gc)) : n.isSessionCompleted(l.id) ? ($(), j("span", Xc)) : ie("v-if", !0),
|
|
3978
3978
|
ie(" 单行省略;原生 title 悬浮显示完整标题(对齐 DS 行 HoverCard 的完整标题能力) "),
|
|
3979
3979
|
y("span", {
|
|
3980
3980
|
class: "aipanel-session-title-text",
|
|
3981
|
-
title:
|
|
3982
|
-
}, Pe(
|
|
3983
|
-
|
|
3981
|
+
title: l.title
|
|
3982
|
+
}, Pe(l.title), 9, Jc),
|
|
3983
|
+
l.meta ? ($(), j("span", Zc, Pe(l.meta), 1)) : ie("v-if", !0),
|
|
3984
3984
|
y("button", {
|
|
3985
3985
|
class: "aipanel-session-delete-btn",
|
|
3986
3986
|
type: "button",
|
|
3987
|
-
"aria-label": `删除会话: ${
|
|
3988
|
-
onClick:
|
|
3987
|
+
"aria-label": `删除会话: ${l.title}`,
|
|
3988
|
+
onClick: Tl((o) => n.handleDeleteSession(l), ["stop"])
|
|
3989
3989
|
}, " × ", 8, Qc)
|
|
3990
3990
|
], 10, qc))), 128)) : ($(), j(ye, { key: 1 }, [ie(" Empty State "), ne(e.$slots, "empty")], 64))])], 2112))
|
|
3991
3991
|
], 2);
|
|
3992
3992
|
}
|
|
3993
|
-
|
|
3994
|
-
var td =
|
|
3993
|
+
Ul.render = ed;
|
|
3994
|
+
var td = Ul, ql = /* @__PURE__ */ Qe({
|
|
3995
3995
|
__name: "SelectedNodes",
|
|
3996
3996
|
setup(e, { expose: t }) {
|
|
3997
3997
|
t();
|
|
3998
|
-
const { selectedElementItems: i, showClearAll: n, handleClickSelectedNode: s, handleRemoveSelectedNode: r, handleClearSelectedNodes:
|
|
3998
|
+
const { selectedElementItems: i, showClearAll: n, handleClickSelectedNode: s, handleRemoveSelectedNode: r, handleClearSelectedNodes: l } = gn(), o = {
|
|
3999
3999
|
items: i,
|
|
4000
4000
|
showClearAll: n,
|
|
4001
4001
|
handleClickSelectedNode: s,
|
|
4002
4002
|
handleRemoveSelectedNode: r,
|
|
4003
|
-
handleClearSelectedNodes:
|
|
4003
|
+
handleClearSelectedNodes: l
|
|
4004
4004
|
};
|
|
4005
|
-
return Object.defineProperty(
|
|
4005
|
+
return Object.defineProperty(o, "__isScriptSetup", {
|
|
4006
4006
|
enumerable: !1,
|
|
4007
4007
|
value: !0
|
|
4008
|
-
}),
|
|
4008
|
+
}), o;
|
|
4009
4009
|
}
|
|
4010
4010
|
}), nd = {
|
|
4011
4011
|
class: "aipanel-selected-nodes",
|
|
4012
4012
|
role: "list",
|
|
4013
4013
|
"aria-label": "已选元素列表"
|
|
4014
|
-
}, id = ["onClick"], sd = { class: "aipanel-node-content" }, rd = { class: "aipanel-node-text" },
|
|
4014
|
+
}, id = ["onClick"], sd = { class: "aipanel-node-content" }, rd = { class: "aipanel-node-text" }, ld = { class: "aipanel-node-file" }, od = ["aria-label", "onClick"];
|
|
4015
4015
|
function ad(e, t, i, n, s, r) {
|
|
4016
4016
|
return $(), j("div", { class: Me(["aipanel-right-toolbar", { collapsed: n.items.length === 0 }]) }, [
|
|
4017
4017
|
t[1] || (t[1] = y("div", { class: "aipanel-selected-nodes-header" }, [y("div", { class: "aipanel-selected-nodes-title" }, "已选节点"), y("div", { class: "aipanel-selected-nodes-desc" }, "选中的节点会在对话时一起发送给助手")], -1)),
|
|
4018
|
-
y("div", nd, [($(!0), j(ye, null, ei(n.items, (
|
|
4019
|
-
key:
|
|
4018
|
+
y("div", nd, [($(!0), j(ye, null, ei(n.items, (l, o) => ($(), j("div", {
|
|
4019
|
+
key: l.key,
|
|
4020
4020
|
class: "aipanel-selected-node",
|
|
4021
4021
|
role: "listitem",
|
|
4022
|
-
onClick: (a) => n.handleClickSelectedNode(
|
|
4023
|
-
}, [y("div", sd, [y("span", rd, Pe(
|
|
4022
|
+
onClick: (a) => n.handleClickSelectedNode(l)
|
|
4023
|
+
}, [y("div", sd, [y("span", rd, Pe(l.description), 1), y("span", ld, Pe(l.panelFileText), 1)]), y("button", {
|
|
4024
4024
|
class: "aipanel-node-remove",
|
|
4025
4025
|
type: "button",
|
|
4026
|
-
"aria-label": `移除元素: ${
|
|
4027
|
-
onClick:
|
|
4028
|
-
item:
|
|
4029
|
-
index:
|
|
4026
|
+
"aria-label": `移除元素: ${l.description}`,
|
|
4027
|
+
onClick: Tl((a) => n.handleRemoveSelectedNode({
|
|
4028
|
+
item: l,
|
|
4029
|
+
index: o,
|
|
4030
4030
|
source: "panel"
|
|
4031
4031
|
}), ["stop"])
|
|
4032
|
-
}, " × ", 8,
|
|
4032
|
+
}, " × ", 8, od)], 8, id))), 128))]),
|
|
4033
4033
|
n.showClearAll && n.items.length > 0 ? ($(), j("button", {
|
|
4034
4034
|
key: 0,
|
|
4035
4035
|
class: "aipanel-clear-all-btn",
|
|
4036
4036
|
type: "button",
|
|
4037
4037
|
"aria-label": "清空所有已选节点",
|
|
4038
|
-
onClick: t[0] || (t[0] = (...
|
|
4038
|
+
onClick: t[0] || (t[0] = (...l) => n.handleClearSelectedNodes && n.handleClearSelectedNodes(...l))
|
|
4039
4039
|
}, " 一键清空 ")) : ie("v-if", !0)
|
|
4040
4040
|
], 2);
|
|
4041
4041
|
}
|
|
4042
|
-
|
|
4043
|
-
var ud =
|
|
4042
|
+
ql.render = ad;
|
|
4043
|
+
var ud = ql, Kl = /* @__PURE__ */ Qe({
|
|
4044
4044
|
name: "ResizeHandle",
|
|
4045
4045
|
__name: "ResizeHandle",
|
|
4046
4046
|
props: {
|
|
@@ -4072,13 +4072,13 @@ var ud = Ko, Go = /* @__PURE__ */ Qe({
|
|
|
4072
4072
|
],
|
|
4073
4073
|
setup(e, { expose: t, emit: i }) {
|
|
4074
4074
|
t();
|
|
4075
|
-
const n = e, s = i, r = /* @__PURE__ */ P(!1),
|
|
4076
|
-
m.preventDefault(), r.value = !0,
|
|
4075
|
+
const n = e, s = i, r = /* @__PURE__ */ P(!1), l = /* @__PURE__ */ P(0), o = /* @__PURE__ */ P(0), a = (m) => {
|
|
4076
|
+
m.preventDefault(), r.value = !0, l.value = m.clientX, o.value = n.width, s("resize-start"), document.addEventListener("mousemove", d), document.addEventListener("mouseup", u);
|
|
4077
4077
|
}, d = (m) => {
|
|
4078
4078
|
if (!r.value) return;
|
|
4079
4079
|
let S;
|
|
4080
|
-
n.position === "right" ? S =
|
|
4081
|
-
const _ = Math.max(n.minWidth, Math.min(n.maxWidth,
|
|
4080
|
+
n.position === "right" ? S = l.value - m.clientX : S = m.clientX - l.value;
|
|
4081
|
+
const _ = Math.max(n.minWidth, Math.min(n.maxWidth, o.value + S));
|
|
4082
4082
|
s("resize", _);
|
|
4083
4083
|
}, u = () => {
|
|
4084
4084
|
r.value = !1, s("resize-end"), document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", u);
|
|
@@ -4092,8 +4092,8 @@ var ud = Ko, Go = /* @__PURE__ */ Qe({
|
|
|
4092
4092
|
props: n,
|
|
4093
4093
|
emit: s,
|
|
4094
4094
|
isResizing: r,
|
|
4095
|
-
startX:
|
|
4096
|
-
startWidth:
|
|
4095
|
+
startX: l,
|
|
4096
|
+
startWidth: o,
|
|
4097
4097
|
handleMouseDown: a,
|
|
4098
4098
|
handleMouseMove: d,
|
|
4099
4099
|
handleMouseUp: u,
|
|
@@ -4115,8 +4115,8 @@ function cd(e, t, i, n, s, r) {
|
|
|
4115
4115
|
onDblclick: n.handleDoubleClick
|
|
4116
4116
|
}, null, 34);
|
|
4117
4117
|
}
|
|
4118
|
-
|
|
4119
|
-
var dd =
|
|
4118
|
+
Kl.render = cd;
|
|
4119
|
+
var dd = Kl, Gl = /* @__PURE__ */ Qe({
|
|
4120
4120
|
name: "ChatPanel",
|
|
4121
4121
|
__name: "ChatPanel",
|
|
4122
4122
|
props: {
|
|
@@ -4211,23 +4211,23 @@ var dd = Go, Yo = /* @__PURE__ */ Qe({
|
|
|
4211
4211
|
"toggle"
|
|
4212
4212
|
],
|
|
4213
4213
|
setup(e, { expose: t, emit: i }) {
|
|
4214
|
-
|
|
4214
|
+
El((m) => ({
|
|
4215
4215
|
"-animationOrigin.x": m.animationOrigin.x,
|
|
4216
4216
|
"-animationOrigin.y": m.animationOrigin.y
|
|
4217
4217
|
}));
|
|
4218
|
-
const n = e, s = i, r =
|
|
4219
|
-
|
|
4218
|
+
const n = e, s = i, r = el(), l = /* @__PURE__ */ P(null), o = (m, S) => {
|
|
4219
|
+
l.value?.sendMessageToIframe(m, S);
|
|
4220
4220
|
};
|
|
4221
4221
|
t({
|
|
4222
|
-
sendMessageToIframe:
|
|
4223
|
-
frameRef:
|
|
4222
|
+
sendMessageToIframe: o,
|
|
4223
|
+
frameRef: l
|
|
4224
4224
|
});
|
|
4225
4225
|
const p = {
|
|
4226
4226
|
props: n,
|
|
4227
4227
|
emit: s,
|
|
4228
4228
|
slots: r,
|
|
4229
|
-
frameRef:
|
|
4230
|
-
sendMessageToIframe:
|
|
4229
|
+
frameRef: l,
|
|
4230
|
+
sendMessageToIframe: o,
|
|
4231
4231
|
handleResizeStart: () => {
|
|
4232
4232
|
s("resize-start");
|
|
4233
4233
|
},
|
|
@@ -4349,7 +4349,7 @@ function yd(e, t, i, n, s, r) {
|
|
|
4349
4349
|
"stroke-linejoin": "round"
|
|
4350
4350
|
}, null, -1)])])) : ie("v-if", !0)
|
|
4351
4351
|
])], 10, fd)) : ie("v-if", !0),
|
|
4352
|
-
Ne(n.Header, null,
|
|
4352
|
+
Ne(n.Header, null, oi({ _: 2 }, [
|
|
4353
4353
|
n.slots["session-toggle-icon"] ? {
|
|
4354
4354
|
name: "session-toggle-icon",
|
|
4355
4355
|
fn: Ce(() => [ne(e.$slots, "session-toggle-icon")]),
|
|
@@ -4371,7 +4371,7 @@ function yd(e, t, i, n, s, r) {
|
|
|
4371
4371
|
empty: Ce(() => [ne(e.$slots, "sessions-empty", {}, () => [t[4] || (t[4] = y("div", { class: "aipanel-session-empty" }, "暂无会话", -1))])]),
|
|
4372
4372
|
_: 3
|
|
4373
4373
|
})),
|
|
4374
|
-
Ne(n.Frame, { ref: "frameRef" },
|
|
4374
|
+
Ne(n.Frame, { ref: "frameRef" }, oi({ _: 2 }, [
|
|
4375
4375
|
n.slots["empty-state"] ? {
|
|
4376
4376
|
name: "empty-state",
|
|
4377
4377
|
fn: Ce(() => [ne(e.$slots, "empty-state")]),
|
|
@@ -4397,8 +4397,8 @@ function yd(e, t, i, n, s, r) {
|
|
|
4397
4397
|
])
|
|
4398
4398
|
], 6);
|
|
4399
4399
|
}
|
|
4400
|
-
|
|
4401
|
-
var bd =
|
|
4400
|
+
Gl.render = yd;
|
|
4401
|
+
var bd = Gl, Yl = /* @__PURE__ */ Qe({
|
|
4402
4402
|
__name: "SelectHint",
|
|
4403
4403
|
setup(e, { expose: t }) {
|
|
4404
4404
|
t();
|
|
@@ -4415,8 +4415,8 @@ var bd = Yo, Xo = /* @__PURE__ */ Qe({
|
|
|
4415
4415
|
function Ed(e, t, i, n, s, r) {
|
|
4416
4416
|
return $(), j("div", { class: Me(["aipanel-select-mode-hint", { visible: n.visible }]) }, [t[0] || (t[0] = ts('<span class="aipanel-hint-main"><span class="aipanel-hint-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"></circle><circle cx="12" cy="12" r="2.5" fill="currentColor"></circle><line x1="12" y1="2" x2="12" y2="5"></line><line x1="12" y1="19" x2="12" y2="22"></line><line x1="2" y1="12" x2="5" y2="12"></line><line x1="19" y1="12" x2="22" y2="12"></line></svg></span><span class="aipanel-hint-text">选择模式已开启 · 点击元素进行选择</span></span>', 1)), y("span", Sd, Pe(n.shortcutLabel), 1)], 2);
|
|
4417
4417
|
}
|
|
4418
|
-
|
|
4419
|
-
var Td =
|
|
4418
|
+
Yl.render = Ed;
|
|
4419
|
+
var Td = Yl, Xl = /* @__PURE__ */ Qe({
|
|
4420
4420
|
name: "FloatingBubble",
|
|
4421
4421
|
__name: "FloatingBubble",
|
|
4422
4422
|
props: {
|
|
@@ -4454,47 +4454,47 @@ var Td = Xo, Jo = /* @__PURE__ */ Qe({
|
|
|
4454
4454
|
"drag-end"
|
|
4455
4455
|
],
|
|
4456
4456
|
setup(e, { expose: t, emit: i }) {
|
|
4457
|
-
const n = e, s = i, r = /* @__PURE__ */ P(null),
|
|
4457
|
+
const n = e, s = i, r = /* @__PURE__ */ P(null), l = /* @__PURE__ */ P({
|
|
4458
4458
|
x: 0,
|
|
4459
4459
|
y: 0,
|
|
4460
4460
|
width: 0,
|
|
4461
4461
|
height: 0
|
|
4462
|
-
}),
|
|
4462
|
+
}), o = (F) => F !== null && typeof F == "object", a = U(() => o(n.gap) ? n.gap.x : n.gap), d = U(() => o(n.gap) ? n.gap.y : n.gap), u = /* @__PURE__ */ P(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ P(typeof window < "u" ? window.innerHeight : 0), p = U(() => ({
|
|
4463
4463
|
top: d.value,
|
|
4464
|
-
right: u.value -
|
|
4465
|
-
bottom: f.value -
|
|
4464
|
+
right: u.value - l.value.width - a.value,
|
|
4465
|
+
bottom: f.value - l.value.height - d.value,
|
|
4466
4466
|
left: a.value
|
|
4467
4467
|
})), m = (F, G) => F.reduce((Q, Y) => Math.abs(Q - G) < Math.abs(Y - G) ? Q : Y), S = () => {
|
|
4468
4468
|
if (n.magnetic === "x")
|
|
4469
|
-
if (b.value === "left")
|
|
4470
|
-
else if (b.value === "right")
|
|
4469
|
+
if (b.value === "left") l.value.x = p.value.left;
|
|
4470
|
+
else if (b.value === "right") l.value.x = p.value.right;
|
|
4471
4471
|
else {
|
|
4472
|
-
const F = m([p.value.left, p.value.right],
|
|
4473
|
-
|
|
4472
|
+
const F = m([p.value.left, p.value.right], l.value.x);
|
|
4473
|
+
l.value.x = F, b.value = F === p.value.left ? "left" : "right";
|
|
4474
4474
|
}
|
|
4475
4475
|
if (n.magnetic === "y") {
|
|
4476
|
-
const F = m([p.value.top, p.value.bottom],
|
|
4477
|
-
|
|
4476
|
+
const F = m([p.value.top, p.value.bottom], l.value.y);
|
|
4477
|
+
l.value.y = F;
|
|
4478
4478
|
}
|
|
4479
4479
|
}, _ = /* @__PURE__ */ P(!1), v = /* @__PURE__ */ P(!1), b = /* @__PURE__ */ P(null), A = U(() => {
|
|
4480
4480
|
const F = {};
|
|
4481
|
-
return F.transform = `translate3d(${`${
|
|
4481
|
+
return F.transform = `translate3d(${`${l.value.x}px`}, ${`${l.value.y}px`}, 0)`, _.value || !v.value ? F.transition = "none" : F.transition = "transform 0.3s ease", F;
|
|
4482
4482
|
}), k = () => {
|
|
4483
4483
|
if (!r.value || typeof window > "u") return;
|
|
4484
4484
|
const F = r.value.getBoundingClientRect(), { offset: G } = n;
|
|
4485
4485
|
let Q = G ? G.x : u.value - F.width - a.value, Y = G ? G.y : f.value - F.height - d.value;
|
|
4486
4486
|
const ee = u.value - F.width - a.value, Fe = f.value - F.height - d.value;
|
|
4487
4487
|
Q < a.value && (Q = a.value), Q > ee && (Q = ee), Y < d.value && (Y = d.value), Y > Fe && (Y = Fe);
|
|
4488
|
-
const Je =
|
|
4489
|
-
if (
|
|
4488
|
+
const Je = l.value.x, Be = l.value.y;
|
|
4489
|
+
if (l.value = {
|
|
4490
4490
|
x: Q,
|
|
4491
4491
|
y: Y,
|
|
4492
4492
|
width: F.width,
|
|
4493
4493
|
height: F.height
|
|
4494
|
-
}, !_.value && (n.magnetic === "x" && b.value ? b.value === "left" ?
|
|
4494
|
+
}, !_.value && (n.magnetic === "x" && b.value ? b.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : S(), l.value.x !== Je || l.value.y !== Be)) {
|
|
4495
4495
|
const ke = {
|
|
4496
|
-
x:
|
|
4497
|
-
y:
|
|
4496
|
+
x: l.value.x,
|
|
4497
|
+
y: l.value.y
|
|
4498
4498
|
};
|
|
4499
4499
|
s("update:offset", ke), s("offset-change", ke);
|
|
4500
4500
|
}
|
|
@@ -4518,51 +4518,51 @@ var Td = Xo, Jo = /* @__PURE__ */ Qe({
|
|
|
4518
4518
|
};
|
|
4519
4519
|
let L = 0, K = 0;
|
|
4520
4520
|
const N = (F) => {
|
|
4521
|
-
O.start(F), _.value = !0, L =
|
|
4521
|
+
O.start(F), _.value = !0, L = l.value.x, K = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in F || (window.addEventListener("mousemove", H, { passive: !1 }), window.addEventListener("mouseup", z));
|
|
4522
4522
|
}, H = (F) => {
|
|
4523
4523
|
F.cancelable && F.preventDefault();
|
|
4524
4524
|
const G = O.isTap.value;
|
|
4525
4525
|
if (O.move(F), G && !O.isTap.value && s("drag-start"), n.axis !== "lock" && !O.isTap.value) {
|
|
4526
4526
|
if (n.axis === "x" || n.axis === "xy") {
|
|
4527
4527
|
let Y = L + O.deltaX.value;
|
|
4528
|
-
Y < p.value.left && (Y = p.value.left), Y > p.value.right && (Y = p.value.right),
|
|
4528
|
+
Y < p.value.left && (Y = p.value.left), Y > p.value.right && (Y = p.value.right), l.value.x = Y;
|
|
4529
4529
|
}
|
|
4530
4530
|
if (n.axis === "y" || n.axis === "xy") {
|
|
4531
4531
|
let Y = K + O.deltaY.value;
|
|
4532
|
-
Y < p.value.top && (Y = p.value.top), Y > p.value.bottom && (Y = p.value.bottom),
|
|
4532
|
+
Y < p.value.top && (Y = p.value.top), Y > p.value.bottom && (Y = p.value.bottom), l.value.y = Y;
|
|
4533
4533
|
}
|
|
4534
4534
|
const Q = {
|
|
4535
|
-
x:
|
|
4536
|
-
y:
|
|
4535
|
+
x: l.value.x,
|
|
4536
|
+
y: l.value.y
|
|
4537
4537
|
};
|
|
4538
4538
|
s("update:offset", Q);
|
|
4539
4539
|
}
|
|
4540
4540
|
}, z = (F) => {
|
|
4541
4541
|
_.value = !1, document.body.classList.remove("floating-bubble-dragging"), F && !("touches" in F) && F.type === "mouseup" && (window.removeEventListener("mousemove", H), window.removeEventListener("mouseup", z)), requestAnimationFrame(() => {
|
|
4542
4542
|
if (n.magnetic === "x" && !O.isTap.value) {
|
|
4543
|
-
const G =
|
|
4543
|
+
const G = l.value.x + l.value.width / 2, Q = u.value / 2;
|
|
4544
4544
|
b.value = G < Q ? "left" : "right";
|
|
4545
4545
|
}
|
|
4546
4546
|
if (S(), !O.isTap.value) {
|
|
4547
4547
|
s("drag-end");
|
|
4548
4548
|
const G = {
|
|
4549
|
-
x:
|
|
4550
|
-
y:
|
|
4549
|
+
x: l.value.x,
|
|
4550
|
+
y: l.value.y
|
|
4551
4551
|
};
|
|
4552
4552
|
s("update:offset", G), (L !== G.x || K !== G.y) && s("offset-change", G);
|
|
4553
4553
|
}
|
|
4554
4554
|
});
|
|
4555
4555
|
}, ce = (F) => {
|
|
4556
4556
|
O.isTap.value ? s("click", F) : F.stopPropagation();
|
|
4557
|
-
},
|
|
4557
|
+
}, oe = () => {
|
|
4558
4558
|
typeof window < "u" && (u.value = window.innerWidth, f.value = window.innerHeight);
|
|
4559
4559
|
};
|
|
4560
4560
|
et(() => {
|
|
4561
4561
|
k(), requestAnimationFrame(() => {
|
|
4562
4562
|
v.value = !0;
|
|
4563
|
-
}), typeof window < "u" && window.addEventListener("resize",
|
|
4563
|
+
}), typeof window < "u" && window.addEventListener("resize", oe), r.value && r.value.addEventListener("touchmove", H, { passive: !1 });
|
|
4564
4564
|
}), Xe(() => {
|
|
4565
|
-
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize",
|
|
4565
|
+
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", oe), window.removeEventListener("mousemove", H), window.removeEventListener("mouseup", z)), r.value && r.value.removeEventListener("touchmove", H);
|
|
4566
4566
|
}), Re([
|
|
4567
4567
|
u,
|
|
4568
4568
|
f,
|
|
@@ -4571,15 +4571,15 @@ var Td = Xo, Jo = /* @__PURE__ */ Qe({
|
|
|
4571
4571
|
], k), Re(() => n.offset, (F) => {
|
|
4572
4572
|
F && (b.value = null), k();
|
|
4573
4573
|
}, { deep: !0 }), t({ offset: U(() => ({
|
|
4574
|
-
x:
|
|
4575
|
-
y:
|
|
4574
|
+
x: l.value.x,
|
|
4575
|
+
y: l.value.y
|
|
4576
4576
|
})) });
|
|
4577
4577
|
const X = {
|
|
4578
4578
|
props: n,
|
|
4579
4579
|
emit: s,
|
|
4580
4580
|
rootRef: r,
|
|
4581
|
-
state:
|
|
4582
|
-
isObject:
|
|
4581
|
+
state: l,
|
|
4582
|
+
isObject: o,
|
|
4583
4583
|
gapX: a,
|
|
4584
4584
|
gapY: d,
|
|
4585
4585
|
windowWidth: u,
|
|
@@ -4609,7 +4609,7 @@ var Td = Xo, Jo = /* @__PURE__ */ Qe({
|
|
|
4609
4609
|
onTouchMove: H,
|
|
4610
4610
|
onTouchEnd: z,
|
|
4611
4611
|
onClick: ce,
|
|
4612
|
-
handleResize:
|
|
4612
|
+
handleResize: oe
|
|
4613
4613
|
};
|
|
4614
4614
|
return Object.defineProperty(X, "__isScriptSetup", {
|
|
4615
4615
|
enumerable: !1,
|
|
@@ -4629,8 +4629,8 @@ function wd(e, t, i, n, s, r) {
|
|
|
4629
4629
|
onClickCapture: n.onClick
|
|
4630
4630
|
}, [ne(e.$slots, "default")], 36)], 8, ["to"]);
|
|
4631
4631
|
}
|
|
4632
|
-
|
|
4633
|
-
var Cd =
|
|
4632
|
+
Xl.render = wd;
|
|
4633
|
+
var Cd = Xl, xd = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5390" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
|
|
4634
4634
|
<defs>
|
|
4635
4635
|
<linearGradient id="aipanel-logo-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4636
4636
|
<stop offset="0%" style="stop-color:#667eea"/>
|
|
@@ -4643,7 +4643,7 @@ var Cd = Jo, xd = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" v
|
|
|
4643
4643
|
<path d="M640 448m-64 0a64 64 0 1 0 128 0a64 64 0 1 0 -128 0Z" fill="url(#aipanel-logo-gradient)" p-id="5393"/>
|
|
4644
4644
|
</g>
|
|
4645
4645
|
</svg>
|
|
4646
|
-
`,
|
|
4646
|
+
`, Jl = /* @__PURE__ */ Qe({
|
|
4647
4647
|
__name: "AIPanelLogo",
|
|
4648
4648
|
props: { size: {
|
|
4649
4649
|
type: [String, Number],
|
|
@@ -4658,10 +4658,10 @@ var Cd = Jo, xd = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" v
|
|
|
4658
4658
|
gradientId: s,
|
|
4659
4659
|
rendered: U(() => xd.replace('id="aipanel-logo-gradient"', `id="${s}"`).replace(/url\(#aipanel-logo-gradient\)/g, `url(#${s})`)),
|
|
4660
4660
|
sizeStyle: U(() => {
|
|
4661
|
-
const
|
|
4661
|
+
const l = typeof i.size == "number" ? `${i.size}px` : i.size;
|
|
4662
4662
|
return {
|
|
4663
|
-
width:
|
|
4664
|
-
height:
|
|
4663
|
+
width: l,
|
|
4664
|
+
height: l
|
|
4665
4665
|
};
|
|
4666
4666
|
})
|
|
4667
4667
|
};
|
|
@@ -4681,12 +4681,12 @@ function Ad(e, t, i, n, s, r) {
|
|
|
4681
4681
|
innerHTML: n.rendered
|
|
4682
4682
|
}, null, 12, Id);
|
|
4683
4683
|
}
|
|
4684
|
-
|
|
4685
|
-
var Md =
|
|
4684
|
+
Jl.render = Ad;
|
|
4685
|
+
var Md = Jl, Zl = /* @__PURE__ */ Qe({
|
|
4686
4686
|
__name: "Trigger",
|
|
4687
4687
|
emits: ["drag-start", "drag-end"],
|
|
4688
4688
|
setup(e, { expose: t, emit: i }) {
|
|
4689
|
-
const { buttonActive: n, open: s, hotkeyLabel: r, thinking:
|
|
4689
|
+
const { buttonActive: n, open: s, hotkeyLabel: r, thinking: l, resolvedTheme: o, handleToggle: a, bubbleOffset: d, handleBubbleOffsetChange: u } = gn(), f = /* @__PURE__ */ P(d.value), p = i, m = (_) => {
|
|
4690
4690
|
f.value = _, u(_);
|
|
4691
4691
|
};
|
|
4692
4692
|
Re(d, (_) => {
|
|
@@ -4696,8 +4696,8 @@ var Md = Zo, Qo = /* @__PURE__ */ Qe({
|
|
|
4696
4696
|
active: n,
|
|
4697
4697
|
open: s,
|
|
4698
4698
|
hotkeyLabel: r,
|
|
4699
|
-
thinking:
|
|
4700
|
-
resolvedTheme:
|
|
4699
|
+
thinking: l,
|
|
4700
|
+
resolvedTheme: o,
|
|
4701
4701
|
handleToggle: a,
|
|
4702
4702
|
bubbleOffset: d,
|
|
4703
4703
|
handleBubbleOffsetChange: u,
|
|
@@ -4717,14 +4717,14 @@ function Pd(e, t, i, n, s, r) {
|
|
|
4717
4717
|
return $(), gt(n.FloatingBubble, {
|
|
4718
4718
|
ref: "bubbleRef",
|
|
4719
4719
|
offset: n.offset,
|
|
4720
|
-
"onUpdate:offset": t[0] || (t[0] = (
|
|
4720
|
+
"onUpdate:offset": t[0] || (t[0] = (l) => n.offset = l),
|
|
4721
4721
|
axis: "xy",
|
|
4722
4722
|
magnetic: "x",
|
|
4723
4723
|
gap: 24,
|
|
4724
4724
|
onClick: n.handleToggle,
|
|
4725
4725
|
onOffsetChange: n.handleOffsetChange,
|
|
4726
|
-
onDragStart: t[1] || (t[1] = (
|
|
4727
|
-
onDragEnd: t[2] || (t[2] = (
|
|
4726
|
+
onDragStart: t[1] || (t[1] = (l) => n.emit("drag-start")),
|
|
4727
|
+
onDragEnd: t[2] || (t[2] = (l) => n.emit("drag-end"))
|
|
4728
4728
|
}, {
|
|
4729
4729
|
default: Ce(() => [y("button", {
|
|
4730
4730
|
class: Me(["aipanel-button", {
|
|
@@ -4740,8 +4740,8 @@ function Pd(e, t, i, n, s, r) {
|
|
|
4740
4740
|
_: 3
|
|
4741
4741
|
}, 8, ["offset", "onClick"]);
|
|
4742
4742
|
}
|
|
4743
|
-
|
|
4744
|
-
var Rd =
|
|
4743
|
+
Zl.render = Pd;
|
|
4744
|
+
var Rd = Zl;
|
|
4745
4745
|
function Ld(e, t) {
|
|
4746
4746
|
return e.filePath && e.line ? `${e.filePath}:${e.line}:${e.column ?? 0}` : `${e.description}-${t}`;
|
|
4747
4747
|
}
|
|
@@ -4750,7 +4750,7 @@ function Nd(e) {
|
|
|
4750
4750
|
}
|
|
4751
4751
|
function kd(e) {
|
|
4752
4752
|
const t = e.filePath?.split("/").pop() || "未知文件", i = e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : "";
|
|
4753
|
-
return `${e.innerText?.trim() ? `${
|
|
4753
|
+
return `${e.innerText?.trim() ? `${Dl(e.innerText.trim(), 30)} · ` : ""}${t}${i}`;
|
|
4754
4754
|
}
|
|
4755
4755
|
function Dd(e) {
|
|
4756
4756
|
const t = U(() => e.selectMode.value), i = U(() => (e.selectedElements.value || []).map((a, d) => ({
|
|
@@ -4802,38 +4802,31 @@ function Dd(e) {
|
|
|
4802
4802
|
}, 2e3);
|
|
4803
4803
|
}
|
|
4804
4804
|
}
|
|
4805
|
-
function
|
|
4805
|
+
function l(a, d, u) {
|
|
4806
4806
|
e.onRemoveSelectedNode({
|
|
4807
4807
|
element: a.element,
|
|
4808
4808
|
index: d,
|
|
4809
4809
|
source: u
|
|
4810
4810
|
});
|
|
4811
4811
|
}
|
|
4812
|
-
async function
|
|
4812
|
+
async function o() {
|
|
4813
4813
|
!e.selectedElements.value || e.selectedElements.value.length === 0 || await e.showConfirmDialog(`确定要清空所有 ${e.selectedElements.value.length} 个已选节点吗?`) && e.onClearSelectedNodes();
|
|
4814
4814
|
}
|
|
4815
4815
|
return {
|
|
4816
4816
|
bubbleVisible: t,
|
|
4817
4817
|
hasSelectedElements: n,
|
|
4818
4818
|
selectedElementItems: i,
|
|
4819
|
-
handleClearSelectedNodes:
|
|
4819
|
+
handleClearSelectedNodes: o,
|
|
4820
4820
|
handleClickSelectedNode: r,
|
|
4821
|
-
handleRemoveSelectedNode:
|
|
4821
|
+
handleRemoveSelectedNode: l,
|
|
4822
4822
|
handleToggleSelectMode: s
|
|
4823
4823
|
};
|
|
4824
4824
|
}
|
|
4825
4825
|
function Fd(e) {
|
|
4826
4826
|
const t = new Date(e).getTime();
|
|
4827
4827
|
if (Number.isNaN(t)) return "";
|
|
4828
|
-
const i = Date.now() - t;
|
|
4829
|
-
|
|
4830
|
-
const n = 6e4, s = 60 * n, r = 24 * s;
|
|
4831
|
-
if (i < n) return "刚刚";
|
|
4832
|
-
if (i < s) return `${Math.floor(i / n)} 分钟前`;
|
|
4833
|
-
if (i < r) return `${Math.floor(i / s)} 小时前`;
|
|
4834
|
-
if (i < 7 * r) return `${Math.floor(i / r)} 天前`;
|
|
4835
|
-
const o = new Date(t);
|
|
4836
|
-
return `${o.toLocaleDateString()} ${o.toLocaleTimeString()}`;
|
|
4828
|
+
const i = Math.max(0, Date.now() - t), n = 6e4, s = 60 * n, r = 24 * s;
|
|
4829
|
+
return i < n ? "刚刚" : i < s ? `${Math.floor(i / n)}分钟` : i < r ? `${Math.floor(i / s)}小时` : i < 30 * r ? `${Math.floor(i / r)}天` : i < 365 * r ? `${Math.floor(i / (30 * r))}个月` : `${Math.floor(i / (365 * r))}年`;
|
|
4837
4830
|
}
|
|
4838
4831
|
function Bd(e) {
|
|
4839
4832
|
return e.meta ? e.meta : e.updatedAt ? Fd(e.updatedAt) : "";
|
|
@@ -4868,13 +4861,13 @@ function Wd(e) {
|
|
|
4868
4861
|
const t = /* @__PURE__ */ P("light");
|
|
4869
4862
|
let i = null, n = null;
|
|
4870
4863
|
et(() => {
|
|
4871
|
-
typeof window > "u" || (t.value =
|
|
4864
|
+
typeof window > "u" || (t.value = Wl(), i = window.matchMedia("(prefers-color-scheme: dark)"), n = (S) => {
|
|
4872
4865
|
t.value = S.matches ? "dark" : "light";
|
|
4873
4866
|
}, i.addEventListener("change", n));
|
|
4874
4867
|
}), Xe(() => {
|
|
4875
4868
|
i && n && i.removeEventListener("change", n);
|
|
4876
4869
|
});
|
|
4877
|
-
const s = U(() =>
|
|
4870
|
+
const s = U(() => Hl(e.theme.value, t.value)), r = U(() => ["aipanel-widget", `aipanel-theme-${s.value}`]), l = U(() => !!(e.open.value || e.selectMode.value)), o = U(() => e.iframeSrc.value || "about:blank"), a = U(() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表");
|
|
4878
4871
|
function d() {
|
|
4879
4872
|
if (e.selectMode.value) {
|
|
4880
4873
|
e.onToggleSelectMode?.(!1);
|
|
@@ -4897,9 +4890,9 @@ function Wd(e) {
|
|
|
4897
4890
|
e.onToggleTheme?.(_);
|
|
4898
4891
|
}
|
|
4899
4892
|
return {
|
|
4900
|
-
buttonActive:
|
|
4893
|
+
buttonActive: l,
|
|
4901
4894
|
containerClasses: r,
|
|
4902
|
-
iframeSource:
|
|
4895
|
+
iframeSource: o,
|
|
4903
4896
|
sessionListTitle: a,
|
|
4904
4897
|
resolvedTheme: s,
|
|
4905
4898
|
handleClose: u,
|
|
@@ -4909,7 +4902,7 @@ function Wd(e) {
|
|
|
4909
4902
|
handleToggleTheme: m
|
|
4910
4903
|
};
|
|
4911
4904
|
}
|
|
4912
|
-
function
|
|
4905
|
+
function Ql(e) {
|
|
4913
4906
|
return typeof e == "object" && e !== null && e.nodeType === Node.ELEMENT_NODE;
|
|
4914
4907
|
}
|
|
4915
4908
|
var Vn = {
|
|
@@ -4955,13 +4948,13 @@ function xn(e) {
|
|
|
4955
4948
|
function zd(e) {
|
|
4956
4949
|
return Array.isArray(e) ? e.filter((t) => Hd(xe, t)) : [];
|
|
4957
4950
|
}
|
|
4958
|
-
function
|
|
4951
|
+
function eo(e) {
|
|
4959
4952
|
return e instanceof RegExp;
|
|
4960
4953
|
}
|
|
4961
4954
|
function Ud(e) {
|
|
4962
|
-
return ["string", "function"].includes(typeof e) ||
|
|
4955
|
+
return ["string", "function"].includes(typeof e) || eo(e);
|
|
4963
4956
|
}
|
|
4964
|
-
function
|
|
4957
|
+
function or(e) {
|
|
4965
4958
|
return Array.isArray(e) ? e.filter(Ud) : [];
|
|
4966
4959
|
}
|
|
4967
4960
|
function qd(e) {
|
|
@@ -4975,7 +4968,7 @@ function ar(e) {
|
|
|
4975
4968
|
];
|
|
4976
4969
|
return qd(e) && t.includes(e.nodeType);
|
|
4977
4970
|
}
|
|
4978
|
-
function
|
|
4971
|
+
function to(e, t) {
|
|
4979
4972
|
if (ar(e))
|
|
4980
4973
|
return e.contains(t) || fi("element root mismatch", "Provided root does not contain the element. This will most likely result in producing a fallback selector using element's real root node. If you plan to use the selector using provided root (e.g. `root.querySelector`), it will not work as intended."), e;
|
|
4981
4974
|
const i = t.getRootNode({ composed: !1 });
|
|
@@ -4988,9 +4981,9 @@ function Kd(e, t = {}) {
|
|
|
4988
4981
|
const i = Object.assign(Object.assign({}, jd), t);
|
|
4989
4982
|
return {
|
|
4990
4983
|
selectors: zd(i.selectors),
|
|
4991
|
-
whitelist:
|
|
4992
|
-
blacklist:
|
|
4993
|
-
root:
|
|
4984
|
+
whitelist: or(i.whitelist),
|
|
4985
|
+
blacklist: or(i.blacklist),
|
|
4986
|
+
root: to(i.root, e),
|
|
4994
4987
|
combineWithinSelector: xn(i.combineWithinSelector),
|
|
4995
4988
|
combineBetweenSelectors: xn(i.combineBetweenSelectors),
|
|
4996
4989
|
includeTag: xn(i.includeTag),
|
|
@@ -5013,7 +5006,7 @@ function Yd(e) {
|
|
|
5013
5006
|
}
|
|
5014
5007
|
function hi(e) {
|
|
5015
5008
|
const t = e.map((i) => {
|
|
5016
|
-
if (
|
|
5009
|
+
if (eo(i)) return (n) => i.test(n);
|
|
5017
5010
|
if (typeof i == "function") return (n) => {
|
|
5018
5011
|
const s = i(n);
|
|
5019
5012
|
return typeof s != "boolean" ? (fi("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", i), !1) : s;
|
|
@@ -5027,24 +5020,24 @@ function hi(e) {
|
|
|
5027
5020
|
return (i) => t.some((n) => n(i));
|
|
5028
5021
|
}
|
|
5029
5022
|
function Es(e, t, i) {
|
|
5030
|
-
const n = Array.from(
|
|
5023
|
+
const n = Array.from(to(i, e[0]).querySelectorAll(t));
|
|
5031
5024
|
return n.length === e.length && e.every((s) => n.includes(s));
|
|
5032
5025
|
}
|
|
5033
|
-
function
|
|
5026
|
+
function no(e, t) {
|
|
5034
5027
|
t = t ?? Ts(e);
|
|
5035
5028
|
const i = [];
|
|
5036
5029
|
let n = e;
|
|
5037
5030
|
for (; n && n !== t; )
|
|
5038
|
-
|
|
5031
|
+
Ql(n) && i.push(n), n = n.parentNode;
|
|
5039
5032
|
return i;
|
|
5040
5033
|
}
|
|
5041
5034
|
function Xd(e, t) {
|
|
5042
|
-
return Un(e.map((i) =>
|
|
5035
|
+
return Un(e.map((i) => no(i, t)));
|
|
5043
5036
|
}
|
|
5044
5037
|
function Ts(e) {
|
|
5045
5038
|
return e.ownerDocument.querySelector(":root");
|
|
5046
5039
|
}
|
|
5047
|
-
var Jd = new RegExp(["^$", "\\s"].join("|")), Zd = new RegExp(["^$"].join("|")),
|
|
5040
|
+
var Jd = new RegExp(["^$", "\\s"].join("|")), Zd = new RegExp(["^$"].join("|")), io = [
|
|
5048
5041
|
xe.nthoftype,
|
|
5049
5042
|
xe.tag,
|
|
5050
5043
|
xe.id,
|
|
@@ -5072,49 +5065,49 @@ function sf({ nodeName: e, nodeValue: t }) {
|
|
|
5072
5065
|
value: vn(t ?? void 0)
|
|
5073
5066
|
};
|
|
5074
5067
|
}
|
|
5075
|
-
function
|
|
5068
|
+
function so(e, t) {
|
|
5076
5069
|
const i = Array.from(e.attributes).filter((n) => nf(n, e)).map(sf);
|
|
5077
5070
|
return [...i.map(ef), ...i.map(tf)];
|
|
5078
5071
|
}
|
|
5079
5072
|
function rf(e, t) {
|
|
5080
|
-
const i = e.map((n) =>
|
|
5073
|
+
const i = e.map((n) => so(n, t));
|
|
5081
5074
|
return Un(i);
|
|
5082
5075
|
}
|
|
5083
|
-
var
|
|
5076
|
+
var lf = /^[a-z_-]{3,}$/i, of = /[bcdfghjklmnpqrstvwxyz]{4,}/i;
|
|
5084
5077
|
function af(e) {
|
|
5085
|
-
if (!
|
|
5078
|
+
if (!lf.test(e) || e.includes("_") && !e.includes("__") || /^(css|sc|jsx|emotion|makeStyles|MuiButton|MuiBox)-/i.test(e)) return !1;
|
|
5086
5079
|
const t = e.split(/--|__|[-]|(?<=[a-z])(?=[A-Z])/).filter((i) => i.length > 0);
|
|
5087
5080
|
if (t.length === 0 || t.length === 1 && t[0].length < 4) return !1;
|
|
5088
5081
|
for (const i of t)
|
|
5089
|
-
if (i.length <= 2 ||
|
|
5082
|
+
if (i.length <= 2 || of.test(i)) return !1;
|
|
5090
5083
|
return !0;
|
|
5091
5084
|
}
|
|
5092
|
-
function
|
|
5085
|
+
function ro(e, t) {
|
|
5093
5086
|
var i;
|
|
5094
5087
|
const n = ((i = e.getAttribute("class")) !== null && i !== void 0 ? i : "").trim().split(/\s+/).filter((r) => !Zd.test(r));
|
|
5095
5088
|
let s = n;
|
|
5096
5089
|
if (t?.ignoreGeneratedClassNames) {
|
|
5097
5090
|
const r = hi(t.whitelist);
|
|
5098
|
-
s = n.filter((
|
|
5099
|
-
const
|
|
5100
|
-
return r(
|
|
5091
|
+
s = n.filter((l) => {
|
|
5092
|
+
const o = `.${vn(l)}`;
|
|
5093
|
+
return r(o) ? !0 : af(l);
|
|
5101
5094
|
});
|
|
5102
5095
|
}
|
|
5103
5096
|
return s.map((r) => `.${vn(r)}`);
|
|
5104
5097
|
}
|
|
5105
5098
|
function uf(e, t) {
|
|
5106
|
-
const i = e.map((n) =>
|
|
5099
|
+
const i = e.map((n) => ro(n, t));
|
|
5107
5100
|
return Un(i);
|
|
5108
5101
|
}
|
|
5109
|
-
function
|
|
5102
|
+
function lo(e, t) {
|
|
5110
5103
|
var i;
|
|
5111
5104
|
const n = (i = e.getAttribute("id")) !== null && i !== void 0 ? i : "", s = `#${vn(n)}`, r = e.getRootNode({ composed: !1 });
|
|
5112
5105
|
return !Jd.test(n) && Es([e], s, r) ? [s] : [];
|
|
5113
5106
|
}
|
|
5114
5107
|
function cf(e, t) {
|
|
5115
|
-
return e.length === 0 || e.length > 1 ? [] :
|
|
5108
|
+
return e.length === 0 || e.length > 1 ? [] : lo(e[0], t);
|
|
5116
5109
|
}
|
|
5117
|
-
function
|
|
5110
|
+
function oo(e, t) {
|
|
5118
5111
|
const i = e.parentNode, n = i && "children" in i ? i.children : null;
|
|
5119
5112
|
if (n) {
|
|
5120
5113
|
for (let s = 0; s < n.length; s++) if (n[s] === e) return [`:nth-child(${String(s + 1)})`];
|
|
@@ -5122,33 +5115,33 @@ function al(e, t) {
|
|
|
5122
5115
|
return [];
|
|
5123
5116
|
}
|
|
5124
5117
|
function df(e, t) {
|
|
5125
|
-
return Un(e.map((i) =>
|
|
5118
|
+
return Un(e.map((i) => oo(i, t)));
|
|
5126
5119
|
}
|
|
5127
|
-
function
|
|
5120
|
+
function ao(e, t) {
|
|
5128
5121
|
return [vn(e.tagName.toLowerCase())];
|
|
5129
5122
|
}
|
|
5130
|
-
function
|
|
5131
|
-
const i = [...new Set(Gd(e.map((n) =>
|
|
5123
|
+
function uo(e, t) {
|
|
5124
|
+
const i = [...new Set(Gd(e.map((n) => ao(n, t))))];
|
|
5132
5125
|
return i.length === 0 || i.length > 1 ? [] : [i[0]];
|
|
5133
5126
|
}
|
|
5134
|
-
function
|
|
5135
|
-
const i =
|
|
5127
|
+
function co(e, t) {
|
|
5128
|
+
const i = uo([e])[0], n = e.parentNode, s = n && "children" in n ? n : null;
|
|
5136
5129
|
if (s) {
|
|
5137
|
-
const r = Array.from(s.children).filter((
|
|
5130
|
+
const r = Array.from(s.children).filter((l) => l.tagName.toLowerCase() === i).indexOf(e);
|
|
5138
5131
|
if (r > -1) return [`${i}:nth-of-type(${String(r + 1)})`];
|
|
5139
5132
|
}
|
|
5140
5133
|
return [];
|
|
5141
5134
|
}
|
|
5142
5135
|
function ff(e, t) {
|
|
5143
|
-
return Un(e.map((i) =>
|
|
5136
|
+
return Un(e.map((i) => co(i, t)));
|
|
5144
5137
|
}
|
|
5145
|
-
function*
|
|
5146
|
-
let i = 0, n =
|
|
5138
|
+
function* fo(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
5139
|
+
let i = 0, n = os(1);
|
|
5147
5140
|
for (; n.length <= e.length && i < t; )
|
|
5148
5141
|
i += 1, yield n.map((s) => e[s]), n = pf(n, e.length - 1);
|
|
5149
5142
|
}
|
|
5150
5143
|
function hf(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
5151
|
-
return Array.from(
|
|
5144
|
+
return Array.from(fo(e, { maxResults: t }));
|
|
5152
5145
|
}
|
|
5153
5146
|
function pf(e = [], t = 0) {
|
|
5154
5147
|
const i = e.length;
|
|
@@ -5156,12 +5149,12 @@ function pf(e = [], t = 0) {
|
|
|
5156
5149
|
const n = [...e];
|
|
5157
5150
|
n[i - 1] += 1;
|
|
5158
5151
|
for (let s = i - 1; s >= 0; s--) if (n[s] > t) {
|
|
5159
|
-
if (s === 0) return
|
|
5152
|
+
if (s === 0) return os(i + 1);
|
|
5160
5153
|
n[s - 1]++, n[s] = n[s - 1] + 1;
|
|
5161
5154
|
}
|
|
5162
|
-
return n[i - 1] > t ?
|
|
5155
|
+
return n[i - 1] > t ? os(i + 1) : n;
|
|
5163
5156
|
}
|
|
5164
|
-
function
|
|
5157
|
+
function os(e = 1) {
|
|
5165
5158
|
return Array.from(Array(e).keys());
|
|
5166
5159
|
}
|
|
5167
5160
|
function* vf(e = {}) {
|
|
@@ -5179,10 +5172,10 @@ function* vf(e = {}) {
|
|
|
5179
5172
|
yield r;
|
|
5180
5173
|
continue;
|
|
5181
5174
|
}
|
|
5182
|
-
const [
|
|
5183
|
-
for (let a =
|
|
5175
|
+
const [l, o] = t[s];
|
|
5176
|
+
for (let a = o.length - 1; a >= 0; a--) i.push({
|
|
5184
5177
|
index: s - 1,
|
|
5185
|
-
partial: Object.assign(Object.assign({}, r), { [
|
|
5178
|
+
partial: Object.assign(Object.assign({}, r), { [l]: o[a] })
|
|
5186
5179
|
});
|
|
5187
5180
|
}
|
|
5188
5181
|
}
|
|
@@ -5194,19 +5187,19 @@ function _f(e = "") {
|
|
|
5194
5187
|
return e.split("").map((t) => t === ":" ? `\\${gf} ` : mf.test(t) ? `\\${t}` : escape(t).replace(/%/g, "\\")).join("");
|
|
5195
5188
|
}
|
|
5196
5189
|
var yf = {
|
|
5197
|
-
tag:
|
|
5190
|
+
tag: uo,
|
|
5198
5191
|
id: cf,
|
|
5199
5192
|
class: uf,
|
|
5200
5193
|
attribute: rf,
|
|
5201
5194
|
nthchild: df,
|
|
5202
5195
|
nthoftype: ff
|
|
5203
5196
|
}, bf = {
|
|
5204
|
-
tag:
|
|
5205
|
-
id:
|
|
5206
|
-
class:
|
|
5207
|
-
attribute:
|
|
5208
|
-
nthchild:
|
|
5209
|
-
nthoftype:
|
|
5197
|
+
tag: ao,
|
|
5198
|
+
id: lo,
|
|
5199
|
+
class: ro,
|
|
5200
|
+
attribute: so,
|
|
5201
|
+
nthchild: oo,
|
|
5202
|
+
nthoftype: co
|
|
5210
5203
|
};
|
|
5211
5204
|
function Sf(e, t, i) {
|
|
5212
5205
|
return bf[t](e, i);
|
|
@@ -5229,9 +5222,9 @@ function* Cf(e, t) {
|
|
|
5229
5222
|
for (const s of Of(n, t)) i.has(s) || (i.add(s), yield s);
|
|
5230
5223
|
}
|
|
5231
5224
|
function xf(e, t) {
|
|
5232
|
-
const { blacklist: i, whitelist: n, combineWithinSelector: s, maxCombinations: r } = t,
|
|
5233
|
-
const f = wf(Tf(Ef(e, u, t),
|
|
5234
|
-
return d[u] = s ? Array.from(
|
|
5225
|
+
const { blacklist: i, whitelist: n, combineWithinSelector: s, maxCombinations: r } = t, l = hi(i), o = hi(n), a = (d, u) => {
|
|
5226
|
+
const f = wf(Tf(Ef(e, u, t), l, o), o);
|
|
5227
|
+
return d[u] = s ? Array.from(fo(f, { maxResults: r })) : f.map((p) => [p]), d;
|
|
5235
5228
|
};
|
|
5236
5229
|
return If(t).reduce(a, {});
|
|
5237
5230
|
}
|
|
@@ -5243,7 +5236,7 @@ function Af(e) {
|
|
|
5243
5236
|
return e.includes(xe.tag) || e.includes(xe.nthoftype) ? [...e] : [...e, xe.tag];
|
|
5244
5237
|
}
|
|
5245
5238
|
function Mf(e) {
|
|
5246
|
-
const { selectors: t, combineBetweenSelectors: i, includeTag: n, maxCandidates: s } = e, r = i ? hf(t, { maxResults: s }) : t.map((
|
|
5239
|
+
const { selectors: t, combineBetweenSelectors: i, includeTag: n, maxCandidates: s } = e, r = i ? hf(t, { maxResults: s }) : t.map((l) => [l]);
|
|
5247
5240
|
return n ? r.map(Af) : r;
|
|
5248
5241
|
}
|
|
5249
5242
|
function* Of(e, t) {
|
|
@@ -5261,7 +5254,7 @@ function Rf(e, t) {
|
|
|
5261
5254
|
return t[e] ? t[e].join("") : "";
|
|
5262
5255
|
}
|
|
5263
5256
|
function Lf(e = {}) {
|
|
5264
|
-
const t = [...
|
|
5257
|
+
const t = [...io];
|
|
5265
5258
|
return e[xe.tag] && e[xe.nthoftype] && t.splice(t.indexOf(xe.tag), 1), t.map((i) => Rf(i, e)).join("");
|
|
5266
5259
|
}
|
|
5267
5260
|
function Nf(e, t) {
|
|
@@ -5278,29 +5271,29 @@ function* Df(e, t, i = "", n) {
|
|
|
5278
5271
|
function* Ff(e, t, i = "", n) {
|
|
5279
5272
|
if (e.length === 0) return null;
|
|
5280
5273
|
const s = [e.length > 1 ? e : [], ...Xd(e, t).map((r) => [r])];
|
|
5281
|
-
for (const r of s) for (const
|
|
5274
|
+
for (const r of s) for (const l of Df(r, t, i, n)) yield {
|
|
5282
5275
|
foundElements: r,
|
|
5283
|
-
selector:
|
|
5276
|
+
selector: l
|
|
5284
5277
|
};
|
|
5285
5278
|
}
|
|
5286
5279
|
function* Bf({ elements: e, root: t, rootSelector: i = "", options: n }) {
|
|
5287
|
-
let s = t, r = i,
|
|
5288
|
-
for (;
|
|
5289
|
-
let
|
|
5280
|
+
let s = t, r = i, l = !0;
|
|
5281
|
+
for (; l; ) {
|
|
5282
|
+
let o = !1;
|
|
5290
5283
|
for (const a of Ff(e, s, r, n)) {
|
|
5291
5284
|
const { foundElements: d, selector: u } = a;
|
|
5292
|
-
if (
|
|
5285
|
+
if (o = !0, Es(e, u, t)) yield u;
|
|
5293
5286
|
else {
|
|
5294
5287
|
s = d[0], r = u;
|
|
5295
5288
|
break;
|
|
5296
5289
|
}
|
|
5297
5290
|
}
|
|
5298
|
-
|
|
5291
|
+
o || (l = !1);
|
|
5299
5292
|
}
|
|
5300
5293
|
}
|
|
5301
5294
|
function $f(e) {
|
|
5302
5295
|
(e instanceof NodeList || e instanceof HTMLCollection) && (e = Array.from(e));
|
|
5303
|
-
const t = (Array.isArray(e) ? e : [e]).filter(
|
|
5296
|
+
const t = (Array.isArray(e) ? e : [e]).filter(Ql);
|
|
5304
5297
|
return [...new Set(t)];
|
|
5305
5298
|
}
|
|
5306
5299
|
function Wf(e) {
|
|
@@ -5320,21 +5313,21 @@ function Hf(e, t, i = Vn.NONE) {
|
|
|
5320
5313
|
};
|
|
5321
5314
|
}
|
|
5322
5315
|
function Vf({ selectors: e, operator: t }) {
|
|
5323
|
-
let i = [...
|
|
5316
|
+
let i = [...io];
|
|
5324
5317
|
e[xe.tag] && e[xe.nthoftype] && (i = i.filter((s) => s !== xe.tag));
|
|
5325
5318
|
let n = "";
|
|
5326
5319
|
return i.forEach((s) => {
|
|
5327
5320
|
var r;
|
|
5328
|
-
((r = e[s]) !== null && r !== void 0 ? r : []).forEach(({ value:
|
|
5329
|
-
|
|
5321
|
+
((r = e[s]) !== null && r !== void 0 ? r : []).forEach(({ value: l, include: o }) => {
|
|
5322
|
+
o && (n += l);
|
|
5330
5323
|
});
|
|
5331
5324
|
}), t + n;
|
|
5332
5325
|
}
|
|
5333
5326
|
function jf(e, t) {
|
|
5334
|
-
const i =
|
|
5335
|
-
var
|
|
5336
|
-
const a = Hf(r, [xe.nthchild], n &&
|
|
5337
|
-
return ((
|
|
5327
|
+
const i = no(e, t).reverse(), n = t instanceof ShadowRoot, s = i.map((r, l) => {
|
|
5328
|
+
var o;
|
|
5329
|
+
const a = Hf(r, [xe.nthchild], n && l === 0 ? Vn.NONE : Vn.CHILD);
|
|
5330
|
+
return ((o = a.selectors.nthchild) !== null && o !== void 0 ? o : []).forEach((d) => {
|
|
5338
5331
|
d.include = !0;
|
|
5339
5332
|
}), a;
|
|
5340
5333
|
});
|
|
@@ -5350,28 +5343,28 @@ var Uf = function(e, t) {
|
|
|
5350
5343
|
for (var s = 0, n = Object.getOwnPropertySymbols(e); s < n.length; s++) t.indexOf(n[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[s]) && (i[n[s]] = e[n[s]]);
|
|
5351
5344
|
return i;
|
|
5352
5345
|
};
|
|
5353
|
-
function
|
|
5346
|
+
function ho(e, t = {}) {
|
|
5354
5347
|
return qf(e, Object.assign(Object.assign({}, t), { maxResults: 1 })).next().value;
|
|
5355
5348
|
}
|
|
5356
5349
|
function* qf(e, t = {}) {
|
|
5357
5350
|
var i;
|
|
5358
5351
|
const n = $f(e), s = Kd(n[0], t), r = (i = s.root) !== null && i !== void 0 ? i : Ts(n[0]);
|
|
5359
|
-
let
|
|
5352
|
+
let l = 0;
|
|
5360
5353
|
for (const a of Bf({
|
|
5361
5354
|
elements: n,
|
|
5362
5355
|
options: s,
|
|
5363
5356
|
root: r,
|
|
5364
5357
|
rootSelector: ""
|
|
5365
5358
|
}))
|
|
5366
|
-
if (yield a,
|
|
5359
|
+
if (yield a, l++, l >= s.maxResults) return;
|
|
5367
5360
|
if (n.length > 1) {
|
|
5368
5361
|
const { maxResults: a } = t, d = Uf(t, ["maxResults"]);
|
|
5369
|
-
if (yield n.map((u) =>
|
|
5362
|
+
if (yield n.map((u) => ho(u, d)).join(", "), l++, l >= s.maxResults) return;
|
|
5370
5363
|
}
|
|
5371
|
-
const
|
|
5372
|
-
yield zf(n, s.useScope ||
|
|
5364
|
+
const o = t.root !== void 0;
|
|
5365
|
+
yield zf(n, s.useScope || o ? r : void 0);
|
|
5373
5366
|
}
|
|
5374
|
-
var
|
|
5367
|
+
var po = ".aipanel-widget", Kf = [po, ".aipanel-element-highlight", ".aipanel-element-tooltip", ".aipanel-select-mode-hint", ".floating-bubble", ...Ii().flatMap((e) => e.ignoreSelectors)], Gf = Ii().flatMap((e) => e.ignoreAttributes);
|
|
5375
5368
|
function Yf(e) {
|
|
5376
5369
|
return (e.innerText || e.textContent || "").trim();
|
|
5377
5370
|
}
|
|
@@ -5392,7 +5385,7 @@ function eh(e) {
|
|
|
5392
5385
|
return e ? !!(Jf.test(e) || Zf.test(e) || e.includes("-active") || e.includes("-hover") || e.includes("-focus") || /^(?:router-link|nuxt-link)/.test(e)) : !1;
|
|
5393
5386
|
}
|
|
5394
5387
|
function ur(e) {
|
|
5395
|
-
return
|
|
5388
|
+
return ho(e, {
|
|
5396
5389
|
selectors: [
|
|
5397
5390
|
"id",
|
|
5398
5391
|
"class",
|
|
@@ -5411,7 +5404,7 @@ function ur(e) {
|
|
|
5411
5404
|
}]
|
|
5412
5405
|
});
|
|
5413
5406
|
}
|
|
5414
|
-
function
|
|
5407
|
+
function vo(e) {
|
|
5415
5408
|
if (Gf.some((t) => e.hasAttribute(t))) return !0;
|
|
5416
5409
|
for (const t of Kf) if (e.closest(t)) return !0;
|
|
5417
5410
|
return !1;
|
|
@@ -5427,7 +5420,7 @@ function cr(e) {
|
|
|
5427
5420
|
function th(e) {
|
|
5428
5421
|
if (!e.target || !(e.target instanceof Element)) return null;
|
|
5429
5422
|
const t = e.target;
|
|
5430
|
-
return
|
|
5423
|
+
return vo(t) ? null : t;
|
|
5431
5424
|
}
|
|
5432
5425
|
function nh(e) {
|
|
5433
5426
|
const t = /* @__PURE__ */ P(!1), i = /* @__PURE__ */ P({
|
|
@@ -5442,7 +5435,7 @@ function nh(e) {
|
|
|
5442
5435
|
description: "",
|
|
5443
5436
|
fileInfo: ""
|
|
5444
5437
|
});
|
|
5445
|
-
let
|
|
5438
|
+
let l = null, o = "#4176e6", a = "rgba(65, 118, 230, 0.1)";
|
|
5446
5439
|
function d(v) {
|
|
5447
5440
|
v.forEach((b) => {
|
|
5448
5441
|
b && (b.style.pointerEvents = "none");
|
|
@@ -5467,7 +5460,7 @@ function nh(e) {
|
|
|
5467
5460
|
const O = document.querySelector(".aipanel-widget");
|
|
5468
5461
|
if (O) {
|
|
5469
5462
|
const G = getComputedStyle(O);
|
|
5470
|
-
|
|
5463
|
+
o = G.getPropertyValue("--ap-accent").trim() || o, a = G.getPropertyValue("--ap-accent-bg").trim() || a;
|
|
5471
5464
|
}
|
|
5472
5465
|
const L = ur(A), K = k?.file ? k.file.split("/").pop() : "";
|
|
5473
5466
|
let N = "";
|
|
@@ -5477,22 +5470,22 @@ function nh(e) {
|
|
|
5477
5470
|
description: L,
|
|
5478
5471
|
fileInfo: H
|
|
5479
5472
|
};
|
|
5480
|
-
const z = A.getBoundingClientRect(), ce = `${z.top}px`,
|
|
5481
|
-
(i.value.top !== ce || i.value.left !==
|
|
5473
|
+
const z = A.getBoundingClientRect(), ce = `${z.top}px`, oe = `${z.left}px`, X = `${z.width}px`, F = `${z.height}px`;
|
|
5474
|
+
(i.value.top !== ce || i.value.left !== oe || i.value.width !== X || i.value.height !== F) && (i.value = {
|
|
5482
5475
|
top: ce,
|
|
5483
|
-
left:
|
|
5476
|
+
left: oe,
|
|
5484
5477
|
width: X,
|
|
5485
5478
|
height: F,
|
|
5486
|
-
border: `2px solid ${
|
|
5479
|
+
border: `2px solid ${o}`,
|
|
5487
5480
|
background: a
|
|
5488
5481
|
}), t.value = !0, n.value = !0, cn(() => {
|
|
5489
5482
|
const G = document.querySelector(".aipanel-element-tooltip");
|
|
5490
5483
|
if (!G) return;
|
|
5491
5484
|
const Q = G.offsetWidth, Y = G.offsetHeight;
|
|
5492
5485
|
if (Q === 0 || Y === 0) return;
|
|
5493
|
-
const ee = 10, Fe = 4, Je = window.innerWidth, Be = window.innerHeight, ke = (c) => Math.max(ee, Math.min(c, Je - Q - ee)), $e = (c) => Math.max(ee, Math.min(c, Be - Y - ee)), mt = z.top - Y - Fe, _t = z.bottom + Fe, ct = z.right + Fe, ze = z.left - Q - Fe,
|
|
5486
|
+
const ee = 10, Fe = 4, Je = window.innerWidth, Be = window.innerHeight, ke = (c) => Math.max(ee, Math.min(c, Je - Q - ee)), $e = (c) => Math.max(ee, Math.min(c, Be - Y - ee)), mt = z.top - Y - Fe, _t = z.bottom + Fe, ct = z.right + Fe, ze = z.left - Q - Fe, ot = z.top + (z.height - Y) / 2;
|
|
5494
5487
|
let We = 0, we = 0, be = !1;
|
|
5495
|
-
if (mt >= ee && (We = mt, we = ke(z.left), be = !0), !be && _t + Y <= Be - ee && (We = _t, we = ke(z.left), be = !0), !be && ct + Q <= Je - ee && (we = ct, We = $e(
|
|
5488
|
+
if (mt >= ee && (We = mt, we = ke(z.left), be = !0), !be && _t + Y <= Be - ee && (We = _t, we = ke(z.left), be = !0), !be && ct + Q <= Je - ee && (we = ct, We = $e(ot), be = !0), !be && ze >= ee && (we = ze, We = $e(ot), be = !0), !be) {
|
|
5496
5489
|
const c = [
|
|
5497
5490
|
{
|
|
5498
5491
|
top: ee,
|
|
@@ -5531,14 +5524,14 @@ function nh(e) {
|
|
|
5531
5524
|
}
|
|
5532
5525
|
const p = f;
|
|
5533
5526
|
function m(v) {
|
|
5534
|
-
if (!e.selectMode.value || v?.closest(
|
|
5535
|
-
const b = v && !
|
|
5527
|
+
if (!e.selectMode.value || v?.closest(po)) return !1;
|
|
5528
|
+
const b = v && !vo(v) ? v : null;
|
|
5536
5529
|
if (b) {
|
|
5537
5530
|
const A = cr(b), k = Yf(b), O = ur(b), L = {
|
|
5538
5531
|
filePath: A?.file ?? null,
|
|
5539
5532
|
line: A?.line ?? null,
|
|
5540
5533
|
column: A?.column ?? null,
|
|
5541
|
-
innerText:
|
|
5534
|
+
innerText: Dl(k, 200),
|
|
5542
5535
|
description: O
|
|
5543
5536
|
};
|
|
5544
5537
|
e.onAddSelectedNode(L);
|
|
@@ -5555,11 +5548,11 @@ function nh(e) {
|
|
|
5555
5548
|
return Re(e.selectMode, (v) => {
|
|
5556
5549
|
rs()?.setEnabled(v), v ? (document.addEventListener("mousemove", p), document.addEventListener("keydown", _, !0)) : (document.removeEventListener("mousemove", p), document.removeEventListener("keydown", _, !0), t.value = !1, n.value = !1);
|
|
5557
5550
|
}), et(() => {
|
|
5558
|
-
S() || (
|
|
5559
|
-
S() &&
|
|
5551
|
+
S() || (l = window.setInterval(() => {
|
|
5552
|
+
S() && l && (window.clearInterval(l), l = null);
|
|
5560
5553
|
}, 500));
|
|
5561
5554
|
}), Xe(() => {
|
|
5562
|
-
|
|
5555
|
+
l && window.clearInterval(l), document.removeEventListener("mousemove", p), document.removeEventListener("keydown", _, !0);
|
|
5563
5556
|
}), {
|
|
5564
5557
|
highlightVisible: t,
|
|
5565
5558
|
highlightStyle: i,
|
|
@@ -5568,12 +5561,12 @@ function nh(e) {
|
|
|
5568
5561
|
tooltipContent: r
|
|
5569
5562
|
};
|
|
5570
5563
|
}
|
|
5571
|
-
var
|
|
5564
|
+
var go = "aipanel-widget-state";
|
|
5572
5565
|
function ih() {
|
|
5573
|
-
return
|
|
5566
|
+
return Bl("local", go);
|
|
5574
5567
|
}
|
|
5575
5568
|
function sh(e) {
|
|
5576
|
-
|
|
5569
|
+
$l("local", go, e);
|
|
5577
5570
|
}
|
|
5578
5571
|
function rh(e) {
|
|
5579
5572
|
const t = () => {
|
|
@@ -5610,8 +5603,8 @@ function rh(e) {
|
|
|
5610
5603
|
persistState: n
|
|
5611
5604
|
};
|
|
5612
5605
|
}
|
|
5613
|
-
var
|
|
5614
|
-
function
|
|
5606
|
+
var lh = 1440;
|
|
5607
|
+
function oh(e) {
|
|
5615
5608
|
const t = /* @__PURE__ */ P(typeof window < "u" ? window.innerWidth : 0), i = /* @__PURE__ */ P(e.splitPosition?.value ?? "right"), n = U(() => e.displayMode.value === "extension"), s = U(() => n.value || e.displayMode.value === "extension-selector"), r = U(() => {
|
|
5616
5609
|
const _ = e.splitMode.value || {}, v = n.value;
|
|
5617
5610
|
return {
|
|
@@ -5623,8 +5616,8 @@ function lh(e) {
|
|
|
5623
5616
|
defaultOpen: v ? !0 : _.defaultOpen ?? !0,
|
|
5624
5617
|
position: _.position ?? i.value
|
|
5625
5618
|
};
|
|
5626
|
-
}),
|
|
5627
|
-
|
|
5619
|
+
}), l = /* @__PURE__ */ P(r.value.width), o = U(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= lh ? "split" : "bubble"), a = U(() => o.value === "split"), d = U(() => r.value.position), u = (_) => {
|
|
5620
|
+
l.value = _, e.onWidthChange?.(_);
|
|
5628
5621
|
}, f = () => {
|
|
5629
5622
|
const _ = !e.open.value;
|
|
5630
5623
|
e.onOpenChange?.(_);
|
|
@@ -5639,16 +5632,16 @@ function lh(e) {
|
|
|
5639
5632
|
document.body.classList.remove("has-aipanel-split"), document.body.classList.remove("has-aipanel-split-left"), document.body.classList.remove("has-aipanel-split-right"), document.body.style.removeProperty("--aipanel-split-width");
|
|
5640
5633
|
return;
|
|
5641
5634
|
}
|
|
5642
|
-
a.value && e.open.value && r.value.shrinkPage ? (document.body.classList.add("has-aipanel-split"), document.body.style.setProperty("--aipanel-split-width", `${
|
|
5635
|
+
a.value && e.open.value && r.value.shrinkPage ? (document.body.classList.add("has-aipanel-split"), document.body.style.setProperty("--aipanel-split-width", `${l.value}px`), d.value === "left" ? (document.body.classList.add("has-aipanel-split-left"), document.body.classList.remove("has-aipanel-split-right")) : (document.body.classList.add("has-aipanel-split-right"), document.body.classList.remove("has-aipanel-split-left"))) : (document.body.classList.remove("has-aipanel-split"), document.body.classList.remove("has-aipanel-split-left"), document.body.classList.remove("has-aipanel-split-right"), document.body.style.removeProperty("--aipanel-split-width"));
|
|
5643
5636
|
}
|
|
5644
5637
|
};
|
|
5645
5638
|
return Re([
|
|
5646
5639
|
a,
|
|
5647
5640
|
e.open,
|
|
5648
|
-
|
|
5641
|
+
l,
|
|
5649
5642
|
d
|
|
5650
5643
|
], S, { immediate: !0 }), Re(r, (_) => {
|
|
5651
|
-
|
|
5644
|
+
l.value < _.minWidth && (l.value = _.minWidth), l.value > _.maxWidth && (l.value = _.maxWidth);
|
|
5652
5645
|
}), Re(() => e.splitPosition?.value, (_) => {
|
|
5653
5646
|
_ && _ !== i.value && (i.value = _);
|
|
5654
5647
|
}), et(() => {
|
|
@@ -5656,10 +5649,10 @@ function lh(e) {
|
|
|
5656
5649
|
}), Xe(() => {
|
|
5657
5650
|
typeof window < "u" && (window.removeEventListener("resize", m), n.value || (document.body.classList.remove("has-aipanel-split"), document.body.classList.remove("has-aipanel-split-left"), document.body.classList.remove("has-aipanel-split-right"), document.body.style.removeProperty("--aipanel-split-width")));
|
|
5658
5651
|
}), {
|
|
5659
|
-
effectiveMode:
|
|
5652
|
+
effectiveMode: o,
|
|
5660
5653
|
isSplitMode: a,
|
|
5661
5654
|
isExtensionMode: n,
|
|
5662
|
-
panelWidth:
|
|
5655
|
+
panelWidth: l,
|
|
5663
5656
|
splitConfig: r,
|
|
5664
5657
|
splitPosition: d,
|
|
5665
5658
|
handleResize: u,
|
|
@@ -5667,7 +5660,7 @@ function lh(e) {
|
|
|
5667
5660
|
handleTogglePosition: p
|
|
5668
5661
|
};
|
|
5669
5662
|
}
|
|
5670
|
-
var
|
|
5663
|
+
var mo = /* @__PURE__ */ Qe({
|
|
5671
5664
|
name: "AIPanelWidget",
|
|
5672
5665
|
__name: "index",
|
|
5673
5666
|
props: {
|
|
@@ -5846,16 +5839,16 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5846
5839
|
"split-panel-width-change"
|
|
5847
5840
|
],
|
|
5848
5841
|
setup(e, { expose: t, emit: i }) {
|
|
5849
|
-
|
|
5842
|
+
El((E) => ({
|
|
5850
5843
|
"-chatAnimationOrigin.x": fe.value.x,
|
|
5851
5844
|
"-chatAnimationOrigin.y": fe.value.y
|
|
5852
5845
|
}));
|
|
5853
|
-
const n = e, s = i, r =
|
|
5846
|
+
const n = e, s = i, r = el(), l = /* @__PURE__ */ P(""), o = /* @__PURE__ */ P(!1), a = /* @__PURE__ */ P("widget");
|
|
5854
5847
|
let d = null;
|
|
5855
5848
|
const u = (E, Te) => {
|
|
5856
5849
|
const { duration: ut = Du, mode: dt = "widget" } = Te || {};
|
|
5857
|
-
|
|
5858
|
-
|
|
5850
|
+
l.value = E, o.value = !0, a.value = dt, d && clearTimeout(d), d = setTimeout(() => {
|
|
5851
|
+
o.value = !1;
|
|
5859
5852
|
}, ut);
|
|
5860
5853
|
}, f = /* @__PURE__ */ P(!1), p = /* @__PURE__ */ P("");
|
|
5861
5854
|
let m = null;
|
|
@@ -5867,10 +5860,10 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5867
5860
|
f.value = !1, m && m(!1);
|
|
5868
5861
|
}, b = /* @__PURE__ */ P(null), A = /* @__PURE__ */ P(null), k = (E, Te) => {
|
|
5869
5862
|
b.value?.sendMessageToIframe(E, Te);
|
|
5870
|
-
}, O = /* @__PURE__ */ P(n.sessionListCollapsed), L = /* @__PURE__ */ P(n.displayMode), K = /* @__PURE__ */ P(n.splitMode?.position ?? "right"), N = /* @__PURE__ */ P(!1), H = /* @__PURE__ */ P(!0), z = /* @__PURE__ */ P(!1), ce = /* @__PURE__ */ P(!0),
|
|
5871
|
-
!
|
|
5863
|
+
}, O = /* @__PURE__ */ P(n.sessionListCollapsed), L = /* @__PURE__ */ P(n.displayMode), K = /* @__PURE__ */ P(n.splitMode?.position ?? "right"), N = /* @__PURE__ */ P(!1), H = /* @__PURE__ */ P(!0), z = /* @__PURE__ */ P(!1), ce = /* @__PURE__ */ P(!0), oe = /* @__PURE__ */ P(!1), X = /* @__PURE__ */ P(!1), F = /* @__PURE__ */ P(n.splitPanelWidth), G = () => {
|
|
5864
|
+
!oe.value || !X.value || (k(le.PROMPT_DOCK_VISIBILITY, { visible: H.value }), k(le.MINIMIZE_STATE, { minimized: N.value }), k(le.SIDEBAR_MODE, { mode: n.providerSidebar ? "provider" : "host" }), n.providerSidebar && n.sidebarCollapseControl === "host" && k(le.SIDEBAR_COLLAPSE, { collapsed: O.value }), n.reviewPanelEnabled && k(le.REVIEW_PANEL_TOGGLE, { visible: z.value }));
|
|
5872
5865
|
}, Q = () => {
|
|
5873
|
-
s("frame-loaded"),
|
|
5866
|
+
s("frame-loaded"), oe.value = !0;
|
|
5874
5867
|
};
|
|
5875
5868
|
Re(() => n.sessionListCollapsed, (E) => {
|
|
5876
5869
|
O.value = E;
|
|
@@ -5905,7 +5898,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5905
5898
|
s("update:open", !1), s("close");
|
|
5906
5899
|
},
|
|
5907
5900
|
onToggleSessionList: (E) => {
|
|
5908
|
-
O.value = E, s("update:sessionListCollapsed", E), s("toggle-session-list", E), n.providerSidebar && n.sidebarCollapseControl === "host" && k(
|
|
5901
|
+
O.value = E, s("update:sessionListCollapsed", E), s("toggle-session-list", E), n.providerSidebar && n.sidebarCollapseControl === "host" && k(le.SIDEBAR_COLLAPSE, { collapsed: E });
|
|
5909
5902
|
},
|
|
5910
5903
|
onEmptyAction: () => {
|
|
5911
5904
|
s("empty-action");
|
|
@@ -5913,7 +5906,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5913
5906
|
onToggleTheme: (E) => {
|
|
5914
5907
|
s("update:theme", E), s("toggle-theme", E);
|
|
5915
5908
|
}
|
|
5916
|
-
}), { sessionItems:
|
|
5909
|
+
}), { sessionItems: ot, handleCreateSession: We, handleDeleteSession: we, handleSelectSession: be } = $d({
|
|
5917
5910
|
sessions: /* @__PURE__ */ te(n, "sessions"),
|
|
5918
5911
|
currentSessionId: /* @__PURE__ */ te(n, "currentSessionId"),
|
|
5919
5912
|
onCreateSession: () => s("create-session"),
|
|
@@ -5945,7 +5938,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5945
5938
|
onExitSelectMode: () => {
|
|
5946
5939
|
s("update:selectMode", !1), s("toggle-select-mode", !1);
|
|
5947
5940
|
}
|
|
5948
|
-
}), W = /* @__PURE__ */ P(void 0), { effectiveMode: B, isSplitMode: V, isExtensionMode: q, panelWidth: Z, splitConfig: ae, splitPosition: se, handleResize: ve, handleToggle: _e, handleTogglePosition: He } =
|
|
5941
|
+
}), W = /* @__PURE__ */ P(void 0), { effectiveMode: B, isSplitMode: V, isExtensionMode: q, panelWidth: Z, splitConfig: ae, splitPosition: se, handleResize: ve, handleToggle: _e, handleTogglePosition: He } = oh({
|
|
5949
5942
|
displayMode: L,
|
|
5950
5943
|
splitMode: /* @__PURE__ */ te(n, "splitMode"),
|
|
5951
5944
|
open: /* @__PURE__ */ te(n, "open"),
|
|
@@ -5987,17 +5980,17 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
5987
5980
|
}
|
|
5988
5981
|
});
|
|
5989
5982
|
const Oe = () => {
|
|
5990
|
-
N.value = !N.value, H.value = !N.value, k(
|
|
5983
|
+
N.value = !N.value, H.value = !N.value, k(le.PROMPT_DOCK_VISIBILITY, { visible: H.value }), k(le.MINIMIZE_STATE, { minimized: N.value });
|
|
5991
5984
|
}, Ae = () => {
|
|
5992
|
-
H.value = !H.value, k(
|
|
5985
|
+
H.value = !H.value, k(le.PROMPT_DOCK_VISIBILITY, { visible: H.value });
|
|
5993
5986
|
}, $t = () => {
|
|
5994
|
-
z.value = !z.value, k(
|
|
5987
|
+
z.value = !z.value, k(le.REVIEW_PANEL_TOGGLE, { visible: z.value });
|
|
5995
5988
|
}, Se = () => {
|
|
5996
5989
|
window.location.reload();
|
|
5997
5990
|
}, Ee = /* @__PURE__ */ P(typeof window < "u" ? window.innerWidth : 0), qe = /* @__PURE__ */ P(typeof window < "u" ? window.innerHeight : 0), Wt = () => {
|
|
5998
5991
|
typeof window < "u" && (Ee.value = window.innerWidth, qe.value = window.innerHeight);
|
|
5999
5992
|
}, It = (E) => {
|
|
6000
|
-
if (E.data?.type ===
|
|
5993
|
+
if (E.data?.type === le.READY && (X.value = !0, G()), E.data?.type === le.SIDEBAR_STATE && n.providerSidebar && n.sidebarCollapseControl === "host") {
|
|
6001
5994
|
const Te = E.data.collapsed === !0;
|
|
6002
5995
|
Te !== O.value && (O.value = Te, s("update:sessionListCollapsed", Te), s("toggle-session-list", Te));
|
|
6003
5996
|
}
|
|
@@ -6065,7 +6058,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6065
6058
|
let qt = !1;
|
|
6066
6059
|
const Kn = () => {
|
|
6067
6060
|
Ut.value = !0, qt = n.open, n.open && s("update:open", !1);
|
|
6068
|
-
},
|
|
6061
|
+
}, yo = () => {
|
|
6069
6062
|
Ut.value = !1, qt && s("update:open", !0);
|
|
6070
6063
|
};
|
|
6071
6064
|
hc({
|
|
@@ -6104,7 +6097,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6104
6097
|
sessionListTitle: Be,
|
|
6105
6098
|
bubbleVisible: Ue,
|
|
6106
6099
|
hasSelectedElements: at,
|
|
6107
|
-
sessionItems:
|
|
6100
|
+
sessionItems: ot,
|
|
6108
6101
|
selectedElementItems: c,
|
|
6109
6102
|
handleToggle: _t,
|
|
6110
6103
|
handleClose: $e,
|
|
@@ -6136,8 +6129,8 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6136
6129
|
props: n,
|
|
6137
6130
|
emit: s,
|
|
6138
6131
|
slots: r,
|
|
6139
|
-
notificationMessage:
|
|
6140
|
-
notificationVisible:
|
|
6132
|
+
notificationMessage: l,
|
|
6133
|
+
notificationVisible: o,
|
|
6141
6134
|
notificationMode: a,
|
|
6142
6135
|
get notificationTimer() {
|
|
6143
6136
|
return d;
|
|
@@ -6167,7 +6160,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6167
6160
|
promptDockVisible: H,
|
|
6168
6161
|
reviewPanelVisible: z,
|
|
6169
6162
|
isRestoring: ce,
|
|
6170
|
-
iframeLoaded:
|
|
6163
|
+
iframeLoaded: oe,
|
|
6171
6164
|
iframeReady: X,
|
|
6172
6165
|
splitPanelWidth: F,
|
|
6173
6166
|
syncStateToIframe: G,
|
|
@@ -6183,7 +6176,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6183
6176
|
handleToggle: _t,
|
|
6184
6177
|
handleToggleSessionList: ct,
|
|
6185
6178
|
handleToggleTheme: ze,
|
|
6186
|
-
sessionItems:
|
|
6179
|
+
sessionItems: ot,
|
|
6187
6180
|
handleCreateSession: We,
|
|
6188
6181
|
handleDeleteSession: we,
|
|
6189
6182
|
handleSelectSession: be,
|
|
@@ -6232,7 +6225,7 @@ var ml = /* @__PURE__ */ Qe({
|
|
|
6232
6225
|
qt = E;
|
|
6233
6226
|
},
|
|
6234
6227
|
handleDragStart: Kn,
|
|
6235
|
-
handleDragEnd:
|
|
6228
|
+
handleDragEnd: yo,
|
|
6236
6229
|
ChatPanel: bd,
|
|
6237
6230
|
SelectHint: Td,
|
|
6238
6231
|
Trigger: Rd
|
|
@@ -6258,7 +6251,7 @@ function ph(e, t, i, n, s, r) {
|
|
|
6258
6251
|
ref: "triggerRef",
|
|
6259
6252
|
onDragStart: n.handleDragStart,
|
|
6260
6253
|
onDragEnd: n.handleDragEnd
|
|
6261
|
-
},
|
|
6254
|
+
}, oi({ _: 2 }, [n.slots["button-icon"] ? {
|
|
6262
6255
|
name: "default",
|
|
6263
6256
|
fn: Ce(() => [ne(e.$slots, "button-icon")]),
|
|
6264
6257
|
key: "0"
|
|
@@ -6285,7 +6278,7 @@ function ph(e, t, i, n, s, r) {
|
|
|
6285
6278
|
onResizeStart: n.handleResizeStart,
|
|
6286
6279
|
onResizeEnd: n.handleResizeEnd,
|
|
6287
6280
|
onToggle: n.handleSplitToggle
|
|
6288
|
-
},
|
|
6281
|
+
}, oi({
|
|
6289
6282
|
"sessions-empty": Ce(() => [ne(e.$slots, "sessions-empty", {}, () => [t[0] || (t[0] = y("div", { class: "aipanel-session-empty" }, "暂无会话", -1))])]),
|
|
6290
6283
|
_: 2
|
|
6291
6284
|
}, [
|
|
@@ -6371,8 +6364,8 @@ function ph(e, t, i, n, s, r) {
|
|
|
6371
6364
|
}, Pe(n.notificationMessage), 3)) : ie("v-if", !0)], 8, ["disabled"]))
|
|
6372
6365
|
], 2);
|
|
6373
6366
|
}
|
|
6374
|
-
|
|
6375
|
-
var vh =
|
|
6367
|
+
mo.render = ph;
|
|
6368
|
+
var vh = mo;
|
|
6376
6369
|
function gh(e) {
|
|
6377
6370
|
if (!e) return {
|
|
6378
6371
|
ctrl: !0,
|
|
@@ -6404,7 +6397,7 @@ function dr(e, t) {
|
|
|
6404
6397
|
}
|
|
6405
6398
|
var rn = zt("SSE"), _h = 10, yh = 1e3;
|
|
6406
6399
|
function bh(e) {
|
|
6407
|
-
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = _h, retryDelay: r = yh, onConnected:
|
|
6400
|
+
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = _h, retryDelay: r = yh, onConnected: l, onDisconnected: o, onError: a, onMessage: d } = e, u = /* @__PURE__ */ P(null), f = /* @__PURE__ */ P("idle"), p = /* @__PURE__ */ P(0);
|
|
6408
6401
|
function m(A) {
|
|
6409
6402
|
try {
|
|
6410
6403
|
const k = JSON.parse(A.data);
|
|
@@ -6422,7 +6415,7 @@ function bh(e) {
|
|
|
6422
6415
|
f.value = "connecting", rn.debug(`connecting to ${t}`);
|
|
6423
6416
|
try {
|
|
6424
6417
|
u.value = new EventSource(t), u.value.onopen = () => {
|
|
6425
|
-
f.value = "connected", p.value = 0, rn.debug(`connected: ${t}`),
|
|
6418
|
+
f.value = "connected", p.value = 0, rn.debug(`connected: ${t}`), l?.();
|
|
6426
6419
|
}, u.value.onmessage = m, u.value.onerror = () => {
|
|
6427
6420
|
if (!u.value) return;
|
|
6428
6421
|
const A = f.value === "connected";
|
|
@@ -6439,7 +6432,7 @@ function bh(e) {
|
|
|
6439
6432
|
rn.debug(`will retry #${p.value} in ${O}ms -> ${t}`), setTimeout(() => {
|
|
6440
6433
|
n?.value !== !1 && !u.value && f.value !== "disconnected" && S();
|
|
6441
6434
|
}, O);
|
|
6442
|
-
} else A ? (rn.debug(`max retries reached, calling onDisconnected for ${t}`),
|
|
6435
|
+
} else A ? (rn.debug(`max retries reached, calling onDisconnected for ${t}`), o?.()) : rn.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
|
|
6443
6436
|
};
|
|
6444
6437
|
} catch (A) {
|
|
6445
6438
|
f.value = "error";
|
|
@@ -6455,7 +6448,7 @@ function bh(e) {
|
|
|
6455
6448
|
}
|
|
6456
6449
|
}
|
|
6457
6450
|
function _() {
|
|
6458
|
-
u.value && (u.value.close(), u.value = null), f.value = "disconnected", p.value = 0,
|
|
6451
|
+
u.value && (u.value.close(), u.value = null), f.value = "disconnected", p.value = 0, o?.();
|
|
6459
6452
|
}
|
|
6460
6453
|
function v() {
|
|
6461
6454
|
_(), S();
|
|
@@ -6479,17 +6472,17 @@ function bh(e) {
|
|
|
6479
6472
|
}
|
|
6480
6473
|
var fr = zt("ServerSSE");
|
|
6481
6474
|
function Sh(e = {}) {
|
|
6482
|
-
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected:
|
|
6475
|
+
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: l, onDisconnected: o } = e, a = t ? `${t}${tr}` : tr, { status: d, isConnected: u, connect: f, disconnect: p } = bh({
|
|
6483
6476
|
endpoint: a,
|
|
6484
6477
|
autoConnect: !1,
|
|
6485
6478
|
onDisconnected: () => {
|
|
6486
|
-
fr.debug(`disconnected (retries exhausted): ${a}`),
|
|
6479
|
+
fr.debug(`disconnected (retries exhausted): ${a}`), o?.();
|
|
6487
6480
|
},
|
|
6488
6481
|
onMessage: (m) => {
|
|
6489
6482
|
const S = m;
|
|
6490
6483
|
switch (S.type) {
|
|
6491
6484
|
case Cn.CONNECTED:
|
|
6492
|
-
fr.debug(`CONNECTED message received: ${a}`),
|
|
6485
|
+
fr.debug(`CONNECTED message received: ${a}`), l?.();
|
|
6493
6486
|
break;
|
|
6494
6487
|
case Cn.STATUS_SYNC:
|
|
6495
6488
|
i?.(S);
|
|
@@ -6518,7 +6511,7 @@ function Th(e) {
|
|
|
6518
6511
|
thinking: !1,
|
|
6519
6512
|
statusType: "idle",
|
|
6520
6513
|
hasPending: !1
|
|
6521
|
-
}),
|
|
6514
|
+
}), l = (v) => n.value[v] || r(), o = (v, b) => {
|
|
6522
6515
|
n.value = {
|
|
6523
6516
|
...n.value,
|
|
6524
6517
|
[v]: b
|
|
@@ -6528,7 +6521,7 @@ function Th(e) {
|
|
|
6528
6521
|
const b = n.value[v];
|
|
6529
6522
|
if (b?.completed === !0) {
|
|
6530
6523
|
const A = { ...b };
|
|
6531
|
-
delete A.completed,
|
|
6524
|
+
delete A.completed, o(v, A);
|
|
6532
6525
|
}
|
|
6533
6526
|
}
|
|
6534
6527
|
function d(v) {
|
|
@@ -6549,32 +6542,32 @@ function Th(e) {
|
|
|
6549
6542
|
const b = v.sessionId, A = v.status, k = Eh.has(A), O = s.get(b) === !0;
|
|
6550
6543
|
s.set(b, k);
|
|
6551
6544
|
const L = {
|
|
6552
|
-
...
|
|
6545
|
+
...l(b),
|
|
6553
6546
|
thinking: k,
|
|
6554
6547
|
statusType: A
|
|
6555
6548
|
};
|
|
6556
|
-
!k && O ? b !== t.value && (L.completed = !0) : k && delete L.completed,
|
|
6549
|
+
!k && O ? b !== t.value && (L.completed = !0) : k && delete L.completed, o(b, L);
|
|
6557
6550
|
break;
|
|
6558
6551
|
}
|
|
6559
6552
|
case "session.subagents": {
|
|
6560
6553
|
const b = v.sessionId, A = {
|
|
6561
|
-
...
|
|
6554
|
+
...l(b),
|
|
6562
6555
|
subagentsRunning: v.running
|
|
6563
6556
|
};
|
|
6564
|
-
v.running <= 0 && delete A.subagentsRunning, v.running > 0 && delete A.completed,
|
|
6557
|
+
v.running <= 0 && delete A.subagentsRunning, v.running > 0 && delete A.completed, o(b, A);
|
|
6565
6558
|
break;
|
|
6566
6559
|
}
|
|
6567
6560
|
case "session.pending": {
|
|
6568
6561
|
const b = v.sessionId, A = {
|
|
6569
|
-
...
|
|
6562
|
+
...l(b),
|
|
6570
6563
|
hasPending: v.pending
|
|
6571
6564
|
};
|
|
6572
|
-
v.pending ? A.pendingKind = v.kind ?? "question" : delete A.pendingKind,
|
|
6565
|
+
v.pending ? A.pendingKind = v.kind ?? "question" : delete A.pendingKind, o(b, A);
|
|
6573
6566
|
break;
|
|
6574
6567
|
}
|
|
6575
6568
|
case "thinking": {
|
|
6576
|
-
const b =
|
|
6577
|
-
|
|
6569
|
+
const b = l(v.sessionId);
|
|
6570
|
+
o(v.sessionId, {
|
|
6578
6571
|
...b,
|
|
6579
6572
|
thinking: v.thinking
|
|
6580
6573
|
});
|
|
@@ -6622,17 +6615,17 @@ function hr(e) {
|
|
|
6622
6615
|
};
|
|
6623
6616
|
}
|
|
6624
6617
|
function Ch(e) {
|
|
6625
|
-
const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (L) => i ? `${i}${L}` : L, r = /* @__PURE__ */ P([]),
|
|
6618
|
+
const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (L) => i ? `${i}${L}` : L, r = /* @__PURE__ */ P([]), l = /* @__PURE__ */ P(void 0), o = /* @__PURE__ */ P(null), a = /* @__PURE__ */ P(!0), d = /* @__PURE__ */ P(!0), u = /* @__PURE__ */ P(!1), f = /* @__PURE__ */ P(!1), p = /* @__PURE__ */ P("host"), m = () => d.value, S = U(() => m() ? o.value && r.value.find((L) => L.id === o.value)?.url || "" : r.value[0]?.url || ""), _ = (L) => {
|
|
6626
6619
|
a.value = !0, m() || n?.(L);
|
|
6627
6620
|
}, v = async () => {
|
|
6628
|
-
|
|
6621
|
+
l.value = !0, (m() || r.value.length === 0) && (a.value = !0);
|
|
6629
6622
|
try {
|
|
6630
|
-
const L =
|
|
6631
|
-
d.value = N.capabilities?.deepLink !== !1, u.value = N.capabilities?.reviewPanel === !0, f.value = N.capabilities?.sidebar?.takeover === !0, p.value = N.capabilities?.sidebar?.collapseControl ?? "host", r.value = N.sessions.map(hr), r.value.length || A(),
|
|
6623
|
+
const L = o.value, K = L ? `?current=${encodeURIComponent(L)}` : "", N = await (await fetch(s(Vi + K))).json();
|
|
6624
|
+
d.value = N.capabilities?.deepLink !== !1, u.value = N.capabilities?.reviewPanel === !0, f.value = N.capabilities?.sidebar?.takeover === !0, p.value = N.capabilities?.sidebar?.collapseControl ?? "host", r.value = N.sessions.map(hr), r.value.length || A(), o.value = r.value[0]?.id || null, o.value && _(o.value);
|
|
6632
6625
|
} catch (L) {
|
|
6633
6626
|
wh.error("Failed to load sessions:", { error: L });
|
|
6634
6627
|
} finally {
|
|
6635
|
-
|
|
6628
|
+
l.value = !1;
|
|
6636
6629
|
}
|
|
6637
6630
|
}, b = (L) => {
|
|
6638
6631
|
const K = r.value.findIndex((H) => H.id === L.id);
|
|
@@ -6646,15 +6639,15 @@ function Ch(e) {
|
|
|
6646
6639
|
}, A = async () => {
|
|
6647
6640
|
try {
|
|
6648
6641
|
const L = await (await fetch(s(Vi), { method: "POST" })).json();
|
|
6649
|
-
r.value.unshift(hr(L)), a.value = !0, await cn(),
|
|
6642
|
+
r.value.unshift(hr(L)), a.value = !0, await cn(), o.value = L.id, _(L.id);
|
|
6650
6643
|
} catch {
|
|
6651
6644
|
t("创建会话失败");
|
|
6652
6645
|
}
|
|
6653
6646
|
};
|
|
6654
6647
|
return {
|
|
6655
6648
|
sessions: r,
|
|
6656
|
-
loadingSessionList:
|
|
6657
|
-
currentSessionId:
|
|
6649
|
+
loadingSessionList: l,
|
|
6650
|
+
currentSessionId: o,
|
|
6658
6651
|
deepLink: d,
|
|
6659
6652
|
reviewPanelEnabled: u,
|
|
6660
6653
|
providerSidebar: f,
|
|
@@ -6666,36 +6659,36 @@ function Ch(e) {
|
|
|
6666
6659
|
createSession: A,
|
|
6667
6660
|
deleteSession: async (L) => {
|
|
6668
6661
|
try {
|
|
6669
|
-
if (await fetch(s(`${Vi}?id=${L.id}`), { method: "DELETE" }), await v(), t("会话已删除"),
|
|
6662
|
+
if (await fetch(s(`${Vi}?id=${L.id}`), { method: "DELETE" }), await v(), t("会话已删除"), o.value === L.id)
|
|
6670
6663
|
if (r.value.length > 0) {
|
|
6671
6664
|
const K = r.value[0];
|
|
6672
|
-
a.value = !0, await cn(),
|
|
6665
|
+
a.value = !0, await cn(), o.value = K.id, _(K.id);
|
|
6673
6666
|
} else
|
|
6674
|
-
a.value = !1,
|
|
6667
|
+
a.value = !1, o.value = null;
|
|
6675
6668
|
} catch {
|
|
6676
6669
|
t("删除会话失败");
|
|
6677
6670
|
}
|
|
6678
6671
|
},
|
|
6679
6672
|
selectSession: async (L) => {
|
|
6680
|
-
|
|
6673
|
+
o.value !== L.id && (a.value = !0, await cn(), o.value = L.id, _(L.id));
|
|
6681
6674
|
},
|
|
6682
6675
|
updateSessionInfo: b
|
|
6683
6676
|
};
|
|
6684
6677
|
}
|
|
6685
6678
|
function xh(e, t) {
|
|
6686
|
-
const i = /* @__PURE__ */ P(e), n = U(() =>
|
|
6687
|
-
t.value?.sendMessageToIframe(
|
|
6679
|
+
const i = /* @__PURE__ */ P(e), n = U(() => Hl(i.value)), s = () => {
|
|
6680
|
+
t.value?.sendMessageToIframe(le.SET_THEME, { theme: n.value });
|
|
6688
6681
|
};
|
|
6689
6682
|
let r = null;
|
|
6690
|
-
const
|
|
6683
|
+
const l = () => {
|
|
6691
6684
|
i.value === "auto" && s();
|
|
6692
6685
|
};
|
|
6693
6686
|
return et(() => {
|
|
6694
|
-
r = window.matchMedia("(prefers-color-scheme: dark)"), r.addEventListener("change",
|
|
6687
|
+
r = window.matchMedia("(prefers-color-scheme: dark)"), r.addEventListener("change", l), Re(n, () => {
|
|
6695
6688
|
s();
|
|
6696
6689
|
});
|
|
6697
6690
|
}), Xe(() => {
|
|
6698
|
-
r && r.removeEventListener("change",
|
|
6691
|
+
r && r.removeEventListener("change", l);
|
|
6699
6692
|
}), {
|
|
6700
6693
|
theme: i,
|
|
6701
6694
|
resolvedTheme: n,
|
|
@@ -6703,14 +6696,14 @@ function xh(e, t) {
|
|
|
6703
6696
|
};
|
|
6704
6697
|
}
|
|
6705
6698
|
function Ih(e = "") {
|
|
6706
|
-
const t = e ? `${ir}_${e}` : ir, i = /* @__PURE__ */ P([]), n =
|
|
6707
|
-
return n && (i.value = n), Re(i, (
|
|
6708
|
-
|
|
6699
|
+
const t = e ? `${ir}_${e}` : ir, i = /* @__PURE__ */ P([]), n = Bl("session", t);
|
|
6700
|
+
return n && (i.value = n), Re(i, (o) => {
|
|
6701
|
+
$l("session", t, o);
|
|
6709
6702
|
}, { deep: !0 }), {
|
|
6710
6703
|
selectedElements: i,
|
|
6711
|
-
addElement: (
|
|
6712
|
-
removeElement: (
|
|
6713
|
-
i.value.splice(
|
|
6704
|
+
addElement: (o) => i.value.some((a) => a.filePath === o.filePath && a.line === o.line) ? !1 : (i.value.push(o), !0),
|
|
6705
|
+
removeElement: (o) => {
|
|
6706
|
+
i.value.splice(o, 1);
|
|
6714
6707
|
},
|
|
6715
6708
|
clearElements: () => {
|
|
6716
6709
|
i.value = [];
|
|
@@ -6718,7 +6711,7 @@ function Ih(e = "") {
|
|
|
6718
6711
|
};
|
|
6719
6712
|
}
|
|
6720
6713
|
function Ah() {
|
|
6721
|
-
const e = /* @__PURE__ */ P(""), t = /* @__PURE__ */ P("idle"), i = /* @__PURE__ */ P(!1), n = /* @__PURE__ */ P(void 0), s = /* @__PURE__ */ P(void 0), r = /* @__PURE__ */ P(void 0),
|
|
6714
|
+
const e = /* @__PURE__ */ P(""), t = /* @__PURE__ */ P("idle"), i = /* @__PURE__ */ P(!1), n = /* @__PURE__ */ P(void 0), s = /* @__PURE__ */ P(void 0), r = /* @__PURE__ */ P(void 0), l = /* @__PURE__ */ P(void 0), o = zt("useServiceStatus"), a = U(() => e.value && uc[e.value] || "加载中...");
|
|
6722
6715
|
return {
|
|
6723
6716
|
currentTask: e,
|
|
6724
6717
|
serviceStatus: t,
|
|
@@ -6726,11 +6719,11 @@ function Ah() {
|
|
|
6726
6719
|
chromeMcpErrorType: n,
|
|
6727
6720
|
chromeMcpErrorMessage: s,
|
|
6728
6721
|
failureErrorType: r,
|
|
6729
|
-
failureErrorMessage:
|
|
6722
|
+
failureErrorMessage: l,
|
|
6730
6723
|
loadingText: a,
|
|
6731
6724
|
updateStatusFromTask: (f, p, m) => {
|
|
6732
6725
|
const S = t.value;
|
|
6733
|
-
e.value = f, f === "ready" ? (t.value = "ready", i.value = !1, n.value = void 0, s.value = void 0, r.value = void 0,
|
|
6726
|
+
e.value = f, f === "ready" ? (t.value = "ready", i.value = !1, n.value = void 0, s.value = void 0, r.value = void 0, l.value = void 0) : f === "chrome_mcp_failed" ? (t.value = "partial", i.value = !0, n.value = p, s.value = m) : f === "session_creation_failed" || f === "provider_not_installed" || f === "web_start_timeout" || f === "proxy_start_failed" ? (t.value = "failed", r.value = p, l.value = m) : t.value === "idle" && f && (t.value = "starting"), o.debug(`updateStatusFromTask: task="${f}" status: ${S} -> ${t.value}`);
|
|
6734
6727
|
},
|
|
6735
6728
|
setStarting: () => {
|
|
6736
6729
|
t.value = "starting";
|
|
@@ -6739,8 +6732,8 @@ function Ah() {
|
|
|
6739
6732
|
}
|
|
6740
6733
|
function Mh(e, t, i = "") {
|
|
6741
6734
|
let n = "", s = "";
|
|
6742
|
-
const r = (p) => i ? `${i}${p}` : p,
|
|
6743
|
-
fetch(r(
|
|
6735
|
+
const r = (p) => i ? `${i}${p}` : p, l = (p, m) => {
|
|
6736
|
+
fetch(r(xl), {
|
|
6744
6737
|
method: "POST",
|
|
6745
6738
|
headers: { "Content-Type": "application/json" },
|
|
6746
6739
|
body: JSON.stringify({
|
|
@@ -6750,12 +6743,12 @@ function Mh(e, t, i = "") {
|
|
|
6750
6743
|
})
|
|
6751
6744
|
}).catch(() => {
|
|
6752
6745
|
});
|
|
6753
|
-
},
|
|
6746
|
+
}, o = (p = !1) => {
|
|
6754
6747
|
if (e.value === "idle") return;
|
|
6755
6748
|
const m = window.location.href, S = document.title;
|
|
6756
|
-
(p || m !== n || S !== s) && (n = m, s = S,
|
|
6749
|
+
(p || m !== n || S !== s) && (n = m, s = S, l(m, S));
|
|
6757
6750
|
}, a = () => {
|
|
6758
|
-
requestAnimationFrame(() =>
|
|
6751
|
+
requestAnimationFrame(() => o());
|
|
6759
6752
|
};
|
|
6760
6753
|
let d = null;
|
|
6761
6754
|
const u = history.pushState, f = history.replaceState;
|
|
@@ -6765,19 +6758,19 @@ function Mh(e, t, i = "") {
|
|
|
6765
6758
|
}, history.replaceState = function(...p) {
|
|
6766
6759
|
f.apply(this, p), a();
|
|
6767
6760
|
}, window.addEventListener("popstate", a), window.addEventListener("hashchange", a), d = new MutationObserver(() => {
|
|
6768
|
-
document.title !== s &&
|
|
6761
|
+
document.title !== s && o();
|
|
6769
6762
|
}), document.head && d.observe(document.head, {
|
|
6770
6763
|
childList: !0,
|
|
6771
6764
|
subtree: !0
|
|
6772
6765
|
});
|
|
6773
6766
|
}), Xe(() => {
|
|
6774
6767
|
history.pushState = u, history.replaceState = f, window.removeEventListener("popstate", a), window.removeEventListener("hashchange", a), d && d.disconnect();
|
|
6775
|
-
}), { updateContext:
|
|
6768
|
+
}), { updateContext: o };
|
|
6776
6769
|
}
|
|
6777
6770
|
function Oh(e, t, i = "", n = "") {
|
|
6778
|
-
let s = "", r = "",
|
|
6771
|
+
let s = "", r = "", l, o;
|
|
6779
6772
|
const a = /* @__PURE__ */ P(""), d = /* @__PURE__ */ P(""), u = /* @__PURE__ */ P(""), f = zt("ExtCtx"), p = (v) => i ? `${i}${v}` : v, m = (v, b) => {
|
|
6780
|
-
f.debug(`POST 上下文: tabId=${
|
|
6773
|
+
f.debug(`POST 上下文: tabId=${l} url=${v} title=${b}`), fetch(p(xl), {
|
|
6781
6774
|
method: "POST",
|
|
6782
6775
|
headers: { "Content-Type": "application/json" },
|
|
6783
6776
|
body: JSON.stringify({
|
|
@@ -6785,8 +6778,8 @@ function Oh(e, t, i = "", n = "") {
|
|
|
6785
6778
|
title: b,
|
|
6786
6779
|
sessionId: u.value,
|
|
6787
6780
|
active: !0,
|
|
6788
|
-
...
|
|
6789
|
-
...
|
|
6781
|
+
...l !== void 0 ? { tabId: l } : {},
|
|
6782
|
+
...o !== void 0 ? { tabIndex: o } : {},
|
|
6790
6783
|
selectedElements: t.value
|
|
6791
6784
|
})
|
|
6792
6785
|
}).catch(() => {
|
|
@@ -6798,12 +6791,12 @@ function Oh(e, t, i = "", n = "") {
|
|
|
6798
6791
|
}, _ = (v) => {
|
|
6799
6792
|
if (!(v.serviceInstanceId && v.serviceInstanceId !== n)) {
|
|
6800
6793
|
if (v.type === Ct.TAB_SWITCHED) {
|
|
6801
|
-
f.debug(`activeTabId: ${
|
|
6794
|
+
f.debug(`activeTabId: ${l} → ${v.tabId} (windowId=${v.windowId})`), l = v.tabId;
|
|
6802
6795
|
return;
|
|
6803
6796
|
}
|
|
6804
6797
|
if (v.type === Ct.PAGE_CONTEXT && v.ctx) {
|
|
6805
|
-
const b =
|
|
6806
|
-
if (
|
|
6798
|
+
const b = l === void 0 || v.tabId === void 0 || v.tabId === l;
|
|
6799
|
+
if (l === void 0 && v.tabId !== void 0 && (l = v.tabId), !b) return;
|
|
6807
6800
|
a.value = v.ctx.url, d.value = v.ctx.title, u.value = v.ctx.sessionId || "", S(!0);
|
|
6808
6801
|
}
|
|
6809
6802
|
}
|
|
@@ -6815,7 +6808,7 @@ function Oh(e, t, i = "", n = "") {
|
|
|
6815
6808
|
active: !0,
|
|
6816
6809
|
currentWindow: !0
|
|
6817
6810
|
});
|
|
6818
|
-
v[0]?.id !== void 0 ? (
|
|
6811
|
+
v[0]?.id !== void 0 ? (l = v[0].id, o = v[0].index, f.debug(`onMounted activeTabId=${l} tabIndex=${o} url=${v[0].url}`), chrome.tabs.sendMessage(v[0].id, { type: Ct.REQUEST_PAGE_CONTEXT }).catch(() => {
|
|
6819
6812
|
})) : f.debug(`onMounted 未查询到活跃 Tab, tabs=${JSON.stringify(v)}`);
|
|
6820
6813
|
} catch (v) {
|
|
6821
6814
|
f.debug(`onMounted 查询 Tab 失败: ${v}`);
|
|
@@ -6830,7 +6823,7 @@ function Ph(e) {
|
|
|
6830
6823
|
if (d.serviceInstanceId && d.serviceInstanceId !== i) return;
|
|
6831
6824
|
} else if (d.serviceInstanceId !== i) return;
|
|
6832
6825
|
switch (d.type) {
|
|
6833
|
-
case
|
|
6826
|
+
case le.ELEMENT_SELECTED:
|
|
6834
6827
|
n({
|
|
6835
6828
|
filePath: d.filePath ?? null,
|
|
6836
6829
|
line: d.line ?? null,
|
|
@@ -6839,13 +6832,13 @@ function Ph(e) {
|
|
|
6839
6832
|
description: d.description
|
|
6840
6833
|
}, d.pageUrl);
|
|
6841
6834
|
break;
|
|
6842
|
-
case
|
|
6835
|
+
case le.SELECTION_CANCELLED:
|
|
6843
6836
|
t.value = !1;
|
|
6844
6837
|
break;
|
|
6845
|
-
case
|
|
6838
|
+
case le.SELECTOR_START:
|
|
6846
6839
|
t.value = !0;
|
|
6847
6840
|
break;
|
|
6848
|
-
case
|
|
6841
|
+
case le.SELECTOR_STOP:
|
|
6849
6842
|
t.value = !1;
|
|
6850
6843
|
break;
|
|
6851
6844
|
case Ct.THEME_CHANGE:
|
|
@@ -6857,7 +6850,7 @@ function Ph(e) {
|
|
|
6857
6850
|
}), Xe(() => {
|
|
6858
6851
|
chrome.runtime.onMessage.removeListener(r);
|
|
6859
6852
|
});
|
|
6860
|
-
async function
|
|
6853
|
+
async function l(d) {
|
|
6861
6854
|
try {
|
|
6862
6855
|
const u = await chrome.tabs.query({
|
|
6863
6856
|
active: !0,
|
|
@@ -6867,8 +6860,8 @@ function Ph(e) {
|
|
|
6867
6860
|
} catch {
|
|
6868
6861
|
}
|
|
6869
6862
|
}
|
|
6870
|
-
function
|
|
6871
|
-
|
|
6863
|
+
function o(d) {
|
|
6864
|
+
l({ type: d ? Ct.SELECTION_START : Ct.SELECTION_STOP });
|
|
6872
6865
|
}
|
|
6873
6866
|
function a(d) {
|
|
6874
6867
|
chrome.runtime.sendMessage({
|
|
@@ -6878,43 +6871,43 @@ function Ph(e) {
|
|
|
6878
6871
|
});
|
|
6879
6872
|
}
|
|
6880
6873
|
return {
|
|
6881
|
-
onSelectModeChange:
|
|
6874
|
+
onSelectModeChange: o,
|
|
6882
6875
|
broadcastTheme: a
|
|
6883
6876
|
};
|
|
6884
6877
|
}
|
|
6885
6878
|
function Rh(e) {
|
|
6886
6879
|
const { serviceInstanceId: t = "", onSelectModeChange: i } = e;
|
|
6887
|
-
function n(
|
|
6880
|
+
function n(o) {
|
|
6888
6881
|
window.postMessage(t ? {
|
|
6889
|
-
...
|
|
6882
|
+
...o,
|
|
6890
6883
|
serviceInstanceId: t
|
|
6891
|
-
} :
|
|
6884
|
+
} : o, "*");
|
|
6892
6885
|
}
|
|
6893
|
-
const s = (
|
|
6894
|
-
const a =
|
|
6895
|
-
a ===
|
|
6886
|
+
const s = (o) => {
|
|
6887
|
+
const a = o.data?.type;
|
|
6888
|
+
a === le.SELECTOR_START ? i(!0) : a === le.SELECTOR_STOP && i(!1);
|
|
6896
6889
|
};
|
|
6897
6890
|
et(() => {
|
|
6898
6891
|
window.addEventListener("message", s);
|
|
6899
6892
|
}), Xe(() => {
|
|
6900
6893
|
window.removeEventListener("message", s);
|
|
6901
6894
|
});
|
|
6902
|
-
function r(
|
|
6895
|
+
function r(o) {
|
|
6903
6896
|
n({
|
|
6904
|
-
type:
|
|
6905
|
-
filePath:
|
|
6906
|
-
line:
|
|
6907
|
-
column:
|
|
6908
|
-
innerText:
|
|
6909
|
-
description:
|
|
6897
|
+
type: le.ELEMENT_SELECTED,
|
|
6898
|
+
filePath: o.filePath,
|
|
6899
|
+
line: o.line,
|
|
6900
|
+
column: o.column,
|
|
6901
|
+
innerText: o.innerText,
|
|
6902
|
+
description: o.description
|
|
6910
6903
|
});
|
|
6911
6904
|
}
|
|
6912
|
-
function o
|
|
6913
|
-
n({ type:
|
|
6905
|
+
function l(o) {
|
|
6906
|
+
n({ type: o ? le.SELECTOR_START : le.SELECTOR_STOP });
|
|
6914
6907
|
}
|
|
6915
6908
|
return {
|
|
6916
6909
|
notifySelectionResult: r,
|
|
6917
|
-
notifySelectModeChange:
|
|
6910
|
+
notifySelectModeChange: l
|
|
6918
6911
|
};
|
|
6919
6912
|
}
|
|
6920
6913
|
var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-text" }, kh = /* @__PURE__ */ Qe({
|
|
@@ -6955,10 +6948,10 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
6955
6948
|
"stroke-linejoin": "round",
|
|
6956
6949
|
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
6957
6950
|
})])], -1)),
|
|
6958
|
-
e.errorType === ue(
|
|
6951
|
+
e.errorType === ue(kl).CHROME_NOT_CONNECTED ? ($(), j(ye, { key: 0 }, [r[2] || (r[2] = y("div", { class: "aipanel-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div", Bh, [
|
|
6959
6952
|
r[0] || (r[0] = y("p", null, "请按以下步骤开启 Chrome 远程调试:", -1)),
|
|
6960
6953
|
r[1] || (r[1] = y("div", { class: "aipanel-chrome-warmup-steps" }, [
|
|
6961
|
-
y("div", null, [
|
|
6954
|
+
y("div", null, [vl(" 在 Chrome 地址栏输入 "), y("code", { class: "aipanel-chrome-warmup-code" }, "chrome://inspect/#remote-debugging")]),
|
|
6962
6955
|
y("div", null, "勾选 'Allow remote debugging for this browser instance' 选项"),
|
|
6963
6956
|
y("div", null, "重新启动浏览器"),
|
|
6964
6957
|
y("div", null, "完成后点击下方按钮重试")
|
|
@@ -6972,11 +6965,11 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
6972
6965
|
}, Pe(e.retrying ? "连接中..." : "重试连接"), 9, zh)])
|
|
6973
6966
|
]));
|
|
6974
6967
|
}
|
|
6975
|
-
}),
|
|
6968
|
+
}), _o = (e, t) => {
|
|
6976
6969
|
const i = e.__vccOpts || e;
|
|
6977
6970
|
for (const [n, s] of t) i[n] = s;
|
|
6978
6971
|
return i;
|
|
6979
|
-
}, qh = /* @__PURE__ */
|
|
6972
|
+
}, qh = /* @__PURE__ */ _o(Uh, [["__scopeId", "data-v-3b8b1e42"]]), Kh = {
|
|
6980
6973
|
key: 1,
|
|
6981
6974
|
class: "aipanel-failure"
|
|
6982
6975
|
}, Gh = { class: "aipanel-failure-title" }, Yh = {
|
|
@@ -6986,21 +6979,21 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
6986
6979
|
__name: "App",
|
|
6987
6980
|
props: { config: {} },
|
|
6988
6981
|
setup(e) {
|
|
6989
|
-
const t = e, i = /* @__PURE__ */ P(!1), n = /* @__PURE__ */ P(!1), s = /* @__PURE__ */ P(!0), r = /* @__PURE__ */ P(!1),
|
|
6982
|
+
const t = e, i = /* @__PURE__ */ P(!1), n = /* @__PURE__ */ P(!1), s = /* @__PURE__ */ P(!0), r = /* @__PURE__ */ P(!1), l = /* @__PURE__ */ P(null), o = /* @__PURE__ */ P(!1), { theme: a = "auto", open: d = !1, hotkey: u = "ctrl+k", proxyPort: f = Lu, displayMode: p = "bubble", splitMode: m, vitePort: S = "", viteHost: _ = "", serviceInstanceId: v = "", myWindowId: b } = t.config, A = zt("AIPanel"), k = zt("App"), O = a, L = /* @__PURE__ */ P(m?.width ?? 500), K = p === "extension", N = p === "extension-selector", H = U(() => S && _ ? `http://${_}:${S}` : ""), z = (I) => H.value ? `${H.value}${I}` : I, ce = {
|
|
6990
6983
|
onSelectModeChange: null,
|
|
6991
6984
|
broadcastTheme: null,
|
|
6992
6985
|
notifySelectionResult: null,
|
|
6993
6986
|
notifySelectModeChange: null
|
|
6994
|
-
},
|
|
6995
|
-
|
|
6987
|
+
}, oe = (I, fe) => {
|
|
6988
|
+
l.value?.showNotification?.(I, {
|
|
6996
6989
|
...fe,
|
|
6997
6990
|
mode: K ? "widget" : fe?.mode
|
|
6998
6991
|
});
|
|
6999
|
-
}, { serviceStatus: X, currentTask: F, chromeMcpFailed: G, chromeMcpErrorType: Q, chromeMcpErrorMessage: Y, failureErrorMessage: ee, loadingText: Fe, updateStatusFromTask: Je, setStarting: Be } = Ah(), { selectedElements: ke, addElement: $e, removeElement: mt, clearElements: _t } = Ih(v), { theme: ct, sendThemeToIframe: ze } = xh(O,
|
|
7000
|
-
showNotification:
|
|
6992
|
+
}, { serviceStatus: X, currentTask: F, chromeMcpFailed: G, chromeMcpErrorType: Q, chromeMcpErrorMessage: Y, failureErrorMessage: ee, loadingText: Fe, updateStatusFromTask: Je, setStarting: Be } = Ah(), { selectedElements: ke, addElement: $e, removeElement: mt, clearElements: _t } = Ih(v), { theme: ct, sendThemeToIframe: ze } = xh(O, l), { sessions: ot, loadingSessionList: We, currentSessionId: we, iframeSrc: be, iframeLoading: Ue, isDeepLink: at, reviewPanelEnabled: c, providerSidebar: h, sidebarCollapseControl: g, loadSessions: x, createSession: T, deleteSession: C, selectSession: D, updateSessionInfo: R } = Ch({
|
|
6993
|
+
showNotification: oe,
|
|
7001
6994
|
viteBaseUrl: H.value,
|
|
7002
6995
|
onFocusSession: (I) => {
|
|
7003
|
-
|
|
6996
|
+
l.value?.sendMessageToIframe(le.FOCUS_SESSION, { sessionId: I });
|
|
7004
6997
|
}
|
|
7005
6998
|
}), { updateContext: M } = K ? Oh(X, ke, H.value, v) : Mh(X, ke, H.value), w = Th({
|
|
7006
6999
|
currentSessionId: we,
|
|
@@ -7040,14 +7033,14 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7040
7033
|
}));
|
|
7041
7034
|
});
|
|
7042
7035
|
const q = w.hasAnyThinking, Z = w.sessionStates, ae = U(() => X.value === "starting"), se = U(() => X.value === "starting" || Ue.value), ve = U(() => X.value === "starting" ? Fe.value : "加载会话..."), _e = async () => {
|
|
7043
|
-
|
|
7036
|
+
o.value = !0;
|
|
7044
7037
|
try {
|
|
7045
7038
|
const I = await (await fetch(z(Bu), { method: "POST" })).json();
|
|
7046
|
-
I.success ? (G.value = !1, Q.value = void 0, Y.value = void 0, X.value = "ready",
|
|
7039
|
+
I.success ? (G.value = !1, Q.value = void 0, Y.value = void 0, X.value = "ready", oe("Chrome DevTools MCP 连接成功")) : (Q.value = I.errorType, Y.value = I.error, oe(I.error || "重试失败,请确认 Chrome 远程调试已开启"));
|
|
7047
7040
|
} catch (I) {
|
|
7048
|
-
A.error("Retry warmup failed:", { error: I }),
|
|
7041
|
+
A.error("Retry warmup failed:", { error: I }), oe("重试失败,请稍后再试");
|
|
7049
7042
|
} finally {
|
|
7050
|
-
|
|
7043
|
+
o.value = !1;
|
|
7051
7044
|
}
|
|
7052
7045
|
}, He = async () => {
|
|
7053
7046
|
if (X.value !== "idle") return !0;
|
|
@@ -7074,7 +7067,7 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7074
7067
|
return;
|
|
7075
7068
|
}
|
|
7076
7069
|
const I = Ii().map((fe) => fe.label).join(" / ");
|
|
7077
|
-
|
|
7070
|
+
oe(`${I} 未加载,无法使用元素选择功能`);
|
|
7078
7071
|
};
|
|
7079
7072
|
K || dr("ctrl+p", (I) => {
|
|
7080
7073
|
I.preventDefault(), Oe();
|
|
@@ -7082,16 +7075,16 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7082
7075
|
I !== "idle" && fe === "idle" && W.connect(), I === "ready" && fe !== "ready" && (k.debug("服务就绪,加载会话列表"), x());
|
|
7083
7076
|
});
|
|
7084
7077
|
const Ae = /* @__PURE__ */ P(null), $t = (I) => {
|
|
7085
|
-
if (I.data?.type ===
|
|
7078
|
+
if (I.data?.type === le.SESSION_READY) {
|
|
7086
7079
|
const fe = I.data.sessionId;
|
|
7087
7080
|
if (ze(), fe && fe === we.value) {
|
|
7088
7081
|
Ae.value && (clearTimeout(Ae.value), Ae.value = null), Ue.value = !1;
|
|
7089
7082
|
return;
|
|
7090
7083
|
}
|
|
7091
|
-
Ue.value && we.value &&
|
|
7084
|
+
Ue.value && we.value && l.value?.sendMessageToIframe(le.FOCUS_SESSION, { sessionId: we.value });
|
|
7092
7085
|
return;
|
|
7093
7086
|
}
|
|
7094
|
-
I.data?.type ===
|
|
7087
|
+
I.data?.type === le.READY && at() && (Ae.value && (clearTimeout(Ae.value), Ae.value = null), Ue.value = !1, ze(), we.value && l.value?.sendMessageToIframe(le.FOCUS_SESSION, { sessionId: we.value })), I.data?.type === le.KEYDOWN && (I.data.key === "Escape" && n.value && It(!1), I.data.ctrlKey && I.data.key.toLowerCase() === "p" && Oe());
|
|
7095
7088
|
}, Se = () => {
|
|
7096
7089
|
n.value && ce.onSelectModeChange?.(!1);
|
|
7097
7090
|
};
|
|
@@ -7107,14 +7100,14 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7107
7100
|
r.value = !0;
|
|
7108
7101
|
const fe = await He();
|
|
7109
7102
|
if (r.value = !1, !fe) {
|
|
7110
|
-
|
|
7103
|
+
oe("服务启动失败");
|
|
7111
7104
|
return;
|
|
7112
7105
|
}
|
|
7113
7106
|
}
|
|
7114
7107
|
i.value = I, I && M();
|
|
7115
7108
|
}, qe = async (I, fe) => {
|
|
7116
7109
|
if (N) {
|
|
7117
|
-
ce.notifySelectionResult?.(I),
|
|
7110
|
+
ce.notifySelectionResult?.(I), oe("元素已选中", { mode: "page" });
|
|
7118
7111
|
return;
|
|
7119
7112
|
}
|
|
7120
7113
|
const Ut = ke.value.find((Kn) => Kn.filePath === I.filePath && Kn.line === I.line)?.id ?? cc(I), qt = {
|
|
@@ -7122,13 +7115,13 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7122
7115
|
id: Ut,
|
|
7123
7116
|
previewPageUrl: K && fe ? fe : window.location.href
|
|
7124
7117
|
};
|
|
7125
|
-
$e(qt) && M(!0),
|
|
7118
|
+
$e(qt) && M(!0), l.value?.sendMessageToIframe(le.INSERT_FILE_PART, { element: qt }), oe("节点已添加到对话框", { mode: "page" });
|
|
7126
7119
|
}, Wt = () => {
|
|
7127
|
-
_t(), M(!0),
|
|
7120
|
+
_t(), M(!0), oe("已清除所有选中元素");
|
|
7128
7121
|
}, It = (I) => {
|
|
7129
7122
|
if (n.value === I) return;
|
|
7130
|
-
n.value = I, K && ce.onSelectModeChange?.(I),
|
|
7131
|
-
const fe =
|
|
7123
|
+
n.value = I, K && ce.onSelectModeChange?.(I), l.value?.sendMessageToIframe(le.SELECT_MODE_CHANGE, { selectMode: I });
|
|
7124
|
+
const fe = l.value?.isSplitMode;
|
|
7132
7125
|
I && !fe && i.value && (i.value = !1), !I && !i.value && (i.value = !0), N && ce.notifySelectModeChange?.(I);
|
|
7133
7126
|
};
|
|
7134
7127
|
if (K) {
|
|
@@ -7165,7 +7158,7 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7165
7158
|
};
|
|
7166
7159
|
return (I, fe) => ($(), gt(ue(vh), {
|
|
7167
7160
|
ref_key: "widgetRef",
|
|
7168
|
-
ref:
|
|
7161
|
+
ref: l,
|
|
7169
7162
|
theme: ue(ct),
|
|
7170
7163
|
open: i.value,
|
|
7171
7164
|
"select-mode": n.value,
|
|
@@ -7176,7 +7169,7 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7176
7169
|
"show-error": ue(G) || ue(X) === "failed",
|
|
7177
7170
|
"iframe-src": ue(be),
|
|
7178
7171
|
"current-session-id": ue(we),
|
|
7179
|
-
sessions: ue(
|
|
7172
|
+
sessions: ue(ot),
|
|
7180
7173
|
"session-states": ue(Z),
|
|
7181
7174
|
"review-panel-enabled": ue(c),
|
|
7182
7175
|
"provider-sidebar": ue(h),
|
|
@@ -7205,7 +7198,7 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7205
7198
|
loading: Ce(() => [Ne(Dh, { "loading-text": ve.value }, null, 8, ["loading-text"])]),
|
|
7206
7199
|
error: Ce(() => [ue(G) ? ($(), gt(qh, {
|
|
7207
7200
|
key: 0,
|
|
7208
|
-
retrying:
|
|
7201
|
+
retrying: o.value,
|
|
7209
7202
|
"error-type": ue(Q),
|
|
7210
7203
|
"error-message": ue(Y),
|
|
7211
7204
|
onRetry: _e
|
|
@@ -7242,12 +7235,12 @@ var Lh = { class: "aipanel-custom-loading" }, Nh = { class: "aipanel-loading-tex
|
|
|
7242
7235
|
"onEmptyAction"
|
|
7243
7236
|
]));
|
|
7244
7237
|
}
|
|
7245
|
-
}), Jh = /* @__PURE__ */
|
|
7238
|
+
}), Jh = /* @__PURE__ */ _o(Xh, [["__scopeId", "data-v-e9b11b8f"]]), Zh = zt("AIPanel"), St = {}, pr = document.querySelector(`script[${Cl}]`);
|
|
7246
7239
|
if (pr) {
|
|
7247
|
-
const e = pr.getAttribute(
|
|
7240
|
+
const e = pr.getAttribute(Cl);
|
|
7248
7241
|
if (e) try {
|
|
7249
7242
|
const t = new TextDecoder().decode(Uint8Array.from(atob(e), (i) => i.charCodeAt(0)));
|
|
7250
|
-
St = JSON.parse(t), St.verbose &&
|
|
7243
|
+
St = JSON.parse(t), St.verbose && lc(!0);
|
|
7251
7244
|
} catch (t) {
|
|
7252
7245
|
Zh.error("Failed to parse config:", { error: t });
|
|
7253
7246
|
}
|
|
@@ -7257,7 +7250,7 @@ if (!window.__AIPANEL_INITIALIZED__) {
|
|
|
7257
7250
|
let e = null;
|
|
7258
7251
|
if (St.serviceInstanceId && St.proxyPort) {
|
|
7259
7252
|
const n = {
|
|
7260
|
-
type:
|
|
7253
|
+
type: le.SERVICE_INFO,
|
|
7261
7254
|
proxyPort: St.proxyPort,
|
|
7262
7255
|
vitePort: location.port,
|
|
7263
7256
|
webPort: St.webPort,
|