vite-plugin-opencode-assistant 1.0.88 → 1.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +467 -449
  2. package/package.json +5 -5
package/lib/client.js CHANGED
@@ -4,11 +4,11 @@ function oi(e) {
4
4
  for (const n of e.split(",")) t[n] = 1;
5
5
  return (n) => n in t;
6
6
  }
7
- var me = {}, Qt = [], Ft = () => {
7
+ var me = {}, en = [], Ft = () => {
8
8
  }, gs = () => !1, si = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), ri = (e) => e.startsWith("onUpdate:"), Ze = Object.assign, ms = (e, t) => {
9
9
  const n = e.indexOf(t);
10
10
  n > -1 && e.splice(n, 1);
11
- }, rl = Object.prototype.hasOwnProperty, ue = (e, t) => rl.call(e, t), Z = Array.isArray, en = (e) => Ln(e) === "[object Map]", li = (e) => Ln(e) === "[object Set]", mo = (e) => Ln(e) === "[object Date]", ce = (e) => typeof e == "function", we = (e) => typeof e == "string", Qe = (e) => typeof e == "symbol", pe = (e) => e !== null && typeof e == "object", _s = (e) => (pe(e) || ce(e)) && ce(e.then) && ce(e.catch), ys = Object.prototype.toString, Ln = (e) => ys.call(e), ll = (e) => Ln(e).slice(8, -1), bs = (e) => Ln(e) === "[object Object]", ai = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bn = /* @__PURE__ */ oi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), ci = (e) => {
11
+ }, rl = Object.prototype.hasOwnProperty, ue = (e, t) => rl.call(e, t), Z = Array.isArray, tn = (e) => Nn(e) === "[object Map]", li = (e) => Nn(e) === "[object Set]", mo = (e) => Nn(e) === "[object Date]", ce = (e) => typeof e == "function", we = (e) => typeof e == "string", Qe = (e) => typeof e == "symbol", pe = (e) => e !== null && typeof e == "object", _s = (e) => (pe(e) || ce(e)) && ce(e.then) && ce(e.catch), ys = Object.prototype.toString, Nn = (e) => ys.call(e), ll = (e) => Nn(e).slice(8, -1), bs = (e) => Nn(e) === "[object Object]", ai = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, bn = /* @__PURE__ */ oi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), ci = (e) => {
12
12
  const t = /* @__PURE__ */ Object.create(null);
13
13
  return ((n) => t[n] || (t[n] = e(n)));
14
14
  }, al = /-\w/g, rt = ci((e) => e.replace(al, (t) => t.slice(1).toUpperCase())), cl = /\B([A-Z])/g, Gt = ci((e) => e.replace(cl, "-$1").toLowerCase()), Ss = ci((e) => e.charAt(0).toUpperCase() + e.slice(1)), yi = ci((e) => e ? `on${Ss(e)}` : ""), mt = (e, t) => !Object.is(e, t), Vn = (e, ...t) => {
@@ -62,10 +62,10 @@ function Cs(e) {
62
62
  function vl(e, t) {
63
63
  if (e.length !== t.length) return !1;
64
64
  let n = !0;
65
- for (let i = 0; n && i < e.length; i++) n = Nn(e[i], t[i]);
65
+ for (let i = 0; n && i < e.length; i++) n = Ln(e[i], t[i]);
66
66
  return n;
67
67
  }
68
- function Nn(e, t) {
68
+ function Ln(e, t) {
69
69
  if (e === t) return !0;
70
70
  let n = mo(e), i = mo(t);
71
71
  if (n || i) return n && i ? e.getTime() === t.getTime() : !1;
@@ -75,24 +75,24 @@ function Nn(e, t) {
75
75
  if (!n || !i || Object.keys(e).length !== Object.keys(t).length) return !1;
76
76
  for (const o in e) {
77
77
  const s = e.hasOwnProperty(o), r = t.hasOwnProperty(o);
78
- if (s && !r || !s && r || !Nn(e[o], t[o])) return !1;
78
+ if (s && !r || !s && r || !Ln(e[o], t[o])) return !1;
79
79
  }
80
80
  }
81
81
  return String(e) === String(t);
82
82
  }
83
83
  function gl(e, t) {
84
- return e.findIndex((n) => Nn(n, t));
84
+ return e.findIndex((n) => Ln(n, t));
85
85
  }
86
- var xs = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => we(e) ? e : e == null ? "" : Z(e) || pe(e) && (e.toString === ys || !ce(e.toString)) ? xs(e) ? Ce(e.value) : JSON.stringify(e, Os, 2) : String(e), Os = (e, t) => xs(t) ? Os(e, t.value) : en(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [i, o], s) => (n[bi(i, s) + " =>"] = o, n), {}) } : li(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => bi(n)) } : Qe(t) ? bi(t) : pe(t) && !Z(t) && !bs(t) ? String(t) : t, bi = (e, t = "") => {
86
+ var xs = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => we(e) ? e : e == null ? "" : Z(e) || pe(e) && (e.toString === ys || !ce(e.toString)) ? xs(e) ? Ce(e.value) : JSON.stringify(e, Os, 2) : String(e), Os = (e, t) => xs(t) ? Os(e, t.value) : tn(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [i, o], s) => (n[bi(i, s) + " =>"] = o, n), {}) } : li(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => bi(n)) } : Qe(t) ? bi(t) : pe(t) && !Z(t) && !bs(t) ? String(t) : t, bi = (e, t = "") => {
87
87
  var n;
88
88
  return Qe(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e;
89
89
  };
90
90
  function ml(e) {
91
91
  return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : (typeof e != "number" || Number.isFinite(e), String(e));
92
92
  }
93
- var Ne, _l = class {
93
+ var Le, _l = class {
94
94
  constructor(e = !1) {
95
- this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && Ne && (Ne.active ? (this.parent = Ne, this.index = (Ne.scopes || (Ne.scopes = [])).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
95
+ this.detached = e, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this._warnOnRun = !0, this.__v_skip = !0, !e && Le && (Le.active ? (this.parent = Le, this.index = (Le.scopes || (Le.scopes = [])).push(this) - 1) : (this._active = !1, this._warnOnRun = !1));
96
96
  }
97
97
  get active() {
98
98
  return this._active;
@@ -115,22 +115,22 @@ var Ne, _l = class {
115
115
  }
116
116
  run(e) {
117
117
  if (this._active) {
118
- const t = Ne;
118
+ const t = Le;
119
119
  try {
120
- return Ne = this, e();
120
+ return Le = this, e();
121
121
  } finally {
122
- Ne = t;
122
+ Le = t;
123
123
  }
124
124
  }
125
125
  }
126
126
  on() {
127
- ++this._on === 1 && (this.prevScope = Ne, Ne = this);
127
+ ++this._on === 1 && (this.prevScope = Le, Le = this);
128
128
  }
129
129
  off() {
130
130
  if (this._on > 0 && --this._on === 0) {
131
- if (Ne === this) Ne = this.prevScope;
131
+ if (Le === this) Le = this.prevScope;
132
132
  else {
133
- let e = Ne;
133
+ let e = Le;
134
134
  for (; e; ) {
135
135
  if (e.prevScope === this) {
136
136
  e.prevScope = this.prevScope;
@@ -161,11 +161,11 @@ var Ne, _l = class {
161
161
  }
162
162
  };
163
163
  function yl() {
164
- return Ne;
164
+ return Le;
165
165
  }
166
166
  var de, Si = /* @__PURE__ */ new WeakSet(), Ps = class {
167
167
  constructor(e) {
168
- this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, Ne && (Ne.active ? Ne.effects.push(this) : this.flags &= -2);
168
+ this.fn = e, this.deps = void 0, this.depsTail = void 0, this.flags = 5, this.next = void 0, this.cleanup = void 0, this.scheduler = void 0, Le && (Le.active ? Le.effects.push(this) : this.flags &= -2);
169
169
  }
170
170
  pause() {
171
171
  this.flags |= 64;
@@ -280,12 +280,12 @@ function bl(e) {
280
280
  const { prevDep: t, nextDep: n } = e;
281
281
  t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
282
282
  }
283
- var lt = !0, Ls = [];
283
+ var lt = !0, Ns = [];
284
284
  function Pt() {
285
- Ls.push(lt), lt = !1;
285
+ Ns.push(lt), lt = !1;
286
286
  }
287
287
  function Mt() {
288
- const e = Ls.pop();
288
+ const e = Ns.pop();
289
289
  lt = e === void 0 ? !0 : e;
290
290
  }
291
291
  function yo(e) {
@@ -312,7 +312,7 @@ var On = 0, Sl = class {
312
312
  if (!de || !lt || de === this.computed) return;
313
313
  let t = this.activeLink;
314
314
  if (t === void 0 || t.sub !== de)
315
- t = this.activeLink = new Sl(de, this), de.deps ? (t.prevDep = de.depsTail, de.depsTail.nextDep = t, de.depsTail = t) : de.deps = de.depsTail = t, Ns(t);
315
+ t = this.activeLink = new Sl(de, this), de.deps ? (t.prevDep = de.depsTail, de.depsTail.nextDep = t, de.depsTail = t) : de.deps = de.depsTail = t, Ls(t);
316
316
  else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
317
317
  const n = t.nextDep;
318
318
  n.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = n), t.prevDep = de.depsTail, t.nextDep = void 0, de.depsTail.nextDep = t, de.depsTail = t, de.deps === t && (de.deps = n);
@@ -331,12 +331,12 @@ var On = 0, Sl = class {
331
331
  }
332
332
  }
333
333
  };
334
- function Ns(e) {
334
+ function Ls(e) {
335
335
  if (e.dep.sc++, e.sub.flags & 4) {
336
336
  const t = e.dep.computed;
337
337
  if (t && !e.dep.subs) {
338
338
  t.flags |= 20;
339
- for (let i = t.deps; i; i = i.nextDep) Ns(i);
339
+ for (let i = t.deps; i; i = i.nextDep) Ls(i);
340
340
  }
341
341
  const n = e.dep.subs;
342
342
  n !== e && (e.prevSub = n, n && (n.nextSub = e)), e.dep.subs = e;
@@ -371,13 +371,13 @@ function xt(e, t, n, i, o, s) {
371
371
  } else
372
372
  switch ((n !== void 0 || r.has(void 0)) && l(r.get(n)), u && l(r.get(Pn)), t) {
373
373
  case "add":
374
- a ? u && l(r.get("length")) : (l(r.get(Ut)), en(e) && l(r.get($i)));
374
+ a ? u && l(r.get("length")) : (l(r.get(Ut)), tn(e) && l(r.get($i)));
375
375
  break;
376
376
  case "delete":
377
- a || (l(r.get(Ut)), en(e) && l(r.get($i)));
377
+ a || (l(r.get(Ut)), tn(e) && l(r.get($i)));
378
378
  break;
379
379
  case "set":
380
- en(e) && l(r.get(Ut));
380
+ tn(e) && l(r.get(Ut));
381
381
  break;
382
382
  }
383
383
  }
@@ -395,7 +395,7 @@ function di(e) {
395
395
  return Be(e = /* @__PURE__ */ oe(e), "iterate", Pn), e;
396
396
  }
397
397
  function vt(e, t) {
398
- return /* @__PURE__ */ It(e) ? sn(/* @__PURE__ */ Kt(e) ? at(t) : t) : at(t);
398
+ return /* @__PURE__ */ It(e) ? rn(/* @__PURE__ */ Kt(e) ? at(t) : t) : at(t);
399
399
  }
400
400
  var El = {
401
401
  __proto__: null,
@@ -445,10 +445,10 @@ var El = {
445
445
  return Et(this, "map", e, t, void 0, arguments);
446
446
  },
447
447
  pop() {
448
- return hn(this, "pop");
448
+ return pn(this, "pop");
449
449
  },
450
450
  push(...e) {
451
- return hn(this, "push", e);
451
+ return pn(this, "push", e);
452
452
  },
453
453
  reduce(e, ...t) {
454
454
  return bo(this, "reduce", e, t);
@@ -457,13 +457,13 @@ var El = {
457
457
  return bo(this, "reduceRight", e, t);
458
458
  },
459
459
  shift() {
460
- return hn(this, "shift");
460
+ return pn(this, "shift");
461
461
  },
462
462
  some(e, t) {
463
463
  return Et(this, "some", e, t, void 0, arguments);
464
464
  },
465
465
  splice(...e) {
466
- return hn(this, "splice", e);
466
+ return pn(this, "splice", e);
467
467
  },
468
468
  toReversed() {
469
469
  return Jt(this).toReversed();
@@ -475,7 +475,7 @@ var El = {
475
475
  return Jt(this).toSpliced(...e);
476
476
  },
477
477
  unshift(...e) {
478
- return hn(this, "unshift", e);
478
+ return pn(this, "unshift", e);
479
479
  },
480
480
  values() {
481
481
  return wi(this, "values", (e) => vt(this, e));
@@ -521,7 +521,7 @@ function Ei(e, t, n) {
521
521
  const o = i[t](...n);
522
522
  return (o === -1 || o === !1) && /* @__PURE__ */ fi(n[0]) ? (n[0] = /* @__PURE__ */ oe(n[0]), i[t](...n)) : o;
523
523
  }
524
- function hn(e, t, n = []) {
524
+ function pn(e, t, n = []) {
525
525
  Pt(), Gi();
526
526
  const i = (/* @__PURE__ */ oe(e))[t].apply(e, n);
527
527
  return Xi(), Mt(), i;
@@ -596,7 +596,7 @@ var $s = class {
596
596
  }, Pl = /* @__PURE__ */ new Fs(), Ml = /* @__PURE__ */ new Ol(), Il = /* @__PURE__ */ new Fs(!0), Fi = (e) => e, Bn = (e) => Reflect.getPrototypeOf(e);
597
597
  function Al(e, t, n) {
598
598
  return function(...i) {
599
- const o = this.__v_raw, s = /* @__PURE__ */ oe(o), r = en(s), l = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, u = o[e](...i), c = n ? Fi : t ? sn : at;
599
+ const o = this.__v_raw, s = /* @__PURE__ */ oe(o), r = tn(s), l = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, u = o[e](...i), c = n ? Fi : t ? rn : at;
600
600
  return !t && Be(s, "iterate", a ? $i : Ut), Ze(Object.create(u), { next() {
601
601
  const { value: f, done: p } = u.next();
602
602
  return p ? {
@@ -619,7 +619,7 @@ function kl(e, t) {
619
619
  get(i) {
620
620
  const o = this.__v_raw, s = /* @__PURE__ */ oe(o), r = /* @__PURE__ */ oe(i);
621
621
  e || (mt(i, r) && Be(s, "get", i), Be(s, "get", r));
622
- const { has: l } = Bn(s), a = t ? Fi : e ? sn : at;
622
+ const { has: l } = Bn(s), a = t ? Fi : e ? rn : at;
623
623
  if (l.call(s, i)) return a(o.get(i));
624
624
  if (l.call(s, r)) return a(o.get(r));
625
625
  o !== s && o.get(i);
@@ -633,7 +633,7 @@ function kl(e, t) {
633
633
  return e || (mt(i, r) && Be(s, "has", i), Be(s, "has", r)), i === r ? o.has(i) : o.has(i) || o.has(r);
634
634
  },
635
635
  forEach(i, o) {
636
- const s = this, r = s.__v_raw, l = /* @__PURE__ */ oe(r), a = t ? Fi : e ? sn : at;
636
+ const s = this, r = s.__v_raw, l = /* @__PURE__ */ oe(r), a = t ? Fi : e ? rn : at;
637
637
  return !e && Be(l, "iterate", Ut), r.forEach((u, c) => i.call(o, a(u), a(c), s));
638
638
  }
639
639
  };
@@ -679,7 +679,7 @@ function Qi(e, t) {
679
679
  const n = kl(e, t);
680
680
  return (i, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? i : Reflect.get(ue(n, o) && o in i ? n : i, o, s);
681
681
  }
682
- var Rl = { get: /* @__PURE__ */ Qi(!1, !1) }, Ll = { get: /* @__PURE__ */ Qi(!1, !0) }, Nl = { get: /* @__PURE__ */ Qi(!0, !1) }, Bs = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Dl = /* @__PURE__ */ new WeakMap();
682
+ var Rl = { get: /* @__PURE__ */ Qi(!1, !1) }, Nl = { get: /* @__PURE__ */ Qi(!1, !0) }, Ll = { get: /* @__PURE__ */ Qi(!0, !1) }, Bs = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Dl = /* @__PURE__ */ new WeakMap();
683
683
  function $l(e) {
684
684
  switch (e) {
685
685
  case "Object":
@@ -700,11 +700,11 @@ function Hs(e) {
700
700
  }
701
701
  // @__NO_SIDE_EFFECTS__
702
702
  function Fl(e) {
703
- return eo(e, !1, Il, Ll, js);
703
+ return eo(e, !1, Il, Nl, js);
704
704
  }
705
705
  // @__NO_SIDE_EFFECTS__
706
706
  function Bi(e) {
707
- return eo(e, !0, Ml, Nl, Ws);
707
+ return eo(e, !0, Ml, Ll, Ws);
708
708
  }
709
709
  function eo(e, t, n, i, o) {
710
710
  if (!pe(e) || e.__v_raw && !(t && e.__v_isReactive) || e.__v_skip || !Object.isExtensible(e)) return e;
@@ -739,13 +739,13 @@ function oe(e) {
739
739
  function Bl(e) {
740
740
  return !ue(e, "__v_skip") && Object.isExtensible(e) && ws(e, "__v_skip", !0), e;
741
741
  }
742
- var at = (e) => pe(e) ? /* @__PURE__ */ Hs(e) : e, sn = (e) => pe(e) ? /* @__PURE__ */ Bi(e) : e;
742
+ var at = (e) => pe(e) ? /* @__PURE__ */ Hs(e) : e, rn = (e) => pe(e) ? /* @__PURE__ */ Bi(e) : e;
743
743
  // @__NO_SIDE_EFFECTS__
744
744
  function Ie(e) {
745
745
  return e ? e.__v_isRef === !0 : !1;
746
746
  }
747
747
  // @__NO_SIDE_EFFECTS__
748
- function L(e) {
748
+ function N(e) {
749
749
  return jl(e, !1);
750
750
  }
751
751
  function jl(e, t) {
@@ -812,7 +812,7 @@ var Vl = class {
812
812
  };
813
813
  // @__NO_SIDE_EFFECTS__
814
814
  function re(e, t, n) {
815
- return /* @__PURE__ */ Ie(e) ? e : ce(e) ? new zl(e) : pe(e) && arguments.length > 1 ? ql(e, t, n) : /* @__PURE__ */ L(e);
815
+ return /* @__PURE__ */ Ie(e) ? e : ce(e) ? new zl(e) : pe(e) && arguments.length > 1 ? ql(e, t, n) : /* @__PURE__ */ N(e);
816
816
  }
817
817
  function ql(e, t, n) {
818
818
  return new Vl(e, t, n);
@@ -847,8 +847,8 @@ function Yl(e, t = !1, n = Vt) {
847
847
  }
848
848
  function Gl(e, t, n = me) {
849
849
  const { immediate: i, deep: o, once: s, scheduler: r, augmentJob: l, call: a } = n, u = (S) => o ? S : /* @__PURE__ */ Je(S) || o === !1 || o === 0 ? Ot(S, 1) : Ot(S);
850
- let c, f, p, v, _ = !1, y = !1;
851
- if (/* @__PURE__ */ Ie(e) ? (f = () => e.value, _ = /* @__PURE__ */ Je(e)) : /* @__PURE__ */ Kt(e) ? (f = () => u(e), _ = !0) : Z(e) ? (y = !0, _ = e.some((S) => /* @__PURE__ */ Kt(S) || /* @__PURE__ */ Je(S)), f = () => e.map((S) => {
850
+ let c, f, p, v, y = !1, _ = !1;
851
+ if (/* @__PURE__ */ Ie(e) ? (f = () => e.value, y = /* @__PURE__ */ Je(e)) : /* @__PURE__ */ Kt(e) ? (f = () => u(e), y = !0) : Z(e) ? (_ = !0, y = e.some((S) => /* @__PURE__ */ Kt(S) || /* @__PURE__ */ Je(S)), f = () => e.map((S) => {
852
852
  if (/* @__PURE__ */ Ie(S)) return S.value;
853
853
  if (/* @__PURE__ */ Kt(S)) return u(S);
854
854
  if (ce(S)) return a ? a(S, 2) : S();
@@ -882,19 +882,19 @@ function Gl(e, t, n = me) {
882
882
  return O(), q;
883
883
  };
884
884
  }
885
- let M = y ? new Array(e.length).fill(Wn) : Wn;
885
+ let M = _ ? new Array(e.length).fill(Wn) : Wn;
886
886
  const V = (S) => {
887
887
  if (!(!(c.flags & 1) || !c.dirty && !S))
888
888
  if (t) {
889
889
  const z = c.run();
890
- if (S || o || _ || (y ? z.some((q, I) => mt(q, M[I])) : mt(z, M))) {
890
+ if (S || o || y || (_ ? z.some((q, I) => mt(q, M[I])) : mt(z, M))) {
891
891
  p && p();
892
892
  const q = Vt;
893
893
  Vt = c;
894
894
  try {
895
895
  const I = [
896
896
  z,
897
- M === Wn ? void 0 : y && M[0] === Wn ? [] : M,
897
+ M === Wn ? void 0 : _ && M[0] === Wn ? [] : M,
898
898
  v
899
899
  ];
900
900
  M = z, a ? a(t, 3, I) : t(...I);
@@ -917,7 +917,7 @@ function Ot(e, t = 1 / 0, n) {
917
917
  if (t <= 0 || !pe(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
918
918
  if (n.set(e, t), t--, /* @__PURE__ */ Ie(e)) Ot(e.value, t, n);
919
919
  else if (Z(e)) for (let i = 0; i < e.length; i++) Ot(e[i], t, n);
920
- else if (li(e) || en(e)) e.forEach((i) => {
920
+ else if (li(e) || tn(e)) e.forEach((i) => {
921
921
  Ot(i, t, n);
922
922
  });
923
923
  else if (bs(e)) {
@@ -973,7 +973,7 @@ function Xl(e, t, n, i = !0, o = !1) {
973
973
  if (o) throw e;
974
974
  console.error(e);
975
975
  }
976
- var Ve = [], pt = -1, tn = [], $t = null, Zt = 0, zs = /* @__PURE__ */ Promise.resolve(), Kn = null;
976
+ var Ve = [], pt = -1, nn = [], $t = null, Zt = 0, zs = /* @__PURE__ */ Promise.resolve(), Kn = null;
977
977
  function pi(e) {
978
978
  const t = Kn || zs;
979
979
  return e ? t.then(this ? e.bind(this) : e) : t;
@@ -996,7 +996,7 @@ function qs() {
996
996
  Kn || (Kn = zs.then(Ys));
997
997
  }
998
998
  function Us(e) {
999
- Z(e) ? tn.push(...e) : $t && e.id === -1 ? $t.splice(Zt + 1, 0, e) : e.flags & 1 || (tn.push(e), e.flags |= 1), qs();
999
+ Z(e) ? nn.push(...e) : $t && e.id === -1 ? $t.splice(Zt + 1, 0, e) : e.flags & 1 || (nn.push(e), e.flags |= 1), qs();
1000
1000
  }
1001
1001
  function So(e, t, n = pt + 1) {
1002
1002
  for (; n < Ve.length; n++) {
@@ -1008,9 +1008,9 @@ function So(e, t, n = pt + 1) {
1008
1008
  }
1009
1009
  }
1010
1010
  function Ks(e) {
1011
- if (tn.length) {
1012
- const t = [...new Set(tn)].sort((n, i) => Mn(n) - Mn(i));
1013
- if (tn.length = 0, $t) {
1011
+ if (nn.length) {
1012
+ const t = [...new Set(nn)].sort((n, i) => Mn(n) - Mn(i));
1013
+ if (nn.length = 0, $t) {
1014
1014
  $t.push(...t);
1015
1015
  return;
1016
1016
  }
@@ -1033,7 +1033,7 @@ function Ys(e) {
1033
1033
  const t = Ve[pt];
1034
1034
  t && (t.flags &= -2);
1035
1035
  }
1036
- pt = -1, Ve.length = 0, Ks(e), Kn = null, (Ve.length || tn.length) && Ys(e);
1036
+ pt = -1, Ve.length = 0, Ks(e), Kn = null, (Ve.length || nn.length) && Ys(e);
1037
1037
  }
1038
1038
  }
1039
1039
  var je = null, Gs = null;
@@ -1098,8 +1098,8 @@ function Zl(e, t) {
1098
1098
  }
1099
1099
  function Xs(e, t, n = !1) {
1100
1100
  const i = ao();
1101
- if (i || on) {
1102
- let o = on ? on._context.provides : i ? i.parent == null || i.ce ? i.vnode.appContext && i.vnode.appContext.provides : i.parent.provides : void 0;
1101
+ if (i || sn) {
1102
+ let o = sn ? sn._context.provides : i ? i.parent == null || i.ce ? i.vnode.appContext && i.vnode.appContext.provides : i.parent.provides : void 0;
1103
1103
  if (o && e in o) return o[e];
1104
1104
  if (arguments.length > 1) return n && ce(t) ? t.call(i && i.proxy) : t;
1105
1105
  }
@@ -1127,56 +1127,56 @@ function ta(e, t, n = me) {
1127
1127
  }
1128
1128
  }
1129
1129
  const c = Ge;
1130
- l.call = (v, _, y) => _t(v, c, _, y);
1130
+ l.call = (v, y, _) => _t(v, c, y, _);
1131
1131
  let f = !1;
1132
1132
  s === "post" ? l.scheduler = (v) => {
1133
1133
  He(v, c && c.suspense);
1134
- } : s !== "sync" && (f = !0, l.scheduler = (v, _) => {
1135
- _ ? v() : to(v);
1134
+ } : s !== "sync" && (f = !0, l.scheduler = (v, y) => {
1135
+ y ? v() : to(v);
1136
1136
  }), l.augmentJob = (v) => {
1137
1137
  t && (v.flags |= 4), f && (v.flags |= 2, c && (v.id = c.uid, v.i = c));
1138
1138
  };
1139
1139
  const p = Gl(e, t, l);
1140
1140
  return kn && (u ? u.push(p) : a && p()), p;
1141
1141
  }
1142
- var Nt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ Symbol("_vte"), na = (e) => e.__isTeleport, qt = (e) => e && (e.disabled || e.disabled === ""), ia = (e) => e && (e.defer || e.defer === ""), wo = (e) => typeof SVGElement < "u" && e instanceof SVGElement, Eo = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, Wi = (e, t) => {
1142
+ var Lt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ Symbol("_vte"), na = (e) => e.__isTeleport, qt = (e) => e && (e.disabled || e.disabled === ""), ia = (e) => e && (e.defer || e.defer === ""), wo = (e) => typeof SVGElement < "u" && e instanceof SVGElement, Eo = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, Wi = (e, t) => {
1143
1143
  const n = e && e.to;
1144
1144
  return we(n) ? t ? t(n) : null : n;
1145
1145
  }, oa = {
1146
1146
  name: "Teleport",
1147
1147
  __isTeleport: !0,
1148
1148
  process(e, t, n, i, o, s, r, l, a, u) {
1149
- const { mc: c, pc: f, pbc: p, o: { insert: v, querySelector: _, createText: y, createComment: b, parentNode: O } } = u, M = qt(t.props);
1149
+ const { mc: c, pc: f, pbc: p, o: { insert: v, querySelector: y, createText: _, createComment: b, parentNode: O } } = u, M = qt(t.props);
1150
1150
  let { dynamicChildren: V } = t;
1151
1151
  const S = (I, W, H) => {
1152
1152
  I.shapeFlag & 16 && c(I.children, W, H, o, s, r, l, a);
1153
1153
  }, z = (I = t) => {
1154
- const W = qt(I.props), H = I.target = Wi(I.props, _), X = Hi(H, I, y, v);
1155
- H && (r !== "svg" && wo(H) ? r = "svg" : r !== "mathml" && Eo(H) && (r = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(H), W || (S(I, H, X), mn(I, !1)));
1154
+ const W = qt(I.props), H = I.target = Wi(I.props, y), X = Hi(H, I, _, v);
1155
+ H && (r !== "svg" && wo(H) ? r = "svg" : r !== "mathml" && Eo(H) && (r = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(H), W || (S(I, H, X), _n(I, !1)));
1156
1156
  }, q = (I) => {
1157
1157
  const W = () => {
1158
- if (Nt.get(I) === W) {
1159
- if (Nt.delete(I), qt(I.props)) {
1158
+ if (Lt.get(I) === W) {
1159
+ if (Lt.delete(I), qt(I.props)) {
1160
1160
  const H = O(I.el) || n;
1161
- S(I, H, I.anchor), mn(I, !0);
1161
+ S(I, H, I.anchor), _n(I, !0);
1162
1162
  }
1163
1163
  z(I);
1164
1164
  }
1165
1165
  };
1166
- Nt.set(I, W), He(W, s);
1166
+ Lt.set(I, W), He(W, s);
1167
1167
  };
1168
1168
  if (e == null) {
1169
- const I = t.el = y(""), W = t.anchor = y("");
1169
+ const I = t.el = _(""), W = t.anchor = _("");
1170
1170
  if (v(I, n, i), v(W, n, i), ia(t.props) || s && s.pendingBranch) {
1171
1171
  q(t);
1172
1172
  return;
1173
1173
  }
1174
- M && (S(t, n, W), mn(t, !0)), z();
1174
+ M && (S(t, n, W), _n(t, !0)), z();
1175
1175
  } else {
1176
1176
  t.el = e.el;
1177
- const I = t.anchor = e.anchor, W = Nt.get(e);
1177
+ const I = t.anchor = e.anchor, W = Lt.get(e);
1178
1178
  if (W) {
1179
- W.flags |= 8, Nt.delete(e), q(t);
1179
+ W.flags |= 8, Lt.delete(e), q(t);
1180
1180
  return;
1181
1181
  }
1182
1182
  t.targetStart = e.targetStart;
@@ -1184,17 +1184,17 @@ var Nt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ Symbol("_vte"), na
1184
1184
  if (r === "svg" || wo(H) ? r = "svg" : (r === "mathml" || Eo(H)) && (r = "mathml"), V ? (p(e.dynamicChildren, V, Te, o, s, r, l), so(e, t, !0)) : a || f(e, t, Te, $, o, s, r, l, !1), M)
1185
1185
  te ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Hn(t, n, I, u, 1);
1186
1186
  else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
1187
- const J = Wi(t.props, _);
1187
+ const J = Wi(t.props, y);
1188
1188
  J && (t.target = J, Hn(t, J, null, u, 0));
1189
1189
  } else te && Hn(t, H, X, u, 1);
1190
- mn(t, M);
1190
+ _n(t, M);
1191
1191
  }
1192
1192
  },
1193
1193
  remove(e, t, n, { um: i, o: { remove: o } }, s) {
1194
- const { shapeFlag: r, children: l, anchor: a, targetStart: u, targetAnchor: c, target: f, props: p } = e, v = qt(p), _ = s || !v, y = Nt.get(e);
1195
- if (y && (y.flags |= 8, Nt.delete(e)), f && (o(u), o(c)), s && o(a), !y && (v || f) && r & 16) for (let b = 0; b < l.length; b++) {
1194
+ const { shapeFlag: r, children: l, anchor: a, targetStart: u, targetAnchor: c, target: f, props: p } = e, v = qt(p), y = s || !v, _ = Lt.get(e);
1195
+ if (_ && (_.flags |= 8, Lt.delete(e)), f && (o(u), o(c)), s && o(a), !_ && (v || f) && r & 16) for (let b = 0; b < l.length; b++) {
1196
1196
  const O = l[b];
1197
- i(O, t, n, _, !!O.dynamicChildren);
1197
+ i(O, t, n, y, !!O.dynamicChildren);
1198
1198
  }
1199
1199
  },
1200
1200
  move: Hn,
@@ -1203,7 +1203,7 @@ var Nt = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ Symbol("_vte"), na
1203
1203
  function Hn(e, t, n, { o: { insert: i }, m: o }, s = 2) {
1204
1204
  s === 0 && i(e.targetAnchor, t, n);
1205
1205
  const { el: r, anchor: l, shapeFlag: a, children: u, props: c } = e, f = s === 2;
1206
- if (f && i(r, t, n), !Nt.has(e) && (!f || qt(c)) && a & 16)
1206
+ if (f && i(r, t, n), !Lt.has(e) && (!f || qt(c)) && a & 16)
1207
1207
  for (let p = 0; p < u.length; p++) o(u[p], t, n, 2);
1208
1208
  f && i(l, t, n);
1209
1209
  }
@@ -1224,15 +1224,15 @@ function sa(e, t, n, i, o, s, { o: { nextSibling: r, parentNode: l, querySelecto
1224
1224
  function v(b, O) {
1225
1225
  O.anchor = f(r(b), O, l(b), n, i, o, s);
1226
1226
  }
1227
- const _ = t.target = Wi(t.props, a), y = qt(t.props);
1228
- if (_) {
1229
- const b = _._lpa || _.firstChild;
1230
- t.shapeFlag & 16 && (y ? (v(e, t), p(_, b), t.targetAnchor || Hi(_, t, c, u, l(e) === _ ? e : null)) : (t.anchor = r(e), p(_, b), t.targetAnchor || Hi(_, t, c, u), f(b && r(b), t, _, n, i, o, s))), mn(t, y);
1231
- } else y && t.shapeFlag & 16 && (v(e, t), t.targetStart = e, t.targetAnchor = r(e));
1227
+ const y = t.target = Wi(t.props, a), _ = qt(t.props);
1228
+ if (y) {
1229
+ const b = y._lpa || y.firstChild;
1230
+ t.shapeFlag & 16 && (_ ? (v(e, t), p(y, b), t.targetAnchor || Hi(y, t, c, u, l(e) === y ? e : null)) : (t.anchor = r(e), p(y, b), t.targetAnchor || Hi(y, t, c, u), f(b && r(b), t, y, n, i, o, s))), _n(t, _);
1231
+ } else _ && t.shapeFlag & 16 && (v(e, t), t.targetStart = e, t.targetAnchor = r(e));
1232
1232
  return t.anchor && r(t.anchor);
1233
1233
  }
1234
1234
  var Zs = oa;
1235
- function mn(e, t) {
1235
+ function _n(e, t) {
1236
1236
  const n = e.ctx;
1237
1237
  if (n && n.ut) {
1238
1238
  let i, o;
@@ -1267,20 +1267,20 @@ function To(e, t) {
1267
1267
  var Gn = /* @__PURE__ */ new WeakMap();
1268
1268
  function En(e, t, n, i, o = !1) {
1269
1269
  if (Z(e)) {
1270
- e.forEach((y, b) => En(y, t && (Z(t) ? t[b] : t), n, i, o));
1270
+ e.forEach((_, b) => En(_, t && (Z(t) ? t[b] : t), n, i, o));
1271
1271
  return;
1272
1272
  }
1273
- if (nn(i) && !o) {
1273
+ if (on(i) && !o) {
1274
1274
  i.shapeFlag & 512 && i.type.__asyncResolved && i.component.subTree.component && En(e, t, n, i.component.subTree);
1275
1275
  return;
1276
1276
  }
1277
- const s = i.shapeFlag & 4 ? mi(i.component) : i.el, r = o ? null : s, { i: l, r: a } = e, u = t && t.r, c = l.refs === me ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ oe(f), v = f === me ? gs : (y) => To(c, y) ? !1 : ue(p, y), _ = (y, b) => !(b && To(c, b));
1277
+ const s = i.shapeFlag & 4 ? mi(i.component) : i.el, r = o ? null : s, { i: l, r: a } = e, u = t && t.r, c = l.refs === me ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ oe(f), v = f === me ? gs : (_) => To(c, _) ? !1 : ue(p, _), y = (_, b) => !(b && To(c, b));
1278
1278
  if (u != null && u !== a) {
1279
1279
  if (Co(t), we(u))
1280
1280
  c[u] = null, v(u) && (f[u] = null);
1281
1281
  else if (/* @__PURE__ */ Ie(u)) {
1282
- const y = t;
1283
- _(u, y.k) && (u.value = null), y.k && (c[y.k] = null);
1282
+ const _ = t;
1283
+ y(u, _.k) && (u.value = null), _.k && (c[_.k] = null);
1284
1284
  }
1285
1285
  }
1286
1286
  if (ce(a)) {
@@ -1291,20 +1291,20 @@ function En(e, t, n, i, o = !1) {
1291
1291
  Mt();
1292
1292
  }
1293
1293
  } else {
1294
- const y = we(a), b = /* @__PURE__ */ Ie(a);
1295
- if (y || b) {
1294
+ const _ = we(a), b = /* @__PURE__ */ Ie(a);
1295
+ if (_ || b) {
1296
1296
  const O = () => {
1297
1297
  if (e.f) {
1298
- const M = y ? v(a) ? f[a] : c[a] : _(a) || !e.k ? a.value : c[e.k];
1298
+ const M = _ ? v(a) ? f[a] : c[a] : y(a) || !e.k ? a.value : c[e.k];
1299
1299
  if (o) Z(M) && ms(M, s);
1300
1300
  else if (Z(M)) M.includes(s) || M.push(s);
1301
- else if (y)
1301
+ else if (_)
1302
1302
  c[a] = [s], v(a) && (f[a] = c[a]);
1303
1303
  else {
1304
1304
  const V = [s];
1305
- _(a, e.k) && (a.value = V), e.k && (c[e.k] = V);
1305
+ y(a, e.k) && (a.value = V), e.k && (c[e.k] = V);
1306
1306
  }
1307
- } else y ? (c[a] = r, v(a) && (f[a] = r)) : b && (_(a, e.k) && (a.value = r), e.k && (c[e.k] = r));
1307
+ } else _ ? (c[a] = r, v(a) && (f[a] = r)) : b && (y(a, e.k) && (a.value = r), e.k && (c[e.k] = r));
1308
1308
  };
1309
1309
  if (r) {
1310
1310
  const M = () => {
@@ -1320,7 +1320,7 @@ function Co(e) {
1320
1320
  const t = Gn.get(e);
1321
1321
  t && (t.flags |= 8, Gn.delete(e));
1322
1322
  }
1323
- var Zh = ui().requestIdleCallback || ((e) => setTimeout(e, 1)), Qh = ui().cancelIdleCallback || ((e) => clearTimeout(e)), nn = (e) => !!e.type.__asyncLoader, la = (e) => e.type.__isKeepAlive;
1323
+ var Zh = ui().requestIdleCallback || ((e) => setTimeout(e, 1)), Qh = ui().cancelIdleCallback || ((e) => clearTimeout(e)), on = (e) => !!e.type.__asyncLoader, la = (e) => e.type.__isKeepAlive;
1324
1324
  function aa(e, t, n = Ge, i = !1) {
1325
1325
  if (n) {
1326
1326
  const o = n[e] || (n[e] = []), s = t.__weh || (t.__weh = (...r) => {
@@ -1341,7 +1341,7 @@ function In(e, t, n, i) {
1341
1341
  const l = r && /* @__PURE__ */ Kt(e);
1342
1342
  let a = !1, u = !1;
1343
1343
  l && (a = !/* @__PURE__ */ Je(e), u = /* @__PURE__ */ It(e), e = di(e)), o = new Array(e.length);
1344
- for (let c = 0, f = e.length; c < f; c++) o[c] = t(a ? u ? sn(at(e[c])) : at(e[c]) : e[c], c, void 0, s && s[c]);
1344
+ for (let c = 0, f = e.length; c < f; c++) o[c] = t(a ? u ? rn(at(e[c])) : at(e[c]) : e[c], c, void 0, s && s[c]);
1345
1345
  } else if (typeof e == "number") {
1346
1346
  o = new Array(e);
1347
1347
  for (let l = 0; l < e; l++) o[l] = t(l + 1, l, void 0, s && s[l]);
@@ -1369,7 +1369,7 @@ function Xn(e, t) {
1369
1369
  return e;
1370
1370
  }
1371
1371
  function ne(e, t, n = {}, i, o) {
1372
- if (je.ce || je.parent && nn(je.parent) && je.parent.ce) {
1372
+ if (je.ce || je.parent && on(je.parent) && je.parent.ce) {
1373
1373
  const u = Object.keys(n).length > 0;
1374
1374
  return t !== "default" && (n.name = t), D(), yt(fe, null, [Pe("slot", n, i && i())], u ? -2 : 64);
1375
1375
  }
@@ -1521,19 +1521,19 @@ function pa(e, t) {
1521
1521
  return s.provides[c] = f, u;
1522
1522
  },
1523
1523
  runWithContext(c) {
1524
- const f = on;
1525
- on = u;
1524
+ const f = sn;
1525
+ sn = u;
1526
1526
  try {
1527
1527
  return c();
1528
1528
  } finally {
1529
- on = f;
1529
+ sn = f;
1530
1530
  }
1531
1531
  }
1532
1532
  };
1533
1533
  return u;
1534
1534
  };
1535
1535
  }
1536
- var on = null, va = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${rt(t)}Modifiers`] || e[`${Gt(t)}Modifiers`];
1536
+ var sn = null, va = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${rt(t)}Modifiers`] || e[`${Gt(t)}Modifiers`];
1537
1537
  function ga(e, t, ...n) {
1538
1538
  if (e.isUnmounted) return;
1539
1539
  const i = e.vnode.props || me;
@@ -1560,12 +1560,12 @@ function vi(e, t) {
1560
1560
  return !e || !si(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), ue(e, t[0].toLowerCase() + t.slice(1)) || ue(e, Gt(t)) || ue(e, t));
1561
1561
  }
1562
1562
  function xi(e) {
1563
- const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [s], slots: r, attrs: l, emit: a, render: u, renderCache: c, props: f, data: p, setupState: v, ctx: _, inheritAttrs: y } = e, b = Yn(e);
1563
+ const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [s], slots: r, attrs: l, emit: a, render: u, renderCache: c, props: f, data: p, setupState: v, ctx: y, inheritAttrs: _ } = e, b = Yn(e);
1564
1564
  let O, M;
1565
1565
  try {
1566
1566
  if (n.shapeFlag & 4) {
1567
1567
  const S = o || i, z = S;
1568
- O = gt(u.call(z, S, c, f, v, p, _)), M = l;
1568
+ O = gt(u.call(z, S, c, f, v, p, y)), M = l;
1569
1569
  } else {
1570
1570
  const S = t;
1571
1571
  O = gt(S.length > 1 ? S(f, {
@@ -1578,11 +1578,11 @@ function xi(e) {
1578
1578
  xn.length = 0, hi(S, e, 1), O = Pe(At);
1579
1579
  }
1580
1580
  let V = O;
1581
- if (M && y !== !1) {
1581
+ if (M && _ !== !1) {
1582
1582
  const S = Object.keys(M), { shapeFlag: z } = V;
1583
- S.length && z & 7 && (s && S.some(ri) && (M = ya(M, s)), V = rn(V, M, !1, !0));
1583
+ S.length && z & 7 && (s && S.some(ri) && (M = ya(M, s)), V = ln(V, M, !1, !0));
1584
1584
  }
1585
- return n.dirs && (V = rn(V, null, !1, !0), V.dirs = V.dirs ? V.dirs.concat(n.dirs) : n.dirs), n.transition && no(V, n.transition), O = V, Yn(b), O;
1585
+ return n.dirs && (V = ln(V, null, !1, !0), V.dirs = V.dirs ? V.dirs.concat(n.dirs) : n.dirs), n.transition && no(V, n.transition), O = V, Yn(b), O;
1586
1586
  }
1587
1587
  var _a = (e) => {
1588
1588
  let t;
@@ -1622,7 +1622,7 @@ function xo(e, t, n) {
1622
1622
  }
1623
1623
  function nr(e, t, n) {
1624
1624
  const i = e[n], o = t[n];
1625
- return n === "style" && pe(i) && pe(o) ? !Nn(i, o) : i !== o;
1625
+ return n === "style" && pe(i) && pe(o) ? !Ln(i, o) : i !== o;
1626
1626
  }
1627
1627
  function Sa({ vnode: e, parent: t, suspense: n }, i) {
1628
1628
  for (; t; ) {
@@ -1653,8 +1653,8 @@ function Ea(e, t, n, i) {
1653
1653
  if (a) if (ue(s, p))
1654
1654
  v !== s[p] && (s[p] = v, u = !0);
1655
1655
  else {
1656
- const _ = rt(p);
1657
- o[_] = zi(a, l, _, v, e, !1);
1656
+ const y = rt(p);
1657
+ o[y] = zi(a, l, y, v, e, !1);
1658
1658
  }
1659
1659
  else v !== s[p] && (s[p] = v, u = !0);
1660
1660
  }
@@ -1711,7 +1711,7 @@ function Ta(e, t, n = !1) {
1711
1711
  if (o) return o;
1712
1712
  const s = e.props, r = {}, l = [];
1713
1713
  if (!s)
1714
- return pe(e) && i.set(e, Qt), Qt;
1714
+ return pe(e) && i.set(e, en), en;
1715
1715
  if (Z(s)) for (let u = 0; u < s.length; u++) {
1716
1716
  const c = rt(s[u]);
1717
1717
  Oo(c) && (r[c] = me);
@@ -1720,16 +1720,16 @@ function Ta(e, t, n = !1) {
1720
1720
  const c = rt(u);
1721
1721
  if (Oo(c)) {
1722
1722
  const f = s[u], p = r[c] = Z(f) || ce(f) ? { type: f } : Ze({}, f), v = p.type;
1723
- let _ = !1, y = !0;
1723
+ let y = !1, _ = !0;
1724
1724
  if (Z(v)) for (let b = 0; b < v.length; ++b) {
1725
1725
  const O = v[b], M = ce(O) && O.name;
1726
1726
  if (M === "Boolean") {
1727
- _ = !0;
1727
+ y = !0;
1728
1728
  break;
1729
- } else M === "String" && (y = !1);
1729
+ } else M === "String" && (_ = !1);
1730
1730
  }
1731
- else _ = ce(v) && v.name === "Boolean";
1732
- p[0] = _, p[1] = y, (_ || ue(p, "default")) && l.push(c);
1731
+ else y = ce(v) && v.name === "Boolean";
1732
+ p[0] = y, p[1] = _, (y || ue(p, "default")) && l.push(c);
1733
1733
  }
1734
1734
  }
1735
1735
  const a = [r, l];
@@ -1780,10 +1780,10 @@ function Pa(e) {
1780
1780
  function Ma(e, t) {
1781
1781
  const n = ui();
1782
1782
  n.__VUE__ = !0;
1783
- const { insert: i, remove: o, patchProp: s, createElement: r, createText: l, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: v = Ft, insertStaticContent: _ } = e, y = (d, h, g, x = null, w = null, E = null, R = void 0, A = null, P = !!h.dynamicChildren) => {
1783
+ const { insert: i, remove: o, patchProp: s, createElement: r, createText: l, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: v = Ft, insertStaticContent: y } = e, _ = (d, h, g, x = null, w = null, E = null, R = void 0, A = null, P = !!h.dynamicChildren) => {
1784
1784
  if (d === h) return;
1785
- d && !pn(d, h) && (x = Ue(d), Re(d, w, E, !0), d = null), h.patchFlag === -2 && (P = !1, h.dynamicChildren = null);
1786
- const { type: T, ref: F, shapeFlag: N } = h;
1785
+ d && !vn(d, h) && (x = Ue(d), Re(d, w, E, !0), d = null), h.patchFlag === -2 && (P = !1, h.dynamicChildren = null);
1786
+ const { type: T, ref: F, shapeFlag: L } = h;
1787
1787
  switch (T) {
1788
1788
  case gi:
1789
1789
  b(d, h, g, x);
@@ -1798,7 +1798,7 @@ function Ma(e, t) {
1798
1798
  Te(d, h, g, x, w, E, R, A, P);
1799
1799
  break;
1800
1800
  default:
1801
- N & 1 ? z(d, h, g, x, w, E, R, A, P) : N & 6 ? $(d, h, g, x, w, E, R, A, P) : (N & 64 || N & 128) && T.process(d, h, g, x, w, E, R, A, P, ye);
1801
+ L & 1 ? z(d, h, g, x, w, E, R, A, P) : L & 6 ? $(d, h, g, x, w, E, R, A, P) : (L & 64 || L & 128) && T.process(d, h, g, x, w, E, R, A, P, ye);
1802
1802
  }
1803
1803
  F != null && w ? En(F, d && d.ref, E, h || d, !h) : F == null && d && d.ref != null && En(d.ref, null, E, d, !0);
1804
1804
  }, b = (d, h, g, x) => {
@@ -1810,7 +1810,7 @@ function Ma(e, t) {
1810
1810
  }, O = (d, h, g, x) => {
1811
1811
  d == null ? i(h.el = a(h.children || ""), g, x) : h.el = d.el;
1812
1812
  }, M = (d, h, g, x) => {
1813
- [d.el, d.anchor] = _(d.children, h, g, x, d.el, d.anchor);
1813
+ [d.el, d.anchor] = y(d.children, h, g, x, d.el, d.anchor);
1814
1814
  }, V = ({ el: d, anchor: h }, g, x) => {
1815
1815
  let w;
1816
1816
  for (; d && d !== h; )
@@ -1833,8 +1833,8 @@ function Ma(e, t) {
1833
1833
  }
1834
1834
  }, q = (d, h, g, x, w, E, R, A) => {
1835
1835
  let P, T;
1836
- const { props: F, shapeFlag: N, transition: B, dirs: U } = d;
1837
- if (P = d.el = r(d.type, E, F && F.is, F), N & 8 ? c(P, d.children) : N & 16 && W(d.children, P, null, x, w, Oi(d, E), R, A), U && Wt(d, null, x, "created"), I(P, d, d.scopeId, R, x), F) {
1836
+ const { props: F, shapeFlag: L, transition: B, dirs: U } = d;
1837
+ if (P = d.el = r(d.type, E, F && F.is, F), L & 8 ? c(P, d.children) : L & 16 && W(d.children, P, null, x, w, Oi(d, E), R, A), U && Wt(d, null, x, "created"), I(P, d, d.scopeId, R, x), F) {
1838
1838
  for (const se in F) se !== "value" && !bn(se) && s(P, se, null, F[se], E, x);
1839
1839
  "value" in F && s(P, "value", null, F.value, E), (T = F.onVnodeBeforeMount) && ht(T, x, d);
1840
1840
  }
@@ -1855,32 +1855,32 @@ function Ma(e, t) {
1855
1855
  }, W = (d, h, g, x, w, E, R, A, P = 0) => {
1856
1856
  for (let T = P; T < d.length; T++) {
1857
1857
  const F = d[T] = A ? Ct(d[T]) : gt(d[T]);
1858
- y(null, F, h, g, x, w, E, R, A);
1858
+ _(null, F, h, g, x, w, E, R, A);
1859
1859
  }
1860
1860
  }, H = (d, h, g, x, w, E, R) => {
1861
1861
  const A = h.el = d.el;
1862
1862
  let { patchFlag: P, dynamicChildren: T, dirs: F } = h;
1863
1863
  P |= d.patchFlag & 16;
1864
- const N = d.props || me, B = h.props || me;
1864
+ const L = d.props || me, B = h.props || me;
1865
1865
  let U;
1866
- if (g && Ht(g, !1), (U = B.onVnodeBeforeUpdate) && ht(U, g, h, d), F && Wt(h, d, g, "beforeUpdate"), g && Ht(g, !0), T && (!d.dynamicChildren || d.dynamicChildren.length !== T.length) && (P = 0, R = !1, T = null), (N.innerHTML && B.innerHTML == null || N.textContent && B.textContent == null) && c(A, ""), T ? X(d.dynamicChildren, T, A, g, x, Oi(h, w), E) : R || De(d, h, A, null, g, x, Oi(h, w), E, !1), P > 0) {
1867
- if (P & 16) te(A, N, B, g, w);
1868
- else if (P & 2 && N.class !== B.class && s(A, "class", null, B.class, w), P & 4 && s(A, "style", N.style, B.style, w), P & 8) {
1866
+ if (g && Ht(g, !1), (U = B.onVnodeBeforeUpdate) && ht(U, g, h, d), F && Wt(h, d, g, "beforeUpdate"), g && Ht(g, !0), T && (!d.dynamicChildren || d.dynamicChildren.length !== T.length) && (P = 0, R = !1, T = null), (L.innerHTML && B.innerHTML == null || L.textContent && B.textContent == null) && c(A, ""), T ? X(d.dynamicChildren, T, A, g, x, Oi(h, w), E) : R || De(d, h, A, null, g, x, Oi(h, w), E, !1), P > 0) {
1867
+ if (P & 16) te(A, L, B, g, w);
1868
+ else if (P & 2 && L.class !== B.class && s(A, "class", null, B.class, w), P & 4 && s(A, "style", L.style, B.style, w), P & 8) {
1869
1869
  const Q = h.dynamicProps;
1870
1870
  for (let se = 0; se < Q.length; se++) {
1871
- const ee = Q[se], he = N[ee], ve = B[ee];
1871
+ const ee = Q[se], he = L[ee], ve = B[ee];
1872
1872
  (ve !== he || ee === "value") && s(A, ee, he, ve, w, g);
1873
1873
  }
1874
1874
  }
1875
1875
  P & 1 && d.children !== h.children && c(A, h.children);
1876
- } else !R && T == null && te(A, N, B, g, w);
1876
+ } else !R && T == null && te(A, L, B, g, w);
1877
1877
  ((U = B.onVnodeUpdated) || F) && He(() => {
1878
1878
  U && ht(U, g, h, d), F && Wt(h, d, g, "updated");
1879
1879
  }, x);
1880
1880
  }, X = (d, h, g, x, w, E, R) => {
1881
1881
  for (let A = 0; A < h.length; A++) {
1882
- const P = d[A], T = h[A], F = P.el && (P.type === fe || !pn(P, T) || P.shapeFlag & 198) ? f(P.el) : g;
1883
- y(P, T, F, null, x, w, E, R, !0);
1882
+ const P = d[A], T = h[A], F = P.el && (P.type === fe || !vn(P, T) || P.shapeFlag & 198) ? f(P.el) : g;
1883
+ _(P, T, F, null, x, w, E, R, !0);
1884
1884
  }
1885
1885
  }, te = (d, h, g, x, w) => {
1886
1886
  if (h !== g) {
@@ -1895,8 +1895,8 @@ function Ma(e, t) {
1895
1895
  }
1896
1896
  }, Te = (d, h, g, x, w, E, R, A, P) => {
1897
1897
  const T = h.el = d ? d.el : l(""), F = h.anchor = d ? d.anchor : l("");
1898
- let { patchFlag: N, dynamicChildren: B, slotScopeIds: U } = h;
1899
- U && (A = A ? A.concat(U) : U), d == null ? (i(T, g, x), i(F, g, x), W(h.children || [], g, F, w, E, R, A, P)) : N > 0 && N & 64 && B && d.dynamicChildren && d.dynamicChildren.length === B.length ? (X(d.dynamicChildren, B, g, w, E, R, A), (h.key != null || w && h === w.subTree) && so(d, h, !0)) : De(d, h, g, F, w, E, R, A, P);
1898
+ let { patchFlag: L, dynamicChildren: B, slotScopeIds: U } = h;
1899
+ U && (A = A ? A.concat(U) : U), d == null ? (i(T, g, x), i(F, g, x), W(h.children || [], g, F, w, E, R, A, P)) : L > 0 && L & 64 && B && d.dynamicChildren && d.dynamicChildren.length === B.length ? (X(d.dynamicChildren, B, g, w, E, R, A), (h.key != null || w && h === w.subTree) && so(d, h, !0)) : De(d, h, g, F, w, E, R, A, P);
1900
1900
  }, $ = (d, h, g, x, w, E, R, A, P) => {
1901
1901
  h.slotScopeIds = A, d == null ? h.shapeFlag & 512 ? w.ctx.activate(h, g, x, R, P) : J(h, g, x, w, E, R, P) : le(d, h, P);
1902
1902
  }, J = (d, h, g, x, w, E, R) => {
@@ -1919,11 +1919,11 @@ function Ma(e, t) {
1919
1919
  }, G = (d, h, g, x, w, E, R) => {
1920
1920
  const A = () => {
1921
1921
  if (d.isMounted) {
1922
- let { next: N, bu: B, u: U, parent: Q, vnode: se } = d;
1922
+ let { next: L, bu: B, u: U, parent: Q, vnode: se } = d;
1923
1923
  {
1924
1924
  const Oe = ur(d);
1925
1925
  if (Oe) {
1926
- N && (N.el = se.el, ie(d, N, R)), Oe.asyncDep.then(() => {
1926
+ L && (L.el = se.el, ie(d, L, R)), Oe.asyncDep.then(() => {
1927
1927
  He(() => {
1928
1928
  d.isUnmounted || T();
1929
1929
  }, w);
@@ -1931,14 +1931,14 @@ function Ma(e, t) {
1931
1931
  return;
1932
1932
  }
1933
1933
  }
1934
- let ee = N, he;
1935
- Ht(d, !1), N ? (N.el = se.el, ie(d, N, R)) : N = se, B && Vn(B), (he = N.props && N.props.onVnodeBeforeUpdate) && ht(he, Q, N, se), Ht(d, !0);
1934
+ let ee = L, he;
1935
+ Ht(d, !1), L ? (L.el = se.el, ie(d, L, R)) : L = se, B && Vn(B), (he = L.props && L.props.onVnodeBeforeUpdate) && ht(he, Q, L, se), Ht(d, !0);
1936
1936
  const ve = xi(d), Fe = d.subTree;
1937
- d.subTree = ve, y(Fe, ve, f(Fe.el), Ue(Fe), d, w, E), N.el = ve.el, ee === null && Sa(d, ve.el), U && He(U, w), (he = N.props && N.props.onVnodeUpdated) && He(() => ht(he, Q, N, se), w);
1937
+ d.subTree = ve, _(Fe, ve, f(Fe.el), Ue(Fe), d, w, E), L.el = ve.el, ee === null && Sa(d, ve.el), U && He(U, w), (he = L.props && L.props.onVnodeUpdated) && He(() => ht(he, Q, L, se), w);
1938
1938
  } else {
1939
- let N;
1940
- const { el: B, props: U } = h, { bm: Q, m: se, parent: ee, root: he, type: ve } = d, Fe = nn(h);
1941
- if (Ht(d, !1), Q && Vn(Q), !Fe && (N = U && U.onVnodeBeforeMount) && ht(N, ee, h), Ht(d, !0), B && it) {
1939
+ let L;
1940
+ const { el: B, props: U } = h, { bm: Q, m: se, parent: ee, root: he, type: ve } = d, Fe = on(h);
1941
+ if (Ht(d, !1), Q && Vn(Q), !Fe && (L = U && U.onVnodeBeforeMount) && ht(L, ee, h), Ht(d, !0), B && it) {
1942
1942
  const Oe = () => {
1943
1943
  d.subTree = xi(d), it(B, d.subTree, d, w, null);
1944
1944
  };
@@ -1946,13 +1946,13 @@ function Ma(e, t) {
1946
1946
  } else {
1947
1947
  he.ce && he.ce._hasShadowRoot() && he.ce._injectChildStyle(ve, d.parent ? d.parent.type : void 0);
1948
1948
  const Oe = d.subTree = xi(d);
1949
- y(null, Oe, g, x, d, w, E), h.el = Oe.el;
1949
+ _(null, Oe, g, x, d, w, E), h.el = Oe.el;
1950
1950
  }
1951
- if (se && He(se, w), !Fe && (N = U && U.onVnodeMounted)) {
1951
+ if (se && He(se, w), !Fe && (L = U && U.onVnodeMounted)) {
1952
1952
  const Oe = h;
1953
- He(() => ht(N, ee, Oe), w);
1953
+ He(() => ht(L, ee, Oe), w);
1954
1954
  }
1955
- (h.shapeFlag & 256 || ee && nn(ee.vnode) && ee.vnode.shapeFlag & 256) && d.a && He(d.a, w), d.isMounted = !0, h = g = x = null;
1955
+ (h.shapeFlag & 256 || ee && on(ee.vnode) && ee.vnode.shapeFlag & 256) && d.a && He(d.a, w), d.isMounted = !0, h = g = x = null;
1956
1956
  }
1957
1957
  };
1958
1958
  d.scope.on();
@@ -1965,49 +1965,49 @@ function Ma(e, t) {
1965
1965
  const x = d.vnode.props;
1966
1966
  d.vnode = h, d.next = null, Ea(d, h.props, x, g), Oa(d, h.children, g), Pt(), So(d), Mt();
1967
1967
  }, De = (d, h, g, x, w, E, R, A, P = !1) => {
1968
- const T = d && d.children, F = d ? d.shapeFlag : 0, N = h.children, { patchFlag: B, shapeFlag: U } = h;
1968
+ const T = d && d.children, F = d ? d.shapeFlag : 0, L = h.children, { patchFlag: B, shapeFlag: U } = h;
1969
1969
  if (B > 0) {
1970
1970
  if (B & 128) {
1971
- We(T, N, g, x, w, E, R, A, P);
1971
+ We(T, L, g, x, w, E, R, A, P);
1972
1972
  return;
1973
1973
  } else if (B & 256) {
1974
- Ke(T, N, g, x, w, E, R, A, P);
1974
+ Ke(T, L, g, x, w, E, R, A, P);
1975
1975
  return;
1976
1976
  }
1977
1977
  }
1978
- U & 8 ? (F & 16 && Ye(T, w, E), N !== T && c(g, N)) : F & 16 ? U & 16 ? We(T, N, g, x, w, E, R, A, P) : Ye(T, w, E, !0) : (F & 8 && c(g, ""), U & 16 && W(N, g, x, w, E, R, A, P));
1978
+ U & 8 ? (F & 16 && Ye(T, w, E), L !== T && c(g, L)) : F & 16 ? U & 16 ? We(T, L, g, x, w, E, R, A, P) : Ye(T, w, E, !0) : (F & 8 && c(g, ""), U & 16 && W(L, g, x, w, E, R, A, P));
1979
1979
  }, Ke = (d, h, g, x, w, E, R, A, P) => {
1980
- d = d || Qt, h = h || Qt;
1981
- const T = d.length, F = h.length, N = Math.min(T, F);
1980
+ d = d || en, h = h || en;
1981
+ const T = d.length, F = h.length, L = Math.min(T, F);
1982
1982
  let B;
1983
- for (B = 0; B < N; B++) {
1983
+ for (B = 0; B < L; B++) {
1984
1984
  const U = h[B] = P ? Ct(h[B]) : gt(h[B]);
1985
- y(d[B], U, g, null, w, E, R, A, P);
1985
+ _(d[B], U, g, null, w, E, R, A, P);
1986
1986
  }
1987
- T > F ? Ye(d, w, E, !0, !1, N) : W(h, g, x, w, E, R, A, P, N);
1987
+ T > F ? Ye(d, w, E, !0, !1, L) : W(h, g, x, w, E, R, A, P, L);
1988
1988
  }, We = (d, h, g, x, w, E, R, A, P) => {
1989
1989
  let T = 0;
1990
1990
  const F = h.length;
1991
- let N = d.length - 1, B = F - 1;
1992
- for (; T <= N && T <= B; ) {
1991
+ let L = d.length - 1, B = F - 1;
1992
+ for (; T <= L && T <= B; ) {
1993
1993
  const U = d[T], Q = h[T] = P ? Ct(h[T]) : gt(h[T]);
1994
- if (pn(U, Q)) y(U, Q, g, null, w, E, R, A, P);
1994
+ if (vn(U, Q)) _(U, Q, g, null, w, E, R, A, P);
1995
1995
  else break;
1996
1996
  T++;
1997
1997
  }
1998
- for (; T <= N && T <= B; ) {
1999
- const U = d[N], Q = h[B] = P ? Ct(h[B]) : gt(h[B]);
2000
- if (pn(U, Q)) y(U, Q, g, null, w, E, R, A, P);
1998
+ for (; T <= L && T <= B; ) {
1999
+ const U = d[L], Q = h[B] = P ? Ct(h[B]) : gt(h[B]);
2000
+ if (vn(U, Q)) _(U, Q, g, null, w, E, R, A, P);
2001
2001
  else break;
2002
- N--, B--;
2002
+ L--, B--;
2003
2003
  }
2004
- if (T > N) {
2004
+ if (T > L) {
2005
2005
  if (T <= B) {
2006
2006
  const U = B + 1, Q = U < F ? h[U].el : x;
2007
2007
  for (; T <= B; )
2008
- y(null, h[T] = P ? Ct(h[T]) : gt(h[T]), g, Q, w, E, R, A, P), T++;
2008
+ _(null, h[T] = P ? Ct(h[T]) : gt(h[T]), g, Q, w, E, R, A, P), T++;
2009
2009
  }
2010
- } else if (T > B) for (; T <= N; )
2010
+ } else if (T > B) for (; T <= L; )
2011
2011
  Re(d[T], w, E, !0), T++;
2012
2012
  else {
2013
2013
  const U = T, Q = T, se = /* @__PURE__ */ new Map();
@@ -2020,7 +2020,7 @@ function Ma(e, t) {
2020
2020
  let Fe = !1, Oe = 0;
2021
2021
  const dt = new Array(ve);
2022
2022
  for (T = 0; T < ve; T++) dt[T] = 0;
2023
- for (T = U; T <= N; T++) {
2023
+ for (T = U; T <= L; T++) {
2024
2024
  const Y = d[T];
2025
2025
  if (he >= ve) {
2026
2026
  Re(Y, w, E, !0);
@@ -2028,16 +2028,16 @@ function Ma(e, t) {
2028
2028
  }
2029
2029
  let _e;
2030
2030
  if (Y.key != null) _e = se.get(Y.key);
2031
- else for (ee = Q; ee <= B; ee++) if (dt[ee - Q] === 0 && pn(Y, h[ee])) {
2031
+ else for (ee = Q; ee <= B; ee++) if (dt[ee - Q] === 0 && vn(Y, h[ee])) {
2032
2032
  _e = ee;
2033
2033
  break;
2034
2034
  }
2035
- _e === void 0 ? Re(Y, w, E, !0) : (dt[_e - Q] = T + 1, _e >= Oe ? Oe = _e : Fe = !0, y(Y, h[_e], g, null, w, E, R, A, P), he++);
2035
+ _e === void 0 ? Re(Y, w, E, !0) : (dt[_e - Q] = T + 1, _e >= Oe ? Oe = _e : Fe = !0, _(Y, h[_e], g, null, w, E, R, A, P), he++);
2036
2036
  }
2037
- const k = Fe ? Aa(dt) : Qt;
2037
+ const k = Fe ? Aa(dt) : en;
2038
2038
  for (ee = k.length - 1, T = ve - 1; T >= 0; T--) {
2039
2039
  const Y = Q + T, _e = h[Y], Rt = h[Y + 1], Xt = Y + 1 < F ? Rt.el || dr(Rt) : x;
2040
- dt[T] === 0 ? y(null, _e, g, Xt, w, E, R, A, P) : Fe && (ee < 0 || T !== k[ee] ? ke(_e, g, Xt, 2) : ee--);
2040
+ dt[T] === 0 ? _(null, _e, g, Xt, w, E, R, A, P) : Fe && (ee < 0 || T !== k[ee] ? ke(_e, g, Xt, 2) : ee--);
2041
2041
  }
2042
2042
  }
2043
2043
  }, ke = (d, h, g, x, w = null) => {
@@ -2066,7 +2066,7 @@ function Ma(e, t) {
2066
2066
  }
2067
2067
  if (x !== 2 && T & 1 && A) if (x === 0) A.persisted && !E[Ti] ? i(E, h, g) : (A.beforeEnter(E), i(E, h, g), He(() => A.enter(E), w));
2068
2068
  else {
2069
- const { leave: F, delayLeave: N, afterLeave: B } = A, U = () => {
2069
+ const { leave: F, delayLeave: L, afterLeave: B } = A, U = () => {
2070
2070
  d.ctx.isUnmounted ? o(E) : i(E, h, g);
2071
2071
  }, Q = () => {
2072
2072
  const se = E._isLeaving || !!E[Ti];
@@ -2074,16 +2074,16 @@ function Ma(e, t) {
2074
2074
  U(), B && B();
2075
2075
  });
2076
2076
  };
2077
- N ? N(E, U, Q) : Q();
2077
+ L ? L(E, U, Q) : Q();
2078
2078
  }
2079
2079
  else i(E, h, g);
2080
2080
  }, Re = (d, h, g, x = !1, w = !1) => {
2081
- const { type: E, props: R, ref: A, children: P, dynamicChildren: T, shapeFlag: F, patchFlag: N, dirs: B, cacheIndex: U, memo: Q } = d;
2082
- if (N === -2 && (w = !1), A != null && (Pt(), En(A, null, g, d, !0), Mt()), U != null && (h.renderCache[U] = void 0), F & 256) {
2081
+ const { type: E, props: R, ref: A, children: P, dynamicChildren: T, shapeFlag: F, patchFlag: L, dirs: B, cacheIndex: U, memo: Q } = d;
2082
+ if (L === -2 && (w = !1), A != null && (Pt(), En(A, null, g, d, !0), Mt()), U != null && (h.renderCache[U] = void 0), F & 256) {
2083
2083
  h.ctx.deactivate(d);
2084
2084
  return;
2085
2085
  }
2086
- const se = F & 1 && B, ee = !nn(d);
2086
+ const se = F & 1 && B, ee = !on(d);
2087
2087
  let he;
2088
2088
  if (ee && (he = R && R.onVnodeBeforeUnmount) && ht(he, h, d), F & 6) ut(d.component, g, x);
2089
2089
  else {
@@ -2091,7 +2091,7 @@ function Ma(e, t) {
2091
2091
  d.suspense.unmount(g, x);
2092
2092
  return;
2093
2093
  }
2094
- se && Wt(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ye, x) : T && !T.hasOnce && (E !== fe || N > 0 && N & 64) ? Ye(T, h, g, !1, !0) : (E === fe && N & 384 || !w && F & 16) && Ye(P, h, g), x && ct(d);
2094
+ se && Wt(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ye, x) : T && !T.hasOnce && (E !== fe || L > 0 && L & 64) ? Ye(T, h, g, !1, !0) : (E === fe && L & 384 || !w && F & 16) && Ye(P, h, g), x && ct(d);
2095
2095
  }
2096
2096
  const ve = Q != null && U == null;
2097
2097
  (ee && (he = R && R.onVnodeUnmounted) || se || ve) && He(() => {
@@ -2135,9 +2135,9 @@ function Ma(e, t) {
2135
2135
  let xe = !1;
2136
2136
  const $e = (d, h, g) => {
2137
2137
  let x;
2138
- d == null ? h._vnode && (Re(h._vnode, null, null, !0), x = h._vnode.component) : y(h._vnode || null, d, h, null, null, null, g), h._vnode = d, xe || (xe = !0, So(x), Ks(), xe = !1);
2138
+ d == null ? h._vnode && (Re(h._vnode, null, null, !0), x = h._vnode.component) : _(h._vnode || null, d, h, null, null, null, g), h._vnode = d, xe || (xe = !0, So(x), Ks(), xe = !1);
2139
2139
  }, ye = {
2140
- p: y,
2140
+ p: _,
2141
2141
  um: Re,
2142
2142
  m: ke,
2143
2143
  r: ct,
@@ -2220,7 +2220,7 @@ function Mo(e, t = !1) {
2220
2220
  An += e, e < 0 && Xe && t && (Xe.hasOnce = !0);
2221
2221
  }
2222
2222
  function hr(e) {
2223
- return e.dynamicChildren = An > 0 ? Xe || Qt : null, Ra(), An > 0 && Xe && Xe.push(e), e;
2223
+ return e.dynamicChildren = An > 0 ? Xe || en : null, Ra(), An > 0 && Xe && Xe.push(e), e;
2224
2224
  }
2225
2225
  function j(e, t, n, i, o, s) {
2226
2226
  return hr(m(e, t, n, i, o, s, !0));
@@ -2231,7 +2231,7 @@ function yt(e, t, n, i, o) {
2231
2231
  function ro(e) {
2232
2232
  return e ? e.__v_isVNode === !0 : !1;
2233
2233
  }
2234
- function pn(e, t) {
2234
+ function vn(e, t) {
2235
2235
  return e.type === t.type && e.key === t.key;
2236
2236
  }
2237
2237
  var pr = ({ key: e }) => e ?? null, zn = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? we(e) || /* @__PURE__ */ Ie(e) || ce(e) ? {
@@ -2272,24 +2272,24 @@ function m(e, t = null, n = null, i = 0, o = null, s = e === fe ? 0 : 1, r = !1,
2272
2272
  };
2273
2273
  return l ? (Jn(a, n), s & 128 && e.normalize(a)) : n && (a.shapeFlag |= we(n) ? 8 : 16), An > 0 && !r && Xe && (a.patchFlag > 0 || s & 6) && a.patchFlag !== 32 && Xe.push(a), a;
2274
2274
  }
2275
- var Pe = La;
2276
- function La(e, t = null, n = null, i = 0, o = null, s = !1) {
2275
+ var Pe = Na;
2276
+ function Na(e, t = null, n = null, i = 0, o = null, s = !1) {
2277
2277
  if ((!e || e === ua) && (e = At), ro(e)) {
2278
- const l = rn(e, t, !0);
2278
+ const l = ln(e, t, !0);
2279
2279
  return n && Jn(l, n), An > 0 && !s && Xe && (l.shapeFlag & 6 ? Xe[Xe.indexOf(e)] = l : Xe.push(l)), l.patchFlag = -2, l;
2280
2280
  }
2281
2281
  if (Va(e) && (e = e.__vccOpts), t) {
2282
- t = Na(t);
2282
+ t = La(t);
2283
2283
  let { class: l, style: a } = t;
2284
2284
  l && !we(l) && (t.class = Me(l)), pe(a) && (/* @__PURE__ */ fi(a) && !Z(a) && (a = Ze({}, a)), t.style = Yt(a));
2285
2285
  }
2286
2286
  const r = we(e) ? 1 : fr(e) ? 128 : na(e) ? 64 : pe(e) ? 4 : ce(e) ? 2 : 0;
2287
2287
  return m(e, t, n, i, o, r, s, !0);
2288
2288
  }
2289
- function Na(e) {
2289
+ function La(e) {
2290
2290
  return e ? /* @__PURE__ */ fi(e) || sr(e) ? Ze({}, e) : e : null;
2291
2291
  }
2292
- function rn(e, t, n = !1, i = !1) {
2292
+ function ln(e, t, n = !1, i = !1) {
2293
2293
  const { props: o, ref: s, patchFlag: r, children: l, transition: a } = e, u = t ? Da(o || {}, t) : o, c = {
2294
2294
  __v_isVNode: !0,
2295
2295
  __v_skip: !0,
@@ -2313,8 +2313,8 @@ function rn(e, t, n = !1, i = !1) {
2313
2313
  transition: a,
2314
2314
  component: e.component,
2315
2315
  suspense: e.suspense,
2316
- ssContent: e.ssContent && rn(e.ssContent),
2317
- ssFallback: e.ssFallback && rn(e.ssFallback),
2316
+ ssContent: e.ssContent && ln(e.ssContent),
2317
+ ssFallback: e.ssFallback && ln(e.ssFallback),
2318
2318
  placeholder: e.placeholder,
2319
2319
  el: e.el,
2320
2320
  anchor: e.anchor,
@@ -2337,7 +2337,7 @@ function gt(e) {
2337
2337
  return e == null || typeof e == "boolean" ? Pe(At) : Z(e) ? Pe(fe, null, e.slice()) : ro(e) ? Ct(e) : Pe(gi, null, String(e));
2338
2338
  }
2339
2339
  function Ct(e) {
2340
- return e.el === null && e.patchFlag !== -1 || e.memo ? e : rn(e);
2340
+ return e.el === null && e.patchFlag !== -1 || e.memo ? e : ln(e);
2341
2341
  }
2342
2342
  function Jn(e, t) {
2343
2343
  let n = 0;
@@ -2487,7 +2487,7 @@ function Wa(e, t) {
2487
2487
  if (i) {
2488
2488
  Pt();
2489
2489
  const o = e.setupContext = i.length > 1 ? mr(e) : null, s = co(e), r = Dn(i, e, 0, [e.props, o]), l = _s(r);
2490
- if (Mt(), s(), (l || e.sp) && !nn(e) && ra(e), l) {
2490
+ if (Mt(), s(), (l || e.sp) && !on(e) && ra(e), l) {
2491
2491
  if (r.then(Ao, Ao), t) return r.then((a) => {
2492
2492
  ko(e, a, t);
2493
2493
  }).catch((a) => {
@@ -2500,7 +2500,7 @@ function Wa(e, t) {
2500
2500
  function ko(e, t, n) {
2501
2501
  ce(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : pe(t) && (e.setupState = Vs(t)), gr(e, n);
2502
2502
  }
2503
- var Ro, Lo;
2503
+ var Ro, No;
2504
2504
  function gr(e, t, n) {
2505
2505
  const i = e.type;
2506
2506
  if (!e.render) {
@@ -2514,7 +2514,7 @@ function gr(e, t, n) {
2514
2514
  i.render = Ro(o, u);
2515
2515
  }
2516
2516
  }
2517
- e.render = i.render || Ft, Lo && Lo(e);
2517
+ e.render = i.render || Ft, No && No(e);
2518
2518
  }
2519
2519
  }
2520
2520
  var Ha = { get(e, t) {
@@ -2545,9 +2545,9 @@ function mi(e) {
2545
2545
  function Va(e) {
2546
2546
  return ce(e) && "__vccOpts" in e;
2547
2547
  }
2548
- var K = (e, t) => /* @__PURE__ */ Kl(e, t, kn), za = "3.5.39", Ui = void 0, No = typeof window < "u" && window.trustedTypes;
2549
- if (No) try {
2550
- Ui = /* @__PURE__ */ No.createPolicy("vue", { createHTML: (e) => e });
2548
+ var K = (e, t) => /* @__PURE__ */ Kl(e, t, kn), za = "3.5.39", Ui = void 0, Lo = typeof window < "u" && window.trustedTypes;
2549
+ if (Lo) try {
2550
+ Ui = /* @__PURE__ */ Lo.createPolicy("vue", { createHTML: (e) => e });
2551
2551
  } catch {
2552
2552
  }
2553
2553
  var _r = Ui ? (e) => Ui.createHTML(e) : (e) => e, qa = "http://www.w3.org/2000/svg", Ua = "http://www.w3.org/1998/Math/MathML", Tt = typeof document < "u" ? document : null, Do = Tt && /* @__PURE__ */ Tt.createElement("template"), Ka = {
@@ -2600,21 +2600,21 @@ function Ga(e, t, n) {
2600
2600
  var Qn = /* @__PURE__ */ Symbol("_vod"), yr = /* @__PURE__ */ Symbol("_vsh"), $o = {
2601
2601
  name: "show",
2602
2602
  beforeMount(e, { value: t }, { transition: n }) {
2603
- e[Qn] = e.style.display === "none" ? "" : e.style.display, n && t ? n.beforeEnter(e) : vn(e, t);
2603
+ e[Qn] = e.style.display === "none" ? "" : e.style.display, n && t ? n.beforeEnter(e) : gn(e, t);
2604
2604
  },
2605
2605
  mounted(e, { value: t }, { transition: n }) {
2606
2606
  n && t && n.enter(e);
2607
2607
  },
2608
2608
  updated(e, { value: t, oldValue: n }, { transition: i }) {
2609
- !t != !n && (i ? t ? (i.beforeEnter(e), vn(e, !0), i.enter(e)) : i.leave(e, () => {
2610
- vn(e, !1);
2611
- }) : vn(e, t));
2609
+ !t != !n && (i ? t ? (i.beforeEnter(e), gn(e, !0), i.enter(e)) : i.leave(e, () => {
2610
+ gn(e, !1);
2611
+ }) : gn(e, t));
2612
2612
  },
2613
2613
  beforeUnmount(e, { value: t }) {
2614
- vn(e, t);
2614
+ gn(e, t);
2615
2615
  }
2616
2616
  };
2617
- function vn(e, t) {
2617
+ function gn(e, t) {
2618
2618
  e.style.display = t ? e[Qn] : "none", e[yr] = !t;
2619
2619
  }
2620
2620
  var br = /* @__PURE__ */ Symbol("");
@@ -2670,13 +2670,13 @@ function Ja(e, t, n) {
2670
2670
  if (t) if (we(t))
2671
2671
  for (const r of t.split(";")) {
2672
2672
  const l = r.slice(0, r.indexOf(":")).trim();
2673
- n[l] == null && _n(i, l, "");
2673
+ n[l] == null && yn(i, l, "");
2674
2674
  }
2675
- else for (const r in t) n[r] == null && _n(i, r, "");
2675
+ else for (const r in t) n[r] == null && yn(i, r, "");
2676
2676
  for (const r in n) {
2677
2677
  r === "display" && (s = !0);
2678
2678
  const l = n[r];
2679
- l != null ? Qa(e, r, !we(t) && t ? t[r] : void 0, l) || _n(i, r, l) : _n(i, r, "");
2679
+ l != null ? Qa(e, r, !we(t) && t ? t[r] : void 0, l) || yn(i, r, l) : yn(i, r, "");
2680
2680
  }
2681
2681
  } else if (o) {
2682
2682
  if (t !== n) {
@@ -2687,8 +2687,8 @@ function Ja(e, t, n) {
2687
2687
  Qn in e && (e[Qn] = s ? i.display : "", e[yr] && (i.display = "none"));
2688
2688
  }
2689
2689
  var Fo = /\s*!important$/;
2690
- function _n(e, t, n) {
2691
- if (Z(n)) n.forEach((i) => _n(e, t, i));
2690
+ function yn(e, t, n) {
2691
+ if (Z(n)) n.forEach((i) => yn(e, t, i));
2692
2692
  else if (n == null && (n = ""), t.startsWith("--")) e.setProperty(t, n);
2693
2693
  else {
2694
2694
  const i = Za(e, t);
@@ -2836,7 +2836,7 @@ function Uo(e, t) {
2836
2836
  const a = typeof l;
2837
2837
  a === "string" || a === "number" ? r.selected = t.some((u) => String(u) === String(l)) : r.selected = gl(t, l) > -1;
2838
2838
  } else r.selected = t.has(l);
2839
- else if (Nn(ti(r), t)) {
2839
+ else if (Ln(ti(r), t)) {
2840
2840
  e.selectedIndex !== o && (e.selectedIndex = o);
2841
2841
  return;
2842
2842
  }
@@ -2912,9 +2912,10 @@ var Ai = "/__opencode_sessions__", Xo = "/__opencode_events__", Jo = "__opencode
2912
2912
  THEME_CHANGE: "THEME_CHANGE",
2913
2913
  SERVICE_APPEARED: "SERVICE_APPEARED",
2914
2914
  SERVICE_GONE: "SERVICE_GONE"
2915
- }, yn = Cc(Tc({}, xc), {
2915
+ }, Qt = Cc(Tc({}, xc), {
2916
2916
  GET_PORT_INFO: "GET_PORT_INFO",
2917
2917
  TAB_SWITCHED: "TAB_SWITCHED",
2918
+ REQUEST_PAGE_CONTEXT: "REQUEST_PAGE_CONTEXT",
2918
2919
  SELECTION_START: "SELECTION_START",
2919
2920
  SELECTION_STOP: "SELECTION_STOP"
2920
2921
  }), Ee = {
@@ -2952,7 +2953,7 @@ var Or = /* @__PURE__ */ Symbol("OpenCodeWidgetContext");
2952
2953
  function Pc(e) {
2953
2954
  Zl(Or, e);
2954
2955
  }
2955
- function an() {
2956
+ function cn() {
2956
2957
  const e = Xs(Or);
2957
2958
  if (!e) throw new Error("useOpenCodeWidgetContext must be used within OpenCodeWidget");
2958
2959
  return e;
@@ -2970,10 +2971,10 @@ var Mc = Object.defineProperty, Qo = Object.getOwnPropertySymbols, Ic = Object.p
2970
2971
  }, Pr = /* @__PURE__ */ et({
2971
2972
  __name: "Frame",
2972
2973
  setup(e, { expose: t }) {
2973
- const n = /* @__PURE__ */ L(null), { frameLoading: i, showEmptyState: o, showError: s, iframeSource: r, emptyStateText: l, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = an();
2974
- function f(v, _) {
2975
- var y;
2976
- (y = n.value) != null && y.contentWindow && n.value.contentWindow.postMessage(kc({ type: v }, _), "*");
2974
+ const n = /* @__PURE__ */ N(null), { frameLoading: i, showEmptyState: o, showError: s, iframeSource: r, emptyStateText: l, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = cn();
2975
+ function f(v, y) {
2976
+ var _;
2977
+ (_ = n.value) != null && _.contentWindow && n.value.contentWindow.postMessage(kc({ type: v }, y), "*");
2977
2978
  }
2978
2979
  ze(() => {
2979
2980
  n.value && n.value.addEventListener("load", () => {
@@ -2997,7 +2998,7 @@ var Mc = Object.defineProperty, Qo = Object.getOwnPropertySymbols, Ic = Object.p
2997
2998
  value: !0
2998
2999
  }), p;
2999
3000
  }
3000
- }), Rc = { class: "opencode-iframe-container" }, Lc = { class: "opencode-empty-state-text" }, Nc = ["src"];
3001
+ }), Rc = { class: "opencode-iframe-container" }, Nc = { class: "opencode-empty-state-text" }, Lc = ["src"];
3001
3002
  function Dc(e, t, n, i, o, s) {
3002
3003
  return D(), j("div", Rc, [
3003
3004
  m("div", { class: Me(["opencode-empty-state-overlay", { visible: i.showEmptyState }]) }, [ne(e.$slots, "empty-state", {}, () => [
@@ -3014,7 +3015,7 @@ function Dc(e, t, n, i, o, s) {
3014
3015
  "stroke-linejoin": "round",
3015
3016
  d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 0 1-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
3016
3017
  })])], -1)),
3017
- m("div", Lc, Ce(i.emptyStateText), 1),
3018
+ m("div", Nc, Ce(i.emptyStateText), 1),
3018
3019
  m("button", {
3019
3020
  class: "opencode-empty-state-btn",
3020
3021
  type: "button",
@@ -3029,7 +3030,7 @@ function Dc(e, t, n, i, o, s) {
3029
3030
  src: i.iframeSrc,
3030
3031
  allow: "clipboard-write; clipboard-read",
3031
3032
  referrerpolicy: "origin"
3032
- }, null, 8, Nc)])
3033
+ }, null, 8, Lc)])
3033
3034
  ]);
3034
3035
  }
3035
3036
  Pr.render = Dc;
@@ -3037,7 +3038,7 @@ var $c = Pr, Mr = /* @__PURE__ */ et({
3037
3038
  __name: "Header",
3038
3039
  setup(e, { expose: t }) {
3039
3040
  t();
3040
- const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: s, selectEnabled: r, theme: l, resolvedTheme: a, minimized: u, promptDockVisible: c, mode: f, displayMode: p, splitPosition: v, handleToggleSessionList: _, handleToggleSelectMode: y, handleToggleTheme: b, handleToggleDisplayMode: O, handleToggleSplitPosition: M, handleClose: V, handleToggleMinimize: S, handleTogglePromptDock: z, handleRefresh: q } = an(), I = {
3041
+ const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: s, selectEnabled: r, theme: l, resolvedTheme: a, minimized: u, promptDockVisible: c, mode: f, displayMode: p, splitPosition: v, handleToggleSessionList: y, handleToggleSelectMode: _, handleToggleTheme: b, handleToggleDisplayMode: O, handleToggleSplitPosition: M, handleClose: V, handleToggleMinimize: S, handleTogglePromptDock: z, handleRefresh: q } = cn(), I = {
3041
3042
  title: n,
3042
3043
  sessionListTitle: i,
3043
3044
  sessionListCollapsed: o,
@@ -3050,8 +3051,8 @@ var $c = Pr, Mr = /* @__PURE__ */ et({
3050
3051
  mode: f,
3051
3052
  displayMode: p,
3052
3053
  splitPosition: v,
3053
- handleToggleSessionList: _,
3054
- handleToggleSelectMode: y,
3054
+ handleToggleSessionList: y,
3055
+ handleToggleSelectMode: _,
3055
3056
  handleToggleTheme: b,
3056
3057
  handleToggleDisplayMode: O,
3057
3058
  handleToggleSplitPosition: M,
@@ -3423,7 +3424,7 @@ var ru = Mr, Ir = /* @__PURE__ */ et({
3423
3424
  __name: "SessionList",
3424
3425
  setup(e, { expose: t }) {
3425
3426
  t();
3426
- const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: s, handleCreateSession: r, handleSelectSession: l, handleDeleteSession: a, sessionKey: u, sessionStates: c } = an(), f = /* @__PURE__ */ L(!1);
3427
+ const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: s, handleCreateSession: r, handleSelectSession: l, handleDeleteSession: a, sessionKey: u, sessionStates: c } = cn(), f = /* @__PURE__ */ N(!1);
3427
3428
  let p = null;
3428
3429
  Ae(n, () => {
3429
3430
  f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
@@ -3431,11 +3432,11 @@ var ru = Mr, Ir = /* @__PURE__ */ et({
3431
3432
  }, 200);
3432
3433
  });
3433
3434
  const v = K(() => !!(f.value || s.value));
3434
- function _(b) {
3435
+ function y(b) {
3435
3436
  var O, M;
3436
3437
  return !c?.value || !b ? !1 : (M = (O = c.value[b]) == null ? void 0 : O.thinking) != null ? M : !1;
3437
3438
  }
3438
- const y = {
3439
+ const _ = {
3439
3440
  collapsed: n,
3440
3441
  sessions: i,
3441
3442
  loadingSessionList: o,
@@ -3453,12 +3454,12 @@ var ru = Mr, Ir = /* @__PURE__ */ et({
3453
3454
  p = b;
3454
3455
  },
3455
3456
  showSkeleton: v,
3456
- isSessionThinking: _
3457
+ isSessionThinking: y
3457
3458
  };
3458
- return Object.defineProperty(y, "__isScriptSetup", {
3459
+ return Object.defineProperty(_, "__isScriptSetup", {
3459
3460
  enumerable: !1,
3460
3461
  value: !0
3461
- }), y;
3462
+ }), _;
3462
3463
  }
3463
3464
  }), lu = {
3464
3465
  key: 0,
@@ -3513,7 +3514,7 @@ var _u = Ir, Ar = /* @__PURE__ */ et({
3513
3514
  __name: "SelectedNodes",
3514
3515
  setup(e, { expose: t }) {
3515
3516
  t();
3516
- const { selectedElementItems: n, showClearAll: i, handleClickSelectedNode: o, handleRemoveSelectedNode: s, handleClearSelectedNodes: r } = an(), l = {
3517
+ const { selectedElementItems: n, showClearAll: i, handleClickSelectedNode: o, handleRemoveSelectedNode: s, handleClearSelectedNodes: r } = cn(), l = {
3517
3518
  items: n,
3518
3519
  showClearAll: i,
3519
3520
  handleClickSelectedNode: o,
@@ -3599,14 +3600,14 @@ var xu = Ar, Ou = Object.defineProperty, Pu = Object.defineProperties, Mu = Obje
3599
3600
  ],
3600
3601
  setup(e, { expose: t, emit: n }) {
3601
3602
  t();
3602
- const i = e, o = n, s = /* @__PURE__ */ L(!1), r = /* @__PURE__ */ L(0), l = /* @__PURE__ */ L(0), a = (v) => {
3603
+ const i = e, o = n, s = /* @__PURE__ */ N(!1), r = /* @__PURE__ */ N(0), l = /* @__PURE__ */ N(0), a = (v) => {
3603
3604
  v.preventDefault(), s.value = !0, r.value = v.clientX, l.value = i.width, o("resize-start"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
3604
3605
  }, u = (v) => {
3605
3606
  if (!s.value) return;
3606
- let _;
3607
- i.position === "right" ? _ = r.value - v.clientX : _ = v.clientX - r.value;
3608
- const y = Math.max(i.minWidth, Math.min(i.maxWidth, l.value + _));
3609
- o("resize", y);
3607
+ let y;
3608
+ i.position === "right" ? y = r.value - v.clientX : y = v.clientX - r.value;
3609
+ const _ = Math.max(i.minWidth, Math.min(i.maxWidth, l.value + y));
3610
+ o("resize", _);
3610
3611
  }, c = () => {
3611
3612
  s.value = !1, o("resize-end"), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
3612
3613
  }, f = () => {
@@ -3632,7 +3633,7 @@ var xu = Ar, Ou = Object.defineProperty, Pu = Object.defineProperties, Mu = Obje
3632
3633
  }), p;
3633
3634
  }
3634
3635
  }));
3635
- function Lu(e, t, n, i, o, s) {
3636
+ function Nu(e, t, n, i, o, s) {
3636
3637
  return D(), j("div", {
3637
3638
  class: Me(["opencode-resize-handle", {
3638
3639
  resizing: i.isResizing,
@@ -3642,8 +3643,8 @@ function Lu(e, t, n, i, o, s) {
3642
3643
  onDblclick: i.handleDoubleClick
3643
3644
  }, null, 34);
3644
3645
  }
3645
- kr.render = Lu;
3646
- var Nu = kr, Du = Object.defineProperty, $u = Object.defineProperties, Fu = Object.getOwnPropertyDescriptors, is = Object.getOwnPropertySymbols, Bu = Object.prototype.hasOwnProperty, ju = Object.prototype.propertyIsEnumerable, os = (e, t, n) => t in e ? Du(e, t, {
3646
+ kr.render = Nu;
3647
+ var Lu = kr, Du = Object.defineProperty, $u = Object.defineProperties, Fu = Object.getOwnPropertyDescriptors, is = Object.getOwnPropertySymbols, Bu = Object.prototype.hasOwnProperty, ju = Object.prototype.propertyIsEnumerable, os = (e, t, n) => t in e ? Du(e, t, {
3647
3648
  enumerable: !0,
3648
3649
  configurable: !0,
3649
3650
  writable: !0,
@@ -3746,9 +3747,9 @@ var Nu = kr, Du = Object.defineProperty, $u = Object.defineProperties, Fu = Obje
3746
3747
  "-animationOrigin.x": v.animationOrigin.x,
3747
3748
  "-animationOrigin.y": v.animationOrigin.y
3748
3749
  }));
3749
- const i = e, o = n, s = er(), r = /* @__PURE__ */ L(null), l = (v, _) => {
3750
- var y;
3751
- (y = r.value) == null || y.sendMessageToIframe(v, _);
3750
+ const i = e, o = n, s = er(), r = /* @__PURE__ */ N(null), l = (v, y) => {
3751
+ var _;
3752
+ (_ = r.value) == null || _.sendMessageToIframe(v, y);
3752
3753
  };
3753
3754
  t({
3754
3755
  sendMessageToIframe: l,
@@ -3787,7 +3788,7 @@ var Nu = kr, Du = Object.defineProperty, $u = Object.defineProperties, Fu = Obje
3787
3788
  Header: ru,
3788
3789
  SessionList: _u,
3789
3790
  SelectedNodes: xu,
3790
- ResizeHandle: Nu
3791
+ ResizeHandle: Lu
3791
3792
  };
3792
3793
  return Object.defineProperty(p, "__isScriptSetup", {
3793
3794
  enumerable: !1,
@@ -3930,11 +3931,11 @@ function Xu(e, t, n, i, o, s) {
3930
3931
  ], 6);
3931
3932
  }
3932
3933
  Rr.render = Xu;
3933
- var Ju = Rr, Lr = /* @__PURE__ */ et({
3934
+ var Ju = Rr, Nr = /* @__PURE__ */ et({
3934
3935
  __name: "SelectHint",
3935
3936
  setup(e, { expose: t }) {
3936
3937
  t();
3937
- const { selectMode: n, selectShortcutLabel: i } = an(), o = {
3938
+ const { selectMode: n, selectShortcutLabel: i } = cn(), o = {
3938
3939
  visible: n,
3939
3940
  shortcutLabel: i
3940
3941
  };
@@ -3947,8 +3948,8 @@ var Ju = Rr, Lr = /* @__PURE__ */ et({
3947
3948
  function Qu(e, t, n, i, o, s) {
3948
3949
  return D(), j("div", { class: Me(["opencode-select-mode-hint", { visible: i.visible }]) }, [t[0] || (t[0] = m("span", null, "🎯 选择模式已开启 - 点击元素进行选择", -1)), m("span", Zu, Ce(i.shortcutLabel), 1)], 2);
3949
3950
  }
3950
- Lr.render = Qu;
3951
- var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Object.getOwnPropertyDescriptors, ss = Object.getOwnPropertySymbols, od = Object.prototype.hasOwnProperty, sd = Object.prototype.propertyIsEnumerable, rs = (e, t, n) => t in e ? td(e, t, {
3951
+ Nr.render = Qu;
3952
+ var ed = Nr, td = Object.defineProperty, nd = Object.defineProperties, id = Object.getOwnPropertyDescriptors, ss = Object.getOwnPropertySymbols, od = Object.prototype.hasOwnProperty, sd = Object.prototype.propertyIsEnumerable, rs = (e, t, n) => t in e ? td(e, t, {
3952
3953
  enumerable: !0,
3953
3954
  configurable: !0,
3954
3955
  writable: !0,
@@ -3958,7 +3959,7 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
3958
3959
  if (ss)
3959
3960
  for (var n of ss(t)) sd.call(t, n) && rs(e, n, t[n]);
3960
3961
  return e;
3961
- }, ld = (e, t) => nd(e, id(t)), Nr = /* @__PURE__ */ et(ld(rd({}, { name: "FloatingBubble" }), {
3962
+ }, ld = (e, t) => nd(e, id(t)), Lr = /* @__PURE__ */ et(ld(rd({}, { name: "FloatingBubble" }), {
3962
3963
  __name: "FloatingBubble",
3963
3964
  props: {
3964
3965
  offset: {
@@ -3995,17 +3996,17 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
3995
3996
  "drag-end"
3996
3997
  ],
3997
3998
  setup(e, { expose: t, emit: n }) {
3998
- const i = e, o = n, s = /* @__PURE__ */ L(null), r = /* @__PURE__ */ L({
3999
+ const i = e, o = n, s = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N({
3999
4000
  x: 0,
4000
4001
  y: 0,
4001
4002
  width: 0,
4002
4003
  height: 0
4003
- }), l = ($) => $ !== null && typeof $ == "object", a = K(() => l(i.gap) ? i.gap.x : i.gap), u = K(() => l(i.gap) ? i.gap.y : i.gap), c = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), p = K(() => ({
4004
+ }), l = ($) => $ !== null && typeof $ == "object", a = K(() => l(i.gap) ? i.gap.x : i.gap), u = K(() => l(i.gap) ? i.gap.y : i.gap), c = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ N(typeof window < "u" ? window.innerHeight : 0), p = K(() => ({
4004
4005
  top: u.value,
4005
4006
  right: c.value - r.value.width - a.value,
4006
4007
  bottom: f.value - r.value.height - u.value,
4007
4008
  left: a.value
4008
- })), v = ($, J) => $.reduce((le, G) => Math.abs(le - J) < Math.abs(G - J) ? le : G), _ = () => {
4009
+ })), v = ($, J) => $.reduce((le, G) => Math.abs(le - J) < Math.abs(G - J) ? le : G), y = () => {
4009
4010
  if (i.magnetic === "x") if (O.value === "left") r.value.x = p.value.left;
4010
4011
  else if (O.value === "right") r.value.x = p.value.right;
4011
4012
  else {
@@ -4016,9 +4017,9 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4016
4017
  const $ = v([p.value.top, p.value.bottom], r.value.y);
4017
4018
  r.value.y = $;
4018
4019
  }
4019
- }, y = /* @__PURE__ */ L(!1), b = /* @__PURE__ */ L(!1), O = /* @__PURE__ */ L(null), M = K(() => {
4020
+ }, _ = /* @__PURE__ */ N(!1), b = /* @__PURE__ */ N(!1), O = /* @__PURE__ */ N(null), M = K(() => {
4020
4021
  const $ = {};
4021
- return $.transform = `translate3d(${`${r.value.x}px`}, ${`${r.value.y}px`}, 0)`, y.value || !b.value ? $.transition = "none" : $.transition = "transform 0.3s ease", $;
4022
+ return $.transform = `translate3d(${`${r.value.x}px`}, ${`${r.value.y}px`}, 0)`, _.value || !b.value ? $.transition = "none" : $.transition = "transform 0.3s ease", $;
4022
4023
  }), V = () => {
4023
4024
  if (!s.value || typeof window > "u") return;
4024
4025
  const $ = s.value.getBoundingClientRect(), { offset: J } = i;
@@ -4031,7 +4032,7 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4031
4032
  y: G,
4032
4033
  width: $.width,
4033
4034
  height: $.height
4034
- }, !y.value && (i.magnetic === "x" && O.value ? O.value === "left" ? r.value.x = p.value.left : r.value.x = p.value.right : _(), r.value.x !== Ke || r.value.y !== We)) {
4035
+ }, !_.value && (i.magnetic === "x" && O.value ? O.value === "left" ? r.value.x = p.value.left : r.value.x = p.value.right : y(), r.value.x !== Ke || r.value.y !== We)) {
4035
4036
  const ke = {
4036
4037
  x: r.value.x,
4037
4038
  y: r.value.y
@@ -4039,13 +4040,13 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4039
4040
  o("update:offset", ke), o("offset-change", ke);
4040
4041
  }
4041
4042
  }, S = {
4042
- startX: /* @__PURE__ */ L(0),
4043
- startY: /* @__PURE__ */ L(0),
4044
- deltaX: /* @__PURE__ */ L(0),
4045
- deltaY: /* @__PURE__ */ L(0),
4046
- offsetX: /* @__PURE__ */ L(0),
4047
- offsetY: /* @__PURE__ */ L(0),
4048
- isTap: /* @__PURE__ */ L(!0),
4043
+ startX: /* @__PURE__ */ N(0),
4044
+ startY: /* @__PURE__ */ N(0),
4045
+ deltaX: /* @__PURE__ */ N(0),
4046
+ deltaY: /* @__PURE__ */ N(0),
4047
+ offsetX: /* @__PURE__ */ N(0),
4048
+ offsetY: /* @__PURE__ */ N(0),
4049
+ isTap: /* @__PURE__ */ N(!0),
4049
4050
  start($) {
4050
4051
  this.startX.value = "touches" in $ ? $.touches[0].clientX : $.clientX, this.startY.value = "touches" in $ ? $.touches[0].clientY : $.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
4051
4052
  },
@@ -4058,7 +4059,7 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4058
4059
  };
4059
4060
  let z = 0, q = 0;
4060
4061
  const I = ($) => {
4061
- S.start($), y.value = !0, z = r.value.x, q = r.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in $ || (window.addEventListener("mousemove", W, { passive: !1 }), window.addEventListener("mouseup", H));
4062
+ S.start($), _.value = !0, z = r.value.x, q = r.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in $ || (window.addEventListener("mousemove", W, { passive: !1 }), window.addEventListener("mouseup", H));
4062
4063
  }, W = ($) => {
4063
4064
  $.cancelable && $.preventDefault();
4064
4065
  const J = S.isTap.value;
@@ -4078,12 +4079,12 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4078
4079
  o("update:offset", le);
4079
4080
  }
4080
4081
  }, H = ($) => {
4081
- y.value = !1, document.body.classList.remove("floating-bubble-dragging"), $ && !("touches" in $) && $.type === "mouseup" && (window.removeEventListener("mousemove", W), window.removeEventListener("mouseup", H)), requestAnimationFrame(() => {
4082
+ _.value = !1, document.body.classList.remove("floating-bubble-dragging"), $ && !("touches" in $) && $.type === "mouseup" && (window.removeEventListener("mousemove", W), window.removeEventListener("mouseup", H)), requestAnimationFrame(() => {
4082
4083
  if (i.magnetic === "x" && !S.isTap.value) {
4083
4084
  const J = r.value.x + r.value.width / 2, le = c.value / 2;
4084
4085
  O.value = J < le ? "left" : "right";
4085
4086
  }
4086
- if (_(), !S.isTap.value) {
4087
+ if (y(), !S.isTap.value) {
4087
4088
  o("drag-end");
4088
4089
  const J = {
4089
4090
  x: r.value.x,
@@ -4126,8 +4127,8 @@ var ed = Lr, td = Object.defineProperty, nd = Object.defineProperties, id = Obje
4126
4127
  windowHeight: f,
4127
4128
  boundary: p,
4128
4129
  closest: v,
4129
- applyMagnetic: _,
4130
- dragging: y,
4130
+ applyMagnetic: y,
4131
+ dragging: _,
4131
4132
  initialized: b,
4132
4133
  magneticSide: O,
4133
4134
  rootStyle: M,
@@ -4169,18 +4170,18 @@ function ad(e, t, n, i, o, s) {
4169
4170
  onClickCapture: i.onClick
4170
4171
  }, [ne(e.$slots, "default")], 36)], 8, ["to"]);
4171
4172
  }
4172
- Nr.render = ad;
4173
- var cd = Nr, Dr = /* @__PURE__ */ et({
4173
+ Lr.render = ad;
4174
+ var cd = Lr, Dr = /* @__PURE__ */ et({
4174
4175
  __name: "Trigger",
4175
4176
  emits: ["drag-start", "drag-end"],
4176
4177
  setup(e, { expose: t, emit: n }) {
4177
- const { buttonActive: i, open: o, hotkeyLabel: s, thinking: r, resolvedTheme: l, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = an(), f = /* @__PURE__ */ L(u.value), p = n, v = (y) => {
4178
- f.value = y, c(y);
4178
+ const { buttonActive: i, open: o, hotkeyLabel: s, thinking: r, resolvedTheme: l, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = cn(), f = /* @__PURE__ */ N(u.value), p = n, v = (_) => {
4179
+ f.value = _, c(_);
4179
4180
  };
4180
- Ae(u, (y) => {
4181
- f.value = y;
4181
+ Ae(u, (_) => {
4182
+ f.value = _;
4182
4183
  }), t({ offset: f });
4183
- const _ = {
4184
+ const y = {
4184
4185
  active: i,
4185
4186
  open: o,
4186
4187
  hotkeyLabel: s,
@@ -4194,10 +4195,10 @@ var cd = Nr, Dr = /* @__PURE__ */ et({
4194
4195
  handleOffsetChange: v,
4195
4196
  FloatingBubble: cd
4196
4197
  };
4197
- return Object.defineProperty(_, "__isScriptSetup", {
4198
+ return Object.defineProperty(y, "__isScriptSetup", {
4198
4199
  enumerable: !1,
4199
4200
  value: !0
4200
- }), _;
4201
+ }), y;
4201
4202
  }
4202
4203
  }), ud = ["aria-expanded", "title"];
4203
4204
  function dd(e, t, n, i, o, s) {
@@ -4334,14 +4335,14 @@ function md(e) {
4334
4335
  const f = document.createElement("div");
4335
4336
  f.className = "opencode-element-highlight-temp";
4336
4337
  const p = document.querySelector(".opencode-widget");
4337
- let v = "#3b82f6", _ = "rgba(59, 130, 246, 0.1)";
4338
+ let v = "#3b82f6", y = "rgba(59, 130, 246, 0.1)";
4338
4339
  if (p) {
4339
4340
  const b = getComputedStyle(p);
4340
- v = b.getPropertyValue("--oc-primary").trim() || v, _ = b.getPropertyValue("--oc-primary-bg").trim() || _;
4341
+ v = b.getPropertyValue("--oc-primary").trim() || v, y = b.getPropertyValue("--oc-primary-bg").trim() || y;
4341
4342
  }
4342
- f.style.border = `2px solid ${v}`, f.style.background = _;
4343
- const y = c.getBoundingClientRect();
4344
- f.style.top = `${y.top + window.scrollY}px`, f.style.left = `${y.left + window.scrollX}px`, f.style.width = `${y.width}px`, f.style.height = `${y.height}px`, document.body.appendChild(f), setTimeout(() => {
4343
+ f.style.border = `2px solid ${v}`, f.style.background = y;
4344
+ const _ = c.getBoundingClientRect();
4345
+ f.style.top = `${_.top + window.scrollY}px`, f.style.left = `${_.left + window.scrollX}px`, f.style.width = `${_.width}px`, f.style.height = `${_.height}px`, document.body.appendChild(f), setTimeout(() => {
4345
4346
  f.remove();
4346
4347
  }, 2e3);
4347
4348
  }
@@ -4423,23 +4424,23 @@ var ki = [
4423
4424
  "dark"
4424
4425
  ];
4425
4426
  function Sd(e) {
4426
- const t = /* @__PURE__ */ L("light");
4427
+ const t = /* @__PURE__ */ N("light");
4427
4428
  function n() {
4428
4429
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
4429
4430
  }
4430
4431
  let i = null, o = null;
4431
4432
  ze(() => {
4432
- typeof window > "u" || (t.value = n(), i = window.matchMedia("(prefers-color-scheme: dark)"), o = (y) => {
4433
- t.value = y.matches ? "dark" : "light";
4433
+ typeof window > "u" || (t.value = n(), i = window.matchMedia("(prefers-color-scheme: dark)"), o = (_) => {
4434
+ t.value = _.matches ? "dark" : "light";
4434
4435
  }, i.addEventListener("change", o));
4435
4436
  }), qe(() => {
4436
4437
  i && o && i.removeEventListener("change", o);
4437
4438
  });
4438
4439
  const s = K(() => e.theme.value === "auto" ? t.value : e.theme.value), r = K(() => ["opencode-widget", `opencode-theme-${s.value}`]), l = K(() => !!(e.open.value || e.selectMode.value)), a = K(() => e.iframeSrc.value || "about:blank"), u = K(() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表");
4439
4440
  function c() {
4440
- var y;
4441
+ var _;
4441
4442
  if (e.selectMode.value) {
4442
- (y = e.onToggleSelectMode) == null || y.call(e, !1);
4443
+ (_ = e.onToggleSelectMode) == null || _.call(e, !1);
4443
4444
  return;
4444
4445
  }
4445
4446
  const b = !e.open.value;
@@ -4454,10 +4455,10 @@ function Sd(e) {
4454
4455
  function v() {
4455
4456
  e.onEmptyAction();
4456
4457
  }
4457
- function _() {
4458
- var y;
4458
+ function y() {
4459
+ var _;
4459
4460
  const b = (ki.indexOf(e.theme.value) + 1) % ki.length, O = ki[b];
4460
- (y = e.onToggleTheme) == null || y.call(e, O);
4461
+ (_ = e.onToggleTheme) == null || _.call(e, O);
4461
4462
  }
4462
4463
  return {
4463
4464
  buttonActive: l,
@@ -4469,7 +4470,7 @@ function Sd(e) {
4469
4470
  handleEmptyAction: v,
4470
4471
  handleToggle: c,
4471
4472
  handleToggleSessionList: p,
4472
- handleToggleTheme: _
4473
+ handleToggleTheme: y
4473
4474
  };
4474
4475
  }
4475
4476
  function $r(e) {
@@ -4512,7 +4513,7 @@ var Td = {
4512
4513
  useScope: !1,
4513
4514
  ignoreGeneratedClassNames: !1
4514
4515
  };
4515
- function gn(e) {
4516
+ function mn(e) {
4516
4517
  return !!e;
4517
4518
  }
4518
4519
  function Cd(e) {
@@ -4554,14 +4555,14 @@ function Pd(e, t = {}) {
4554
4555
  whitelist: ls(n.whitelist),
4555
4556
  blacklist: ls(n.blacklist),
4556
4557
  root: Br(n.root, e),
4557
- combineWithinSelector: gn(n.combineWithinSelector),
4558
- combineBetweenSelectors: gn(n.combineBetweenSelectors),
4559
- includeTag: gn(n.includeTag),
4558
+ combineWithinSelector: mn(n.combineWithinSelector),
4559
+ combineBetweenSelectors: mn(n.combineBetweenSelectors),
4560
+ includeTag: mn(n.includeTag),
4560
4561
  maxCombinations: Ri(n.maxCombinations),
4561
4562
  maxCandidates: Ri(n.maxCandidates),
4562
- useScope: gn(n.useScope),
4563
+ useScope: mn(n.useScope),
4563
4564
  maxResults: Ri(n.maxResults),
4564
- ignoreGeneratedClassNames: gn(n.ignoreGeneratedClassNames)
4565
+ ignoreGeneratedClassNames: mn(n.ignoreGeneratedClassNames)
4565
4566
  };
4566
4567
  }
4567
4568
  function $n(e = []) {
@@ -4614,12 +4615,12 @@ var kd = new RegExp(["^$", "\\s"].join("|")), Rd = new RegExp(["^$"].join("|")),
4614
4615
  Se.class,
4615
4616
  Se.attribute,
4616
4617
  Se.nthchild
4617
- ], Ld = ii([
4618
+ ], Nd = ii([
4618
4619
  "class",
4619
4620
  "id",
4620
4621
  "ng-*"
4621
4622
  ]);
4622
- function Nd({ name: e }) {
4623
+ function Ld({ name: e }) {
4623
4624
  return `[${e}]`;
4624
4625
  }
4625
4626
  function Dd({ name: e, value: t }) {
@@ -4627,17 +4628,17 @@ function Dd({ name: e, value: t }) {
4627
4628
  }
4628
4629
  function $d({ nodeName: e, nodeValue: t }, n) {
4629
4630
  const i = n.tagName.toLowerCase();
4630
- return ["input", "option"].includes(i) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !Ld(e);
4631
+ return ["input", "option"].includes(i) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !Nd(e);
4631
4632
  }
4632
4633
  function Fd({ nodeName: e, nodeValue: t }) {
4633
4634
  return {
4634
- name: ln(e),
4635
- value: ln(t ?? void 0)
4635
+ name: an(e),
4636
+ value: an(t ?? void 0)
4636
4637
  };
4637
4638
  }
4638
4639
  function Hr(e, t) {
4639
4640
  const n = Array.from(e.attributes).filter((i) => $d(i, e)).map(Fd);
4640
- return [...n.map(Nd), ...n.map(Dd)];
4641
+ return [...n.map(Ld), ...n.map(Dd)];
4641
4642
  }
4642
4643
  function Bd(e, t) {
4643
4644
  return $n(e.map((n) => Hr(n, t)));
@@ -4658,18 +4659,18 @@ function Vr(e, t) {
4658
4659
  if (t?.ignoreGeneratedClassNames) {
4659
4660
  const s = ii(t.whitelist);
4660
4661
  o = i.filter((r) => {
4661
- const l = `.${ln(r)}`;
4662
+ const l = `.${an(r)}`;
4662
4663
  return s(l) ? !0 : Hd(r);
4663
4664
  });
4664
4665
  }
4665
- return o.map((s) => `.${ln(s)}`);
4666
+ return o.map((s) => `.${an(s)}`);
4666
4667
  }
4667
4668
  function Vd(e, t) {
4668
4669
  return $n(e.map((n) => Vr(n, t)));
4669
4670
  }
4670
4671
  function zr(e, t) {
4671
4672
  var n;
4672
- const i = (n = e.getAttribute("id")) !== null && n !== void 0 ? n : "", o = `#${ln(i)}`, s = e.getRootNode({ composed: !1 });
4673
+ const i = (n = e.getAttribute("id")) !== null && n !== void 0 ? n : "", o = `#${an(i)}`, s = e.getRootNode({ composed: !1 });
4673
4674
  return !kd.test(i) && uo([e], o, s) ? [o] : [];
4674
4675
  }
4675
4676
  function zd(e, t) {
@@ -4686,7 +4687,7 @@ function qd(e, t) {
4686
4687
  return $n(e.map((n) => qr(n, t)));
4687
4688
  }
4688
4689
  function Ur(e, t) {
4689
- return [ln(e.tagName.toLowerCase())];
4690
+ return [an(e.tagName.toLowerCase())];
4690
4691
  }
4691
4692
  function Kr(e, t) {
4692
4693
  const n = [...new Set(Md(e.map((i) => Ur(i, t))))];
@@ -4748,7 +4749,7 @@ function* Gd(e = {}) {
4748
4749
  }
4749
4750
  }
4750
4751
  var Xd = "3a".toUpperCase(), Jd = /[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;
4751
- function ln(e = "") {
4752
+ function an(e = "") {
4752
4753
  return CSS ? CSS.escape(e) : Zd(e);
4753
4754
  }
4754
4755
  function Zd(e = "") {
@@ -4939,7 +4940,7 @@ var Pf = [
4939
4940
  ".opencode-element-tooltip",
4940
4941
  ".opencode-select-mode-hint",
4941
4942
  ".floating-bubble"
4942
- ], Mf = "data-v-inspector-ignore", Li = "__v_inspector", If = "data-v-inspector";
4943
+ ], Mf = "data-v-inspector-ignore", Ni = "__v_inspector", If = "data-v-inspector";
4943
4944
  function Af(e) {
4944
4945
  let t = "";
4945
4946
  for (let n = 0; n < e.childNodes.length; n++) {
@@ -4948,8 +4949,8 @@ function Af(e) {
4948
4949
  }
4949
4950
  return t.trim();
4950
4951
  }
4951
- var kf = /^(?:el-|:r[0-9]+:|radix-|uid-|ts-|uuid-|id-[a-f0-9]{4,}|.*[0-9]{4,}.*|.*-[a-f0-9]{6,}$)/i, Rf = /^(?:hover|active|focus|focus-visible|focus-within|disabled|enabled|checked|selected|open|closed|loading|error|success|warning|hidden|visible|show|hide|current|expanded|collapsed|pressed|dragging|droppable|sortable|placeholder|transition|enter|leave|appear|move)$/i, Lf = /^(?:is-|has-|was-|are-|can-|should-|will-|did-|does-|on-|off-|in-|out-|at-|to-|from-)/i;
4952
- function Nf(e) {
4952
+ var kf = /^(?:el-|:r[0-9]+:|radix-|uid-|ts-|uuid-|id-[a-f0-9]{4,}|.*[0-9]{4,}.*|.*-[a-f0-9]{6,}$)/i, Rf = /^(?:hover|active|focus|focus-visible|focus-within|disabled|enabled|checked|selected|open|closed|loading|error|success|warning|hidden|visible|show|hide|current|expanded|collapsed|pressed|dragging|droppable|sortable|placeholder|transition|enter|leave|appear|move)$/i, Nf = /^(?:is-|has-|was-|are-|can-|should-|will-|did-|does-|on-|off-|in-|out-|at-|to-|from-)/i;
4953
+ function Lf(e) {
4953
4954
  if (!e) return !1;
4954
4955
  if (kf.test(e)) return !0;
4955
4956
  const t = (e.match(/\d/g) || []).length;
@@ -4962,7 +4963,7 @@ function Nf(e) {
4962
4963
  return !1;
4963
4964
  }
4964
4965
  function Df(e) {
4965
- return e ? !!(Rf.test(e) || Lf.test(e) || e.includes("-active") || e.includes("-hover") || e.includes("-focus") || /^(?:router-link|nuxt-link)/.test(e)) : !1;
4966
+ return e ? !!(Rf.test(e) || Nf.test(e) || e.includes("-active") || e.includes("-hover") || e.includes("-focus") || /^(?:router-link|nuxt-link)/.test(e)) : !1;
4966
4967
  }
4967
4968
  function cs(e) {
4968
4969
  return Xr(e, {
@@ -4978,7 +4979,7 @@ function cs(e) {
4978
4979
  maxCandidates: 100,
4979
4980
  blacklist: [(t) => {
4980
4981
  const n = t.match(/^#(.+)$/);
4981
- if (n) return Nf(n[1]);
4982
+ if (n) return Lf(n[1]);
4982
4983
  const i = t.match(/^\.([a-zA-Z_-][\w-]*)$/);
4983
4984
  return i ? Df(i[1]) : !1;
4984
4985
  }]
@@ -5021,18 +5022,18 @@ function Jr(e) {
5021
5022
  }
5022
5023
  function Ff(e) {
5023
5024
  var t, n, i, o, s, r, l;
5024
- const a = (n = (t = e.__vnode) == null ? void 0 : t.props) == null ? void 0 : n[Li];
5025
+ const a = (n = (t = e.__vnode) == null ? void 0 : t.props) == null ? void 0 : n[Ni];
5025
5026
  if (a) return a;
5026
5027
  const u = (o = (i = e.__vnode) == null ? void 0 : i.ctx) == null ? void 0 : o.vnode;
5027
5028
  if (u?.el === e) {
5028
- const v = (s = u.props) == null ? void 0 : s[Li];
5029
+ const v = (s = u.props) == null ? void 0 : s[Ni];
5029
5030
  if (v) return v;
5030
5031
  }
5031
5032
  const c = e.__vueParentComponent;
5032
5033
  let f = c?.parent;
5033
5034
  for (; f; ) {
5034
5035
  if (((r = f.vnode) == null ? void 0 : r.el) === e) {
5035
- const v = (l = f.vnode.props) == null ? void 0 : l[Li];
5036
+ const v = (l = f.vnode.props) == null ? void 0 : l[Ni];
5036
5037
  if (v) return v;
5037
5038
  }
5038
5039
  f = f.parent;
@@ -5081,15 +5082,15 @@ function ds(e, t) {
5081
5082
  return jf(n, i);
5082
5083
  }
5083
5084
  function Wf(e) {
5084
- const t = /* @__PURE__ */ L(!1), n = /* @__PURE__ */ L({
5085
+ const t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ N({
5085
5086
  top: "0px",
5086
5087
  left: "0px",
5087
5088
  width: "0px",
5088
5089
  height: "0px"
5089
- }), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L({
5090
+ }), i = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N({
5090
5091
  top: "0px",
5091
5092
  left: "0px"
5092
- }), s = /* @__PURE__ */ L({
5093
+ }), s = /* @__PURE__ */ N({
5093
5094
  description: "",
5094
5095
  fileInfo: ""
5095
5096
  }), r = 500;
@@ -5181,7 +5182,7 @@ function Wf(e) {
5181
5182
  t.value = !1, i.value = !1;
5182
5183
  }
5183
5184
  const v = p;
5184
- function _() {
5185
+ function y() {
5185
5186
  const b = window.__VUE_INSPECTOR__;
5186
5187
  if (!b || b.__opencode_hooked) return;
5187
5188
  const O = b.handleClick.bind(b);
@@ -5206,18 +5207,18 @@ function Wf(e) {
5206
5207
  return O.call(b, M);
5207
5208
  }, b.__opencode_hooked = !0;
5208
5209
  }
5209
- function y(b) {
5210
+ function _(b) {
5210
5211
  b.key === "Escape" && e.selectMode.value && (b.preventDefault(), b.stopPropagation(), e.onExitSelectMode());
5211
5212
  }
5212
5213
  return Ae(e.selectMode, (b) => {
5213
5214
  const O = window.__VUE_INSPECTOR__;
5214
- b ? (O && O.enable(), document.addEventListener("mousemove", v), document.addEventListener("keydown", y, !0)) : (O && O.disable(), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", y, !0), t.value = !1, i.value = !1);
5215
+ b ? (O && O.enable(), document.addEventListener("mousemove", v), document.addEventListener("keydown", _, !0)) : (O && O.disable(), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", _, !0), t.value = !1, i.value = !1);
5215
5216
  }), ze(() => {
5216
- window.__VUE_INSPECTOR__ ? _() : l = window.setInterval(() => {
5217
- window.__VUE_INSPECTOR__ && (_(), l && (window.clearInterval(l), l = null));
5217
+ window.__VUE_INSPECTOR__ ? y() : l = window.setInterval(() => {
5218
+ window.__VUE_INSPECTOR__ && (y(), l && (window.clearInterval(l), l = null));
5218
5219
  }, r);
5219
5220
  }), qe(() => {
5220
- l && window.clearInterval(l), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", y, !0);
5221
+ l && window.clearInterval(l), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", _, !0);
5221
5222
  }), {
5222
5223
  highlightVisible: t,
5223
5224
  highlightStyle: n,
@@ -5284,7 +5285,7 @@ function zf(e) {
5284
5285
  var qf = 1440;
5285
5286
  function Uf(e) {
5286
5287
  var t, n;
5287
- const i = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), o = /* @__PURE__ */ L((n = (t = e.splitPosition) == null ? void 0 : t.value) != null ? n : "right"), s = K(() => e.displayMode.value === "extension"), r = K(() => {
5288
+ const i = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), o = /* @__PURE__ */ N((n = (t = e.splitPosition) == null ? void 0 : t.value) != null ? n : "right"), s = K(() => e.displayMode.value === "extension"), r = K(() => {
5288
5289
  var b, O, M, V, S, z, q;
5289
5290
  const I = e.splitMode.value || {}, W = s.value;
5290
5291
  return {
@@ -5296,7 +5297,7 @@ function Uf(e) {
5296
5297
  defaultOpen: W ? !0 : (z = I.defaultOpen) != null ? z : !0,
5297
5298
  position: (q = I.position) != null ? q : o.value
5298
5299
  };
5299
- }), l = /* @__PURE__ */ L(r.value.width), a = K(() => s.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || i.value >= qf ? "split" : "bubble"), u = K(() => a.value === "split"), c = K(() => r.value.position), f = (b) => {
5300
+ }), l = /* @__PURE__ */ N(r.value.width), a = K(() => s.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || i.value >= qf ? "split" : "bubble"), u = K(() => a.value === "split"), c = K(() => r.value.position), f = (b) => {
5300
5301
  var O;
5301
5302
  l.value = b, (O = e.onWidthChange) == null || O.call(e, b);
5302
5303
  }, p = () => {
@@ -5307,9 +5308,9 @@ function Uf(e) {
5307
5308
  var b;
5308
5309
  const O = o.value === "right" ? "left" : "right";
5309
5310
  o.value = O, (b = e.onPositionChange) == null || b.call(e, O);
5310
- }, _ = () => {
5311
- typeof window < "u" && (i.value = window.innerWidth);
5312
5311
  }, y = () => {
5312
+ typeof window < "u" && (i.value = window.innerWidth);
5313
+ }, _ = () => {
5313
5314
  typeof document > "u" || s.value || (u.value && e.open.value && r.value.shrinkPage ? (document.body.classList.add("has-opencode-split"), document.body.style.setProperty("--opencode-split-width", `${l.value}px`), c.value === "left" ? (document.body.classList.add("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right")) : (document.body.classList.add("has-opencode-split-right"), document.body.classList.remove("has-opencode-split-left"))) : (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
5314
5315
  };
5315
5316
  return Ae([
@@ -5317,7 +5318,7 @@ function Uf(e) {
5317
5318
  e.open,
5318
5319
  l,
5319
5320
  c
5320
- ], y, { immediate: !0 }), Ae(r, (b) => {
5321
+ ], _, { immediate: !0 }), Ae(r, (b) => {
5321
5322
  l.value < b.minWidth && (l.value = b.minWidth), l.value > b.maxWidth && (l.value = b.maxWidth);
5322
5323
  }), Ae(() => {
5323
5324
  var b;
@@ -5326,9 +5327,9 @@ function Uf(e) {
5326
5327
  b && b !== o.value && (o.value = b);
5327
5328
  }), ze(() => {
5328
5329
  var b;
5329
- typeof window < "u" && (window.addEventListener("resize", _), !s.value && u.value && r.value.defaultOpen && !e.open.value && ((b = e.onOpenChange) == null || b.call(e, !0)));
5330
+ typeof window < "u" && (window.addEventListener("resize", y), !s.value && u.value && r.value.defaultOpen && !e.open.value && ((b = e.onOpenChange) == null || b.call(e, !0)));
5330
5331
  }), qe(() => {
5331
- typeof window < "u" && (window.removeEventListener("resize", _), s.value || (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
5332
+ typeof window < "u" && (window.removeEventListener("resize", y), s.value || (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
5332
5333
  }), {
5333
5334
  effectiveMode: a,
5334
5335
  isSplitMode: u,
@@ -5519,25 +5520,25 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5519
5520
  "-chatAnimationOrigin.x": _i.value.x,
5520
5521
  "-chatAnimationOrigin.y": _i.value.y
5521
5522
  }));
5522
- const s = e, r = n, l = er(), a = /* @__PURE__ */ L(""), u = /* @__PURE__ */ L(!1), c = /* @__PURE__ */ L("widget");
5523
+ const s = e, r = n, l = er(), a = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(!1), c = /* @__PURE__ */ N("widget");
5523
5524
  let f = null;
5524
- const p = (C, Le) => {
5525
- const { duration: ot = 3e3, mode: St = "widget" } = Le || {};
5525
+ const p = (C, Ne) => {
5526
+ const { duration: ot = 3e3, mode: St = "widget" } = Ne || {};
5526
5527
  a.value = C, u.value = !0, c.value = St, f && clearTimeout(f), f = setTimeout(() => {
5527
5528
  u.value = !1;
5528
5529
  }, ot);
5529
- }, v = /* @__PURE__ */ L(!1), _ = /* @__PURE__ */ L("");
5530
- let y = null;
5531
- const b = (C) => (_.value = C, v.value = !0, new Promise((Le) => {
5532
- y = Le;
5530
+ }, v = /* @__PURE__ */ N(!1), y = /* @__PURE__ */ N("");
5531
+ let _ = null;
5532
+ const b = (C) => (y.value = C, v.value = !0, new Promise((Ne) => {
5533
+ _ = Ne;
5533
5534
  })), O = () => {
5534
- v.value = !1, y && y(!0);
5535
+ v.value = !1, _ && _(!0);
5535
5536
  }, M = () => {
5536
- v.value = !1, y && y(!1);
5537
- }, V = /* @__PURE__ */ L(null), S = /* @__PURE__ */ L(null), z = (C, Le) => {
5537
+ v.value = !1, _ && _(!1);
5538
+ }, V = /* @__PURE__ */ N(null), S = /* @__PURE__ */ N(null), z = (C, Ne) => {
5538
5539
  var ot;
5539
- (ot = V.value) == null || ot.sendMessageToIframe(C, Le);
5540
- }, q = /* @__PURE__ */ L(s.sessionListCollapsed), I = /* @__PURE__ */ L(s.displayMode), W = /* @__PURE__ */ L((o = (i = s.splitMode) == null ? void 0 : i.position) != null ? o : "right"), H = /* @__PURE__ */ L(!1), X = /* @__PURE__ */ L(!0), te = /* @__PURE__ */ L(!0), Te = /* @__PURE__ */ L(!1), $ = /* @__PURE__ */ L(s.splitPanelWidth), J = () => {
5540
+ (ot = V.value) == null || ot.sendMessageToIframe(C, Ne);
5541
+ }, q = /* @__PURE__ */ N(s.sessionListCollapsed), I = /* @__PURE__ */ N(s.displayMode), W = /* @__PURE__ */ N((o = (i = s.splitMode) == null ? void 0 : i.position) != null ? o : "right"), H = /* @__PURE__ */ N(!1), X = /* @__PURE__ */ N(!0), te = /* @__PURE__ */ N(!0), Te = /* @__PURE__ */ N(!1), $ = /* @__PURE__ */ N(s.splitPanelWidth), J = () => {
5541
5542
  Te.value && (z(Ee.PROMPT_DOCK_VISIBILITY, { visible: X.value }), z(Ee.MINIMIZE_STATE, { minimized: H.value }));
5542
5543
  }, le = () => {
5543
5544
  r("frame-loaded"), Te.value = !0, J();
@@ -5555,8 +5556,8 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5555
5556
  "bubble",
5556
5557
  "split",
5557
5558
  "auto"
5558
- ], Le = (C.indexOf(I.value) + 1) % C.length;
5559
- I.value = C[Le];
5559
+ ], Ne = (C.indexOf(I.value) + 1) % C.length;
5560
+ I.value = C[Ne];
5560
5561
  }, { buttonActive: ie, containerClasses: De, iframeSource: Ke, sessionListTitle: We, resolvedTheme: ke, handleClose: Re, handleEmptyAction: ct, handleToggle: bt, handleToggleSessionList: ut, handleToggleTheme: Ye } = Sd({
5561
5562
  theme: /* @__PURE__ */ re(s, "theme"),
5562
5563
  open: /* @__PURE__ */ re(s, "open"),
@@ -5598,8 +5599,8 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5598
5599
  },
5599
5600
  onRemoveSelectedNode: (C) => {
5600
5601
  r("remove-selected-node", C);
5601
- const Le = [...s.selectedElements];
5602
- Le.splice(C.index, 1), r("update:selectedElements", Le);
5602
+ const Ne = [...s.selectedElements];
5603
+ Ne.splice(C.index, 1), r("update:selectedElements", Ne);
5603
5604
  },
5604
5605
  onClearSelectedNodes: () => {
5605
5606
  r("clear-selected-nodes"), r("update:selectedElements", []);
@@ -5613,7 +5614,7 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5613
5614
  onExitSelectMode: () => {
5614
5615
  r("update:selectMode", !1), r("toggle-select-mode", !1);
5615
5616
  }
5616
- }), F = /* @__PURE__ */ L(void 0), { effectiveMode: N, isSplitMode: B, isExtensionMode: U, panelWidth: Q, splitConfig: se, splitPosition: ee, handleResize: he, handleToggle: ve, handleTogglePosition: Fe } = Uf({
5617
+ }), F = /* @__PURE__ */ N(void 0), { effectiveMode: L, isSplitMode: B, isExtensionMode: U, panelWidth: Q, splitConfig: se, splitPosition: ee, handleResize: he, handleToggle: ve, handleTogglePosition: Fe } = Uf({
5617
5618
  displayMode: I,
5618
5619
  splitMode: /* @__PURE__ */ re(s, "splitMode"),
5619
5620
  open: /* @__PURE__ */ re(s, "open"),
@@ -5659,7 +5660,7 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5659
5660
  X.value = !X.value, z(Ee.PROMPT_DOCK_VISIBILITY, { visible: X.value });
5660
5661
  }, k = () => {
5661
5662
  window.location.reload();
5662
- }, Y = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), _e = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), Rt = () => {
5663
+ }, Y = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), _e = /* @__PURE__ */ N(typeof window < "u" ? window.innerHeight : 0), Rt = () => {
5663
5664
  typeof window < "u" && (Y.value = window.innerWidth, _e.value = window.innerHeight);
5664
5665
  };
5665
5666
  ze(() => {
@@ -5668,38 +5669,38 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5668
5669
  typeof window < "u" && window.removeEventListener("resize", Rt);
5669
5670
  });
5670
5671
  const Xt = K(() => {
5671
- var C, Le, ot, St;
5672
+ var C, Ne, ot, St;
5672
5673
  if (typeof window > "u") return "bottom-right";
5673
- const Bt = Y.value / 2, Lt = _e.value / 2, wt = 44, tt = (Le = (C = S.value) == null ? void 0 : C.offset) != null ? Le : F.value, jt = ((ot = tt?.x) != null ? ot : Y.value - wt - 24) + wt / 2, ft = ((St = tt?.y) != null ? St : _e.value - wt - 24) + wt / 2;
5674
- return jt >= Bt && ft >= Lt ? "bottom-right" : jt < Bt && ft >= Lt ? "bottom-left" : jt >= Bt && ft < Lt ? "top-right" : "top-left";
5674
+ const Bt = Y.value / 2, Nt = _e.value / 2, wt = 44, tt = (Ne = (C = S.value) == null ? void 0 : C.offset) != null ? Ne : F.value, jt = ((ot = tt?.x) != null ? ot : Y.value - wt - 24) + wt / 2, ft = ((St = tt?.y) != null ? St : _e.value - wt - 24) + wt / 2;
5675
+ return jt >= Bt && ft >= Nt ? "bottom-right" : jt < Bt && ft >= Nt ? "bottom-left" : jt >= Bt && ft < Nt ? "top-right" : "top-left";
5675
5676
  }), ho = K(() => {
5676
5677
  const C = Xt.value;
5677
5678
  return C === "top-right" || C === "bottom-right";
5678
5679
  }), tl = K(() => {
5679
- var C, Le, ot;
5680
+ var C, Ne, ot;
5680
5681
  if (typeof window > "u") return {};
5681
- const St = H.value ? 300 : 700, Bt = H.value ? 300 : Math.min(_e.value * 0.86, _e.value - 40), Lt = 24, wt = 44, tt = 20, jt = (ot = (Le = (C = S.value) == null ? void 0 : C.offset) != null ? Le : F.value) != null ? ot : {
5682
- x: Y.value - wt - Lt,
5683
- y: _e.value - wt - Lt
5682
+ const St = H.value ? 300 : 700, Bt = H.value ? 300 : Math.min(_e.value * 0.86, _e.value - 40), Nt = 24, wt = 44, tt = 20, jt = (ot = (Ne = (C = S.value) == null ? void 0 : C.offset) != null ? Ne : F.value) != null ? ot : {
5683
+ x: Y.value - wt - Nt,
5684
+ y: _e.value - wt - Nt
5684
5685
  }, ft = {};
5685
5686
  if (ho.value) {
5686
- let st = Y.value - jt.x + Lt;
5687
- const dn = tt, fn = Y.value - St - tt;
5688
- st > fn && (st = fn), st < dn && (st = dn), ft.right = `${st}px`, ft.left = "auto";
5687
+ let st = Y.value - jt.x + Nt;
5688
+ const fn = tt, hn = Y.value - St - tt;
5689
+ st > hn && (st = hn), st < fn && (st = fn), ft.right = `${st}px`, ft.left = "auto";
5689
5690
  } else {
5690
- let st = jt.x + wt + Lt;
5691
- const dn = tt, fn = Y.value - St - tt;
5692
- st > fn && (st = fn), st < dn && (st = dn), ft.left = `${st}px`, ft.right = "auto";
5691
+ let st = jt.x + wt + Nt;
5692
+ const fn = tt, hn = Y.value - St - tt;
5693
+ st > hn && (st = hn), st < fn && (st = fn), ft.left = `${st}px`, ft.right = "auto";
5693
5694
  }
5694
- let un = _e.value - jt.y - wt;
5695
+ let dn = _e.value - jt.y - wt;
5695
5696
  const go = _e.value - Bt - tt;
5696
- return un > go && (un = go), un < tt && (un = tt), ft.bottom = `${un}px`, ft;
5697
+ return dn > go && (dn = go), dn < tt && (dn = tt), ft.bottom = `${dn}px`, ft;
5697
5698
  }), po = (C) => {
5698
5699
  F.value = C;
5699
5700
  }, nl = () => {
5700
- cn.value = !0;
5701
+ un.value = !0;
5701
5702
  }, il = () => {
5702
- cn.value = !1;
5703
+ un.value = !1;
5703
5704
  }, _i = K(() => {
5704
5705
  switch (Xt.value) {
5705
5706
  case "top-left":
@@ -5723,12 +5724,12 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5723
5724
  y: "20px"
5724
5725
  };
5725
5726
  }
5726
- }), cn = /* @__PURE__ */ L(!1);
5727
+ }), un = /* @__PURE__ */ N(!1);
5727
5728
  let Fn = !1;
5728
5729
  const ol = () => {
5729
- cn.value = !0, Fn = s.open, s.open && r("update:open", !1);
5730
+ un.value = !0, Fn = s.open, s.open && r("update:open", !1);
5730
5731
  }, sl = () => {
5731
- cn.value = !1, Fn && r("update:open", !0);
5732
+ un.value = !1, Fn && r("update:open", !0);
5732
5733
  };
5733
5734
  Pc({
5734
5735
  theme: /* @__PURE__ */ re(s, "theme"),
@@ -5753,7 +5754,7 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5753
5754
  minimized: H,
5754
5755
  promptDockVisible: X,
5755
5756
  bubbleOffset: F,
5756
- mode: N,
5757
+ mode: L,
5757
5758
  displayMode: I,
5758
5759
  splitPosition: ee,
5759
5760
  sessionStates: K(() => {
@@ -5807,12 +5808,12 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5807
5808
  },
5808
5809
  showNotification: p,
5809
5810
  dialogVisible: v,
5810
- dialogMessage: _,
5811
+ dialogMessage: y,
5811
5812
  get dialogResolve() {
5812
- return y;
5813
+ return _;
5813
5814
  },
5814
5815
  set dialogResolve(C) {
5815
- y = C;
5816
+ _ = C;
5816
5817
  },
5817
5818
  showConfirmDialog: b,
5818
5819
  handleDialogConfirm: O,
@@ -5858,7 +5859,7 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5858
5859
  tooltipStyle: P,
5859
5860
  tooltipContent: T,
5860
5861
  bubbleOffset: F,
5861
- effectiveMode: N,
5862
+ effectiveMode: L,
5862
5863
  isSplitMode: B,
5863
5864
  isExtensionMode: U,
5864
5865
  panelWidth: Q,
@@ -5880,7 +5881,7 @@ var Kf = Object.defineProperty, Yf = Object.defineProperties, Gf = Object.getOwn
5880
5881
  handleResizeStart: nl,
5881
5882
  handleResizeEnd: il,
5882
5883
  chatAnimationOrigin: _i,
5883
- isDragging: cn,
5884
+ isDragging: un,
5884
5885
  get wasOpenBeforeDrag() {
5885
5886
  return Fn;
5886
5887
  },
@@ -6058,7 +6059,7 @@ function ps(e, t) {
6058
6059
  }
6059
6060
  var dh = 10, fh = 1e3;
6060
6061
  function el(e) {
6061
- const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = dh, retryDelay: s = fh, onConnected: r, onDisconnected: l, onError: a, onMessage: u } = e, c = /* @__PURE__ */ L(null), f = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
6062
+ const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = dh, retryDelay: s = fh, onConnected: r, onDisconnected: l, onError: a, onMessage: u } = e, c = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N("idle"), p = /* @__PURE__ */ N(0);
6062
6063
  function v(M) {
6063
6064
  try {
6064
6065
  const V = JSON.parse(M.data);
@@ -6067,7 +6068,7 @@ function el(e) {
6067
6068
  u?.(M.data);
6068
6069
  }
6069
6070
  }
6070
- function _() {
6071
+ function y() {
6071
6072
  if (!(c.value || f.value === "connecting")) {
6072
6073
  if (i?.value === !1) {
6073
6074
  f.value = "idle";
@@ -6090,7 +6091,7 @@ function el(e) {
6090
6091
  p.value++;
6091
6092
  const S = s * p.value;
6092
6093
  console.debug(`[SSE] will retry #${p.value} in ${S}ms -> ${t}`), setTimeout(() => {
6093
- i?.value !== !1 && !c.value && f.value !== "disconnected" && _();
6094
+ i?.value !== !1 && !c.value && f.value !== "disconnected" && y();
6094
6095
  }, S);
6095
6096
  } else M ? (console.debug("[SSE] max retries reached, calling onDisconnected for", t), l?.()) : console.debug("[SSE] max retries reached, was never connected, NOT calling onDisconnected for", t);
6096
6097
  };
@@ -6101,31 +6102,31 @@ function el(e) {
6101
6102
  p.value++;
6102
6103
  const S = s * p.value;
6103
6104
  setTimeout(() => {
6104
- !c.value && f.value !== "disconnected" && _();
6105
+ !c.value && f.value !== "disconnected" && y();
6105
6106
  }, S);
6106
6107
  }
6107
6108
  }
6108
6109
  }
6109
6110
  }
6110
- function y() {
6111
+ function _() {
6111
6112
  c.value && (c.value.close(), c.value = null), f.value = "disconnected", p.value = 0, l?.();
6112
6113
  }
6113
6114
  function b() {
6114
- y(), _();
6115
+ _(), y();
6115
6116
  }
6116
6117
  function O() {
6117
6118
  p.value = 0;
6118
6119
  }
6119
- return n && i?.value !== !1 && _(), qe(() => {
6120
- y();
6120
+ return n && i?.value !== !1 && y(), qe(() => {
6121
+ _();
6121
6122
  }), {
6122
6123
  connection: c,
6123
6124
  status: f,
6124
6125
  retryCount: p,
6125
6126
  isConnected: K(() => f.value === "connected"),
6126
6127
  isConnecting: K(() => f.value === "connecting"),
6127
- connect: _,
6128
- disconnect: y,
6128
+ connect: y,
6129
+ disconnect: _,
6129
6130
  reconnect: b,
6130
6131
  resetRetryCount: O
6131
6132
  };
@@ -6182,7 +6183,7 @@ function ph(e) {
6182
6183
  };
6183
6184
  }
6184
6185
  function vh(e) {
6185
- const { proxyBaseUrl: t, currentSessionId: n, enabled: i, onConnected: o, onSessionUpdate: s } = e, r = /* @__PURE__ */ L({});
6186
+ const { proxyBaseUrl: t, currentSessionId: n, enabled: i, onConnected: o, onSessionUpdate: s } = e, r = /* @__PURE__ */ N({});
6186
6187
  function l(S) {
6187
6188
  return S?.role === "assistant" && typeof S?.time?.completed != "number";
6188
6189
  }
@@ -6260,8 +6261,8 @@ function vh(e) {
6260
6261
  }), p = K(() => {
6261
6262
  const S = n.value;
6262
6263
  return S && r.value[S] || null;
6263
- }), v = K(() => Object.values(r.value).some((S) => S.thinking)), _ = K(() => Object.values(r.value).filter((S) => S.thinking).length);
6264
- function y(S) {
6264
+ }), v = K(() => Object.values(r.value).some((S) => S.thinking)), y = K(() => Object.values(r.value).filter((S) => S.thinking).length);
6265
+ function _(S) {
6265
6266
  delete r.value[S];
6266
6267
  }
6267
6268
  function b() {
@@ -6283,10 +6284,10 @@ function vh(e) {
6283
6284
  currentThinking: f,
6284
6285
  currentSessionState: p,
6285
6286
  hasAnyThinking: v,
6286
- thinkingSessionCount: _,
6287
+ thinkingSessionCount: y,
6287
6288
  connect: c.connect,
6288
6289
  disconnect: c.disconnect,
6289
- clearSessionState: y,
6290
+ clearSessionState: _,
6290
6291
  clearAllSessionStates: b,
6291
6292
  getSessionState: O,
6292
6293
  isSessionThinking: M,
@@ -6294,37 +6295,37 @@ function vh(e) {
6294
6295
  };
6295
6296
  }
6296
6297
  function gh(e) {
6297
- const { showNotification: t, viteBaseUrl: n = "" } = e, i = (_) => n ? `${n}${_}` : _, o = /* @__PURE__ */ L([]), s = /* @__PURE__ */ L(void 0), r = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = K(() => r.value && o.value.find((_) => _.id === r.value)?.url || ""), u = async () => {
6298
+ const { showNotification: t, viteBaseUrl: n = "" } = e, i = (y) => n ? `${n}${y}` : y, o = /* @__PURE__ */ N([]), s = /* @__PURE__ */ N(void 0), r = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), a = K(() => r.value && o.value.find((y) => y.id === r.value)?.url || ""), u = async () => {
6298
6299
  s.value = !0;
6299
6300
  try {
6300
- const _ = await (await fetch(i(Ai))).json();
6301
- o.value = _.filter((y) => !(y.title === "__chrome_mcp_warmup__" || y.parentID || y.time?.archived)).map((y) => ({
6302
- ...y,
6303
- updatedAt: y.time?.updated || Date.now()
6301
+ const y = await (await fetch(i(Ai))).json();
6302
+ o.value = y.filter((_) => !(_.title === "__chrome_mcp_warmup__" || _.parentID || _.time?.archived)).map((_) => ({
6303
+ ..._,
6304
+ updatedAt: _.time?.updated || Date.now()
6304
6305
  })), o.value.length || f(), r.value = o.value[0]?.id || null;
6305
- } catch (_) {
6306
- console.error("[OpenCode] Failed to load sessions:", _);
6306
+ } catch (y) {
6307
+ console.error("[OpenCode] Failed to load sessions:", y);
6307
6308
  } finally {
6308
6309
  s.value = !1;
6309
6310
  }
6310
- }, c = (_) => {
6311
- const y = o.value.findIndex((O) => O.id === _.id);
6312
- if (y === -1) return;
6313
- const b = o.value[y];
6314
- _.title && _.title !== b.title && (o.value[y] = {
6311
+ }, c = (y) => {
6312
+ const _ = o.value.findIndex((O) => O.id === y.id);
6313
+ if (_ === -1) return;
6314
+ const b = o.value[_];
6315
+ y.title && y.title !== b.title && (o.value[_] = {
6315
6316
  ...b,
6316
- title: _.title,
6317
- updatedAt: _.time?.updated || Date.now()
6317
+ title: y.title,
6318
+ updatedAt: y.time?.updated || Date.now()
6318
6319
  });
6319
6320
  }, f = async () => {
6320
6321
  try {
6321
- const _ = await (await fetch(i(Ai), { method: "POST" })).json();
6322
+ const y = await (await fetch(i(Ai), { method: "POST" })).json();
6322
6323
  o.value.unshift({
6323
- id: _.id,
6324
+ id: y.id,
6324
6325
  title: "新会话",
6325
6326
  updatedAt: Date.now(),
6326
- url: _.url
6327
- }), r.value = _.id, l.value = !0, u();
6327
+ url: y.url
6328
+ }), r.value = y.id, l.value = !0, u();
6328
6329
  } catch {
6329
6330
  t("创建会话失败");
6330
6331
  }
@@ -6337,24 +6338,24 @@ function gh(e) {
6337
6338
  iframeLoading: l,
6338
6339
  loadSessions: u,
6339
6340
  createSession: f,
6340
- deleteSession: async (_) => {
6341
+ deleteSession: async (y) => {
6341
6342
  try {
6342
- if (await fetch(i(`${Ai}?id=${_.id}`), { method: "DELETE" }), await u(), t("会话已删除"), r.value === _.id) if (o.value.length > 0) {
6343
- const y = o.value[0];
6344
- r.value = y.id, l.value = !0;
6343
+ if (await fetch(i(`${Ai}?id=${y.id}`), { method: "DELETE" }), await u(), t("会话已删除"), r.value === y.id) if (o.value.length > 0) {
6344
+ const _ = o.value[0];
6345
+ r.value = _.id, l.value = !0;
6345
6346
  } else r.value = null;
6346
6347
  } catch {
6347
6348
  t("删除会话失败");
6348
6349
  }
6349
6350
  },
6350
- selectSession: (_) => {
6351
- r.value !== _.id && (r.value = _.id, l.value = !0);
6351
+ selectSession: (y) => {
6352
+ r.value !== y.id && (r.value = y.id, l.value = !0);
6352
6353
  },
6353
6354
  updateSessionInfo: c
6354
6355
  };
6355
6356
  }
6356
6357
  function mh(e, t) {
6357
- const n = /* @__PURE__ */ L(e), i = K(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), o = () => {
6358
+ const n = /* @__PURE__ */ N(e), i = K(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), o = () => {
6358
6359
  t.value?.sendMessageToIframe(Ee.SET_THEME, { theme: i.value });
6359
6360
  };
6360
6361
  let s = null;
@@ -6374,7 +6375,7 @@ function mh(e, t) {
6374
6375
  };
6375
6376
  }
6376
6377
  function _h(e = "") {
6377
- const t = e ? `${Jo}_${e}` : Jo, n = /* @__PURE__ */ L([]);
6378
+ const t = e ? `${Jo}_${e}` : Jo, n = /* @__PURE__ */ N([]);
6378
6379
  try {
6379
6380
  const r = sessionStorage.getItem(t);
6380
6381
  r && (n.value = JSON.parse(r));
@@ -6394,7 +6395,7 @@ function _h(e = "") {
6394
6395
  };
6395
6396
  }
6396
6397
  function yh() {
6397
- const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), s = K(() => e.value && Oc[e.value] || "加载中...");
6398
+ const e = /* @__PURE__ */ N(""), t = /* @__PURE__ */ N("idle"), n = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(void 0), o = /* @__PURE__ */ N(void 0), s = K(() => e.value && Oc[e.value] || "加载中...");
6398
6399
  return {
6399
6400
  currentTask: e,
6400
6401
  serviceStatus: t,
@@ -6425,8 +6426,8 @@ function bh(e, t, n = "") {
6425
6426
  });
6426
6427
  }, l = (p = !1) => {
6427
6428
  if (e.value === "idle") return;
6428
- const v = window.location.href, _ = document.title;
6429
- (p || v !== i || _ !== o) && (i = v, o = _, r(v, _));
6429
+ const v = window.location.href, y = document.title;
6430
+ (p || v !== i || y !== o) && (i = v, o = y, r(v, y));
6430
6431
  }, a = () => {
6431
6432
  requestAnimationFrame(() => l());
6432
6433
  };
@@ -6448,30 +6449,47 @@ function bh(e, t, n = "") {
6448
6449
  }), { updateContext: l };
6449
6450
  }
6450
6451
  function Sh(e, t, n = "", i = "") {
6451
- let o = "", s = "";
6452
- const r = /* @__PURE__ */ L(""), l = /* @__PURE__ */ L(""), a = (p) => n ? `${n}${p}` : p, u = (p, v) => {
6453
- fetch(a(Cr), {
6452
+ let o = "", s = "", r;
6453
+ const l = /* @__PURE__ */ N(""), a = /* @__PURE__ */ N(""), u = (v) => n ? `${n}${v}` : v, c = (v, y) => {
6454
+ fetch(u(Cr), {
6454
6455
  method: "POST",
6455
6456
  headers: { "Content-Type": "application/json" },
6456
6457
  body: JSON.stringify({
6457
- url: p,
6458
- title: v,
6458
+ url: v,
6459
+ title: y,
6459
6460
  selectedElements: t.value
6460
6461
  })
6461
6462
  }).catch(() => {
6462
6463
  });
6463
- }, c = (p = !1) => {
6464
+ }, f = (v = !1) => {
6464
6465
  if (e.value === "idle") return;
6465
- const v = r.value, _ = l.value;
6466
- !v && !_ || (p || v !== o || _ !== s) && (o = v, s = _, u(v, _));
6467
- }, f = (p) => {
6468
- p.serviceInstanceId && p.serviceInstanceId !== i || p.type === yn.PAGE_CONTEXT && p.ctx && (r.value = p.ctx.url, l.value = p.ctx.title, c(!0));
6466
+ const y = l.value, _ = a.value;
6467
+ !y && !_ || (v || y !== o || _ !== s) && (o = y, s = _, c(y, _));
6468
+ }, p = (v) => {
6469
+ if (!(v.serviceInstanceId && v.serviceInstanceId !== i)) {
6470
+ if (v.type === Qt.TAB_SWITCHED) {
6471
+ r = v.tabId;
6472
+ return;
6473
+ }
6474
+ if (v.type === Qt.PAGE_CONTEXT && v.ctx) {
6475
+ if (r !== void 0 && v.tabId !== void 0 && v.tabId !== r) return;
6476
+ l.value = v.ctx.url, a.value = v.ctx.title, f(!0);
6477
+ }
6478
+ }
6469
6479
  };
6470
- return ze(() => {
6471
- chrome.runtime.onMessage.addListener(f);
6480
+ return ze(async () => {
6481
+ chrome.runtime.onMessage.addListener(p);
6482
+ try {
6483
+ const v = await chrome.tabs.query({
6484
+ active: !0,
6485
+ currentWindow: !0
6486
+ });
6487
+ v[0]?.id !== void 0 && (r = v[0].id);
6488
+ } catch {
6489
+ }
6472
6490
  }), qe(() => {
6473
- chrome.runtime.onMessage.removeListener(f);
6474
- }), { updateContext: c };
6491
+ chrome.runtime.onMessage.removeListener(p);
6492
+ }), { updateContext: f };
6475
6493
  }
6476
6494
  function wh(e) {
6477
6495
  const { selectMode: t, serviceInstanceId: n, onElementSelected: i, onThemeChange: o } = e, s = (u) => {
@@ -6495,7 +6513,7 @@ function wh(e) {
6495
6513
  case Ee.SELECTOR_STOP:
6496
6514
  t.value = !1;
6497
6515
  break;
6498
- case yn.THEME_CHANGE:
6516
+ case Qt.THEME_CHANGE:
6499
6517
  u.theme && o && o(u.theme);
6500
6518
  break;
6501
6519
  }
@@ -6516,11 +6534,11 @@ function wh(e) {
6516
6534
  }
6517
6535
  }
6518
6536
  function l(u) {
6519
- r({ type: u ? yn.SELECTION_START : yn.SELECTION_STOP });
6537
+ r({ type: u ? Qt.SELECTION_START : Qt.SELECTION_STOP });
6520
6538
  }
6521
6539
  function a(u) {
6522
6540
  chrome.runtime.sendMessage({
6523
- type: yn.THEME_CHANGE,
6541
+ type: Qt.THEME_CHANGE,
6524
6542
  theme: u
6525
6543
  }).catch(() => {
6526
6544
  });
@@ -6573,7 +6591,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6573
6591
  }, Ah = { class: "opencode-chrome-warmup-failed-text" }, kh = { class: "opencode-chrome-warmup-error-details" }, Rh = {
6574
6592
  key: 0,
6575
6593
  style: { "margin-top": "12px" }
6576
- }, Lh = { class: "opencode-chrome-warmup-failed-text" }, Nh = { key: 0 }, Dh = { key: 1 }, $h = {
6594
+ }, Nh = { class: "opencode-chrome-warmup-failed-text" }, Lh = { key: 0 }, Dh = { key: 1 }, $h = {
6577
6595
  key: 2,
6578
6596
  style: { "margin-top": "12px" }
6579
6597
  }, Fh = {
@@ -6592,7 +6610,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6592
6610
  },
6593
6611
  emits: ["retry"],
6594
6612
  setup(e, { emit: t }) {
6595
- const n = e, i = t, o = /* @__PURE__ */ L("");
6613
+ const n = e, i = t, o = /* @__PURE__ */ N("");
6596
6614
  Ae(() => n.models, (p) => {
6597
6615
  p && p.length > 0 && !o.value && (o.value = `${p[0].providerID}:${p[0].modelID}`);
6598
6616
  }, { immediate: !0 });
@@ -6605,7 +6623,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6605
6623
  }), a = K(() => {
6606
6624
  if (!o.value || !n.models) return n.models?.[0] || null;
6607
6625
  const [p, v] = o.value.split(":");
6608
- return n.models.find((_) => _.providerID === p && _.modelID === v) || null;
6626
+ return n.models.find((y) => y.providerID === p && y.modelID === v) || null;
6609
6627
  }), u = (p) => ({
6610
6628
  anthropic: "Anthropic",
6611
6629
  openai: "OpenAI",
@@ -6650,15 +6668,15 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6650
6668
  v[7] || (v[7] = m("p", null, "AI 模型返回了意外的响应:", -1)),
6651
6669
  m("div", kh, Ce(e.errorMessage || "未知错误"), 1),
6652
6670
  r.value ? (D(), j("p", Rh, "可选择其他模型重试:")) : ae("", !0)
6653
- ])], 64)) : (D(), j(fe, { key: 3 }, [v[9] || (v[9] = m("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), m("div", Lh, [e.errorMessage ? (D(), j("p", Nh, Ce(e.errorMessage), 1)) : (D(), j("p", Dh, "连接失败,请重试")), r.value ? (D(), j("p", $h, "可选择模型重试:")) : ae("", !0)])], 64)),
6671
+ ])], 64)) : (D(), j(fe, { key: 3 }, [v[9] || (v[9] = m("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), m("div", Nh, [e.errorMessage ? (D(), j("p", Lh, Ce(e.errorMessage), 1)) : (D(), j("p", Dh, "连接失败,请重试")), r.value ? (D(), j("p", $h, "可选择模型重试:")) : ae("", !0)])], 64)),
6654
6672
  s.value && r.value ? (D(), j("div", Fh, [m("div", Bh, [ji(m("select", {
6655
- "onUpdate:modelValue": v[0] || (v[0] = (_) => o.value = _),
6673
+ "onUpdate:modelValue": v[0] || (v[0] = (y) => o.value = y),
6656
6674
  class: "native-select",
6657
6675
  disabled: e.retrying
6658
- }, [(D(!0), j(fe, null, In(l.value, (_, y) => (D(), j("optgroup", {
6659
- key: y,
6660
- label: u(y)
6661
- }, [(D(!0), j(fe, null, In(_, (b) => (D(), j("option", {
6676
+ }, [(D(!0), j(fe, null, In(l.value, (y, _) => (D(), j("optgroup", {
6677
+ key: _,
6678
+ label: u(_)
6679
+ }, [(D(!0), j(fe, null, In(y, (b) => (D(), j("option", {
6662
6680
  key: c(b),
6663
6681
  value: c(b)
6664
6682
  }, Ce(b.name || b.modelID), 9, Hh))), 128))], 8, Wh))), 128))], 8, jh), [[dc, o.value]]), v[10] || (v[10] = m("span", { class: "select-arrow" }, [m("svg", {
@@ -6679,7 +6697,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6679
6697
  }, Ce(e.retrying ? "连接中..." : "重试连接"), 9, Vh)])) : (D(), j("div", zh, [m("button", {
6680
6698
  class: "opencode-chrome-warmup-failed-btn primary",
6681
6699
  disabled: e.retrying,
6682
- onClick: v[1] || (v[1] = (_) => f())
6700
+ onClick: v[1] || (v[1] = (y) => f())
6683
6701
  }, Ce(e.retrying ? "连接中..." : "重试连接"), 9, qh)]))
6684
6702
  ]));
6685
6703
  }
@@ -6691,7 +6709,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6691
6709
  __name: "App",
6692
6710
  props: { config: {} },
6693
6711
  setup(e) {
6694
- const t = e, n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), s = /* @__PURE__ */ L(!1), r = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L([]), { theme: u = "auto", open: c = !1, hotkey: f = "ctrl+k", proxyPort: p = 4098, proxyHost: v = "localhost", displayMode: _ = "bubble", splitMode: y, vitePort: b = "", serviceInstanceId: O = "" } = t.config, M = u, V = /* @__PURE__ */ L(y?.width ?? 500), S = _ === "extension", z = _ === "extension-selector", q = K(() => b ? `http://127.0.0.1:${b}` : ""), I = (k) => q.value ? `${q.value}${k}` : k, W = {
6712
+ const t = e, n = /* @__PURE__ */ N(!1), i = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N(!0), s = /* @__PURE__ */ N(!1), r = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N([]), { theme: u = "auto", open: c = !1, hotkey: f = "ctrl+k", proxyPort: p = 4098, proxyHost: v = "localhost", displayMode: y = "bubble", splitMode: _, vitePort: b = "", serviceInstanceId: O = "" } = t.config, M = u, V = /* @__PURE__ */ N(_?.width ?? 500), S = y === "extension", z = y === "extension-selector", q = K(() => b ? `http://127.0.0.1:${b}` : ""), I = (k) => q.value ? `${q.value}${k}` : k, W = {
6695
6713
  onSelectModeChange: null,
6696
6714
  broadcastTheme: null,
6697
6715
  notifySelectionResult: null,
@@ -6756,7 +6774,7 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6756
6774
  ps(f, (k) => {
6757
6775
  k.preventDefault(), U(!n.value);
6758
6776
  });
6759
- const N = () => {
6777
+ const L = () => {
6760
6778
  if (S) {
6761
6779
  ee(!i.value);
6762
6780
  return;
@@ -6764,14 +6782,14 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6764
6782
  window.__VUE_INSPECTOR__ ? ee(!i.value) : X("Vue Inspector 未加载,无法使用元素选择功能");
6765
6783
  };
6766
6784
  S || ps("ctrl+p", (k) => {
6767
- k.preventDefault(), N();
6785
+ k.preventDefault(), L();
6768
6786
  }), Ae(te, (k, Y) => {
6769
6787
  console.debug("[App] serviceStatus changed:", Y, "->", k), k !== "idle" && Y === "idle" && (h.connect(), g.connect()), k === "ready" && Y !== "ready" && xe();
6770
6788
  }), Ae(Te, (k) => {
6771
6789
  k && T();
6772
6790
  });
6773
6791
  const B = (k) => {
6774
- k.data?.type === Ee.READY && Re(), k.data?.type === Ee.KEYDOWN && (k.data.key === "Escape" && i.value && ee(!1), k.data.ctrlKey && k.data.key.toLowerCase() === "p" && N());
6792
+ k.data?.type === Ee.READY && Re(), k.data?.type === Ee.KEYDOWN && (k.data.key === "Escape" && i.value && ee(!1), k.data.ctrlKey && k.data.key.toLowerCase() === "p" && L());
6775
6793
  };
6776
6794
  ze(() => {
6777
6795
  console.debug("[App] mounted, serviceStatus:", te.value, "vitePort:", b, "endpoint:", q.value || "/__opencode_events__"), te.value === "ready" ? (xe(), h.connect(), g.connect(), d(!0)) : te.value === "idle" && (xe(), h.connect()), c && te.value === "ready" && setTimeout(() => {
@@ -6853,8 +6871,8 @@ var Th = { class: "opencode-custom-loading" }, Ch = { class: "opencode-loading-t
6853
6871
  "session-key": "id",
6854
6872
  "hotkey-label": ge(f),
6855
6873
  thinking: ge(x),
6856
- "display-mode": ge(_),
6857
- "split-mode": ge(y),
6874
+ "display-mode": ge(y),
6875
+ "split-mode": ge(_),
6858
6876
  "split-panel-width": V.value,
6859
6877
  "onUpdate:open": U,
6860
6878
  "onUpdate:selectMode": ee,
@@ -6920,9 +6938,9 @@ if (vs) {
6920
6938
  console.error("[OpenCode] Failed to parse config:", t);
6921
6939
  }
6922
6940
  }
6923
- var Ni = "__OPENCODE_INITIALIZED__";
6924
- if (!window[Ni]) {
6925
- window[Ni] = !0;
6941
+ var Li = "__OPENCODE_INITIALIZED__";
6942
+ if (!window[Li]) {
6943
+ window[Li] = !0;
6926
6944
  let e = null;
6927
6945
  if (Dt.serviceInstanceId && Dt.proxyPort) {
6928
6946
  const i = {
@@ -6943,6 +6961,6 @@ if (!window[Ni]) {
6943
6961
  document.body.appendChild(t);
6944
6962
  const n = gc(Xh, { config: Dt });
6945
6963
  n.mount(t), window.__OPENCODE_CLEANUP__ = () => {
6946
- e && clearInterval(e), n.unmount(), t.remove(), window[Ni] = !1;
6964
+ e && clearInterval(e), n.unmount(), t.remove(), window[Li] = !1;
6947
6965
  };
6948
6966
  }