vite-plugin-opencode-assistant 1.0.39 → 1.0.41

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/lib/client.js CHANGED
@@ -948,7 +948,7 @@ function Ee(e) {
948
948
  return e ? e.__v_isRef === !0 : !1;
949
949
  }
950
950
  // @__NO_SIDE_EFFECTS__
951
- function L(e) {
951
+ function F(e) {
952
952
  return gr(e, !1);
953
953
  }
954
954
  function gr(e, t) {
@@ -1017,7 +1017,7 @@ class yr {
1017
1017
  }
1018
1018
  // @__NO_SIDE_EFFECTS__
1019
1019
  function Z(e, t, n) {
1020
- return /* @__PURE__ */ Ee(e) ? e : te(e) ? new yr(e) : ie(e) && arguments.length > 1 ? br(e, t, n) : /* @__PURE__ */ L(e);
1020
+ return /* @__PURE__ */ Ee(e) ? e : te(e) ? new yr(e) : ie(e) && arguments.length > 1 ? br(e, t, n) : /* @__PURE__ */ F(e);
1021
1021
  }
1022
1022
  function br(e, t, n) {
1023
1023
  return new _r(e, t, n);
@@ -1085,37 +1085,37 @@ function Tr(e, t, n = ae) {
1085
1085
  const y = d, $ = o === !0 ? 1 / 0 : o;
1086
1086
  d = () => yt(y(), $);
1087
1087
  }
1088
- const x = Kl(), D = () => {
1089
- c.stop(), x && x.active && Yo(x.effects, c);
1088
+ const O = Kl(), R = () => {
1089
+ c.stop(), O && O.active && Yo(O.effects, c);
1090
1090
  };
1091
1091
  if (i && t) {
1092
1092
  const y = t;
1093
1093
  t = (...$) => {
1094
- y(...$), D();
1094
+ y(...$), R();
1095
1095
  };
1096
1096
  }
1097
- let O = _ ? new Array(e.length).fill(Pn) : Pn;
1097
+ let A = _ ? new Array(e.length).fill(Pn) : Pn;
1098
1098
  const B = (y) => {
1099
1099
  if (!(!(c.flags & 1) || !c.dirty && !y))
1100
1100
  if (t) {
1101
1101
  const $ = c.run();
1102
- if (o || C || (_ ? $.some((N, j) => ut(N, O[j])) : ut($, O))) {
1102
+ if (o || C || (_ ? $.some((I, j) => ut(I, A[j])) : ut($, A))) {
1103
1103
  p && p();
1104
- const N = Bt;
1104
+ const I = Bt;
1105
1105
  Bt = c;
1106
1106
  try {
1107
1107
  const j = [
1108
1108
  $,
1109
1109
  // pass undefined as the old value when it's changed for the first time
1110
- O === Pn ? void 0 : _ && O[0] === Pn ? [] : O,
1110
+ A === Pn ? void 0 : _ && A[0] === Pn ? [] : A,
1111
1111
  m
1112
1112
  ];
1113
- O = $, a ? a(t, 3, j) : (
1113
+ A = $, a ? a(t, 3, j) : (
1114
1114
  // @ts-expect-error
1115
1115
  t(...j)
1116
1116
  );
1117
1117
  } finally {
1118
- Bt = N;
1118
+ Bt = I;
1119
1119
  }
1120
1120
  }
1121
1121
  } else
@@ -1130,7 +1130,7 @@ function Tr(e, t, n = ae) {
1130
1130
  for (const $ of y) $();
1131
1131
  Ln.delete(c);
1132
1132
  }
1133
- }, t ? s ? B(!0) : O = c.run() : l ? l(B.bind(null, !0), !0) : c.run(), D.pause = c.pause.bind(c), D.resume = c.resume.bind(c), D.stop = D, D;
1133
+ }, t ? s ? B(!0) : A = c.run() : l ? l(B.bind(null, !0), !0) : c.run(), R.pause = c.pause.bind(c), R.resume = c.resume.bind(c), R.stop = R, R;
1134
1134
  }
1135
1135
  function yt(e, t = 1 / 0, n) {
1136
1136
  if (t <= 0 || !ie(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
@@ -1397,12 +1397,12 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1397
1397
  mc: c,
1398
1398
  pc: d,
1399
1399
  pbc: p,
1400
- o: { insert: m, querySelector: C, createText: _, createComment: x }
1401
- } = f, D = $t(t.props);
1402
- let { dynamicChildren: O } = t;
1403
- const B = (N, j, z) => {
1404
- N.shapeFlag & 16 && c(
1405
- N.children,
1400
+ o: { insert: m, querySelector: C, createText: _, createComment: O }
1401
+ } = f, R = $t(t.props);
1402
+ let { dynamicChildren: A } = t;
1403
+ const B = (I, j, z) => {
1404
+ I.shapeFlag & 16 && c(
1405
+ I.children,
1406
1406
  j,
1407
1407
  z,
1408
1408
  o,
@@ -1411,34 +1411,34 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1411
1411
  r,
1412
1412
  a
1413
1413
  );
1414
- }, y = (N = t) => {
1415
- const j = $t(N.props), z = N.target = Ss(N.props, C), ce = ws(z, N, _, m);
1416
- z && (l !== "svg" && io(z) ? l = "svg" : l !== "mathml" && lo(z) && (l = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(z), j || (B(N, z, ce), un(N, !1)));
1417
- }, $ = (N) => {
1414
+ }, y = (I = t) => {
1415
+ const j = $t(I.props), z = I.target = Ss(I.props, C), ce = ws(z, I, _, m);
1416
+ z && (l !== "svg" && io(z) ? l = "svg" : l !== "mathml" && lo(z) && (l = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(z), j || (B(I, z, ce), un(I, !1)));
1417
+ }, $ = (I) => {
1418
1418
  const j = () => {
1419
- Lt.get(N) === j && (Lt.delete(N), $t(N.props) && (B(N, n, N.anchor), un(N, !0)), y(N));
1419
+ Lt.get(I) === j && (Lt.delete(I), $t(I.props) && (B(I, n, I.anchor), un(I, !0)), y(I));
1420
1420
  };
1421
- Lt.set(N, j), ke(j, i);
1421
+ Lt.set(I, j), ke(j, i);
1422
1422
  };
1423
1423
  if (e == null) {
1424
- const N = t.el = _(""), j = t.anchor = _("");
1425
- if (m(N, n, s), m(j, n, s), Dr(t.props) || i && i.pendingBranch) {
1424
+ const I = t.el = _(""), j = t.anchor = _("");
1425
+ if (m(I, n, s), m(j, n, s), Dr(t.props) || i && i.pendingBranch) {
1426
1426
  $(t);
1427
1427
  return;
1428
1428
  }
1429
- D && (B(t, n, j), un(t, !0)), y();
1429
+ R && (B(t, n, j), un(t, !0)), y();
1430
1430
  } else {
1431
1431
  t.el = e.el;
1432
- const N = t.anchor = e.anchor, j = Lt.get(e);
1432
+ const I = t.anchor = e.anchor, j = Lt.get(e);
1433
1433
  if (j) {
1434
1434
  j.flags |= 8, Lt.delete(e), $(t);
1435
1435
  return;
1436
1436
  }
1437
1437
  t.targetStart = e.targetStart;
1438
- const z = t.target = e.target, ce = t.targetAnchor = e.targetAnchor, fe = $t(e.props), _e = fe ? n : z, Re = fe ? N : ce;
1439
- if (l === "svg" || io(z) ? l = "svg" : (l === "mathml" || lo(z)) && (l = "mathml"), O ? (p(
1438
+ const z = t.target = e.target, ce = t.targetAnchor = e.targetAnchor, fe = $t(e.props), _e = fe ? n : z, Re = fe ? I : ce;
1439
+ if (l === "svg" || io(z) ? l = "svg" : (l === "mathml" || lo(z)) && (l = "mathml"), A ? (p(
1440
1440
  e.dynamicChildren,
1441
- O,
1441
+ A,
1442
1442
  _e,
1443
1443
  o,
1444
1444
  i,
@@ -1454,22 +1454,22 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1454
1454
  l,
1455
1455
  r,
1456
1456
  !1
1457
- ), D)
1457
+ ), R)
1458
1458
  fe ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : kn(
1459
1459
  t,
1460
1460
  n,
1461
- N,
1461
+ I,
1462
1462
  f,
1463
1463
  1
1464
1464
  );
1465
1465
  else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
1466
- const I = t.target = Ss(
1466
+ const N = t.target = Ss(
1467
1467
  t.props,
1468
1468
  C
1469
1469
  );
1470
- I && kn(
1470
+ N && kn(
1471
1471
  t,
1472
- I,
1472
+ N,
1473
1473
  null,
1474
1474
  f,
1475
1475
  0
@@ -1481,7 +1481,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1481
1481
  f,
1482
1482
  1
1483
1483
  );
1484
- un(t, D);
1484
+ un(t, R);
1485
1485
  }
1486
1486
  },
1487
1487
  remove(e, t, n, { um: s, o: { remove: o } }, i) {
@@ -1498,13 +1498,13 @@ const Lt = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ Symbol("_vte"), k
1498
1498
  const C = Lt.get(e);
1499
1499
  if (C && (C.flags |= 8, Lt.delete(e), m = !1), d && (o(f), o(c)), i && o(a), l & 16)
1500
1500
  for (let _ = 0; _ < r.length; _++) {
1501
- const x = r[_];
1501
+ const O = r[_];
1502
1502
  s(
1503
- x,
1503
+ O,
1504
1504
  t,
1505
1505
  n,
1506
1506
  m,
1507
- !!x.dynamicChildren
1507
+ !!O.dynamicChildren
1508
1508
  );
1509
1509
  }
1510
1510
  },
@@ -1527,25 +1527,25 @@ function kn(e, t, n, { o: { insert: s }, m: o }, i = 2) {
1527
1527
  function Ir(e, t, n, s, o, i, {
1528
1528
  o: { nextSibling: l, parentNode: r, querySelector: a, insert: f, createText: c }
1529
1529
  }, d) {
1530
- function p(x, D) {
1531
- let O = D;
1532
- for (; O; ) {
1533
- if (O && O.nodeType === 8) {
1534
- if (O.data === "teleport start anchor")
1535
- t.targetStart = O;
1536
- else if (O.data === "teleport anchor") {
1537
- t.targetAnchor = O, x._lpa = t.targetAnchor && l(t.targetAnchor);
1530
+ function p(O, R) {
1531
+ let A = R;
1532
+ for (; A; ) {
1533
+ if (A && A.nodeType === 8) {
1534
+ if (A.data === "teleport start anchor")
1535
+ t.targetStart = A;
1536
+ else if (A.data === "teleport anchor") {
1537
+ t.targetAnchor = A, O._lpa = t.targetAnchor && l(t.targetAnchor);
1538
1538
  break;
1539
1539
  }
1540
1540
  }
1541
- O = l(O);
1541
+ A = l(A);
1542
1542
  }
1543
1543
  }
1544
- function m(x, D) {
1545
- D.anchor = d(
1546
- l(x),
1547
- D,
1548
- r(x),
1544
+ function m(O, R) {
1545
+ R.anchor = d(
1546
+ l(O),
1547
+ R,
1548
+ r(O),
1549
1549
  n,
1550
1550
  s,
1551
1551
  o,
@@ -1557,8 +1557,8 @@ function Ir(e, t, n, s, o, i, {
1557
1557
  a
1558
1558
  ), _ = $t(t.props);
1559
1559
  if (C) {
1560
- const x = C._lpa || C.firstChild;
1561
- t.shapeFlag & 16 && (_ ? (m(e, t), p(C, x), t.targetAnchor || ws(
1560
+ const O = C._lpa || C.firstChild;
1561
+ t.shapeFlag & 16 && (_ ? (m(e, t), p(C, O), t.targetAnchor || ws(
1562
1562
  C,
1563
1563
  t,
1564
1564
  c,
@@ -1566,8 +1566,8 @@ function Ir(e, t, n, s, o, i, {
1566
1566
  // if target is the same as the main view, insert anchors before current node
1567
1567
  // to avoid hydrating mismatch
1568
1568
  r(e) === C ? e : null
1569
- )) : (t.anchor = l(e), p(C, x), t.targetAnchor || ws(C, t, c, f), d(
1570
- x && l(x),
1569
+ )) : (t.anchor = l(e), p(C, O), t.targetAnchor || ws(C, t, c, f), d(
1570
+ O && l(O),
1571
1571
  t,
1572
1572
  C,
1573
1573
  n,
@@ -1615,9 +1615,9 @@ const $n = /* @__PURE__ */ new WeakMap();
1615
1615
  function pn(e, t, n, s, o = !1) {
1616
1616
  if (U(e)) {
1617
1617
  e.forEach(
1618
- (_, x) => pn(
1618
+ (_, O) => pn(
1619
1619
  _,
1620
- t && (U(t) ? t[x] : t),
1620
+ t && (U(t) ? t[O] : t),
1621
1621
  n,
1622
1622
  s,
1623
1623
  o
@@ -1629,7 +1629,7 @@ function pn(e, t, n, s, o = !1) {
1629
1629
  s.shapeFlag & 512 && s.type.__asyncResolved && s.component.subTree.component && pn(e, t, n, s.component.subTree);
1630
1630
  return;
1631
1631
  }
1632
- const i = s.shapeFlag & 4 ? ns(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, f = t && t.r, c = r.refs === ae ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Q(d), m = d === ae ? Ko : (_) => ro(c, _) ? !1 : ne(p, _), C = (_, x) => !(x && ro(c, x));
1632
+ const i = s.shapeFlag & 4 ? ns(s.component) : s.el, l = o ? null : i, { i: r, r: a } = e, f = t && t.r, c = r.refs === ae ? r.refs = {} : r.refs, d = r.setupState, p = /* @__PURE__ */ Q(d), m = d === ae ? Ko : (_) => ro(c, _) ? !1 : ne(p, _), C = (_, O) => !(O && ro(c, O));
1633
1633
  if (f != null && f !== a) {
1634
1634
  if (ao(t), ve(f))
1635
1635
  c[f] = null, m(f) && (d[f] = null);
@@ -1641,30 +1641,30 @@ function pn(e, t, n, s, o = !1) {
1641
1641
  if (te(a))
1642
1642
  Cn(a, r, 12, [l, c]);
1643
1643
  else {
1644
- const _ = ve(a), x = /* @__PURE__ */ Ee(a);
1645
- if (_ || x) {
1646
- const D = () => {
1644
+ const _ = ve(a), O = /* @__PURE__ */ Ee(a);
1645
+ if (_ || O) {
1646
+ const R = () => {
1647
1647
  if (e.f) {
1648
- const O = _ ? m(a) ? d[a] : c[a] : C() || !e.k ? a.value : c[e.k];
1648
+ const A = _ ? m(a) ? d[a] : c[a] : C() || !e.k ? a.value : c[e.k];
1649
1649
  if (o)
1650
- U(O) && Yo(O, i);
1651
- else if (U(O))
1652
- O.includes(i) || O.push(i);
1650
+ U(A) && Yo(A, i);
1651
+ else if (U(A))
1652
+ A.includes(i) || A.push(i);
1653
1653
  else if (_)
1654
1654
  c[a] = [i], m(a) && (d[a] = c[a]);
1655
1655
  else {
1656
1656
  const B = [i];
1657
1657
  C(a, e.k) && (a.value = B), e.k && (c[e.k] = B);
1658
1658
  }
1659
- } else _ ? (c[a] = l, m(a) && (d[a] = l)) : x && (C(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
1659
+ } else _ ? (c[a] = l, m(a) && (d[a] = l)) : O && (C(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
1660
1660
  };
1661
1661
  if (l) {
1662
- const O = () => {
1663
- D(), $n.delete(e);
1662
+ const A = () => {
1663
+ R(), $n.delete(e);
1664
1664
  };
1665
- O.id = -1, $n.set(e, O), ke(O, n);
1665
+ A.id = -1, $n.set(e, A), ke(A, n);
1666
1666
  } else
1667
- ao(e), D();
1667
+ ao(e), R();
1668
1668
  }
1669
1669
  }
1670
1670
  }
@@ -1997,12 +1997,12 @@ function co(e) {
1997
1997
  setupState: m,
1998
1998
  ctx: C,
1999
1999
  inheritAttrs: _
2000
- } = e, x = Bn(e);
2001
- let D, O;
2000
+ } = e, O = Bn(e);
2001
+ let R, A;
2002
2002
  try {
2003
2003
  if (n.shapeFlag & 4) {
2004
2004
  const y = o || s, $ = y;
2005
- D = ct(
2005
+ R = ct(
2006
2006
  f.call(
2007
2007
  $,
2008
2008
  y,
@@ -2012,10 +2012,10 @@ function co(e) {
2012
2012
  p,
2013
2013
  C
2014
2014
  )
2015
- ), O = r;
2015
+ ), A = r;
2016
2016
  } else {
2017
2017
  const y = t;
2018
- D = ct(
2018
+ R = ct(
2019
2019
  y.length > 1 ? y(
2020
2020
  d,
2021
2021
  { attrs: r, slots: l, emit: a }
@@ -2023,20 +2023,20 @@ function co(e) {
2023
2023
  d,
2024
2024
  null
2025
2025
  )
2026
- ), O = t.props ? r : Yr(r);
2026
+ ), A = t.props ? r : Yr(r);
2027
2027
  }
2028
2028
  } catch (y) {
2029
- vn.length = 0, Qn(y, e, 1), D = we(wt);
2029
+ vn.length = 0, Qn(y, e, 1), R = we(wt);
2030
2030
  }
2031
- let B = D;
2032
- if (O && _ !== !1) {
2033
- const y = Object.keys(O), { shapeFlag: $ } = B;
2034
- y.length && $ & 7 && (i && y.some(Kn) && (O = Xr(
2035
- O,
2031
+ let B = R;
2032
+ if (A && _ !== !1) {
2033
+ const y = Object.keys(A), { shapeFlag: $ } = B;
2034
+ y.length && $ & 7 && (i && y.some(Kn) && (A = Xr(
2035
+ A,
2036
2036
  i
2037
- )), B = Zt(B, O, !1, !0));
2037
+ )), B = Zt(B, A, !1, !0));
2038
2038
  }
2039
- return n.dirs && (B = Zt(B, null, !1, !0), B.dirs = B.dirs ? B.dirs.concat(n.dirs) : n.dirs), n.transition && $s(B, n.transition), D = B, Bn(x), D;
2039
+ return n.dirs && (B = Zt(B, null, !1, !0), B.dirs = B.dirs ? B.dirs.concat(n.dirs) : n.dirs), n.transition && $s(B, n.transition), R = B, Bn(O), R;
2040
2040
  }
2041
2041
  const Yr = (e) => {
2042
2042
  let t;
@@ -2241,12 +2241,12 @@ function ea(e, t, n = !1) {
2241
2241
  const d = i[f], p = l[c] = U(d) || te(d) ? { type: d } : tt({}, d), m = p.type;
2242
2242
  let C = !1, _ = !0;
2243
2243
  if (U(m))
2244
- for (let x = 0; x < m.length; ++x) {
2245
- const D = m[x], O = te(D) && D.name;
2246
- if (O === "Boolean") {
2244
+ for (let O = 0; O < m.length; ++O) {
2245
+ const R = m[O], A = te(R) && R.name;
2246
+ if (A === "Boolean") {
2247
2247
  C = !0;
2248
2248
  break;
2249
- } else O === "String" && (_ = !1);
2249
+ } else A === "String" && (_ = !1);
2250
2250
  }
2251
2251
  else
2252
2252
  C = te(m) && m.name === "Boolean";
@@ -2328,16 +2328,16 @@ function ia(e, t) {
2328
2328
  if (u === h)
2329
2329
  return;
2330
2330
  u && !rn(u, h) && (T = Ue(u), me(u, b, S, !0), u = null), h.patchFlag === -2 && (M = !1, h.dynamicChildren = null);
2331
- const { type: w, ref: W, shapeFlag: R } = h;
2331
+ const { type: w, ref: W, shapeFlag: D } = h;
2332
2332
  switch (w) {
2333
2333
  case ts:
2334
- x(u, h, g, T);
2334
+ O(u, h, g, T);
2335
2335
  break;
2336
2336
  case wt:
2337
- D(u, h, g, T);
2337
+ R(u, h, g, T);
2338
2338
  break;
2339
2339
  case mn:
2340
- u == null && O(h, g, T, P);
2340
+ u == null && A(h, g, T, P);
2341
2341
  break;
2342
2342
  case ue:
2343
2343
  Re(
@@ -2353,7 +2353,7 @@ function ia(e, t) {
2353
2353
  );
2354
2354
  break;
2355
2355
  default:
2356
- R & 1 ? $(
2356
+ D & 1 ? $(
2357
2357
  u,
2358
2358
  h,
2359
2359
  g,
@@ -2363,7 +2363,7 @@ function ia(e, t) {
2363
2363
  P,
2364
2364
  k,
2365
2365
  M
2366
- ) : R & 6 ? I(
2366
+ ) : D & 6 ? N(
2367
2367
  u,
2368
2368
  h,
2369
2369
  g,
@@ -2373,7 +2373,7 @@ function ia(e, t) {
2373
2373
  P,
2374
2374
  k,
2375
2375
  M
2376
- ) : (R & 64 || R & 128) && w.process(
2376
+ ) : (D & 64 || D & 128) && w.process(
2377
2377
  u,
2378
2378
  h,
2379
2379
  g,
@@ -2387,7 +2387,7 @@ function ia(e, t) {
2387
2387
  );
2388
2388
  }
2389
2389
  W != null && b ? pn(W, u && u.ref, S, h || u, !h) : W == null && u && u.ref != null && pn(u.ref, null, S, u, !0);
2390
- }, x = (u, h, g, T) => {
2390
+ }, O = (u, h, g, T) => {
2391
2391
  if (u == null)
2392
2392
  s(
2393
2393
  h.el = r(h.children),
@@ -2398,13 +2398,13 @@ function ia(e, t) {
2398
2398
  const b = h.el = u.el;
2399
2399
  h.children !== u.children && f(b, h.children);
2400
2400
  }
2401
- }, D = (u, h, g, T) => {
2401
+ }, R = (u, h, g, T) => {
2402
2402
  u == null ? s(
2403
2403
  h.el = a(h.children || ""),
2404
2404
  g,
2405
2405
  T
2406
2406
  ) : h.el = u.el;
2407
- }, O = (u, h, g, T) => {
2407
+ }, A = (u, h, g, T) => {
2408
2408
  [u.el, u.anchor] = C(
2409
2409
  u.children,
2410
2410
  h,
@@ -2425,7 +2425,7 @@ function ia(e, t) {
2425
2425
  o(h);
2426
2426
  }, $ = (u, h, g, T, b, S, P, k, M) => {
2427
2427
  if (h.type === "svg" ? P = "svg" : h.type === "math" && (P = "mathml"), u == null)
2428
- N(
2428
+ I(
2429
2429
  h,
2430
2430
  g,
2431
2431
  T,
@@ -2451,15 +2451,15 @@ function ia(e, t) {
2451
2451
  w && w._endPatch();
2452
2452
  }
2453
2453
  }
2454
- }, N = (u, h, g, T, b, S, P, k) => {
2454
+ }, I = (u, h, g, T, b, S, P, k) => {
2455
2455
  let M, w;
2456
- const { props: W, shapeFlag: R, transition: E, dirs: F } = u;
2456
+ const { props: W, shapeFlag: D, transition: E, dirs: L } = u;
2457
2457
  if (M = u.el = l(
2458
2458
  u.type,
2459
2459
  S,
2460
2460
  W && W.is,
2461
2461
  W
2462
- ), R & 8 ? c(M, u.children) : R & 16 && z(
2462
+ ), D & 8 ? c(M, u.children) : D & 16 && z(
2463
2463
  u.children,
2464
2464
  M,
2465
2465
  null,
@@ -2468,16 +2468,16 @@ function ia(e, t) {
2468
2468
  us(u, S),
2469
2469
  P,
2470
2470
  k
2471
- ), F && Nt(u, null, T, "created"), j(M, u, u.scopeId, P, T), W) {
2471
+ ), L && Nt(u, null, T, "created"), j(M, u, u.scopeId, P, T), W) {
2472
2472
  for (const K in W)
2473
2473
  K !== "value" && !fn(K) && i(M, K, null, W[K], S, T);
2474
2474
  "value" in W && i(M, "value", null, W.value, S), (w = W.onVnodeBeforeMount) && lt(w, T, u);
2475
2475
  }
2476
- F && Nt(u, null, T, "beforeMount");
2476
+ L && Nt(u, null, T, "beforeMount");
2477
2477
  const X = la(b, E);
2478
- X && E.beforeEnter(M), s(M, h, g), ((w = W && W.onVnodeMounted) || X || F) && ke(() => {
2478
+ X && E.beforeEnter(M), s(M, h, g), ((w = W && W.onVnodeMounted) || X || L) && ke(() => {
2479
2479
  try {
2480
- w && lt(w, T, u), X && E.enter(M), F && Nt(u, null, T, "mounted");
2480
+ w && lt(w, T, u), X && E.enter(M), L && Nt(u, null, T, "mounted");
2481
2481
  } finally {
2482
2482
  }
2483
2483
  }, b);
@@ -2517,9 +2517,9 @@ function ia(e, t) {
2517
2517
  const k = h.el = u.el;
2518
2518
  let { patchFlag: M, dynamicChildren: w, dirs: W } = h;
2519
2519
  M |= u.patchFlag & 16;
2520
- const R = u.props || ae, E = h.props || ae;
2521
- let F;
2522
- if (g && Ft(g, !1), (F = E.onVnodeBeforeUpdate) && lt(F, g, h, u), W && Nt(h, u, g, "beforeUpdate"), g && Ft(g, !0), (R.innerHTML && E.innerHTML == null || R.textContent && E.textContent == null) && c(k, ""), w ? fe(
2520
+ const D = u.props || ae, E = h.props || ae;
2521
+ let L;
2522
+ if (g && Ft(g, !1), (L = E.onVnodeBeforeUpdate) && lt(L, g, h, u), W && Nt(h, u, g, "beforeUpdate"), g && Ft(g, !0), (D.innerHTML && E.innerHTML == null || D.textContent && E.textContent == null) && c(k, ""), w ? fe(
2523
2523
  u.dynamicChildren,
2524
2524
  w,
2525
2525
  k,
@@ -2539,18 +2539,18 @@ function ia(e, t) {
2539
2539
  !1
2540
2540
  ), M > 0) {
2541
2541
  if (M & 16)
2542
- _e(k, R, E, g, b);
2543
- else if (M & 2 && R.class !== E.class && i(k, "class", null, E.class, b), M & 4 && i(k, "style", R.style, E.style, b), M & 8) {
2542
+ _e(k, D, E, g, b);
2543
+ else if (M & 2 && D.class !== E.class && i(k, "class", null, E.class, b), M & 4 && i(k, "style", D.style, E.style, b), M & 8) {
2544
2544
  const X = h.dynamicProps;
2545
2545
  for (let K = 0; K < X.length; K++) {
2546
- const Y = X[K], le = R[Y], de = E[Y];
2546
+ const Y = X[K], le = D[Y], de = E[Y];
2547
2547
  (de !== le || Y === "value") && i(k, Y, le, de, b, g);
2548
2548
  }
2549
2549
  }
2550
2550
  M & 1 && u.children !== h.children && c(k, h.children);
2551
- } else !P && w == null && _e(k, R, E, g, b);
2552
- ((F = E.onVnodeUpdated) || W) && ke(() => {
2553
- F && lt(F, g, h, u), W && Nt(h, u, g, "updated");
2551
+ } else !P && w == null && _e(k, D, E, g, b);
2552
+ ((L = E.onVnodeUpdated) || W) && ke(() => {
2553
+ L && lt(L, g, h, u), W && Nt(h, u, g, "updated");
2554
2554
  }, T);
2555
2555
  }, fe = (u, h, g, T, b, S, P) => {
2556
2556
  for (let k = 0; k < h.length; k++) {
@@ -2601,8 +2601,8 @@ function ia(e, t) {
2601
2601
  }
2602
2602
  }, Re = (u, h, g, T, b, S, P, k, M) => {
2603
2603
  const w = h.el = u ? u.el : r(""), W = h.anchor = u ? u.anchor : r("");
2604
- let { patchFlag: R, dynamicChildren: E, slotScopeIds: F } = h;
2605
- F && (k = k ? k.concat(F) : F), u == null ? (s(w, g, T), s(W, g, T), z(
2604
+ let { patchFlag: D, dynamicChildren: E, slotScopeIds: L } = h;
2605
+ L && (k = k ? k.concat(L) : L), u == null ? (s(w, g, T), s(W, g, T), z(
2606
2606
  // #10007
2607
2607
  // such fragment like `<></>` will be compiled into
2608
2608
  // a fragment which doesn't have a children.
@@ -2615,7 +2615,7 @@ function ia(e, t) {
2615
2615
  P,
2616
2616
  k,
2617
2617
  M
2618
- )) : R > 0 && R & 64 && E && // #2715 the previous fragment could've been a BAILed one as a result
2618
+ )) : D > 0 && D & 64 && E && // #2715 the previous fragment could've been a BAILed one as a result
2619
2619
  // of renderSlot() with no valid children
2620
2620
  u.dynamicChildren && u.dynamicChildren.length === E.length ? (fe(
2621
2621
  u.dynamicChildren,
@@ -2645,7 +2645,7 @@ function ia(e, t) {
2645
2645
  k,
2646
2646
  M
2647
2647
  );
2648
- }, I = (u, h, g, T, b, S, P, k, M) => {
2648
+ }, N = (u, h, g, T, b, S, P, k, M) => {
2649
2649
  h.slotScopeIds = k, u == null ? h.shapeFlag & 512 ? b.ctx.activate(
2650
2650
  h,
2651
2651
  g,
@@ -2670,7 +2670,7 @@ function ia(e, t) {
2670
2670
  if (Fr(u) && (k.ctx.renderer = ot), ma(k, !1, P), k.asyncDep) {
2671
2671
  if (b && b.registerDep(k, G, P), !u.el) {
2672
2672
  const M = k.subTree = we(wt);
2673
- D(null, M, h, g), u.placeholder = M.el;
2673
+ R(null, M, h, g), u.placeholder = M.el;
2674
2674
  }
2675
2675
  } else
2676
2676
  G(
@@ -2695,11 +2695,11 @@ function ia(e, t) {
2695
2695
  }, G = (u, h, g, T, b, S, P) => {
2696
2696
  const k = () => {
2697
2697
  if (u.isMounted) {
2698
- let { next: R, bu: E, u: F, parent: X, vnode: K } = u;
2698
+ let { next: D, bu: E, u: L, parent: X, vnode: K } = u;
2699
2699
  {
2700
2700
  const Ke = Wi(u);
2701
2701
  if (Ke) {
2702
- R && (R.el = K.el, Oe(u, R, P)), Ke.asyncDep.then(() => {
2702
+ D && (D.el = K.el, Oe(u, D, P)), Ke.asyncDep.then(() => {
2703
2703
  ke(() => {
2704
2704
  u.isUnmounted || w();
2705
2705
  }, b);
@@ -2707,8 +2707,8 @@ function ia(e, t) {
2707
2707
  return;
2708
2708
  }
2709
2709
  }
2710
- let Y = R, le;
2711
- Ft(u, !1), R ? (R.el = K.el, Oe(u, R, P)) : R = K, E && os(E), (le = R.props && R.props.onVnodeBeforeUpdate) && lt(le, X, R, K), Ft(u, !0);
2710
+ let Y = D, le;
2711
+ Ft(u, !1), D ? (D.el = K.el, Oe(u, D, P)) : D = K, E && os(E), (le = D.props && D.props.onVnodeBeforeUpdate) && lt(le, X, D, K), Ft(u, !0);
2712
2712
  const de = co(u), Be = u.subTree;
2713
2713
  u.subTree = de, _(
2714
2714
  Be,
@@ -2720,14 +2720,14 @@ function ia(e, t) {
2720
2720
  u,
2721
2721
  b,
2722
2722
  S
2723
- ), R.el = de.el, Y === null && Jr(u, de.el), F && ke(F, b), (le = R.props && R.props.onVnodeUpdated) && ke(
2724
- () => lt(le, X, R, K),
2723
+ ), D.el = de.el, Y === null && Jr(u, de.el), L && ke(L, b), (le = D.props && D.props.onVnodeUpdated) && ke(
2724
+ () => lt(le, X, D, K),
2725
2725
  b
2726
2726
  );
2727
2727
  } else {
2728
- let R;
2729
- const { el: E, props: F } = h, { bm: X, m: K, parent: Y, root: le, type: de } = u, Be = Xt(h);
2730
- Ft(u, !1), X && os(X), !Be && (R = F && F.onVnodeBeforeMount) && lt(R, Y, h), Ft(u, !0);
2728
+ let D;
2729
+ const { el: E, props: L } = h, { bm: X, m: K, parent: Y, root: le, type: de } = u, Be = Xt(h);
2730
+ Ft(u, !1), X && os(X), !Be && (D = L && L.onVnodeBeforeMount) && lt(D, Y, h), Ft(u, !0);
2731
2731
  {
2732
2732
  le.ce && le.ce._hasShadowRoot() && le.ce._injectChildStyle(
2733
2733
  de,
@@ -2744,10 +2744,10 @@ function ia(e, t) {
2744
2744
  S
2745
2745
  ), h.el = Ke.el;
2746
2746
  }
2747
- if (K && ke(K, b), !Be && (R = F && F.onVnodeMounted)) {
2747
+ if (K && ke(K, b), !Be && (D = L && L.onVnodeMounted)) {
2748
2748
  const Ke = h;
2749
2749
  ke(
2750
- () => lt(R, Y, Ke),
2750
+ () => lt(D, Y, Ke),
2751
2751
  b
2752
2752
  );
2753
2753
  }
@@ -2764,12 +2764,12 @@ function ia(e, t) {
2764
2764
  const T = u.vnode.props;
2765
2765
  u.vnode = h, u.next = null, Qr(u, h.props, T, g), sa(u, h.children, g), Mt(), so(u), Pt();
2766
2766
  }, Ae = (u, h, g, T, b, S, P, k, M = !1) => {
2767
- const w = u && u.children, W = u ? u.shapeFlag : 0, R = h.children, { patchFlag: E, shapeFlag: F } = h;
2767
+ const w = u && u.children, W = u ? u.shapeFlag : 0, D = h.children, { patchFlag: E, shapeFlag: L } = h;
2768
2768
  if (E > 0) {
2769
2769
  if (E & 128) {
2770
2770
  ye(
2771
2771
  w,
2772
- R,
2772
+ D,
2773
2773
  g,
2774
2774
  T,
2775
2775
  b,
@@ -2782,7 +2782,7 @@ function ia(e, t) {
2782
2782
  } else if (E & 256) {
2783
2783
  Le(
2784
2784
  w,
2785
- R,
2785
+ D,
2786
2786
  g,
2787
2787
  T,
2788
2788
  b,
@@ -2794,9 +2794,9 @@ function ia(e, t) {
2794
2794
  return;
2795
2795
  }
2796
2796
  }
2797
- F & 8 ? (W & 16 && qe(w, b, S), R !== w && c(g, R)) : W & 16 ? F & 16 ? ye(
2797
+ L & 8 ? (W & 16 && qe(w, b, S), D !== w && c(g, D)) : W & 16 ? L & 16 ? ye(
2798
2798
  w,
2799
- R,
2799
+ D,
2800
2800
  g,
2801
2801
  T,
2802
2802
  b,
@@ -2804,8 +2804,8 @@ function ia(e, t) {
2804
2804
  P,
2805
2805
  k,
2806
2806
  M
2807
- ) : qe(w, b, S, !0) : (W & 8 && c(g, ""), F & 16 && z(
2808
- R,
2807
+ ) : qe(w, b, S, !0) : (W & 8 && c(g, ""), L & 16 && z(
2808
+ D,
2809
2809
  g,
2810
2810
  T,
2811
2811
  b,
@@ -2816,13 +2816,13 @@ function ia(e, t) {
2816
2816
  ));
2817
2817
  }, Le = (u, h, g, T, b, S, P, k, M) => {
2818
2818
  u = u || Ut, h = h || Ut;
2819
- const w = u.length, W = h.length, R = Math.min(w, W);
2819
+ const w = u.length, W = h.length, D = Math.min(w, W);
2820
2820
  let E;
2821
- for (E = 0; E < R; E++) {
2822
- const F = h[E] = M ? vt(h[E]) : ct(h[E]);
2821
+ for (E = 0; E < D; E++) {
2822
+ const L = h[E] = M ? vt(h[E]) : ct(h[E]);
2823
2823
  _(
2824
2824
  u[E],
2825
- F,
2825
+ L,
2826
2826
  g,
2827
2827
  null,
2828
2828
  b,
@@ -2838,7 +2838,7 @@ function ia(e, t) {
2838
2838
  S,
2839
2839
  !0,
2840
2840
  !1,
2841
- R
2841
+ D
2842
2842
  ) : z(
2843
2843
  h,
2844
2844
  g,
@@ -2848,17 +2848,17 @@ function ia(e, t) {
2848
2848
  P,
2849
2849
  k,
2850
2850
  M,
2851
- R
2851
+ D
2852
2852
  );
2853
2853
  }, ye = (u, h, g, T, b, S, P, k, M) => {
2854
2854
  let w = 0;
2855
2855
  const W = h.length;
2856
- let R = u.length - 1, E = W - 1;
2857
- for (; w <= R && w <= E; ) {
2858
- const F = u[w], X = h[w] = M ? vt(h[w]) : ct(h[w]);
2859
- if (rn(F, X))
2856
+ let D = u.length - 1, E = W - 1;
2857
+ for (; w <= D && w <= E; ) {
2858
+ const L = u[w], X = h[w] = M ? vt(h[w]) : ct(h[w]);
2859
+ if (rn(L, X))
2860
2860
  _(
2861
- F,
2861
+ L,
2862
2862
  X,
2863
2863
  g,
2864
2864
  null,
@@ -2872,11 +2872,11 @@ function ia(e, t) {
2872
2872
  break;
2873
2873
  w++;
2874
2874
  }
2875
- for (; w <= R && w <= E; ) {
2876
- const F = u[R], X = h[E] = M ? vt(h[E]) : ct(h[E]);
2877
- if (rn(F, X))
2875
+ for (; w <= D && w <= E; ) {
2876
+ const L = u[D], X = h[E] = M ? vt(h[E]) : ct(h[E]);
2877
+ if (rn(L, X))
2878
2878
  _(
2879
- F,
2879
+ L,
2880
2880
  X,
2881
2881
  g,
2882
2882
  null,
@@ -2888,11 +2888,11 @@ function ia(e, t) {
2888
2888
  );
2889
2889
  else
2890
2890
  break;
2891
- R--, E--;
2891
+ D--, E--;
2892
2892
  }
2893
- if (w > R) {
2893
+ if (w > D) {
2894
2894
  if (w <= E) {
2895
- const F = E + 1, X = F < W ? h[F].el : T;
2895
+ const L = E + 1, X = L < W ? h[L].el : T;
2896
2896
  for (; w <= E; )
2897
2897
  _(
2898
2898
  null,
@@ -2907,10 +2907,10 @@ function ia(e, t) {
2907
2907
  ), w++;
2908
2908
  }
2909
2909
  } else if (w > E)
2910
- for (; w <= R; )
2910
+ for (; w <= D; )
2911
2911
  me(u[w], b, S, !0), w++;
2912
2912
  else {
2913
- const F = w, X = w, K = /* @__PURE__ */ new Map();
2913
+ const L = w, X = w, K = /* @__PURE__ */ new Map();
2914
2914
  for (w = X; w <= E; w++) {
2915
2915
  const Me = h[w] = M ? vt(h[w]) : ct(h[w]);
2916
2916
  Me.key != null && K.set(Me.key, w);
@@ -2920,7 +2920,7 @@ function ia(e, t) {
2920
2920
  let Be = !1, Ke = 0;
2921
2921
  const Tt = new Array(de);
2922
2922
  for (w = 0; w < de; w++) Tt[w] = 0;
2923
- for (w = F; w <= R; w++) {
2923
+ for (w = L; w <= D; w++) {
2924
2924
  const Me = u[w];
2925
2925
  if (le >= de) {
2926
2926
  me(Me, b, S, !0);
@@ -2982,8 +2982,8 @@ function ia(e, t) {
2982
2982
  }
2983
2983
  if (P === ue) {
2984
2984
  s(S, h, g);
2985
- for (let R = 0; R < M.length; R++)
2986
- ge(M[R], h, g, T);
2985
+ for (let D = 0; D < M.length; D++)
2986
+ ge(M[D], h, g, T);
2987
2987
  s(u.anchor, h, g);
2988
2988
  return;
2989
2989
  }
@@ -2995,14 +2995,14 @@ function ia(e, t) {
2995
2995
  if (T === 0)
2996
2996
  k.beforeEnter(S), s(S, h, g), ke(() => k.enter(S), b);
2997
2997
  else {
2998
- const { leave: R, delayLeave: E, afterLeave: F } = k, X = () => {
2998
+ const { leave: D, delayLeave: E, afterLeave: L } = k, X = () => {
2999
2999
  u.ctx.isUnmounted ? o(S) : s(S, h, g);
3000
3000
  }, K = () => {
3001
3001
  S._isLeaving && S[Nr](
3002
3002
  !0
3003
3003
  /* cancelled */
3004
- ), R(S, () => {
3005
- X(), F && F();
3004
+ ), D(S, () => {
3005
+ X(), L && L();
3006
3006
  });
3007
3007
  };
3008
3008
  E ? E(S, X, K) : K();
@@ -3017,12 +3017,12 @@ function ia(e, t) {
3017
3017
  children: M,
3018
3018
  dynamicChildren: w,
3019
3019
  shapeFlag: W,
3020
- patchFlag: R,
3020
+ patchFlag: D,
3021
3021
  dirs: E,
3022
- cacheIndex: F,
3022
+ cacheIndex: L,
3023
3023
  memo: X
3024
3024
  } = u;
3025
- if (R === -2 && (b = !1), k != null && (Mt(), pn(k, null, g, u, !0), Pt()), F != null && (h.renderCache[F] = void 0), W & 256) {
3025
+ if (D === -2 && (b = !1), k != null && (Mt(), pn(k, null, g, u, !0), Pt()), L != null && (h.renderCache[L] = void 0), W & 256) {
3026
3026
  h.ctx.deactivate(u);
3027
3027
  return;
3028
3028
  }
@@ -3047,15 +3047,15 @@ function ia(e, t) {
3047
3047
  // so that it doesn't take the fast path during unmount - otherwise
3048
3048
  // components nested in v-once are never unmounted.
3049
3049
  !w.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
3050
- (S !== ue || R > 0 && R & 64) ? qe(
3050
+ (S !== ue || D > 0 && D & 64) ? qe(
3051
3051
  w,
3052
3052
  h,
3053
3053
  g,
3054
3054
  !1,
3055
3055
  !0
3056
- ) : (S === ue && R & 384 || !b && W & 16) && qe(M, h, g), T && st(u);
3056
+ ) : (S === ue && D & 384 || !b && W & 16) && qe(M, h, g), T && st(u);
3057
3057
  }
3058
- const de = X != null && F == null;
3058
+ const de = X != null && L == null;
3059
3059
  (Y && (le = P && P.onVnodeUnmounted) || K || de) && ke(() => {
3060
3060
  le && lt(le, h, u), K && Nt(u, null, h, "unmounted"), de && (u.el = null);
3061
3061
  }, g);
@@ -4021,7 +4021,7 @@ var Xa = Object.defineProperty, Po = Object.getOwnPropertySymbols, Ga = Object.p
4021
4021
  const sl = /* @__PURE__ */ Ve({
4022
4022
  __name: "Frame",
4023
4023
  setup(e, { expose: t }) {
4024
- const n = /* @__PURE__ */ L(null), {
4024
+ const n = /* @__PURE__ */ F(null), {
4025
4025
  frameLoading: s,
4026
4026
  showEmptyState: o,
4027
4027
  showError: i,
@@ -4170,9 +4170,9 @@ const ol = /* @__PURE__ */ Ve({
4170
4170
  handleToggleSelectMode: m,
4171
4171
  handleToggleTheme: C,
4172
4172
  handleClose: _,
4173
- handleToggleMinimize: x,
4174
- handleTogglePromptDock: D
4175
- } = en(), O = q(() => d.value === "split"), B = q(() => `主题: ${{
4173
+ handleToggleMinimize: O,
4174
+ handleTogglePromptDock: R
4175
+ } = en(), A = q(() => d.value === "split"), B = q(() => `主题: ${{
4176
4176
  auto: "自动",
4177
4177
  light: "亮色",
4178
4178
  dark: "暗色"
@@ -4180,7 +4180,7 @@ const ol = /* @__PURE__ */ Ve({
4180
4180
  auto: "自动跟随系统",
4181
4181
  light: "亮色主题",
4182
4182
  dark: "暗色主题"
4183
- }[r.value]}`), $ = { title: n, sessionListTitle: s, sessionListCollapsed: o, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: f, promptDockVisible: c, mode: d, handleToggleSessionList: p, handleToggleSelectMode: m, handleToggleTheme: C, handleClose: _, handleToggleMinimize: x, handleTogglePromptDock: D, isSplitMode: O, themeIconTitle: B, themeIconLabel: y };
4183
+ }[r.value]}`), $ = { title: n, sessionListTitle: s, sessionListCollapsed: o, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: f, promptDockVisible: c, mode: d, handleToggleSessionList: p, handleToggleSelectMode: m, handleToggleTheme: C, handleClose: _, handleToggleMinimize: O, handleTogglePromptDock: R, isSplitMode: A, themeIconTitle: B, themeIconLabel: y };
4184
4184
  return Object.defineProperty($, "__isScriptSetup", { enumerable: !1, value: !0 }), $;
4185
4185
  }
4186
4186
  }), oc = { class: "opencode-chat-header" }, ic = { class: "opencode-chat-header-left" }, lc = ["title", "aria-label", "aria-expanded"], rc = ["aria-pressed", "disabled"], ac = ["title", "aria-label"], cc = {
@@ -4433,7 +4433,7 @@ const il = /* @__PURE__ */ Ve({
4433
4433
  handleDeleteSession: a,
4434
4434
  sessionKey: f,
4435
4435
  sessionStates: c
4436
- } = en(), d = /* @__PURE__ */ L(!1);
4436
+ } = en(), d = /* @__PURE__ */ F(!1);
4437
4437
  let p = null;
4438
4438
  ze(n, () => {
4439
4439
  d.value = !0, p && clearTimeout(p), p = setTimeout(() => {
@@ -4441,14 +4441,14 @@ const il = /* @__PURE__ */ Ve({
4441
4441
  }, 200);
4442
4442
  });
4443
4443
  const m = q(() => !!(d.value || i.value));
4444
- function C(x) {
4445
- var D, O;
4446
- return !c?.value || !x ? !1 : (O = (D = c.value[x]) == null ? void 0 : D.thinking) != null ? O : !1;
4444
+ function C(O) {
4445
+ var R, A;
4446
+ return !c?.value || !O ? !1 : (A = (R = c.value[O]) == null ? void 0 : R.thinking) != null ? A : !1;
4447
4447
  }
4448
4448
  const _ = { collapsed: n, sessions: s, loadingSessionList: o, showSessionListSkeleton: i, handleCreateSession: l, handleSelectSession: r, handleDeleteSession: a, sessionKey: f, sessionStates: c, isAnimating: d, get animTimer() {
4449
4449
  return p;
4450
- }, set animTimer(x) {
4451
- p = x;
4450
+ }, set animTimer(O) {
4451
+ p = O;
4452
4452
  }, showSkeleton: m, isSessionThinking: C };
4453
4453
  return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
4454
4454
  }
@@ -4709,14 +4709,14 @@ const rl = /* @__PURE__ */ Ve(Uc(qc({}, {
4709
4709
  }), {
4710
4710
  __name: "ResizeHandle",
4711
4711
  props: {
4712
- width: { type: Number, required: !0, default: 500 },
4712
+ width: { type: Number, required: !1, default: 500 },
4713
4713
  minWidth: { type: Number, required: !1, default: 400 },
4714
4714
  maxWidth: { type: Number, required: !1, default: 800 }
4715
4715
  },
4716
4716
  emits: ["resize", "resize-start", "resize-end"],
4717
4717
  setup(e, { expose: t, emit: n }) {
4718
4718
  t();
4719
- const s = e, o = n, i = /* @__PURE__ */ L(!1), l = /* @__PURE__ */ L(0), r = /* @__PURE__ */ L(0), a = (m) => {
4719
+ const s = e, o = n, i = /* @__PURE__ */ F(!1), l = /* @__PURE__ */ F(0), r = /* @__PURE__ */ F(0), a = (m) => {
4720
4720
  m.preventDefault(), i.value = !0, l.value = m.clientX, r.value = s.width, o("resize-start"), document.addEventListener("mousemove", f), document.addEventListener("mouseup", c);
4721
4721
  }, f = (m) => {
4722
4722
  if (!i.value) return;
@@ -4784,9 +4784,9 @@ const al = /* @__PURE__ */ Ve(tu(eu({}, {
4784
4784
  "-animationOrigin.x": _.animationOrigin.x,
4785
4785
  "-animationOrigin.y": _.animationOrigin.y
4786
4786
  }));
4787
- const s = e, o = n, i = ki(), l = /* @__PURE__ */ L(null), r = (_, x) => {
4788
- var D;
4789
- (D = l.value) == null || D.sendMessageToIframe(_, x);
4787
+ const s = e, o = n, i = ki(), l = /* @__PURE__ */ F(null), r = (_, O) => {
4788
+ var R;
4789
+ (R = l.value) == null || R.sendMessageToIframe(_, O);
4790
4790
  };
4791
4791
  t({
4792
4792
  sendMessageToIframe: r,
@@ -5047,117 +5047,117 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5047
5047
  },
5048
5048
  emits: ["update:offset", "click", "offset-change", "drag-start", "drag-end"],
5049
5049
  setup(e, { expose: t, emit: n }) {
5050
- const s = e, o = n, i = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L({
5050
+ const s = e, o = n, i = /* @__PURE__ */ F(null), l = /* @__PURE__ */ F({
5051
5051
  x: 0,
5052
5052
  y: 0,
5053
5053
  width: 0,
5054
5054
  height: 0
5055
- }), r = (I) => I !== null && typeof I == "object", a = q(
5055
+ }), r = (N) => N !== null && typeof N == "object", a = q(
5056
5056
  () => r(s.gap) ? s.gap.x : s.gap
5057
5057
  ), f = q(
5058
5058
  () => r(s.gap) ? s.gap.y : s.gap
5059
- ), c = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), d = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), p = q(() => ({
5059
+ ), c = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), d = /* @__PURE__ */ F(typeof window < "u" ? window.innerHeight : 0), p = q(() => ({
5060
5060
  top: f.value,
5061
5061
  right: c.value - l.value.width - a.value,
5062
5062
  bottom: d.value - l.value.height - f.value,
5063
5063
  left: a.value
5064
- })), m = (I, J) => I.reduce(
5064
+ })), m = (N, J) => N.reduce(
5065
5065
  (se, G) => Math.abs(se - J) < Math.abs(G - J) ? se : G
5066
5066
  ), C = () => {
5067
5067
  if (s.magnetic === "x")
5068
- if (D.value === "left")
5068
+ if (R.value === "left")
5069
5069
  l.value.x = p.value.left;
5070
- else if (D.value === "right")
5070
+ else if (R.value === "right")
5071
5071
  l.value.x = p.value.right;
5072
5072
  else {
5073
- const I = m(
5073
+ const N = m(
5074
5074
  [p.value.left, p.value.right],
5075
5075
  l.value.x
5076
5076
  );
5077
- l.value.x = I, D.value = I === p.value.left ? "left" : "right";
5077
+ l.value.x = N, R.value = N === p.value.left ? "left" : "right";
5078
5078
  }
5079
5079
  if (s.magnetic === "y") {
5080
- const I = m(
5080
+ const N = m(
5081
5081
  [p.value.top, p.value.bottom],
5082
5082
  l.value.y
5083
5083
  );
5084
- l.value.y = I;
5084
+ l.value.y = N;
5085
5085
  }
5086
- }, _ = /* @__PURE__ */ L(!1), x = /* @__PURE__ */ L(!1), D = /* @__PURE__ */ L(null), O = q(() => {
5087
- const I = {}, J = `${l.value.x}px`, se = `${l.value.y}px`;
5088
- return I.transform = `translate3d(${J}, ${se}, 0)`, _.value || !x.value ? I.transition = "none" : I.transition = "transform 0.3s ease", I;
5086
+ }, _ = /* @__PURE__ */ F(!1), O = /* @__PURE__ */ F(!1), R = /* @__PURE__ */ F(null), A = q(() => {
5087
+ const N = {}, J = `${l.value.x}px`, se = `${l.value.y}px`;
5088
+ return N.transform = `translate3d(${J}, ${se}, 0)`, _.value || !O.value ? N.transition = "none" : N.transition = "transform 0.3s ease", N;
5089
5089
  }), B = () => {
5090
5090
  if (!i.value || typeof window > "u") return;
5091
- const I = i.value.getBoundingClientRect(), { offset: J } = s;
5092
- let se = J ? J.x : c.value - I.width - a.value, G = J ? J.y : d.value - I.height - f.value;
5093
- const Oe = c.value - I.width - a.value, Ae = d.value - I.height - f.value;
5091
+ const N = i.value.getBoundingClientRect(), { offset: J } = s;
5092
+ let se = J ? J.x : c.value - N.width - a.value, G = J ? J.y : d.value - N.height - f.value;
5093
+ const Oe = c.value - N.width - a.value, Ae = d.value - N.height - f.value;
5094
5094
  se < a.value && (se = a.value), se > Oe && (se = Oe), G < f.value && (G = f.value), G > Ae && (G = Ae);
5095
5095
  const Le = l.value.x, ye = l.value.y;
5096
5096
  if (l.value = {
5097
5097
  x: se,
5098
5098
  y: G,
5099
- width: I.width,
5100
- height: I.height
5101
- }, !_.value && (s.magnetic === "x" && D.value ? D.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : C(), l.value.x !== Le || l.value.y !== ye)) {
5099
+ width: N.width,
5100
+ height: N.height
5101
+ }, !_.value && (s.magnetic === "x" && R.value ? R.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : C(), l.value.x !== Le || l.value.y !== ye)) {
5102
5102
  const ge = { x: l.value.x, y: l.value.y };
5103
5103
  o("update:offset", ge), o("offset-change", ge);
5104
5104
  }
5105
5105
  }, y = {
5106
- startX: /* @__PURE__ */ L(0),
5107
- startY: /* @__PURE__ */ L(0),
5108
- deltaX: /* @__PURE__ */ L(0),
5109
- deltaY: /* @__PURE__ */ L(0),
5110
- offsetX: /* @__PURE__ */ L(0),
5111
- offsetY: /* @__PURE__ */ L(0),
5112
- isTap: /* @__PURE__ */ L(!0),
5113
- start(I) {
5114
- this.startX.value = "touches" in I ? I.touches[0].clientX : I.clientX, this.startY.value = "touches" in I ? I.touches[0].clientY : I.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
5106
+ startX: /* @__PURE__ */ F(0),
5107
+ startY: /* @__PURE__ */ F(0),
5108
+ deltaX: /* @__PURE__ */ F(0),
5109
+ deltaY: /* @__PURE__ */ F(0),
5110
+ offsetX: /* @__PURE__ */ F(0),
5111
+ offsetY: /* @__PURE__ */ F(0),
5112
+ isTap: /* @__PURE__ */ F(!0),
5113
+ start(N) {
5114
+ 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;
5115
5115
  },
5116
- move(I) {
5117
- const J = "touches" in I ? I.touches[0].clientX : I.clientX, se = "touches" in I ? I.touches[0].clientY : I.clientY;
5116
+ move(N) {
5117
+ const J = "touches" in N ? N.touches[0].clientX : N.clientX, se = "touches" in N ? N.touches[0].clientY : N.clientY;
5118
5118
  this.deltaX.value = J - this.startX.value, this.deltaY.value = se - this.startY.value, this.offsetX.value = Math.abs(this.deltaX.value), this.offsetY.value = Math.abs(this.deltaY.value);
5119
5119
  const G = 5;
5120
5120
  this.isTap.value && (this.offsetX.value > G || this.offsetY.value > G) && (this.isTap.value = !1);
5121
5121
  }
5122
5122
  };
5123
- let $ = 0, N = 0;
5124
- const j = (I) => {
5125
- y.start(I), _.value = !0, $ = l.value.x, N = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in I || (window.addEventListener("mousemove", z, { passive: !1 }), window.addEventListener("mouseup", ce));
5126
- }, z = (I) => {
5127
- I.cancelable && I.preventDefault();
5123
+ let $ = 0, I = 0;
5124
+ const j = (N) => {
5125
+ y.start(N), _.value = !0, $ = l.value.x, I = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in N || (window.addEventListener("mousemove", z, { passive: !1 }), window.addEventListener("mouseup", ce));
5126
+ }, z = (N) => {
5127
+ N.cancelable && N.preventDefault();
5128
5128
  const J = y.isTap.value;
5129
- if (y.move(I), J && !y.isTap.value && o("drag-start"), s.axis !== "lock" && !y.isTap.value) {
5129
+ if (y.move(N), J && !y.isTap.value && o("drag-start"), s.axis !== "lock" && !y.isTap.value) {
5130
5130
  if (s.axis === "x" || s.axis === "xy") {
5131
5131
  let G = $ + y.deltaX.value;
5132
5132
  G < p.value.left && (G = p.value.left), G > p.value.right && (G = p.value.right), l.value.x = G;
5133
5133
  }
5134
5134
  if (s.axis === "y" || s.axis === "xy") {
5135
- let G = N + y.deltaY.value;
5135
+ let G = I + y.deltaY.value;
5136
5136
  G < p.value.top && (G = p.value.top), G > p.value.bottom && (G = p.value.bottom), l.value.y = G;
5137
5137
  }
5138
5138
  const se = { x: l.value.x, y: l.value.y };
5139
5139
  o("update:offset", se);
5140
5140
  }
5141
- }, ce = (I) => {
5142
- _.value = !1, document.body.classList.remove("floating-bubble-dragging"), I && !("touches" in I) && I.type === "mouseup" && (window.removeEventListener("mousemove", z), window.removeEventListener("mouseup", ce)), requestAnimationFrame(() => {
5141
+ }, ce = (N) => {
5142
+ _.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", z), window.removeEventListener("mouseup", ce)), requestAnimationFrame(() => {
5143
5143
  if (s.magnetic === "x" && !y.isTap.value) {
5144
5144
  const J = l.value.x + l.value.width / 2, se = c.value / 2;
5145
- D.value = J < se ? "left" : "right";
5145
+ R.value = J < se ? "left" : "right";
5146
5146
  }
5147
5147
  if (C(), !y.isTap.value) {
5148
5148
  o("drag-end");
5149
5149
  const J = { x: l.value.x, y: l.value.y };
5150
- o("update:offset", J), ($ !== J.x || N !== J.y) && o("offset-change", J);
5150
+ o("update:offset", J), ($ !== J.x || I !== J.y) && o("offset-change", J);
5151
5151
  }
5152
5152
  });
5153
- }, fe = (I) => {
5154
- y.isTap.value ? o("click", I) : I.stopPropagation();
5153
+ }, fe = (N) => {
5154
+ y.isTap.value ? o("click", N) : N.stopPropagation();
5155
5155
  }, _e = () => {
5156
5156
  typeof window < "u" && (c.value = window.innerWidth, d.value = window.innerHeight);
5157
5157
  };
5158
5158
  Xe(() => {
5159
5159
  B(), requestAnimationFrame(() => {
5160
- x.value = !0;
5160
+ O.value = !0;
5161
5161
  }), typeof window < "u" && window.addEventListener("resize", _e), i.value && i.value.addEventListener("touchmove", z, {
5162
5162
  passive: !1
5163
5163
  });
@@ -5170,14 +5170,14 @@ const ul = /* @__PURE__ */ Ve(yu(_u({}, {
5170
5170
  ), t({
5171
5171
  offset: q(() => ({ x: l.value.x, y: l.value.y }))
5172
5172
  });
5173
- const Re = { props: s, emit: o, rootRef: i, state: l, isObject: r, gapX: a, gapY: f, windowWidth: c, windowHeight: d, boundary: p, closest: m, applyMagnetic: C, dragging: _, initialized: x, magneticSide: D, rootStyle: O, updateState: B, touch: y, get prevX() {
5173
+ const Re = { props: s, emit: o, rootRef: i, state: l, isObject: r, gapX: a, gapY: f, windowWidth: c, windowHeight: d, boundary: p, closest: m, applyMagnetic: C, dragging: _, initialized: O, magneticSide: R, rootStyle: A, updateState: B, touch: y, get prevX() {
5174
5174
  return $;
5175
- }, set prevX(I) {
5176
- $ = I;
5175
+ }, set prevX(N) {
5176
+ $ = N;
5177
5177
  }, get prevY() {
5178
- return N;
5179
- }, set prevY(I) {
5180
- N = I;
5178
+ return I;
5179
+ }, set prevY(N) {
5180
+ I = N;
5181
5181
  }, onTouchStart: j, onTouchMove: z, onTouchEnd: ce, onClick: fe, handleResize: _e };
5182
5182
  return Object.defineProperty(Re, "__isScriptSetup", { enumerable: !1, value: !0 }), Re;
5183
5183
  }
@@ -5219,7 +5219,7 @@ const fl = /* @__PURE__ */ Ve({
5219
5219
  handleToggle: a,
5220
5220
  bubbleOffset: f,
5221
5221
  handleBubbleOffsetChange: c
5222
- } = en(), d = /* @__PURE__ */ L(f.value), p = n, m = (_) => {
5222
+ } = en(), d = /* @__PURE__ */ F(f.value), p = n, m = (_) => {
5223
5223
  d.value = _, c(_);
5224
5224
  };
5225
5225
  ze(f, (_) => {
@@ -5383,8 +5383,8 @@ function Mu(e) {
5383
5383
  const p = document.querySelector(".opencode-widget");
5384
5384
  let m = "#3b82f6", C = "rgba(59, 130, 246, 0.1)";
5385
5385
  if (p) {
5386
- const x = getComputedStyle(p);
5387
- m = x.getPropertyValue("--oc-primary").trim() || m, C = x.getPropertyValue("--oc-primary-bg").trim() || C;
5386
+ const O = getComputedStyle(p);
5387
+ m = O.getPropertyValue("--oc-primary").trim() || m, C = O.getPropertyValue("--oc-primary-bg").trim() || C;
5388
5388
  }
5389
5389
  d.style.border = `2px solid ${m}`, d.style.background = C;
5390
5390
  const _ = c.getBoundingClientRect();
@@ -5469,7 +5469,7 @@ function Du(e) {
5469
5469
  }
5470
5470
  const ps = ["auto", "light", "dark"];
5471
5471
  function Ru(e) {
5472
- const t = /* @__PURE__ */ L("light");
5472
+ const t = /* @__PURE__ */ F("light");
5473
5473
  function n() {
5474
5474
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
5475
5475
  }
@@ -5493,8 +5493,8 @@ function Ru(e) {
5493
5493
  (_ = e.onToggleSelectMode) == null || _.call(e, !1);
5494
5494
  return;
5495
5495
  }
5496
- const x = !e.open.value;
5497
- e.onToggle(x);
5496
+ const O = !e.open.value;
5497
+ e.onToggle(O);
5498
5498
  }
5499
5499
  function d() {
5500
5500
  e.onClose();
@@ -5507,8 +5507,8 @@ function Ru(e) {
5507
5507
  }
5508
5508
  function C() {
5509
5509
  var _;
5510
- const D = (ps.indexOf(e.theme.value) + 1) % ps.length, O = ps[D];
5511
- (_ = e.onToggleTheme) == null || _.call(e, O);
5510
+ const R = (ps.indexOf(e.theme.value) + 1) % ps.length, A = ps[R];
5511
+ (_ = e.onToggleTheme) == null || _.call(e, A);
5512
5512
  }
5513
5513
  return {
5514
5514
  buttonActive: r,
@@ -6168,35 +6168,35 @@ function Ho(e, t) {
6168
6168
  return Qf(i, l);
6169
6169
  }
6170
6170
  function ed(e) {
6171
- const t = /* @__PURE__ */ L(!1), n = /* @__PURE__ */ L({
6171
+ const t = /* @__PURE__ */ F(!1), n = /* @__PURE__ */ F({
6172
6172
  top: "0px",
6173
6173
  left: "0px",
6174
6174
  width: "0px",
6175
6175
  height: "0px"
6176
- }), s = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L({ top: "0px", left: "0px" }), i = /* @__PURE__ */ L({ description: "", fileInfo: "" }), l = 500;
6176
+ }), s = /* @__PURE__ */ F(!1), o = /* @__PURE__ */ F({ top: "0px", left: "0px" }), i = /* @__PURE__ */ F({ description: "", fileInfo: "" }), l = 500;
6177
6177
  let r = null, a = "#3b82f6", f = "rgba(59, 130, 246, 0.1)";
6178
- function c(x) {
6179
- x.forEach((D) => {
6180
- D && (D.style.pointerEvents = "none");
6178
+ function c(O) {
6179
+ O.forEach((R) => {
6180
+ R && (R.style.pointerEvents = "none");
6181
6181
  });
6182
6182
  }
6183
- function d(x) {
6184
- x.forEach((D) => {
6185
- D && (D.style.pointerEvents = "");
6183
+ function d(O) {
6184
+ O.forEach((R) => {
6185
+ R && (R.style.pointerEvents = "");
6186
6186
  });
6187
6187
  }
6188
- function p(x) {
6188
+ function p(O) {
6189
6189
  if (!e.selectMode.value) return;
6190
- const D = document.querySelector(".opencode-element-highlight"), O = document.querySelector(".opencode-element-tooltip"), B = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), $ = [D, O, B, y];
6190
+ const R = document.querySelector(".opencode-element-highlight"), A = document.querySelector(".opencode-element-tooltip"), B = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), $ = [R, A, B, y];
6191
6191
  c($);
6192
- const N = Wo(x), j = Ho(x, N);
6193
- if (d($), N) {
6192
+ const I = Wo(O), j = Ho(O, I);
6193
+ if (d($), I) {
6194
6194
  const z = document.querySelector(".opencode-widget");
6195
6195
  if (z) {
6196
6196
  const Fe = getComputedStyle(z);
6197
6197
  a = Fe.getPropertyValue("--oc-primary").trim() || a, f = Fe.getPropertyValue("--oc-primary-bg").trim() || f;
6198
6198
  }
6199
- const ce = jo(N), fe = j.file ? j.file.split("/").pop() : "";
6199
+ const ce = jo(I), fe = j.file ? j.file.split("/").pop() : "";
6200
6200
  let _e = "";
6201
6201
  j.line && (_e = `:${j.line}`, j.column && (_e += `:${j.column}`));
6202
6202
  const Re = fe ? `${fe}${_e}` : "";
@@ -6204,7 +6204,7 @@ function ed(e) {
6204
6204
  description: ce,
6205
6205
  fileInfo: Re
6206
6206
  };
6207
- const I = N.getBoundingClientRect(), J = `${I.top}px`, se = `${I.left}px`, G = `${I.width}px`, Oe = `${I.height}px`;
6207
+ const N = I.getBoundingClientRect(), J = `${N.top}px`, se = `${N.left}px`, G = `${N.width}px`, Oe = `${N.height}px`;
6208
6208
  (n.value.top !== J || n.value.left !== se || n.value.width !== G || n.value.height !== Oe) && (n.value = {
6209
6209
  top: J,
6210
6210
  left: se,
@@ -6214,8 +6214,8 @@ function ed(e) {
6214
6214
  background: f
6215
6215
  });
6216
6216
  const Ae = 50, Le = 200, ye = 10;
6217
- let ge = I.top - Ae - 8, me = I.left;
6218
- ge < ye && (ge = I.bottom + 8), ge + Ae > window.innerHeight - ye && (ge = Math.max(ye, I.top - Ae - 8)), me < ye && (me = ye), me + Le > window.innerWidth - ye && (me = window.innerWidth - Le - ye);
6217
+ let ge = N.top - Ae - 8, me = N.left;
6218
+ ge < ye && (ge = N.bottom + 8), ge + Ae > window.innerHeight - ye && (ge = Math.max(ye, N.top - Ae - 8)), me < ye && (me = ye), me + Le > window.innerWidth - ye && (me = window.innerWidth - Le - ye);
6219
6219
  const st = `${ge}px`, dt = `${me}px`;
6220
6220
  (o.value.top !== st || o.value.left !== dt) && (o.value = {
6221
6221
  top: st,
@@ -6226,34 +6226,34 @@ function ed(e) {
6226
6226
  }
6227
6227
  const m = p;
6228
6228
  function C() {
6229
- const x = window.__VUE_INSPECTOR__;
6230
- if (!x || x.__opencode_hooked) return;
6231
- const D = x.handleClick.bind(x);
6232
- x.handleClick = function(O) {
6229
+ const O = window.__VUE_INSPECTOR__;
6230
+ if (!O || O.__opencode_hooked) return;
6231
+ const R = O.handleClick.bind(O);
6232
+ O.handleClick = function(A) {
6233
6233
  if (e.selectMode.value) {
6234
- O.preventDefault(), O.stopPropagation();
6235
- const B = Wo(O), y = Ho(O, B);
6234
+ A.preventDefault(), A.stopPropagation();
6235
+ const B = Wo(A), y = Ho(A, B);
6236
6236
  if (B) {
6237
- const $ = zf(B), N = jo(B), j = {
6237
+ const $ = zf(B), I = jo(B), j = {
6238
6238
  filePath: y.file,
6239
6239
  line: y.line,
6240
6240
  column: y.column,
6241
6241
  innerText: tl($, 200),
6242
- description: N
6242
+ description: I
6243
6243
  };
6244
6244
  e.onAddSelectedNode(j);
6245
6245
  }
6246
6246
  return;
6247
6247
  }
6248
- return D.call(x, O);
6249
- }, x.__opencode_hooked = !0;
6248
+ return R.call(O, A);
6249
+ }, O.__opencode_hooked = !0;
6250
6250
  }
6251
- function _(x) {
6252
- x.key === "Escape" && e.selectMode.value && (x.preventDefault(), x.stopPropagation(), e.onExitSelectMode());
6251
+ function _(O) {
6252
+ O.key === "Escape" && e.selectMode.value && (O.preventDefault(), O.stopPropagation(), e.onExitSelectMode());
6253
6253
  }
6254
- return ze(e.selectMode, (x) => {
6255
- const D = window.__VUE_INSPECTOR__;
6256
- x ? (D && D.enable(), document.addEventListener("mousemove", m), document.addEventListener("keydown", _, !0)) : (D && D.disable(), document.removeEventListener("mousemove", m), document.removeEventListener("keydown", _, !0), t.value = !1, s.value = !1);
6254
+ return ze(e.selectMode, (O) => {
6255
+ const R = window.__VUE_INSPECTOR__;
6256
+ O ? (R && R.enable(), document.addEventListener("mousemove", m), document.addEventListener("keydown", _, !0)) : (R && R.disable(), document.removeEventListener("mousemove", m), document.removeEventListener("keydown", _, !0), t.value = !1, s.value = !1);
6257
6257
  }), Xe(() => {
6258
6258
  window.__VUE_INSPECTOR__ ? C() : r = window.setInterval(() => {
6259
6259
  window.__VUE_INSPECTOR__ && (C(), r && (window.clearInterval(r), r = null));
@@ -6328,18 +6328,18 @@ function sd(e) {
6328
6328
  }
6329
6329
  const od = 1440;
6330
6330
  function id(e) {
6331
- const t = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), n = q(() => {
6331
+ const t = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), n = q(() => {
6332
6332
  var c, d, p, m, C, _;
6333
- const x = e.splitMode.value || {};
6333
+ const O = e.splitMode.value || {};
6334
6334
  return {
6335
- width: (c = x.width) != null ? c : 500,
6336
- minWidth: (d = x.minWidth) != null ? d : 400,
6337
- maxWidth: (p = x.maxWidth) != null ? p : 800,
6338
- resizable: (m = x.resizable) != null ? m : !0,
6339
- shrinkPage: (C = x.shrinkPage) != null ? C : !0,
6340
- defaultOpen: (_ = x.defaultOpen) != null ? _ : !0
6335
+ width: (c = O.width) != null ? c : 500,
6336
+ minWidth: (d = O.minWidth) != null ? d : 400,
6337
+ maxWidth: (p = O.maxWidth) != null ? p : 800,
6338
+ resizable: (m = O.resizable) != null ? m : !0,
6339
+ shrinkPage: (C = O.shrinkPage) != null ? C : !0,
6340
+ defaultOpen: (_ = O.defaultOpen) != null ? _ : !0
6341
6341
  };
6342
- }), s = /* @__PURE__ */ L(n.value.width), o = q(() => e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= od ? "split" : "bubble"), i = q(() => o.value === "split"), l = (c) => {
6342
+ }), s = /* @__PURE__ */ F(n.value.width), o = q(() => e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= od ? "split" : "bubble"), i = q(() => o.value === "split"), l = (c) => {
6343
6343
  var d;
6344
6344
  s.value = c, (d = e.onWidthChange) == null || d.call(e, c);
6345
6345
  }, r = () => {
@@ -6410,30 +6410,30 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6410
6410
  },
6411
6411
  emits: ["update:open", "update:selectMode", "update:sessionListCollapsed", "update:currentSessionId", "update:selectedElements", "update:theme", "update:thinking", "update:splitPanelWidth", "toggle", "close", "toggle-session-list", "toggle-select-mode", "toggle-theme", "create-session", "select-session", "delete-session", "click-selected-node", "remove-selected-node", "clear-selected-nodes", "empty-action", "frame-loaded", "thinking-change", "split-panel-width-change"],
6412
6412
  setup(e, { expose: t, emit: n }) {
6413
- Zi((A) => ({
6413
+ Zi((x) => ({
6414
6414
  "-chatAnimationOrigin.x": Ie.value.x,
6415
6415
  "-chatAnimationOrigin.y": Ie.value.y
6416
6416
  }));
6417
- const s = e, o = n, i = ki(), l = /* @__PURE__ */ L(""), r = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L("widget");
6417
+ const s = e, o = n, i = ki(), l = /* @__PURE__ */ F(""), r = /* @__PURE__ */ F(!1), a = /* @__PURE__ */ F("widget");
6418
6418
  let f = null;
6419
- const c = (A, Pe) => {
6419
+ const c = (x, Pe) => {
6420
6420
  const { duration: Ge = 3e3, mode: ht = "widget" } = Pe || {};
6421
- l.value = A, r.value = !0, a.value = ht, f && clearTimeout(f), f = setTimeout(() => {
6421
+ l.value = x, r.value = !0, a.value = ht, f && clearTimeout(f), f = setTimeout(() => {
6422
6422
  r.value = !1;
6423
6423
  }, Ge);
6424
- }, d = /* @__PURE__ */ L(!1), p = /* @__PURE__ */ L("");
6424
+ }, d = /* @__PURE__ */ F(!1), p = /* @__PURE__ */ F("");
6425
6425
  let m = null;
6426
- const C = (A) => (p.value = A, d.value = !0, new Promise((Pe) => {
6426
+ const C = (x) => (p.value = x, d.value = !0, new Promise((Pe) => {
6427
6427
  m = Pe;
6428
6428
  })), _ = () => {
6429
6429
  d.value = !1, m && m(!0);
6430
- }, x = () => {
6430
+ }, O = () => {
6431
6431
  d.value = !1, m && m(!1);
6432
- }, D = /* @__PURE__ */ L(null), O = /* @__PURE__ */ L(null), B = (A, Pe) => {
6432
+ }, R = /* @__PURE__ */ F(null), A = /* @__PURE__ */ F(null), B = (x, Pe) => {
6433
6433
  var Ge;
6434
- (Ge = D.value) == null || Ge.sendMessageToIframe(A, Pe);
6435
- }, y = /* @__PURE__ */ L(s.sessionListCollapsed), $ = /* @__PURE__ */ L(!1), N = /* @__PURE__ */ L(!0), j = /* @__PURE__ */ L(!0), z = /* @__PURE__ */ L(!1), ce = /* @__PURE__ */ L(s.splitPanelWidth), fe = () => {
6436
- z.value && (B("prompt-dock-visibility-change", { visible: N.value }), B("minimize-state-change", { minimized: $.value }));
6434
+ (Ge = R.value) == null || Ge.sendMessageToIframe(x, Pe);
6435
+ }, y = /* @__PURE__ */ F(s.sessionListCollapsed), $ = /* @__PURE__ */ F(!1), I = /* @__PURE__ */ F(!0), j = /* @__PURE__ */ F(!0), z = /* @__PURE__ */ F(!1), ce = /* @__PURE__ */ F(s.splitPanelWidth), fe = () => {
6436
+ z.value && (B("prompt-dock-visibility-change", { visible: I.value }), B("minimize-state-change", { minimized: $.value }));
6437
6437
  }, _e = () => {
6438
6438
  o("frame-loaded"), z.value = !0, fe();
6439
6439
  };
@@ -6443,18 +6443,18 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6443
6443
  sendMessageToIframe: B
6444
6444
  }), ze(
6445
6445
  () => s.sessionListCollapsed,
6446
- (A) => {
6447
- y.value = A;
6446
+ (x) => {
6447
+ y.value = x;
6448
6448
  }
6449
6449
  ), ze(
6450
6450
  () => s.splitPanelWidth,
6451
- (A) => {
6452
- ce.value = A;
6451
+ (x) => {
6452
+ ce.value = x;
6453
6453
  }
6454
6454
  );
6455
6455
  const {
6456
6456
  buttonActive: Re,
6457
- containerClasses: I,
6457
+ containerClasses: N,
6458
6458
  iframeSource: J,
6459
6459
  sessionListTitle: se,
6460
6460
  resolvedTheme: G,
@@ -6469,32 +6469,32 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6469
6469
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6470
6470
  iframeSrc: /* @__PURE__ */ Z(s, "iframeSrc"),
6471
6471
  sessionListCollapsed: y,
6472
- onToggle: (A) => {
6473
- o("update:open", A), o("toggle", A);
6472
+ onToggle: (x) => {
6473
+ o("update:open", x), o("toggle", x);
6474
6474
  },
6475
- onToggleSelectMode: (A) => {
6476
- o("update:selectMode", A), o("toggle-select-mode", A);
6475
+ onToggleSelectMode: (x) => {
6476
+ o("update:selectMode", x), o("toggle-select-mode", x);
6477
6477
  },
6478
6478
  onClose: () => {
6479
6479
  o("update:open", !1), o("close");
6480
6480
  },
6481
- onToggleSessionList: (A) => {
6482
- y.value = A, o("update:sessionListCollapsed", A), o("toggle-session-list", A);
6481
+ onToggleSessionList: (x) => {
6482
+ y.value = x, o("update:sessionListCollapsed", x), o("toggle-session-list", x);
6483
6483
  },
6484
6484
  onEmptyAction: () => {
6485
6485
  o("empty-action");
6486
6486
  },
6487
- onToggleTheme: (A) => {
6488
- o("update:theme", A), o("toggle-theme", A);
6487
+ onToggleTheme: (x) => {
6488
+ o("update:theme", x), o("toggle-theme", x);
6489
6489
  }
6490
6490
  }), { sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe } = Du({
6491
6491
  sessions: /* @__PURE__ */ Z(s, "sessions"),
6492
6492
  currentSessionId: /* @__PURE__ */ Z(s, "currentSessionId"),
6493
6493
  onCreateSession: () => o("create-session"),
6494
- onSelectSession: (A) => {
6495
- o("update:currentSessionId", A.id), o("select-session", A);
6494
+ onSelectSession: (x) => {
6495
+ o("update:currentSessionId", x.id), o("select-session", x);
6496
6496
  },
6497
- onDeleteSession: (A) => o("delete-session", A),
6497
+ onDeleteSession: (x) => o("delete-session", x),
6498
6498
  showConfirmDialog: C
6499
6499
  }), {
6500
6500
  bubbleVisible: qe,
@@ -6507,13 +6507,13 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6507
6507
  } = Mu({
6508
6508
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6509
6509
  selectedElements: /* @__PURE__ */ Z(s, "selectedElements"),
6510
- onToggleSelectMode: (A) => {
6511
- o("update:selectMode", A), o("toggle-select-mode", A);
6510
+ onToggleSelectMode: (x) => {
6511
+ o("update:selectMode", x), o("toggle-select-mode", x);
6512
6512
  },
6513
- onRemoveSelectedNode: (A) => {
6514
- o("remove-selected-node", A);
6513
+ onRemoveSelectedNode: (x) => {
6514
+ o("remove-selected-node", x);
6515
6515
  const Pe = [...s.selectedElements];
6516
- Pe.splice(A.index, 1), o("update:selectedElements", Pe);
6516
+ Pe.splice(x.index, 1), o("update:selectedElements", Pe);
6517
6517
  },
6518
6518
  onClearSelectedNodes: () => {
6519
6519
  o("clear-selected-nodes"), o("update:selectedElements", []);
@@ -6521,58 +6521,58 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6521
6521
  showConfirmDialog: C
6522
6522
  }), { highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S } = ed({
6523
6523
  selectMode: /* @__PURE__ */ Z(s, "selectMode"),
6524
- onAddSelectedNode: (A) => {
6525
- o("click-selected-node", A);
6524
+ onAddSelectedNode: (x) => {
6525
+ o("click-selected-node", x);
6526
6526
  },
6527
6527
  onExitSelectMode: () => {
6528
6528
  o("update:selectMode", !1), o("toggle-select-mode", !1);
6529
6529
  }
6530
- }), P = /* @__PURE__ */ L(void 0), {
6530
+ }), P = /* @__PURE__ */ F(void 0), {
6531
6531
  effectiveMode: k,
6532
6532
  isSplitMode: M,
6533
6533
  panelWidth: w,
6534
6534
  splitConfig: W,
6535
- handleResize: R,
6535
+ handleResize: D,
6536
6536
  handleToggle: E
6537
6537
  } = id({
6538
6538
  displayMode: /* @__PURE__ */ Z(s, "displayMode"),
6539
6539
  splitMode: /* @__PURE__ */ Z(s, "splitMode"),
6540
6540
  open: /* @__PURE__ */ Z(s, "open"),
6541
- onOpenChange: (A) => {
6542
- o("update:open", A), o("toggle", A);
6541
+ onOpenChange: (x) => {
6542
+ o("update:open", x), o("toggle", x);
6543
6543
  },
6544
- onWidthChange: (A) => {
6545
- ce.value = A, o("update:splitPanelWidth", A), o("split-panel-width-change", A);
6544
+ onWidthChange: (x) => {
6545
+ ce.value = x, o("update:splitPanelWidth", x), o("split-panel-width-change", x);
6546
6546
  }
6547
6547
  });
6548
6548
  sd({
6549
6549
  open: /* @__PURE__ */ Z(s, "open"),
6550
6550
  minimized: $,
6551
- promptDockVisible: N,
6551
+ promptDockVisible: I,
6552
6552
  bubbleOffset: P,
6553
6553
  theme: /* @__PURE__ */ Z(s, "theme"),
6554
6554
  sessionListCollapsed: y,
6555
6555
  splitPanelWidth: ce,
6556
- onRestore: (A) => {
6557
- if (A.open !== void 0 && A.open !== s.open && (o("update:open", A.open), o("toggle", A.open)), A.minimized !== void 0 && ($.value = A.minimized), A.bubbleOffset !== void 0) {
6556
+ onRestore: (x) => {
6557
+ if (x.open !== void 0 && x.open !== s.open && (o("update:open", x.open), o("toggle", x.open)), x.minimized !== void 0 && ($.value = x.minimized), x.bubbleOffset !== void 0) {
6558
6558
  const ht = window.innerWidth - 44 - 10, Rt = window.innerHeight - 44 - 10;
6559
6559
  P.value = {
6560
- x: Math.max(10, Math.min(A.bubbleOffset.x, ht)),
6561
- y: Math.max(10, Math.min(A.bubbleOffset.y, Rt))
6560
+ x: Math.max(10, Math.min(x.bubbleOffset.x, ht)),
6561
+ y: Math.max(10, Math.min(x.bubbleOffset.y, Rt))
6562
6562
  };
6563
6563
  }
6564
- A.theme !== void 0 && A.theme !== s.theme && (o("update:theme", A.theme), o("toggle-theme", A.theme)), A.sessionListCollapsed !== void 0 && A.sessionListCollapsed !== s.sessionListCollapsed && (y.value = A.sessionListCollapsed, o("update:sessionListCollapsed", A.sessionListCollapsed)), A.promptDockVisible !== void 0 ? N.value = A.promptDockVisible : $.value && (N.value = !1), Si(() => {
6564
+ x.theme !== void 0 && x.theme !== s.theme && (o("update:theme", x.theme), o("toggle-theme", x.theme)), x.sessionListCollapsed !== void 0 && x.sessionListCollapsed !== s.sessionListCollapsed && (y.value = x.sessionListCollapsed, o("update:sessionListCollapsed", x.sessionListCollapsed)), x.promptDockVisible !== void 0 ? I.value = x.promptDockVisible : $.value && (I.value = !1), x.splitPanelWidth !== void 0 && x.splitPanelWidth !== s.splitPanelWidth && D(x.splitPanelWidth), Si(() => {
6565
6565
  fe(), setTimeout(() => {
6566
6566
  j.value = !1;
6567
6567
  }, 50);
6568
6568
  });
6569
6569
  }
6570
6570
  });
6571
- const F = () => {
6572
- $.value = !$.value, N.value = !$.value, B("prompt-dock-visibility-change", { visible: N.value }), B("minimize-state-change", { minimized: $.value });
6571
+ const L = () => {
6572
+ $.value = !$.value, I.value = !$.value, B("prompt-dock-visibility-change", { visible: I.value }), B("minimize-state-change", { minimized: $.value });
6573
6573
  }, X = () => {
6574
- N.value = !N.value, B("prompt-dock-visibility-change", { visible: N.value });
6575
- }, K = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), Y = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), le = () => {
6574
+ I.value = !I.value, B("prompt-dock-visibility-change", { visible: I.value });
6575
+ }, K = /* @__PURE__ */ F(typeof window < "u" ? window.innerWidth : 0), Y = /* @__PURE__ */ F(typeof window < "u" ? window.innerHeight : 0), le = () => {
6576
6576
  typeof window < "u" && (K.value = window.innerWidth, Y.value = window.innerHeight);
6577
6577
  };
6578
6578
  Xe(() => {
@@ -6581,17 +6581,17 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6581
6581
  typeof window < "u" && window.removeEventListener("resize", le);
6582
6582
  });
6583
6583
  const de = q(() => {
6584
- var A, Pe, Ge, ht;
6584
+ var x, Pe, Ge, ht;
6585
6585
  if (typeof window > "u") return "bottom-right";
6586
- const Rt = K.value / 2, xt = Y.value / 2, pt = 44, Ye = (Pe = (A = O.value) == null ? void 0 : A.offset) != null ? Pe : P.value, It = ((Ge = Ye?.x) != null ? Ge : K.value - pt - 24) + pt / 2, it = ((ht = Ye?.y) != null ? ht : Y.value - pt - 24) + pt / 2;
6586
+ const Rt = K.value / 2, xt = Y.value / 2, pt = 44, Ye = (Pe = (x = A.value) == null ? void 0 : x.offset) != null ? Pe : P.value, It = ((Ge = Ye?.x) != null ? Ge : K.value - pt - 24) + pt / 2, it = ((ht = Ye?.y) != null ? ht : Y.value - pt - 24) + pt / 2;
6587
6587
  return It >= Rt && it >= xt ? "bottom-right" : It < Rt && it >= xt ? "bottom-left" : It >= Rt && it < xt ? "top-right" : "top-left";
6588
6588
  }), Be = q(() => {
6589
- const A = de.value;
6590
- return A === "top-right" || A === "bottom-right";
6589
+ const x = de.value;
6590
+ return x === "top-right" || x === "bottom-right";
6591
6591
  }), Ke = q(() => {
6592
- var A, Pe, Ge;
6592
+ var x, Pe, Ge;
6593
6593
  if (typeof window > "u") return {};
6594
- const ht = $.value ? 300 : 700, Rt = $.value ? 300 : Math.min(Y.value * 0.86, Y.value - 40), xt = 24, pt = 44, Ye = 20, It = (Ge = (Pe = (A = O.value) == null ? void 0 : A.offset) != null ? Pe : P.value) != null ? Ge : { x: K.value - pt - xt, y: Y.value - pt - xt }, it = {};
6594
+ const ht = $.value ? 300 : 700, Rt = $.value ? 300 : Math.min(Y.value * 0.86, Y.value - 40), xt = 24, pt = 44, Ye = 20, It = (Ge = (Pe = (x = A.value) == null ? void 0 : x.offset) != null ? Pe : P.value) != null ? Ge : { x: K.value - pt - xt, y: Y.value - pt - xt }, it = {};
6595
6595
  if (Be.value) {
6596
6596
  let Je = K.value - It.x + xt;
6597
6597
  const sn = Ye, on = K.value - ht - Ye;
@@ -6604,8 +6604,8 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6604
6604
  let nn = Y.value - It.y - pt;
6605
6605
  const Zs = Y.value - Rt - Ye;
6606
6606
  return nn > Zs && (nn = Zs), nn < Ye && (nn = Ye), it.bottom = `${nn}px`, it;
6607
- }), Tt = (A) => {
6608
- P.value = A;
6607
+ }), Tt = (x) => {
6608
+ P.value = x;
6609
6609
  }, On = () => {
6610
6610
  Ct.value = !0;
6611
6611
  }, Me = () => {
@@ -6622,7 +6622,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6622
6622
  default:
6623
6623
  return { x: "20px", y: "20px" };
6624
6624
  }
6625
- }), Ct = /* @__PURE__ */ L(!1);
6625
+ }), Ct = /* @__PURE__ */ F(!1);
6626
6626
  let Dt = !1;
6627
6627
  const kl = () => {
6628
6628
  Ct.value = !0, Dt = s.open, s.open && o("update:open", !1);
@@ -6650,12 +6650,12 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6650
6650
  open: /* @__PURE__ */ Z(s, "open"),
6651
6651
  thinking: /* @__PURE__ */ Z(s, "thinking"),
6652
6652
  minimized: $,
6653
- promptDockVisible: N,
6653
+ promptDockVisible: I,
6654
6654
  bubbleOffset: P,
6655
6655
  mode: k,
6656
6656
  sessionStates: q(() => {
6657
- var A;
6658
- return (A = s.sessionStates) != null ? A : {};
6657
+ var x;
6658
+ return (x = s.sessionStates) != null ? x : {};
6659
6659
  }),
6660
6660
  iframeSource: J,
6661
6661
  buttonActive: Re,
@@ -6666,7 +6666,7 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6666
6666
  selectedElementItems: Et,
6667
6667
  handleToggle: Le,
6668
6668
  handleClose: Oe,
6669
- handleToggleMinimize: F,
6669
+ handleToggleMinimize: L,
6670
6670
  handleTogglePromptDock: X,
6671
6671
  handleToggleSessionList: ye,
6672
6672
  handleToggleTheme: ge,
@@ -6676,23 +6676,23 @@ const Al = /* @__PURE__ */ Ve(dd(fd({}, {
6676
6676
  handleDeleteSession: dt,
6677
6677
  handleToggleSelectMode: u,
6678
6678
  handleClickSelectedNode: ot,
6679
- handleRemoveSelectedNode: (A) => tn(A.item, A.index, A.source),
6679
+ handleRemoveSelectedNode: (x) => tn(x.item, x.index, x.source),
6680
6680
  handleClearSelectedNodes: kt,
6681
6681
  handleFrameLoaded: _e,
6682
6682
  handleBubbleOffsetChange: Tt
6683
6683
  });
6684
6684
  const Js = { props: s, emit: o, slots: i, notificationMessage: l, notificationVisible: r, notificationMode: a, get notificationTimer() {
6685
6685
  return f;
6686
- }, set notificationTimer(A) {
6687
- f = A;
6686
+ }, set notificationTimer(x) {
6687
+ f = x;
6688
6688
  }, showNotification: c, dialogVisible: d, dialogMessage: p, get dialogResolve() {
6689
6689
  return m;
6690
- }, set dialogResolve(A) {
6691
- m = A;
6692
- }, showConfirmDialog: C, handleDialogConfirm: _, handleDialogCancel: x, frameRef: D, triggerRef: O, sendMessageToIframe: B, localSessionListCollapsed: y, minimized: $, promptDockVisible: N, isRestoring: j, iframeLoaded: z, splitPanelWidth: ce, syncStateToIframe: fe, handleFrameLoaded: _e, buttonActive: Re, containerClasses: I, iframeSource: J, sessionListTitle: se, resolvedTheme: G, handleClose: Oe, handleEmptyAction: Ae, handleToggle: Le, handleToggleSessionList: ye, handleToggleTheme: ge, sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe, bubbleVisible: qe, hasSelectedElements: Ue, selectedElementItems: Et, handleClearSelectedNodes: kt, handleClickSelectedNode: ot, handleRemoveSelectedNode: tn, handleToggleSelectMode: u, highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S, bubbleOffset: P, effectiveMode: k, isSplitMode: M, panelWidth: w, splitConfig: W, handleResize: R, handleSplitToggle: E, handleToggleMinimize: F, handleTogglePromptDock: X, windowWidth: K, windowHeight: Y, handleWindowResize: le, bubbleQuadrant: de, isBubbleOnRightSide: Be, chatPositionStyle: Ke, handleBubbleOffsetChange: Tt, handleResizeStart: On, handleResizeEnd: Me, chatAnimationOrigin: Ie, isDragging: Ct, get wasOpenBeforeDrag() {
6690
+ }, set dialogResolve(x) {
6691
+ m = x;
6692
+ }, showConfirmDialog: C, handleDialogConfirm: _, handleDialogCancel: O, frameRef: R, triggerRef: A, sendMessageToIframe: B, localSessionListCollapsed: y, minimized: $, promptDockVisible: I, isRestoring: j, iframeLoaded: z, splitPanelWidth: ce, syncStateToIframe: fe, handleFrameLoaded: _e, buttonActive: Re, containerClasses: N, iframeSource: J, sessionListTitle: se, resolvedTheme: G, handleClose: Oe, handleEmptyAction: Ae, handleToggle: Le, handleToggleSessionList: ye, handleToggleTheme: ge, sessionItems: me, handleCreateSession: st, handleDeleteSession: dt, handleSelectSession: Fe, bubbleVisible: qe, hasSelectedElements: Ue, selectedElementItems: Et, handleClearSelectedNodes: kt, handleClickSelectedNode: ot, handleRemoveSelectedNode: tn, handleToggleSelectMode: u, highlightVisible: h, highlightStyle: g, tooltipVisible: T, tooltipStyle: b, tooltipContent: S, bubbleOffset: P, effectiveMode: k, isSplitMode: M, panelWidth: w, splitConfig: W, handleResize: D, handleSplitToggle: E, handleToggleMinimize: L, handleTogglePromptDock: X, windowWidth: K, windowHeight: Y, handleWindowResize: le, bubbleQuadrant: de, isBubbleOnRightSide: Be, chatPositionStyle: Ke, handleBubbleOffsetChange: Tt, handleResizeStart: On, handleResizeEnd: Me, chatAnimationOrigin: Ie, isDragging: Ct, get wasOpenBeforeDrag() {
6693
6693
  return Dt;
6694
- }, set wasOpenBeforeDrag(A) {
6695
- Dt = A;
6694
+ }, set wasOpenBeforeDrag(x) {
6695
+ Dt = x;
6696
6696
  }, handleDragStart: kl, handleDragEnd: Dl, ChatPanel: cu, SelectHint: du, Trigger: Tu };
6697
6697
  return Object.defineProperty(Js, "__isScriptSetup", { enumerable: !1, value: !0 }), Js;
6698
6698
  }
@@ -6942,13 +6942,13 @@ function Ml(e) {
6942
6942
  onDisconnected: r,
6943
6943
  onError: a,
6944
6944
  onMessage: f
6945
- } = e, c = /* @__PURE__ */ L(null), d = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
6946
- function m(O) {
6945
+ } = e, c = /* @__PURE__ */ F(null), d = /* @__PURE__ */ F("idle"), p = /* @__PURE__ */ F(0);
6946
+ function m(A) {
6947
6947
  try {
6948
- const B = JSON.parse(O.data);
6948
+ const B = JSON.parse(A.data);
6949
6949
  f?.(B);
6950
6950
  } catch {
6951
- f?.(O.data);
6951
+ f?.(A.data);
6952
6952
  }
6953
6953
  }
6954
6954
  function C() {
@@ -6962,7 +6962,7 @@ function Ml(e) {
6962
6962
  c.value = new EventSource(t), c.value.onopen = () => {
6963
6963
  d.value = "connected", p.value = 0, l?.();
6964
6964
  }, c.value.onmessage = m, c.value.onerror = () => {
6965
- const O = d.value === "connected";
6965
+ const A = d.value === "connected";
6966
6966
  d.value = "error", c.value?.close(), c.value = null;
6967
6967
  const B = new Error(`SSE connection error: ${t}`);
6968
6968
  if (a?.(B), p.value < o) {
@@ -6971,11 +6971,11 @@ function Ml(e) {
6971
6971
  setTimeout(() => {
6972
6972
  s?.value !== !1 && !c.value && C();
6973
6973
  }, y);
6974
- } else O && r?.();
6974
+ } else A && r?.();
6975
6975
  };
6976
- } catch (O) {
6976
+ } catch (A) {
6977
6977
  d.value = "error";
6978
- const B = O instanceof Error ? O : new Error(String(O));
6978
+ const B = A instanceof Error ? A : new Error(String(A));
6979
6979
  if (a?.(B), p.value < o) {
6980
6980
  p.value++;
6981
6981
  const y = i * p.value;
@@ -6989,10 +6989,10 @@ function Ml(e) {
6989
6989
  function _() {
6990
6990
  c.value && (c.value.close(), c.value = null, d.value = "disconnected", p.value = 0, r?.());
6991
6991
  }
6992
- function x() {
6992
+ function O() {
6993
6993
  _(), C();
6994
6994
  }
6995
- function D() {
6995
+ function R() {
6996
6996
  p.value = 0;
6997
6997
  }
6998
6998
  return n && s?.value !== !1 && C(), nt(() => {
@@ -7007,8 +7007,8 @@ function Ml(e) {
7007
7007
  // 方法
7008
7008
  connect: C,
7009
7009
  disconnect: _,
7010
- reconnect: x,
7011
- resetRetryCount: D
7010
+ reconnect: O,
7011
+ resetRetryCount: R
7012
7012
  };
7013
7013
  }
7014
7014
  function Od(e = {}) {
@@ -7064,23 +7064,23 @@ function Ad(e) {
7064
7064
  };
7065
7065
  }
7066
7066
  function Md(e) {
7067
- const { proxyBaseUrl: t, currentSessionId: n, enabled: s, onConnected: o, onSessionUpdate: i } = e, l = /* @__PURE__ */ L({});
7067
+ const { proxyBaseUrl: t, currentSessionId: n, enabled: s, onConnected: o, onSessionUpdate: i } = e, l = /* @__PURE__ */ F({});
7068
7068
  function r(y) {
7069
7069
  return y?.role === "assistant" && typeof y?.time?.completed != "number";
7070
7070
  }
7071
7071
  function a(y) {
7072
- const $ = l.value[y], N = $?.hasPending || $?.statusType !== "idle";
7072
+ const $ = l.value[y], I = $?.hasPending || $?.statusType !== "idle";
7073
7073
  l.value[y] = {
7074
- thinking: N,
7074
+ thinking: I,
7075
7075
  statusType: $?.statusType || "idle",
7076
7076
  hasPending: $?.hasPending || !1
7077
7077
  };
7078
7078
  }
7079
7079
  function f(y) {
7080
- const $ = y.type, N = y.properties;
7080
+ const $ = y.type, I = y.properties;
7081
7081
  switch ($) {
7082
7082
  case "session.updated": {
7083
- const j = N.info;
7083
+ const j = I.info;
7084
7084
  if (!j?.id) return;
7085
7085
  i?.({
7086
7086
  id: j.id,
@@ -7091,9 +7091,9 @@ function Md(e) {
7091
7091
  break;
7092
7092
  }
7093
7093
  case "session.status": {
7094
- const j = N.sessionID;
7094
+ const j = I.sessionID;
7095
7095
  if (!j) return;
7096
- const z = N.status?.type || "idle";
7096
+ const z = I.status?.type || "idle";
7097
7097
  l.value[j] = {
7098
7098
  thinking: z !== "idle",
7099
7099
  statusType: z,
@@ -7102,7 +7102,7 @@ function Md(e) {
7102
7102
  break;
7103
7103
  }
7104
7104
  case "message.updated": {
7105
- const j = N.info;
7105
+ const j = I.info;
7106
7106
  if (!j?.sessionID) return;
7107
7107
  const z = j.sessionID;
7108
7108
  if (j.role === "assistant") {
@@ -7119,7 +7119,7 @@ function Md(e) {
7119
7119
  break;
7120
7120
  }
7121
7121
  case "message.part.delta": {
7122
- const j = N.sessionID;
7122
+ const j = I.sessionID;
7123
7123
  if (!j) return;
7124
7124
  const z = l.value[j];
7125
7125
  z?.hasPending || (l.value[j] = {
@@ -7146,18 +7146,18 @@ function Md(e) {
7146
7146
  function _(y) {
7147
7147
  delete l.value[y];
7148
7148
  }
7149
- function x() {
7149
+ function O() {
7150
7150
  l.value = {};
7151
7151
  }
7152
- function D(y) {
7152
+ function R(y) {
7153
7153
  return l.value[y];
7154
7154
  }
7155
- function O(y) {
7155
+ function A(y) {
7156
7156
  return l.value[y]?.thinking ?? !1;
7157
7157
  }
7158
7158
  function B(y) {
7159
7159
  return y.reduce(
7160
- ($, N) => ($[N] = O(N), $),
7160
+ ($, I) => ($[I] = A(I), $),
7161
7161
  {}
7162
7162
  );
7163
7163
  }
@@ -7175,14 +7175,14 @@ function Md(e) {
7175
7175
  connect: c.connect,
7176
7176
  disconnect: c.disconnect,
7177
7177
  clearSessionState: _,
7178
- clearAllSessionStates: x,
7179
- getSessionState: D,
7180
- isSessionThinking: O,
7178
+ clearAllSessionStates: O,
7179
+ getSessionState: R,
7180
+ isSessionThinking: A,
7181
7181
  getSessionsThinking: B
7182
7182
  };
7183
7183
  }
7184
7184
  function Pd(e) {
7185
- const { showNotification: t } = e, n = /* @__PURE__ */ L([]), s = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(null), i = /* @__PURE__ */ L(!1), l = q(() => o.value && n.value.find((p) => p.id === o.value)?.url || ""), r = async () => {
7185
+ const { showNotification: t } = e, n = /* @__PURE__ */ F([]), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(null), i = /* @__PURE__ */ F(!1), l = q(() => o.value && n.value.find((p) => p.id === o.value)?.url || ""), r = async () => {
7186
7186
  s.value = !0;
7187
7187
  try {
7188
7188
  const m = await (await fetch(hs)).json();
@@ -7244,7 +7244,7 @@ function Pd(e) {
7244
7244
  };
7245
7245
  }
7246
7246
  function kd(e, t) {
7247
- const n = /* @__PURE__ */ L(e), s = q(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), o = () => {
7247
+ const n = /* @__PURE__ */ F(e), s = q(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), o = () => {
7248
7248
  t.value?.sendMessageToIframe("OPENCODE_SET_THEME", {
7249
7249
  theme: s.value
7250
7250
  });
@@ -7266,7 +7266,7 @@ function kd(e, t) {
7266
7266
  };
7267
7267
  }
7268
7268
  function Dd() {
7269
- const e = /* @__PURE__ */ L([]);
7269
+ const e = /* @__PURE__ */ F([]);
7270
7270
  try {
7271
7271
  const o = sessionStorage.getItem("__opencode_selected_elements__");
7272
7272
  o && (e.value = JSON.parse(o));
@@ -7292,7 +7292,7 @@ function Dd() {
7292
7292
  };
7293
7293
  }
7294
7294
  function Rd() {
7295
- const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), i = q(() => e.value && Ka[e.value] || "加载中...");
7295
+ const e = /* @__PURE__ */ F(""), t = /* @__PURE__ */ F("idle"), n = /* @__PURE__ */ F(!1), s = /* @__PURE__ */ F(void 0), o = /* @__PURE__ */ F(void 0), i = q(() => e.value && Ka[e.value] || "加载中...");
7296
7296
  return {
7297
7297
  currentTask: e,
7298
7298
  serviceStatus: t,
@@ -7433,13 +7433,13 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7433
7433
  for (const [s, o] of t)
7434
7434
  n[s] = o;
7435
7435
  return n;
7436
- }, Yd = /* @__PURE__ */ Kd(Ud, [["__scopeId", "data-v-6b3ae44a"]]), Xd = /* @__PURE__ */ Ve({
7436
+ }, Yd = /* @__PURE__ */ Kd(Ud, [["__scopeId", "data-v-762c7194"]]), Xd = /* @__PURE__ */ Ve({
7437
7437
  __name: "App",
7438
7438
  props: {
7439
7439
  config: {}
7440
7440
  },
7441
7441
  setup(e) {
7442
- const t = e, n = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), i = /* @__PURE__ */ L(!1), l = /* @__PURE__ */ L(null), r = /* @__PURE__ */ L(!1), {
7442
+ const t = e, n = /* @__PURE__ */ F(!1), s = /* @__PURE__ */ F(!1), o = /* @__PURE__ */ F(!0), i = /* @__PURE__ */ F(!1), l = /* @__PURE__ */ F(null), r = /* @__PURE__ */ F(!1), {
7443
7443
  theme: a = "auto",
7444
7444
  open: f = !1,
7445
7445
  hotkey: c = "ctrl+k",
@@ -7447,17 +7447,17 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7447
7447
  proxyHost: p = "localhost",
7448
7448
  displayMode: m = "bubble",
7449
7449
  splitMode: C
7450
- } = t.config, _ = a, x = /* @__PURE__ */ L(C?.width ?? 500), D = q(() => `http://${p}:${d}`), O = (E, F) => {
7451
- l.value?.showNotification?.(E, F);
7450
+ } = t.config, _ = a, O = /* @__PURE__ */ F(C?.width ?? 500), R = q(() => `http://${p}:${d}`), A = (E, L) => {
7451
+ l.value?.showNotification?.(E, L);
7452
7452
  }, {
7453
7453
  serviceStatus: B,
7454
7454
  chromeMcpFailed: y,
7455
7455
  chromeMcpErrorType: $,
7456
- chromeMcpErrorMessage: N,
7456
+ chromeMcpErrorMessage: I,
7457
7457
  loadingText: j,
7458
7458
  updateStatusFromTask: z,
7459
7459
  setStarting: ce
7460
- } = Rd(), { selectedElements: fe, removeElement: _e, clearElements: Re } = Dd(), { theme: I, sendThemeToIframe: J } = kd(_, l), {
7460
+ } = Rd(), { selectedElements: fe, removeElement: _e, clearElements: Re } = Dd(), { theme: N, sendThemeToIframe: J } = kd(_, l), {
7461
7461
  sessions: se,
7462
7462
  loadingSessionList: G,
7463
7463
  currentSessionId: Oe,
@@ -7468,9 +7468,9 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7468
7468
  deleteSession: me,
7469
7469
  selectSession: st,
7470
7470
  updateSessionInfo: dt
7471
- } = Pd({ showNotification: O }), { updateContext: Fe } = Id(B, fe), qe = Od({
7471
+ } = Pd({ showNotification: A }), { updateContext: Fe } = Id(B, fe), qe = Od({
7472
7472
  onStatusSync: (E) => {
7473
- E.isStarted !== void 0 && E.isStarted && B.value === "idle" && ce(), E.task && z(E.task, E.errorType, E.errorMessage), B.value !== "idle" && ye();
7473
+ E.isStarted !== void 0 && E.isStarted && B.value === "idle" && ce(), E.task && z(E.task, E.errorType, E.errorMessage);
7474
7474
  },
7475
7475
  onTaskUpdate: (E) => {
7476
7476
  z(E.task, E.errorType, E.errorMessage);
@@ -7478,7 +7478,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7478
7478
  onClearElements: () => Re(),
7479
7479
  onConnected: () => Fe(!0)
7480
7480
  }), Ue = Md({
7481
- proxyBaseUrl: D.value,
7481
+ proxyBaseUrl: R.value,
7482
7482
  currentSessionId: Oe,
7483
7483
  onConnected: () => {
7484
7484
  console.log("[OpenCode] Session SSE connected");
@@ -7489,10 +7489,10 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7489
7489
  }), Et = Ue.hasAnyThinking, kt = Ue.sessionStates, ot = q(() => B.value === "starting"), tn = q(() => B.value === "starting" || Le.value), u = q(() => B.value === "starting" ? j.value : "加载会话..."), h = async () => {
7490
7490
  r.value = !0;
7491
7491
  try {
7492
- const F = await (await fetch("/__opencode_warmup__", { method: "POST" })).json();
7493
- F.success ? (y.value = !1, B.value = "ready", O("Chrome DevTools MCP 连接成功")) : F.errorType === "AI_TIMEOUT" ? O("AI 响应超时,请检查 OpenCode AI 模型配置") : F.errorType === "AI_RESPONSE_ERROR" ? O("AI 响应错误,请检查 OpenCode AI 模型配置") : F.errorType === "CHROME_NOT_CONNECTED" ? O("Chrome 远程调试未开启,请按照提示操作") : O(F.error || "重试失败,请确认 Chrome 远程调试已开启");
7492
+ const L = await (await fetch("/__opencode_warmup__", { method: "POST" })).json();
7493
+ L.success ? (y.value = !1, $.value = void 0, I.value = void 0, B.value = "ready", A("Chrome DevTools MCP 连接成功")) : ($.value = L.errorType, I.value = L.error, L.errorType === "AI_TIMEOUT" ? A("AI 响应超时,请检查 OpenCode AI 模型配置") : L.errorType === "AI_RESPONSE_ERROR" ? A("AI 响应错误,请检查 OpenCode AI 模型配置") : L.errorType === "CHROME_NOT_CONNECTED" ? A("Chrome 远程调试未开启,请按照提示操作") : A(L.error || "重试失败,请确认 Chrome 远程调试已开启"));
7494
7494
  } catch (E) {
7495
- console.error("[OpenCode] Retry warmup failed:", E), O("重试失败,请稍后再试");
7495
+ console.error("[OpenCode] Retry warmup failed:", E), A("重试失败,请稍后再试");
7496
7496
  } finally {
7497
7497
  r.value = !1;
7498
7498
  }
@@ -7508,56 +7508,56 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7508
7508
  qo(c, (E) => {
7509
7509
  E.preventDefault(), T(!n.value);
7510
7510
  }), qo("ctrl+p", (E) => {
7511
- E.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value : O("Vue Inspector 未加载,无法使用元素选择功能");
7512
- }), ze(B, (E, F) => {
7513
- E !== "idle" && F === "idle" && (qe.connect(), Ue.connect());
7511
+ E.preventDefault(), window.__VUE_INSPECTOR__ ? s.value = !s.value : A("Vue Inspector 未加载,无法使用元素选择功能");
7512
+ }), ze(B, (E, L) => {
7513
+ E !== "idle" && L === "idle" && (qe.connect(), Ue.connect()), E === "ready" && L !== "ready" && ye();
7514
7514
  }), Xe(() => {
7515
7515
  B.value === "ready" && (ye(), qe.connect(), Ue.connect(), Fe(!0)), f && B.value === "ready" && setTimeout(() => {
7516
7516
  n.value = !0;
7517
7517
  }, 1e3);
7518
- const E = (F) => {
7519
- F.data?.type === "OPENCODE_READY" && J();
7518
+ const E = (L) => {
7519
+ L.data?.type === "OPENCODE_READY" && J();
7520
7520
  };
7521
7521
  window.addEventListener("message", E);
7522
7522
  });
7523
7523
  const T = async (E) => {
7524
7524
  if (B.value === "idle" && E) {
7525
7525
  i.value = !0;
7526
- const F = await g();
7527
- if (i.value = !1, !F) {
7528
- O("服务启动失败");
7526
+ const L = await g();
7527
+ if (i.value = !1, !L) {
7528
+ A("服务启动失败");
7529
7529
  return;
7530
7530
  }
7531
7531
  }
7532
7532
  n.value = E, E && Fe(), E && (Le.value = !1);
7533
7533
  }, b = (E) => {
7534
- const F = {
7534
+ const L = {
7535
7535
  ...E,
7536
7536
  previewPageUrl: window.location.href,
7537
7537
  previewPageTitle: document.title
7538
7538
  };
7539
7539
  l.value?.sendMessageToIframe("OPENCODE_INSERT_FILE_PART", {
7540
- element: F
7541
- }), O("节点已添加到对话框", { mode: "page" });
7540
+ element: L
7541
+ }), A("节点已添加到对话框", { mode: "page" });
7542
7542
  }, S = () => {
7543
- Re(), Fe(!0), O("已清除所有选中元素");
7543
+ Re(), Fe(!0), A("已清除所有选中元素");
7544
7544
  }, P = (E) => {
7545
7545
  s.value = E, !E && !n.value && (n.value = !0);
7546
7546
  }, k = (E) => {
7547
7547
  o.value = E;
7548
7548
  }, M = (E) => {
7549
- I.value = E;
7549
+ N.value = E;
7550
7550
  }, w = (E) => {
7551
- x.value = E;
7551
+ O.value = E;
7552
7552
  }, W = ({ index: E }) => {
7553
7553
  _e(E), Fe(!0);
7554
- }, R = () => {
7554
+ }, D = () => {
7555
7555
  Le.value = !1;
7556
7556
  };
7557
- return (E, F) => (H(), ft(re(wd), {
7557
+ return (E, L) => (H(), ft(re(wd), {
7558
7558
  ref_key: "widgetRef",
7559
7559
  ref: l,
7560
- theme: re(I),
7560
+ theme: re(N),
7561
7561
  open: n.value,
7562
7562
  "select-mode": s.value,
7563
7563
  "session-list-collapsed": o.value,
@@ -7574,7 +7574,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7574
7574
  thinking: re(Et),
7575
7575
  "display-mode": re(m),
7576
7576
  "split-mode": re(C),
7577
- "split-panel-width": x.value,
7577
+ "split-panel-width": O.value,
7578
7578
  "onUpdate:open": T,
7579
7579
  "onUpdate:selectMode": P,
7580
7580
  "onUpdate:sessionListCollapsed": k,
@@ -7588,7 +7588,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7588
7588
  onClearSelectedNodes: S,
7589
7589
  onRemoveSelectedNode: W,
7590
7590
  onEmptyAction: re(ge),
7591
- onFrameLoaded: R
7591
+ onFrameLoaded: D
7592
7592
  }, {
7593
7593
  loading: he(() => [
7594
7594
  we(Fd, { "loading-text": u.value }, null, 8, ["loading-text"])
@@ -7598,7 +7598,7 @@ const Nd = { class: "opencode-custom-loading" }, Ld = { class: "opencode-loading
7598
7598
  key: 0,
7599
7599
  retrying: r.value,
7600
7600
  "error-type": re($),
7601
- "error-message": re(N),
7601
+ "error-message": re(I),
7602
7602
  onRetry: h
7603
7603
  }, null, 8, ["retrying", "error-type", "error-message"])) : be("", !0)
7604
7604
  ]),