vite-plugin-aipanel 1.2.13 → 1.2.15
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/es/core/service.d.ts +1 -1
- package/es/core/service.mjs +12 -4
- package/es/index.mjs +1 -0
- package/lib/client.css +1 -1
- package/lib/client.js +375 -378
- package/lib/core/service.cjs +6 -3
- package/lib/core/service.d.ts +1 -1
- package/lib/index.cjs +1 -0
- package/package.json +5 -5
package/lib/client.js
CHANGED
|
@@ -55,7 +55,7 @@ function xe(e) {
|
|
|
55
55
|
for (const i in e) e[i] && (t += i + " ");
|
|
56
56
|
return t.trim();
|
|
57
57
|
}
|
|
58
|
-
var mr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", pl = /* @__PURE__ */ pi(mr),
|
|
58
|
+
var mr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", pl = /* @__PURE__ */ pi(mr), Sh = /* @__PURE__ */ pi(mr + ",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");
|
|
59
59
|
function _r(e) {
|
|
60
60
|
return !!e || e === "";
|
|
61
61
|
}
|
|
@@ -384,11 +384,11 @@ function bl(e, t) {
|
|
|
384
384
|
return i && i.get(t);
|
|
385
385
|
}
|
|
386
386
|
function sn(e) {
|
|
387
|
-
const t = /* @__PURE__ */
|
|
387
|
+
const t = /* @__PURE__ */ ie(e);
|
|
388
388
|
return t === e ? t : (We(t, "iterate", Bn), /* @__PURE__ */ st(e) ? t : t.map(yt));
|
|
389
389
|
}
|
|
390
390
|
function bi(e) {
|
|
391
|
-
return We(e = /* @__PURE__ */
|
|
391
|
+
return We(e = /* @__PURE__ */ ie(e), "iterate", Bn), e;
|
|
392
392
|
}
|
|
393
393
|
function Tt(e, t) {
|
|
394
394
|
return /* @__PURE__ */ Ft(e) ? hn(/* @__PURE__ */ Qt(e) ? yt(t) : t) : yt(t);
|
|
@@ -512,20 +512,20 @@ function Cs(e, t, i, n) {
|
|
|
512
512
|
return l ? Tt(e, a) : a;
|
|
513
513
|
}
|
|
514
514
|
function Ri(e, t, i) {
|
|
515
|
-
const n = /* @__PURE__ */
|
|
515
|
+
const n = /* @__PURE__ */ ie(e);
|
|
516
516
|
We(n, "iterate", Bn);
|
|
517
517
|
const s = n[t](...i);
|
|
518
|
-
return (s === -1 || s === !1) && /* @__PURE__ */ Si(i[0]) ? (i[0] = /* @__PURE__ */
|
|
518
|
+
return (s === -1 || s === !1) && /* @__PURE__ */ Si(i[0]) ? (i[0] = /* @__PURE__ */ ie(i[0]), n[t](...i)) : s;
|
|
519
519
|
}
|
|
520
520
|
function En(e, t, i = []) {
|
|
521
521
|
Nt(), rs();
|
|
522
|
-
const n = (/* @__PURE__ */
|
|
522
|
+
const n = (/* @__PURE__ */ ie(e))[t].apply(e, i);
|
|
523
523
|
return os(), Dt(), n;
|
|
524
524
|
}
|
|
525
525
|
var wl = /* @__PURE__ */ pi("__proto__,__v_isRef,__isVue"), Pr = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ot));
|
|
526
526
|
function Tl(e) {
|
|
527
527
|
ot(e) || (e = String(e));
|
|
528
|
-
const t = /* @__PURE__ */
|
|
528
|
+
const t = /* @__PURE__ */ ie(this);
|
|
529
529
|
return We(t, "has", e), t.hasOwnProperty(e);
|
|
530
530
|
}
|
|
531
531
|
var Or = class {
|
|
@@ -563,11 +563,11 @@ var Or = class {
|
|
|
563
563
|
const r = X(e) && mi(t);
|
|
564
564
|
if (!this._isShallow) {
|
|
565
565
|
const a = /* @__PURE__ */ Ft(s);
|
|
566
|
-
if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Ft(i) && (s = /* @__PURE__ */
|
|
566
|
+
if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Ft(i) && (s = /* @__PURE__ */ ie(s), i = /* @__PURE__ */ ie(i)), !r && /* @__PURE__ */ Le(s) && !/* @__PURE__ */ Le(i))
|
|
567
567
|
return a || (s.value = i), !0;
|
|
568
568
|
}
|
|
569
569
|
const o = r ? Number(t) < e.length : de(e, t), l = Reflect.set(e, t, i, /* @__PURE__ */ Le(e) ? e : n);
|
|
570
|
-
return e === /* @__PURE__ */
|
|
570
|
+
return e === /* @__PURE__ */ ie(n) && l && (o ? xt(i, s) && Ot(e, "set", t, i, s) : Ot(e, "add", t, i)), l;
|
|
571
571
|
}
|
|
572
572
|
deleteProperty(e, t) {
|
|
573
573
|
const i = de(e, t), n = e[t], s = Reflect.deleteProperty(e, t);
|
|
@@ -593,7 +593,7 @@ var Or = class {
|
|
|
593
593
|
}, xl = /* @__PURE__ */ new Lr(), Il = /* @__PURE__ */ new Cl(), Ml = /* @__PURE__ */ new Lr(!0), qi = (e) => e, Gn = (e) => Reflect.getPrototypeOf(e);
|
|
594
594
|
function Al(e, t, i) {
|
|
595
595
|
return function(...n) {
|
|
596
|
-
const s = this.__v_raw, r = /* @__PURE__ */
|
|
596
|
+
const s = this.__v_raw, r = /* @__PURE__ */ ie(s), o = an(r), l = e === "entries" || e === Symbol.iterator && o, a = e === "keys" && o, u = s[e](...n), c = i ? qi : t ? hn : yt;
|
|
597
597
|
return !t && We(r, "iterate", a ? Ui : Zt), rt(Object.create(u), { next() {
|
|
598
598
|
const { value: f, done: p } = u.next();
|
|
599
599
|
return p ? {
|
|
@@ -614,7 +614,7 @@ function Yn(e) {
|
|
|
614
614
|
function Pl(e, t) {
|
|
615
615
|
const i = {
|
|
616
616
|
get(n) {
|
|
617
|
-
const s = this.__v_raw, r = /* @__PURE__ */
|
|
617
|
+
const s = this.__v_raw, r = /* @__PURE__ */ ie(s), o = /* @__PURE__ */ ie(n);
|
|
618
618
|
e || (xt(n, o) && We(r, "get", n), We(r, "get", o));
|
|
619
619
|
const { has: l } = Gn(r), a = t ? qi : e ? hn : yt;
|
|
620
620
|
if (l.call(r, n)) return a(s.get(n));
|
|
@@ -623,14 +623,14 @@ function Pl(e, t) {
|
|
|
623
623
|
},
|
|
624
624
|
get size() {
|
|
625
625
|
const n = this.__v_raw;
|
|
626
|
-
return !e && We(/* @__PURE__ */
|
|
626
|
+
return !e && We(/* @__PURE__ */ ie(n), "iterate", Zt), n.size;
|
|
627
627
|
},
|
|
628
628
|
has(n) {
|
|
629
|
-
const s = this.__v_raw, r = /* @__PURE__ */
|
|
629
|
+
const s = this.__v_raw, r = /* @__PURE__ */ ie(s), o = /* @__PURE__ */ ie(n);
|
|
630
630
|
return e || (xt(n, o) && We(r, "has", n), We(r, "has", o)), n === o ? s.has(n) : s.has(n) || s.has(o);
|
|
631
631
|
},
|
|
632
632
|
forEach(n, s) {
|
|
633
|
-
const r = this, o = r.__v_raw, l = /* @__PURE__ */
|
|
633
|
+
const r = this, o = r.__v_raw, l = /* @__PURE__ */ ie(o), a = t ? qi : e ? hn : yt;
|
|
634
634
|
return !e && We(l, "iterate", Zt), o.forEach((u, c) => n.call(s, a(u), a(c), r));
|
|
635
635
|
}
|
|
636
636
|
};
|
|
@@ -641,26 +641,26 @@ function Pl(e, t) {
|
|
|
641
641
|
clear: Yn("clear")
|
|
642
642
|
} : {
|
|
643
643
|
add(n) {
|
|
644
|
-
const s = /* @__PURE__ */
|
|
644
|
+
const s = /* @__PURE__ */ ie(this), r = Gn(s), o = /* @__PURE__ */ ie(n), l = !t && !/* @__PURE__ */ st(n) && !/* @__PURE__ */ Ft(n) ? o : n;
|
|
645
645
|
return r.has.call(s, l) || xt(n, l) && r.has.call(s, n) || xt(o, l) && r.has.call(s, o) || (s.add(l), Ot(s, "add", l, l)), this;
|
|
646
646
|
},
|
|
647
647
|
set(n, s) {
|
|
648
|
-
!t && !/* @__PURE__ */ st(s) && !/* @__PURE__ */ Ft(s) && (s = /* @__PURE__ */
|
|
649
|
-
const r = /* @__PURE__ */
|
|
648
|
+
!t && !/* @__PURE__ */ st(s) && !/* @__PURE__ */ Ft(s) && (s = /* @__PURE__ */ ie(s));
|
|
649
|
+
const r = /* @__PURE__ */ ie(this), { has: o, get: l } = Gn(r);
|
|
650
650
|
let a = o.call(r, n);
|
|
651
|
-
a || (n = /* @__PURE__ */
|
|
651
|
+
a || (n = /* @__PURE__ */ ie(n), a = o.call(r, n));
|
|
652
652
|
const u = l.call(r, n);
|
|
653
653
|
return r.set(n, s), a ? xt(s, u) && Ot(r, "set", n, s, u) : Ot(r, "add", n, s), this;
|
|
654
654
|
},
|
|
655
655
|
delete(n) {
|
|
656
|
-
const s = /* @__PURE__ */
|
|
656
|
+
const s = /* @__PURE__ */ ie(this), { has: r, get: o } = Gn(s);
|
|
657
657
|
let l = r.call(s, n);
|
|
658
|
-
l || (n = /* @__PURE__ */
|
|
658
|
+
l || (n = /* @__PURE__ */ ie(n), l = r.call(s, n));
|
|
659
659
|
const a = o ? o.call(s, n) : void 0, u = s.delete(n);
|
|
660
660
|
return l && Ot(s, "delete", n, void 0, a), u;
|
|
661
661
|
},
|
|
662
662
|
clear() {
|
|
663
|
-
const n = /* @__PURE__ */
|
|
663
|
+
const n = /* @__PURE__ */ ie(this), s = n.size !== 0, r = void 0, o = n.clear();
|
|
664
664
|
return s && Ot(n, "clear", void 0, void 0, r), o;
|
|
665
665
|
}
|
|
666
666
|
}), [
|
|
@@ -729,9 +729,9 @@ function Si(e) {
|
|
|
729
729
|
return e ? !!e.__v_raw : !1;
|
|
730
730
|
}
|
|
731
731
|
// @__NO_SIDE_EFFECTS__
|
|
732
|
-
function
|
|
732
|
+
function ie(e) {
|
|
733
733
|
const t = e && e.__v_raw;
|
|
734
|
-
return t ? /* @__PURE__ */
|
|
734
|
+
return t ? /* @__PURE__ */ ie(t) : e;
|
|
735
735
|
}
|
|
736
736
|
function Fl(e) {
|
|
737
737
|
return !de(e, "__v_skip") && Object.isExtensible(e) && vr(e, "__v_skip", !0), e;
|
|
@@ -750,14 +750,14 @@ function Bl(e, t) {
|
|
|
750
750
|
}
|
|
751
751
|
var $l = class {
|
|
752
752
|
constructor(e, t) {
|
|
753
|
-
this.dep = new as(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? e : /* @__PURE__ */
|
|
753
|
+
this.dep = new as(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = t ? e : /* @__PURE__ */ ie(e), this._value = t ? e : yt(e), this.__v_isShallow = t;
|
|
754
754
|
}
|
|
755
755
|
get value() {
|
|
756
756
|
return this.dep.track(), this._value;
|
|
757
757
|
}
|
|
758
758
|
set value(e) {
|
|
759
759
|
const t = this._rawValue, i = this.__v_isShallow || /* @__PURE__ */ st(e) || /* @__PURE__ */ Ft(e);
|
|
760
|
-
e = i ? e : /* @__PURE__ */
|
|
760
|
+
e = i ? e : /* @__PURE__ */ ie(e), xt(e, t) && (this._rawValue = e, this._value = i ? e : yt(e), this.dep.trigger());
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
function pe(e) {
|
|
@@ -775,7 +775,7 @@ function Fr(e) {
|
|
|
775
775
|
}
|
|
776
776
|
var Vl = class {
|
|
777
777
|
constructor(e, t, i) {
|
|
778
|
-
this._object = e, this._defaultValue = i, this.__v_isRef = !0, this._value = void 0, this._key = ot(t) ? t : String(t), this._raw = /* @__PURE__ */
|
|
778
|
+
this._object = e, this._defaultValue = i, this.__v_isRef = !0, this._value = void 0, this._key = ot(t) ? t : String(t), this._raw = /* @__PURE__ */ ie(e);
|
|
779
779
|
let n = !0, s = e;
|
|
780
780
|
if (!X(e) || ot(this._key) || !mi(this._key)) do
|
|
781
781
|
n = !/* @__PURE__ */ Si(s) || /* @__PURE__ */ st(s);
|
|
@@ -1275,7 +1275,7 @@ function Ln(e, t, i, n, s = !1) {
|
|
|
1275
1275
|
n.shapeFlag & 512 && n.type.__asyncResolved && n.component.subTree.component && Ln(e, t, i, n.component.subTree);
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
|
-
const r = n.shapeFlag & 4 ? xi(n.component) : n.el, o = s ? null : r, { i: l, r: a } = e, u = t && t.r, c = l.refs === ve ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */
|
|
1278
|
+
const r = n.shapeFlag & 4 ? xi(n.component) : n.el, o = s ? null : r, { i: l, r: a } = e, u = t && t.r, c = l.refs === ve ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ ie(f), _ = f === ve ? ur : (v) => Ps(c, v) ? !1 : de(p, v), w = (v, g) => !(g && Ps(c, g));
|
|
1279
1279
|
if (u != null && u !== a) {
|
|
1280
1280
|
if (Os(t), Ce(u))
|
|
1281
1281
|
c[u] = null, _(u) && (f[u] = null);
|
|
@@ -1322,7 +1322,7 @@ function Os(e) {
|
|
|
1322
1322
|
const t = oi.get(e);
|
|
1323
1323
|
t && (t.flags |= 8, oi.delete(e));
|
|
1324
1324
|
}
|
|
1325
|
-
var
|
|
1325
|
+
var Eh = yi().requestIdleCallback || ((e) => setTimeout(e, 1)), wh = yi().cancelIdleCallback || ((e) => clearTimeout(e)), dn = (e) => !!e.type.__asyncLoader, oa = (e) => e.type.__isKeepAlive;
|
|
1326
1326
|
function la(e, t, i = nt, n = !1) {
|
|
1327
1327
|
if (i) {
|
|
1328
1328
|
const s = i[e] || (i[e] = []), r = t.__weh || (t.__weh = (...o) => {
|
|
@@ -1335,7 +1335,7 @@ function la(e, t, i = nt, n = !1) {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
var $t = (e) => (t, i = nt) => {
|
|
1337
1337
|
(!Vn || e === "sp") && la(e, (...n) => t(...n), i);
|
|
1338
|
-
},
|
|
1338
|
+
}, Th = $t("bm"), Qe = $t("m"), aa = $t("bu"), Ch = $t("u"), xh = $t("bum"), Ke = $t("um"), Ih = $t("sp"), Mh = $t("rtg"), Ah = $t("rtc"), ua = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1339
1339
|
function ei(e, t, i, n) {
|
|
1340
1340
|
let s;
|
|
1341
1341
|
const r = i && i[n], o = X(e);
|
|
@@ -1644,7 +1644,7 @@ function Sa(e, t, i, n = !1) {
|
|
|
1644
1644
|
i ? e.props = n ? s : /* @__PURE__ */ Dl(s) : e.type.props ? e.props = s : e.props = r, e.attrs = r;
|
|
1645
1645
|
}
|
|
1646
1646
|
function Ea(e, t, i, n) {
|
|
1647
|
-
const { props: s, attrs: r, vnode: { patchFlag: o } } = e, l = /* @__PURE__ */
|
|
1647
|
+
const { props: s, attrs: r, vnode: { patchFlag: o } } = e, l = /* @__PURE__ */ ie(s), [a] = e.propsOptions;
|
|
1648
1648
|
let u = !1;
|
|
1649
1649
|
if ((n || o > 0) && !(o & 16)) {
|
|
1650
1650
|
if (o & 8) {
|
|
@@ -1682,7 +1682,7 @@ function eo(e, t, i, n) {
|
|
|
1682
1682
|
s && de(s, c = mt(a)) ? !r || !r.includes(c) ? i[c] = u : (l || (l = {}))[c] = u : wi(e.emitsOptions, a) || (!(a in n) || u !== n[a]) && (n[a] = u, o = !0);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (r) {
|
|
1685
|
-
const a = /* @__PURE__ */
|
|
1685
|
+
const a = /* @__PURE__ */ ie(i), u = l || ve;
|
|
1686
1686
|
for (let c = 0; c < r.length; c++) {
|
|
1687
1687
|
const f = r[c];
|
|
1688
1688
|
i[f] = Ji(s, a, f, u[f], e, !de(u, f));
|
|
@@ -1872,8 +1872,8 @@ function Ma(e, t) {
|
|
|
1872
1872
|
else if (O & 2 && $.class !== H.class && r(P, "class", null, H.class, T), O & 4 && r(P, "style", $.style, H.style, T), O & 8) {
|
|
1873
1873
|
const Z = h.dynamicProps;
|
|
1874
1874
|
for (let le = 0; le < Z.length; le++) {
|
|
1875
|
-
const
|
|
1876
|
-
(me !== he ||
|
|
1875
|
+
const ne = Z[le], he = $[ne], me = H[ne];
|
|
1876
|
+
(me !== he || ne === "value") && r(P, ne, he, me, T, m);
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
1879
|
O & 1 && d.children !== h.children && c(P, h.children);
|
|
@@ -1936,14 +1936,14 @@ function Ma(e, t) {
|
|
|
1936
1936
|
return;
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
let
|
|
1939
|
+
let ne = $, he;
|
|
1940
1940
|
Gt(d, !1), $ ? ($.el = le.el, Ae(d, $, F)) : $ = le, H && Ai(H), (he = $.props && $.props.onVnodeBeforeUpdate) && St(he, Z, $, le), Gt(d, !0);
|
|
1941
1941
|
const me = Di(d), Ne = d.subTree;
|
|
1942
|
-
d.subTree = me, v(Ne, me, f(Ne.el), ke(Ne), d, T, C), $.el = me.el,
|
|
1942
|
+
d.subTree = me, v(Ne, me, f(Ne.el), ke(Ne), d, T, C), $.el = me.el, ne === null && ba(d, me.el), K && ze(K, T), (he = $.props && $.props.onVnodeUpdated) && ze(() => St(he, Z, $, le), T);
|
|
1943
1943
|
} else {
|
|
1944
1944
|
let $;
|
|
1945
|
-
const { el: H, props: K } = h, { bm: Z, m: le, parent:
|
|
1946
|
-
if (Gt(d, !1), Z && Ai(Z), !Ne && ($ = K && K.onVnodeBeforeMount) && St($,
|
|
1945
|
+
const { el: H, props: K } = h, { bm: Z, m: le, parent: ne, root: he, type: me } = d, Ne = dn(h);
|
|
1946
|
+
if (Gt(d, !1), Z && Ai(Z), !Ne && ($ = K && K.onVnodeBeforeMount) && St($, ne, h), Gt(d, !0), H && Ye) {
|
|
1947
1947
|
const ue = () => {
|
|
1948
1948
|
d.subTree = Di(d), Ye(H, d.subTree, d, T, null);
|
|
1949
1949
|
};
|
|
@@ -1955,9 +1955,9 @@ function Ma(e, t) {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
if (le && ze(le, T), !Ne && ($ = K && K.onVnodeMounted)) {
|
|
1957
1957
|
const ue = h;
|
|
1958
|
-
ze(() => St($,
|
|
1958
|
+
ze(() => St($, ne, ue), T);
|
|
1959
1959
|
}
|
|
1960
|
-
(h.shapeFlag & 256 ||
|
|
1960
|
+
(h.shapeFlag & 256 || ne && dn(ne.vnode) && ne.vnode.shapeFlag & 256) && d.a && ze(d.a, T), d.isMounted = !0, h = m = x = null;
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
1963
|
d.scope.on();
|
|
@@ -2020,7 +2020,7 @@ function Ma(e, t) {
|
|
|
2020
2020
|
const Ie = h[S] = O ? Pt(h[S]) : Ct(h[S]);
|
|
2021
2021
|
Ie.key != null && le.set(Ie.key, S);
|
|
2022
2022
|
}
|
|
2023
|
-
let
|
|
2023
|
+
let ne, he = 0;
|
|
2024
2024
|
const me = H - Z + 1;
|
|
2025
2025
|
let Ne = !1, ue = 0;
|
|
2026
2026
|
const ht = new Array(me);
|
|
@@ -2033,16 +2033,16 @@ function Ma(e, t) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
let Se;
|
|
2035
2035
|
if (Ie.key != null) Se = le.get(Ie.key);
|
|
2036
|
-
else for (
|
|
2037
|
-
Se =
|
|
2036
|
+
else for (ne = Z; ne <= H; ne++) if (ht[ne - Z] === 0 && wn(Ie, h[ne])) {
|
|
2037
|
+
Se = ne;
|
|
2038
2038
|
break;
|
|
2039
2039
|
}
|
|
2040
2040
|
Se === void 0 ? $e(Ie, T, C, !0) : (ht[Se - Z] = S + 1, Se >= ue ? ue = Se : Ne = !0, v(Ie, h[Se], m, null, T, C, F, P, O), he++);
|
|
2041
2041
|
}
|
|
2042
2042
|
const pt = Ne ? Pa(ht) : ln;
|
|
2043
|
-
for (
|
|
2043
|
+
for (ne = pt.length - 1, S = me - 1; S >= 0; S--) {
|
|
2044
2044
|
const Ie = Z + S, Se = h[Ie], Xe = h[Ie + 1], at = Ie + 1 < V ? Xe.el || ro(Xe) : x;
|
|
2045
|
-
ht[S] === 0 ? v(null, Se, m, at, T, C, F, P, O) : Ne && (
|
|
2045
|
+
ht[S] === 0 ? v(null, Se, m, at, T, C, F, P, O) : Ne && (ne < 0 || S !== pt[ne] ? je(Se, m, at, 2) : ne--);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}, je = (d, h, m, x, T = null) => {
|
|
@@ -2090,9 +2090,9 @@ function Ma(e, t) {
|
|
|
2090
2090
|
h.ctx.deactivate(d);
|
|
2091
2091
|
return;
|
|
2092
2092
|
}
|
|
2093
|
-
const le = V & 1 && H,
|
|
2093
|
+
const le = V & 1 && H, ne = !dn(d);
|
|
2094
2094
|
let he;
|
|
2095
|
-
if (
|
|
2095
|
+
if (ne && (he = F && F.onVnodeBeforeUnmount) && St(he, h, d), V & 6) ft(d.component, m, x);
|
|
2096
2096
|
else {
|
|
2097
2097
|
if (V & 128) {
|
|
2098
2098
|
d.suspense.unmount(m, x);
|
|
@@ -2101,7 +2101,7 @@ function Ma(e, t) {
|
|
|
2101
2101
|
le && Kt(d, null, h, "beforeUnmount"), V & 64 ? d.type.remove(d, h, m, Oe, x) : S && !S.hasOnce && (C !== ye || $ > 0 && $ & 64) ? et(S, h, m, !1, !0) : (C === ye && $ & 384 || !T && V & 16) && et(O, h, m), x && ct(d);
|
|
2102
2102
|
}
|
|
2103
2103
|
const me = Z != null && K == null;
|
|
2104
|
-
(
|
|
2104
|
+
(ne && (he = F && F.onVnodeUnmounted) || le || me) && ze(() => {
|
|
2105
2105
|
he && St(he, h, d), le && Kt(d, null, h, "unmounted"), me && (d.el = null);
|
|
2106
2106
|
}, m);
|
|
2107
2107
|
}, ct = (d) => {
|
|
@@ -2338,7 +2338,7 @@ function Zi(e, t) {
|
|
|
2338
2338
|
const i = Re(kn, null, e);
|
|
2339
2339
|
return i.staticCount = t, i;
|
|
2340
2340
|
}
|
|
2341
|
-
function
|
|
2341
|
+
function re(e = "", t = !1) {
|
|
2342
2342
|
return t ? (W(), bt(Bt, null, e)) : Re(Bt, null, e);
|
|
2343
2343
|
}
|
|
2344
2344
|
function Ct(e) {
|
|
@@ -2876,7 +2876,7 @@ var _u = 6097, yo = "[vite-plugin-aipanel]", bo = "data-aipanel-config", So = "/
|
|
|
2876
2876
|
SELECTION_STOP: "SELECTION_STOP",
|
|
2877
2877
|
CS_QUERY_WINDOW: "__CS_QUERY_WINDOW__",
|
|
2878
2878
|
FORCE_POLL: "FORCE_POLL"
|
|
2879
|
-
},
|
|
2879
|
+
}, se = {
|
|
2880
2880
|
READY: "AIPANEL_READY",
|
|
2881
2881
|
KEYDOWN: "AIPANEL_KEYDOWN",
|
|
2882
2882
|
SET_THEME: "AIPANEL_SET_THEME",
|
|
@@ -3374,7 +3374,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3374
3374
|
}, [y("path", {
|
|
3375
3375
|
d: "M4 6h16M4 12h16M4 18h16",
|
|
3376
3376
|
"stroke-linecap": "round"
|
|
3377
|
-
})], -1))])], 10, Vu)) :
|
|
3377
|
+
})], -1))])], 10, Vu)) : re("v-if", !0),
|
|
3378
3378
|
y("button", {
|
|
3379
3379
|
class: xe(["aipanel-header-btn select-btn", { active: n.selectMode }]),
|
|
3380
3380
|
type: "button",
|
|
@@ -3471,7 +3471,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3471
3471
|
cy: "18",
|
|
3472
3472
|
r: "3"
|
|
3473
3473
|
}, null, -1)
|
|
3474
|
-
])]))])], 8, Ku)) :
|
|
3474
|
+
])]))])], 8, Ku)) : re("v-if", !0)
|
|
3475
3475
|
]),
|
|
3476
3476
|
y("span", Ju, Fe(n.title), 1),
|
|
3477
3477
|
y("div", Zu, [
|
|
@@ -3493,7 +3493,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3493
3493
|
"stroke-linecap": "round",
|
|
3494
3494
|
"stroke-linejoin": "round",
|
|
3495
3495
|
"aria-hidden": "true"
|
|
3496
|
-
}, [y("polyline", { points: "16 18 22 12 16 6" }), y("polyline", { points: "8 6 2 12 8 18" })], -1)])], 10, Qu)) :
|
|
3496
|
+
}, [y("polyline", { points: "16 18 22 12 16 6" }), y("polyline", { points: "8 6 2 12 8 18" })], -1)])], 10, Qu)) : re("v-if", !0),
|
|
3497
3497
|
n.displayMode === "extension" ? (W(), j("button", {
|
|
3498
3498
|
key: 1,
|
|
3499
3499
|
class: "aipanel-header-btn refresh-btn",
|
|
@@ -3509,7 +3509,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3509
3509
|
stroke: "currentColor",
|
|
3510
3510
|
"stroke-width": "2",
|
|
3511
3511
|
"aria-hidden": "true"
|
|
3512
|
-
}, [y("polyline", { points: "23,4 23,10 17,10" }), y("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })], -1)])])) :
|
|
3512
|
+
}, [y("polyline", { points: "23,4 23,10 17,10" }), y("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })], -1)])])) : re("v-if", !0),
|
|
3513
3513
|
n.showNewSessionButton ? (W(), j("button", {
|
|
3514
3514
|
key: 2,
|
|
3515
3515
|
class: "aipanel-header-btn new-session-btn",
|
|
@@ -3527,7 +3527,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3527
3527
|
}, [y("path", {
|
|
3528
3528
|
d: "M8 0.599609C3.91309 0.599609 0.599609 3.91309 0.599609 8C0.599609 9.13376 0.855461 10.2098 1.3125 11.1719L1.5918 11.7588L2.76562 11.2012L2.48633 10.6143C2.11034 9.82278 1.90039 8.93675 1.90039 8C1.90039 4.63106 4.63106 1.90039 8 1.90039C11.3689 1.90039 14.0996 4.63106 14.0996 8C14.0996 11.3689 11.3689 14.0996 8 14.0996C7.31041 14.0996 6.80528 14.0514 6.35742 13.9277C5.91623 13.8059 5.49768 13.6021 4.99707 13.2529C4.26492 12.7422 3.21611 12.5616 2.35156 13.1074L2.33789 13.1162L2.32422 13.126L1.58789 13.6436L2.01953 14.9297L3.0459 14.207C3.36351 14.0065 3.83838 14.0294 4.25293 14.3184C4.84547 14.7317 5.39743 15.011 6.01172 15.1807C6.61947 15.3485 7.25549 15.4004 8 15.4004C12.0869 15.4004 15.4004 12.0869 15.4004 8C15.4004 3.91309 12.0869 0.599609 8 0.599609ZM7.34473 4.93945V7.34961H4.93945V8.65039H7.34473V11.0605H8.64551V8.65039H11.0605V7.34961H8.64551V4.93945H7.34473Z",
|
|
3529
3529
|
fill: "currentColor"
|
|
3530
|
-
})], -1)])])) :
|
|
3530
|
+
})], -1)])])) : re("v-if", !0),
|
|
3531
3531
|
n.isSplitMode && n.displayMode !== "extension" ? (W(), j("button", {
|
|
3532
3532
|
key: 3,
|
|
3533
3533
|
class: "aipanel-header-btn split-position-btn",
|
|
@@ -3557,8 +3557,8 @@ function lc(e, t, i, n, s, r) {
|
|
|
3557
3557
|
y1: "3",
|
|
3558
3558
|
x2: "9",
|
|
3559
3559
|
y2: "21"
|
|
3560
|
-
}, null, -1)])]))])], 8, ec)) :
|
|
3561
|
-
n.isSplitMode ?
|
|
3560
|
+
}, null, -1)])]))])], 8, ec)) : re("v-if", !0),
|
|
3561
|
+
n.isSplitMode ? re("v-if", !0) : (W(), j("button", {
|
|
3562
3562
|
key: 4,
|
|
3563
3563
|
class: "aipanel-header-btn prompt-dock",
|
|
3564
3564
|
type: "button",
|
|
@@ -3575,7 +3575,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3575
3575
|
"stroke-width": "2",
|
|
3576
3576
|
"aria-hidden": "true"
|
|
3577
3577
|
}, [y("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })], -1))])], 8, ic)),
|
|
3578
|
-
n.isSplitMode ?
|
|
3578
|
+
n.isSplitMode ? re("v-if", !0) : (W(), j("button", {
|
|
3579
3579
|
key: 5,
|
|
3580
3580
|
class: "aipanel-header-btn minimize",
|
|
3581
3581
|
type: "button",
|
|
@@ -3584,7 +3584,7 @@ function lc(e, t, i, n, s, r) {
|
|
|
3584
3584
|
"aria-pressed": n.minimized,
|
|
3585
3585
|
onClick: t[9] || (t[9] = (...o) => n.handleToggleMinimize && n.handleToggleMinimize(...o))
|
|
3586
3586
|
}, [te(e.$slots, "minimize-icon", {}, () => [n.minimized ? (W(), j("svg", rc, [...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)])])) : (W(), j("svg", oc, [...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, sc)),
|
|
3587
|
-
n.isSplitMode ?
|
|
3587
|
+
n.isSplitMode ? re("v-if", !0) : (W(), j("button", {
|
|
3588
3588
|
key: 6,
|
|
3589
3589
|
class: "aipanel-header-btn close",
|
|
3590
3590
|
type: "button",
|
|
@@ -3615,7 +3615,7 @@ var ac = Oo, Lo = /* @__PURE__ */ Ze({
|
|
|
3615
3615
|
f.value = !1;
|
|
3616
3616
|
}, 200);
|
|
3617
3617
|
});
|
|
3618
|
-
const _ = q(() => !!(f.value || r.value)), w = [
|
|
3618
|
+
const _ = q(() => !!(f.value || r.value || s.value)), w = [
|
|
3619
3619
|
{
|
|
3620
3620
|
x: 0,
|
|
3621
3621
|
y: 0,
|
|
@@ -3725,21 +3725,18 @@ var ac = Oo, Lo = /* @__PURE__ */ Ze({
|
|
|
3725
3725
|
class: "aipanel-session-list-content",
|
|
3726
3726
|
role: "listbox",
|
|
3727
3727
|
"aria-labelledby": "aipanel-session-list-title"
|
|
3728
|
-
}, fc = {
|
|
3729
|
-
key: 0,
|
|
3730
|
-
class: "aipanel-session-list-loading-overlay"
|
|
3731
|
-
}, hc = ["aria-selected", "onClick"], pc = ["title"], gc = ["title"], vc = ["x", "y"], mc = {
|
|
3728
|
+
}, fc = ["aria-selected", "onClick"], hc = ["title"], pc = ["title"], gc = ["x", "y"], vc = {
|
|
3732
3729
|
key: 2,
|
|
3733
3730
|
class: "aipanel-session-state aipanel-session-state-completed",
|
|
3734
3731
|
title: "已完成"
|
|
3735
|
-
},
|
|
3732
|
+
}, mc = { class: "aipanel-session-title-text" }, _c = {
|
|
3736
3733
|
key: 3,
|
|
3737
3734
|
class: "aipanel-session-meta"
|
|
3738
|
-
},
|
|
3739
|
-
function
|
|
3735
|
+
}, yc = ["aria-label", "onClick"];
|
|
3736
|
+
function bc(e, t, i, n, s, r) {
|
|
3740
3737
|
return W(), j("div", { class: xe(["aipanel-session-list", { collapsed: n.collapsed }]) }, [
|
|
3741
|
-
|
|
3742
|
-
n.showSkeleton ? (W(), j(ye, { key: 1 }, [
|
|
3738
|
+
re(" Header "),
|
|
3739
|
+
n.showSkeleton ? (W(), j(ye, { key: 1 }, [re(" Header Skeleton "), t[3] || (t[3] = y("div", { class: "aipanel-session-header-skeleton visible" }, [y("div", { class: "aipanel-skeleton-header-title" }), y("div", { class: "aipanel-skeleton-header-btn" })], -1))], 2112)) : (W(), j("div", uc, [t[2] || (t[2] = y("span", {
|
|
3743
3740
|
id: "aipanel-session-list-title",
|
|
3744
3741
|
class: "aipanel-session-list-title"
|
|
3745
3742
|
}, "会话列表", -1)), y("button", {
|
|
@@ -3758,11 +3755,11 @@ function Sc(e, t, i, n, s, r) {
|
|
|
3758
3755
|
"stroke-linecap": "round",
|
|
3759
3756
|
"aria-hidden": "true"
|
|
3760
3757
|
}, [y("path", { d: "M8 3v10M3 8h10" })], -1)])])])),
|
|
3761
|
-
|
|
3758
|
+
re(" Content Skeleton "),
|
|
3762
3759
|
n.showSkeleton ? (W(), j("div", cc, [(W(), j(ye, null, ei(5, (o) => y("div", {
|
|
3763
3760
|
key: `skeleton-${o}`,
|
|
3764
3761
|
class: "aipanel-skeleton-item"
|
|
3765
|
-
}, [...t[4] || (t[4] = [y("div", { class: "aipanel-skeleton-title" }, null, -1), y("div", { class: "aipanel-skeleton-meta" }, null, -1)])])), 64))])) : (W(), j(ye, { key: 3 }, [
|
|
3762
|
+
}, [...t[4] || (t[4] = [y("div", { class: "aipanel-skeleton-title" }, null, -1), y("div", { class: "aipanel-skeleton-meta" }, null, -1)])])), 64))])) : (W(), j(ye, { key: 3 }, [re(" Content "), y("div", dc, [n.sessions.length > 0 ? (W(!0), j(ye, { key: 0 }, ei(n.sessions, (o) => (W(), j("div", {
|
|
3766
3763
|
key: o[n.sessionKey],
|
|
3767
3764
|
class: xe(["aipanel-session-item", {
|
|
3768
3765
|
active: o.active,
|
|
@@ -3772,12 +3769,12 @@ function Sc(e, t, i, n, s, r) {
|
|
|
3772
3769
|
"aria-selected": o.active,
|
|
3773
3770
|
onClick: (l) => n.handleSelectSession(o)
|
|
3774
3771
|
}, [
|
|
3775
|
-
|
|
3772
|
+
re(" 状态指示:pending=琥珀点 > 活跃(thinking/running/子代理)=转圈 > completed=绿点 > idle "),
|
|
3776
3773
|
n.isSessionPending(o.id) ? (W(), j("span", {
|
|
3777
3774
|
key: 0,
|
|
3778
3775
|
class: "aipanel-session-state aipanel-session-state-pending",
|
|
3779
3776
|
title: n.pendingLabel(o.id)
|
|
3780
|
-
}, null, 8,
|
|
3777
|
+
}, null, 8, hc)) : n.isSessionActive(o.id) ? (W(), j("svg", {
|
|
3781
3778
|
key: 1,
|
|
3782
3779
|
class: "aipanel-session-state aipanel-session-state-ongoing",
|
|
3783
3780
|
title: n.runningLabel(o.id),
|
|
@@ -3793,20 +3790,20 @@ function Sc(e, t, i, n, s, r) {
|
|
|
3793
3790
|
height: "2",
|
|
3794
3791
|
style: kt({ animationDelay: l.delay }),
|
|
3795
3792
|
class: "aipanel-session-ongoing-cell"
|
|
3796
|
-
}, null, 12,
|
|
3797
|
-
y("span",
|
|
3798
|
-
o.meta ? (W(), j("span",
|
|
3793
|
+
}, null, 12, gc)), 64))], 8, pc)) : n.isSessionCompleted(o.id) ? (W(), j("span", vc)) : re("v-if", !0),
|
|
3794
|
+
y("span", mc, Fe(o.title), 1),
|
|
3795
|
+
o.meta ? (W(), j("span", _c, Fe(o.meta), 1)) : re("v-if", !0),
|
|
3799
3796
|
y("button", {
|
|
3800
3797
|
class: "aipanel-session-delete-btn",
|
|
3801
3798
|
type: "button",
|
|
3802
3799
|
"aria-label": `删除会话: ${o.title}`,
|
|
3803
3800
|
onClick: _o((l) => n.handleDeleteSession(o), ["stop"])
|
|
3804
|
-
}, " × ", 8,
|
|
3805
|
-
], 10,
|
|
3801
|
+
}, " × ", 8, yc)
|
|
3802
|
+
], 10, fc))), 128)) : (W(), j(ye, { key: 1 }, [re(" Empty State "), te(e.$slots, "empty")], 64))])], 2112))
|
|
3806
3803
|
], 2);
|
|
3807
3804
|
}
|
|
3808
|
-
Lo.render =
|
|
3809
|
-
var
|
|
3805
|
+
Lo.render = bc;
|
|
3806
|
+
var Sc = Lo, Ro = /* @__PURE__ */ Ze({
|
|
3810
3807
|
__name: "SelectedNodes",
|
|
3811
3808
|
setup(e, { expose: t }) {
|
|
3812
3809
|
t();
|
|
@@ -3822,20 +3819,20 @@ var Ec = Lo, Ro = /* @__PURE__ */ Ze({
|
|
|
3822
3819
|
value: !0
|
|
3823
3820
|
}), l;
|
|
3824
3821
|
}
|
|
3825
|
-
}),
|
|
3822
|
+
}), Ec = {
|
|
3826
3823
|
class: "aipanel-selected-nodes",
|
|
3827
3824
|
role: "list",
|
|
3828
3825
|
"aria-label": "已选元素列表"
|
|
3829
|
-
},
|
|
3830
|
-
function
|
|
3826
|
+
}, wc = ["onClick"], Tc = { class: "aipanel-node-content" }, Cc = { class: "aipanel-node-text" }, xc = { class: "aipanel-node-file" }, Ic = ["aria-label", "onClick"];
|
|
3827
|
+
function Mc(e, t, i, n, s, r) {
|
|
3831
3828
|
return W(), j("div", { class: xe(["aipanel-right-toolbar", { collapsed: n.items.length === 0 }]) }, [
|
|
3832
3829
|
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)),
|
|
3833
|
-
y("div",
|
|
3830
|
+
y("div", Ec, [(W(!0), j(ye, null, ei(n.items, (o, l) => (W(), j("div", {
|
|
3834
3831
|
key: o.key,
|
|
3835
3832
|
class: "aipanel-selected-node",
|
|
3836
3833
|
role: "listitem",
|
|
3837
3834
|
onClick: (a) => n.handleClickSelectedNode(o)
|
|
3838
|
-
}, [y("div",
|
|
3835
|
+
}, [y("div", Tc, [y("span", Cc, Fe(o.description), 1), y("span", xc, Fe(o.panelFileText), 1)]), y("button", {
|
|
3839
3836
|
class: "aipanel-node-remove",
|
|
3840
3837
|
type: "button",
|
|
3841
3838
|
"aria-label": `移除元素: ${o.description}`,
|
|
@@ -3844,18 +3841,18 @@ function Ac(e, t, i, n, s, r) {
|
|
|
3844
3841
|
index: l,
|
|
3845
3842
|
source: "panel"
|
|
3846
3843
|
}), ["stop"])
|
|
3847
|
-
}, " × ", 8,
|
|
3844
|
+
}, " × ", 8, Ic)], 8, wc))), 128))]),
|
|
3848
3845
|
n.showClearAll && n.items.length > 0 ? (W(), j("button", {
|
|
3849
3846
|
key: 0,
|
|
3850
3847
|
class: "aipanel-clear-all-btn",
|
|
3851
3848
|
type: "button",
|
|
3852
3849
|
"aria-label": "清空所有已选节点",
|
|
3853
3850
|
onClick: t[0] || (t[0] = (...o) => n.handleClearSelectedNodes && n.handleClearSelectedNodes(...o))
|
|
3854
|
-
}, " 一键清空 ")) :
|
|
3851
|
+
}, " 一键清空 ")) : re("v-if", !0)
|
|
3855
3852
|
], 2);
|
|
3856
3853
|
}
|
|
3857
|
-
Ro.render =
|
|
3858
|
-
var
|
|
3854
|
+
Ro.render = Mc;
|
|
3855
|
+
var Ac = Ro, ko = /* @__PURE__ */ Ze({
|
|
3859
3856
|
name: "ResizeHandle",
|
|
3860
3857
|
__name: "ResizeHandle",
|
|
3861
3858
|
props: {
|
|
@@ -3920,7 +3917,7 @@ var Pc = Ro, ko = /* @__PURE__ */ Ze({
|
|
|
3920
3917
|
}), p;
|
|
3921
3918
|
}
|
|
3922
3919
|
});
|
|
3923
|
-
function
|
|
3920
|
+
function Pc(e, t, i, n, s, r) {
|
|
3924
3921
|
return W(), j("div", {
|
|
3925
3922
|
class: xe(["aipanel-resize-handle", {
|
|
3926
3923
|
resizing: n.isResizing,
|
|
@@ -3930,8 +3927,8 @@ function Oc(e, t, i, n, s, r) {
|
|
|
3930
3927
|
onDblclick: n.handleDoubleClick
|
|
3931
3928
|
}, null, 34);
|
|
3932
3929
|
}
|
|
3933
|
-
ko.render =
|
|
3934
|
-
var
|
|
3930
|
+
ko.render = Pc;
|
|
3931
|
+
var Oc = ko, No = /* @__PURE__ */ Ze({
|
|
3935
3932
|
name: "ChatPanel",
|
|
3936
3933
|
__name: "ChatPanel",
|
|
3937
3934
|
props: {
|
|
@@ -4068,16 +4065,16 @@ var Lc = ko, No = /* @__PURE__ */ Ze({
|
|
|
4068
4065
|
}]),
|
|
4069
4066
|
Frame: Bu,
|
|
4070
4067
|
Header: ac,
|
|
4071
|
-
SessionList:
|
|
4072
|
-
SelectedNodes:
|
|
4073
|
-
ResizeHandle:
|
|
4068
|
+
SessionList: Sc,
|
|
4069
|
+
SelectedNodes: Ac,
|
|
4070
|
+
ResizeHandle: Oc
|
|
4074
4071
|
};
|
|
4075
4072
|
return Object.defineProperty(p, "__isScriptSetup", {
|
|
4076
4073
|
enumerable: !1,
|
|
4077
4074
|
value: !0
|
|
4078
4075
|
}), p;
|
|
4079
4076
|
}
|
|
4080
|
-
}),
|
|
4077
|
+
}), Lc = ["aria-expanded"], Rc = { class: "aipanel-split-toggle-icon" }, kc = {
|
|
4081
4078
|
key: 0,
|
|
4082
4079
|
viewBox: "0 0 24 24",
|
|
4083
4080
|
width: "16",
|
|
@@ -4085,7 +4082,7 @@ var Lc = ko, No = /* @__PURE__ */ Ze({
|
|
|
4085
4082
|
fill: "none",
|
|
4086
4083
|
stroke: "currentColor",
|
|
4087
4084
|
"stroke-width": "2"
|
|
4088
|
-
},
|
|
4085
|
+
}, Nc = {
|
|
4089
4086
|
key: 1,
|
|
4090
4087
|
viewBox: "0 0 24 24",
|
|
4091
4088
|
width: "16",
|
|
@@ -4093,7 +4090,7 @@ var Lc = ko, No = /* @__PURE__ */ Ze({
|
|
|
4093
4090
|
fill: "none",
|
|
4094
4091
|
stroke: "currentColor",
|
|
4095
4092
|
"stroke-width": "2"
|
|
4096
|
-
},
|
|
4093
|
+
}, Dc = {
|
|
4097
4094
|
key: 2,
|
|
4098
4095
|
viewBox: "0 0 24 24",
|
|
4099
4096
|
width: "16",
|
|
@@ -4101,7 +4098,7 @@ var Lc = ko, No = /* @__PURE__ */ Ze({
|
|
|
4101
4098
|
fill: "none",
|
|
4102
4099
|
stroke: "currentColor",
|
|
4103
4100
|
"stroke-width": "2"
|
|
4104
|
-
},
|
|
4101
|
+
}, Fc = {
|
|
4105
4102
|
key: 3,
|
|
4106
4103
|
viewBox: "0 0 24 24",
|
|
4107
4104
|
width: "16",
|
|
@@ -4109,8 +4106,8 @@ var Lc = ko, No = /* @__PURE__ */ Ze({
|
|
|
4109
4106
|
fill: "none",
|
|
4110
4107
|
stroke: "currentColor",
|
|
4111
4108
|
"stroke-width": "2"
|
|
4112
|
-
},
|
|
4113
|
-
function
|
|
4109
|
+
}, Bc = { class: "aipanel-chat-content" };
|
|
4110
|
+
function $c(e, t, i, n, s, r) {
|
|
4114
4111
|
return W(), j("div", {
|
|
4115
4112
|
class: xe(n.panelClasses),
|
|
4116
4113
|
style: kt(n.panelStyle)
|
|
@@ -4129,7 +4126,7 @@ function Wc(e, t, i, n, s, r) {
|
|
|
4129
4126
|
"min-width",
|
|
4130
4127
|
"max-width",
|
|
4131
4128
|
"position"
|
|
4132
|
-
])) :
|
|
4129
|
+
])) : re("v-if", !0),
|
|
4133
4130
|
i.mode === "split" && i.resizable ? (W(), j("button", {
|
|
4134
4131
|
key: 1,
|
|
4135
4132
|
type: "button",
|
|
@@ -4142,28 +4139,28 @@ function Wc(e, t, i, n, s, r) {
|
|
|
4142
4139
|
"aria-expanded": i.open,
|
|
4143
4140
|
"aria-label": "切换面板",
|
|
4144
4141
|
onClick: n.handleToggle
|
|
4145
|
-
}, [y("span",
|
|
4146
|
-
i.open && i.splitPosition === "right" ? (W(), j("svg",
|
|
4142
|
+
}, [y("span", Rc, [
|
|
4143
|
+
i.open && i.splitPosition === "right" ? (W(), j("svg", kc, [...t[0] || (t[0] = [y("path", {
|
|
4147
4144
|
d: "M9 18l6-6-6-6",
|
|
4148
4145
|
"stroke-linecap": "round",
|
|
4149
4146
|
"stroke-linejoin": "round"
|
|
4150
|
-
}, null, -1)])])) :
|
|
4151
|
-
!i.open && i.splitPosition === "right" ? (W(), j("svg",
|
|
4147
|
+
}, null, -1)])])) : re("v-if", !0),
|
|
4148
|
+
!i.open && i.splitPosition === "right" ? (W(), j("svg", Nc, [...t[1] || (t[1] = [y("path", {
|
|
4152
4149
|
d: "M15 18l-6-6 6-6",
|
|
4153
4150
|
"stroke-linecap": "round",
|
|
4154
4151
|
"stroke-linejoin": "round"
|
|
4155
|
-
}, null, -1)])])) :
|
|
4156
|
-
i.open && i.splitPosition === "left" ? (W(), j("svg",
|
|
4152
|
+
}, null, -1)])])) : re("v-if", !0),
|
|
4153
|
+
i.open && i.splitPosition === "left" ? (W(), j("svg", Dc, [...t[2] || (t[2] = [y("path", {
|
|
4157
4154
|
d: "M15 18l-6-6 6-6",
|
|
4158
4155
|
"stroke-linecap": "round",
|
|
4159
4156
|
"stroke-linejoin": "round"
|
|
4160
|
-
}, null, -1)])])) :
|
|
4161
|
-
!i.open && i.splitPosition === "left" ? (W(), j("svg",
|
|
4157
|
+
}, null, -1)])])) : re("v-if", !0),
|
|
4158
|
+
!i.open && i.splitPosition === "left" ? (W(), j("svg", Fc, [...t[3] || (t[3] = [y("path", {
|
|
4162
4159
|
d: "M9 18l6-6-6-6",
|
|
4163
4160
|
"stroke-linecap": "round",
|
|
4164
4161
|
"stroke-linejoin": "round"
|
|
4165
|
-
}, null, -1)])])) :
|
|
4166
|
-
])], 10,
|
|
4162
|
+
}, null, -1)])])) : re("v-if", !0)
|
|
4163
|
+
])], 10, Lc)) : re("v-if", !0),
|
|
4167
4164
|
Re(n.Header, null, li({ _: 2 }, [
|
|
4168
4165
|
n.slots["session-toggle-icon"] ? {
|
|
4169
4166
|
name: "session-toggle-icon",
|
|
@@ -4181,8 +4178,8 @@ function Wc(e, t, i, n, s, r) {
|
|
|
4181
4178
|
key: "2"
|
|
4182
4179
|
} : void 0
|
|
4183
4180
|
]), 1024),
|
|
4184
|
-
y("div",
|
|
4185
|
-
i.providerSidebar ?
|
|
4181
|
+
y("div", Bc, [
|
|
4182
|
+
i.providerSidebar ? re("v-if", !0) : (W(), bt(n.SessionList, { key: 0 }, {
|
|
4186
4183
|
empty: we(() => [te(e.$slots, "sessions-empty", {}, () => [t[4] || (t[4] = y("div", { class: "aipanel-session-empty" }, "暂无会话", -1))])]),
|
|
4187
4184
|
_: 3
|
|
4188
4185
|
})),
|
|
@@ -4212,8 +4209,8 @@ function Wc(e, t, i, n, s, r) {
|
|
|
4212
4209
|
])
|
|
4213
4210
|
], 6);
|
|
4214
4211
|
}
|
|
4215
|
-
No.render =
|
|
4216
|
-
var
|
|
4212
|
+
No.render = $c;
|
|
4213
|
+
var Wc = No, Do = /* @__PURE__ */ Ze({
|
|
4217
4214
|
__name: "SelectHint",
|
|
4218
4215
|
setup(e, { expose: t }) {
|
|
4219
4216
|
t();
|
|
@@ -4226,12 +4223,12 @@ var Vc = No, Do = /* @__PURE__ */ Ze({
|
|
|
4226
4223
|
value: !0
|
|
4227
4224
|
}), s;
|
|
4228
4225
|
}
|
|
4229
|
-
}),
|
|
4230
|
-
function
|
|
4231
|
-
return W(), j("div", { class: xe(["aipanel-select-mode-hint", { visible: n.visible }]) }, [t[0] || (t[0] = Zi('<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",
|
|
4226
|
+
}), Vc = { class: "aipanel-hint-shortcut" };
|
|
4227
|
+
function Hc(e, t, i, n, s, r) {
|
|
4228
|
+
return W(), j("div", { class: xe(["aipanel-select-mode-hint", { visible: n.visible }]) }, [t[0] || (t[0] = Zi('<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", Vc, Fe(n.shortcutLabel), 1)], 2);
|
|
4232
4229
|
}
|
|
4233
|
-
Do.render =
|
|
4234
|
-
var
|
|
4230
|
+
Do.render = Hc;
|
|
4231
|
+
var jc = Do, Fo = /* @__PURE__ */ Ze({
|
|
4235
4232
|
name: "FloatingBubble",
|
|
4236
4233
|
__name: "FloatingBubble",
|
|
4237
4234
|
props: {
|
|
@@ -4432,7 +4429,7 @@ var zc = Do, Fo = /* @__PURE__ */ Ze({
|
|
|
4432
4429
|
}), J;
|
|
4433
4430
|
}
|
|
4434
4431
|
});
|
|
4435
|
-
function
|
|
4432
|
+
function zc(e, t, i, n, s, r) {
|
|
4436
4433
|
return W(), bt(qr, { to: i.teleport }, [y("div", {
|
|
4437
4434
|
ref: "rootRef",
|
|
4438
4435
|
class: "floating-bubble",
|
|
@@ -4444,8 +4441,8 @@ function Uc(e, t, i, n, s, r) {
|
|
|
4444
4441
|
onClickCapture: n.onClick
|
|
4445
4442
|
}, [te(e.$slots, "default")], 36)], 8, ["to"]);
|
|
4446
4443
|
}
|
|
4447
|
-
Fo.render =
|
|
4448
|
-
var
|
|
4444
|
+
Fo.render = zc;
|
|
4445
|
+
var Uc = Fo, qc = `<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%">
|
|
4449
4446
|
<defs>
|
|
4450
4447
|
<linearGradient id="aipanel-logo-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
4451
4448
|
<stop offset="0%" style="stop-color:#667eea"/>
|
|
@@ -4471,7 +4468,7 @@ var qc = Fo, Kc = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" v
|
|
|
4471
4468
|
props: i,
|
|
4472
4469
|
baseId: n,
|
|
4473
4470
|
gradientId: s,
|
|
4474
|
-
rendered: q(() =>
|
|
4471
|
+
rendered: q(() => qc.replace('id="aipanel-logo-gradient"', `id="${s}"`).replace(/url\(#aipanel-logo-gradient\)/g, `url(#${s})`)),
|
|
4475
4472
|
sizeStyle: q(() => {
|
|
4476
4473
|
const o = typeof i.size == "number" ? `${i.size}px` : i.size;
|
|
4477
4474
|
return {
|
|
@@ -4485,8 +4482,8 @@ var qc = Fo, Kc = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" v
|
|
|
4485
4482
|
value: !0
|
|
4486
4483
|
}), r;
|
|
4487
4484
|
}
|
|
4488
|
-
}),
|
|
4489
|
-
function
|
|
4485
|
+
}), Kc = ["innerHTML"];
|
|
4486
|
+
function Gc(e, t, i, n, s, r) {
|
|
4490
4487
|
return W(), j("span", {
|
|
4491
4488
|
class: "aipanel-logo",
|
|
4492
4489
|
style: kt([{
|
|
@@ -4494,10 +4491,10 @@ function Yc(e, t, i, n, s, r) {
|
|
|
4494
4491
|
lineHeight: 0
|
|
4495
4492
|
}, n.sizeStyle]),
|
|
4496
4493
|
innerHTML: n.rendered
|
|
4497
|
-
}, null, 12,
|
|
4494
|
+
}, null, 12, Kc);
|
|
4498
4495
|
}
|
|
4499
|
-
Bo.render =
|
|
4500
|
-
var
|
|
4496
|
+
Bo.render = Gc;
|
|
4497
|
+
var Yc = Bo, $o = /* @__PURE__ */ Ze({
|
|
4501
4498
|
__name: "Trigger",
|
|
4502
4499
|
emits: ["drag-start", "drag-end"],
|
|
4503
4500
|
setup(e, { expose: t, emit: i }) {
|
|
@@ -4519,16 +4516,16 @@ var Xc = Bo, $o = /* @__PURE__ */ Ze({
|
|
|
4519
4516
|
offset: f,
|
|
4520
4517
|
emit: p,
|
|
4521
4518
|
handleOffsetChange: _,
|
|
4522
|
-
FloatingBubble:
|
|
4523
|
-
AIPanelLogo:
|
|
4519
|
+
FloatingBubble: Uc,
|
|
4520
|
+
AIPanelLogo: Yc
|
|
4524
4521
|
};
|
|
4525
4522
|
return Object.defineProperty(w, "__isScriptSetup", {
|
|
4526
4523
|
enumerable: !1,
|
|
4527
4524
|
value: !0
|
|
4528
4525
|
}), w;
|
|
4529
4526
|
}
|
|
4530
|
-
}),
|
|
4531
|
-
function
|
|
4527
|
+
}), Xc = ["aria-expanded", "title"];
|
|
4528
|
+
function Jc(e, t, i, n, s, r) {
|
|
4532
4529
|
return W(), bt(n.FloatingBubble, {
|
|
4533
4530
|
ref: "bubbleRef",
|
|
4534
4531
|
offset: n.offset,
|
|
@@ -4551,28 +4548,28 @@ function Zc(e, t, i, n, s, r) {
|
|
|
4551
4548
|
"aria-expanded": n.open,
|
|
4552
4549
|
"aria-label": "打开 AI 助手",
|
|
4553
4550
|
title: `AI 助手 (${n.hotkeyLabel})`
|
|
4554
|
-
}, [te(e.$slots, "default", {}, () => [Re(n.AIPanelLogo, { size: 42 })])], 10,
|
|
4551
|
+
}, [te(e.$slots, "default", {}, () => [Re(n.AIPanelLogo, { size: 42 })])], 10, Xc)]),
|
|
4555
4552
|
_: 3
|
|
4556
4553
|
}, 8, ["offset", "onClick"]);
|
|
4557
4554
|
}
|
|
4558
|
-
$o.render =
|
|
4559
|
-
var
|
|
4560
|
-
function
|
|
4555
|
+
$o.render = Jc;
|
|
4556
|
+
var Zc = $o;
|
|
4557
|
+
function Qc(e, t) {
|
|
4561
4558
|
return e.filePath && e.line ? `${e.filePath}:${e.line}:${e.column ?? 0}` : `${e.description}-${t}`;
|
|
4562
4559
|
}
|
|
4563
|
-
function
|
|
4560
|
+
function ed(e) {
|
|
4564
4561
|
return `${e.filePath?.split("/").pop() || ""}${e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : ""}`;
|
|
4565
4562
|
}
|
|
4566
|
-
function
|
|
4563
|
+
function td(e) {
|
|
4567
4564
|
const t = e.filePath?.split("/").pop() || "未知文件", i = e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : "";
|
|
4568
4565
|
return `${e.innerText?.trim() ? `${wo(e.innerText.trim(), 30)} · ` : ""}${t}${i}`;
|
|
4569
4566
|
}
|
|
4570
|
-
function
|
|
4567
|
+
function nd(e) {
|
|
4571
4568
|
const t = q(() => e.selectMode.value), i = q(() => (e.selectedElements.value || []).map((a, u) => ({
|
|
4572
|
-
key:
|
|
4569
|
+
key: Qc(a, u),
|
|
4573
4570
|
description: a.description || "未知元素",
|
|
4574
|
-
bubbleFileText:
|
|
4575
|
-
panelFileText:
|
|
4571
|
+
bubbleFileText: ed(a),
|
|
4572
|
+
panelFileText: td(a),
|
|
4576
4573
|
element: a
|
|
4577
4574
|
}))), n = q(() => i.value.length > 0);
|
|
4578
4575
|
function s() {
|
|
@@ -4637,7 +4634,7 @@ function id(e) {
|
|
|
4637
4634
|
handleToggleSelectMode: s
|
|
4638
4635
|
};
|
|
4639
4636
|
}
|
|
4640
|
-
function
|
|
4637
|
+
function id(e) {
|
|
4641
4638
|
const t = new Date(e).getTime();
|
|
4642
4639
|
if (Number.isNaN(t)) return "";
|
|
4643
4640
|
const i = Date.now() - t;
|
|
@@ -4650,15 +4647,15 @@ function sd(e) {
|
|
|
4650
4647
|
const o = new Date(t);
|
|
4651
4648
|
return `${o.toLocaleDateString()} ${o.toLocaleTimeString()}`;
|
|
4652
4649
|
}
|
|
4653
|
-
function
|
|
4654
|
-
return e.meta ? e.meta : e.updatedAt ?
|
|
4650
|
+
function sd(e) {
|
|
4651
|
+
return e.meta ? e.meta : e.updatedAt ? id(e.updatedAt) : "";
|
|
4655
4652
|
}
|
|
4656
|
-
function
|
|
4653
|
+
function rd(e) {
|
|
4657
4654
|
const t = q(() => (e.sessions.value || []).map((r) => ({
|
|
4658
4655
|
key: r.id,
|
|
4659
4656
|
id: r.id,
|
|
4660
4657
|
title: r.title || "新会话",
|
|
4661
|
-
meta:
|
|
4658
|
+
meta: sd(r),
|
|
4662
4659
|
active: r.id === e.currentSessionId.value,
|
|
4663
4660
|
session: r
|
|
4664
4661
|
})));
|
|
@@ -4679,7 +4676,7 @@ function od(e) {
|
|
|
4679
4676
|
};
|
|
4680
4677
|
}
|
|
4681
4678
|
var Vi = Tu;
|
|
4682
|
-
function
|
|
4679
|
+
function od(e) {
|
|
4683
4680
|
const t = /* @__PURE__ */ R("light");
|
|
4684
4681
|
let i = null, n = null;
|
|
4685
4682
|
Qe(() => {
|
|
@@ -4739,14 +4736,14 @@ var Hn = {
|
|
|
4739
4736
|
nthchild: "nthchild",
|
|
4740
4737
|
nthoftype: "nthoftype"
|
|
4741
4738
|
};
|
|
4742
|
-
function
|
|
4739
|
+
function ld(e, t) {
|
|
4743
4740
|
return Object.values(e).includes(t);
|
|
4744
4741
|
}
|
|
4745
|
-
var
|
|
4742
|
+
var ad = "CssSelectorGenerator";
|
|
4746
4743
|
function fi(e = "unknown problem", ...t) {
|
|
4747
|
-
console.warn(`${
|
|
4744
|
+
console.warn(`${ad}: ${e}`, ...t);
|
|
4748
4745
|
}
|
|
4749
|
-
var
|
|
4746
|
+
var ud = {
|
|
4750
4747
|
selectors: [
|
|
4751
4748
|
Te.id,
|
|
4752
4749
|
Te.class,
|
|
@@ -4767,19 +4764,19 @@ var cd = {
|
|
|
4767
4764
|
function xn(e) {
|
|
4768
4765
|
return !!e;
|
|
4769
4766
|
}
|
|
4770
|
-
function
|
|
4771
|
-
return Array.isArray(e) ? e.filter((t) =>
|
|
4767
|
+
function cd(e) {
|
|
4768
|
+
return Array.isArray(e) ? e.filter((t) => ld(Te, t)) : [];
|
|
4772
4769
|
}
|
|
4773
4770
|
function Vo(e) {
|
|
4774
4771
|
return e instanceof RegExp;
|
|
4775
4772
|
}
|
|
4776
|
-
function
|
|
4773
|
+
function dd(e) {
|
|
4777
4774
|
return ["string", "function"].includes(typeof e) || Vo(e);
|
|
4778
4775
|
}
|
|
4779
4776
|
function er(e) {
|
|
4780
|
-
return Array.isArray(e) ? e.filter(
|
|
4777
|
+
return Array.isArray(e) ? e.filter(dd) : [];
|
|
4781
4778
|
}
|
|
4782
|
-
function
|
|
4779
|
+
function fd(e) {
|
|
4783
4780
|
return e != null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
4784
4781
|
}
|
|
4785
4782
|
function tr(e) {
|
|
@@ -4788,7 +4785,7 @@ function tr(e) {
|
|
|
4788
4785
|
Node.DOCUMENT_FRAGMENT_NODE,
|
|
4789
4786
|
Node.ELEMENT_NODE
|
|
4790
4787
|
];
|
|
4791
|
-
return
|
|
4788
|
+
return fd(e) && t.includes(e.nodeType);
|
|
4792
4789
|
}
|
|
4793
4790
|
function Ho(e, t) {
|
|
4794
4791
|
if (tr(e))
|
|
@@ -4799,10 +4796,10 @@ function Ho(e, t) {
|
|
|
4799
4796
|
function Hi(e) {
|
|
4800
4797
|
return typeof e == "number" ? e : Number.POSITIVE_INFINITY;
|
|
4801
4798
|
}
|
|
4802
|
-
function
|
|
4803
|
-
const i = Object.assign(Object.assign({},
|
|
4799
|
+
function hd(e, t = {}) {
|
|
4800
|
+
const i = Object.assign(Object.assign({}, ud), t);
|
|
4804
4801
|
return {
|
|
4805
|
-
selectors:
|
|
4802
|
+
selectors: cd(i.selectors),
|
|
4806
4803
|
whitelist: er(i.whitelist),
|
|
4807
4804
|
blacklist: er(i.blacklist),
|
|
4808
4805
|
root: Ho(i.root, e),
|
|
@@ -4820,10 +4817,10 @@ function Un(e = []) {
|
|
|
4820
4817
|
const [t = [], ...i] = e;
|
|
4821
4818
|
return i.length === 0 ? t : i.reduce((n, s) => n.filter((r) => s.includes(r)), t);
|
|
4822
4819
|
}
|
|
4823
|
-
function
|
|
4820
|
+
function pd(e) {
|
|
4824
4821
|
return [].concat(...e);
|
|
4825
4822
|
}
|
|
4826
|
-
function
|
|
4823
|
+
function gd(e) {
|
|
4827
4824
|
return e.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".+");
|
|
4828
4825
|
}
|
|
4829
4826
|
function hi(e) {
|
|
@@ -4834,7 +4831,7 @@ function hi(e) {
|
|
|
4834
4831
|
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;
|
|
4835
4832
|
};
|
|
4836
4833
|
if (typeof i == "string") {
|
|
4837
|
-
const n = new RegExp("^" +
|
|
4834
|
+
const n = new RegExp("^" + gd(i) + "$");
|
|
4838
4835
|
return (s) => n.test(s);
|
|
4839
4836
|
}
|
|
4840
4837
|
return fi("pattern matcher invalid", "Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.", i), () => !1;
|
|
@@ -4853,80 +4850,80 @@ function jo(e, t) {
|
|
|
4853
4850
|
Wo(n) && i.push(n), n = n.parentNode;
|
|
4854
4851
|
return i;
|
|
4855
4852
|
}
|
|
4856
|
-
function
|
|
4853
|
+
function vd(e, t) {
|
|
4857
4854
|
return Un(e.map((i) => jo(i, t)));
|
|
4858
4855
|
}
|
|
4859
4856
|
function ys(e) {
|
|
4860
4857
|
return e.ownerDocument.querySelector(":root");
|
|
4861
4858
|
}
|
|
4862
|
-
var
|
|
4859
|
+
var md = new RegExp(["^$", "\\s"].join("|")), _d = new RegExp(["^$"].join("|")), zo = [
|
|
4863
4860
|
Te.nthoftype,
|
|
4864
4861
|
Te.tag,
|
|
4865
4862
|
Te.id,
|
|
4866
4863
|
Te.class,
|
|
4867
4864
|
Te.attribute,
|
|
4868
4865
|
Te.nthchild
|
|
4869
|
-
],
|
|
4866
|
+
], yd = hi([
|
|
4870
4867
|
"class",
|
|
4871
4868
|
"id",
|
|
4872
4869
|
"ng-*"
|
|
4873
4870
|
]);
|
|
4874
|
-
function
|
|
4871
|
+
function bd({ name: e }) {
|
|
4875
4872
|
return `[${e}]`;
|
|
4876
4873
|
}
|
|
4877
|
-
function
|
|
4874
|
+
function Sd({ name: e, value: t }) {
|
|
4878
4875
|
return `[${e}='${t}']`;
|
|
4879
4876
|
}
|
|
4880
|
-
function
|
|
4877
|
+
function Ed({ nodeName: e, nodeValue: t }, i) {
|
|
4881
4878
|
const n = i.tagName.toLowerCase();
|
|
4882
|
-
return ["input", "option"].includes(n) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !
|
|
4879
|
+
return ["input", "option"].includes(n) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !yd(e);
|
|
4883
4880
|
}
|
|
4884
|
-
function
|
|
4881
|
+
function wd({ nodeName: e, nodeValue: t }) {
|
|
4885
4882
|
return {
|
|
4886
4883
|
name: gn(e),
|
|
4887
4884
|
value: gn(t ?? void 0)
|
|
4888
4885
|
};
|
|
4889
4886
|
}
|
|
4890
4887
|
function Uo(e, t) {
|
|
4891
|
-
const i = Array.from(e.attributes).filter((n) =>
|
|
4892
|
-
return [...i.map(
|
|
4888
|
+
const i = Array.from(e.attributes).filter((n) => Ed(n, e)).map(wd);
|
|
4889
|
+
return [...i.map(bd), ...i.map(Sd)];
|
|
4893
4890
|
}
|
|
4894
|
-
function
|
|
4891
|
+
function Td(e, t) {
|
|
4895
4892
|
const i = e.map((n) => Uo(n, t));
|
|
4896
4893
|
return Un(i);
|
|
4897
4894
|
}
|
|
4898
|
-
var
|
|
4899
|
-
function
|
|
4900
|
-
if (!
|
|
4895
|
+
var Cd = /^[a-z_-]{3,}$/i, xd = /[bcdfghjklmnpqrstvwxyz]{4,}/i;
|
|
4896
|
+
function Id(e) {
|
|
4897
|
+
if (!Cd.test(e) || e.includes("_") && !e.includes("__") || /^(css|sc|jsx|emotion|makeStyles|MuiButton|MuiBox)-/i.test(e)) return !1;
|
|
4901
4898
|
const t = e.split(/--|__|[-]|(?<=[a-z])(?=[A-Z])/).filter((i) => i.length > 0);
|
|
4902
4899
|
if (t.length === 0 || t.length === 1 && t[0].length < 4) return !1;
|
|
4903
4900
|
for (const i of t)
|
|
4904
|
-
if (i.length <= 2 ||
|
|
4901
|
+
if (i.length <= 2 || xd.test(i)) return !1;
|
|
4905
4902
|
return !0;
|
|
4906
4903
|
}
|
|
4907
4904
|
function qo(e, t) {
|
|
4908
4905
|
var i;
|
|
4909
|
-
const n = ((i = e.getAttribute("class")) !== null && i !== void 0 ? i : "").trim().split(/\s+/).filter((r) => !
|
|
4906
|
+
const n = ((i = e.getAttribute("class")) !== null && i !== void 0 ? i : "").trim().split(/\s+/).filter((r) => !_d.test(r));
|
|
4910
4907
|
let s = n;
|
|
4911
4908
|
if (t?.ignoreGeneratedClassNames) {
|
|
4912
4909
|
const r = hi(t.whitelist);
|
|
4913
4910
|
s = n.filter((o) => {
|
|
4914
4911
|
const l = `.${gn(o)}`;
|
|
4915
|
-
return r(l) ? !0 :
|
|
4912
|
+
return r(l) ? !0 : Id(o);
|
|
4916
4913
|
});
|
|
4917
4914
|
}
|
|
4918
4915
|
return s.map((r) => `.${gn(r)}`);
|
|
4919
4916
|
}
|
|
4920
|
-
function
|
|
4917
|
+
function Md(e, t) {
|
|
4921
4918
|
const i = e.map((n) => qo(n, t));
|
|
4922
4919
|
return Un(i);
|
|
4923
4920
|
}
|
|
4924
4921
|
function Ko(e, t) {
|
|
4925
4922
|
var i;
|
|
4926
4923
|
const n = (i = e.getAttribute("id")) !== null && i !== void 0 ? i : "", s = `#${gn(n)}`, r = e.getRootNode({ composed: !1 });
|
|
4927
|
-
return !
|
|
4924
|
+
return !md.test(n) && _s([e], s, r) ? [s] : [];
|
|
4928
4925
|
}
|
|
4929
|
-
function
|
|
4926
|
+
function Ad(e, t) {
|
|
4930
4927
|
return e.length === 0 || e.length > 1 ? [] : Ko(e[0], t);
|
|
4931
4928
|
}
|
|
4932
4929
|
function Go(e, t) {
|
|
@@ -4936,14 +4933,14 @@ function Go(e, t) {
|
|
|
4936
4933
|
}
|
|
4937
4934
|
return [];
|
|
4938
4935
|
}
|
|
4939
|
-
function
|
|
4936
|
+
function Pd(e, t) {
|
|
4940
4937
|
return Un(e.map((i) => Go(i, t)));
|
|
4941
4938
|
}
|
|
4942
4939
|
function Yo(e, t) {
|
|
4943
4940
|
return [gn(e.tagName.toLowerCase())];
|
|
4944
4941
|
}
|
|
4945
4942
|
function Xo(e, t) {
|
|
4946
|
-
const i = [...new Set(
|
|
4943
|
+
const i = [...new Set(pd(e.map((n) => Yo(n, t))))];
|
|
4947
4944
|
return i.length === 0 || i.length > 1 ? [] : [i[0]];
|
|
4948
4945
|
}
|
|
4949
4946
|
function Jo(e, t) {
|
|
@@ -4954,18 +4951,18 @@ function Jo(e, t) {
|
|
|
4954
4951
|
}
|
|
4955
4952
|
return [];
|
|
4956
4953
|
}
|
|
4957
|
-
function
|
|
4954
|
+
function Od(e, t) {
|
|
4958
4955
|
return Un(e.map((i) => Jo(i, t)));
|
|
4959
4956
|
}
|
|
4960
4957
|
function* Zo(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
4961
4958
|
let i = 0, n = is(1);
|
|
4962
4959
|
for (; n.length <= e.length && i < t; )
|
|
4963
|
-
i += 1, yield n.map((s) => e[s]), n =
|
|
4960
|
+
i += 1, yield n.map((s) => e[s]), n = Rd(n, e.length - 1);
|
|
4964
4961
|
}
|
|
4965
|
-
function
|
|
4962
|
+
function Ld(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
4966
4963
|
return Array.from(Zo(e, { maxResults: t }));
|
|
4967
4964
|
}
|
|
4968
|
-
function
|
|
4965
|
+
function Rd(e = [], t = 0) {
|
|
4969
4966
|
const i = e.length;
|
|
4970
4967
|
if (i === 0) return [];
|
|
4971
4968
|
const n = [...e];
|
|
@@ -4979,7 +4976,7 @@ function kd(e = [], t = 0) {
|
|
|
4979
4976
|
function is(e = 1) {
|
|
4980
4977
|
return Array.from(Array(e).keys());
|
|
4981
4978
|
}
|
|
4982
|
-
function*
|
|
4979
|
+
function* kd(e = {}) {
|
|
4983
4980
|
const t = Object.entries(e);
|
|
4984
4981
|
if (t.length === 0) return;
|
|
4985
4982
|
const i = [{
|
|
@@ -5001,21 +4998,21 @@ function* Nd(e = {}) {
|
|
|
5001
4998
|
});
|
|
5002
4999
|
}
|
|
5003
5000
|
}
|
|
5004
|
-
var
|
|
5001
|
+
var Nd = "3a".toUpperCase(), Dd = /[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;
|
|
5005
5002
|
function gn(e = "") {
|
|
5006
|
-
return CSS ? CSS.escape(e) :
|
|
5003
|
+
return CSS ? CSS.escape(e) : Fd(e);
|
|
5007
5004
|
}
|
|
5008
|
-
function
|
|
5009
|
-
return e.split("").map((t) => t === ":" ? `\\${
|
|
5005
|
+
function Fd(e = "") {
|
|
5006
|
+
return e.split("").map((t) => t === ":" ? `\\${Nd} ` : Dd.test(t) ? `\\${t}` : escape(t).replace(/%/g, "\\")).join("");
|
|
5010
5007
|
}
|
|
5011
|
-
var
|
|
5008
|
+
var Bd = {
|
|
5012
5009
|
tag: Xo,
|
|
5013
|
-
id:
|
|
5014
|
-
class:
|
|
5015
|
-
attribute:
|
|
5016
|
-
nthchild:
|
|
5017
|
-
nthoftype:
|
|
5018
|
-
},
|
|
5010
|
+
id: Ad,
|
|
5011
|
+
class: Md,
|
|
5012
|
+
attribute: Td,
|
|
5013
|
+
nthchild: Pd,
|
|
5014
|
+
nthoftype: Od
|
|
5015
|
+
}, $d = {
|
|
5019
5016
|
tag: Yo,
|
|
5020
5017
|
id: Ko,
|
|
5021
5018
|
class: qo,
|
|
@@ -5023,86 +5020,86 @@ var $d = {
|
|
|
5023
5020
|
nthchild: Go,
|
|
5024
5021
|
nthoftype: Jo
|
|
5025
5022
|
};
|
|
5026
|
-
function
|
|
5027
|
-
return
|
|
5023
|
+
function Wd(e, t, i) {
|
|
5024
|
+
return $d[t](e, i);
|
|
5028
5025
|
}
|
|
5029
|
-
function
|
|
5030
|
-
const n =
|
|
5026
|
+
function Vd(e, t, i) {
|
|
5027
|
+
const n = Bd[t];
|
|
5031
5028
|
return n(e, i);
|
|
5032
5029
|
}
|
|
5033
|
-
function
|
|
5030
|
+
function Hd(e = [], t, i) {
|
|
5034
5031
|
return e.filter((n) => i(n) || !t(n));
|
|
5035
5032
|
}
|
|
5036
|
-
function
|
|
5033
|
+
function jd(e = [], t) {
|
|
5037
5034
|
return e.sort((i, n) => {
|
|
5038
5035
|
const s = t(i), r = t(n);
|
|
5039
5036
|
return s && !r ? -1 : !s && r ? 1 : 0;
|
|
5040
5037
|
});
|
|
5041
5038
|
}
|
|
5042
|
-
function*
|
|
5043
|
-
const i = /* @__PURE__ */ new Set(), n =
|
|
5044
|
-
for (const s of
|
|
5039
|
+
function* zd(e, t) {
|
|
5040
|
+
const i = /* @__PURE__ */ new Set(), n = Ud(e, t);
|
|
5041
|
+
for (const s of Yd(n, t)) i.has(s) || (i.add(s), yield s);
|
|
5045
5042
|
}
|
|
5046
|
-
function
|
|
5043
|
+
function Ud(e, t) {
|
|
5047
5044
|
const { blacklist: i, whitelist: n, combineWithinSelector: s, maxCombinations: r } = t, o = hi(i), l = hi(n), a = (u, c) => {
|
|
5048
|
-
const f =
|
|
5045
|
+
const f = jd(Hd(Vd(e, c, t), o, l), l);
|
|
5049
5046
|
return u[c] = s ? Array.from(Zo(f, { maxResults: r })) : f.map((p) => [p]), u;
|
|
5050
5047
|
};
|
|
5051
|
-
return
|
|
5048
|
+
return qd(t).reduce(a, {});
|
|
5052
5049
|
}
|
|
5053
|
-
function
|
|
5050
|
+
function qd(e) {
|
|
5054
5051
|
const { selectors: t, includeTag: i } = e, n = [...t];
|
|
5055
5052
|
return i && !n.includes("tag") && n.push("tag"), n;
|
|
5056
5053
|
}
|
|
5057
|
-
function
|
|
5054
|
+
function Kd(e) {
|
|
5058
5055
|
return e.includes(Te.tag) || e.includes(Te.nthoftype) ? [...e] : [...e, Te.tag];
|
|
5059
5056
|
}
|
|
5060
|
-
function
|
|
5061
|
-
const { selectors: t, combineBetweenSelectors: i, includeTag: n, maxCandidates: s } = e, r = i ?
|
|
5062
|
-
return n ? r.map(
|
|
5057
|
+
function Gd(e) {
|
|
5058
|
+
const { selectors: t, combineBetweenSelectors: i, includeTag: n, maxCandidates: s } = e, r = i ? Ld(t, { maxResults: s }) : t.map((o) => [o]);
|
|
5059
|
+
return n ? r.map(Kd) : r;
|
|
5060
|
+
}
|
|
5061
|
+
function* Yd(e, t) {
|
|
5062
|
+
for (const i of Gd(t)) yield* Xd(i, e);
|
|
5063
5063
|
}
|
|
5064
5064
|
function* Xd(e, t) {
|
|
5065
|
-
for (const i of Yd(t)) yield* Jd(i, e);
|
|
5066
|
-
}
|
|
5067
|
-
function* Jd(e, t) {
|
|
5068
5065
|
const i = {};
|
|
5069
5066
|
for (const n of e) {
|
|
5070
5067
|
const s = t[n];
|
|
5071
5068
|
s && s.length > 0 && (i[n] = s);
|
|
5072
5069
|
}
|
|
5073
|
-
for (const n of
|
|
5070
|
+
for (const n of kd(i)) yield Zd(n);
|
|
5074
5071
|
}
|
|
5075
|
-
function
|
|
5072
|
+
function Jd(e, t) {
|
|
5076
5073
|
return t[e] ? t[e].join("") : "";
|
|
5077
5074
|
}
|
|
5078
|
-
function
|
|
5075
|
+
function Zd(e = {}) {
|
|
5079
5076
|
const t = [...zo];
|
|
5080
|
-
return e[Te.tag] && e[Te.nthoftype] && t.splice(t.indexOf(Te.tag), 1), t.map((i) =>
|
|
5077
|
+
return e[Te.tag] && e[Te.nthoftype] && t.splice(t.indexOf(Te.tag), 1), t.map((i) => Jd(i, e)).join("");
|
|
5081
5078
|
}
|
|
5082
|
-
function
|
|
5079
|
+
function Qd(e, t) {
|
|
5083
5080
|
return [...e.map((i) => t + Hn.DESCENDANT + i), ...e.map((i) => t + Hn.CHILD + i)];
|
|
5084
5081
|
}
|
|
5085
|
-
function*
|
|
5082
|
+
function* ef(e, t) {
|
|
5086
5083
|
if (t === "") yield* e;
|
|
5087
|
-
else for (const i of e) yield*
|
|
5084
|
+
else for (const i of e) yield* Qd([i], t);
|
|
5088
5085
|
}
|
|
5089
|
-
function*
|
|
5090
|
-
const s =
|
|
5091
|
-
for (const r of
|
|
5086
|
+
function* tf(e, t, i = "", n) {
|
|
5087
|
+
const s = zd(e, n);
|
|
5088
|
+
for (const r of ef(s, i)) _s(e, r, t) && (yield r);
|
|
5092
5089
|
}
|
|
5093
|
-
function*
|
|
5090
|
+
function* nf(e, t, i = "", n) {
|
|
5094
5091
|
if (e.length === 0) return null;
|
|
5095
|
-
const s = [e.length > 1 ? e : [], ...
|
|
5096
|
-
for (const r of s) for (const o of
|
|
5092
|
+
const s = [e.length > 1 ? e : [], ...vd(e, t).map((r) => [r])];
|
|
5093
|
+
for (const r of s) for (const o of tf(r, t, i, n)) yield {
|
|
5097
5094
|
foundElements: r,
|
|
5098
5095
|
selector: o
|
|
5099
5096
|
};
|
|
5100
5097
|
}
|
|
5101
|
-
function*
|
|
5098
|
+
function* sf({ elements: e, root: t, rootSelector: i = "", options: n }) {
|
|
5102
5099
|
let s = t, r = i, o = !0;
|
|
5103
5100
|
for (; o; ) {
|
|
5104
5101
|
let l = !1;
|
|
5105
|
-
for (const a of
|
|
5102
|
+
for (const a of nf(e, s, r, n)) {
|
|
5106
5103
|
const { foundElements: u, selector: c } = a;
|
|
5107
5104
|
if (l = !0, _s(e, c, t)) yield c;
|
|
5108
5105
|
else {
|
|
@@ -5113,28 +5110,28 @@ function* rf({ elements: e, root: t, rootSelector: i = "", options: n }) {
|
|
|
5113
5110
|
l || (o = !1);
|
|
5114
5111
|
}
|
|
5115
5112
|
}
|
|
5116
|
-
function
|
|
5113
|
+
function rf(e) {
|
|
5117
5114
|
(e instanceof NodeList || e instanceof HTMLCollection) && (e = Array.from(e));
|
|
5118
5115
|
const t = (Array.isArray(e) ? e : [e]).filter(Wo);
|
|
5119
5116
|
return [...new Set(t)];
|
|
5120
5117
|
}
|
|
5121
|
-
function
|
|
5118
|
+
function of(e) {
|
|
5122
5119
|
return {
|
|
5123
5120
|
value: e,
|
|
5124
5121
|
include: !1
|
|
5125
5122
|
};
|
|
5126
5123
|
}
|
|
5127
|
-
function
|
|
5124
|
+
function lf(e, t, i = Hn.NONE) {
|
|
5128
5125
|
const n = {};
|
|
5129
5126
|
return t.forEach((s) => {
|
|
5130
|
-
Reflect.set(n, s,
|
|
5127
|
+
Reflect.set(n, s, Wd(e, s).map(of));
|
|
5131
5128
|
}), {
|
|
5132
5129
|
element: e,
|
|
5133
5130
|
operator: i,
|
|
5134
5131
|
selectors: n
|
|
5135
5132
|
};
|
|
5136
5133
|
}
|
|
5137
|
-
function
|
|
5134
|
+
function af({ selectors: e, operator: t }) {
|
|
5138
5135
|
let i = [...zo];
|
|
5139
5136
|
e[Te.tag] && e[Te.nthoftype] && (i = i.filter((s) => s !== Te.tag));
|
|
5140
5137
|
let n = "";
|
|
@@ -5145,20 +5142,20 @@ function uf({ selectors: e, operator: t }) {
|
|
|
5145
5142
|
});
|
|
5146
5143
|
}), t + n;
|
|
5147
5144
|
}
|
|
5148
|
-
function
|
|
5145
|
+
function uf(e, t) {
|
|
5149
5146
|
const i = jo(e, t).reverse(), n = t instanceof ShadowRoot, s = i.map((r, o) => {
|
|
5150
5147
|
var l;
|
|
5151
|
-
const a =
|
|
5148
|
+
const a = lf(r, [Te.nthchild], n && o === 0 ? Hn.NONE : Hn.CHILD);
|
|
5152
5149
|
return ((l = a.selectors.nthchild) !== null && l !== void 0 ? l : []).forEach((u) => {
|
|
5153
5150
|
u.include = !0;
|
|
5154
5151
|
}), a;
|
|
5155
5152
|
});
|
|
5156
|
-
return [n ? "" : t ? ":scope" : ":root", ...s.map(
|
|
5153
|
+
return [n ? "" : t ? ":scope" : ":root", ...s.map(af)].join("");
|
|
5157
5154
|
}
|
|
5158
|
-
function
|
|
5159
|
-
return e.map((i) =>
|
|
5155
|
+
function cf(e, t) {
|
|
5156
|
+
return e.map((i) => uf(i, t)).join(", ");
|
|
5160
5157
|
}
|
|
5161
|
-
var
|
|
5158
|
+
var df = function(e, t) {
|
|
5162
5159
|
var i = {};
|
|
5163
5160
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (i[n] = e[n]);
|
|
5164
5161
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -5166,13 +5163,13 @@ var ff = function(e, t) {
|
|
|
5166
5163
|
return i;
|
|
5167
5164
|
};
|
|
5168
5165
|
function Qo(e, t = {}) {
|
|
5169
|
-
return
|
|
5166
|
+
return ff(e, Object.assign(Object.assign({}, t), { maxResults: 1 })).next().value;
|
|
5170
5167
|
}
|
|
5171
|
-
function*
|
|
5168
|
+
function* ff(e, t = {}) {
|
|
5172
5169
|
var i;
|
|
5173
|
-
const n =
|
|
5170
|
+
const n = rf(e), s = hd(n[0], t), r = (i = s.root) !== null && i !== void 0 ? i : ys(n[0]);
|
|
5174
5171
|
let o = 0;
|
|
5175
|
-
for (const a of
|
|
5172
|
+
for (const a of sf({
|
|
5176
5173
|
elements: n,
|
|
5177
5174
|
options: s,
|
|
5178
5175
|
root: r,
|
|
@@ -5180,27 +5177,27 @@ function* hf(e, t = {}) {
|
|
|
5180
5177
|
}))
|
|
5181
5178
|
if (yield a, o++, o >= s.maxResults) return;
|
|
5182
5179
|
if (n.length > 1) {
|
|
5183
|
-
const { maxResults: a } = t, u =
|
|
5180
|
+
const { maxResults: a } = t, u = df(t, ["maxResults"]);
|
|
5184
5181
|
if (yield n.map((c) => Qo(c, u)).join(", "), o++, o >= s.maxResults) return;
|
|
5185
5182
|
}
|
|
5186
5183
|
const l = t.root !== void 0;
|
|
5187
|
-
yield
|
|
5184
|
+
yield cf(n, s.useScope || l ? r : void 0);
|
|
5188
5185
|
}
|
|
5189
|
-
var
|
|
5186
|
+
var hf = [
|
|
5190
5187
|
"#vue-inspector-container",
|
|
5191
5188
|
".aipanel-widget",
|
|
5192
5189
|
".aipanel-element-highlight",
|
|
5193
5190
|
".aipanel-element-tooltip",
|
|
5194
5191
|
".aipanel-select-mode-hint",
|
|
5195
5192
|
".floating-bubble"
|
|
5196
|
-
],
|
|
5197
|
-
function
|
|
5193
|
+
], pf = "data-v-inspector-ignore", ji = "__v_inspector", gf = "data-v-inspector";
|
|
5194
|
+
function vf(e) {
|
|
5198
5195
|
return (e.innerText || e.textContent || "").trim();
|
|
5199
5196
|
}
|
|
5200
|
-
var
|
|
5201
|
-
function
|
|
5197
|
+
var mf = /^(?:el-|:r[0-9]+:|radix-|uid-|ts-|uuid-|id-[a-f0-9]{4,}|.*[0-9]{4,}.*|.*-[a-f0-9]{6,}$)/i, _f = /^(?:hover|active|focus|focus-visible|focus-within|disabled|enabled|checked|selected|open|closed|loading|error|success|warning|hidden|visible|show|hide|current|expanded|collapsed|pressed|dragging|droppable|sortable|placeholder|transition|enter|leave|appear|move)$/i, yf = /^(?:is-|has-|was-|are-|can-|should-|will-|did-|does-|on-|off-|in-|out-|at-|to-|from-)/i;
|
|
5198
|
+
function bf(e) {
|
|
5202
5199
|
if (!e) return !1;
|
|
5203
|
-
if (
|
|
5200
|
+
if (mf.test(e)) return !0;
|
|
5204
5201
|
const t = (e.match(/\d/g) || []).length;
|
|
5205
5202
|
if (t > (e.match(/[a-zA-Z]/g) || []).length && t >= 3) return !0;
|
|
5206
5203
|
const i = e.split("-");
|
|
@@ -5210,8 +5207,8 @@ function Sf(e) {
|
|
|
5210
5207
|
}
|
|
5211
5208
|
return !1;
|
|
5212
5209
|
}
|
|
5213
|
-
function
|
|
5214
|
-
return e ? !!(
|
|
5210
|
+
function Sf(e) {
|
|
5211
|
+
return e ? !!(_f.test(e) || yf.test(e) || e.includes("-active") || e.includes("-hover") || e.includes("-focus") || /^(?:router-link|nuxt-link)/.test(e)) : !1;
|
|
5215
5212
|
}
|
|
5216
5213
|
function nr(e) {
|
|
5217
5214
|
return Qo(e, {
|
|
@@ -5227,13 +5224,13 @@ function nr(e) {
|
|
|
5227
5224
|
maxCandidates: 100,
|
|
5228
5225
|
blacklist: [(t) => {
|
|
5229
5226
|
const i = t.match(/^#(.+)$/);
|
|
5230
|
-
if (i) return
|
|
5227
|
+
if (i) return bf(i[1]);
|
|
5231
5228
|
const n = t.match(/^\.([a-zA-Z_-][\w-]*)$/);
|
|
5232
|
-
return n ?
|
|
5229
|
+
return n ? Sf(n[1]) : !1;
|
|
5233
5230
|
}]
|
|
5234
5231
|
});
|
|
5235
5232
|
}
|
|
5236
|
-
function
|
|
5233
|
+
function Ef(e) {
|
|
5237
5234
|
const t = e.__vueParentComponent;
|
|
5238
5235
|
if (t) {
|
|
5239
5236
|
let n = t;
|
|
@@ -5263,11 +5260,11 @@ function wf(e) {
|
|
|
5263
5260
|
return null;
|
|
5264
5261
|
}
|
|
5265
5262
|
function el(e) {
|
|
5266
|
-
if (e.hasAttribute(
|
|
5267
|
-
for (const t of
|
|
5263
|
+
if (e.hasAttribute(pf)) return !0;
|
|
5264
|
+
for (const t of hf) if (e.closest(t)) return !0;
|
|
5268
5265
|
return !1;
|
|
5269
5266
|
}
|
|
5270
|
-
function
|
|
5267
|
+
function wf(e) {
|
|
5271
5268
|
const t = e.__vnode?.props?.[ji];
|
|
5272
5269
|
if (t) return t;
|
|
5273
5270
|
const i = e.__vnode?.ctx?.vnode;
|
|
@@ -5283,16 +5280,16 @@ function Tf(e) {
|
|
|
5283
5280
|
}
|
|
5284
5281
|
n = n.parent;
|
|
5285
5282
|
}
|
|
5286
|
-
return e.getAttribute(
|
|
5283
|
+
return e.getAttribute(gf) ?? void 0;
|
|
5287
5284
|
}
|
|
5288
|
-
function
|
|
5285
|
+
function Tf(e) {
|
|
5289
5286
|
let t = e;
|
|
5290
5287
|
for (; t; ) {
|
|
5291
5288
|
if (el(t)) {
|
|
5292
5289
|
t = t.parentElement;
|
|
5293
5290
|
continue;
|
|
5294
5291
|
}
|
|
5295
|
-
const i =
|
|
5292
|
+
const i = wf(t);
|
|
5296
5293
|
if (i) {
|
|
5297
5294
|
const n = i.match(/(.+):([\d]+):([\d]+)$/);
|
|
5298
5295
|
if (n) return {
|
|
@@ -5305,7 +5302,7 @@ function Cf(e) {
|
|
|
5305
5302
|
}
|
|
5306
5303
|
return null;
|
|
5307
5304
|
}
|
|
5308
|
-
function
|
|
5305
|
+
function Cf(e, t) {
|
|
5309
5306
|
if (!e?.file && !t?.file) return {
|
|
5310
5307
|
file: null,
|
|
5311
5308
|
line: null,
|
|
@@ -5321,11 +5318,11 @@ function ir(e) {
|
|
|
5321
5318
|
}
|
|
5322
5319
|
function sr(e, t) {
|
|
5323
5320
|
let i = null;
|
|
5324
|
-
t && (i =
|
|
5325
|
-
const n = t ?
|
|
5326
|
-
return
|
|
5321
|
+
t && (i = Tf(t));
|
|
5322
|
+
const n = t ? Ef(t) : null;
|
|
5323
|
+
return Cf(i, n);
|
|
5327
5324
|
}
|
|
5328
|
-
function
|
|
5325
|
+
function xf(e) {
|
|
5329
5326
|
const t = /* @__PURE__ */ R(!1), i = /* @__PURE__ */ R({
|
|
5330
5327
|
top: "0px",
|
|
5331
5328
|
left: "0px",
|
|
@@ -5437,7 +5434,7 @@ function If(e) {
|
|
|
5437
5434
|
b.preventDefault(), b.stopPropagation();
|
|
5438
5435
|
const D = ir(b), A = sr(b, D);
|
|
5439
5436
|
if (D) {
|
|
5440
|
-
const k =
|
|
5437
|
+
const k = vf(D), U = nr(D), N = {
|
|
5441
5438
|
filePath: A.file,
|
|
5442
5439
|
line: A.line,
|
|
5443
5440
|
column: A.column,
|
|
@@ -5472,15 +5469,15 @@ function If(e) {
|
|
|
5472
5469
|
};
|
|
5473
5470
|
}
|
|
5474
5471
|
var tl = "aipanel-widget-state";
|
|
5475
|
-
function
|
|
5472
|
+
function If() {
|
|
5476
5473
|
return Co("local", tl);
|
|
5477
5474
|
}
|
|
5478
|
-
function
|
|
5475
|
+
function Mf(e) {
|
|
5479
5476
|
xo("local", tl, e);
|
|
5480
5477
|
}
|
|
5481
|
-
function
|
|
5478
|
+
function Af(e) {
|
|
5482
5479
|
const t = () => {
|
|
5483
|
-
const r =
|
|
5480
|
+
const r = If();
|
|
5484
5481
|
return e.onRestore && e.onRestore(r || {}), r;
|
|
5485
5482
|
}, i = () => ({
|
|
5486
5483
|
open: e.open.value,
|
|
@@ -5494,7 +5491,7 @@ function Pf(e) {
|
|
|
5494
5491
|
displayMode: e.displayMode?.value,
|
|
5495
5492
|
splitPosition: e.splitPosition?.value
|
|
5496
5493
|
}), n = () => {
|
|
5497
|
-
|
|
5494
|
+
Mf(i());
|
|
5498
5495
|
}, s = [
|
|
5499
5496
|
e.open,
|
|
5500
5497
|
e.minimized,
|
|
@@ -5513,8 +5510,8 @@ function Pf(e) {
|
|
|
5513
5510
|
persistState: n
|
|
5514
5511
|
};
|
|
5515
5512
|
}
|
|
5516
|
-
var
|
|
5517
|
-
function
|
|
5513
|
+
var Pf = 1440;
|
|
5514
|
+
function Of(e) {
|
|
5518
5515
|
const t = /* @__PURE__ */ R(typeof window < "u" ? window.innerWidth : 0), i = /* @__PURE__ */ R(e.splitPosition?.value ?? "right"), n = q(() => e.displayMode.value === "extension"), s = q(() => n.value || e.displayMode.value === "extension-selector"), r = q(() => {
|
|
5519
5516
|
const v = e.splitMode.value || {}, g = n.value;
|
|
5520
5517
|
return {
|
|
@@ -5526,7 +5523,7 @@ function Lf(e) {
|
|
|
5526
5523
|
defaultOpen: g ? !0 : v.defaultOpen ?? !0,
|
|
5527
5524
|
position: v.position ?? i.value
|
|
5528
5525
|
};
|
|
5529
|
-
}), o = /* @__PURE__ */ R(r.value.width), l = q(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >=
|
|
5526
|
+
}), o = /* @__PURE__ */ R(r.value.width), l = q(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= Pf ? "split" : "bubble"), a = q(() => l.value === "split"), u = q(() => r.value.position), c = (v) => {
|
|
5530
5527
|
o.value = v, e.onWidthChange?.(v);
|
|
5531
5528
|
}, f = () => {
|
|
5532
5529
|
const v = !e.open.value;
|
|
@@ -5771,7 +5768,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5771
5768
|
}, b = /* @__PURE__ */ R(null), I = /* @__PURE__ */ R(null), D = (E, Ee) => {
|
|
5772
5769
|
b.value?.sendMessageToIframe(E, Ee);
|
|
5773
5770
|
}, A = /* @__PURE__ */ R(n.sessionListCollapsed), k = /* @__PURE__ */ R(n.displayMode), U = /* @__PURE__ */ R(n.splitMode?.position ?? "right"), N = /* @__PURE__ */ R(!1), L = /* @__PURE__ */ R(!0), Y = /* @__PURE__ */ R(!1), ae = /* @__PURE__ */ R(!0), oe = /* @__PURE__ */ R(!1), J = /* @__PURE__ */ R(!1), B = /* @__PURE__ */ R(n.splitPanelWidth), G = () => {
|
|
5774
|
-
!oe.value || !J.value || (D(
|
|
5771
|
+
!oe.value || !J.value || (D(se.PROMPT_DOCK_VISIBILITY, { visible: L.value }), D(se.MINIMIZE_STATE, { minimized: N.value }), D(se.SIDEBAR_MODE, { mode: n.providerSidebar ? "provider" : "host" }), n.providerSidebar && n.sidebarCollapseControl === "host" && D(se.SIDEBAR_COLLAPSE, { collapsed: A.value }), n.reviewPanelEnabled && D(se.REVIEW_PANEL_TOGGLE, { visible: Y.value }));
|
|
5775
5772
|
}, Q = () => {
|
|
5776
5773
|
s("frame-loaded"), oe.value = !0;
|
|
5777
5774
|
};
|
|
@@ -5792,7 +5789,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5792
5789
|
"auto"
|
|
5793
5790
|
], Ee = (E.indexOf(k.value) + 1) % E.length;
|
|
5794
5791
|
k.value = E[Ee];
|
|
5795
|
-
}, { buttonActive: Ae, containerClasses: Be, iframeSource: He, sessionListTitle: Ge, resolvedTheme: je, handleClose: $e, handleEmptyAction: ct, handleToggle: dt, handleToggleSessionList: ft, handleToggleTheme: et } =
|
|
5792
|
+
}, { buttonActive: Ae, containerClasses: Be, iframeSource: He, sessionListTitle: Ge, resolvedTheme: je, handleClose: $e, handleEmptyAction: ct, handleToggle: dt, handleToggleSessionList: ft, handleToggleTheme: et } = od({
|
|
5796
5793
|
theme: /* @__PURE__ */ ee(n, "theme"),
|
|
5797
5794
|
open: /* @__PURE__ */ ee(n, "open"),
|
|
5798
5795
|
selectMode: /* @__PURE__ */ ee(n, "selectMode"),
|
|
@@ -5808,7 +5805,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5808
5805
|
s("update:open", !1), s("close");
|
|
5809
5806
|
},
|
|
5810
5807
|
onToggleSessionList: (E) => {
|
|
5811
|
-
A.value = E, s("update:sessionListCollapsed", E), s("toggle-session-list", E), n.providerSidebar && n.sidebarCollapseControl === "host" && D(
|
|
5808
|
+
A.value = E, s("update:sessionListCollapsed", E), s("toggle-session-list", E), n.providerSidebar && n.sidebarCollapseControl === "host" && D(se.SIDEBAR_COLLAPSE, { collapsed: E });
|
|
5812
5809
|
},
|
|
5813
5810
|
onEmptyAction: () => {
|
|
5814
5811
|
s("empty-action");
|
|
@@ -5816,7 +5813,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5816
5813
|
onToggleTheme: (E) => {
|
|
5817
5814
|
s("update:theme", E), s("toggle-theme", E);
|
|
5818
5815
|
}
|
|
5819
|
-
}), { sessionItems: ke, handleCreateSession: be, handleDeleteSession: Pe, handleSelectSession: Oe } =
|
|
5816
|
+
}), { sessionItems: ke, handleCreateSession: be, handleDeleteSession: Pe, handleSelectSession: Oe } = rd({
|
|
5820
5817
|
sessions: /* @__PURE__ */ ee(n, "sessions"),
|
|
5821
5818
|
currentSessionId: /* @__PURE__ */ ee(n, "currentSessionId"),
|
|
5822
5819
|
onCreateSession: () => s("create-session"),
|
|
@@ -5825,7 +5822,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5825
5822
|
},
|
|
5826
5823
|
onDeleteSession: (E) => s("delete-session", E),
|
|
5827
5824
|
showConfirmDialog: w
|
|
5828
|
-
}), { bubbleVisible: lt, hasSelectedElements: Ye, selectedElementItems: d, handleClearSelectedNodes: h, handleClickSelectedNode: m, handleRemoveSelectedNode: x, handleToggleSelectMode: T } =
|
|
5825
|
+
}), { bubbleVisible: lt, hasSelectedElements: Ye, selectedElementItems: d, handleClearSelectedNodes: h, handleClickSelectedNode: m, handleRemoveSelectedNode: x, handleToggleSelectMode: T } = nd({
|
|
5829
5826
|
selectMode: /* @__PURE__ */ ee(n, "selectMode"),
|
|
5830
5827
|
selectedElements: /* @__PURE__ */ ee(n, "selectedElements"),
|
|
5831
5828
|
onToggleSelectMode: (E) => {
|
|
@@ -5840,7 +5837,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5840
5837
|
s("clear-selected-nodes"), s("update:selectedElements", []);
|
|
5841
5838
|
},
|
|
5842
5839
|
showConfirmDialog: w
|
|
5843
|
-
}), { highlightVisible: C, highlightStyle: F, tooltipVisible: P, tooltipStyle: O, tooltipContent: S } =
|
|
5840
|
+
}), { highlightVisible: C, highlightStyle: F, tooltipVisible: P, tooltipStyle: O, tooltipContent: S } = xf({
|
|
5844
5841
|
selectMode: /* @__PURE__ */ ee(n, "selectMode"),
|
|
5845
5842
|
onAddSelectedNode: (E) => {
|
|
5846
5843
|
s("click-selected-node", E);
|
|
@@ -5848,7 +5845,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5848
5845
|
onExitSelectMode: () => {
|
|
5849
5846
|
s("update:selectMode", !1), s("toggle-select-mode", !1);
|
|
5850
5847
|
}
|
|
5851
|
-
}), V = /* @__PURE__ */ R(void 0), { effectiveMode: $, isSplitMode: H, isExtensionMode: K, panelWidth: Z, splitConfig: le, splitPosition:
|
|
5848
|
+
}), V = /* @__PURE__ */ R(void 0), { effectiveMode: $, isSplitMode: H, isExtensionMode: K, panelWidth: Z, splitConfig: le, splitPosition: ne, handleResize: he, handleToggle: me, handleTogglePosition: Ne } = Of({
|
|
5852
5849
|
displayMode: k,
|
|
5853
5850
|
splitMode: /* @__PURE__ */ ee(n, "splitMode"),
|
|
5854
5851
|
open: /* @__PURE__ */ ee(n, "open"),
|
|
@@ -5863,7 +5860,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5863
5860
|
U.value = E;
|
|
5864
5861
|
}
|
|
5865
5862
|
});
|
|
5866
|
-
|
|
5863
|
+
Af({
|
|
5867
5864
|
open: /* @__PURE__ */ ee(n, "open"),
|
|
5868
5865
|
minimized: N,
|
|
5869
5866
|
promptDockVisible: L,
|
|
@@ -5890,17 +5887,17 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
5890
5887
|
}
|
|
5891
5888
|
});
|
|
5892
5889
|
const ue = () => {
|
|
5893
|
-
N.value = !N.value, L.value = !N.value, D(
|
|
5890
|
+
N.value = !N.value, L.value = !N.value, D(se.PROMPT_DOCK_VISIBILITY, { visible: L.value }), D(se.MINIMIZE_STATE, { minimized: N.value });
|
|
5894
5891
|
}, ht = () => {
|
|
5895
|
-
L.value = !L.value, D(
|
|
5892
|
+
L.value = !L.value, D(se.PROMPT_DOCK_VISIBILITY, { visible: L.value });
|
|
5896
5893
|
}, pt = () => {
|
|
5897
|
-
Y.value = !Y.value, D(
|
|
5894
|
+
Y.value = !Y.value, D(se.REVIEW_PANEL_TOGGLE, { visible: Y.value });
|
|
5898
5895
|
}, Ie = () => {
|
|
5899
5896
|
window.location.reload();
|
|
5900
5897
|
}, Se = /* @__PURE__ */ R(typeof window < "u" ? window.innerWidth : 0), Xe = /* @__PURE__ */ R(typeof window < "u" ? window.innerHeight : 0), at = () => {
|
|
5901
5898
|
typeof window < "u" && (Se.value = window.innerWidth, Xe.value = window.innerHeight);
|
|
5902
5899
|
}, mn = (E) => {
|
|
5903
|
-
if (E.data?.type ===
|
|
5900
|
+
if (E.data?.type === se.READY && (J.value = !0, G()), E.data?.type === se.SIDEBAR_STATE && n.providerSidebar && n.sidebarCollapseControl === "host") {
|
|
5904
5901
|
const Ee = E.data.collapsed === !0;
|
|
5905
5902
|
Ee !== A.value && (A.value = Ee, s("update:sessionListCollapsed", Ee), s("toggle-session-list", Ee));
|
|
5906
5903
|
}
|
|
@@ -6000,7 +5997,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
6000
5997
|
bubbleOffset: V,
|
|
6001
5998
|
mode: $,
|
|
6002
5999
|
displayMode: k,
|
|
6003
|
-
splitPosition:
|
|
6000
|
+
splitPosition: ne,
|
|
6004
6001
|
sessionStates: q(() => n.sessionStates ?? {}),
|
|
6005
6002
|
iframeSource: He,
|
|
6006
6003
|
buttonActive: Ae,
|
|
@@ -6108,7 +6105,7 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
6108
6105
|
isExtensionMode: K,
|
|
6109
6106
|
panelWidth: Z,
|
|
6110
6107
|
splitConfig: le,
|
|
6111
|
-
splitPosition:
|
|
6108
|
+
splitPosition: ne,
|
|
6112
6109
|
handleResize: he,
|
|
6113
6110
|
handleSplitToggle: me,
|
|
6114
6111
|
handleTogglePosition: Ne,
|
|
@@ -6136,24 +6133,24 @@ var nl = /* @__PURE__ */ Ze({
|
|
|
6136
6133
|
},
|
|
6137
6134
|
handleDragStart: il,
|
|
6138
6135
|
handleDragEnd: sl,
|
|
6139
|
-
ChatPanel:
|
|
6140
|
-
SelectHint:
|
|
6141
|
-
Trigger:
|
|
6136
|
+
ChatPanel: Wc,
|
|
6137
|
+
SelectHint: jc,
|
|
6138
|
+
Trigger: Zc
|
|
6142
6139
|
};
|
|
6143
6140
|
return Object.defineProperty(bs, "__isScriptSetup", {
|
|
6144
6141
|
enumerable: !1,
|
|
6145
6142
|
value: !0
|
|
6146
6143
|
}), bs;
|
|
6147
6144
|
}
|
|
6148
|
-
}),
|
|
6145
|
+
}), Lf = { class: "aipanel-tooltip-tag" }, Rf = { class: "aipanel-tooltip-file" }, kf = {
|
|
6149
6146
|
key: 1,
|
|
6150
6147
|
class: "aipanel-dialog-overlay"
|
|
6151
|
-
},
|
|
6148
|
+
}, Nf = {
|
|
6152
6149
|
class: "aipanel-dialog",
|
|
6153
6150
|
role: "alertdialog",
|
|
6154
6151
|
"aria-modal": "true"
|
|
6155
|
-
},
|
|
6156
|
-
function
|
|
6152
|
+
}, Df = { class: "aipanel-dialog-content" }, Ff = { class: "aipanel-dialog-message" };
|
|
6153
|
+
function Bf(e, t, i, n, s, r) {
|
|
6157
6154
|
return W(), j("div", { class: xe([...n.containerClasses, { "extension-mode": n.isExtensionMode }]) }, [
|
|
6158
6155
|
i.displayMode !== "extension-selector" ? (W(), j(ye, { key: 0 }, [
|
|
6159
6156
|
!n.isSplitMode && !n.props.hideBubble ? (W(), bt(n.Trigger, {
|
|
@@ -6165,7 +6162,7 @@ function $f(e, t, i, n, s, r) {
|
|
|
6165
6162
|
name: "default",
|
|
6166
6163
|
fn: we(() => [te(e.$slots, "button-icon")]),
|
|
6167
6164
|
key: "0"
|
|
6168
|
-
} : void 0]), 1536)) :
|
|
6165
|
+
} : void 0]), 1536)) : re("v-if", !0),
|
|
6169
6166
|
Re(n.ChatPanel, {
|
|
6170
6167
|
ref: "frameRef",
|
|
6171
6168
|
mode: n.effectiveMode,
|
|
@@ -6248,7 +6245,7 @@ function $f(e, t, i, n, s, r) {
|
|
|
6248
6245
|
"onToggle"
|
|
6249
6246
|
]),
|
|
6250
6247
|
Re(n.SelectHint)
|
|
6251
|
-
], 64)) :
|
|
6248
|
+
], 64)) : re("v-if", !0),
|
|
6252
6249
|
Is(y("div", {
|
|
6253
6250
|
class: "aipanel-element-highlight",
|
|
6254
6251
|
style: kt(n.highlightStyle)
|
|
@@ -6256,14 +6253,14 @@ function $f(e, t, i, n, s, r) {
|
|
|
6256
6253
|
Is(y("div", {
|
|
6257
6254
|
class: "aipanel-element-tooltip",
|
|
6258
6255
|
style: kt(n.tooltipStyle)
|
|
6259
|
-
}, [y("div",
|
|
6260
|
-
n.dialogVisible ? (W(), j("div",
|
|
6256
|
+
}, [y("div", Lf, Fe(n.tooltipContent.description), 1), y("div", Rf, Fe(n.tooltipContent.fileInfo), 1)], 4), [[Hs, n.tooltipVisible]]),
|
|
6257
|
+
n.dialogVisible ? (W(), j("div", kf, [y("div", Nf, [y("div", Df, [y("div", Ff, Fe(n.dialogMessage), 1)]), y("div", { class: "aipanel-dialog-actions" }, [y("button", {
|
|
6261
6258
|
class: "aipanel-dialog-btn cancel",
|
|
6262
6259
|
onClick: n.handleDialogCancel
|
|
6263
6260
|
}, " 取消 "), y("button", {
|
|
6264
6261
|
class: "aipanel-dialog-btn confirm",
|
|
6265
6262
|
onClick: n.handleDialogConfirm
|
|
6266
|
-
}, " 确认 ")])])])) :
|
|
6263
|
+
}, " 确认 ")])])])) : re("v-if", !0),
|
|
6267
6264
|
(W(), bt(qr, {
|
|
6268
6265
|
to: "body",
|
|
6269
6266
|
disabled: n.notificationMode === "widget"
|
|
@@ -6271,12 +6268,12 @@ function $f(e, t, i, n, s, r) {
|
|
|
6271
6268
|
key: 0,
|
|
6272
6269
|
class: xe(n.notificationMode === "page" ? "aipanel-page-notification" : "aipanel-notification"),
|
|
6273
6270
|
role: "alert"
|
|
6274
|
-
}, Fe(n.notificationMessage), 3)) :
|
|
6271
|
+
}, Fe(n.notificationMessage), 3)) : re("v-if", !0)], 8, ["disabled"]))
|
|
6275
6272
|
], 2);
|
|
6276
6273
|
}
|
|
6277
|
-
nl.render =
|
|
6278
|
-
var
|
|
6279
|
-
function
|
|
6274
|
+
nl.render = Bf;
|
|
6275
|
+
var $f = nl;
|
|
6276
|
+
function Wf(e) {
|
|
6280
6277
|
if (!e) return {
|
|
6281
6278
|
ctrl: !0,
|
|
6282
6279
|
shift: !1,
|
|
@@ -6291,13 +6288,13 @@ function Vf(e) {
|
|
|
6291
6288
|
key: i || "k"
|
|
6292
6289
|
};
|
|
6293
6290
|
}
|
|
6294
|
-
function
|
|
6291
|
+
function Vf(e, t) {
|
|
6295
6292
|
const i = t.ctrl ? e.ctrlKey || e.metaKey : !(e.ctrlKey || e.metaKey), n = t.shift ? e.shiftKey : !e.shiftKey, s = t.alt ? e.altKey : !e.altKey, r = e.key.toLowerCase() === t.key.toLowerCase();
|
|
6296
6293
|
return i && n && s && r;
|
|
6297
6294
|
}
|
|
6298
6295
|
function rr(e, t) {
|
|
6299
|
-
const i =
|
|
6300
|
-
|
|
6296
|
+
const i = Wf(e), n = (s) => {
|
|
6297
|
+
Vf(s, i) && t(s);
|
|
6301
6298
|
};
|
|
6302
6299
|
return Qe(() => {
|
|
6303
6300
|
document.addEventListener("keydown", n);
|
|
@@ -6305,9 +6302,9 @@ function rr(e, t) {
|
|
|
6305
6302
|
document.removeEventListener("keydown", n);
|
|
6306
6303
|
}), { hotkeyConfig: i };
|
|
6307
6304
|
}
|
|
6308
|
-
var rn = zt("SSE"),
|
|
6309
|
-
function
|
|
6310
|
-
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s =
|
|
6305
|
+
var rn = zt("SSE"), Hf = 10, jf = 1e3;
|
|
6306
|
+
function zf(e) {
|
|
6307
|
+
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = Hf, retryDelay: r = jf, onConnected: o, onDisconnected: l, onError: a, onMessage: u } = e, c = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R("idle"), p = /* @__PURE__ */ R(0);
|
|
6311
6308
|
function _(I) {
|
|
6312
6309
|
try {
|
|
6313
6310
|
const D = JSON.parse(I.data);
|
|
@@ -6381,8 +6378,8 @@ function Uf(e) {
|
|
|
6381
6378
|
};
|
|
6382
6379
|
}
|
|
6383
6380
|
var or = zt("ServerSSE");
|
|
6384
|
-
function
|
|
6385
|
-
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: o, onDisconnected: l } = e, a = t ? `${t}${Js}` : Js, { status: u, isConnected: c, connect: f, disconnect: p } =
|
|
6381
|
+
function Uf(e = {}) {
|
|
6382
|
+
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: o, onDisconnected: l } = e, a = t ? `${t}${Js}` : Js, { status: u, isConnected: c, connect: f, disconnect: p } = zf({
|
|
6386
6383
|
endpoint: a,
|
|
6387
6384
|
autoConnect: !1,
|
|
6388
6385
|
onDisconnected: () => {
|
|
@@ -6415,8 +6412,8 @@ function qf(e = {}) {
|
|
|
6415
6412
|
disconnect: p
|
|
6416
6413
|
};
|
|
6417
6414
|
}
|
|
6418
|
-
var
|
|
6419
|
-
function
|
|
6415
|
+
var qf = /* @__PURE__ */ new Set(["running", "streaming"]);
|
|
6416
|
+
function Kf(e) {
|
|
6420
6417
|
const { currentSessionId: t, onSessionUpdate: i } = e, n = /* @__PURE__ */ R({}), s = /* @__PURE__ */ new Map(), r = () => ({
|
|
6421
6418
|
thinking: !1,
|
|
6422
6419
|
statusType: "idle",
|
|
@@ -6449,7 +6446,7 @@ function Gf(e) {
|
|
|
6449
6446
|
break;
|
|
6450
6447
|
}
|
|
6451
6448
|
case "session.status": {
|
|
6452
|
-
const b = g.sessionId, I = g.status, D =
|
|
6449
|
+
const b = g.sessionId, I = g.status, D = qf.has(I), A = s.get(b) === !0;
|
|
6453
6450
|
s.set(b, D);
|
|
6454
6451
|
const k = {
|
|
6455
6452
|
...o(b),
|
|
@@ -6515,7 +6512,7 @@ function Gf(e) {
|
|
|
6515
6512
|
markSessionActive: a
|
|
6516
6513
|
};
|
|
6517
6514
|
}
|
|
6518
|
-
var
|
|
6515
|
+
var Gf = zt("AIPanel");
|
|
6519
6516
|
function lr(e) {
|
|
6520
6517
|
return {
|
|
6521
6518
|
id: e.id,
|
|
@@ -6524,7 +6521,7 @@ function lr(e) {
|
|
|
6524
6521
|
url: e.url
|
|
6525
6522
|
};
|
|
6526
6523
|
}
|
|
6527
|
-
function
|
|
6524
|
+
function Yf(e) {
|
|
6528
6525
|
const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (k) => i ? `${i}${k}` : k, r = /* @__PURE__ */ R([]), o = /* @__PURE__ */ R(void 0), l = /* @__PURE__ */ R(null), a = /* @__PURE__ */ R(!0), u = /* @__PURE__ */ R(!0), c = /* @__PURE__ */ R(!1), f = /* @__PURE__ */ R(!1), p = /* @__PURE__ */ R("host"), _ = () => u.value, w = q(() => _() ? l.value && r.value.find((k) => k.id === l.value)?.url || "" : r.value[0]?.url || ""), v = (k) => {
|
|
6529
6526
|
a.value = !0, _() || n?.(k);
|
|
6530
6527
|
}, g = async () => {
|
|
@@ -6533,7 +6530,7 @@ function Xf(e) {
|
|
|
6533
6530
|
const k = l.value, U = k ? `?current=${encodeURIComponent(k)}` : "", N = await (await fetch(s(Wi + U))).json();
|
|
6534
6531
|
u.value = N.capabilities?.deepLink !== !1, c.value = N.capabilities?.reviewPanel === !0, f.value = N.capabilities?.sidebar?.takeover === !0, p.value = N.capabilities?.sidebar?.collapseControl ?? "host", r.value = N.sessions.map(lr), r.value.length || I(), l.value = r.value[0]?.id || null, l.value && v(l.value);
|
|
6535
6532
|
} catch (k) {
|
|
6536
|
-
|
|
6533
|
+
Gf.error("Failed to load sessions:", { error: k });
|
|
6537
6534
|
} finally {
|
|
6538
6535
|
o.value = !1;
|
|
6539
6536
|
}
|
|
@@ -6585,9 +6582,9 @@ function Xf(e) {
|
|
|
6585
6582
|
updateSessionInfo: b
|
|
6586
6583
|
};
|
|
6587
6584
|
}
|
|
6588
|
-
function
|
|
6585
|
+
function Xf(e, t) {
|
|
6589
6586
|
const i = /* @__PURE__ */ R(e), n = q(() => Mo(i.value)), s = () => {
|
|
6590
|
-
t.value?.sendMessageToIframe(
|
|
6587
|
+
t.value?.sendMessageToIframe(se.SET_THEME, { theme: n.value });
|
|
6591
6588
|
};
|
|
6592
6589
|
let r = null;
|
|
6593
6590
|
const o = () => {
|
|
@@ -6605,7 +6602,7 @@ function Jf(e, t) {
|
|
|
6605
6602
|
sendThemeToIframe: s
|
|
6606
6603
|
};
|
|
6607
6604
|
}
|
|
6608
|
-
function
|
|
6605
|
+
function Jf(e = "") {
|
|
6609
6606
|
const t = e ? `${Qs}_${e}` : Qs, i = /* @__PURE__ */ R([]), n = Co("session", t);
|
|
6610
6607
|
return n && (i.value = n), Me(i, (l) => {
|
|
6611
6608
|
xo("session", t, l);
|
|
@@ -6620,7 +6617,7 @@ function Zf(e = "") {
|
|
|
6620
6617
|
}
|
|
6621
6618
|
};
|
|
6622
6619
|
}
|
|
6623
|
-
function
|
|
6620
|
+
function Zf() {
|
|
6624
6621
|
const e = /* @__PURE__ */ R(""), t = /* @__PURE__ */ R("idle"), i = /* @__PURE__ */ R(!1), n = /* @__PURE__ */ R(void 0), s = /* @__PURE__ */ R(void 0), r = zt("useServiceStatus"), o = q(() => e.value && Au[e.value] || "加载中...");
|
|
6625
6622
|
return {
|
|
6626
6623
|
currentTask: e,
|
|
@@ -6638,7 +6635,7 @@ function Qf() {
|
|
|
6638
6635
|
}
|
|
6639
6636
|
};
|
|
6640
6637
|
}
|
|
6641
|
-
function
|
|
6638
|
+
function Qf(e, t, i = "") {
|
|
6642
6639
|
let n = "", s = "";
|
|
6643
6640
|
const r = (p) => i ? `${i}${p}` : p, o = (p, _) => {
|
|
6644
6641
|
fetch(r(So), {
|
|
@@ -6675,7 +6672,7 @@ function eh(e, t, i = "") {
|
|
|
6675
6672
|
history.pushState = c, history.replaceState = f, window.removeEventListener("popstate", a), window.removeEventListener("hashchange", a), u && u.disconnect();
|
|
6676
6673
|
}), { updateContext: l };
|
|
6677
6674
|
}
|
|
6678
|
-
function
|
|
6675
|
+
function eh(e, t, i = "", n = "") {
|
|
6679
6676
|
let s = "", r = "", o, l;
|
|
6680
6677
|
const a = /* @__PURE__ */ R(""), u = /* @__PURE__ */ R(""), c = /* @__PURE__ */ R(""), f = zt("ExtCtx"), p = (g) => i ? `${i}${g}` : g, _ = (g, b) => {
|
|
6681
6678
|
f.debug(`POST 上下文: tabId=${o} url=${g} title=${b}`), fetch(p(So), {
|
|
@@ -6725,11 +6722,11 @@ function th(e, t, i = "", n = "") {
|
|
|
6725
6722
|
chrome.runtime.onMessage.removeListener(v);
|
|
6726
6723
|
}), { updateContext: w };
|
|
6727
6724
|
}
|
|
6728
|
-
function
|
|
6725
|
+
function th(e) {
|
|
6729
6726
|
const { selectMode: t, serviceInstanceId: i, onElementSelected: n, onThemeChange: s } = e, r = (u) => {
|
|
6730
6727
|
if (!(u.serviceInstanceId && u.serviceInstanceId !== i))
|
|
6731
6728
|
switch (u.type) {
|
|
6732
|
-
case
|
|
6729
|
+
case se.ELEMENT_SELECTED:
|
|
6733
6730
|
n({
|
|
6734
6731
|
filePath: u.filePath ?? null,
|
|
6735
6732
|
line: u.line ?? null,
|
|
@@ -6738,13 +6735,13 @@ function nh(e) {
|
|
|
6738
6735
|
description: u.description
|
|
6739
6736
|
}, u.pageUrl);
|
|
6740
6737
|
break;
|
|
6741
|
-
case
|
|
6738
|
+
case se.SELECTION_CANCELLED:
|
|
6742
6739
|
t.value = !1;
|
|
6743
6740
|
break;
|
|
6744
|
-
case
|
|
6741
|
+
case se.SELECTOR_START:
|
|
6745
6742
|
t.value = !0;
|
|
6746
6743
|
break;
|
|
6747
|
-
case
|
|
6744
|
+
case se.SELECTOR_STOP:
|
|
6748
6745
|
t.value = !1;
|
|
6749
6746
|
break;
|
|
6750
6747
|
case Rt.THEME_CHANGE:
|
|
@@ -6781,10 +6778,10 @@ function nh(e) {
|
|
|
6781
6778
|
broadcastTheme: a
|
|
6782
6779
|
};
|
|
6783
6780
|
}
|
|
6784
|
-
function
|
|
6781
|
+
function nh(e) {
|
|
6785
6782
|
const { onSelectModeChange: t } = e, i = (r) => {
|
|
6786
6783
|
const o = r.data?.type;
|
|
6787
|
-
o ===
|
|
6784
|
+
o === se.SELECTOR_START ? t(!0) : o === se.SELECTOR_STOP && t(!1);
|
|
6788
6785
|
};
|
|
6789
6786
|
Qe(() => {
|
|
6790
6787
|
window.addEventListener("message", i);
|
|
@@ -6793,7 +6790,7 @@ function ih(e) {
|
|
|
6793
6790
|
});
|
|
6794
6791
|
function n(r) {
|
|
6795
6792
|
window.postMessage({
|
|
6796
|
-
type:
|
|
6793
|
+
type: se.ELEMENT_SELECTED,
|
|
6797
6794
|
filePath: r.filePath,
|
|
6798
6795
|
line: r.line,
|
|
6799
6796
|
column: r.column,
|
|
@@ -6802,26 +6799,26 @@ function ih(e) {
|
|
|
6802
6799
|
}, "*");
|
|
6803
6800
|
}
|
|
6804
6801
|
function s(r) {
|
|
6805
|
-
window.postMessage({ type: r ?
|
|
6802
|
+
window.postMessage({ type: r ? se.SELECTOR_START : se.SELECTOR_STOP }, "*");
|
|
6806
6803
|
}
|
|
6807
6804
|
return {
|
|
6808
6805
|
notifySelectionResult: n,
|
|
6809
6806
|
notifySelectModeChange: s
|
|
6810
6807
|
};
|
|
6811
6808
|
}
|
|
6812
|
-
var
|
|
6809
|
+
var ih = { class: "aipanel-custom-loading" }, sh = { class: "aipanel-loading-text" }, rh = /* @__PURE__ */ Ze({
|
|
6813
6810
|
__name: "LoadingContent",
|
|
6814
6811
|
props: { loadingText: {} },
|
|
6815
6812
|
setup(e) {
|
|
6816
|
-
return (t, i) => (W(), j("div",
|
|
6813
|
+
return (t, i) => (W(), j("div", ih, [i[0] || (i[0] = y("div", { class: "aipanel-loading-spinner" }, null, -1)), y("div", sh, Fe(e.loadingText), 1)]));
|
|
6817
6814
|
}
|
|
6818
|
-
}),
|
|
6815
|
+
}), oh = rh, lh = { class: "aipanel-chrome-warmup-failed" }, ah = { class: "aipanel-chrome-warmup-failed-text" }, uh = {
|
|
6819
6816
|
key: 0,
|
|
6820
6817
|
class: "aipanel-chrome-warmup-error-detail"
|
|
6821
|
-
},
|
|
6818
|
+
}, ch = { class: "aipanel-chrome-warmup-failed-text" }, dh = {
|
|
6822
6819
|
key: 0,
|
|
6823
6820
|
class: "aipanel-chrome-warmup-error-detail"
|
|
6824
|
-
},
|
|
6821
|
+
}, fh = { key: 1 }, hh = { class: "aipanel-chrome-warmup-failed-actions" }, ph = ["disabled"], gh = /* @__PURE__ */ Ze({
|
|
6825
6822
|
__name: "ChromeWarmupError",
|
|
6826
6823
|
props: {
|
|
6827
6824
|
retrying: { type: Boolean },
|
|
@@ -6833,7 +6830,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6833
6830
|
const i = t, n = () => {
|
|
6834
6831
|
i("retry");
|
|
6835
6832
|
};
|
|
6836
|
-
return (s, r) => (W(), j("div",
|
|
6833
|
+
return (s, r) => (W(), j("div", lh, [
|
|
6837
6834
|
r[4] || (r[4] = y("div", { class: "aipanel-chrome-warmup-failed-icon" }, [y("svg", {
|
|
6838
6835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6839
6836
|
fill: "none",
|
|
@@ -6847,7 +6844,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6847
6844
|
"stroke-linejoin": "round",
|
|
6848
6845
|
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"
|
|
6849
6846
|
})])], -1)),
|
|
6850
|
-
e.errorType === pe(Eo).CHROME_NOT_CONNECTED ? (W(), j(ye, { key: 0 }, [r[2] || (r[2] = y("div", { class: "aipanel-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div",
|
|
6847
|
+
e.errorType === pe(Eo).CHROME_NOT_CONNECTED ? (W(), j(ye, { key: 0 }, [r[2] || (r[2] = y("div", { class: "aipanel-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div", ah, [
|
|
6851
6848
|
r[0] || (r[0] = y("p", null, "请按以下步骤开启 Chrome 远程调试:", -1)),
|
|
6852
6849
|
r[1] || (r[1] = y("div", { class: "aipanel-chrome-warmup-steps" }, [
|
|
6853
6850
|
y("div", null, [uo(" 在 Chrome 地址栏输入 "), y("code", { class: "aipanel-chrome-warmup-code" }, "chrome://inspect/#remote-debugging")]),
|
|
@@ -6855,20 +6852,20 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6855
6852
|
y("div", null, "重新启动浏览器"),
|
|
6856
6853
|
y("div", null, "完成后点击下方按钮重试")
|
|
6857
6854
|
], -1)),
|
|
6858
|
-
e.errorMessage ? (W(), j("p",
|
|
6859
|
-
])], 64)) : (W(), j(ye, { key: 1 }, [r[3] || (r[3] = y("div", { class: "aipanel-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div",
|
|
6860
|
-
y("div",
|
|
6855
|
+
e.errorMessage ? (W(), j("p", uh, Fe(e.errorMessage), 1)) : re("", !0)
|
|
6856
|
+
])], 64)) : (W(), j(ye, { key: 1 }, [r[3] || (r[3] = y("div", { class: "aipanel-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div", ch, [e.errorMessage ? (W(), j("p", dh, Fe(e.errorMessage), 1)) : (W(), j("p", fh, "连接失败,请重试"))])], 64)),
|
|
6857
|
+
y("div", hh, [y("button", {
|
|
6861
6858
|
class: "aipanel-chrome-warmup-failed-btn primary",
|
|
6862
6859
|
disabled: e.retrying,
|
|
6863
6860
|
onClick: n
|
|
6864
|
-
}, Fe(e.retrying ? "连接中..." : "重试连接"), 9,
|
|
6861
|
+
}, Fe(e.retrying ? "连接中..." : "重试连接"), 9, ph)])
|
|
6865
6862
|
]));
|
|
6866
6863
|
}
|
|
6867
|
-
}),
|
|
6864
|
+
}), vh = (e, t) => {
|
|
6868
6865
|
const i = e.__vccOpts || e;
|
|
6869
6866
|
for (const [n, s] of t) i[n] = s;
|
|
6870
6867
|
return i;
|
|
6871
|
-
},
|
|
6868
|
+
}, mh = /* @__PURE__ */ vh(gh, [["__scopeId", "data-v-3b8b1e42"]]), _h = /* @__PURE__ */ Ze({
|
|
6872
6869
|
__name: "App",
|
|
6873
6870
|
props: { config: {} },
|
|
6874
6871
|
setup(e) {
|
|
@@ -6882,18 +6879,18 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6882
6879
|
..._e,
|
|
6883
6880
|
mode: U ? "widget" : _e?.mode
|
|
6884
6881
|
});
|
|
6885
|
-
}, { serviceStatus: J, currentTask: B, chromeMcpFailed: G, chromeMcpErrorType: Q, chromeMcpErrorMessage: z, loadingText: Ae, updateStatusFromTask: Be, setStarting: He } =
|
|
6882
|
+
}, { serviceStatus: J, currentTask: B, chromeMcpFailed: G, chromeMcpErrorType: Q, chromeMcpErrorMessage: z, loadingText: Ae, updateStatusFromTask: Be, setStarting: He } = Zf(), { selectedElements: Ge, addElement: je, removeElement: $e, clearElements: ct } = Jf(g), { theme: dt, sendThemeToIframe: ft } = Xf(A, o), { sessions: et, loadingSessionList: ke, currentSessionId: be, iframeSrc: Pe, iframeLoading: Oe, isDeepLink: lt, reviewPanelEnabled: Ye, providerSidebar: d, sidebarCollapseControl: h, loadSessions: m, createSession: x, deleteSession: T, selectSession: C, updateSessionInfo: F } = Yf({
|
|
6886
6883
|
showNotification: oe,
|
|
6887
6884
|
viteBaseUrl: L.value,
|
|
6888
6885
|
onFocusSession: (M) => {
|
|
6889
|
-
o.value?.sendMessageToIframe(
|
|
6886
|
+
o.value?.sendMessageToIframe(se.FOCUS_SESSION, { sessionId: M });
|
|
6890
6887
|
}
|
|
6891
|
-
}), { updateContext: P } = U ?
|
|
6888
|
+
}), { updateContext: P } = U ? eh(J, Ge, L.value, g) : Qf(J, Ge, L.value), O = Kf({
|
|
6892
6889
|
currentSessionId: be,
|
|
6893
6890
|
onSessionUpdate: (M) => {
|
|
6894
6891
|
F(M);
|
|
6895
6892
|
}
|
|
6896
|
-
}), S =
|
|
6893
|
+
}), S = Uf({
|
|
6897
6894
|
viteBaseUrl: L.value,
|
|
6898
6895
|
onStatusSync: (M) => {
|
|
6899
6896
|
if (D.debug(`SSE STATUS_SYNC: ${JSON.stringify(M)} currentStatus: ${J.value}`), $ && M.task && M.task !== "ready" && M.task !== "chrome_mcp_failed" && M.task !== "session_creation_failed" && M.task !== "provider_not_installed" && M.task !== "web_start_timeout" && M.task !== "proxy_start_failed") {
|
|
@@ -6925,7 +6922,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6925
6922
|
}).catch(() => {
|
|
6926
6923
|
}));
|
|
6927
6924
|
});
|
|
6928
|
-
const H = O.hasAnyThinking, K = O.sessionStates, Z = q(() => J.value === "starting"), le = q(() => J.value === "starting" || Oe.value),
|
|
6925
|
+
const H = O.hasAnyThinking, K = O.sessionStates, Z = q(() => J.value === "starting"), le = q(() => J.value === "starting" || Oe.value), ne = q(() => J.value === "starting" ? Ae.value : "加载会话..."), he = async () => {
|
|
6929
6926
|
l.value = !0;
|
|
6930
6927
|
try {
|
|
6931
6928
|
const M = await (await fetch(Y(wu), { method: "POST" })).json();
|
|
@@ -6963,16 +6960,16 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
6963
6960
|
M !== "idle" && _e === "idle" && S.connect(), M === "ready" && _e !== "ready" && (D.debug("服务就绪,加载会话列表"), m());
|
|
6964
6961
|
});
|
|
6965
6962
|
const ue = /* @__PURE__ */ R(null), ht = (M) => {
|
|
6966
|
-
if (M.data?.type ===
|
|
6963
|
+
if (M.data?.type === se.SESSION_READY) {
|
|
6967
6964
|
const _e = M.data.sessionId;
|
|
6968
6965
|
if (ft(), _e && _e === be.value) {
|
|
6969
6966
|
ue.value && (clearTimeout(ue.value), ue.value = null), Oe.value = !1;
|
|
6970
6967
|
return;
|
|
6971
6968
|
}
|
|
6972
|
-
Oe.value && be.value && o.value?.sendMessageToIframe(
|
|
6969
|
+
Oe.value && be.value && o.value?.sendMessageToIframe(se.FOCUS_SESSION, { sessionId: be.value });
|
|
6973
6970
|
return;
|
|
6974
6971
|
}
|
|
6975
|
-
M.data?.type ===
|
|
6972
|
+
M.data?.type === se.READY && lt() && (ue.value && (clearTimeout(ue.value), ue.value = null), Oe.value = !1, ft(), be.value && o.value?.sendMessageToIframe(se.FOCUS_SESSION, { sessionId: be.value })), M.data?.type === se.KEYDOWN && (M.data.key === "Escape" && n.value && at(!1), M.data.ctrlKey && M.data.key.toLowerCase() === "p" && Ne());
|
|
6976
6973
|
}, pt = () => {
|
|
6977
6974
|
n.value && ae.onSelectModeChange?.(!1);
|
|
6978
6975
|
};
|
|
@@ -7003,17 +7000,17 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7003
7000
|
id: _n,
|
|
7004
7001
|
previewPageUrl: U && _e ? _e : window.location.href
|
|
7005
7002
|
};
|
|
7006
|
-
je(Wt) && P(!0), o.value?.sendMessageToIframe(
|
|
7003
|
+
je(Wt) && P(!0), o.value?.sendMessageToIframe(se.INSERT_FILE_PART, { element: Wt }), oe("节点已添加到对话框", { mode: "page" });
|
|
7007
7004
|
}, Xe = () => {
|
|
7008
7005
|
ct(), P(!0), oe("已清除所有选中元素");
|
|
7009
7006
|
}, at = (M) => {
|
|
7010
7007
|
if (n.value === M) return;
|
|
7011
|
-
n.value = M, U && ae.onSelectModeChange?.(M), o.value?.sendMessageToIframe(
|
|
7008
|
+
n.value = M, U && ae.onSelectModeChange?.(M), o.value?.sendMessageToIframe(se.SELECT_MODE_CHANGE, { selectMode: M });
|
|
7012
7009
|
const _e = o.value?.isSplitMode;
|
|
7013
7010
|
M && !_e && i.value && (i.value = !1), !M && !i.value && (i.value = !0), N && ae.notifySelectModeChange?.(M);
|
|
7014
7011
|
};
|
|
7015
7012
|
if (U) {
|
|
7016
|
-
const M =
|
|
7013
|
+
const M = th({
|
|
7017
7014
|
selectMode: n,
|
|
7018
7015
|
serviceInstanceId: g,
|
|
7019
7016
|
onElementSelected: Se,
|
|
@@ -7024,7 +7021,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7024
7021
|
ae.onSelectModeChange = M.onSelectModeChange, ae.broadcastTheme = M.broadcastTheme;
|
|
7025
7022
|
}
|
|
7026
7023
|
if (N) {
|
|
7027
|
-
const M =
|
|
7024
|
+
const M = nh({ onSelectModeChange: at });
|
|
7028
7025
|
ae.notifySelectionResult = M.notifySelectionResult, ae.notifySelectModeChange = M.notifySelectModeChange;
|
|
7029
7026
|
}
|
|
7030
7027
|
const mn = (M) => {
|
|
@@ -7041,7 +7038,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7041
7038
|
Oe.value = !1, ue.value = null;
|
|
7042
7039
|
}, M);
|
|
7043
7040
|
};
|
|
7044
|
-
return (M, _e) => (W(), bt(pe(
|
|
7041
|
+
return (M, _e) => (W(), bt(pe($f), {
|
|
7045
7042
|
ref_key: "widgetRef",
|
|
7046
7043
|
ref: o,
|
|
7047
7044
|
theme: pe(dt),
|
|
@@ -7080,8 +7077,8 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7080
7077
|
onEmptyAction: pe(x),
|
|
7081
7078
|
onFrameLoaded: Kn
|
|
7082
7079
|
}, {
|
|
7083
|
-
loading: we(() => [Re(
|
|
7084
|
-
error: we(() => [pe(G) ? (W(), bt(
|
|
7080
|
+
loading: we(() => [Re(oh, { "loading-text": ne.value }, null, 8, ["loading-text"])]),
|
|
7081
|
+
error: we(() => [pe(G) ? (W(), bt(mh, {
|
|
7085
7082
|
key: 0,
|
|
7086
7083
|
retrying: l.value,
|
|
7087
7084
|
"error-type": pe(Q),
|
|
@@ -7091,7 +7088,7 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7091
7088
|
"retrying",
|
|
7092
7089
|
"error-type",
|
|
7093
7090
|
"error-message"
|
|
7094
|
-
])) :
|
|
7091
|
+
])) : re("", !0)]),
|
|
7095
7092
|
_: 1
|
|
7096
7093
|
}, 8, [
|
|
7097
7094
|
"theme",
|
|
@@ -7120,14 +7117,14 @@ var sh = { class: "aipanel-custom-loading" }, rh = { class: "aipanel-loading-tex
|
|
|
7120
7117
|
"onEmptyAction"
|
|
7121
7118
|
]));
|
|
7122
7119
|
}
|
|
7123
|
-
}),
|
|
7120
|
+
}), yh = _h, bh = zt("AIPanel"), wt = {}, ar = document.querySelector(`script[${bo}]`);
|
|
7124
7121
|
if (ar) {
|
|
7125
7122
|
const e = ar.getAttribute(bo);
|
|
7126
7123
|
if (e) try {
|
|
7127
7124
|
const t = new TextDecoder().decode(Uint8Array.from(atob(e), (i) => i.charCodeAt(0)));
|
|
7128
7125
|
wt = JSON.parse(t), wt.verbose && xu(!0);
|
|
7129
7126
|
} catch (t) {
|
|
7130
|
-
|
|
7127
|
+
bh.error("Failed to parse config:", { error: t });
|
|
7131
7128
|
}
|
|
7132
7129
|
}
|
|
7133
7130
|
if (!window.__AIPANEL_INITIALIZED__) {
|
|
@@ -7135,7 +7132,7 @@ if (!window.__AIPANEL_INITIALIZED__) {
|
|
|
7135
7132
|
let e = null;
|
|
7136
7133
|
if (wt.serviceInstanceId && wt.proxyPort) {
|
|
7137
7134
|
const n = {
|
|
7138
|
-
type:
|
|
7135
|
+
type: se.SERVICE_INFO,
|
|
7139
7136
|
proxyPort: wt.proxyPort,
|
|
7140
7137
|
vitePort: location.port,
|
|
7141
7138
|
webPort: wt.webPort,
|
|
@@ -7151,7 +7148,7 @@ if (!window.__AIPANEL_INITIALIZED__) {
|
|
|
7151
7148
|
}
|
|
7152
7149
|
const t = document.createElement("div");
|
|
7153
7150
|
document.body.appendChild(t);
|
|
7154
|
-
const i = gu(
|
|
7151
|
+
const i = gu(yh, { config: wt });
|
|
7155
7152
|
i.mount(t), window.__AIPANEL_CLEANUP__ = () => {
|
|
7156
7153
|
e && clearInterval(e), i.unmount(), t.remove(), window[Zs] = !1;
|
|
7157
7154
|
};
|