vite-plugin-aipanel 1.2.6 → 1.2.8
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/proxy-server.d.ts +7 -0
- package/es/core/proxy-server.mjs +6 -0
- package/es/core/service.d.ts +8 -1
- package/es/core/service.mjs +30 -12
- package/es/endpoints/host-events.d.ts +8 -0
- package/es/endpoints/host-events.mjs +77 -0
- package/es/endpoints/index.mjs +2 -0
- package/es/endpoints/sessions.mjs +3 -1
- package/es/endpoints/start.mjs +1 -1
- package/es/endpoints/types.d.ts +7 -2
- package/es/index.mjs +8 -2
- package/lib/client.js +505 -505
- package/lib/core/proxy-server.cjs +6 -0
- package/lib/core/proxy-server.d.ts +7 -0
- package/lib/core/service.cjs +30 -12
- package/lib/core/service.d.ts +8 -1
- package/lib/endpoints/host-events.cjs +100 -0
- package/lib/endpoints/host-events.d.ts +8 -0
- package/lib/endpoints/index.cjs +2 -0
- package/lib/endpoints/sessions.cjs +3 -1
- package/lib/endpoints/start.cjs +1 -1
- package/lib/endpoints/types.d.ts +7 -2
- package/lib/index.cjs +8 -2
- package/package.json +5 -5
package/lib/client.js
CHANGED
|
@@ -278,10 +278,10 @@ function ho(e) {
|
|
|
278
278
|
t && (t.nextDep = i, e.prevDep = void 0), i && (i.prevDep = t, e.nextDep = void 0);
|
|
279
279
|
}
|
|
280
280
|
var vt = !0, Mr = [];
|
|
281
|
-
function
|
|
281
|
+
function Rt() {
|
|
282
282
|
Mr.push(vt), vt = !1;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function kt() {
|
|
285
285
|
const e = Mr.pop();
|
|
286
286
|
vt = e === void 0 ? !0 : e;
|
|
287
287
|
}
|
|
@@ -518,9 +518,9 @@ function Oi(e, t, i) {
|
|
|
518
518
|
return (s === -1 || s === !1) && /* @__PURE__ */ yi(i[0]) ? (i[0] = /* @__PURE__ */ re(i[0]), n[t](...i)) : s;
|
|
519
519
|
}
|
|
520
520
|
function En(e, t, i = []) {
|
|
521
|
-
|
|
521
|
+
Rt(), rs();
|
|
522
522
|
const n = (/* @__PURE__ */ re(e))[t].apply(e, i);
|
|
523
|
-
return ls(),
|
|
523
|
+
return ls(), kt(), n;
|
|
524
524
|
}
|
|
525
525
|
var _o = /* @__PURE__ */ fi("__proto__,__v_isRef,__isVue"), Pr = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(lt));
|
|
526
526
|
function yo(e) {
|
|
@@ -539,16 +539,16 @@ var Ar = class {
|
|
|
539
539
|
if (t === "__v_isReadonly") return n;
|
|
540
540
|
if (t === "__v_isShallow") return s;
|
|
541
541
|
if (t === "__v_raw")
|
|
542
|
-
return i === (n ? s ? Po : Lr : s ?
|
|
542
|
+
return i === (n ? s ? Po : Lr : s ? kr : Rr).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(i) ? e : void 0;
|
|
543
543
|
const r = X(e);
|
|
544
544
|
if (!n) {
|
|
545
545
|
let o;
|
|
546
546
|
if (r && (o = go[t])) return o;
|
|
547
547
|
if (t === "hasOwnProperty") return yo;
|
|
548
548
|
}
|
|
549
|
-
const l = Reflect.get(e, t, /* @__PURE__ */
|
|
549
|
+
const l = Reflect.get(e, t, /* @__PURE__ */ ke(e) ? e : i);
|
|
550
550
|
if ((lt(t) ? Pr.has(t) : _o(t)) || (n || He(e, "get", t), s)) return l;
|
|
551
|
-
if (/* @__PURE__ */
|
|
551
|
+
if (/* @__PURE__ */ ke(l)) {
|
|
552
552
|
const o = r && vi(t) ? l : l.value;
|
|
553
553
|
return n && he(o) ? /* @__PURE__ */ qi(o) : o;
|
|
554
554
|
}
|
|
@@ -563,10 +563,10 @@ var Ar = class {
|
|
|
563
563
|
const r = X(e) && vi(t);
|
|
564
564
|
if (!this._isShallow) {
|
|
565
565
|
const a = /* @__PURE__ */ Lt(s);
|
|
566
|
-
if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Lt(i) && (s = /* @__PURE__ */ re(s), i = /* @__PURE__ */ re(i)), !r && /* @__PURE__ */
|
|
566
|
+
if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Lt(i) && (s = /* @__PURE__ */ re(s), i = /* @__PURE__ */ re(i)), !r && /* @__PURE__ */ ke(s) && !/* @__PURE__ */ ke(i))
|
|
567
567
|
return a || (s.value = i), !0;
|
|
568
568
|
}
|
|
569
|
-
const l = r ? Number(t) < e.length : ce(e, t), o = Reflect.set(e, t, i, /* @__PURE__ */
|
|
569
|
+
const l = r ? Number(t) < e.length : ce(e, t), o = Reflect.set(e, t, i, /* @__PURE__ */ ke(e) ? e : n);
|
|
570
570
|
return e === /* @__PURE__ */ re(n) && o && (l ? Et(i, s) && Pt(e, "set", t, i, s) : Pt(e, "add", t, i)), o;
|
|
571
571
|
}
|
|
572
572
|
deleteProperty(e, t) {
|
|
@@ -676,7 +676,7 @@ function us(e, t) {
|
|
|
676
676
|
const i = Co(e, t);
|
|
677
677
|
return (n, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? n : Reflect.get(ce(i, s) && s in n ? i : n, s, r);
|
|
678
678
|
}
|
|
679
|
-
var xo = { get: /* @__PURE__ */ us(!1, !1) }, Mo = { get: /* @__PURE__ */ us(!1, !0) }, Io = { get: /* @__PURE__ */ us(!0, !1) },
|
|
679
|
+
var xo = { get: /* @__PURE__ */ us(!1, !1) }, Mo = { get: /* @__PURE__ */ us(!1, !0) }, Io = { get: /* @__PURE__ */ us(!0, !1) }, Rr = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap();
|
|
680
680
|
function Ao(e) {
|
|
681
681
|
switch (e) {
|
|
682
682
|
case "Object":
|
|
@@ -693,11 +693,11 @@ function Ao(e) {
|
|
|
693
693
|
}
|
|
694
694
|
// @__NO_SIDE_EFFECTS__
|
|
695
695
|
function Nr(e) {
|
|
696
|
-
return /* @__PURE__ */ Lt(e) ? e : cs(e, !1, So, xo,
|
|
696
|
+
return /* @__PURE__ */ Lt(e) ? e : cs(e, !1, So, xo, Rr);
|
|
697
697
|
}
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
699
699
|
function Oo(e) {
|
|
700
|
-
return cs(e, !1, wo, Mo,
|
|
700
|
+
return cs(e, !1, wo, Mo, kr);
|
|
701
701
|
}
|
|
702
702
|
// @__NO_SIDE_EFFECTS__
|
|
703
703
|
function qi(e) {
|
|
@@ -733,20 +733,20 @@ function re(e) {
|
|
|
733
733
|
const t = e && e.__v_raw;
|
|
734
734
|
return t ? /* @__PURE__ */ re(t) : e;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Ro(e) {
|
|
737
737
|
return !ce(e, "__v_skip") && Object.isExtensible(e) && gr(e, "__v_skip", !0), e;
|
|
738
738
|
}
|
|
739
739
|
var gt = (e) => he(e) ? /* @__PURE__ */ Nr(e) : e, dn = (e) => he(e) ? /* @__PURE__ */ qi(e) : e;
|
|
740
740
|
// @__NO_SIDE_EFFECTS__
|
|
741
|
-
function
|
|
741
|
+
function ke(e) {
|
|
742
742
|
return e ? e.__v_isRef === !0 : !1;
|
|
743
743
|
}
|
|
744
744
|
// @__NO_SIDE_EFFECTS__
|
|
745
|
-
function
|
|
746
|
-
return
|
|
745
|
+
function k(e) {
|
|
746
|
+
return ko(e, !1);
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return /* @__PURE__ */
|
|
748
|
+
function ko(e, t) {
|
|
749
|
+
return /* @__PURE__ */ ke(e) ? e : new Lo(e, t);
|
|
750
750
|
}
|
|
751
751
|
var Lo = class {
|
|
752
752
|
constructor(e, t) {
|
|
@@ -761,13 +761,13 @@ var Lo = class {
|
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
function _e(e) {
|
|
764
|
-
return /* @__PURE__ */
|
|
764
|
+
return /* @__PURE__ */ ke(e) ? e.value : e;
|
|
765
765
|
}
|
|
766
766
|
var No = {
|
|
767
767
|
get: (e, t, i) => t === "__v_raw" ? e : _e(Reflect.get(e, t, i)),
|
|
768
768
|
set: (e, t, i, n) => {
|
|
769
769
|
const s = e[t];
|
|
770
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ ke(s) && !/* @__PURE__ */ ke(i) ? (s.value = i, !0) : Reflect.set(e, t, i, n);
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
773
|
function Dr(e) {
|
|
@@ -787,9 +787,9 @@ var Do = class {
|
|
|
787
787
|
return this._shallow && (e = _e(e)), this._value = e === void 0 ? this._defaultValue : e;
|
|
788
788
|
}
|
|
789
789
|
set value(e) {
|
|
790
|
-
if (this._shallow && /* @__PURE__ */
|
|
790
|
+
if (this._shallow && /* @__PURE__ */ ke(this._raw[this._key])) {
|
|
791
791
|
const t = this._object[this._key];
|
|
792
|
-
if (/* @__PURE__ */
|
|
792
|
+
if (/* @__PURE__ */ ke(t)) {
|
|
793
793
|
t.value = e;
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
@@ -809,7 +809,7 @@ var Do = class {
|
|
|
809
809
|
};
|
|
810
810
|
// @__NO_SIDE_EFFECTS__
|
|
811
811
|
function se(e, t, i) {
|
|
812
|
-
return /* @__PURE__ */
|
|
812
|
+
return /* @__PURE__ */ ke(e) ? e : ue(e) ? new Fo(e) : he(e) && arguments.length > 1 ? $o(e, t, i) : /* @__PURE__ */ k(e);
|
|
813
813
|
}
|
|
814
814
|
function $o(e, t, i) {
|
|
815
815
|
return new Do(e, t, i);
|
|
@@ -843,76 +843,76 @@ function Ho(e, t = !1, i = Kt) {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
function Vo(e, t, i = ve) {
|
|
846
|
-
const { immediate: n, deep: s, once: r, scheduler: l, augmentJob: o, call: a } = i, u = (
|
|
846
|
+
const { immediate: n, deep: s, once: r, scheduler: l, augmentJob: o, call: a } = i, u = (M) => s ? M : /* @__PURE__ */ st(M) || s === !1 || s === 0 ? At(M, 1) : At(M);
|
|
847
847
|
let c, f, p, m, T = !1, v = !1;
|
|
848
|
-
if (/* @__PURE__ */
|
|
849
|
-
if (/* @__PURE__ */
|
|
850
|
-
if (/* @__PURE__ */ Jt(
|
|
851
|
-
if (ue(
|
|
848
|
+
if (/* @__PURE__ */ ke(e) ? (f = () => e.value, T = /* @__PURE__ */ st(e)) : /* @__PURE__ */ Jt(e) ? (f = () => u(e), T = !0) : X(e) ? (v = !0, T = e.some((M) => /* @__PURE__ */ Jt(M) || /* @__PURE__ */ st(M)), f = () => e.map((M) => {
|
|
849
|
+
if (/* @__PURE__ */ ke(M)) return M.value;
|
|
850
|
+
if (/* @__PURE__ */ Jt(M)) return u(M);
|
|
851
|
+
if (ue(M)) return a ? a(M, 2) : M();
|
|
852
852
|
})) : ue(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
|
|
853
853
|
if (p) {
|
|
854
|
-
|
|
854
|
+
Rt();
|
|
855
855
|
try {
|
|
856
856
|
p();
|
|
857
857
|
} finally {
|
|
858
|
-
|
|
858
|
+
kt();
|
|
859
859
|
}
|
|
860
860
|
}
|
|
861
|
-
const
|
|
861
|
+
const M = Kt;
|
|
862
862
|
Kt = c;
|
|
863
863
|
try {
|
|
864
864
|
return a ? a(e, 3, [m]) : e(m);
|
|
865
865
|
} finally {
|
|
866
|
-
Kt =
|
|
866
|
+
Kt = M;
|
|
867
867
|
}
|
|
868
868
|
} : f = Ht, t && s) {
|
|
869
|
-
const
|
|
870
|
-
f = () => At(
|
|
869
|
+
const M = f, B = s === !0 ? 1 / 0 : s;
|
|
870
|
+
f = () => At(M(), B);
|
|
871
871
|
}
|
|
872
872
|
const _ = fo(), L = () => {
|
|
873
873
|
c.stop(), _ && _.active && cr(_.effects, c);
|
|
874
874
|
};
|
|
875
875
|
if (r && t) {
|
|
876
|
-
const
|
|
877
|
-
t = (...
|
|
878
|
-
const Z =
|
|
876
|
+
const M = t;
|
|
877
|
+
t = (...B) => {
|
|
878
|
+
const Z = M(...B);
|
|
879
879
|
return L(), Z;
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
let
|
|
883
|
-
const
|
|
884
|
-
if (!(!(c.flags & 1) || !c.dirty && !
|
|
882
|
+
let I = v ? new Array(e.length).fill(Yn) : Yn;
|
|
883
|
+
const A = (M) => {
|
|
884
|
+
if (!(!(c.flags & 1) || !c.dirty && !M))
|
|
885
885
|
if (t) {
|
|
886
|
-
const
|
|
887
|
-
if (
|
|
886
|
+
const B = c.run();
|
|
887
|
+
if (M || s || T || (v ? B.some((Z, W) => Et(Z, I[W])) : Et(B, I))) {
|
|
888
888
|
p && p();
|
|
889
889
|
const Z = Kt;
|
|
890
890
|
Kt = c;
|
|
891
891
|
try {
|
|
892
|
-
const
|
|
893
|
-
|
|
894
|
-
|
|
892
|
+
const W = [
|
|
893
|
+
B,
|
|
894
|
+
I === Yn ? void 0 : v && I[0] === Yn ? [] : I,
|
|
895
895
|
m
|
|
896
896
|
];
|
|
897
|
-
|
|
897
|
+
I = B, a ? a(t, 3, W) : t(...W);
|
|
898
898
|
} finally {
|
|
899
899
|
Kt = Z;
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
} else c.run();
|
|
903
903
|
};
|
|
904
|
-
return o && o(
|
|
905
|
-
const
|
|
906
|
-
if (
|
|
907
|
-
if (a) a(
|
|
908
|
-
else for (const
|
|
904
|
+
return o && o(A), c = new Sr(f), c.scheduler = l ? () => l(A, !1) : A, m = (M) => Ho(M, !1, c), p = c.onStop = () => {
|
|
905
|
+
const M = ti.get(c);
|
|
906
|
+
if (M) {
|
|
907
|
+
if (a) a(M, 4);
|
|
908
|
+
else for (const B of M) B();
|
|
909
909
|
ti.delete(c);
|
|
910
910
|
}
|
|
911
|
-
}, t ? n ?
|
|
911
|
+
}, t ? n ? A(!0) : I = c.run() : l ? l(A.bind(null, !0), !0) : c.run(), L.pause = c.pause.bind(c), L.resume = c.resume.bind(c), L.stop = L, L;
|
|
912
912
|
}
|
|
913
913
|
function At(e, t = 1 / 0, i) {
|
|
914
914
|
if (t <= 0 || !he(e) || e.__v_skip || (i = i || /* @__PURE__ */ new Map(), (i.get(e) || 0) >= t)) return e;
|
|
915
|
-
if (i.set(e, t), t--, /* @__PURE__ */
|
|
915
|
+
if (i.set(e, t), t--, /* @__PURE__ */ ke(e)) At(e.value, t, i);
|
|
916
916
|
else if (X(e)) for (let n = 0; n < e.length; n++) At(e[n], t, i);
|
|
917
917
|
else if (dr(e) || ln(e)) e.forEach((n) => {
|
|
918
918
|
At(n, t, i);
|
|
@@ -956,11 +956,11 @@ function bi(e, t, i, n = !0) {
|
|
|
956
956
|
o = o.parent;
|
|
957
957
|
}
|
|
958
958
|
if (r) {
|
|
959
|
-
|
|
959
|
+
Rt(), jn(r, null, 10, [
|
|
960
960
|
e,
|
|
961
961
|
a,
|
|
962
962
|
u
|
|
963
|
-
]),
|
|
963
|
+
]), kt();
|
|
964
964
|
return;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
@@ -1078,12 +1078,12 @@ function Ut(e, t, i, n) {
|
|
|
1078
1078
|
const o = s[l];
|
|
1079
1079
|
r && (o.oldValue = r[l].value);
|
|
1080
1080
|
let a = o.dir[n];
|
|
1081
|
-
a && (
|
|
1081
|
+
a && (Rt(), wt(a, i, 8, [
|
|
1082
1082
|
e.el,
|
|
1083
1083
|
o,
|
|
1084
1084
|
e,
|
|
1085
1085
|
t
|
|
1086
|
-
]),
|
|
1086
|
+
]), kt());
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
function Uo(e, t) {
|
|
@@ -1143,48 +1143,48 @@ var Bt = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ Symbol("_vte"), Yo
|
|
|
1143
1143
|
name: "Teleport",
|
|
1144
1144
|
__isTeleport: !0,
|
|
1145
1145
|
process(e, t, i, n, s, r, l, o, a, u) {
|
|
1146
|
-
const { mc: c, pc: f, pbc: p, o: { insert: m, querySelector: T, createText: v, createComment: _, parentNode: L } } = u,
|
|
1147
|
-
let { dynamicChildren:
|
|
1148
|
-
const
|
|
1149
|
-
|
|
1150
|
-
},
|
|
1151
|
-
const q = Gt(
|
|
1152
|
-
|
|
1153
|
-
}, Z = (
|
|
1146
|
+
const { mc: c, pc: f, pbc: p, o: { insert: m, querySelector: T, createText: v, createComment: _, parentNode: L } } = u, I = Gt(t.props);
|
|
1147
|
+
let { dynamicChildren: A } = t;
|
|
1148
|
+
const M = (W, q, V) => {
|
|
1149
|
+
W.shapeFlag & 16 && c(W.children, q, V, s, r, l, o, a);
|
|
1150
|
+
}, B = (W = t) => {
|
|
1151
|
+
const q = Gt(W.props), V = W.target = Ki(W.props, T), oe = Gi(V, W, v, m);
|
|
1152
|
+
V && (l !== "svg" && Ps(V) ? l = "svg" : l !== "mathml" && As(V) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(V), q || (M(W, V, oe), xn(W, !1)));
|
|
1153
|
+
}, Z = (W) => {
|
|
1154
1154
|
const q = () => {
|
|
1155
|
-
if (Bt.get(
|
|
1156
|
-
if (Bt.delete(
|
|
1157
|
-
const
|
|
1158
|
-
|
|
1155
|
+
if (Bt.get(W) === q) {
|
|
1156
|
+
if (Bt.delete(W), Gt(W.props)) {
|
|
1157
|
+
const V = L(W.el) || i;
|
|
1158
|
+
M(W, V, W.anchor), xn(W, !0);
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1160
|
+
B(W);
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
|
-
Bt.set(
|
|
1163
|
+
Bt.set(W, q), qe(q, r);
|
|
1164
1164
|
};
|
|
1165
1165
|
if (e == null) {
|
|
1166
|
-
const
|
|
1167
|
-
if (m(
|
|
1166
|
+
const W = t.el = v(""), q = t.anchor = v("");
|
|
1167
|
+
if (m(W, i, n), m(q, i, n), Xo(t.props) || r && r.pendingBranch) {
|
|
1168
1168
|
Z(t);
|
|
1169
1169
|
return;
|
|
1170
1170
|
}
|
|
1171
|
-
|
|
1171
|
+
I && (M(t, i, q), xn(t, !0)), B();
|
|
1172
1172
|
} else {
|
|
1173
1173
|
t.el = e.el;
|
|
1174
|
-
const
|
|
1174
|
+
const W = t.anchor = e.anchor, q = Bt.get(e);
|
|
1175
1175
|
if (q) {
|
|
1176
1176
|
q.flags |= 8, Bt.delete(e), Z(t);
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
1179
|
t.targetStart = e.targetStart;
|
|
1180
|
-
const
|
|
1181
|
-
if (l === "svg" || Ps(
|
|
1182
|
-
K ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Xn(t, i,
|
|
1180
|
+
const V = t.target = e.target, oe = t.targetAnchor = e.targetAnchor, K = Gt(e.props), Oe = K ? i : V, N = K ? W : oe;
|
|
1181
|
+
if (l === "svg" || Ps(V) ? l = "svg" : (l === "mathml" || As(V)) && (l = "mathml"), A ? (p(e.dynamicChildren, A, Oe, s, r, l, o), vs(e, t, !0)) : a || f(e, t, Oe, N, s, r, l, o, !1), I)
|
|
1182
|
+
K ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Xn(t, i, W, u, 1);
|
|
1183
1183
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1184
1184
|
const G = Ki(t.props, T);
|
|
1185
1185
|
G && (t.target = G, Xn(t, G, null, u, 0));
|
|
1186
|
-
} else K && Xn(t,
|
|
1187
|
-
xn(t,
|
|
1186
|
+
} else K && Xn(t, V, oe, u, 1);
|
|
1187
|
+
xn(t, I);
|
|
1188
1188
|
}
|
|
1189
1189
|
},
|
|
1190
1190
|
remove(e, t, i, { um: n, o: { remove: s } }, r) {
|
|
@@ -1206,16 +1206,16 @@ function Xn(e, t, i, { o: { insert: n }, m: s }, r = 2) {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
function Zo(e, t, i, n, s, r, { o: { nextSibling: l, parentNode: o, querySelector: a, insert: u, createText: c } }, f) {
|
|
1208
1208
|
function p(_, L) {
|
|
1209
|
-
let
|
|
1210
|
-
for (;
|
|
1211
|
-
if (
|
|
1212
|
-
if (
|
|
1213
|
-
else if (
|
|
1214
|
-
t.targetAnchor =
|
|
1209
|
+
let I = L;
|
|
1210
|
+
for (; I; ) {
|
|
1211
|
+
if (I && I.nodeType === 8) {
|
|
1212
|
+
if (I.data === "teleport start anchor") t.targetStart = I;
|
|
1213
|
+
else if (I.data === "teleport anchor") {
|
|
1214
|
+
t.targetAnchor = I, _._lpa = t.targetAnchor && l(t.targetAnchor);
|
|
1215
1215
|
break;
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
|
|
1218
|
+
I = l(I);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
function m(_, L) {
|
|
@@ -1242,7 +1242,7 @@ function Gi(e, t, i, n, s = null) {
|
|
|
1242
1242
|
const r = t.targetStart = i(""), l = t.targetAnchor = i("");
|
|
1243
1243
|
return r[zr] = l, e && (n(r, e, s), n(l, e, s)), l;
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1245
|
+
var Ri = /* @__PURE__ */ Symbol("_leaveCb");
|
|
1246
1246
|
function fs(e, t) {
|
|
1247
1247
|
e.shapeFlag & 6 && e.component ? (e.transition = t, fs(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1248
1248
|
}
|
|
@@ -1277,48 +1277,48 @@ function On(e, t, i, n, s = !1) {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
const r = n.shapeFlag & 4 ? Ti(n.component) : n.el, l = s ? null : r, { i: o, r: a } = e, u = t && t.r, c = o.refs === ve ? o.refs = {} : o.refs, f = o.setupState, p = /* @__PURE__ */ re(f), m = f === ve ? ur : (v) => Os(c, v) ? !1 : ce(p, v), T = (v, _) => !(_ && Os(c, _));
|
|
1279
1279
|
if (u != null && u !== a) {
|
|
1280
|
-
if (
|
|
1280
|
+
if (Rs(t), Te(u))
|
|
1281
1281
|
c[u] = null, m(u) && (f[u] = null);
|
|
1282
|
-
else if (/* @__PURE__ */
|
|
1282
|
+
else if (/* @__PURE__ */ ke(u)) {
|
|
1283
1283
|
const v = t;
|
|
1284
1284
|
T(u, v.k) && (u.value = null), v.k && (c[v.k] = null);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
if (ue(a)) {
|
|
1288
|
-
|
|
1288
|
+
Rt();
|
|
1289
1289
|
try {
|
|
1290
1290
|
jn(a, o, 12, [l, c]);
|
|
1291
1291
|
} finally {
|
|
1292
|
-
|
|
1292
|
+
kt();
|
|
1293
1293
|
}
|
|
1294
1294
|
} else {
|
|
1295
|
-
const v = Te(a), _ = /* @__PURE__ */
|
|
1295
|
+
const v = Te(a), _ = /* @__PURE__ */ ke(a);
|
|
1296
1296
|
if (v || _) {
|
|
1297
1297
|
const L = () => {
|
|
1298
1298
|
if (e.f) {
|
|
1299
|
-
const
|
|
1300
|
-
if (s) X(
|
|
1301
|
-
else if (X(
|
|
1302
|
-
|
|
1299
|
+
const I = v ? m(a) ? f[a] : c[a] : T(a) || !e.k ? a.value : c[e.k];
|
|
1300
|
+
if (s) X(I) && cr(I, r);
|
|
1301
|
+
else if (X(I))
|
|
1302
|
+
I.includes(r) || I.push(r);
|
|
1303
1303
|
else if (v)
|
|
1304
1304
|
c[a] = [r], m(a) && (f[a] = c[a]);
|
|
1305
1305
|
else {
|
|
1306
|
-
const
|
|
1307
|
-
T(a, e.k) && (a.value =
|
|
1306
|
+
const A = [r];
|
|
1307
|
+
T(a, e.k) && (a.value = A), e.k && (c[e.k] = A);
|
|
1308
1308
|
}
|
|
1309
1309
|
} else v ? (c[a] = l, m(a) && (f[a] = l)) : _ && (T(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
|
|
1310
1310
|
};
|
|
1311
1311
|
if (l) {
|
|
1312
|
-
const
|
|
1312
|
+
const I = () => {
|
|
1313
1313
|
L(), si.delete(e);
|
|
1314
1314
|
};
|
|
1315
|
-
|
|
1315
|
+
I.id = -1, si.set(e, I), qe(I, i);
|
|
1316
1316
|
} else
|
|
1317
|
-
|
|
1317
|
+
Rs(e), L();
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
1320
|
}
|
|
1321
|
-
function
|
|
1321
|
+
function Rs(e) {
|
|
1322
1322
|
const t = si.get(e);
|
|
1323
1323
|
t && (t.flags |= 8, si.delete(e));
|
|
1324
1324
|
}
|
|
@@ -1326,9 +1326,9 @@ var uh = mi().requestIdleCallback || ((e) => setTimeout(e, 1)), ch = mi().cancel
|
|
|
1326
1326
|
function na(e, t, i = nt, n = !1) {
|
|
1327
1327
|
if (i) {
|
|
1328
1328
|
const s = i[e] || (i[e] = []), r = t.__weh || (t.__weh = (...l) => {
|
|
1329
|
-
|
|
1329
|
+
Rt();
|
|
1330
1330
|
const o = _s(i), a = wt(t, i, e, l);
|
|
1331
|
-
return o(),
|
|
1331
|
+
return o(), kt(), a;
|
|
1332
1332
|
});
|
|
1333
1333
|
return n ? s.unshift(r) : s.push(r), r;
|
|
1334
1334
|
}
|
|
@@ -1384,7 +1384,7 @@ function te(e, t, i = {}, n, s) {
|
|
|
1384
1384
|
function qr(e) {
|
|
1385
1385
|
return e.some((t) => gs(t) ? !(t.type === Nt || t.type === be && !qr(t.children)) : !0) ? e : null;
|
|
1386
1386
|
}
|
|
1387
|
-
var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null,
|
|
1387
|
+
var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, Rn = /* @__PURE__ */ rt(/* @__PURE__ */ Object.create(null), {
|
|
1388
1388
|
$: (e) => e,
|
|
1389
1389
|
$el: (e) => e.vnode.el,
|
|
1390
1390
|
$data: (e) => e.data,
|
|
@@ -1402,7 +1402,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
|
|
|
1402
1402
|
}),
|
|
1403
1403
|
$nextTick: (e) => e.n || (e.n = an.bind(e.proxy)),
|
|
1404
1404
|
$watch: (e) => Ht
|
|
1405
|
-
}),
|
|
1405
|
+
}), ki = (e, t) => e !== ve && !e.__isScriptSetup && ce(e, t), ra = {
|
|
1406
1406
|
get({ _: e }, t) {
|
|
1407
1407
|
if (t === "__v_skip") return !0;
|
|
1408
1408
|
const { ctx: i, setupState: n, data: s, props: r, accessCache: l, type: o, appContext: a } = e;
|
|
@@ -1419,7 +1419,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
|
|
|
1419
1419
|
return r[t];
|
|
1420
1420
|
}
|
|
1421
1421
|
else {
|
|
1422
|
-
if (
|
|
1422
|
+
if (ki(n, t))
|
|
1423
1423
|
return l[t] = 1, n[t];
|
|
1424
1424
|
if (ce(r, t))
|
|
1425
1425
|
return l[t] = 3, r[t];
|
|
@@ -1428,7 +1428,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
|
|
|
1428
1428
|
l[t] = 0;
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
const u =
|
|
1431
|
+
const u = Rn[t];
|
|
1432
1432
|
let c, f;
|
|
1433
1433
|
if (u)
|
|
1434
1434
|
return t === "$attrs" && He(e.attrs, "get", ""), u(e);
|
|
@@ -1439,11 +1439,11 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
|
|
|
1439
1439
|
},
|
|
1440
1440
|
set({ _: e }, t, i) {
|
|
1441
1441
|
const { data: n, setupState: s, ctx: r } = e;
|
|
1442
|
-
return
|
|
1442
|
+
return ki(s, t) ? (s[t] = i, !0) : ce(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = i, !0);
|
|
1443
1443
|
},
|
|
1444
1444
|
has({ _: { data: e, setupState: t, accessCache: i, ctx: n, appContext: s, props: r, type: l } }, o) {
|
|
1445
1445
|
let a;
|
|
1446
|
-
return !!(i[o] ||
|
|
1446
|
+
return !!(i[o] || ki(t, o) || ce(r, o) || ce(n, o) || ce(Rn, o) || ce(s.config.globalProperties, o) || (a = l.__cssModules) && a[o]);
|
|
1447
1447
|
},
|
|
1448
1448
|
defineProperty(e, t, i) {
|
|
1449
1449
|
return i.get != null ? e._.accessCache[t] = 0 : ce(i, "value") && this.set(e, t, i.value, null), Reflect.defineProperty(e, t, i);
|
|
@@ -1564,28 +1564,28 @@ function Si(e, t) {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
function Li(e) {
|
|
1566
1566
|
const { type: t, vnode: i, proxy: n, withProxy: s, propsOptions: [r], slots: l, attrs: o, emit: a, render: u, renderCache: c, props: f, data: p, setupState: m, ctx: T, inheritAttrs: v } = e, _ = ii(e);
|
|
1567
|
-
let L,
|
|
1567
|
+
let L, I;
|
|
1568
1568
|
try {
|
|
1569
1569
|
if (i.shapeFlag & 4) {
|
|
1570
|
-
const
|
|
1571
|
-
L = St(u.call(
|
|
1570
|
+
const M = s || n, B = M;
|
|
1571
|
+
L = St(u.call(B, M, c, f, m, p, T)), I = o;
|
|
1572
1572
|
} else {
|
|
1573
|
-
const
|
|
1574
|
-
L = St(
|
|
1573
|
+
const M = t;
|
|
1574
|
+
L = St(M.length > 1 ? M(f, {
|
|
1575
1575
|
attrs: o,
|
|
1576
1576
|
slots: l,
|
|
1577
1577
|
emit: a
|
|
1578
|
-
}) :
|
|
1578
|
+
}) : M(f, null)), I = t.props ? o : fa(o);
|
|
1579
1579
|
}
|
|
1580
|
-
} catch (
|
|
1581
|
-
Ln.length = 0, bi(
|
|
1580
|
+
} catch (M) {
|
|
1581
|
+
Ln.length = 0, bi(M, e, 1), L = Ae(Nt);
|
|
1582
1582
|
}
|
|
1583
|
-
let
|
|
1584
|
-
if (
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1583
|
+
let A = L;
|
|
1584
|
+
if (I && v !== !1) {
|
|
1585
|
+
const M = Object.keys(I), { shapeFlag: B } = A;
|
|
1586
|
+
M.length && B & 7 && (r && M.some(pi) && (I = ha(I, r)), A = fn(A, I, !1, !0));
|
|
1587
1587
|
}
|
|
1588
|
-
return i.dirs && (
|
|
1588
|
+
return i.dirs && (A = fn(A, null, !1, !0), A.dirs = A.dirs ? A.dirs.concat(i.dirs) : i.dirs), i.transition && fs(A, i.transition), L = A, ii(_), L;
|
|
1589
1589
|
}
|
|
1590
1590
|
var fa = (e) => {
|
|
1591
1591
|
let t;
|
|
@@ -1602,7 +1602,7 @@ function pa(e, t, i) {
|
|
|
1602
1602
|
if (i && a >= 0) {
|
|
1603
1603
|
if (a & 1024) return !0;
|
|
1604
1604
|
if (a & 16)
|
|
1605
|
-
return n ?
|
|
1605
|
+
return n ? ks(n, l, u) : !!l;
|
|
1606
1606
|
if (a & 8) {
|
|
1607
1607
|
const c = t.dynamicProps;
|
|
1608
1608
|
for (let f = 0; f < c.length; f++) {
|
|
@@ -1611,10 +1611,10 @@ function pa(e, t, i) {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
} else
|
|
1614
|
-
return (s || o) && (!o || !o.$stable) ? !0 : n === l ? !1 : n ? l ?
|
|
1614
|
+
return (s || o) && (!o || !o.$stable) ? !0 : n === l ? !1 : n ? l ? ks(n, l, u) : !0 : !!l;
|
|
1615
1615
|
return !1;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function ks(e, t, i) {
|
|
1618
1618
|
const n = Object.keys(t);
|
|
1619
1619
|
if (n.length !== Object.keys(e).length) return !0;
|
|
1620
1620
|
for (let s = 0; s < n.length; s++) {
|
|
@@ -1726,11 +1726,11 @@ function _a(e, t, i = !1) {
|
|
|
1726
1726
|
const f = r[u], p = l[c] = X(f) || ue(f) ? { type: f } : rt({}, f), m = p.type;
|
|
1727
1727
|
let T = !1, v = !0;
|
|
1728
1728
|
if (X(m)) for (let _ = 0; _ < m.length; ++_) {
|
|
1729
|
-
const L = m[_],
|
|
1730
|
-
if (
|
|
1729
|
+
const L = m[_], I = ue(L) && L.name;
|
|
1730
|
+
if (I === "Boolean") {
|
|
1731
1731
|
T = !0;
|
|
1732
1732
|
break;
|
|
1733
|
-
} else
|
|
1733
|
+
} else I === "String" && (v = !1);
|
|
1734
1734
|
}
|
|
1735
1735
|
else T = ue(m) && m.name === "Boolean";
|
|
1736
1736
|
p[0] = T, p[1] = v, (T || ce(p, "default")) && o.push(c);
|
|
@@ -1784,9 +1784,9 @@ function Ea(e) {
|
|
|
1784
1784
|
function wa(e, t) {
|
|
1785
1785
|
const i = mi();
|
|
1786
1786
|
i.__VUE__ = !0;
|
|
1787
|
-
const { insert: n, remove: s, patchProp: r, createElement: l, createText: o, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: m = Ht, insertStaticContent: T } = e, v = (d, h, g, C = null, b = null, S = null,
|
|
1787
|
+
const { insert: n, remove: s, patchProp: r, createElement: l, createText: o, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: m = Ht, insertStaticContent: T } = e, v = (d, h, g, C = null, b = null, S = null, R = void 0, O = null, P = !!h.dynamicChildren) => {
|
|
1788
1788
|
if (d === h) return;
|
|
1789
|
-
d && !wn(d, h) && (C =
|
|
1789
|
+
d && !wn(d, h) && (C = Re(d), Ne(d, b, S, !0), d = null), h.patchFlag === -2 && (P = !1, h.dynamicChildren = null);
|
|
1790
1790
|
const { type: E, ref: F, shapeFlag: D } = h;
|
|
1791
1791
|
switch (E) {
|
|
1792
1792
|
case Ei:
|
|
@@ -1795,14 +1795,14 @@ function wa(e, t) {
|
|
|
1795
1795
|
case Nt:
|
|
1796
1796
|
L(d, h, g, C);
|
|
1797
1797
|
break;
|
|
1798
|
-
case
|
|
1799
|
-
d == null &&
|
|
1798
|
+
case kn:
|
|
1799
|
+
d == null && I(h, g, C, R);
|
|
1800
1800
|
break;
|
|
1801
1801
|
case be:
|
|
1802
|
-
Oe(d, h, g, C, b, S,
|
|
1802
|
+
Oe(d, h, g, C, b, S, R, O, P);
|
|
1803
1803
|
break;
|
|
1804
1804
|
default:
|
|
1805
|
-
D & 1 ?
|
|
1805
|
+
D & 1 ? B(d, h, g, C, b, S, R, O, P) : D & 6 ? N(d, h, g, C, b, S, R, O, P) : (D & 64 || D & 128) && E.process(d, h, g, C, b, S, R, O, P, ge);
|
|
1806
1806
|
}
|
|
1807
1807
|
F != null && b ? On(F, d && d.ref, S, h || d, !h) : F == null && d && d.ref != null && On(d.ref, null, S, d, !0);
|
|
1808
1808
|
}, _ = (d, h, g, C) => {
|
|
@@ -1813,78 +1813,78 @@ function wa(e, t) {
|
|
|
1813
1813
|
}
|
|
1814
1814
|
}, L = (d, h, g, C) => {
|
|
1815
1815
|
d == null ? n(h.el = a(h.children || ""), g, C) : h.el = d.el;
|
|
1816
|
-
},
|
|
1816
|
+
}, I = (d, h, g, C) => {
|
|
1817
1817
|
[d.el, d.anchor] = T(d.children, h, g, C, d.el, d.anchor);
|
|
1818
|
-
},
|
|
1818
|
+
}, A = ({ el: d, anchor: h }, g, C) => {
|
|
1819
1819
|
let b;
|
|
1820
1820
|
for (; d && d !== h; )
|
|
1821
1821
|
b = p(d), n(d, g, C), d = b;
|
|
1822
1822
|
n(h, g, C);
|
|
1823
|
-
},
|
|
1823
|
+
}, M = ({ el: d, anchor: h }) => {
|
|
1824
1824
|
let g;
|
|
1825
1825
|
for (; d && d !== h; )
|
|
1826
1826
|
g = p(d), s(d), d = g;
|
|
1827
1827
|
s(h);
|
|
1828
|
-
},
|
|
1829
|
-
if (h.type === "svg" ?
|
|
1828
|
+
}, B = (d, h, g, C, b, S, R, O, P) => {
|
|
1829
|
+
if (h.type === "svg" ? R = "svg" : h.type === "math" && (R = "mathml"), d == null) Z(h, g, C, b, S, R, O, P);
|
|
1830
1830
|
else {
|
|
1831
1831
|
const E = d.el && d.el._isVueCE ? d.el : null;
|
|
1832
1832
|
try {
|
|
1833
|
-
E && E._beginPatch(),
|
|
1833
|
+
E && E._beginPatch(), V(d, h, b, S, R, O, P);
|
|
1834
1834
|
} finally {
|
|
1835
1835
|
E && E._endPatch();
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
|
-
}, Z = (d, h, g, C, b, S,
|
|
1839
|
-
let
|
|
1840
|
-
const { props: F, shapeFlag: D, transition:
|
|
1841
|
-
if (
|
|
1842
|
-
for (const le in F) le !== "value" && !In(le) && r(
|
|
1843
|
-
"value" in F && r(
|
|
1838
|
+
}, Z = (d, h, g, C, b, S, R, O) => {
|
|
1839
|
+
let P, E;
|
|
1840
|
+
const { props: F, shapeFlag: D, transition: H, dirs: z } = d;
|
|
1841
|
+
if (P = d.el = l(d.type, S, F && F.is, F), D & 8 ? c(P, d.children) : D & 16 && q(d.children, P, null, C, b, Ni(d, S), R, O), z && Ut(d, null, C, "created"), W(P, d, d.scopeId, R, C), F) {
|
|
1842
|
+
for (const le in F) le !== "value" && !In(le) && r(P, le, null, F[le], S, C);
|
|
1843
|
+
"value" in F && r(P, "value", null, F.value, S), (E = F.onVnodeBeforeMount) && mt(E, C, d);
|
|
1844
1844
|
}
|
|
1845
1845
|
z && Ut(d, null, C, "beforeMount");
|
|
1846
|
-
const J = Ta(b,
|
|
1847
|
-
J &&
|
|
1848
|
-
E && mt(E, C, d), J &&
|
|
1846
|
+
const J = Ta(b, H);
|
|
1847
|
+
J && H.beforeEnter(P), n(P, h, g), ((E = F && F.onVnodeMounted) || J || z) && qe(() => {
|
|
1848
|
+
E && mt(E, C, d), J && H.enter(P), z && Ut(d, null, C, "mounted");
|
|
1849
1849
|
}, b);
|
|
1850
|
-
},
|
|
1850
|
+
}, W = (d, h, g, C, b) => {
|
|
1851
1851
|
if (g && m(d, g), C) for (let S = 0; S < C.length; S++) m(d, C[S]);
|
|
1852
1852
|
if (b) {
|
|
1853
1853
|
let S = b.subTree;
|
|
1854
1854
|
if (h === S || rl(S.type) && (S.ssContent === h || S.ssFallback === h)) {
|
|
1855
|
-
const
|
|
1856
|
-
|
|
1855
|
+
const R = b.vnode;
|
|
1856
|
+
W(d, R, R.scopeId, R.slotScopeIds, b.parent);
|
|
1857
1857
|
}
|
|
1858
1858
|
}
|
|
1859
|
-
}, q = (d, h, g, C, b, S,
|
|
1860
|
-
for (let E =
|
|
1859
|
+
}, q = (d, h, g, C, b, S, R, O, P = 0) => {
|
|
1860
|
+
for (let E = P; E < d.length; E++) {
|
|
1861
1861
|
const F = d[E] = O ? It(d[E]) : St(d[E]);
|
|
1862
|
-
v(null, F, h, g, C, b, S,
|
|
1862
|
+
v(null, F, h, g, C, b, S, R, O);
|
|
1863
1863
|
}
|
|
1864
|
-
},
|
|
1864
|
+
}, V = (d, h, g, C, b, S, R) => {
|
|
1865
1865
|
const O = h.el = d.el;
|
|
1866
|
-
let { patchFlag:
|
|
1867
|
-
|
|
1868
|
-
const D = d.props || ve,
|
|
1866
|
+
let { patchFlag: P, dynamicChildren: E, dirs: F } = h;
|
|
1867
|
+
P |= d.patchFlag & 16;
|
|
1868
|
+
const D = d.props || ve, H = h.props || ve;
|
|
1869
1869
|
let z;
|
|
1870
|
-
if (g && qt(g, !1), (z =
|
|
1871
|
-
if (
|
|
1872
|
-
else if (
|
|
1870
|
+
if (g && qt(g, !1), (z = H.onVnodeBeforeUpdate) && mt(z, g, h, d), F && Ut(h, d, g, "beforeUpdate"), g && qt(g, !0), E && (!d.dynamicChildren || d.dynamicChildren.length !== E.length) && (P = 0, R = !1, E = null), (D.innerHTML && H.innerHTML == null || D.textContent && H.textContent == null) && c(O, ""), E ? oe(d.dynamicChildren, E, O, g, C, Ni(h, b), S) : R || Le(d, h, O, null, g, C, Ni(h, b), S, !1), P > 0) {
|
|
1871
|
+
if (P & 16) K(O, D, H, g, b);
|
|
1872
|
+
else if (P & 2 && D.class !== H.class && r(O, "class", null, H.class, b), P & 4 && r(O, "style", D.style, H.style, b), P & 8) {
|
|
1873
1873
|
const J = h.dynamicProps;
|
|
1874
1874
|
for (let le = 0; le < J.length; le++) {
|
|
1875
|
-
const ee = J[le], Q = D[ee], pe =
|
|
1875
|
+
const ee = J[le], Q = D[ee], pe = H[ee];
|
|
1876
1876
|
(pe !== Q || ee === "value") && r(O, ee, Q, pe, b, g);
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
|
|
1880
|
-
} else !
|
|
1881
|
-
((z =
|
|
1879
|
+
P & 1 && d.children !== h.children && c(O, h.children);
|
|
1880
|
+
} else !R && E == null && K(O, D, H, g, b);
|
|
1881
|
+
((z = H.onVnodeUpdated) || F) && qe(() => {
|
|
1882
1882
|
z && mt(z, g, h, d), F && Ut(h, d, g, "updated");
|
|
1883
1883
|
}, C);
|
|
1884
|
-
}, oe = (d, h, g, C, b, S,
|
|
1884
|
+
}, oe = (d, h, g, C, b, S, R) => {
|
|
1885
1885
|
for (let O = 0; O < h.length; O++) {
|
|
1886
|
-
const
|
|
1887
|
-
v(
|
|
1886
|
+
const P = d[O], E = h[O], F = P.el && (P.type === be || !wn(P, E) || P.shapeFlag & 198) ? f(P.el) : g;
|
|
1887
|
+
v(P, E, F, null, C, b, S, R, !0);
|
|
1888
1888
|
}
|
|
1889
1889
|
}, K = (d, h, g, C, b) => {
|
|
1890
1890
|
if (h !== g) {
|
|
@@ -1892,25 +1892,25 @@ function wa(e, t) {
|
|
|
1892
1892
|
for (const S in h) !In(S) && !(S in g) && r(d, S, h[S], null, b, C);
|
|
1893
1893
|
for (const S in g) {
|
|
1894
1894
|
if (In(S)) continue;
|
|
1895
|
-
const
|
|
1896
|
-
|
|
1895
|
+
const R = g[S], O = h[S];
|
|
1896
|
+
R !== O && S !== "value" && r(d, S, O, R, b, C);
|
|
1897
1897
|
}
|
|
1898
1898
|
"value" in g && r(d, "value", h.value, g.value, b);
|
|
1899
1899
|
}
|
|
1900
|
-
}, Oe = (d, h, g, C, b, S,
|
|
1900
|
+
}, Oe = (d, h, g, C, b, S, R, O, P) => {
|
|
1901
1901
|
const E = h.el = d ? d.el : o(""), F = h.anchor = d ? d.anchor : o("");
|
|
1902
|
-
let { patchFlag: D, dynamicChildren:
|
|
1903
|
-
z && (O = O ? O.concat(z) : z), d == null ? (n(E, g, C), n(F, g, C), q(h.children || [], g, F, b, S,
|
|
1904
|
-
}, N = (d, h, g, C, b, S,
|
|
1905
|
-
h.slotScopeIds = O, d == null ? h.shapeFlag & 512 ? b.ctx.activate(h, g, C,
|
|
1906
|
-
}, G = (d, h, g, C, b, S,
|
|
1907
|
-
const O = d.component =
|
|
1908
|
-
if (ta(d) && (O.ctx.renderer = ge), La(O, !1,
|
|
1909
|
-
if (b && b.registerDep(O, Y,
|
|
1910
|
-
const
|
|
1911
|
-
L(null,
|
|
1902
|
+
let { patchFlag: D, dynamicChildren: H, slotScopeIds: z } = h;
|
|
1903
|
+
z && (O = O ? O.concat(z) : z), d == null ? (n(E, g, C), n(F, g, C), q(h.children || [], g, F, b, S, R, O, P)) : D > 0 && D & 64 && H && d.dynamicChildren && d.dynamicChildren.length === H.length ? (oe(d.dynamicChildren, H, g, b, S, R, O), (h.key != null || b && h === b.subTree) && vs(d, h, !0)) : Le(d, h, g, F, b, S, R, O, P);
|
|
1904
|
+
}, N = (d, h, g, C, b, S, R, O, P) => {
|
|
1905
|
+
h.slotScopeIds = O, d == null ? h.shapeFlag & 512 ? b.ctx.activate(h, g, C, R, P) : G(h, g, C, b, S, R, P) : ne(d, h, P);
|
|
1906
|
+
}, G = (d, h, g, C, b, S, R) => {
|
|
1907
|
+
const O = d.component = ka(d, C, b);
|
|
1908
|
+
if (ta(d) && (O.ctx.renderer = ge), La(O, !1, R), O.asyncDep) {
|
|
1909
|
+
if (b && b.registerDep(O, Y, R), !d.el) {
|
|
1910
|
+
const P = O.subTree = Ae(Nt);
|
|
1911
|
+
L(null, P, h, g), d.placeholder = P.el;
|
|
1912
1912
|
}
|
|
1913
|
-
} else Y(O, d, h, g, b, S,
|
|
1913
|
+
} else Y(O, d, h, g, b, S, R);
|
|
1914
1914
|
}, ne = (d, h, g) => {
|
|
1915
1915
|
const C = h.component = d.component;
|
|
1916
1916
|
if (pa(d, h, g))
|
|
@@ -1921,14 +1921,14 @@ function wa(e, t) {
|
|
|
1921
1921
|
C.next = h, C.update();
|
|
1922
1922
|
else
|
|
1923
1923
|
h.el = d.el, C.vnode = h;
|
|
1924
|
-
}, Y = (d, h, g, C, b, S,
|
|
1924
|
+
}, Y = (d, h, g, C, b, S, R) => {
|
|
1925
1925
|
const O = () => {
|
|
1926
1926
|
if (d.isMounted) {
|
|
1927
|
-
let { next: D, bu:
|
|
1927
|
+
let { next: D, bu: H, u: z, parent: J, vnode: le } = d;
|
|
1928
1928
|
{
|
|
1929
1929
|
const Ie = il(d);
|
|
1930
1930
|
if (Ie) {
|
|
1931
|
-
D && (D.el = le.el, ie(d, D,
|
|
1931
|
+
D && (D.el = le.el, ie(d, D, R)), Ie.asyncDep.then(() => {
|
|
1932
1932
|
qe(() => {
|
|
1933
1933
|
d.isUnmounted || E();
|
|
1934
1934
|
}, b);
|
|
@@ -1937,17 +1937,17 @@ function wa(e, t) {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
let ee = D, Q;
|
|
1940
|
-
qt(d, !1), D ? (D.el = le.el, ie(d, D,
|
|
1940
|
+
qt(d, !1), D ? (D.el = le.el, ie(d, D, R)) : D = le, H && Mi(H), (Q = D.props && D.props.onVnodeBeforeUpdate) && mt(Q, J, D, le), qt(d, !0);
|
|
1941
1941
|
const pe = Li(d), Ce = d.subTree;
|
|
1942
|
-
d.subTree = pe, v(Ce, pe, f(Ce.el),
|
|
1942
|
+
d.subTree = pe, v(Ce, pe, f(Ce.el), Re(Ce), d, b, S), D.el = pe.el, ee === null && va(d, pe.el), z && qe(z, b), (Q = D.props && D.props.onVnodeUpdated) && qe(() => mt(Q, J, D, le), b);
|
|
1943
1943
|
} else {
|
|
1944
1944
|
let D;
|
|
1945
|
-
const { el:
|
|
1946
|
-
if (qt(d, !1), J && Mi(J), !Ce && (D = z && z.onVnodeBeforeMount) && mt(D, ee, h), qt(d, !0),
|
|
1945
|
+
const { el: H, props: z } = h, { bm: J, m: le, parent: ee, root: Q, type: pe } = d, Ce = un(h);
|
|
1946
|
+
if (qt(d, !1), J && Mi(J), !Ce && (D = z && z.onVnodeBeforeMount) && mt(D, ee, h), qt(d, !0), H && et) {
|
|
1947
1947
|
const Ie = () => {
|
|
1948
|
-
d.subTree = Li(d), et(
|
|
1948
|
+
d.subTree = Li(d), et(H, d.subTree, d, b, null);
|
|
1949
1949
|
};
|
|
1950
|
-
Ce && pe.__asyncHydrate ? pe.__asyncHydrate(
|
|
1950
|
+
Ce && pe.__asyncHydrate ? pe.__asyncHydrate(H, d, Ie) : Ie();
|
|
1951
1951
|
} else {
|
|
1952
1952
|
Q.ce && Q.ce._hasShadowRoot() && Q.ce._injectChildStyle(pe, d.parent ? d.parent.type : void 0);
|
|
1953
1953
|
const Ie = d.subTree = Li(d);
|
|
@@ -1961,67 +1961,67 @@ function wa(e, t) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
};
|
|
1963
1963
|
d.scope.on();
|
|
1964
|
-
const
|
|
1964
|
+
const P = d.effect = new Sr(O);
|
|
1965
1965
|
d.scope.off();
|
|
1966
|
-
const E = d.update =
|
|
1967
|
-
F.i = d, F.id = d.uid,
|
|
1966
|
+
const E = d.update = P.run.bind(P), F = d.job = P.runIfDirty.bind(P);
|
|
1967
|
+
F.i = d, F.id = d.uid, P.scheduler = () => ds(F), qt(d, !0), E();
|
|
1968
1968
|
}, ie = (d, h, g) => {
|
|
1969
1969
|
h.component = d;
|
|
1970
1970
|
const C = d.vnode.props;
|
|
1971
|
-
d.vnode = h, d.next = null, ma(d, h.props, C, g), Sa(d, h.children, g),
|
|
1972
|
-
}, Le = (d, h, g, C, b, S,
|
|
1973
|
-
const E = d && d.children, F = d ? d.shapeFlag : 0, D = h.children, { patchFlag:
|
|
1974
|
-
if (
|
|
1975
|
-
if (
|
|
1976
|
-
Xe(E, D, g, C, b, S,
|
|
1971
|
+
d.vnode = h, d.next = null, ma(d, h.props, C, g), Sa(d, h.children, g), Rt(), Ms(d), kt();
|
|
1972
|
+
}, Le = (d, h, g, C, b, S, R, O, P = !1) => {
|
|
1973
|
+
const E = d && d.children, F = d ? d.shapeFlag : 0, D = h.children, { patchFlag: H, shapeFlag: z } = h;
|
|
1974
|
+
if (H > 0) {
|
|
1975
|
+
if (H & 128) {
|
|
1976
|
+
Xe(E, D, g, C, b, S, R, O, P);
|
|
1977
1977
|
return;
|
|
1978
|
-
} else if (
|
|
1979
|
-
je(E, D, g, C, b, S,
|
|
1978
|
+
} else if (H & 256) {
|
|
1979
|
+
je(E, D, g, C, b, S, R, O, P);
|
|
1980
1980
|
return;
|
|
1981
1981
|
}
|
|
1982
1982
|
}
|
|
1983
|
-
z & 8 ? (F & 16 && Qe(E, b, S), D !== E && c(g, D)) : F & 16 ? z & 16 ? Xe(E, D, g, C, b, S,
|
|
1984
|
-
}, je = (d, h, g, C, b, S,
|
|
1983
|
+
z & 8 ? (F & 16 && Qe(E, b, S), D !== E && c(g, D)) : F & 16 ? z & 16 ? Xe(E, D, g, C, b, S, R, O, P) : Qe(E, b, S, !0) : (F & 8 && c(g, ""), z & 16 && q(D, g, C, b, S, R, O, P));
|
|
1984
|
+
}, je = (d, h, g, C, b, S, R, O, P) => {
|
|
1985
1985
|
d = d || rn, h = h || rn;
|
|
1986
1986
|
const E = d.length, F = h.length, D = Math.min(E, F);
|
|
1987
|
-
let
|
|
1988
|
-
for (
|
|
1989
|
-
const z = h[
|
|
1990
|
-
v(d[
|
|
1987
|
+
let H;
|
|
1988
|
+
for (H = 0; H < D; H++) {
|
|
1989
|
+
const z = h[H] = P ? It(h[H]) : St(h[H]);
|
|
1990
|
+
v(d[H], z, g, null, b, S, R, O, P);
|
|
1991
1991
|
}
|
|
1992
|
-
E > F ? Qe(d, b, S, !0, !1, D) : q(h, g, C, b, S,
|
|
1993
|
-
}, Xe = (d, h, g, C, b, S,
|
|
1992
|
+
E > F ? Qe(d, b, S, !0, !1, D) : q(h, g, C, b, S, R, O, P, D);
|
|
1993
|
+
}, Xe = (d, h, g, C, b, S, R, O, P) => {
|
|
1994
1994
|
let E = 0;
|
|
1995
1995
|
const F = h.length;
|
|
1996
|
-
let D = d.length - 1,
|
|
1997
|
-
for (; E <= D && E <=
|
|
1998
|
-
const z = d[E], J = h[E] =
|
|
1999
|
-
if (wn(z, J)) v(z, J, g, null, b, S,
|
|
1996
|
+
let D = d.length - 1, H = F - 1;
|
|
1997
|
+
for (; E <= D && E <= H; ) {
|
|
1998
|
+
const z = d[E], J = h[E] = P ? It(h[E]) : St(h[E]);
|
|
1999
|
+
if (wn(z, J)) v(z, J, g, null, b, S, R, O, P);
|
|
2000
2000
|
else break;
|
|
2001
2001
|
E++;
|
|
2002
2002
|
}
|
|
2003
|
-
for (; E <= D && E <=
|
|
2004
|
-
const z = d[D], J = h[
|
|
2005
|
-
if (wn(z, J)) v(z, J, g, null, b, S,
|
|
2003
|
+
for (; E <= D && E <= H; ) {
|
|
2004
|
+
const z = d[D], J = h[H] = P ? It(h[H]) : St(h[H]);
|
|
2005
|
+
if (wn(z, J)) v(z, J, g, null, b, S, R, O, P);
|
|
2006
2006
|
else break;
|
|
2007
|
-
D--,
|
|
2007
|
+
D--, H--;
|
|
2008
2008
|
}
|
|
2009
2009
|
if (E > D) {
|
|
2010
|
-
if (E <=
|
|
2011
|
-
const z =
|
|
2012
|
-
for (; E <=
|
|
2013
|
-
v(null, h[E] =
|
|
2010
|
+
if (E <= H) {
|
|
2011
|
+
const z = H + 1, J = z < F ? h[z].el : C;
|
|
2012
|
+
for (; E <= H; )
|
|
2013
|
+
v(null, h[E] = P ? It(h[E]) : St(h[E]), g, J, b, S, R, O, P), E++;
|
|
2014
2014
|
}
|
|
2015
|
-
} else if (E >
|
|
2015
|
+
} else if (E > H) for (; E <= D; )
|
|
2016
2016
|
Ne(d[E], b, S, !0), E++;
|
|
2017
2017
|
else {
|
|
2018
2018
|
const z = E, J = E, le = /* @__PURE__ */ new Map();
|
|
2019
|
-
for (E = J; E <=
|
|
2020
|
-
const ye = h[E] =
|
|
2019
|
+
for (E = J; E <= H; E++) {
|
|
2020
|
+
const ye = h[E] = P ? It(h[E]) : St(h[E]);
|
|
2021
2021
|
ye.key != null && le.set(ye.key, E);
|
|
2022
2022
|
}
|
|
2023
2023
|
let ee, Q = 0;
|
|
2024
|
-
const pe =
|
|
2024
|
+
const pe = H - J + 1;
|
|
2025
2025
|
let Ce = !1, Ie = 0;
|
|
2026
2026
|
const dt = new Array(pe);
|
|
2027
2027
|
for (E = 0; E < pe; E++) dt[E] = 0;
|
|
@@ -2033,20 +2033,20 @@ function wa(e, t) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
let Se;
|
|
2035
2035
|
if (ye.key != null) Se = le.get(ye.key);
|
|
2036
|
-
else for (ee = J; ee <=
|
|
2036
|
+
else for (ee = J; ee <= H; ee++) if (dt[ee - J] === 0 && wn(ye, h[ee])) {
|
|
2037
2037
|
Se = ee;
|
|
2038
2038
|
break;
|
|
2039
2039
|
}
|
|
2040
|
-
Se === void 0 ? Ne(ye, b, S, !0) : (dt[Se - J] = E + 1, Se >= Ie ? Ie = Se : Ce = !0, v(ye, h[Se], g, null, b, S,
|
|
2040
|
+
Se === void 0 ? Ne(ye, b, S, !0) : (dt[Se - J] = E + 1, Se >= Ie ? Ie = Se : Ce = !0, v(ye, h[Se], g, null, b, S, R, O, P), Q++);
|
|
2041
2041
|
}
|
|
2042
2042
|
const jt = Ce ? Ca(dt) : rn;
|
|
2043
2043
|
for (ee = jt.length - 1, E = pe - 1; E >= 0; E--) {
|
|
2044
2044
|
const ye = J + E, Se = h[ye], Ue = h[ye + 1], $t = ye + 1 < F ? Ue.el || sl(Ue) : C;
|
|
2045
|
-
dt[E] === 0 ? v(null, Se, g, $t, b, S,
|
|
2045
|
+
dt[E] === 0 ? v(null, Se, g, $t, b, S, R, O, P) : Ce && (ee < 0 || E !== jt[ee] ? ze(Se, g, $t, 2) : ee--);
|
|
2046
2046
|
}
|
|
2047
2047
|
}
|
|
2048
2048
|
}, ze = (d, h, g, C, b = null) => {
|
|
2049
|
-
const { el: S, type:
|
|
2049
|
+
const { el: S, type: R, transition: O, children: P, shapeFlag: E } = d;
|
|
2050
2050
|
if (E & 6) {
|
|
2051
2051
|
ze(d.component.subTree, h, g, C);
|
|
2052
2052
|
return;
|
|
@@ -2056,52 +2056,52 @@ function wa(e, t) {
|
|
|
2056
2056
|
return;
|
|
2057
2057
|
}
|
|
2058
2058
|
if (E & 64) {
|
|
2059
|
-
|
|
2059
|
+
R.move(d, h, g, ge);
|
|
2060
2060
|
return;
|
|
2061
2061
|
}
|
|
2062
|
-
if (
|
|
2062
|
+
if (R === be) {
|
|
2063
2063
|
n(S, h, g);
|
|
2064
|
-
for (let F = 0; F <
|
|
2064
|
+
for (let F = 0; F < P.length; F++) ze(P[F], h, g, C);
|
|
2065
2065
|
n(d.anchor, h, g);
|
|
2066
2066
|
return;
|
|
2067
2067
|
}
|
|
2068
|
-
if (
|
|
2069
|
-
|
|
2068
|
+
if (R === kn) {
|
|
2069
|
+
A(d, h, g);
|
|
2070
2070
|
return;
|
|
2071
2071
|
}
|
|
2072
2072
|
if (C !== 2 && E & 1 && O)
|
|
2073
2073
|
if (C === 0)
|
|
2074
|
-
O.persisted && !S[
|
|
2074
|
+
O.persisted && !S[Ri] ? n(S, h, g) : (O.beforeEnter(S), n(S, h, g), qe(() => O.enter(S), b));
|
|
2075
2075
|
else {
|
|
2076
|
-
const { leave: F, delayLeave: D, afterLeave:
|
|
2076
|
+
const { leave: F, delayLeave: D, afterLeave: H } = O, z = () => {
|
|
2077
2077
|
d.ctx.isUnmounted ? s(S) : n(S, h, g);
|
|
2078
2078
|
}, J = () => {
|
|
2079
|
-
const le = S._isLeaving || !!S[
|
|
2080
|
-
S._isLeaving && S[
|
|
2081
|
-
z(),
|
|
2079
|
+
const le = S._isLeaving || !!S[Ri];
|
|
2080
|
+
S._isLeaving && S[Ri](!0), O.persisted && !le ? z() : F(S, () => {
|
|
2081
|
+
z(), H && H();
|
|
2082
2082
|
});
|
|
2083
2083
|
};
|
|
2084
2084
|
D ? D(S, z, J) : J();
|
|
2085
2085
|
}
|
|
2086
2086
|
else n(S, h, g);
|
|
2087
2087
|
}, Ne = (d, h, g, C = !1, b = !1) => {
|
|
2088
|
-
const { type: S, props:
|
|
2089
|
-
if (D === -2 && (b = !1), O != null && (
|
|
2088
|
+
const { type: S, props: R, ref: O, children: P, dynamicChildren: E, shapeFlag: F, patchFlag: D, dirs: H, cacheIndex: z, memo: J } = d;
|
|
2089
|
+
if (D === -2 && (b = !1), O != null && (Rt(), On(O, null, g, d, !0), kt()), z != null && (h.renderCache[z] = void 0), F & 256) {
|
|
2090
2090
|
h.ctx.deactivate(d);
|
|
2091
2091
|
return;
|
|
2092
2092
|
}
|
|
2093
|
-
const le = F & 1 &&
|
|
2093
|
+
const le = F & 1 && H, ee = !un(d);
|
|
2094
2094
|
let Q;
|
|
2095
|
-
if (ee && (Q =
|
|
2095
|
+
if (ee && (Q = R && R.onVnodeBeforeUnmount) && mt(Q, h, d), F & 6) Ct(d.component, g, C);
|
|
2096
2096
|
else {
|
|
2097
2097
|
if (F & 128) {
|
|
2098
2098
|
d.suspense.unmount(g, C);
|
|
2099
2099
|
return;
|
|
2100
2100
|
}
|
|
2101
|
-
le && Ut(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ge, C) : E && !E.hasOnce && (S !== be || D > 0 && D & 64) ? Qe(E, h, g, !1, !0) : (S === be && D & 384 || !b && F & 16) && Qe(
|
|
2101
|
+
le && Ut(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ge, C) : E && !E.hasOnce && (S !== be || D > 0 && D & 64) ? Qe(E, h, g, !1, !0) : (S === be && D & 384 || !b && F & 16) && Qe(P, h, g), C && ot(d);
|
|
2102
2102
|
}
|
|
2103
2103
|
const pe = J != null && z == null;
|
|
2104
|
-
(ee && (Q =
|
|
2104
|
+
(ee && (Q = R && R.onVnodeUnmounted) || le || pe) && qe(() => {
|
|
2105
2105
|
Q && mt(Q, h, d), le && Ut(d, null, h, "unmounted"), pe && (d.el = null);
|
|
2106
2106
|
}, g);
|
|
2107
2107
|
}, ot = (d) => {
|
|
@@ -2110,16 +2110,16 @@ function wa(e, t) {
|
|
|
2110
2110
|
ut(g, C);
|
|
2111
2111
|
return;
|
|
2112
2112
|
}
|
|
2113
|
-
if (h ===
|
|
2114
|
-
|
|
2113
|
+
if (h === kn) {
|
|
2114
|
+
M(d);
|
|
2115
2115
|
return;
|
|
2116
2116
|
}
|
|
2117
2117
|
const S = () => {
|
|
2118
2118
|
s(g), b && !b.persisted && b.afterLeave && b.afterLeave();
|
|
2119
2119
|
};
|
|
2120
2120
|
if (d.shapeFlag & 1 && b && !b.persisted) {
|
|
2121
|
-
const { leave:
|
|
2122
|
-
O ? O(d.el, S,
|
|
2121
|
+
const { leave: R, delayLeave: O } = b, P = () => R(g, S);
|
|
2122
|
+
O ? O(d.el, S, P) : P();
|
|
2123
2123
|
} else S();
|
|
2124
2124
|
}, ut = (d, h) => {
|
|
2125
2125
|
let g;
|
|
@@ -2127,14 +2127,14 @@ function wa(e, t) {
|
|
|
2127
2127
|
g = p(d), s(d), d = g;
|
|
2128
2128
|
s(h);
|
|
2129
2129
|
}, Ct = (d, h, g) => {
|
|
2130
|
-
const { bum: C, scope: b, job: S, subTree:
|
|
2131
|
-
Ns(
|
|
2130
|
+
const { bum: C, scope: b, job: S, subTree: R, um: O, m: P, a: E } = d;
|
|
2131
|
+
Ns(P), Ns(E), C && Mi(C), b.stop(), S && (S.flags |= 8, Ne(R, d, h, g)), O && qe(O, h), qe(() => {
|
|
2132
2132
|
d.isUnmounted = !0;
|
|
2133
2133
|
}, h);
|
|
2134
2134
|
}, Qe = (d, h, g, C = !1, b = !1, S = 0) => {
|
|
2135
|
-
for (let
|
|
2136
|
-
},
|
|
2137
|
-
if (d.shapeFlag & 6) return
|
|
2135
|
+
for (let R = S; R < d.length; R++) Ne(d[R], h, g, C, b);
|
|
2136
|
+
}, Re = (d) => {
|
|
2137
|
+
if (d.shapeFlag & 6) return Re(d.component.subTree);
|
|
2138
2138
|
if (d.shapeFlag & 128) return d.suspense.next();
|
|
2139
2139
|
const h = p(d.anchor || d.el), g = h && h[zr];
|
|
2140
2140
|
return g ? p(g) : h;
|
|
@@ -2152,7 +2152,7 @@ function wa(e, t) {
|
|
|
2152
2152
|
mc: q,
|
|
2153
2153
|
pc: Le,
|
|
2154
2154
|
pbc: oe,
|
|
2155
|
-
n:
|
|
2155
|
+
n: Re,
|
|
2156
2156
|
o: e
|
|
2157
2157
|
};
|
|
2158
2158
|
let ct, et;
|
|
@@ -2216,7 +2216,7 @@ var rl = (e) => e.__isSuspense;
|
|
|
2216
2216
|
function xa(e, t) {
|
|
2217
2217
|
t && t.pendingBranch ? X(e) ? t.effects.push(...e) : t.effects.push(e) : Br(e);
|
|
2218
2218
|
}
|
|
2219
|
-
var be = /* @__PURE__ */ Symbol.for("v-fgt"), Ei = /* @__PURE__ */ Symbol.for("v-txt"), Nt = /* @__PURE__ */ Symbol.for("v-cmt"),
|
|
2219
|
+
var be = /* @__PURE__ */ Symbol.for("v-fgt"), Ei = /* @__PURE__ */ Symbol.for("v-txt"), Nt = /* @__PURE__ */ Symbol.for("v-cmt"), kn = /* @__PURE__ */ Symbol.for("v-stc"), Ln = [], it = null;
|
|
2220
2220
|
function $(e = !1) {
|
|
2221
2221
|
Ln.push(it = e ? null : []);
|
|
2222
2222
|
}
|
|
@@ -2242,7 +2242,7 @@ function gs(e) {
|
|
|
2242
2242
|
function wn(e, t) {
|
|
2243
2243
|
return e.type === t.type && e.key === t.key;
|
|
2244
2244
|
}
|
|
2245
|
-
var ol = ({ key: e }) => e ?? null, Qn = ({ ref: e, ref_key: t, ref_for: i }) => (typeof e == "number" && (e = "" + e), e != null ? Te(e) || /* @__PURE__ */
|
|
2245
|
+
var ol = ({ key: e }) => e ?? null, Qn = ({ ref: e, ref_key: t, ref_for: i }) => (typeof e == "number" && (e = "" + e), e != null ? Te(e) || /* @__PURE__ */ ke(e) || ue(e) ? {
|
|
2246
2246
|
i: Ve,
|
|
2247
2247
|
r: e,
|
|
2248
2248
|
k: t,
|
|
@@ -2335,7 +2335,7 @@ function ms(e = " ", t = 0) {
|
|
|
2335
2335
|
return Ae(Ei, null, e, t);
|
|
2336
2336
|
}
|
|
2337
2337
|
function Zi(e, t) {
|
|
2338
|
-
const i = Ae(
|
|
2338
|
+
const i = Ae(kn, null, e);
|
|
2339
2339
|
return i.staticCount = t, i;
|
|
2340
2340
|
}
|
|
2341
2341
|
function ae(e = "", t = !1) {
|
|
@@ -2392,10 +2392,10 @@ function Aa(...e) {
|
|
|
2392
2392
|
function mt(e, t, i, n = null) {
|
|
2393
2393
|
wt(e, t, 7, [i, n]);
|
|
2394
2394
|
}
|
|
2395
|
-
var Oa = Gr(),
|
|
2396
|
-
function
|
|
2395
|
+
var Oa = Gr(), Ra = 0;
|
|
2396
|
+
function ka(e, t, i) {
|
|
2397
2397
|
const n = e.type, s = (t ? t.appContext : e.appContext) || Oa, r = {
|
|
2398
|
-
uid:
|
|
2398
|
+
uid: Ra++,
|
|
2399
2399
|
vnode: e,
|
|
2400
2400
|
type: n,
|
|
2401
2401
|
parent: t,
|
|
@@ -2494,9 +2494,9 @@ function Na(e, t) {
|
|
|
2494
2494
|
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ra);
|
|
2495
2495
|
const { setup: n } = i;
|
|
2496
2496
|
if (n) {
|
|
2497
|
-
|
|
2497
|
+
Rt();
|
|
2498
2498
|
const s = e.setupContext = n.length > 1 ? cl(e) : null, r = _s(e), l = jn(n, e, 0, [e.props, s]), o = fr(l);
|
|
2499
|
-
if (
|
|
2499
|
+
if (kt(), r(), (o || e.sp) && !un(e) && ea(e), o) {
|
|
2500
2500
|
if (l.then(Fs, Fs), t) return l.then((a) => {
|
|
2501
2501
|
$s(e, a, t);
|
|
2502
2502
|
}).catch((a) => {
|
|
@@ -2541,13 +2541,13 @@ function cl(e) {
|
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
2543
|
function Ti(e) {
|
|
2544
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Dr(
|
|
2544
|
+
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Dr(Ro(e.exposed)), {
|
|
2545
2545
|
get(t, i) {
|
|
2546
2546
|
if (i in t) return t[i];
|
|
2547
|
-
if (i in
|
|
2547
|
+
if (i in Rn) return Rn[i](e);
|
|
2548
2548
|
},
|
|
2549
2549
|
has(t, i) {
|
|
2550
|
-
return i in t || i in
|
|
2550
|
+
return i in t || i in Rn;
|
|
2551
2551
|
}
|
|
2552
2552
|
})) : e.proxy;
|
|
2553
2553
|
}
|
|
@@ -2654,7 +2654,7 @@ function ts(e, t) {
|
|
|
2654
2654
|
for (; e.component; ) e = e.component.subTree;
|
|
2655
2655
|
if (e.shapeFlag & 1 && e.el) ui(e.el, t);
|
|
2656
2656
|
else if (e.type === be) e.children.forEach((i) => ts(i, t));
|
|
2657
|
-
else if (e.type ===
|
|
2657
|
+
else if (e.type === kn) {
|
|
2658
2658
|
let { el: i, anchor: n } = e;
|
|
2659
2659
|
for (; i && (ui(i, t), i !== n); )
|
|
2660
2660
|
i = i.nextSibling;
|
|
@@ -3066,7 +3066,7 @@ function pn() {
|
|
|
3066
3066
|
var El = /* @__PURE__ */ Je({
|
|
3067
3067
|
__name: "Frame",
|
|
3068
3068
|
setup(e, { expose: t }) {
|
|
3069
|
-
const i = /* @__PURE__ */
|
|
3069
|
+
const i = /* @__PURE__ */ k(null), { frameLoading: n, showEmptyState: s, showError: r, iframeSource: l, emptyStateText: o, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = pn();
|
|
3070
3070
|
function f(m, T) {
|
|
3071
3071
|
i.value?.contentWindow && i.value.contentWindow.postMessage({
|
|
3072
3072
|
type: m,
|
|
@@ -3132,7 +3132,7 @@ var Iu = El, wl = /* @__PURE__ */ Je({
|
|
|
3132
3132
|
__name: "Header",
|
|
3133
3133
|
setup(e, { expose: t }) {
|
|
3134
3134
|
t();
|
|
3135
|
-
const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled: l, theme: o, resolvedTheme: a, minimized: u, promptDockVisible: c, reviewPanelVisible: f, reviewPanelEnabled: p, mode: m, displayMode: T, splitPosition: v, handleToggleSessionList: _, handleToggleSelectMode: L, handleToggleTheme:
|
|
3135
|
+
const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled: l, theme: o, resolvedTheme: a, minimized: u, promptDockVisible: c, reviewPanelVisible: f, reviewPanelEnabled: p, mode: m, displayMode: T, splitPosition: v, handleToggleSessionList: _, handleToggleSelectMode: L, handleToggleTheme: I, handleToggleDisplayMode: A, handleToggleSplitPosition: M, handleClose: B, handleToggleMinimize: Z, handleTogglePromptDock: W, handleToggleReviewPanel: q, handleRefresh: V, handleCreateSession: oe } = pn(), K = {
|
|
3136
3136
|
title: i,
|
|
3137
3137
|
sessionListTitle: n,
|
|
3138
3138
|
sessionListCollapsed: s,
|
|
@@ -3149,14 +3149,14 @@ var Iu = El, wl = /* @__PURE__ */ Je({
|
|
|
3149
3149
|
splitPosition: v,
|
|
3150
3150
|
handleToggleSessionList: _,
|
|
3151
3151
|
handleToggleSelectMode: L,
|
|
3152
|
-
handleToggleTheme:
|
|
3153
|
-
handleToggleDisplayMode:
|
|
3154
|
-
handleToggleSplitPosition:
|
|
3155
|
-
handleClose:
|
|
3152
|
+
handleToggleTheme: I,
|
|
3153
|
+
handleToggleDisplayMode: A,
|
|
3154
|
+
handleToggleSplitPosition: M,
|
|
3155
|
+
handleClose: B,
|
|
3156
3156
|
handleToggleMinimize: Z,
|
|
3157
|
-
handleTogglePromptDock:
|
|
3157
|
+
handleTogglePromptDock: W,
|
|
3158
3158
|
handleToggleReviewPanel: q,
|
|
3159
|
-
handleRefresh:
|
|
3159
|
+
handleRefresh: V,
|
|
3160
3160
|
handleCreateSession: oe,
|
|
3161
3161
|
isSplitMode: U(() => m.value === "split"),
|
|
3162
3162
|
themeIconTitle: U(() => `主题: ${{
|
|
@@ -3205,7 +3205,7 @@ var Iu = El, wl = /* @__PURE__ */ Je({
|
|
|
3205
3205
|
"title",
|
|
3206
3206
|
"aria-label",
|
|
3207
3207
|
"aria-expanded"
|
|
3208
|
-
],
|
|
3208
|
+
], Ru = ["aria-pressed", "disabled"], ku = ["title", "aria-label"], Lu = {
|
|
3209
3209
|
key: 0,
|
|
3210
3210
|
viewBox: "0 0 24 24",
|
|
3211
3211
|
width: "16",
|
|
@@ -3349,14 +3349,14 @@ function Ju(e, t, i, n, s, r) {
|
|
|
3349
3349
|
}), y("path", {
|
|
3350
3350
|
fill: "currentColor",
|
|
3351
3351
|
d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"
|
|
3352
|
-
})], -1))])], 10,
|
|
3352
|
+
})], -1))])], 10, Ru),
|
|
3353
3353
|
y("button", {
|
|
3354
3354
|
class: "aipanel-header-btn theme-btn",
|
|
3355
3355
|
type: "button",
|
|
3356
3356
|
title: n.themeIconTitle,
|
|
3357
3357
|
"aria-label": n.themeIconLabel,
|
|
3358
3358
|
onClick: t[2] || (t[2] = (...l) => n.handleToggleTheme && n.handleToggleTheme(...l))
|
|
3359
|
-
}, [te(e.$slots, "theme-icon", {}, () => [n.theme === "light" ? ($(), j("svg", Lu, [...t[13] || (t[13] = [Zi('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : n.theme === "dark" ? ($(), j("svg", Nu, [...t[14] || (t[14] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), j("svg", Du, [...t[15] || (t[15] = [Zi('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8,
|
|
3359
|
+
}, [te(e.$slots, "theme-icon", {}, () => [n.theme === "light" ? ($(), j("svg", Lu, [...t[13] || (t[13] = [Zi('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : n.theme === "dark" ? ($(), j("svg", Nu, [...t[14] || (t[14] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), j("svg", Du, [...t[15] || (t[15] = [Zi('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8, ku),
|
|
3360
3360
|
n.displayMode !== "extension" ? ($(), j("button", {
|
|
3361
3361
|
key: 0,
|
|
3362
3362
|
class: "aipanel-header-btn display-mode-btn",
|
|
@@ -3563,7 +3563,7 @@ var Zu = wl, Tl = /* @__PURE__ */ Je({
|
|
|
3563
3563
|
__name: "SessionList",
|
|
3564
3564
|
setup(e, { expose: t }) {
|
|
3565
3565
|
t();
|
|
3566
|
-
const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession: l, handleSelectSession: o, handleDeleteSession: a, sessionKey: u, sessionStates: c } = pn(), f = /* @__PURE__ */
|
|
3566
|
+
const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession: l, handleSelectSession: o, handleDeleteSession: a, sessionKey: u, sessionStates: c } = pn(), f = /* @__PURE__ */ k(!1);
|
|
3567
3567
|
let p = null;
|
|
3568
3568
|
Be(i, () => {
|
|
3569
3569
|
f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
|
|
@@ -3729,7 +3729,7 @@ var _c = Cl, xl = /* @__PURE__ */ Je({
|
|
|
3729
3729
|
],
|
|
3730
3730
|
setup(e, { expose: t, emit: i }) {
|
|
3731
3731
|
t();
|
|
3732
|
-
const n = e, s = i, r = /* @__PURE__ */
|
|
3732
|
+
const n = e, s = i, r = /* @__PURE__ */ k(!1), l = /* @__PURE__ */ k(0), o = /* @__PURE__ */ k(0), a = (m) => {
|
|
3733
3733
|
m.preventDefault(), r.value = !0, l.value = m.clientX, o.value = n.width, s("resize-start"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
|
|
3734
3734
|
}, u = (m) => {
|
|
3735
3735
|
if (!r.value) return;
|
|
@@ -3867,7 +3867,7 @@ var bc = xl, Ml = /* @__PURE__ */ Je({
|
|
|
3867
3867
|
"-animationOrigin.x": m.animationOrigin.x,
|
|
3868
3868
|
"-animationOrigin.y": m.animationOrigin.y
|
|
3869
3869
|
}));
|
|
3870
|
-
const n = e, s = i, r = Kr(), l = /* @__PURE__ */
|
|
3870
|
+
const n = e, s = i, r = Kr(), l = /* @__PURE__ */ k(null), o = (m, T) => {
|
|
3871
3871
|
l.value?.sendMessageToIframe(m, T);
|
|
3872
3872
|
};
|
|
3873
3873
|
t({
|
|
@@ -4068,7 +4068,7 @@ function Oc(e, t, i, n, s, r) {
|
|
|
4068
4068
|
return $(), 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", Ac, $e(n.shortcutLabel), 1)], 2);
|
|
4069
4069
|
}
|
|
4070
4070
|
Il.render = Oc;
|
|
4071
|
-
var
|
|
4071
|
+
var Rc = Il, Pl = /* @__PURE__ */ Je({
|
|
4072
4072
|
name: "FloatingBubble",
|
|
4073
4073
|
__name: "FloatingBubble",
|
|
4074
4074
|
props: {
|
|
@@ -4106,12 +4106,12 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4106
4106
|
"drag-end"
|
|
4107
4107
|
],
|
|
4108
4108
|
setup(e, { expose: t, emit: i }) {
|
|
4109
|
-
const n = e, s = i, r = /* @__PURE__ */
|
|
4109
|
+
const n = e, s = i, r = /* @__PURE__ */ k(null), l = /* @__PURE__ */ k({
|
|
4110
4110
|
x: 0,
|
|
4111
4111
|
y: 0,
|
|
4112
4112
|
width: 0,
|
|
4113
4113
|
height: 0
|
|
4114
|
-
}), o = (N) => N !== null && typeof N == "object", a = U(() => o(n.gap) ? n.gap.x : n.gap), u = U(() => o(n.gap) ? n.gap.y : n.gap), c = /* @__PURE__ */
|
|
4114
|
+
}), o = (N) => N !== null && typeof N == "object", a = U(() => o(n.gap) ? n.gap.x : n.gap), u = U(() => o(n.gap) ? n.gap.y : n.gap), c = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ k(typeof window < "u" ? window.innerHeight : 0), p = U(() => ({
|
|
4115
4115
|
top: u.value,
|
|
4116
4116
|
right: c.value - l.value.width - a.value,
|
|
4117
4117
|
bottom: f.value - l.value.height - u.value,
|
|
@@ -4128,10 +4128,10 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4128
4128
|
const N = m([p.value.top, p.value.bottom], l.value.y);
|
|
4129
4129
|
l.value.y = N;
|
|
4130
4130
|
}
|
|
4131
|
-
}, v = /* @__PURE__ */
|
|
4131
|
+
}, v = /* @__PURE__ */ k(!1), _ = /* @__PURE__ */ k(!1), L = /* @__PURE__ */ k(null), I = U(() => {
|
|
4132
4132
|
const N = {};
|
|
4133
4133
|
return N.transform = `translate3d(${`${l.value.x}px`}, ${`${l.value.y}px`}, 0)`, v.value || !_.value ? N.transition = "none" : N.transition = "transform 0.3s ease", N;
|
|
4134
|
-
}),
|
|
4134
|
+
}), A = () => {
|
|
4135
4135
|
if (!r.value || typeof window > "u") return;
|
|
4136
4136
|
const N = r.value.getBoundingClientRect(), { offset: G } = n;
|
|
4137
4137
|
let ne = G ? G.x : c.value - N.width - a.value, Y = G ? G.y : f.value - N.height - u.value;
|
|
@@ -4150,14 +4150,14 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4150
4150
|
};
|
|
4151
4151
|
s("update:offset", ze), s("offset-change", ze);
|
|
4152
4152
|
}
|
|
4153
|
-
},
|
|
4154
|
-
startX: /* @__PURE__ */
|
|
4155
|
-
startY: /* @__PURE__ */
|
|
4156
|
-
deltaX: /* @__PURE__ */
|
|
4157
|
-
deltaY: /* @__PURE__ */
|
|
4158
|
-
offsetX: /* @__PURE__ */
|
|
4159
|
-
offsetY: /* @__PURE__ */
|
|
4160
|
-
isTap: /* @__PURE__ */
|
|
4153
|
+
}, M = {
|
|
4154
|
+
startX: /* @__PURE__ */ k(0),
|
|
4155
|
+
startY: /* @__PURE__ */ k(0),
|
|
4156
|
+
deltaX: /* @__PURE__ */ k(0),
|
|
4157
|
+
deltaY: /* @__PURE__ */ k(0),
|
|
4158
|
+
offsetX: /* @__PURE__ */ k(0),
|
|
4159
|
+
offsetY: /* @__PURE__ */ k(0),
|
|
4160
|
+
isTap: /* @__PURE__ */ k(!0),
|
|
4161
4161
|
start(N) {
|
|
4162
4162
|
this.startX.value = "touches" in N ? N.touches[0].clientX : N.clientX, this.startY.value = "touches" in N ? N.touches[0].clientY : N.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
|
|
4163
4163
|
},
|
|
@@ -4168,19 +4168,19 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4168
4168
|
this.isTap.value && (this.offsetX.value > Y || this.offsetY.value > Y) && (this.isTap.value = !1);
|
|
4169
4169
|
}
|
|
4170
4170
|
};
|
|
4171
|
-
let
|
|
4172
|
-
const
|
|
4173
|
-
|
|
4171
|
+
let B = 0, Z = 0;
|
|
4172
|
+
const W = (N) => {
|
|
4173
|
+
M.start(N), v.value = !0, B = l.value.x, Z = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in N || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", V));
|
|
4174
4174
|
}, q = (N) => {
|
|
4175
4175
|
N.cancelable && N.preventDefault();
|
|
4176
|
-
const G =
|
|
4177
|
-
if (
|
|
4176
|
+
const G = M.isTap.value;
|
|
4177
|
+
if (M.move(N), G && !M.isTap.value && s("drag-start"), n.axis !== "lock" && !M.isTap.value) {
|
|
4178
4178
|
if (n.axis === "x" || n.axis === "xy") {
|
|
4179
|
-
let Y =
|
|
4179
|
+
let Y = B + M.deltaX.value;
|
|
4180
4180
|
Y < p.value.left && (Y = p.value.left), Y > p.value.right && (Y = p.value.right), l.value.x = Y;
|
|
4181
4181
|
}
|
|
4182
4182
|
if (n.axis === "y" || n.axis === "xy") {
|
|
4183
|
-
let Y = Z +
|
|
4183
|
+
let Y = Z + M.deltaY.value;
|
|
4184
4184
|
Y < p.value.top && (Y = p.value.top), Y > p.value.bottom && (Y = p.value.bottom), l.value.y = Y;
|
|
4185
4185
|
}
|
|
4186
4186
|
const ne = {
|
|
@@ -4189,39 +4189,39 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4189
4189
|
};
|
|
4190
4190
|
s("update:offset", ne);
|
|
4191
4191
|
}
|
|
4192
|
-
},
|
|
4193
|
-
v.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup",
|
|
4194
|
-
if (n.magnetic === "x" && !
|
|
4192
|
+
}, V = (N) => {
|
|
4193
|
+
v.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", V)), requestAnimationFrame(() => {
|
|
4194
|
+
if (n.magnetic === "x" && !M.isTap.value) {
|
|
4195
4195
|
const G = l.value.x + l.value.width / 2, ne = c.value / 2;
|
|
4196
4196
|
L.value = G < ne ? "left" : "right";
|
|
4197
4197
|
}
|
|
4198
|
-
if (T(), !
|
|
4198
|
+
if (T(), !M.isTap.value) {
|
|
4199
4199
|
s("drag-end");
|
|
4200
4200
|
const G = {
|
|
4201
4201
|
x: l.value.x,
|
|
4202
4202
|
y: l.value.y
|
|
4203
4203
|
};
|
|
4204
|
-
s("update:offset", G), (
|
|
4204
|
+
s("update:offset", G), (B !== G.x || Z !== G.y) && s("offset-change", G);
|
|
4205
4205
|
}
|
|
4206
4206
|
});
|
|
4207
4207
|
}, oe = (N) => {
|
|
4208
|
-
|
|
4208
|
+
M.isTap.value ? s("click", N) : N.stopPropagation();
|
|
4209
4209
|
}, K = () => {
|
|
4210
4210
|
typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
|
|
4211
4211
|
};
|
|
4212
4212
|
Ze(() => {
|
|
4213
|
-
|
|
4213
|
+
A(), requestAnimationFrame(() => {
|
|
4214
4214
|
_.value = !0;
|
|
4215
4215
|
}), typeof window < "u" && window.addEventListener("resize", K), r.value && r.value.addEventListener("touchmove", q, { passive: !1 });
|
|
4216
4216
|
}), Ye(() => {
|
|
4217
|
-
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", K), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup",
|
|
4217
|
+
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", K), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", V)), r.value && r.value.removeEventListener("touchmove", q);
|
|
4218
4218
|
}), Be([
|
|
4219
4219
|
c,
|
|
4220
4220
|
f,
|
|
4221
4221
|
a,
|
|
4222
4222
|
u
|
|
4223
|
-
],
|
|
4224
|
-
N && (L.value = null),
|
|
4223
|
+
], A), Be(() => n.offset, (N) => {
|
|
4224
|
+
N && (L.value = null), A();
|
|
4225
4225
|
}, { deep: !0 }), t({ offset: U(() => ({
|
|
4226
4226
|
x: l.value.x,
|
|
4227
4227
|
y: l.value.y
|
|
@@ -4242,14 +4242,14 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4242
4242
|
dragging: v,
|
|
4243
4243
|
initialized: _,
|
|
4244
4244
|
magneticSide: L,
|
|
4245
|
-
rootStyle:
|
|
4246
|
-
updateState:
|
|
4247
|
-
touch:
|
|
4245
|
+
rootStyle: I,
|
|
4246
|
+
updateState: A,
|
|
4247
|
+
touch: M,
|
|
4248
4248
|
get prevX() {
|
|
4249
|
-
return
|
|
4249
|
+
return B;
|
|
4250
4250
|
},
|
|
4251
4251
|
set prevX(N) {
|
|
4252
|
-
|
|
4252
|
+
B = N;
|
|
4253
4253
|
},
|
|
4254
4254
|
get prevY() {
|
|
4255
4255
|
return Z;
|
|
@@ -4257,9 +4257,9 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4257
4257
|
set prevY(N) {
|
|
4258
4258
|
Z = N;
|
|
4259
4259
|
},
|
|
4260
|
-
onTouchStart:
|
|
4260
|
+
onTouchStart: W,
|
|
4261
4261
|
onTouchMove: q,
|
|
4262
|
-
onTouchEnd:
|
|
4262
|
+
onTouchEnd: V,
|
|
4263
4263
|
onClick: oe,
|
|
4264
4264
|
handleResize: K
|
|
4265
4265
|
};
|
|
@@ -4269,7 +4269,7 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
|
|
|
4269
4269
|
}), Oe;
|
|
4270
4270
|
}
|
|
4271
4271
|
});
|
|
4272
|
-
function
|
|
4272
|
+
function kc(e, t, i, n, s, r) {
|
|
4273
4273
|
return $(), Tt(Ur, { to: i.teleport }, [y("div", {
|
|
4274
4274
|
ref: "rootRef",
|
|
4275
4275
|
class: "floating-bubble",
|
|
@@ -4281,7 +4281,7 @@ function Rc(e, t, i, n, s, r) {
|
|
|
4281
4281
|
onClickCapture: n.onClick
|
|
4282
4282
|
}, [te(e.$slots, "default")], 36)], 8, ["to"]);
|
|
4283
4283
|
}
|
|
4284
|
-
Pl.render =
|
|
4284
|
+
Pl.render = kc;
|
|
4285
4285
|
var Lc = Pl, Nc = `<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%">
|
|
4286
4286
|
<defs>
|
|
4287
4287
|
<linearGradient id="aipanel-logo-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
@@ -4338,7 +4338,7 @@ var $c = Al, Ol = /* @__PURE__ */ Je({
|
|
|
4338
4338
|
__name: "Trigger",
|
|
4339
4339
|
emits: ["drag-start", "drag-end"],
|
|
4340
4340
|
setup(e, { expose: t, emit: i }) {
|
|
4341
|
-
const { buttonActive: n, open: s, hotkeyLabel: r, thinking: l, resolvedTheme: o, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = pn(), f = /* @__PURE__ */
|
|
4341
|
+
const { buttonActive: n, open: s, hotkeyLabel: r, thinking: l, resolvedTheme: o, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = pn(), f = /* @__PURE__ */ k(u.value), p = i, m = (v) => {
|
|
4342
4342
|
f.value = v, c(v);
|
|
4343
4343
|
};
|
|
4344
4344
|
Be(u, (v) => {
|
|
@@ -4511,7 +4511,7 @@ var Bi = [
|
|
|
4511
4511
|
"dark"
|
|
4512
4512
|
];
|
|
4513
4513
|
function Gc(e) {
|
|
4514
|
-
const t = /* @__PURE__ */
|
|
4514
|
+
const t = /* @__PURE__ */ k("light");
|
|
4515
4515
|
function i() {
|
|
4516
4516
|
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
4517
4517
|
}
|
|
@@ -4558,7 +4558,7 @@ function Gc(e) {
|
|
|
4558
4558
|
handleToggleTheme: T
|
|
4559
4559
|
};
|
|
4560
4560
|
}
|
|
4561
|
-
function
|
|
4561
|
+
function Rl(e) {
|
|
4562
4562
|
return typeof e == "object" && e !== null && e.nodeType === Node.ELEMENT_NODE;
|
|
4563
4563
|
}
|
|
4564
4564
|
var Hn = {
|
|
@@ -4604,11 +4604,11 @@ function Cn(e) {
|
|
|
4604
4604
|
function Zc(e) {
|
|
4605
4605
|
return Array.isArray(e) ? e.filter((t) => Yc(we, t)) : [];
|
|
4606
4606
|
}
|
|
4607
|
-
function
|
|
4607
|
+
function kl(e) {
|
|
4608
4608
|
return e instanceof RegExp;
|
|
4609
4609
|
}
|
|
4610
4610
|
function Qc(e) {
|
|
4611
|
-
return ["string", "function"].includes(typeof e) ||
|
|
4611
|
+
return ["string", "function"].includes(typeof e) || kl(e);
|
|
4612
4612
|
}
|
|
4613
4613
|
function er(e) {
|
|
4614
4614
|
return Array.isArray(e) ? e.filter(Qc) : [];
|
|
@@ -4662,7 +4662,7 @@ function id(e) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
function di(e) {
|
|
4664
4664
|
const t = e.map((i) => {
|
|
4665
|
-
if (
|
|
4665
|
+
if (kl(i)) return (n) => i.test(n);
|
|
4666
4666
|
if (typeof i == "function") return (n) => {
|
|
4667
4667
|
const s = i(n);
|
|
4668
4668
|
return typeof s != "boolean" ? (ci("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", i), !1) : s;
|
|
@@ -4684,7 +4684,7 @@ function Nl(e, t) {
|
|
|
4684
4684
|
const i = [];
|
|
4685
4685
|
let n = e;
|
|
4686
4686
|
for (; n && n !== t; )
|
|
4687
|
-
|
|
4687
|
+
Rl(n) && i.push(n), n = n.parentNode;
|
|
4688
4688
|
return i;
|
|
4689
4689
|
}
|
|
4690
4690
|
function sd(e, t) {
|
|
@@ -4873,11 +4873,11 @@ function Od(e = [], t) {
|
|
|
4873
4873
|
return s && !r ? -1 : !s && r ? 1 : 0;
|
|
4874
4874
|
});
|
|
4875
4875
|
}
|
|
4876
|
-
function*
|
|
4877
|
-
const i = /* @__PURE__ */ new Set(), n =
|
|
4876
|
+
function* Rd(e, t) {
|
|
4877
|
+
const i = /* @__PURE__ */ new Set(), n = kd(e, t);
|
|
4878
4878
|
for (const s of Fd(n, t)) i.has(s) || (i.add(s), yield s);
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function kd(e, t) {
|
|
4881
4881
|
const { blacklist: i, whitelist: n, combineWithinSelector: s, maxCombinations: r } = t, l = di(i), o = di(n), a = (u, c) => {
|
|
4882
4882
|
const f = Od(Ad(Pd(e, c, t), l, o), o);
|
|
4883
4883
|
return u[c] = s ? Array.from(zl(f, { maxResults: r })) : f.map((p) => [p]), u;
|
|
@@ -4921,7 +4921,7 @@ function* Vd(e, t) {
|
|
|
4921
4921
|
else for (const i of e) yield* Hd([i], t);
|
|
4922
4922
|
}
|
|
4923
4923
|
function* jd(e, t, i = "", n) {
|
|
4924
|
-
const s =
|
|
4924
|
+
const s = Rd(e, n);
|
|
4925
4925
|
for (const r of Vd(s, i)) ys(e, r, t) && (yield r);
|
|
4926
4926
|
}
|
|
4927
4927
|
function* zd(e, t, i = "", n) {
|
|
@@ -4949,7 +4949,7 @@ function* Ud({ elements: e, root: t, rootSelector: i = "", options: n }) {
|
|
|
4949
4949
|
}
|
|
4950
4950
|
function qd(e) {
|
|
4951
4951
|
(e instanceof NodeList || e instanceof HTMLCollection) && (e = Array.from(e));
|
|
4952
|
-
const t = (Array.isArray(e) ? e : [e]).filter(
|
|
4952
|
+
const t = (Array.isArray(e) ? e : [e]).filter(Rl);
|
|
4953
4953
|
return [...new Set(t)];
|
|
4954
4954
|
}
|
|
4955
4955
|
function Kd(e) {
|
|
@@ -5160,15 +5160,15 @@ function sr(e, t) {
|
|
|
5160
5160
|
return hf(i, n);
|
|
5161
5161
|
}
|
|
5162
5162
|
function pf(e) {
|
|
5163
|
-
const t = /* @__PURE__ */
|
|
5163
|
+
const t = /* @__PURE__ */ k(!1), i = /* @__PURE__ */ k({
|
|
5164
5164
|
top: "0px",
|
|
5165
5165
|
left: "0px",
|
|
5166
5166
|
width: "0px",
|
|
5167
5167
|
height: "0px"
|
|
5168
|
-
}), n = /* @__PURE__ */
|
|
5168
|
+
}), n = /* @__PURE__ */ k(!1), s = /* @__PURE__ */ k({
|
|
5169
5169
|
top: "0px",
|
|
5170
5170
|
left: "0px"
|
|
5171
|
-
}), r = /* @__PURE__ */
|
|
5171
|
+
}), r = /* @__PURE__ */ k({
|
|
5172
5172
|
description: "",
|
|
5173
5173
|
fileInfo: ""
|
|
5174
5174
|
}), l = 500;
|
|
@@ -5192,22 +5192,22 @@ function pf(e) {
|
|
|
5192
5192
|
document.querySelector(".floating-bubble")
|
|
5193
5193
|
];
|
|
5194
5194
|
c(L);
|
|
5195
|
-
const
|
|
5196
|
-
if (f(L),
|
|
5197
|
-
const
|
|
5198
|
-
if (
|
|
5199
|
-
const G = getComputedStyle(
|
|
5195
|
+
const I = ir(_), A = sr(_, I);
|
|
5196
|
+
if (f(L), I) {
|
|
5197
|
+
const M = document.querySelector(".aipanel-widget");
|
|
5198
|
+
if (M) {
|
|
5199
|
+
const G = getComputedStyle(M);
|
|
5200
5200
|
a = G.getPropertyValue("--ap-primary").trim() || a, u = G.getPropertyValue("--ap-primary-bg").trim() || u;
|
|
5201
5201
|
}
|
|
5202
|
-
const
|
|
5203
|
-
let
|
|
5204
|
-
|
|
5205
|
-
const q = Z ? `${Z}${
|
|
5202
|
+
const B = nr(I), Z = A.file ? A.file.split("/").pop() : "";
|
|
5203
|
+
let W = "";
|
|
5204
|
+
A.line && (W = `:${A.line}`, A.column && (W += `:${A.column}`));
|
|
5205
|
+
const q = Z ? `${Z}${W}` : "";
|
|
5206
5206
|
r.value = {
|
|
5207
|
-
description:
|
|
5207
|
+
description: B,
|
|
5208
5208
|
fileInfo: q
|
|
5209
5209
|
};
|
|
5210
|
-
const
|
|
5210
|
+
const V = I.getBoundingClientRect(), oe = `${V.top}px`, K = `${V.left}px`, Oe = `${V.width}px`, N = `${V.height}px`;
|
|
5211
5211
|
(i.value.top !== oe || i.value.left !== K || i.value.width !== Oe || i.value.height !== N) && (i.value = {
|
|
5212
5212
|
top: oe,
|
|
5213
5213
|
left: K,
|
|
@@ -5220,9 +5220,9 @@ function pf(e) {
|
|
|
5220
5220
|
if (!G) return;
|
|
5221
5221
|
const ne = G.offsetWidth, Y = G.offsetHeight;
|
|
5222
5222
|
if (ne === 0 || Y === 0) return;
|
|
5223
|
-
const ie = 10, Le = 4, je = window.innerWidth, Xe = window.innerHeight, ze = (d) => Math.max(ie, Math.min(d, je - ne - ie)), Ne = (d) => Math.max(ie, Math.min(d, Xe - Y - ie)), ot =
|
|
5223
|
+
const ie = 10, Le = 4, je = window.innerWidth, Xe = window.innerHeight, ze = (d) => Math.max(ie, Math.min(d, je - ne - ie)), Ne = (d) => Math.max(ie, Math.min(d, Xe - Y - ie)), ot = V.top - Y - Le, ut = V.bottom + Le, Ct = V.right + Le, Qe = V.left - ne - Le, Re = V.top + (V.height - Y) / 2;
|
|
5224
5224
|
let We = 0, Me = 0, ge = !1;
|
|
5225
|
-
if (ot >= ie && (We = ot, Me = ze(
|
|
5225
|
+
if (ot >= ie && (We = ot, Me = ze(V.left), ge = !0), !ge && ut + Y <= Xe - ie && (We = ut, Me = ze(V.left), ge = !0), !ge && Ct + ne <= je - ie && (Me = Ct, We = Ne(Re), ge = !0), !ge && Qe >= ie && (Me = Qe, We = Ne(Re), ge = !0), !ge) {
|
|
5226
5226
|
const d = [
|
|
5227
5227
|
{
|
|
5228
5228
|
top: ie,
|
|
@@ -5243,7 +5243,7 @@ function pf(e) {
|
|
|
5243
5243
|
];
|
|
5244
5244
|
for (const h of d) {
|
|
5245
5245
|
const g = h.left + ne, C = h.top + Y;
|
|
5246
|
-
if (g <=
|
|
5246
|
+
if (g <= V.left || V.right <= h.left || C <= V.top || V.bottom <= h.top) {
|
|
5247
5247
|
We = h.top, Me = h.left, ge = !0;
|
|
5248
5248
|
break;
|
|
5249
5249
|
}
|
|
@@ -5264,25 +5264,25 @@ function pf(e) {
|
|
|
5264
5264
|
const _ = window.__VUE_INSPECTOR__;
|
|
5265
5265
|
if (!_ || _.__aipanel_hooked) return;
|
|
5266
5266
|
const L = _.handleClick.bind(_);
|
|
5267
|
-
_.handleClick = function(
|
|
5267
|
+
_.handleClick = function(I) {
|
|
5268
5268
|
if (e.selectMode.value) {
|
|
5269
|
-
const
|
|
5270
|
-
if (
|
|
5271
|
-
|
|
5272
|
-
const
|
|
5273
|
-
if (
|
|
5274
|
-
const Z = sf(
|
|
5275
|
-
filePath:
|
|
5276
|
-
line:
|
|
5277
|
-
column:
|
|
5269
|
+
const A = I.target instanceof Element ? I.target : null;
|
|
5270
|
+
if (A && A.closest(".aipanel-widget")) return L.call(_, I);
|
|
5271
|
+
I.preventDefault(), I.stopPropagation();
|
|
5272
|
+
const M = ir(I), B = sr(I, M);
|
|
5273
|
+
if (M) {
|
|
5274
|
+
const Z = sf(M), W = nr(M), q = {
|
|
5275
|
+
filePath: B.file,
|
|
5276
|
+
line: B.line,
|
|
5277
|
+
column: B.column,
|
|
5278
5278
|
innerText: bl(Z, 200),
|
|
5279
|
-
description:
|
|
5279
|
+
description: W
|
|
5280
5280
|
};
|
|
5281
5281
|
e.onAddSelectedNode(q);
|
|
5282
5282
|
}
|
|
5283
5283
|
return;
|
|
5284
5284
|
}
|
|
5285
|
-
return L.call(_,
|
|
5285
|
+
return L.call(_, I);
|
|
5286
5286
|
}, _.__aipanel_hooked = !0;
|
|
5287
5287
|
}
|
|
5288
5288
|
function v(_) {
|
|
@@ -5361,7 +5361,7 @@ function mf(e) {
|
|
|
5361
5361
|
}
|
|
5362
5362
|
var _f = 1440;
|
|
5363
5363
|
function yf(e) {
|
|
5364
|
-
const t = /* @__PURE__ */
|
|
5364
|
+
const t = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), i = /* @__PURE__ */ k(e.splitPosition?.value ?? "right"), n = U(() => e.displayMode.value === "extension"), s = U(() => n.value || e.displayMode.value === "extension-selector"), r = U(() => {
|
|
5365
5365
|
const v = e.splitMode.value || {}, _ = n.value;
|
|
5366
5366
|
return {
|
|
5367
5367
|
width: v.width ?? 500,
|
|
@@ -5372,7 +5372,7 @@ function yf(e) {
|
|
|
5372
5372
|
defaultOpen: _ ? !0 : v.defaultOpen ?? !0,
|
|
5373
5373
|
position: v.position ?? i.value
|
|
5374
5374
|
};
|
|
5375
|
-
}), l = /* @__PURE__ */
|
|
5375
|
+
}), l = /* @__PURE__ */ k(r.value.width), o = U(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= _f ? "split" : "bubble"), a = U(() => o.value === "split"), u = U(() => r.value.position), c = (v) => {
|
|
5376
5376
|
l.value = v, e.onWidthChange?.(v);
|
|
5377
5377
|
}, f = () => {
|
|
5378
5378
|
const v = !e.open.value;
|
|
@@ -5589,14 +5589,14 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5589
5589
|
"-chatAnimationOrigin.x": Qt.value.x,
|
|
5590
5590
|
"-chatAnimationOrigin.y": Qt.value.y
|
|
5591
5591
|
}));
|
|
5592
|
-
const n = e, s = i, r = Kr(), l = /* @__PURE__ */
|
|
5592
|
+
const n = e, s = i, r = Kr(), l = /* @__PURE__ */ k(""), o = /* @__PURE__ */ k(!1), a = /* @__PURE__ */ k("widget");
|
|
5593
5593
|
let u = null;
|
|
5594
5594
|
const c = (w, De) => {
|
|
5595
5595
|
const { duration: at = 3e3, mode: ft = "widget" } = De || {};
|
|
5596
5596
|
l.value = w, o.value = !0, a.value = ft, u && clearTimeout(u), u = setTimeout(() => {
|
|
5597
5597
|
o.value = !1;
|
|
5598
5598
|
}, at);
|
|
5599
|
-
}, f = /* @__PURE__ */
|
|
5599
|
+
}, f = /* @__PURE__ */ k(!1), p = /* @__PURE__ */ k("");
|
|
5600
5600
|
let m = null;
|
|
5601
5601
|
const T = (w) => (p.value = w, f.value = !0, new Promise((De) => {
|
|
5602
5602
|
m = De;
|
|
@@ -5604,34 +5604,34 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5604
5604
|
f.value = !1, m && m(!0);
|
|
5605
5605
|
}, _ = () => {
|
|
5606
5606
|
f.value = !1, m && m(!1);
|
|
5607
|
-
}, L = /* @__PURE__ */
|
|
5607
|
+
}, L = /* @__PURE__ */ k(null), I = /* @__PURE__ */ k(null), A = (w, De) => {
|
|
5608
5608
|
L.value?.sendMessageToIframe(w, De);
|
|
5609
|
-
},
|
|
5610
|
-
!K.value || !Oe.value || (
|
|
5609
|
+
}, M = /* @__PURE__ */ k(n.sessionListCollapsed), B = /* @__PURE__ */ k(n.displayMode), Z = /* @__PURE__ */ k(n.splitMode?.position ?? "right"), W = /* @__PURE__ */ k(!1), q = /* @__PURE__ */ k(!0), V = /* @__PURE__ */ k(!1), oe = /* @__PURE__ */ k(!0), K = /* @__PURE__ */ k(!1), Oe = /* @__PURE__ */ k(!1), N = /* @__PURE__ */ k(n.splitPanelWidth), G = () => {
|
|
5610
|
+
!K.value || !Oe.value || (A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), A(de.MINIMIZE_STATE, { minimized: W.value }), n.reviewPanelEnabled && A(de.REVIEW_PANEL_TOGGLE, { visible: V.value }));
|
|
5611
5611
|
}, ne = () => {
|
|
5612
5612
|
s("frame-loaded"), K.value = !0;
|
|
5613
5613
|
};
|
|
5614
5614
|
Be(() => n.sessionListCollapsed, (w) => {
|
|
5615
|
-
|
|
5615
|
+
M.value = w;
|
|
5616
5616
|
}), Be(() => n.splitPanelWidth, (w) => {
|
|
5617
5617
|
N.value = w;
|
|
5618
5618
|
}), Be(() => n.displayMode, (w) => {
|
|
5619
|
-
|
|
5619
|
+
B.value = w;
|
|
5620
5620
|
});
|
|
5621
5621
|
const Y = () => {
|
|
5622
|
-
if (
|
|
5622
|
+
if (B.value === "extension" || B.value === "extension-selector") return;
|
|
5623
5623
|
const w = [
|
|
5624
5624
|
"bubble",
|
|
5625
5625
|
"split",
|
|
5626
5626
|
"auto"
|
|
5627
|
-
], De = (w.indexOf(
|
|
5628
|
-
|
|
5627
|
+
], De = (w.indexOf(B.value) + 1) % w.length;
|
|
5628
|
+
B.value = w[De];
|
|
5629
5629
|
}, { buttonActive: ie, containerClasses: Le, iframeSource: je, sessionListTitle: Xe, resolvedTheme: ze, handleClose: Ne, handleEmptyAction: ot, handleToggle: ut, handleToggleSessionList: Ct, handleToggleTheme: Qe } = Gc({
|
|
5630
5630
|
theme: /* @__PURE__ */ se(n, "theme"),
|
|
5631
5631
|
open: /* @__PURE__ */ se(n, "open"),
|
|
5632
5632
|
selectMode: /* @__PURE__ */ se(n, "selectMode"),
|
|
5633
5633
|
iframeSrc: /* @__PURE__ */ se(n, "iframeSrc"),
|
|
5634
|
-
sessionListCollapsed:
|
|
5634
|
+
sessionListCollapsed: M,
|
|
5635
5635
|
onToggle: (w) => {
|
|
5636
5636
|
s("update:open", w), s("toggle", w);
|
|
5637
5637
|
},
|
|
@@ -5642,7 +5642,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5642
5642
|
s("update:open", !1), s("close");
|
|
5643
5643
|
},
|
|
5644
5644
|
onToggleSessionList: (w) => {
|
|
5645
|
-
|
|
5645
|
+
M.value = w, s("update:sessionListCollapsed", w), s("toggle-session-list", w);
|
|
5646
5646
|
},
|
|
5647
5647
|
onEmptyAction: () => {
|
|
5648
5648
|
s("empty-action");
|
|
@@ -5650,7 +5650,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5650
5650
|
onToggleTheme: (w) => {
|
|
5651
5651
|
s("update:theme", w), s("toggle-theme", w);
|
|
5652
5652
|
}
|
|
5653
|
-
}), { sessionItems:
|
|
5653
|
+
}), { sessionItems: Re, handleCreateSession: We, handleDeleteSession: Me, handleSelectSession: ge } = Kc({
|
|
5654
5654
|
sessions: /* @__PURE__ */ se(n, "sessions"),
|
|
5655
5655
|
currentSessionId: /* @__PURE__ */ se(n, "currentSessionId"),
|
|
5656
5656
|
onCreateSession: () => s("create-session"),
|
|
@@ -5674,7 +5674,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5674
5674
|
s("clear-selected-nodes"), s("update:selectedElements", []);
|
|
5675
5675
|
},
|
|
5676
5676
|
showConfirmDialog: T
|
|
5677
|
-
}), { highlightVisible: S, highlightStyle:
|
|
5677
|
+
}), { highlightVisible: S, highlightStyle: R, tooltipVisible: O, tooltipStyle: P, tooltipContent: E } = pf({
|
|
5678
5678
|
selectMode: /* @__PURE__ */ se(n, "selectMode"),
|
|
5679
5679
|
onAddSelectedNode: (w) => {
|
|
5680
5680
|
s("click-selected-node", w);
|
|
@@ -5682,8 +5682,8 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5682
5682
|
onExitSelectMode: () => {
|
|
5683
5683
|
s("update:selectMode", !1), s("toggle-select-mode", !1);
|
|
5684
5684
|
}
|
|
5685
|
-
}), F = /* @__PURE__ */
|
|
5686
|
-
displayMode:
|
|
5685
|
+
}), F = /* @__PURE__ */ k(void 0), { effectiveMode: D, isSplitMode: H, isExtensionMode: z, panelWidth: J, splitConfig: le, splitPosition: ee, handleResize: Q, handleToggle: pe, handleTogglePosition: Ce } = yf({
|
|
5686
|
+
displayMode: B,
|
|
5687
5687
|
splitMode: /* @__PURE__ */ se(n, "splitMode"),
|
|
5688
5688
|
open: /* @__PURE__ */ se(n, "open"),
|
|
5689
5689
|
splitPosition: Z,
|
|
@@ -5699,24 +5699,24 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5699
5699
|
});
|
|
5700
5700
|
mf({
|
|
5701
5701
|
open: /* @__PURE__ */ se(n, "open"),
|
|
5702
|
-
minimized:
|
|
5702
|
+
minimized: W,
|
|
5703
5703
|
promptDockVisible: q,
|
|
5704
|
-
reviewPanelVisible:
|
|
5704
|
+
reviewPanelVisible: V,
|
|
5705
5705
|
bubbleOffset: F,
|
|
5706
5706
|
theme: /* @__PURE__ */ se(n, "theme"),
|
|
5707
|
-
sessionListCollapsed:
|
|
5707
|
+
sessionListCollapsed: M,
|
|
5708
5708
|
splitPanelWidth: N,
|
|
5709
|
-
displayMode:
|
|
5709
|
+
displayMode: B,
|
|
5710
5710
|
splitPosition: Z,
|
|
5711
5711
|
onRestore: (w) => {
|
|
5712
|
-
if (w.open !== void 0 && w.open !== n.open && (s("update:open", w.open), s("toggle", w.open)), w.minimized !== void 0 && (
|
|
5712
|
+
if (w.open !== void 0 && w.open !== n.open && (s("update:open", w.open), s("toggle", w.open)), w.minimized !== void 0 && (W.value = w.minimized), w.bubbleOffset !== void 0) {
|
|
5713
5713
|
const ft = window.innerWidth - 44 - 10, tt = window.innerHeight - 44 - 10;
|
|
5714
5714
|
F.value = {
|
|
5715
5715
|
x: Math.max(10, Math.min(w.bubbleOffset.x, ft)),
|
|
5716
5716
|
y: Math.max(10, Math.min(w.bubbleOffset.y, tt))
|
|
5717
5717
|
};
|
|
5718
5718
|
}
|
|
5719
|
-
w.theme !== void 0 && w.theme !== n.theme && (s("update:theme", w.theme), s("toggle-theme", w.theme)), w.sessionListCollapsed !== void 0 && w.sessionListCollapsed !== n.sessionListCollapsed && (
|
|
5719
|
+
w.theme !== void 0 && w.theme !== n.theme && (s("update:theme", w.theme), s("toggle-theme", w.theme)), w.sessionListCollapsed !== void 0 && w.sessionListCollapsed !== n.sessionListCollapsed && (M.value = w.sessionListCollapsed, s("update:sessionListCollapsed", w.sessionListCollapsed)), w.promptDockVisible !== void 0 ? q.value = w.promptDockVisible : W.value && (q.value = !1), w.reviewPanelVisible !== void 0 && (V.value = w.reviewPanelVisible), w.splitPanelWidth !== void 0 && w.splitPanelWidth !== n.splitPanelWidth && Q(w.splitPanelWidth), w.displayMode !== void 0 && w.displayMode !== n.displayMode && n.displayMode !== "extension" && n.displayMode !== "extension-selector" && (B.value = w.displayMode), w.splitPosition !== void 0 && (Z.value = w.splitPosition), an(() => {
|
|
5720
5720
|
G(), setTimeout(() => {
|
|
5721
5721
|
oe.value = !1;
|
|
5722
5722
|
}, 50);
|
|
@@ -5724,14 +5724,14 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5724
5724
|
}
|
|
5725
5725
|
});
|
|
5726
5726
|
const Ie = () => {
|
|
5727
|
-
|
|
5727
|
+
W.value = !W.value, q.value = !W.value, A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), A(de.MINIMIZE_STATE, { minimized: W.value });
|
|
5728
5728
|
}, dt = () => {
|
|
5729
|
-
q.value = !q.value,
|
|
5729
|
+
q.value = !q.value, A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value });
|
|
5730
5730
|
}, jt = () => {
|
|
5731
|
-
|
|
5731
|
+
V.value = !V.value, A(de.REVIEW_PANEL_TOGGLE, { visible: V.value });
|
|
5732
5732
|
}, ye = () => {
|
|
5733
5733
|
window.location.reload();
|
|
5734
|
-
}, Se = /* @__PURE__ */
|
|
5734
|
+
}, Se = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), Ue = /* @__PURE__ */ k(typeof window < "u" ? window.innerHeight : 0), $t = () => {
|
|
5735
5735
|
typeof window < "u" && (Se.value = window.innerWidth, Ue.value = window.innerHeight);
|
|
5736
5736
|
}, vn = (w) => {
|
|
5737
5737
|
w.data?.type === de.READY && (Oe.value = !0, G());
|
|
@@ -5743,14 +5743,14 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5743
5743
|
});
|
|
5744
5744
|
const gn = U(() => {
|
|
5745
5745
|
if (typeof window > "u") return "bottom-right";
|
|
5746
|
-
const w = Se.value / 2, De = Ue.value / 2, at = 44, ft =
|
|
5746
|
+
const w = Se.value / 2, De = Ue.value / 2, at = 44, ft = I.value?.offset ?? F.value, tt = (ft?.x ?? Se.value - at - 24) + at / 2, zt = (ft?.y ?? Ue.value - at - 24) + at / 2;
|
|
5747
5747
|
return tt >= w && zt >= De ? "bottom-right" : tt < w && zt >= De ? "bottom-left" : tt >= w && zt < De ? "top-right" : "top-left";
|
|
5748
5748
|
}), x = U(() => {
|
|
5749
5749
|
const w = gn.value;
|
|
5750
5750
|
return w === "top-right" || w === "bottom-right";
|
|
5751
5751
|
}), me = U(() => {
|
|
5752
5752
|
if (typeof window > "u") return {};
|
|
5753
|
-
const w =
|
|
5753
|
+
const w = W.value ? 300 : 700, De = W.value ? 300 : Math.min(Ue.value * 0.86, Ue.value - 40), at = 24, ft = 44, tt = 20, zt = I.value?.offset ?? F.value ?? {
|
|
5754
5754
|
x: Se.value - ft - at,
|
|
5755
5755
|
y: Ue.value - ft - at
|
|
5756
5756
|
}, en = {};
|
|
@@ -5795,7 +5795,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5795
5795
|
y: "20px"
|
|
5796
5796
|
};
|
|
5797
5797
|
}
|
|
5798
|
-
}), _n = /* @__PURE__ */
|
|
5798
|
+
}), _n = /* @__PURE__ */ k(!1);
|
|
5799
5799
|
let qn = !1;
|
|
5800
5800
|
const Xl = () => {
|
|
5801
5801
|
_n.value = !0, qn = n.open, n.open && s("update:open", !1);
|
|
@@ -5810,7 +5810,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5810
5810
|
selectShortcutLabel: /* @__PURE__ */ se(n, "selectShortcutLabel"),
|
|
5811
5811
|
selectMode: /* @__PURE__ */ se(n, "selectMode"),
|
|
5812
5812
|
selectEnabled: /* @__PURE__ */ se(n, "selectEnabled"),
|
|
5813
|
-
sessionListCollapsed:
|
|
5813
|
+
sessionListCollapsed: M,
|
|
5814
5814
|
sessionKey: /* @__PURE__ */ se(n, "sessionKey"),
|
|
5815
5815
|
frameLoading: /* @__PURE__ */ se(n, "frameLoading"),
|
|
5816
5816
|
loadingSessionList: /* @__PURE__ */ se(n, "loadingSessionList"),
|
|
@@ -5822,13 +5822,13 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5822
5822
|
showClearAll: /* @__PURE__ */ se(n, "showClearAll"),
|
|
5823
5823
|
open: /* @__PURE__ */ se(n, "open"),
|
|
5824
5824
|
thinking: /* @__PURE__ */ se(n, "thinking"),
|
|
5825
|
-
minimized:
|
|
5825
|
+
minimized: W,
|
|
5826
5826
|
promptDockVisible: q,
|
|
5827
|
-
reviewPanelVisible:
|
|
5827
|
+
reviewPanelVisible: V,
|
|
5828
5828
|
reviewPanelEnabled: /* @__PURE__ */ se(n, "reviewPanelEnabled"),
|
|
5829
5829
|
bubbleOffset: F,
|
|
5830
5830
|
mode: D,
|
|
5831
|
-
displayMode:
|
|
5831
|
+
displayMode: B,
|
|
5832
5832
|
splitPosition: ee,
|
|
5833
5833
|
sessionStates: U(() => n.sessionStates ?? {}),
|
|
5834
5834
|
iframeSource: je,
|
|
@@ -5836,7 +5836,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5836
5836
|
sessionListTitle: Xe,
|
|
5837
5837
|
bubbleVisible: ct,
|
|
5838
5838
|
hasSelectedElements: et,
|
|
5839
|
-
sessionItems:
|
|
5839
|
+
sessionItems: Re,
|
|
5840
5840
|
selectedElementItems: d,
|
|
5841
5841
|
handleToggle: ut,
|
|
5842
5842
|
handleClose: Ne,
|
|
@@ -5861,8 +5861,8 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5861
5861
|
}), t({
|
|
5862
5862
|
showNotification: c,
|
|
5863
5863
|
showConfirmDialog: T,
|
|
5864
|
-
sendMessageToIframe:
|
|
5865
|
-
isSplitMode:
|
|
5864
|
+
sendMessageToIframe: A,
|
|
5865
|
+
isSplitMode: H
|
|
5866
5866
|
});
|
|
5867
5867
|
const Ss = {
|
|
5868
5868
|
props: n,
|
|
@@ -5890,14 +5890,14 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5890
5890
|
handleDialogConfirm: v,
|
|
5891
5891
|
handleDialogCancel: _,
|
|
5892
5892
|
frameRef: L,
|
|
5893
|
-
triggerRef:
|
|
5894
|
-
sendMessageToIframe:
|
|
5895
|
-
localSessionListCollapsed:
|
|
5896
|
-
localDisplayMode:
|
|
5893
|
+
triggerRef: I,
|
|
5894
|
+
sendMessageToIframe: A,
|
|
5895
|
+
localSessionListCollapsed: M,
|
|
5896
|
+
localDisplayMode: B,
|
|
5897
5897
|
localSplitPosition: Z,
|
|
5898
|
-
minimized:
|
|
5898
|
+
minimized: W,
|
|
5899
5899
|
promptDockVisible: q,
|
|
5900
|
-
reviewPanelVisible:
|
|
5900
|
+
reviewPanelVisible: V,
|
|
5901
5901
|
isRestoring: oe,
|
|
5902
5902
|
iframeLoaded: K,
|
|
5903
5903
|
iframeReady: Oe,
|
|
@@ -5915,7 +5915,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5915
5915
|
handleToggle: ut,
|
|
5916
5916
|
handleToggleSessionList: Ct,
|
|
5917
5917
|
handleToggleTheme: Qe,
|
|
5918
|
-
sessionItems:
|
|
5918
|
+
sessionItems: Re,
|
|
5919
5919
|
handleCreateSession: We,
|
|
5920
5920
|
handleDeleteSession: Me,
|
|
5921
5921
|
handleSelectSession: ge,
|
|
@@ -5927,13 +5927,13 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5927
5927
|
handleRemoveSelectedNode: C,
|
|
5928
5928
|
handleToggleSelectMode: b,
|
|
5929
5929
|
highlightVisible: S,
|
|
5930
|
-
highlightStyle:
|
|
5930
|
+
highlightStyle: R,
|
|
5931
5931
|
tooltipVisible: O,
|
|
5932
|
-
tooltipStyle:
|
|
5932
|
+
tooltipStyle: P,
|
|
5933
5933
|
tooltipContent: E,
|
|
5934
5934
|
bubbleOffset: F,
|
|
5935
5935
|
effectiveMode: D,
|
|
5936
|
-
isSplitMode:
|
|
5936
|
+
isSplitMode: H,
|
|
5937
5937
|
isExtensionMode: z,
|
|
5938
5938
|
panelWidth: J,
|
|
5939
5939
|
splitConfig: le,
|
|
@@ -5966,7 +5966,7 @@ var Yl = /* @__PURE__ */ Je({
|
|
|
5966
5966
|
handleDragStart: Xl,
|
|
5967
5967
|
handleDragEnd: Jl,
|
|
5968
5968
|
ChatPanel: Pc,
|
|
5969
|
-
SelectHint:
|
|
5969
|
+
SelectHint: Rc,
|
|
5970
5970
|
Trigger: Hc
|
|
5971
5971
|
};
|
|
5972
5972
|
return Object.defineProperty(Ss, "__isScriptSetup", {
|
|
@@ -6133,14 +6133,14 @@ function rr(e, t) {
|
|
|
6133
6133
|
}), { hotkeyConfig: i };
|
|
6134
6134
|
}
|
|
6135
6135
|
var nn = Dt("SSE"), Af = 10, Of = 1e3;
|
|
6136
|
-
function
|
|
6137
|
-
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = Af, retryDelay: r = Of, onConnected: l, onDisconnected: o, onError: a, onMessage: u } = e, c = /* @__PURE__ */
|
|
6138
|
-
function m(
|
|
6136
|
+
function Rf(e) {
|
|
6137
|
+
const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = Af, retryDelay: r = Of, onConnected: l, onDisconnected: o, onError: a, onMessage: u } = e, c = /* @__PURE__ */ k(null), f = /* @__PURE__ */ k("idle"), p = /* @__PURE__ */ k(0);
|
|
6138
|
+
function m(I) {
|
|
6139
6139
|
try {
|
|
6140
|
-
const
|
|
6141
|
-
u?.(
|
|
6140
|
+
const A = JSON.parse(I.data);
|
|
6141
|
+
u?.(A);
|
|
6142
6142
|
} catch {
|
|
6143
|
-
u?.(
|
|
6143
|
+
u?.(I.data);
|
|
6144
6144
|
}
|
|
6145
6145
|
}
|
|
6146
6146
|
function T() {
|
|
@@ -6155,31 +6155,31 @@ function kf(e) {
|
|
|
6155
6155
|
f.value = "connected", p.value = 0, nn.debug(`connected: ${t}`), l?.();
|
|
6156
6156
|
}, c.value.onmessage = m, c.value.onerror = () => {
|
|
6157
6157
|
if (!c.value) return;
|
|
6158
|
-
const
|
|
6158
|
+
const I = f.value === "connected";
|
|
6159
6159
|
f.value = "error", c.value?.close(), c.value = null, nn.debug("error on", {
|
|
6160
6160
|
endpoint: t,
|
|
6161
|
-
wasConnected:
|
|
6161
|
+
wasConnected: I,
|
|
6162
6162
|
retryCount: p.value,
|
|
6163
6163
|
maxRetries: s
|
|
6164
6164
|
});
|
|
6165
|
-
const
|
|
6166
|
-
if (a?.(
|
|
6165
|
+
const A = /* @__PURE__ */ new Error(`SSE connection error: ${t}`);
|
|
6166
|
+
if (a?.(A), p.value < s) {
|
|
6167
6167
|
p.value++;
|
|
6168
|
-
const
|
|
6169
|
-
nn.debug(`will retry #${p.value} in ${
|
|
6168
|
+
const M = r * p.value;
|
|
6169
|
+
nn.debug(`will retry #${p.value} in ${M}ms -> ${t}`), setTimeout(() => {
|
|
6170
6170
|
n?.value !== !1 && !c.value && f.value !== "disconnected" && T();
|
|
6171
|
-
},
|
|
6172
|
-
} else
|
|
6171
|
+
}, M);
|
|
6172
|
+
} else I ? (nn.debug(`max retries reached, calling onDisconnected for ${t}`), o?.()) : nn.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
|
|
6173
6173
|
};
|
|
6174
|
-
} catch (
|
|
6174
|
+
} catch (I) {
|
|
6175
6175
|
f.value = "error";
|
|
6176
|
-
const
|
|
6177
|
-
if (a?.(
|
|
6176
|
+
const A = I instanceof Error ? I : new Error(String(I));
|
|
6177
|
+
if (a?.(A), p.value < s) {
|
|
6178
6178
|
p.value++;
|
|
6179
|
-
const
|
|
6179
|
+
const M = r * p.value;
|
|
6180
6180
|
setTimeout(() => {
|
|
6181
6181
|
!c.value && f.value !== "disconnected" && T();
|
|
6182
|
-
},
|
|
6182
|
+
}, M);
|
|
6183
6183
|
}
|
|
6184
6184
|
}
|
|
6185
6185
|
}
|
|
@@ -6208,8 +6208,8 @@ function kf(e) {
|
|
|
6208
6208
|
};
|
|
6209
6209
|
}
|
|
6210
6210
|
var lr = Dt("ServerSSE");
|
|
6211
|
-
function
|
|
6212
|
-
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: l, onDisconnected: o } = e, a = t ? `${t}${Zs}` : Zs, { status: u, isConnected: c, connect: f, disconnect: p } =
|
|
6211
|
+
function kf(e = {}) {
|
|
6212
|
+
const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: l, onDisconnected: o } = e, a = t ? `${t}${Zs}` : Zs, { status: u, isConnected: c, connect: f, disconnect: p } = Rf({
|
|
6213
6213
|
endpoint: a,
|
|
6214
6214
|
autoConnect: !1,
|
|
6215
6215
|
onDisconnected: () => {
|
|
@@ -6243,7 +6243,7 @@ function Rf(e = {}) {
|
|
|
6243
6243
|
};
|
|
6244
6244
|
}
|
|
6245
6245
|
function Lf(e) {
|
|
6246
|
-
const { currentSessionId: t, onSessionUpdate: i } = e, n = /* @__PURE__ */
|
|
6246
|
+
const { currentSessionId: t, onSessionUpdate: i } = e, n = /* @__PURE__ */ k({});
|
|
6247
6247
|
function s(f) {
|
|
6248
6248
|
switch (f.type) {
|
|
6249
6249
|
case "session.updated": {
|
|
@@ -6315,31 +6315,31 @@ function or(e) {
|
|
|
6315
6315
|
};
|
|
6316
6316
|
}
|
|
6317
6317
|
function Df(e) {
|
|
6318
|
-
const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (
|
|
6319
|
-
a.value = !0, f() || n?.(
|
|
6318
|
+
const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (A) => i ? `${i}${A}` : A, r = /* @__PURE__ */ k([]), l = /* @__PURE__ */ k(void 0), o = /* @__PURE__ */ k(null), a = /* @__PURE__ */ k(!0), u = /* @__PURE__ */ k(!0), c = /* @__PURE__ */ k(!1), f = () => u.value, p = U(() => f() ? o.value && r.value.find((A) => A.id === o.value)?.url || "" : r.value[0]?.url || ""), m = (A) => {
|
|
6319
|
+
a.value = !0, f() || n?.(A);
|
|
6320
6320
|
}, T = async () => {
|
|
6321
6321
|
l.value = !0, (f() || r.value.length === 0) && (a.value = !0);
|
|
6322
6322
|
try {
|
|
6323
|
-
const
|
|
6324
|
-
u.value =
|
|
6325
|
-
} catch (
|
|
6326
|
-
Nf.error("Failed to load sessions:", { error:
|
|
6323
|
+
const A = o.value, M = A ? `?current=${encodeURIComponent(A)}` : "", B = await (await fetch(s($i + M))).json();
|
|
6324
|
+
u.value = B.capabilities?.deepLink !== !1, c.value = B.capabilities?.reviewPanel === !0, r.value = B.sessions.map(or), r.value.length || _(), o.value = r.value[0]?.id || null, o.value && m(o.value);
|
|
6325
|
+
} catch (A) {
|
|
6326
|
+
Nf.error("Failed to load sessions:", { error: A });
|
|
6327
6327
|
} finally {
|
|
6328
6328
|
l.value = !1;
|
|
6329
6329
|
}
|
|
6330
|
-
}, v = (
|
|
6331
|
-
const
|
|
6332
|
-
if (
|
|
6333
|
-
const
|
|
6334
|
-
|
|
6335
|
-
...
|
|
6336
|
-
title:
|
|
6337
|
-
updatedAt:
|
|
6330
|
+
}, v = (A) => {
|
|
6331
|
+
const M = r.value.findIndex((Z) => Z.id === A.id);
|
|
6332
|
+
if (M === -1) return;
|
|
6333
|
+
const B = r.value[M];
|
|
6334
|
+
A.title && A.title !== B.title && (r.value[M] = {
|
|
6335
|
+
...B,
|
|
6336
|
+
title: A.title,
|
|
6337
|
+
updatedAt: A.time?.updated || Date.now()
|
|
6338
6338
|
});
|
|
6339
6339
|
}, _ = async () => {
|
|
6340
6340
|
try {
|
|
6341
|
-
const
|
|
6342
|
-
r.value.unshift(or(
|
|
6341
|
+
const A = await (await fetch(s($i), { method: "POST" })).json();
|
|
6342
|
+
r.value.unshift(or(A)), a.value = !0, await an(), o.value = A.id, m(A.id);
|
|
6343
6343
|
} catch {
|
|
6344
6344
|
t("创建会话失败");
|
|
6345
6345
|
}
|
|
@@ -6355,26 +6355,26 @@ function Df(e) {
|
|
|
6355
6355
|
isDeepLink: f,
|
|
6356
6356
|
loadSessions: T,
|
|
6357
6357
|
createSession: _,
|
|
6358
|
-
deleteSession: async (
|
|
6358
|
+
deleteSession: async (A) => {
|
|
6359
6359
|
try {
|
|
6360
|
-
if (await fetch(s(`${$i}?id=${
|
|
6360
|
+
if (await fetch(s(`${$i}?id=${A.id}`), { method: "DELETE" }), await T(), t("会话已删除"), o.value === A.id)
|
|
6361
6361
|
if (r.value.length > 0) {
|
|
6362
|
-
const
|
|
6363
|
-
a.value = !0, await an(), o.value =
|
|
6362
|
+
const M = r.value[0];
|
|
6363
|
+
a.value = !0, await an(), o.value = M.id, m(M.id);
|
|
6364
6364
|
} else
|
|
6365
6365
|
a.value = !1, o.value = null;
|
|
6366
6366
|
} catch {
|
|
6367
6367
|
t("删除会话失败");
|
|
6368
6368
|
}
|
|
6369
6369
|
},
|
|
6370
|
-
selectSession: async (
|
|
6371
|
-
o.value !==
|
|
6370
|
+
selectSession: async (A) => {
|
|
6371
|
+
o.value !== A.id && (a.value = !0, await an(), o.value = A.id, m(A.id));
|
|
6372
6372
|
},
|
|
6373
6373
|
updateSessionInfo: v
|
|
6374
6374
|
};
|
|
6375
6375
|
}
|
|
6376
6376
|
function Ff(e, t) {
|
|
6377
|
-
const i = /* @__PURE__ */
|
|
6377
|
+
const i = /* @__PURE__ */ k(e), n = U(() => i.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : i.value), s = () => {
|
|
6378
6378
|
t.value?.sendMessageToIframe(de.SET_THEME, { theme: n.value });
|
|
6379
6379
|
};
|
|
6380
6380
|
let r = null;
|
|
@@ -6394,7 +6394,7 @@ function Ff(e, t) {
|
|
|
6394
6394
|
};
|
|
6395
6395
|
}
|
|
6396
6396
|
function $f(e = "") {
|
|
6397
|
-
const t = e ? `${Qs}_${e}` : Qs, i = /* @__PURE__ */
|
|
6397
|
+
const t = e ? `${Qs}_${e}` : Qs, i = /* @__PURE__ */ k([]);
|
|
6398
6398
|
try {
|
|
6399
6399
|
const l = sessionStorage.getItem(t);
|
|
6400
6400
|
l && (i.value = JSON.parse(l));
|
|
@@ -6414,7 +6414,7 @@ function $f(e = "") {
|
|
|
6414
6414
|
};
|
|
6415
6415
|
}
|
|
6416
6416
|
function Bf() {
|
|
6417
|
-
const e = /* @__PURE__ */
|
|
6417
|
+
const e = /* @__PURE__ */ k(""), t = /* @__PURE__ */ k("idle"), i = /* @__PURE__ */ k(!1), n = /* @__PURE__ */ k(void 0), s = /* @__PURE__ */ k(void 0), r = Dt("useServiceStatus"), l = U(() => e.value && Su[e.value] || "加载中...");
|
|
6418
6418
|
return {
|
|
6419
6419
|
currentTask: e,
|
|
6420
6420
|
serviceStatus: t,
|
|
@@ -6470,7 +6470,7 @@ function Wf(e, t, i = "") {
|
|
|
6470
6470
|
}
|
|
6471
6471
|
function Hf(e, t, i = "", n = "") {
|
|
6472
6472
|
let s = "", r = "", l, o;
|
|
6473
|
-
const a = /* @__PURE__ */
|
|
6473
|
+
const a = /* @__PURE__ */ k(""), u = /* @__PURE__ */ k(""), c = /* @__PURE__ */ k(""), f = Dt("ExtCtx"), p = (_) => i ? `${i}${_}` : _, m = (_, L) => {
|
|
6474
6474
|
f.debug(`POST 上下文: tabId=${l} url=${_} title=${L}`), fetch(p(_l), {
|
|
6475
6475
|
method: "POST",
|
|
6476
6476
|
headers: { "Content-Type": "application/json" },
|
|
@@ -6487,8 +6487,8 @@ function Hf(e, t, i = "", n = "") {
|
|
|
6487
6487
|
});
|
|
6488
6488
|
}, T = (_ = !1) => {
|
|
6489
6489
|
if (e.value === "idle") return;
|
|
6490
|
-
const L = a.value,
|
|
6491
|
-
!L && !
|
|
6490
|
+
const L = a.value, I = u.value;
|
|
6491
|
+
!L && !I || (_ || L !== s || I !== r) && (s = L, r = I, m(L, I));
|
|
6492
6492
|
}, v = (_) => {
|
|
6493
6493
|
if (!(_.serviceInstanceId && _.serviceInstanceId !== n)) {
|
|
6494
6494
|
if (_.type === Ot.TAB_SWITCHED) {
|
|
@@ -6665,7 +6665,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6665
6665
|
__name: "App",
|
|
6666
6666
|
props: { config: {} },
|
|
6667
6667
|
setup(e) {
|
|
6668
|
-
const t = e, i = /* @__PURE__ */
|
|
6668
|
+
const t = e, i = /* @__PURE__ */ k(!1), n = /* @__PURE__ */ k(!1), s = /* @__PURE__ */ k(!0), r = /* @__PURE__ */ k(!1), l = /* @__PURE__ */ k(null), o = /* @__PURE__ */ k(!1), { theme: a = "auto", open: u = !1, hotkey: c = "ctrl+k", proxyPort: f = 6097, displayMode: p = "bubble", splitMode: m, vitePort: T = "", serviceInstanceId: v = "", myWindowId: _ } = t.config, L = Dt("AIPanel"), I = Dt("App"), A = a, M = /* @__PURE__ */ k(m?.width ?? 500), B = p === "extension", Z = p === "extension-selector", W = U(() => T ? `http://127.0.0.1:${T}` : ""), q = (x) => W.value ? `${W.value}${x}` : x, V = {
|
|
6669
6669
|
onSelectModeChange: null,
|
|
6670
6670
|
broadcastTheme: null,
|
|
6671
6671
|
notifySelectionResult: null,
|
|
@@ -6673,43 +6673,43 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6673
6673
|
}, oe = (x, me) => {
|
|
6674
6674
|
l.value?.showNotification?.(x, {
|
|
6675
6675
|
...me,
|
|
6676
|
-
mode:
|
|
6676
|
+
mode: B ? "widget" : me?.mode
|
|
6677
6677
|
});
|
|
6678
|
-
}, { serviceStatus: K, currentTask: Oe, chromeMcpFailed: N, chromeMcpErrorType: G, chromeMcpErrorMessage: ne, loadingText: Y, updateStatusFromTask: ie, setStarting: Le } = Bf(), { selectedElements: je, addElement: Xe, removeElement: ze, clearElements: Ne } = $f(v), { theme: ot, sendThemeToIframe: ut } = Ff(
|
|
6678
|
+
}, { serviceStatus: K, currentTask: Oe, chromeMcpFailed: N, chromeMcpErrorType: G, chromeMcpErrorMessage: ne, loadingText: Y, updateStatusFromTask: ie, setStarting: Le } = Bf(), { selectedElements: je, addElement: Xe, removeElement: ze, clearElements: Ne } = $f(v), { theme: ot, sendThemeToIframe: ut } = Ff(A, l), { sessions: Ct, loadingSessionList: Qe, currentSessionId: Re, iframeSrc: We, iframeLoading: Me, isDeepLink: ge, reviewPanelEnabled: ct, loadSessions: et, createSession: d, deleteSession: h, selectSession: g, updateSessionInfo: C } = Df({
|
|
6679
6679
|
showNotification: oe,
|
|
6680
|
-
viteBaseUrl:
|
|
6680
|
+
viteBaseUrl: W.value,
|
|
6681
6681
|
onFocusSession: (x) => {
|
|
6682
6682
|
l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: x });
|
|
6683
6683
|
}
|
|
6684
|
-
}), { updateContext: b } =
|
|
6685
|
-
currentSessionId:
|
|
6684
|
+
}), { updateContext: b } = B ? Hf(K, je, W.value, v) : Wf(K, je, W.value), S = Lf({
|
|
6685
|
+
currentSessionId: Re,
|
|
6686
6686
|
onSessionUpdate: (x) => {
|
|
6687
6687
|
C(x);
|
|
6688
6688
|
}
|
|
6689
|
-
}),
|
|
6690
|
-
viteBaseUrl:
|
|
6689
|
+
}), R = kf({
|
|
6690
|
+
viteBaseUrl: W.value,
|
|
6691
6691
|
onStatusSync: (x) => {
|
|
6692
|
-
if (
|
|
6693
|
-
|
|
6692
|
+
if (I.debug(`SSE STATUS_SYNC: ${JSON.stringify(x)} currentStatus: ${K.value}`), P && x.task && x.task !== "ready" && x.task !== "chrome_mcp_failed" && x.task !== "session_creation_failed" && x.task !== "provider_not_installed" && x.task !== "web_start_timeout" && x.task !== "proxy_start_failed") {
|
|
6693
|
+
I.debug(`SSE 重连后服务仍在启动中(${x.task}),重置 status 为 starting`), Oe.value = x.task, K.value = "starting", P = !1;
|
|
6694
6694
|
return;
|
|
6695
6695
|
}
|
|
6696
|
-
|
|
6696
|
+
P = !1, x.isStarted !== void 0 && x.isStarted && K.value === "idle" && Le(), x.task && ie(x.task, x.errorType, x.errorMessage);
|
|
6697
6697
|
},
|
|
6698
6698
|
onTaskUpdate: (x) => {
|
|
6699
|
-
|
|
6699
|
+
I.debug(`SSE TASK_UPDATE: ${JSON.stringify(x)} currentStatus: ${K.value}`), ie(x.task, x.errorType, x.errorMessage);
|
|
6700
6700
|
},
|
|
6701
6701
|
onSessionEvent: (x) => S.handleEvent(x),
|
|
6702
6702
|
onClearElements: () => Ne(),
|
|
6703
6703
|
onConnected: () => b(!0)
|
|
6704
6704
|
});
|
|
6705
|
-
let O = !1,
|
|
6706
|
-
Be(
|
|
6707
|
-
!x && me && v ? (O = !0,
|
|
6705
|
+
let O = !1, P = !1;
|
|
6706
|
+
Be(R.isConnected, (x, me) => {
|
|
6707
|
+
!x && me && v ? (O = !0, I.debug(`SSE 断开,通知服务下线: ${v}`), chrome.runtime.sendMessage({
|
|
6708
6708
|
type: Ot.SERVICE_GONE,
|
|
6709
6709
|
serviceInstanceId: v,
|
|
6710
6710
|
windowId: _
|
|
6711
6711
|
}).catch(() => {
|
|
6712
|
-
})) : x && !me && O && v && (O = !1,
|
|
6712
|
+
})) : x && !me && O && v && (O = !1, P = !0, I.debug(`SSE 重连,通知服务上线: ${v}`), chrome.runtime.sendMessage({
|
|
6713
6713
|
type: Ot.SERVICE_APPEARED,
|
|
6714
6714
|
proxyPort: f,
|
|
6715
6715
|
vitePort: T,
|
|
@@ -6718,7 +6718,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6718
6718
|
}).catch(() => {
|
|
6719
6719
|
}));
|
|
6720
6720
|
});
|
|
6721
|
-
const E = S.hasAnyThinking, F = S.sessionStates, D = U(() => K.value === "starting"),
|
|
6721
|
+
const E = S.hasAnyThinking, F = S.sessionStates, D = U(() => K.value === "starting"), H = U(() => K.value === "starting" || Me.value), z = U(() => K.value === "starting" ? Y.value : "加载会话..."), J = async () => {
|
|
6722
6722
|
o.value = !0;
|
|
6723
6723
|
try {
|
|
6724
6724
|
const x = await (await fetch(q(vu), { method: "POST" })).json();
|
|
@@ -6733,9 +6733,9 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6733
6733
|
try {
|
|
6734
6734
|
const x = await (await fetch(q(hu))).json();
|
|
6735
6735
|
if (K.value !== "idle")
|
|
6736
|
-
return
|
|
6736
|
+
return I.debug(`[ensureServicesStarted] fetch 完成但 serviceStatus 已变为 ${K.value},跳过启动`), !0;
|
|
6737
6737
|
if (x.success)
|
|
6738
|
-
return Le(),
|
|
6738
|
+
return Le(), R.connect(), !0;
|
|
6739
6739
|
} catch {
|
|
6740
6740
|
}
|
|
6741
6741
|
return !1;
|
|
@@ -6744,33 +6744,33 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6744
6744
|
x.preventDefault(), Ie(!i.value);
|
|
6745
6745
|
});
|
|
6746
6746
|
const ee = () => {
|
|
6747
|
-
if (
|
|
6747
|
+
if (B) {
|
|
6748
6748
|
ye(!n.value);
|
|
6749
6749
|
return;
|
|
6750
6750
|
}
|
|
6751
6751
|
window.__VUE_INSPECTOR__ ? ye(!n.value) : oe("Vue Inspector 未加载,无法使用元素选择功能");
|
|
6752
6752
|
};
|
|
6753
|
-
|
|
6753
|
+
B || rr("ctrl+p", (x) => {
|
|
6754
6754
|
x.preventDefault(), ee();
|
|
6755
6755
|
}), Be(K, (x, me) => {
|
|
6756
|
-
x !== "idle" && me === "idle" &&
|
|
6756
|
+
x !== "idle" && me === "idle" && R.connect(), x === "ready" && me !== "ready" && (I.debug("服务就绪,加载会话列表"), et());
|
|
6757
6757
|
});
|
|
6758
|
-
const Q = /* @__PURE__ */
|
|
6758
|
+
const Q = /* @__PURE__ */ k(null), pe = (x) => {
|
|
6759
6759
|
if (x.data?.type === de.SESSION_READY) {
|
|
6760
6760
|
const me = x.data.sessionId;
|
|
6761
|
-
if (ut(), me && me ===
|
|
6761
|
+
if (ut(), me && me === Re.value) {
|
|
6762
6762
|
Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1;
|
|
6763
6763
|
return;
|
|
6764
6764
|
}
|
|
6765
|
-
Me.value &&
|
|
6765
|
+
Me.value && Re.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: Re.value });
|
|
6766
6766
|
return;
|
|
6767
6767
|
}
|
|
6768
|
-
x.data?.type === de.READY && ge() && (Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1, ut(),
|
|
6768
|
+
x.data?.type === de.READY && ge() && (Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1, ut(), Re.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: Re.value })), x.data?.type === de.KEYDOWN && (x.data.key === "Escape" && n.value && ye(!1), x.data.ctrlKey && x.data.key.toLowerCase() === "p" && ee());
|
|
6769
6769
|
}, Ce = () => {
|
|
6770
|
-
n.value &&
|
|
6770
|
+
n.value && V.onSelectModeChange?.(!1);
|
|
6771
6771
|
};
|
|
6772
6772
|
Ze(() => {
|
|
6773
|
-
|
|
6773
|
+
I.debug(`onMounted, sid=${v}, serviceStatus=${K.value}, config: ${JSON.stringify(t.config)}`), K.value === "ready" ? (I.debug("onMounted: ready 分支,直接加载会话"), et(), R.connect(), b(!0)) : K.value === "idle" && (B ? (I.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), Le(), R.connect()) : (I.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), et(), R.connect())), u && K.value === "ready" && setTimeout(() => {
|
|
6774
6774
|
i.value = !0;
|
|
6775
6775
|
}, 1e3), window.addEventListener("message", pe), document.addEventListener("visibilitychange", Ce), window.addEventListener("pagehide", Ce);
|
|
6776
6776
|
}), Ye(() => {
|
|
@@ -6788,25 +6788,25 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6788
6788
|
i.value = x, x && b();
|
|
6789
6789
|
}, dt = async (x, me, mn) => {
|
|
6790
6790
|
if (Z) {
|
|
6791
|
-
|
|
6791
|
+
V.notifySelectionResult?.(x), oe("元素已选中", { mode: "page" });
|
|
6792
6792
|
return;
|
|
6793
6793
|
}
|
|
6794
6794
|
const Ci = je.value.find((Qt) => Qt.filePath === x.filePath && Qt.line === x.line)?.id ?? Eu(x), Un = {
|
|
6795
6795
|
...x,
|
|
6796
6796
|
id: Ci,
|
|
6797
|
-
previewPageUrl:
|
|
6798
|
-
previewPageTitle:
|
|
6797
|
+
previewPageUrl: B && me ? me : window.location.href,
|
|
6798
|
+
previewPageTitle: B && mn ? mn : document.title
|
|
6799
6799
|
};
|
|
6800
6800
|
Xe(Un) && b(!0), l.value?.sendMessageToIframe(de.INSERT_FILE_PART, { element: Un }), oe("节点已添加到对话框", { mode: "page" });
|
|
6801
6801
|
}, jt = () => {
|
|
6802
6802
|
Ne(), b(!0), oe("已清除所有选中元素");
|
|
6803
6803
|
}, ye = (x) => {
|
|
6804
6804
|
if (n.value === x) return;
|
|
6805
|
-
n.value = x,
|
|
6805
|
+
n.value = x, B && V.onSelectModeChange?.(x), l.value?.sendMessageToIframe(de.SELECT_MODE_CHANGE, { selectMode: x });
|
|
6806
6806
|
const me = l.value?.isSplitMode;
|
|
6807
|
-
x && !me && i.value && (i.value = !1), !x && !i.value && (i.value = !0), Z &&
|
|
6807
|
+
x && !me && i.value && (i.value = !1), !x && !i.value && (i.value = !0), Z && V.notifySelectModeChange?.(x);
|
|
6808
6808
|
};
|
|
6809
|
-
if (
|
|
6809
|
+
if (B) {
|
|
6810
6810
|
const x = Vf({
|
|
6811
6811
|
selectMode: n,
|
|
6812
6812
|
serviceInstanceId: v,
|
|
@@ -6815,18 +6815,18 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6815
6815
|
ot.value = me, ut();
|
|
6816
6816
|
}
|
|
6817
6817
|
});
|
|
6818
|
-
|
|
6818
|
+
V.onSelectModeChange = x.onSelectModeChange, V.broadcastTheme = x.broadcastTheme;
|
|
6819
6819
|
}
|
|
6820
6820
|
if (Z) {
|
|
6821
6821
|
const x = jf({ onSelectModeChange: ye });
|
|
6822
|
-
|
|
6822
|
+
V.notifySelectionResult = x.notifySelectionResult, V.notifySelectModeChange = x.notifySelectModeChange;
|
|
6823
6823
|
}
|
|
6824
6824
|
const Se = (x) => {
|
|
6825
6825
|
s.value = x;
|
|
6826
6826
|
}, Ue = (x) => {
|
|
6827
|
-
ot.value = x,
|
|
6827
|
+
ot.value = x, B && V.broadcastTheme?.(x);
|
|
6828
6828
|
}, $t = (x) => {
|
|
6829
|
-
|
|
6829
|
+
M.value = x;
|
|
6830
6830
|
}, vn = ({ index: x }) => {
|
|
6831
6831
|
ze(x), b(!0);
|
|
6832
6832
|
}, gn = () => {
|
|
@@ -6842,12 +6842,12 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6842
6842
|
open: i.value,
|
|
6843
6843
|
"select-mode": n.value,
|
|
6844
6844
|
"session-list-collapsed": s.value,
|
|
6845
|
-
"frame-loading":
|
|
6845
|
+
"frame-loading": H.value,
|
|
6846
6846
|
"loading-session-list": _e(Qe),
|
|
6847
6847
|
"show-session-list-skeleton": D.value,
|
|
6848
6848
|
"show-error": _e(N),
|
|
6849
6849
|
"iframe-src": _e(We),
|
|
6850
|
-
"current-session-id": _e(
|
|
6850
|
+
"current-session-id": _e(Re),
|
|
6851
6851
|
sessions: _e(Ct),
|
|
6852
6852
|
"session-states": _e(F),
|
|
6853
6853
|
"review-panel-enabled": _e(ct),
|
|
@@ -6856,7 +6856,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
|
|
|
6856
6856
|
thinking: _e(E),
|
|
6857
6857
|
"display-mode": _e(p),
|
|
6858
6858
|
"split-mode": _e(m),
|
|
6859
|
-
"split-panel-width":
|
|
6859
|
+
"split-panel-width": M.value,
|
|
6860
6860
|
"onUpdate:open": Ie,
|
|
6861
6861
|
"onUpdate:selectMode": ye,
|
|
6862
6862
|
"onUpdate:sessionListCollapsed": Se,
|